@deepraxis/sdk 0.1.0-dev.fa57968 → 0.1.0-dev.ff6425a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +237 -1
- package/dist/core/client.d.ts +9 -1
- package/dist/core/client.js +6 -0
- package/dist/core/transport.d.ts +5 -0
- package/dist/core/transport.js +6 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +508 -40
- package/dist/generated/sdk.gen.js +1523 -114
- package/dist/generated/types.gen.d.ts +30114 -21042
- package/dist/helpers/application-publish.d.ts +24 -4
- package/dist/helpers/application-publish.js +53 -3
- package/dist/helpers/database-count.d.ts +17 -0
- package/dist/helpers/database-count.js +11 -0
- package/dist/helpers/file-upload.d.ts +24 -0
- package/dist/helpers/file-upload.js +113 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/operations.generated.d.ts +2010 -57
- package/dist/operations.generated.js +9674 -7229
- package/dist/resources.generated.d.ts +1547 -155
- package/dist/resources.generated.js +143 -0
- package/package.json +1 -1
|
@@ -1,6 +1,42 @@
|
|
|
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
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Unarchive Agent
|
|
24
|
+
*
|
|
25
|
+
* 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.
|
|
26
|
+
*/
|
|
27
|
+
export const unarchiveAgent = (options) => (options.client ?? client).post({
|
|
28
|
+
security: [{
|
|
29
|
+
key: 'BearerAuth',
|
|
30
|
+
scheme: 'bearer',
|
|
31
|
+
type: 'http'
|
|
32
|
+
}, {
|
|
33
|
+
key: 'ApiKeyAuth',
|
|
34
|
+
name: 'X-API-Key',
|
|
35
|
+
type: 'apiKey'
|
|
36
|
+
}],
|
|
37
|
+
url: '/agent/v1/agents/{agent_id}/unarchive',
|
|
38
|
+
...options
|
|
39
|
+
});
|
|
4
40
|
/**
|
|
5
41
|
* Delete Run Feedback
|
|
6
42
|
*
|
|
@@ -45,6 +81,176 @@ export const setRunFeedback = (options) => (options.client ?? client).post({
|
|
|
45
81
|
...options.headers
|
|
46
82
|
}
|
|
47
83
|
});
|
|
84
|
+
/**
|
|
85
|
+
* List End Users
|
|
86
|
+
*
|
|
87
|
+
* List users who have sessions or token issuance history on a service agent.
|
|
88
|
+
*
|
|
89
|
+
* Ordered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.
|
|
90
|
+
*/
|
|
91
|
+
export const listEndUsers = (options) => (options.client ?? client).get({
|
|
92
|
+
security: [{
|
|
93
|
+
key: 'BearerAuth',
|
|
94
|
+
scheme: 'bearer',
|
|
95
|
+
type: 'http'
|
|
96
|
+
}, {
|
|
97
|
+
key: 'ApiKeyAuth',
|
|
98
|
+
name: 'X-API-Key',
|
|
99
|
+
type: 'apiKey'
|
|
100
|
+
}],
|
|
101
|
+
url: '/agent/v1/agents/{agent_id}/end_users',
|
|
102
|
+
...options
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* Delete end-user data
|
|
106
|
+
*
|
|
107
|
+
* Delete a host application's end-user data from one service agent after explicit confirmation.
|
|
108
|
+
*
|
|
109
|
+
* Develop 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.
|
|
110
|
+
*/
|
|
111
|
+
export const deleteEndUser = (options) => (options.client ?? client).delete({
|
|
112
|
+
security: [{
|
|
113
|
+
key: 'BearerAuth',
|
|
114
|
+
scheme: 'bearer',
|
|
115
|
+
type: 'http'
|
|
116
|
+
}, {
|
|
117
|
+
key: 'ApiKeyAuth',
|
|
118
|
+
name: 'X-API-Key',
|
|
119
|
+
type: 'apiKey'
|
|
120
|
+
}],
|
|
121
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}',
|
|
122
|
+
...options
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* Get End User
|
|
126
|
+
*
|
|
127
|
+
* Inspect one end user and their twenty most recently updated sessions.
|
|
128
|
+
*
|
|
129
|
+
* Use external_user_id from listing or your host application. Users without session or issuance history return 404, including preemptively blocked users. End-user credentials and inaccessible or personal agents return 404.
|
|
130
|
+
*/
|
|
131
|
+
export const getEndUser = (options) => (options.client ?? client).get({
|
|
132
|
+
security: [{
|
|
133
|
+
key: 'BearerAuth',
|
|
134
|
+
scheme: 'bearer',
|
|
135
|
+
type: 'http'
|
|
136
|
+
}, {
|
|
137
|
+
key: 'ApiKeyAuth',
|
|
138
|
+
name: 'X-API-Key',
|
|
139
|
+
type: 'apiKey'
|
|
140
|
+
}],
|
|
141
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}',
|
|
142
|
+
...options
|
|
143
|
+
});
|
|
144
|
+
/**
|
|
145
|
+
* Get end-user deletion
|
|
146
|
+
*
|
|
147
|
+
* Poll the latest deletion task for an end user, including after the user data has been removed.
|
|
148
|
+
*
|
|
149
|
+
* Use 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.
|
|
150
|
+
*/
|
|
151
|
+
export const getEndUserDeletion = (options) => (options.client ?? client).get({
|
|
152
|
+
security: [{
|
|
153
|
+
key: 'BearerAuth',
|
|
154
|
+
scheme: 'bearer',
|
|
155
|
+
type: 'http'
|
|
156
|
+
}, {
|
|
157
|
+
key: 'ApiKeyAuth',
|
|
158
|
+
name: 'X-API-Key',
|
|
159
|
+
type: 'apiKey'
|
|
160
|
+
}],
|
|
161
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion',
|
|
162
|
+
...options
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* Revoke End User Tokens
|
|
166
|
+
*
|
|
167
|
+
* Revoke all issued tokens for an end user and terminate their open embed streams.
|
|
168
|
+
*
|
|
169
|
+
* Revokes credentials before marking grants revoked. Upstream failure returns 502 without changing grant revocation timestamps. Returns the count of newly revoked grants; a repeat without new grants returns zero. Does not block future issuance. End-user credentials and inaccessible or personal agents return 404.
|
|
170
|
+
*/
|
|
171
|
+
export const revokeEndUserTokens = (options) => (options.client ?? client).post({
|
|
172
|
+
security: [{
|
|
173
|
+
key: 'BearerAuth',
|
|
174
|
+
scheme: 'bearer',
|
|
175
|
+
type: 'http'
|
|
176
|
+
}, {
|
|
177
|
+
key: 'ApiKeyAuth',
|
|
178
|
+
name: 'X-API-Key',
|
|
179
|
+
type: 'apiKey'
|
|
180
|
+
}],
|
|
181
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens',
|
|
182
|
+
...options
|
|
183
|
+
});
|
|
184
|
+
/**
|
|
185
|
+
* Block End User
|
|
186
|
+
*
|
|
187
|
+
* Block token issuance and session creation, then revoke existing tokens for an end user.
|
|
188
|
+
*
|
|
189
|
+
* May block a user before any history exists; timestamps are then null and counts and cost are zero. Requires an embed policy, otherwise returns 409 with setup guidance. Deduplicates the policy blocklist and retains its 1000-user maximum. If revocation returns 502, the user remains blocked; retry to finish revocation. Repeats keep the user blocked and revoke any remaining grants. End-user credentials and inaccessible or personal agents return 404.
|
|
190
|
+
*/
|
|
191
|
+
export const blockEndUser = (options) => (options.client ?? client).post({
|
|
192
|
+
security: [{
|
|
193
|
+
key: 'BearerAuth',
|
|
194
|
+
scheme: 'bearer',
|
|
195
|
+
type: 'http'
|
|
196
|
+
}, {
|
|
197
|
+
key: 'ApiKeyAuth',
|
|
198
|
+
name: 'X-API-Key',
|
|
199
|
+
type: 'apiKey'
|
|
200
|
+
}],
|
|
201
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block',
|
|
202
|
+
...options
|
|
203
|
+
});
|
|
204
|
+
/**
|
|
205
|
+
* Unblock End User
|
|
206
|
+
*
|
|
207
|
+
* Allow an end user to receive new tokens and create new sessions again.
|
|
208
|
+
*
|
|
209
|
+
* Removes the user from the blocklist; previously revoked tokens stay revoked. Idempotent. Requires an embed policy, otherwise returns 409 with setup guidance. Returns null timestamps and zero counts and cost when no session or issuance history exists. End-user credentials and inaccessible or personal agents return 404.
|
|
210
|
+
*/
|
|
211
|
+
export const unblockEndUser = (options) => (options.client ?? client).post({
|
|
212
|
+
security: [{
|
|
213
|
+
key: 'BearerAuth',
|
|
214
|
+
scheme: 'bearer',
|
|
215
|
+
type: 'http'
|
|
216
|
+
}, {
|
|
217
|
+
key: 'ApiKeyAuth',
|
|
218
|
+
name: 'X-API-Key',
|
|
219
|
+
type: 'apiKey'
|
|
220
|
+
}],
|
|
221
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock',
|
|
222
|
+
...options
|
|
223
|
+
});
|
|
224
|
+
/**
|
|
225
|
+
* Exchange Hosted Code
|
|
226
|
+
*
|
|
227
|
+
* Redeem a single-use hosted link credential for an end-user token.
|
|
228
|
+
*
|
|
229
|
+
* Read 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>"}.
|
|
230
|
+
*/
|
|
231
|
+
export const exchangeEmbedCode = (options) => (options.client ?? client).post({
|
|
232
|
+
url: '/agent/v1/embed/exchange',
|
|
233
|
+
...options,
|
|
234
|
+
headers: {
|
|
235
|
+
'Content-Type': 'application/json',
|
|
236
|
+
...options.headers
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
/**
|
|
240
|
+
* Issue anonymous visitor token
|
|
241
|
+
*
|
|
242
|
+
* Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.
|
|
243
|
+
*
|
|
244
|
+
* No 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"}.
|
|
245
|
+
*/
|
|
246
|
+
export const createAnonymousEmbedToken = (options) => (options.client ?? client).post({
|
|
247
|
+
url: '/agent/v1/embed_tokens/anonymous',
|
|
248
|
+
...options,
|
|
249
|
+
headers: {
|
|
250
|
+
'Content-Type': 'application/json',
|
|
251
|
+
...options.headers
|
|
252
|
+
}
|
|
253
|
+
});
|
|
48
254
|
/**
|
|
49
255
|
* List Embed Tokens
|
|
50
256
|
*
|
|
@@ -70,7 +276,7 @@ export const listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
|
70
276
|
*
|
|
71
277
|
* Issue a short-lived credential on your backend for an end user of a service agent.
|
|
72
278
|
*
|
|
73
|
-
* Requires 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.
|
|
279
|
+
* Requires 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.
|
|
74
280
|
*/
|
|
75
281
|
export const createEmbedToken = (options) => (options.client ?? client).post({
|
|
76
282
|
security: [{
|
|
@@ -307,7 +513,9 @@ export const computersFilesContent = (options) => (options.client ?? client).get
|
|
|
307
513
|
*
|
|
308
514
|
* Resume the computer and issue a sandbox connection.
|
|
309
515
|
*
|
|
310
|
-
* Own-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.
|
|
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.
|
|
311
519
|
*/
|
|
312
520
|
export const connectComputer = (options) => (options.client ?? client).post({
|
|
313
521
|
security: [{
|
|
@@ -320,6 +528,50 @@ export const connectComputer = (options) => (options.client ?? client).post({
|
|
|
320
528
|
type: 'apiKey'
|
|
321
529
|
}],
|
|
322
530
|
url: '/agent/v1/computers/{computer_id}/connect',
|
|
531
|
+
...options,
|
|
532
|
+
headers: {
|
|
533
|
+
'Content-Type': 'application/json',
|
|
534
|
+
...options.headers
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
/**
|
|
538
|
+
* Renew computer lease
|
|
539
|
+
*
|
|
540
|
+
* Extend the lease a connection holds so the full machine stays in service while the connection is open.
|
|
541
|
+
*
|
|
542
|
+
* Own-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.
|
|
543
|
+
*/
|
|
544
|
+
export const renewComputerLease = (options) => (options.client ?? client).post({
|
|
545
|
+
security: [{
|
|
546
|
+
key: 'BearerAuth',
|
|
547
|
+
scheme: 'bearer',
|
|
548
|
+
type: 'http'
|
|
549
|
+
}, {
|
|
550
|
+
key: 'ApiKeyAuth',
|
|
551
|
+
name: 'X-API-Key',
|
|
552
|
+
type: 'apiKey'
|
|
553
|
+
}],
|
|
554
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew',
|
|
555
|
+
...options
|
|
556
|
+
});
|
|
557
|
+
/**
|
|
558
|
+
* Release computer lease
|
|
559
|
+
*
|
|
560
|
+
* Give the lease back when a connection closes so the full machine can be reclaimed without waiting for it to expire.
|
|
561
|
+
*
|
|
562
|
+
* Own-face extension. Idempotent: an unknown or already released lease succeeds as well. Foreign or absent computers return 404.
|
|
563
|
+
*/
|
|
564
|
+
export const releaseComputerLease = (options) => (options.client ?? client).delete({
|
|
565
|
+
security: [{
|
|
566
|
+
key: 'BearerAuth',
|
|
567
|
+
scheme: 'bearer',
|
|
568
|
+
type: 'http'
|
|
569
|
+
}, {
|
|
570
|
+
key: 'ApiKeyAuth',
|
|
571
|
+
name: 'X-API-Key',
|
|
572
|
+
type: 'apiKey'
|
|
573
|
+
}],
|
|
574
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}',
|
|
323
575
|
...options
|
|
324
576
|
});
|
|
325
577
|
/**
|
|
@@ -508,6 +760,20 @@ export const listSessionCompactions = (options) => (options.client ?? client).ge
|
|
|
508
760
|
url: '/agent/v1/sessions/{session_id}/compactions',
|
|
509
761
|
...options
|
|
510
762
|
});
|
|
763
|
+
/**
|
|
764
|
+
* Read chat appearance
|
|
765
|
+
*
|
|
766
|
+
* 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.
|
|
767
|
+
*/
|
|
768
|
+
export const getEmbedAppearance = (options) => (options?.client ?? client).get({
|
|
769
|
+
security: [{
|
|
770
|
+
key: 'BearerAuth',
|
|
771
|
+
scheme: 'bearer',
|
|
772
|
+
type: 'http'
|
|
773
|
+
}, { name: 'Praxis-Publishable-Key', type: 'apiKey' }],
|
|
774
|
+
url: '/agent/v1/embed/appearance',
|
|
775
|
+
...options
|
|
776
|
+
});
|
|
511
777
|
/**
|
|
512
778
|
* Generate speech
|
|
513
779
|
*
|
|
@@ -835,7 +1101,7 @@ export const fileListFiles = (options) => (options?.client ?? client).get({
|
|
|
835
1101
|
/**
|
|
836
1102
|
* Upload file
|
|
837
1103
|
*
|
|
838
|
-
* Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most
|
|
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.
|
|
839
1105
|
*/
|
|
840
1106
|
export const fileCreateFile = (options) => (options.client ?? client).post({
|
|
841
1107
|
...formDataBodySerializer,
|
|
@@ -876,7 +1142,7 @@ export const fileDeleteFile = (options) => (options.client ?? client).delete({
|
|
|
876
1142
|
/**
|
|
877
1143
|
* Retrieve file
|
|
878
1144
|
*
|
|
879
|
-
* Retrieve metadata for a live file owned by your tenant. Use its
|
|
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.
|
|
880
1146
|
*/
|
|
881
1147
|
export const fileRetrieveFile = (options) => (options.client ?? client).get({
|
|
882
1148
|
security: [{
|
|
@@ -894,7 +1160,7 @@ export const fileRetrieveFile = (options) => (options.client ?? client).get({
|
|
|
894
1160
|
/**
|
|
895
1161
|
* Retrieve file content
|
|
896
1162
|
*
|
|
897
|
-
* Download the original bytes of a live file owned by your tenant. Supply its
|
|
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.
|
|
898
1164
|
*/
|
|
899
1165
|
export const fileRetrieveFileContent = (options) => (options.client ?? client).get({
|
|
900
1166
|
security: [{
|
|
@@ -909,6 +1175,75 @@ export const fileRetrieveFileContent = (options) => (options.client ?? client).g
|
|
|
909
1175
|
url: '/file/v1/files/{file_id}/content',
|
|
910
1176
|
...options
|
|
911
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
|
+
});
|
|
912
1247
|
/**
|
|
913
1248
|
* Health Check
|
|
914
1249
|
*
|
|
@@ -1563,11 +1898,11 @@ export const countResponseInputTokens = (options) => (options.client ?? client).
|
|
|
1563
1898
|
}
|
|
1564
1899
|
});
|
|
1565
1900
|
/**
|
|
1566
|
-
*
|
|
1901
|
+
* List your organization's feedback
|
|
1567
1902
|
*
|
|
1568
|
-
*
|
|
1903
|
+
* Feedback submitted by your organization, newest first, with phase and unread state. Filter by phase and search titles and message text (case-insensitive). Page with next_page. Requires a valid API key, Console session, or machine token of the organization.
|
|
1569
1904
|
*/
|
|
1570
|
-
export const
|
|
1905
|
+
export const listOrganizationFeedback = (options) => (options?.client ?? client).get({
|
|
1571
1906
|
security: [{
|
|
1572
1907
|
key: 'BearerAuth',
|
|
1573
1908
|
scheme: 'bearer',
|
|
@@ -1578,9 +1913,103 @@ export const createOrganizationFeedback = (options) => (options.client ?? client
|
|
|
1578
1913
|
type: 'apiKey'
|
|
1579
1914
|
}],
|
|
1580
1915
|
url: '/organization/v1/feedback',
|
|
1581
|
-
...options
|
|
1582
|
-
|
|
1583
|
-
|
|
1916
|
+
...options
|
|
1917
|
+
});
|
|
1918
|
+
/**
|
|
1919
|
+
* Report a problem with the Praxis platform
|
|
1920
|
+
*
|
|
1921
|
+
* Report a problem with the Praxis platform when an API fails, documentation is unclear, or a capability is missing. AI callers in codemode should include the original error text in message, the X-Request-Id or error event ID in associated_event_id, and relevant session, agent, model, or request IDs in contexts. Continue the user's task after reporting. Each successful call stores feedback and returns its id; repeated calls create separate reports. The authenticated principal determines the reporter; any reporter supplied in the body is ignored. Machine tokens force source to codemode. Requires a valid API key, Console session, or machine token. Minimal body: {"message":"The API documentation does not explain this error."}.
|
|
1922
|
+
*/
|
|
1923
|
+
export const createOrganizationFeedback = (options) => (options.client ?? client).post({
|
|
1924
|
+
security: [{
|
|
1925
|
+
key: 'BearerAuth',
|
|
1926
|
+
scheme: 'bearer',
|
|
1927
|
+
type: 'http'
|
|
1928
|
+
}, {
|
|
1929
|
+
key: 'ApiKeyAuth',
|
|
1930
|
+
name: 'X-API-Key',
|
|
1931
|
+
type: 'apiKey'
|
|
1932
|
+
}],
|
|
1933
|
+
url: '/organization/v1/feedback',
|
|
1934
|
+
...options,
|
|
1935
|
+
headers: {
|
|
1936
|
+
'Content-Type': 'application/json',
|
|
1937
|
+
...options.headers
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
/**
|
|
1941
|
+
* Count your organization's feedback by phase
|
|
1942
|
+
*
|
|
1943
|
+
* How many of your organization's feedback are in each phase, for status tabs. Counts never include another organization's feedback.
|
|
1944
|
+
*/
|
|
1945
|
+
export const getOrganizationFeedbackCounts = (options) => (options?.client ?? client).get({
|
|
1946
|
+
security: [{
|
|
1947
|
+
key: 'BearerAuth',
|
|
1948
|
+
scheme: 'bearer',
|
|
1949
|
+
type: 'http'
|
|
1950
|
+
}, {
|
|
1951
|
+
key: 'ApiKeyAuth',
|
|
1952
|
+
name: 'X-API-Key',
|
|
1953
|
+
type: 'apiKey'
|
|
1954
|
+
}],
|
|
1955
|
+
url: '/organization/v1/feedback/counts',
|
|
1956
|
+
...options
|
|
1957
|
+
});
|
|
1958
|
+
/**
|
|
1959
|
+
* Get one of your organization's feedback
|
|
1960
|
+
*
|
|
1961
|
+
* Read one feedback submitted by your organization with its current phase and first-response timing. Another organization's feedback answers 404 FEEDBACK_NOT_FOUND exactly like a missing one.
|
|
1962
|
+
*/
|
|
1963
|
+
export const getOrganizationFeedback = (options) => (options.client ?? client).get({
|
|
1964
|
+
security: [{
|
|
1965
|
+
key: 'BearerAuth',
|
|
1966
|
+
scheme: 'bearer',
|
|
1967
|
+
type: 'http'
|
|
1968
|
+
}, {
|
|
1969
|
+
key: 'ApiKeyAuth',
|
|
1970
|
+
name: 'X-API-Key',
|
|
1971
|
+
type: 'apiKey'
|
|
1972
|
+
}],
|
|
1973
|
+
url: '/organization/v1/feedback/{id}',
|
|
1974
|
+
...options
|
|
1975
|
+
});
|
|
1976
|
+
/**
|
|
1977
|
+
* List the messages of a feedback
|
|
1978
|
+
*
|
|
1979
|
+
* The conversation of one feedback in time order: your messages, support replies and system events. Internal support notes are never returned. Page with next_page.
|
|
1980
|
+
*/
|
|
1981
|
+
export const listOrganizationFeedbackMessages = (options) => (options.client ?? client).get({
|
|
1982
|
+
security: [{
|
|
1983
|
+
key: 'BearerAuth',
|
|
1984
|
+
scheme: 'bearer',
|
|
1985
|
+
type: 'http'
|
|
1986
|
+
}, {
|
|
1987
|
+
key: 'ApiKeyAuth',
|
|
1988
|
+
name: 'X-API-Key',
|
|
1989
|
+
type: 'apiKey'
|
|
1990
|
+
}],
|
|
1991
|
+
url: '/organization/v1/feedback/{id}/messages',
|
|
1992
|
+
...options
|
|
1993
|
+
});
|
|
1994
|
+
/**
|
|
1995
|
+
* Reply on a feedback
|
|
1996
|
+
*
|
|
1997
|
+
* Add your message to a feedback conversation, for example to answer a question from support. A reply while the phase is awaiting_customer moves it to in_progress and notifies support.
|
|
1998
|
+
*/
|
|
1999
|
+
export const createOrganizationFeedbackMessage = (options) => (options.client ?? client).post({
|
|
2000
|
+
security: [{
|
|
2001
|
+
key: 'BearerAuth',
|
|
2002
|
+
scheme: 'bearer',
|
|
2003
|
+
type: 'http'
|
|
2004
|
+
}, {
|
|
2005
|
+
key: 'ApiKeyAuth',
|
|
2006
|
+
name: 'X-API-Key',
|
|
2007
|
+
type: 'apiKey'
|
|
2008
|
+
}],
|
|
2009
|
+
url: '/organization/v1/feedback/{id}/messages',
|
|
2010
|
+
...options,
|
|
2011
|
+
headers: {
|
|
2012
|
+
'Content-Type': 'application/json',
|
|
1584
2013
|
...options.headers
|
|
1585
2014
|
}
|
|
1586
2015
|
});
|
|
@@ -1971,6 +2400,64 @@ export const runSandboxCommand = (options) => (options.client ?? client).post({
|
|
|
1971
2400
|
...options.headers
|
|
1972
2401
|
}
|
|
1973
2402
|
});
|
|
2403
|
+
/**
|
|
2404
|
+
* Delete session
|
|
2405
|
+
*
|
|
2406
|
+
* 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.
|
|
2407
|
+
*/
|
|
2408
|
+
export const sessionsDelete = (options) => (options.client ?? client).delete({
|
|
2409
|
+
security: [{
|
|
2410
|
+
key: 'BearerAuth',
|
|
2411
|
+
scheme: 'bearer',
|
|
2412
|
+
type: 'http'
|
|
2413
|
+
}, {
|
|
2414
|
+
key: 'ApiKeyAuth',
|
|
2415
|
+
name: 'X-API-Key',
|
|
2416
|
+
type: 'apiKey'
|
|
2417
|
+
}],
|
|
2418
|
+
url: '/agent/v1/sessions/{session_id}',
|
|
2419
|
+
...options
|
|
2420
|
+
});
|
|
2421
|
+
/**
|
|
2422
|
+
* Get session
|
|
2423
|
+
*
|
|
2424
|
+
* Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on a light machine; no environment lookup or provisioning is needed for a codemode calculation.
|
|
2425
|
+
*/
|
|
2426
|
+
export const sessionsRetrieve = (options) => (options.client ?? client).get({
|
|
2427
|
+
security: [{
|
|
2428
|
+
key: 'BearerAuth',
|
|
2429
|
+
scheme: 'bearer',
|
|
2430
|
+
type: 'http'
|
|
2431
|
+
}, {
|
|
2432
|
+
key: 'ApiKeyAuth',
|
|
2433
|
+
name: 'X-API-Key',
|
|
2434
|
+
type: 'apiKey'
|
|
2435
|
+
}],
|
|
2436
|
+
url: '/agent/v1/sessions/{session_id}',
|
|
2437
|
+
...options
|
|
2438
|
+
});
|
|
2439
|
+
/**
|
|
2440
|
+
* Update session
|
|
2441
|
+
*
|
|
2442
|
+
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.
|
|
2443
|
+
*/
|
|
2444
|
+
export const sessionsUpdate = (options) => (options.client ?? client).post({
|
|
2445
|
+
security: [{
|
|
2446
|
+
key: 'BearerAuth',
|
|
2447
|
+
scheme: 'bearer',
|
|
2448
|
+
type: 'http'
|
|
2449
|
+
}, {
|
|
2450
|
+
key: 'ApiKeyAuth',
|
|
2451
|
+
name: 'X-API-Key',
|
|
2452
|
+
type: 'apiKey'
|
|
2453
|
+
}],
|
|
2454
|
+
url: '/agent/v1/sessions/{session_id}',
|
|
2455
|
+
...options,
|
|
2456
|
+
headers: {
|
|
2457
|
+
'Content-Type': 'application/json',
|
|
2458
|
+
...options.headers
|
|
2459
|
+
}
|
|
2460
|
+
});
|
|
1974
2461
|
/**
|
|
1975
2462
|
* List agents
|
|
1976
2463
|
*
|
|
@@ -1992,7 +2479,7 @@ export const agentsList = (options) => (options?.client ?? client).get({
|
|
|
1992
2479
|
/**
|
|
1993
2480
|
* Create agent
|
|
1994
2481
|
*
|
|
1995
|
-
* 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
|
|
2482
|
+
* 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"}]}.
|
|
1996
2483
|
*/
|
|
1997
2484
|
export const agentsCreate = (options) => (options.client ?? client).post({
|
|
1998
2485
|
security: [{
|
|
@@ -2032,7 +2519,7 @@ export const agentsRetrieve = (options) => (options.client ?? client).get({
|
|
|
2032
2519
|
/**
|
|
2033
2520
|
* Update agent
|
|
2034
2521
|
*
|
|
2035
|
-
* 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
|
|
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.
|
|
2036
2523
|
*/
|
|
2037
2524
|
export const agentsUpdate = (options) => (options.client ?? client).post({
|
|
2038
2525
|
security: [{
|
|
@@ -2108,7 +2595,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
|
|
|
2108
2595
|
/**
|
|
2109
2596
|
* Create session
|
|
2110
2597
|
*
|
|
2111
|
-
* Create a session: one conversation with an agent
|
|
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.
|
|
2112
2599
|
*/
|
|
2113
2600
|
export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
2114
2601
|
security: [{
|
|
@@ -2127,46 +2614,6 @@ export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
|
2127
2614
|
...options.headers
|
|
2128
2615
|
}
|
|
2129
2616
|
});
|
|
2130
|
-
/**
|
|
2131
|
-
* Get session
|
|
2132
|
-
*
|
|
2133
|
-
* Read one session by id: its agent snapshot, status, model and thinking selection, resources, title, metadata and, for a fork, forked_from. Use it to poll status; to read what happened use sessions.events.list. This response does not include a machine object or sandbox id. With no environment_id or Computer selected at creation, the session starts on a light machine; no environment lookup or provisioning is needed for a codemode calculation.
|
|
2134
|
-
*/
|
|
2135
|
-
export const sessionsRetrieve = (options) => (options.client ?? client).get({
|
|
2136
|
-
security: [{
|
|
2137
|
-
key: 'BearerAuth',
|
|
2138
|
-
scheme: 'bearer',
|
|
2139
|
-
type: 'http'
|
|
2140
|
-
}, {
|
|
2141
|
-
key: 'ApiKeyAuth',
|
|
2142
|
-
name: 'X-API-Key',
|
|
2143
|
-
type: 'apiKey'
|
|
2144
|
-
}],
|
|
2145
|
-
url: '/agent/v1/sessions/{session_id}',
|
|
2146
|
-
...options
|
|
2147
|
-
});
|
|
2148
|
-
/**
|
|
2149
|
-
* Update session
|
|
2150
|
-
*
|
|
2151
|
-
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.
|
|
2152
|
-
*/
|
|
2153
|
-
export const sessionsUpdate = (options) => (options.client ?? client).post({
|
|
2154
|
-
security: [{
|
|
2155
|
-
key: 'BearerAuth',
|
|
2156
|
-
scheme: 'bearer',
|
|
2157
|
-
type: 'http'
|
|
2158
|
-
}, {
|
|
2159
|
-
key: 'ApiKeyAuth',
|
|
2160
|
-
name: 'X-API-Key',
|
|
2161
|
-
type: 'apiKey'
|
|
2162
|
-
}],
|
|
2163
|
-
url: '/agent/v1/sessions/{session_id}',
|
|
2164
|
-
...options,
|
|
2165
|
-
headers: {
|
|
2166
|
-
'Content-Type': 'application/json',
|
|
2167
|
-
...options.headers
|
|
2168
|
-
}
|
|
2169
|
-
});
|
|
2170
2617
|
/**
|
|
2171
2618
|
* Archive session
|
|
2172
2619
|
*
|
|
@@ -2188,7 +2635,7 @@ export const sessionsArchive = (options) => (options.client ?? client).post({
|
|
|
2188
2635
|
/**
|
|
2189
2636
|
* List session events
|
|
2190
2637
|
*
|
|
2191
|
-
* 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.
|
|
2638
|
+
* 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.
|
|
2192
2639
|
*/
|
|
2193
2640
|
export const sessionsEventsList = (options) => (options.client ?? client).get({
|
|
2194
2641
|
security: [{
|
|
@@ -2206,7 +2653,7 @@ export const sessionsEventsList = (options) => (options.client ?? client).get({
|
|
|
2206
2653
|
/**
|
|
2207
2654
|
* Send session events
|
|
2208
2655
|
*
|
|
2209
|
-
* 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.
|
|
2656
|
+
* 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.
|
|
2210
2657
|
*/
|
|
2211
2658
|
export const sessionsEventsSend = (options) => (options.client ?? client).post({
|
|
2212
2659
|
security: [{
|
|
@@ -2696,105 +3143,277 @@ export const deploymentsRun = (options) => (options.client ?? client).post({
|
|
|
2696
3143
|
...options
|
|
2697
3144
|
});
|
|
2698
3145
|
/**
|
|
2699
|
-
*
|
|
3146
|
+
* List skills
|
|
2700
3147
|
*
|
|
2701
|
-
*
|
|
3148
|
+
* List the skills uploaded to your organization, newest first, in pages of at most 100 (default 20). Use it to find a skill id before reading, versioning or deleting it. Only source=custom has content; source=anthropic returns an empty list. Pass next_page from the response as page to read the next page; a null next_page means the end.
|
|
2702
3149
|
*/
|
|
2703
|
-
export const
|
|
3150
|
+
export const skillsList = (options) => (options?.client ?? client).get({
|
|
2704
3151
|
security: [{
|
|
2705
|
-
key: '
|
|
3152
|
+
key: 'BearerAuth',
|
|
2706
3153
|
scheme: 'bearer',
|
|
2707
3154
|
type: 'http'
|
|
3155
|
+
}, {
|
|
3156
|
+
key: 'ApiKeyAuth',
|
|
3157
|
+
name: 'X-API-Key',
|
|
3158
|
+
type: 'apiKey'
|
|
2708
3159
|
}],
|
|
2709
|
-
url: '/
|
|
3160
|
+
url: '/agent/v1/skills',
|
|
2710
3161
|
...options
|
|
2711
3162
|
});
|
|
2712
3163
|
/**
|
|
2713
|
-
*
|
|
3164
|
+
* Create skill
|
|
2714
3165
|
*
|
|
2715
|
-
*
|
|
3166
|
+
* Upload a skill: a directory that contains SKILL.md, which the agent reads when it needs the skill. Send multipart/form-data with one files part per file, each file name being its path under one top-level directory (pdf/SKILL.md, pdf/scripts/run.py), and an optional display_name. SKILL.md frontmatter needs a description; name defaults to the directory name. Limits: 8 MB in total, at most 200 files, no .. segments, absolute paths or empty names; a violation returns 400 naming the path or field. The upload creates the skill and its first version, and versions are immutable. Attach the skill to an agent with `skills` on the agent.
|
|
2716
3167
|
*/
|
|
2717
|
-
export const
|
|
3168
|
+
export const skillsCreate = (options) => (options.client ?? client).post({
|
|
3169
|
+
...formDataBodySerializer,
|
|
2718
3170
|
security: [{
|
|
2719
|
-
key: '
|
|
3171
|
+
key: 'BearerAuth',
|
|
2720
3172
|
scheme: 'bearer',
|
|
2721
3173
|
type: 'http'
|
|
3174
|
+
}, {
|
|
3175
|
+
key: 'ApiKeyAuth',
|
|
3176
|
+
name: 'X-API-Key',
|
|
3177
|
+
type: 'apiKey'
|
|
2722
3178
|
}],
|
|
2723
|
-
url: '/
|
|
3179
|
+
url: '/agent/v1/skills',
|
|
2724
3180
|
...options,
|
|
2725
3181
|
headers: {
|
|
2726
|
-
'Content-Type':
|
|
3182
|
+
'Content-Type': null,
|
|
2727
3183
|
...options.headers
|
|
2728
3184
|
}
|
|
2729
3185
|
});
|
|
2730
3186
|
/**
|
|
2731
|
-
*
|
|
3187
|
+
* Delete skill
|
|
2732
3188
|
*
|
|
2733
|
-
*
|
|
3189
|
+
* Delete a skill that has no live versions. A skill that still has versions returns 409 Delete all versions first; remove each with skills.versions.delete, then call this. Returns {id, type: skill_deleted}. skill_id comes from skills.create or skills.list.
|
|
2734
3190
|
*/
|
|
2735
|
-
export const
|
|
3191
|
+
export const skillsDelete = (options) => (options.client ?? client).delete({
|
|
2736
3192
|
security: [{
|
|
2737
|
-
key: '
|
|
3193
|
+
key: 'BearerAuth',
|
|
2738
3194
|
scheme: 'bearer',
|
|
2739
3195
|
type: 'http'
|
|
3196
|
+
}, {
|
|
3197
|
+
key: 'ApiKeyAuth',
|
|
3198
|
+
name: 'X-API-Key',
|
|
3199
|
+
type: 'apiKey'
|
|
2740
3200
|
}],
|
|
2741
|
-
url: '/
|
|
3201
|
+
url: '/agent/v1/skills/{skill_id}',
|
|
2742
3202
|
...options
|
|
2743
3203
|
});
|
|
2744
3204
|
/**
|
|
2745
|
-
*
|
|
3205
|
+
* Get skill
|
|
2746
3206
|
*
|
|
2747
|
-
*
|
|
3207
|
+
* Read one skill by id: its display_name, source and latest_version_id. skill_id comes from skills.create or skills.list. A skill of another organization, or a deleted one, returns 404 Skill not found.
|
|
2748
3208
|
*/
|
|
2749
|
-
export const
|
|
3209
|
+
export const skillsRetrieve = (options) => (options.client ?? client).get({
|
|
2750
3210
|
security: [{
|
|
2751
|
-
key: '
|
|
3211
|
+
key: 'BearerAuth',
|
|
2752
3212
|
scheme: 'bearer',
|
|
2753
3213
|
type: 'http'
|
|
3214
|
+
}, {
|
|
3215
|
+
key: 'ApiKeyAuth',
|
|
3216
|
+
name: 'X-API-Key',
|
|
3217
|
+
type: 'apiKey'
|
|
2754
3218
|
}],
|
|
2755
|
-
url: '/
|
|
2756
|
-
...options
|
|
2757
|
-
headers: {
|
|
2758
|
-
'Content-Type': 'application/json',
|
|
2759
|
-
...options.headers
|
|
2760
|
-
}
|
|
3219
|
+
url: '/agent/v1/skills/{skill_id}',
|
|
3220
|
+
...options
|
|
2761
3221
|
});
|
|
2762
3222
|
/**
|
|
2763
|
-
*
|
|
3223
|
+
* List skill versions
|
|
2764
3224
|
*
|
|
2765
|
-
*
|
|
3225
|
+
* List the live versions of one skill, newest first, in pages of at most 100 (default 20). Each item carries the name and description read from the SKILL.md of that version. Pass next_page from the response as page to read the next page; a null next_page means the end.
|
|
2766
3226
|
*/
|
|
2767
|
-
export const
|
|
3227
|
+
export const skillsVersionsList = (options) => (options.client ?? client).get({
|
|
2768
3228
|
security: [{
|
|
2769
|
-
key: '
|
|
3229
|
+
key: 'BearerAuth',
|
|
2770
3230
|
scheme: 'bearer',
|
|
2771
3231
|
type: 'http'
|
|
3232
|
+
}, {
|
|
3233
|
+
key: 'ApiKeyAuth',
|
|
3234
|
+
name: 'X-API-Key',
|
|
3235
|
+
type: 'apiKey'
|
|
2772
3236
|
}],
|
|
2773
|
-
url: '/
|
|
3237
|
+
url: '/agent/v1/skills/{skill_id}/versions',
|
|
2774
3238
|
...options
|
|
2775
3239
|
});
|
|
2776
3240
|
/**
|
|
2777
|
-
*
|
|
3241
|
+
* Create skill version
|
|
2778
3242
|
*
|
|
2779
|
-
*
|
|
3243
|
+
* Upload a new version of a skill with the same multipart/form-data shape and limits as skills.create (8 MB, 200 files, one top-level directory containing SKILL.md). The SKILL.md name must equal the name of the skill; a different name returns 400. The new version becomes latest_version_id of the skill, and earlier versions stay unchanged because versions are immutable. Attach it to an agent with `skills` on the agent.
|
|
2780
3244
|
*/
|
|
2781
|
-
export const
|
|
3245
|
+
export const skillsVersionsCreate = (options) => (options.client ?? client).post({
|
|
3246
|
+
...formDataBodySerializer,
|
|
2782
3247
|
security: [{
|
|
2783
|
-
key: '
|
|
3248
|
+
key: 'BearerAuth',
|
|
2784
3249
|
scheme: 'bearer',
|
|
2785
3250
|
type: 'http'
|
|
3251
|
+
}, {
|
|
3252
|
+
key: 'ApiKeyAuth',
|
|
3253
|
+
name: 'X-API-Key',
|
|
3254
|
+
type: 'apiKey'
|
|
2786
3255
|
}],
|
|
2787
|
-
url: '/
|
|
2788
|
-
...options
|
|
3256
|
+
url: '/agent/v1/skills/{skill_id}/versions',
|
|
3257
|
+
...options,
|
|
3258
|
+
headers: {
|
|
3259
|
+
'Content-Type': null,
|
|
3260
|
+
...options.headers
|
|
3261
|
+
}
|
|
2789
3262
|
});
|
|
2790
3263
|
/**
|
|
2791
|
-
*
|
|
3264
|
+
* Delete skill version
|
|
2792
3265
|
*
|
|
2793
|
-
*
|
|
3266
|
+
* Soft-delete one version of a skill so it can no longer be read or downloaded; latest_version_id of the skill falls back to the newest remaining version. Returns {id, type: skill_version_deleted}. A skill can be deleted only after all of its versions are deleted.
|
|
2794
3267
|
*/
|
|
2795
|
-
export const
|
|
3268
|
+
export const skillsVersionsDelete = (options) => (options.client ?? client).delete({
|
|
2796
3269
|
security: [{
|
|
2797
|
-
key: '
|
|
3270
|
+
key: 'BearerAuth',
|
|
3271
|
+
scheme: 'bearer',
|
|
3272
|
+
type: 'http'
|
|
3273
|
+
}, {
|
|
3274
|
+
key: 'ApiKeyAuth',
|
|
3275
|
+
name: 'X-API-Key',
|
|
3276
|
+
type: 'apiKey'
|
|
3277
|
+
}],
|
|
3278
|
+
url: '/agent/v1/skills/{skill_id}/versions/{version}',
|
|
3279
|
+
...options
|
|
3280
|
+
});
|
|
3281
|
+
/**
|
|
3282
|
+
* Get skill version
|
|
3283
|
+
*
|
|
3284
|
+
* Read one version of a skill: its name, description and created_at as read from SKILL.md. version is the id returned by skills.versions.create or skills.versions.list. A deleted or unknown version returns 404 Skill version not found.
|
|
3285
|
+
*/
|
|
3286
|
+
export const skillsVersionsRetrieve = (options) => (options.client ?? client).get({
|
|
3287
|
+
security: [{
|
|
3288
|
+
key: 'BearerAuth',
|
|
3289
|
+
scheme: 'bearer',
|
|
3290
|
+
type: 'http'
|
|
3291
|
+
}, {
|
|
3292
|
+
key: 'ApiKeyAuth',
|
|
3293
|
+
name: 'X-API-Key',
|
|
3294
|
+
type: 'apiKey'
|
|
3295
|
+
}],
|
|
3296
|
+
url: '/agent/v1/skills/{skill_id}/versions/{version}',
|
|
3297
|
+
...options
|
|
3298
|
+
});
|
|
3299
|
+
/**
|
|
3300
|
+
* Download skill version
|
|
3301
|
+
*
|
|
3302
|
+
* Download the content of one version as a zip archive (application/zip): the uploaded directory with its top-level folder and every file. version is the id returned by skills.versions.create or skills.versions.list; a deleted version returns 404.
|
|
3303
|
+
*/
|
|
3304
|
+
export const skillsVersionsDownload = (options) => (options.client ?? client).get({
|
|
3305
|
+
security: [{
|
|
3306
|
+
key: 'BearerAuth',
|
|
3307
|
+
scheme: 'bearer',
|
|
3308
|
+
type: 'http'
|
|
3309
|
+
}, {
|
|
3310
|
+
key: 'ApiKeyAuth',
|
|
3311
|
+
name: 'X-API-Key',
|
|
3312
|
+
type: 'apiKey'
|
|
3313
|
+
}],
|
|
3314
|
+
url: '/agent/v1/skills/{skill_id}/versions/{version}/content',
|
|
3315
|
+
...options
|
|
3316
|
+
});
|
|
3317
|
+
/**
|
|
3318
|
+
* Get account subdomain
|
|
3319
|
+
*
|
|
3320
|
+
* Return the account subdomain used in every Worker URL. A default is created on first use.
|
|
3321
|
+
*/
|
|
3322
|
+
export const applicationGetSubdomain = (options) => (options?.client ?? client).get({
|
|
3323
|
+
security: [{
|
|
3324
|
+
key: 'application-bearerAuth',
|
|
3325
|
+
scheme: 'bearer',
|
|
3326
|
+
type: 'http'
|
|
3327
|
+
}],
|
|
3328
|
+
url: '/application/v1/subdomain',
|
|
3329
|
+
...options
|
|
3330
|
+
});
|
|
3331
|
+
/**
|
|
3332
|
+
* Change account subdomain
|
|
3333
|
+
*
|
|
3334
|
+
* Change the account subdomain. Every Worker moves to the new address at once; old addresses stop resolving.
|
|
3335
|
+
*/
|
|
3336
|
+
export const applicationPutSubdomain = (options) => (options.client ?? client).put({
|
|
3337
|
+
security: [{
|
|
3338
|
+
key: 'application-bearerAuth',
|
|
3339
|
+
scheme: 'bearer',
|
|
3340
|
+
type: 'http'
|
|
3341
|
+
}],
|
|
3342
|
+
url: '/application/v1/subdomain',
|
|
3343
|
+
...options,
|
|
3344
|
+
headers: {
|
|
3345
|
+
'Content-Type': 'application/json',
|
|
3346
|
+
...options.headers
|
|
3347
|
+
}
|
|
3348
|
+
});
|
|
3349
|
+
/**
|
|
3350
|
+
* List Workers
|
|
3351
|
+
*
|
|
3352
|
+
* List Workers in your account. Filter by status or by label with label.<key>=<value>.
|
|
3353
|
+
*/
|
|
3354
|
+
export const applicationListWorkers = (options) => (options?.client ?? client).get({
|
|
3355
|
+
security: [{
|
|
3356
|
+
key: 'application-bearerAuth',
|
|
3357
|
+
scheme: 'bearer',
|
|
3358
|
+
type: 'http'
|
|
3359
|
+
}],
|
|
3360
|
+
url: '/application/v1/workers',
|
|
3361
|
+
...options
|
|
3362
|
+
});
|
|
3363
|
+
/**
|
|
3364
|
+
* Create Worker
|
|
3365
|
+
*
|
|
3366
|
+
* Create a Worker. It serves nothing until a version is deployed.
|
|
3367
|
+
*/
|
|
3368
|
+
export const applicationCreateWorker = (options) => (options.client ?? client).post({
|
|
3369
|
+
security: [{
|
|
3370
|
+
key: 'application-bearerAuth',
|
|
3371
|
+
scheme: 'bearer',
|
|
3372
|
+
type: 'http'
|
|
3373
|
+
}],
|
|
3374
|
+
url: '/application/v1/workers',
|
|
3375
|
+
...options,
|
|
3376
|
+
headers: {
|
|
3377
|
+
'Content-Type': 'application/json',
|
|
3378
|
+
...options.headers
|
|
3379
|
+
}
|
|
3380
|
+
});
|
|
3381
|
+
/**
|
|
3382
|
+
* Delete Worker
|
|
3383
|
+
*
|
|
3384
|
+
* Soft-delete a Worker. Unlike Cloudflare, deletion is reversible: it stops serving at once and can be restored with RestoreWorker for 7 days, after which it is purged.
|
|
3385
|
+
*/
|
|
3386
|
+
export const applicationDeleteWorker = (options) => (options.client ?? client).delete({
|
|
3387
|
+
security: [{
|
|
3388
|
+
key: 'application-bearerAuth',
|
|
3389
|
+
scheme: 'bearer',
|
|
3390
|
+
type: 'http'
|
|
3391
|
+
}],
|
|
3392
|
+
url: '/application/v1/workers/{worker_id}',
|
|
3393
|
+
...options
|
|
3394
|
+
});
|
|
3395
|
+
/**
|
|
3396
|
+
* Get Worker
|
|
3397
|
+
*
|
|
3398
|
+
* Get a Worker. expand returns related objects in the same response.
|
|
3399
|
+
*/
|
|
3400
|
+
export const applicationGetWorker = (options) => (options.client ?? client).get({
|
|
3401
|
+
security: [{
|
|
3402
|
+
key: 'application-bearerAuth',
|
|
3403
|
+
scheme: 'bearer',
|
|
3404
|
+
type: 'http'
|
|
3405
|
+
}],
|
|
3406
|
+
url: '/application/v1/workers/{worker_id}',
|
|
3407
|
+
...options
|
|
3408
|
+
});
|
|
3409
|
+
/**
|
|
3410
|
+
* Update Worker
|
|
3411
|
+
*
|
|
3412
|
+
* Change name, tags, observability, subdomain or labels. Omitted fields stay unchanged.
|
|
3413
|
+
*/
|
|
3414
|
+
export const applicationUpdateWorker = (options) => (options.client ?? client).patch({
|
|
3415
|
+
security: [{
|
|
3416
|
+
key: 'application-bearerAuth',
|
|
2798
3417
|
scheme: 'bearer',
|
|
2799
3418
|
type: 'http'
|
|
2800
3419
|
}],
|
|
@@ -2851,6 +3470,20 @@ export const applicationCreateVersion = (options) => (options.client ?? client).
|
|
|
2851
3470
|
...options.headers
|
|
2852
3471
|
}
|
|
2853
3472
|
});
|
|
3473
|
+
/**
|
|
3474
|
+
* Get version asset manifest
|
|
3475
|
+
*
|
|
3476
|
+
* 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.
|
|
3477
|
+
*/
|
|
3478
|
+
export const applicationGetVersionAssetManifest = (options) => (options.client ?? client).get({
|
|
3479
|
+
security: [{
|
|
3480
|
+
key: 'application-bearerAuth',
|
|
3481
|
+
scheme: 'bearer',
|
|
3482
|
+
type: 'http'
|
|
3483
|
+
}],
|
|
3484
|
+
url: '/application/v1/workers/{worker_id}/versions/{version_id}/assets/manifest',
|
|
3485
|
+
...options
|
|
3486
|
+
});
|
|
2854
3487
|
/**
|
|
2855
3488
|
* Get version
|
|
2856
3489
|
*
|
|
@@ -3113,9 +3746,9 @@ export const automationActionsCreate = (options) => (options.client ?? client).p
|
|
|
3113
3746
|
}
|
|
3114
3747
|
});
|
|
3115
3748
|
/**
|
|
3116
|
-
* Get an
|
|
3749
|
+
* Get an Action with its current input and output JSON Schemas
|
|
3117
3750
|
*
|
|
3118
|
-
* Read the
|
|
3751
|
+
* 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.
|
|
3119
3752
|
*/
|
|
3120
3753
|
export const automationActionsGet = (options) => (options.client ?? client).get({
|
|
3121
3754
|
security: [{
|
|
@@ -3313,7 +3946,7 @@ export const automationScriptsList = (options) => (options?.client ?? client).ge
|
|
|
3313
3946
|
/**
|
|
3314
3947
|
* Create a script
|
|
3315
3948
|
*
|
|
3316
|
-
* 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
|
|
3949
|
+
* 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.
|
|
3317
3950
|
*/
|
|
3318
3951
|
export const automationScriptsCreate = (options) => (options.client ?? client).post({
|
|
3319
3952
|
security: [{
|
|
@@ -3353,7 +3986,7 @@ export const automationScriptsGet = (options) => (options.client ?? client).get(
|
|
|
3353
3986
|
/**
|
|
3354
3987
|
* Update a script draft
|
|
3355
3988
|
*
|
|
3356
|
-
* Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision.
|
|
3989
|
+
* 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.
|
|
3357
3990
|
*/
|
|
3358
3991
|
export const automationScriptsPatch = (options) => (options.client ?? client).patch({
|
|
3359
3992
|
security: [{
|
|
@@ -3576,7 +4209,7 @@ export const automationWorkflowsList = (options) => (options?.client ?? client).
|
|
|
3576
4209
|
/**
|
|
3577
4210
|
* Create a workflow
|
|
3578
4211
|
*
|
|
3579
|
-
* Save a YAML workflow as an editable draft without publishing or starting a run. Choose your own namespace without registering it first; praxis is
|
|
4212
|
+
* 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.
|
|
3580
4213
|
*/
|
|
3581
4214
|
export const automationWorkflowsCreate = (options) => (options.client ?? client).post({
|
|
3582
4215
|
security: [{
|
|
@@ -3906,9 +4539,9 @@ export const automationRunsList = (options) => (options?.client ?? client).get({
|
|
|
3906
4539
|
...options
|
|
3907
4540
|
});
|
|
3908
4541
|
/**
|
|
3909
|
-
*
|
|
4542
|
+
* Run a published target or execute draft source
|
|
3910
4543
|
*
|
|
3911
|
-
* 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
|
|
4544
|
+
* 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.
|
|
3912
4545
|
*/
|
|
3913
4546
|
export const automationRunsCreate = (options) => (options.client ?? client).post({
|
|
3914
4547
|
security: [{
|
|
@@ -4534,7 +5167,7 @@ export const databaseListTables = (options) => (options.client ?? client).get({
|
|
|
4534
5167
|
/**
|
|
4535
5168
|
* Create table
|
|
4536
5169
|
*
|
|
4537
|
-
* 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.
|
|
5170
|
+
* 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.
|
|
4538
5171
|
*/
|
|
4539
5172
|
export const databaseCreateTable = (options) => (options.client ?? client).post({
|
|
4540
5173
|
security: [{
|
|
@@ -4598,7 +5231,7 @@ export const databaseUpdateTable = (options) => (options.client ?? client).patch
|
|
|
4598
5231
|
/**
|
|
4599
5232
|
* Add field
|
|
4600
5233
|
*
|
|
4601
|
-
* 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.
|
|
5234
|
+
* 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.
|
|
4602
5235
|
*/
|
|
4603
5236
|
export const databaseAddField = (options) => (options.client ?? client).post({
|
|
4604
5237
|
security: [{
|
|
@@ -4676,7 +5309,7 @@ export const databaseDelete = (options) => (options.client ?? client).delete({
|
|
|
4676
5309
|
/**
|
|
4677
5310
|
* Select rows
|
|
4678
5311
|
*
|
|
4679
|
-
* 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.
|
|
5312
|
+
* 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.
|
|
4680
5313
|
*/
|
|
4681
5314
|
export const databaseSelect = (options) => (options.client ?? client).get({
|
|
4682
5315
|
security: [{
|
|
@@ -4690,7 +5323,7 @@ export const databaseSelect = (options) => (options.client ?? client).get({
|
|
|
4690
5323
|
/**
|
|
4691
5324
|
* Count rows
|
|
4692
5325
|
*
|
|
4693
|
-
* 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.
|
|
5326
|
+
* 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.
|
|
4694
5327
|
*/
|
|
4695
5328
|
export const databaseHead = (options) => (options.client ?? client).head({
|
|
4696
5329
|
security: [{
|
|
@@ -4724,7 +5357,7 @@ export const databaseUpdate = (options) => (options.client ?? client).patch({
|
|
|
4724
5357
|
*
|
|
4725
5358
|
* 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.
|
|
4726
5359
|
* Rows are filled to the union of their keys with null; send Prefer: missing=default to use field defaults for missing keys.
|
|
4727
|
-
* 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.
|
|
5360
|
+
* 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.
|
|
4728
5361
|
*/
|
|
4729
5362
|
export const databaseInsert = (options) => (options.client ?? client).post({
|
|
4730
5363
|
security: [{
|
|
@@ -5510,7 +6143,7 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
|
|
|
5510
6143
|
/**
|
|
5511
6144
|
* Create sandbox (v2)
|
|
5512
6145
|
*
|
|
5513
|
-
*
|
|
6146
|
+
* Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
5514
6147
|
*/
|
|
5515
6148
|
export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
|
|
5516
6149
|
security: [
|
|
@@ -5551,7 +6184,7 @@ export const postSandboxV1Sandboxes = (options) => (options.client ?? client).po
|
|
|
5551
6184
|
/**
|
|
5552
6185
|
* Sandbox metrics
|
|
5553
6186
|
*
|
|
5554
|
-
* Read CPU, memory and disk usage over
|
|
6187
|
+
* 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.
|
|
5555
6188
|
*/
|
|
5556
6189
|
export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.client ?? client).get({
|
|
5557
6190
|
security: [
|
|
@@ -5588,7 +6221,7 @@ export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.cli
|
|
|
5588
6221
|
/**
|
|
5589
6222
|
* Pause sandbox
|
|
5590
6223
|
*
|
|
5591
|
-
*
|
|
6224
|
+
* 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.
|
|
5592
6225
|
*/
|
|
5593
6226
|
export const postSandboxV1SandboxesBySandboxIdPause = (options) => (options.client ?? client).post({
|
|
5594
6227
|
security: [
|
|
@@ -5670,7 +6303,7 @@ export const postSandboxV1SandboxesBySandboxIdTimeout = (options) => (options.cl
|
|
|
5670
6303
|
/**
|
|
5671
6304
|
* Connect sandbox (v2)
|
|
5672
6305
|
*
|
|
5673
|
-
*
|
|
6306
|
+
* 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.
|
|
5674
6307
|
*/
|
|
5675
6308
|
export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.client ?? client).post({
|
|
5676
6309
|
security: [
|
|
@@ -5711,7 +6344,7 @@ export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.cl
|
|
|
5711
6344
|
/**
|
|
5712
6345
|
* List templates (v2)
|
|
5713
6346
|
*
|
|
5714
|
-
*
|
|
6347
|
+
* 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.
|
|
5715
6348
|
*/
|
|
5716
6349
|
export const getSandboxV1Templates = (options) => (options?.client ?? client).get({
|
|
5717
6350
|
security: [
|
|
@@ -6577,3 +7210,779 @@ export const vaultConnectContinue = (options) => (options.client ?? client).post
|
|
|
6577
7210
|
* 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.
|
|
6578
7211
|
*/
|
|
6579
7212
|
export const vaultConnectDeny = (options) => (options.client ?? client).post({ url: '/vault/v1/connect/{token}/deny', ...options });
|
|
7213
|
+
/**
|
|
7214
|
+
* List tickets
|
|
7215
|
+
*
|
|
7216
|
+
* 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.
|
|
7217
|
+
*/
|
|
7218
|
+
export const ticketGetTickets = (options) => (options?.client ?? client).get({
|
|
7219
|
+
security: [{
|
|
7220
|
+
key: 'BearerAuth',
|
|
7221
|
+
scheme: 'bearer',
|
|
7222
|
+
type: 'http'
|
|
7223
|
+
}, {
|
|
7224
|
+
key: 'ApiKeyAuth',
|
|
7225
|
+
name: 'X-API-Key',
|
|
7226
|
+
type: 'apiKey'
|
|
7227
|
+
}],
|
|
7228
|
+
url: '/ticket/v1/tickets',
|
|
7229
|
+
...options
|
|
7230
|
+
});
|
|
7231
|
+
/**
|
|
7232
|
+
* Create or add tickets
|
|
7233
|
+
*
|
|
7234
|
+
* 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.
|
|
7235
|
+
*/
|
|
7236
|
+
export const ticketPostTickets = (options) => (options.client ?? client).post({
|
|
7237
|
+
security: [{
|
|
7238
|
+
key: 'BearerAuth',
|
|
7239
|
+
scheme: 'bearer',
|
|
7240
|
+
type: 'http'
|
|
7241
|
+
}, {
|
|
7242
|
+
key: 'ApiKeyAuth',
|
|
7243
|
+
name: 'X-API-Key',
|
|
7244
|
+
type: 'apiKey'
|
|
7245
|
+
}],
|
|
7246
|
+
url: '/ticket/v1/tickets',
|
|
7247
|
+
...options,
|
|
7248
|
+
headers: {
|
|
7249
|
+
'Content-Type': 'application/json',
|
|
7250
|
+
...options.headers
|
|
7251
|
+
}
|
|
7252
|
+
});
|
|
7253
|
+
/**
|
|
7254
|
+
* Read tickets
|
|
7255
|
+
*
|
|
7256
|
+
* 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.
|
|
7257
|
+
*/
|
|
7258
|
+
export const ticketGetTicketsNumber = (options) => (options.client ?? client).get({
|
|
7259
|
+
security: [{
|
|
7260
|
+
key: 'BearerAuth',
|
|
7261
|
+
scheme: 'bearer',
|
|
7262
|
+
type: 'http'
|
|
7263
|
+
}, {
|
|
7264
|
+
key: 'ApiKeyAuth',
|
|
7265
|
+
name: 'X-API-Key',
|
|
7266
|
+
type: 'apiKey'
|
|
7267
|
+
}],
|
|
7268
|
+
url: '/ticket/v1/tickets/{number}',
|
|
7269
|
+
...options
|
|
7270
|
+
});
|
|
7271
|
+
/**
|
|
7272
|
+
* Update tickets
|
|
7273
|
+
*
|
|
7274
|
+
* 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.
|
|
7275
|
+
*/
|
|
7276
|
+
export const ticketPatchTicketsNumber = (options) => (options.client ?? client).patch({
|
|
7277
|
+
security: [{
|
|
7278
|
+
key: 'BearerAuth',
|
|
7279
|
+
scheme: 'bearer',
|
|
7280
|
+
type: 'http'
|
|
7281
|
+
}, {
|
|
7282
|
+
key: 'ApiKeyAuth',
|
|
7283
|
+
name: 'X-API-Key',
|
|
7284
|
+
type: 'apiKey'
|
|
7285
|
+
}],
|
|
7286
|
+
url: '/ticket/v1/tickets/{number}',
|
|
7287
|
+
...options,
|
|
7288
|
+
headers: {
|
|
7289
|
+
'Content-Type': 'application/json',
|
|
7290
|
+
...options.headers
|
|
7291
|
+
}
|
|
7292
|
+
});
|
|
7293
|
+
/**
|
|
7294
|
+
* Remove lock
|
|
7295
|
+
*
|
|
7296
|
+
* 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.
|
|
7297
|
+
*/
|
|
7298
|
+
export const ticketDeleteTicketsNumberLock = (options) => (options.client ?? client).delete({
|
|
7299
|
+
security: [{
|
|
7300
|
+
key: 'BearerAuth',
|
|
7301
|
+
scheme: 'bearer',
|
|
7302
|
+
type: 'http'
|
|
7303
|
+
}, {
|
|
7304
|
+
key: 'ApiKeyAuth',
|
|
7305
|
+
name: 'X-API-Key',
|
|
7306
|
+
type: 'apiKey'
|
|
7307
|
+
}],
|
|
7308
|
+
url: '/ticket/v1/tickets/{number}/lock',
|
|
7309
|
+
...options
|
|
7310
|
+
});
|
|
7311
|
+
/**
|
|
7312
|
+
* Update lock
|
|
7313
|
+
*
|
|
7314
|
+
* 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.
|
|
7315
|
+
*/
|
|
7316
|
+
export const ticketPutTicketsNumberLock = (options) => (options.client ?? client).put({
|
|
7317
|
+
security: [{
|
|
7318
|
+
key: 'BearerAuth',
|
|
7319
|
+
scheme: 'bearer',
|
|
7320
|
+
type: 'http'
|
|
7321
|
+
}, {
|
|
7322
|
+
key: 'ApiKeyAuth',
|
|
7323
|
+
name: 'X-API-Key',
|
|
7324
|
+
type: 'apiKey'
|
|
7325
|
+
}],
|
|
7326
|
+
url: '/ticket/v1/tickets/{number}/lock',
|
|
7327
|
+
...options,
|
|
7328
|
+
headers: {
|
|
7329
|
+
'Content-Type': 'application/json',
|
|
7330
|
+
...options.headers
|
|
7331
|
+
}
|
|
7332
|
+
});
|
|
7333
|
+
/**
|
|
7334
|
+
* List comments
|
|
7335
|
+
*
|
|
7336
|
+
* 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.
|
|
7337
|
+
*/
|
|
7338
|
+
export const ticketGetTicketsNumberComments = (options) => (options.client ?? client).get({
|
|
7339
|
+
security: [{
|
|
7340
|
+
key: 'BearerAuth',
|
|
7341
|
+
scheme: 'bearer',
|
|
7342
|
+
type: 'http'
|
|
7343
|
+
}, {
|
|
7344
|
+
key: 'ApiKeyAuth',
|
|
7345
|
+
name: 'X-API-Key',
|
|
7346
|
+
type: 'apiKey'
|
|
7347
|
+
}],
|
|
7348
|
+
url: '/ticket/v1/tickets/{number}/comments',
|
|
7349
|
+
...options
|
|
7350
|
+
});
|
|
7351
|
+
/**
|
|
7352
|
+
* Create or add comments
|
|
7353
|
+
*
|
|
7354
|
+
* 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.
|
|
7355
|
+
*/
|
|
7356
|
+
export const ticketPostTicketsNumberComments = (options) => (options.client ?? client).post({
|
|
7357
|
+
security: [{
|
|
7358
|
+
key: 'BearerAuth',
|
|
7359
|
+
scheme: 'bearer',
|
|
7360
|
+
type: 'http'
|
|
7361
|
+
}, {
|
|
7362
|
+
key: 'ApiKeyAuth',
|
|
7363
|
+
name: 'X-API-Key',
|
|
7364
|
+
type: 'apiKey'
|
|
7365
|
+
}],
|
|
7366
|
+
url: '/ticket/v1/tickets/{number}/comments',
|
|
7367
|
+
...options,
|
|
7368
|
+
headers: {
|
|
7369
|
+
'Content-Type': 'application/json',
|
|
7370
|
+
...options.headers
|
|
7371
|
+
}
|
|
7372
|
+
});
|
|
7373
|
+
/**
|
|
7374
|
+
* Remove comments
|
|
7375
|
+
*
|
|
7376
|
+
* 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.
|
|
7377
|
+
*/
|
|
7378
|
+
export const ticketDeleteCommentsId = (options) => (options.client ?? client).delete({
|
|
7379
|
+
security: [{
|
|
7380
|
+
key: 'BearerAuth',
|
|
7381
|
+
scheme: 'bearer',
|
|
7382
|
+
type: 'http'
|
|
7383
|
+
}, {
|
|
7384
|
+
key: 'ApiKeyAuth',
|
|
7385
|
+
name: 'X-API-Key',
|
|
7386
|
+
type: 'apiKey'
|
|
7387
|
+
}],
|
|
7388
|
+
url: '/ticket/v1/comments/{id}',
|
|
7389
|
+
...options
|
|
7390
|
+
});
|
|
7391
|
+
/**
|
|
7392
|
+
* Read comments
|
|
7393
|
+
*
|
|
7394
|
+
* 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.
|
|
7395
|
+
*/
|
|
7396
|
+
export const ticketGetCommentsId = (options) => (options.client ?? client).get({
|
|
7397
|
+
security: [{
|
|
7398
|
+
key: 'BearerAuth',
|
|
7399
|
+
scheme: 'bearer',
|
|
7400
|
+
type: 'http'
|
|
7401
|
+
}, {
|
|
7402
|
+
key: 'ApiKeyAuth',
|
|
7403
|
+
name: 'X-API-Key',
|
|
7404
|
+
type: 'apiKey'
|
|
7405
|
+
}],
|
|
7406
|
+
url: '/ticket/v1/comments/{id}',
|
|
7407
|
+
...options
|
|
7408
|
+
});
|
|
7409
|
+
/**
|
|
7410
|
+
* Update comments
|
|
7411
|
+
*
|
|
7412
|
+
* 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.
|
|
7413
|
+
*/
|
|
7414
|
+
export const ticketPatchCommentsId = (options) => (options.client ?? client).patch({
|
|
7415
|
+
security: [{
|
|
7416
|
+
key: 'BearerAuth',
|
|
7417
|
+
scheme: 'bearer',
|
|
7418
|
+
type: 'http'
|
|
7419
|
+
}, {
|
|
7420
|
+
key: 'ApiKeyAuth',
|
|
7421
|
+
name: 'X-API-Key',
|
|
7422
|
+
type: 'apiKey'
|
|
7423
|
+
}],
|
|
7424
|
+
url: '/ticket/v1/comments/{id}',
|
|
7425
|
+
...options,
|
|
7426
|
+
headers: {
|
|
7427
|
+
'Content-Type': 'application/json',
|
|
7428
|
+
...options.headers
|
|
7429
|
+
}
|
|
7430
|
+
});
|
|
7431
|
+
/**
|
|
7432
|
+
* List labels
|
|
7433
|
+
*
|
|
7434
|
+
* 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.
|
|
7435
|
+
*/
|
|
7436
|
+
export const ticketGetLabels = (options) => (options?.client ?? client).get({
|
|
7437
|
+
security: [{
|
|
7438
|
+
key: 'BearerAuth',
|
|
7439
|
+
scheme: 'bearer',
|
|
7440
|
+
type: 'http'
|
|
7441
|
+
}, {
|
|
7442
|
+
key: 'ApiKeyAuth',
|
|
7443
|
+
name: 'X-API-Key',
|
|
7444
|
+
type: 'apiKey'
|
|
7445
|
+
}],
|
|
7446
|
+
url: '/ticket/v1/labels',
|
|
7447
|
+
...options
|
|
7448
|
+
});
|
|
7449
|
+
/**
|
|
7450
|
+
* Create or add labels
|
|
7451
|
+
*
|
|
7452
|
+
* 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.
|
|
7453
|
+
*/
|
|
7454
|
+
export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
7455
|
+
security: [{
|
|
7456
|
+
key: 'BearerAuth',
|
|
7457
|
+
scheme: 'bearer',
|
|
7458
|
+
type: 'http'
|
|
7459
|
+
}, {
|
|
7460
|
+
key: 'ApiKeyAuth',
|
|
7461
|
+
name: 'X-API-Key',
|
|
7462
|
+
type: 'apiKey'
|
|
7463
|
+
}],
|
|
7464
|
+
url: '/ticket/v1/labels',
|
|
7465
|
+
...options,
|
|
7466
|
+
headers: {
|
|
7467
|
+
'Content-Type': 'application/json',
|
|
7468
|
+
...options.headers
|
|
7469
|
+
}
|
|
7470
|
+
});
|
|
7471
|
+
/**
|
|
7472
|
+
* Remove labels
|
|
7473
|
+
*
|
|
7474
|
+
* 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.
|
|
7475
|
+
*/
|
|
7476
|
+
export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
|
|
7477
|
+
security: [{
|
|
7478
|
+
key: 'BearerAuth',
|
|
7479
|
+
scheme: 'bearer',
|
|
7480
|
+
type: 'http'
|
|
7481
|
+
}, {
|
|
7482
|
+
key: 'ApiKeyAuth',
|
|
7483
|
+
name: 'X-API-Key',
|
|
7484
|
+
type: 'apiKey'
|
|
7485
|
+
}],
|
|
7486
|
+
url: '/ticket/v1/labels/{name}',
|
|
7487
|
+
...options
|
|
7488
|
+
});
|
|
7489
|
+
/**
|
|
7490
|
+
* Update labels
|
|
7491
|
+
*
|
|
7492
|
+
* 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.
|
|
7493
|
+
*/
|
|
7494
|
+
export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
|
|
7495
|
+
security: [{
|
|
7496
|
+
key: 'BearerAuth',
|
|
7497
|
+
scheme: 'bearer',
|
|
7498
|
+
type: 'http'
|
|
7499
|
+
}, {
|
|
7500
|
+
key: 'ApiKeyAuth',
|
|
7501
|
+
name: 'X-API-Key',
|
|
7502
|
+
type: 'apiKey'
|
|
7503
|
+
}],
|
|
7504
|
+
url: '/ticket/v1/labels/{name}',
|
|
7505
|
+
...options,
|
|
7506
|
+
headers: {
|
|
7507
|
+
'Content-Type': 'application/json',
|
|
7508
|
+
...options.headers
|
|
7509
|
+
}
|
|
7510
|
+
});
|
|
7511
|
+
/**
|
|
7512
|
+
* Read types
|
|
7513
|
+
*
|
|
7514
|
+
* 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.
|
|
7515
|
+
*/
|
|
7516
|
+
export const ticketGetTypes = (options) => (options?.client ?? client).get({
|
|
7517
|
+
security: [{
|
|
7518
|
+
key: 'BearerAuth',
|
|
7519
|
+
scheme: 'bearer',
|
|
7520
|
+
type: 'http'
|
|
7521
|
+
}, {
|
|
7522
|
+
key: 'ApiKeyAuth',
|
|
7523
|
+
name: 'X-API-Key',
|
|
7524
|
+
type: 'apiKey'
|
|
7525
|
+
}],
|
|
7526
|
+
url: '/ticket/v1/types',
|
|
7527
|
+
...options
|
|
7528
|
+
});
|
|
7529
|
+
/**
|
|
7530
|
+
* List milestones
|
|
7531
|
+
*
|
|
7532
|
+
* 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.
|
|
7533
|
+
*/
|
|
7534
|
+
export const ticketGetMilestones = (options) => (options?.client ?? client).get({
|
|
7535
|
+
security: [{
|
|
7536
|
+
key: 'BearerAuth',
|
|
7537
|
+
scheme: 'bearer',
|
|
7538
|
+
type: 'http'
|
|
7539
|
+
}, {
|
|
7540
|
+
key: 'ApiKeyAuth',
|
|
7541
|
+
name: 'X-API-Key',
|
|
7542
|
+
type: 'apiKey'
|
|
7543
|
+
}],
|
|
7544
|
+
url: '/ticket/v1/milestones',
|
|
7545
|
+
...options
|
|
7546
|
+
});
|
|
7547
|
+
/**
|
|
7548
|
+
* Create or add milestones
|
|
7549
|
+
*
|
|
7550
|
+
* 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.
|
|
7551
|
+
*/
|
|
7552
|
+
export const ticketPostMilestones = (options) => (options.client ?? client).post({
|
|
7553
|
+
security: [{
|
|
7554
|
+
key: 'BearerAuth',
|
|
7555
|
+
scheme: 'bearer',
|
|
7556
|
+
type: 'http'
|
|
7557
|
+
}, {
|
|
7558
|
+
key: 'ApiKeyAuth',
|
|
7559
|
+
name: 'X-API-Key',
|
|
7560
|
+
type: 'apiKey'
|
|
7561
|
+
}],
|
|
7562
|
+
url: '/ticket/v1/milestones',
|
|
7563
|
+
...options,
|
|
7564
|
+
headers: {
|
|
7565
|
+
'Content-Type': 'application/json',
|
|
7566
|
+
...options.headers
|
|
7567
|
+
}
|
|
7568
|
+
});
|
|
7569
|
+
/**
|
|
7570
|
+
* Remove milestones
|
|
7571
|
+
*
|
|
7572
|
+
* 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.
|
|
7573
|
+
*/
|
|
7574
|
+
export const ticketDeleteMilestonesNumber = (options) => (options.client ?? client).delete({
|
|
7575
|
+
security: [{
|
|
7576
|
+
key: 'BearerAuth',
|
|
7577
|
+
scheme: 'bearer',
|
|
7578
|
+
type: 'http'
|
|
7579
|
+
}, {
|
|
7580
|
+
key: 'ApiKeyAuth',
|
|
7581
|
+
name: 'X-API-Key',
|
|
7582
|
+
type: 'apiKey'
|
|
7583
|
+
}],
|
|
7584
|
+
url: '/ticket/v1/milestones/{number}',
|
|
7585
|
+
...options
|
|
7586
|
+
});
|
|
7587
|
+
/**
|
|
7588
|
+
* Read milestones
|
|
7589
|
+
*
|
|
7590
|
+
* 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.
|
|
7591
|
+
*/
|
|
7592
|
+
export const ticketGetMilestonesNumber = (options) => (options.client ?? client).get({
|
|
7593
|
+
security: [{
|
|
7594
|
+
key: 'BearerAuth',
|
|
7595
|
+
scheme: 'bearer',
|
|
7596
|
+
type: 'http'
|
|
7597
|
+
}, {
|
|
7598
|
+
key: 'ApiKeyAuth',
|
|
7599
|
+
name: 'X-API-Key',
|
|
7600
|
+
type: 'apiKey'
|
|
7601
|
+
}],
|
|
7602
|
+
url: '/ticket/v1/milestones/{number}',
|
|
7603
|
+
...options
|
|
7604
|
+
});
|
|
7605
|
+
/**
|
|
7606
|
+
* Update milestones
|
|
7607
|
+
*
|
|
7608
|
+
* 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.
|
|
7609
|
+
*/
|
|
7610
|
+
export const ticketPatchMilestonesNumber = (options) => (options.client ?? client).patch({
|
|
7611
|
+
security: [{
|
|
7612
|
+
key: 'BearerAuth',
|
|
7613
|
+
scheme: 'bearer',
|
|
7614
|
+
type: 'http'
|
|
7615
|
+
}, {
|
|
7616
|
+
key: 'ApiKeyAuth',
|
|
7617
|
+
name: 'X-API-Key',
|
|
7618
|
+
type: 'apiKey'
|
|
7619
|
+
}],
|
|
7620
|
+
url: '/ticket/v1/milestones/{number}',
|
|
7621
|
+
...options,
|
|
7622
|
+
headers: {
|
|
7623
|
+
'Content-Type': 'application/json',
|
|
7624
|
+
...options.headers
|
|
7625
|
+
}
|
|
7626
|
+
});
|
|
7627
|
+
/**
|
|
7628
|
+
* List sub tickets
|
|
7629
|
+
*
|
|
7630
|
+
* 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.
|
|
7631
|
+
*/
|
|
7632
|
+
export const ticketGetTicketsNumberSubTickets = (options) => (options.client ?? client).get({
|
|
7633
|
+
security: [{
|
|
7634
|
+
key: 'BearerAuth',
|
|
7635
|
+
scheme: 'bearer',
|
|
7636
|
+
type: 'http'
|
|
7637
|
+
}, {
|
|
7638
|
+
key: 'ApiKeyAuth',
|
|
7639
|
+
name: 'X-API-Key',
|
|
7640
|
+
type: 'apiKey'
|
|
7641
|
+
}],
|
|
7642
|
+
url: '/ticket/v1/tickets/{number}/sub_tickets',
|
|
7643
|
+
...options
|
|
7644
|
+
});
|
|
7645
|
+
/**
|
|
7646
|
+
* Create or add sub tickets
|
|
7647
|
+
*
|
|
7648
|
+
* 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.
|
|
7649
|
+
*/
|
|
7650
|
+
export const ticketPostTicketsNumberSubTickets = (options) => (options.client ?? client).post({
|
|
7651
|
+
security: [{
|
|
7652
|
+
key: 'BearerAuth',
|
|
7653
|
+
scheme: 'bearer',
|
|
7654
|
+
type: 'http'
|
|
7655
|
+
}, {
|
|
7656
|
+
key: 'ApiKeyAuth',
|
|
7657
|
+
name: 'X-API-Key',
|
|
7658
|
+
type: 'apiKey'
|
|
7659
|
+
}],
|
|
7660
|
+
url: '/ticket/v1/tickets/{number}/sub_tickets',
|
|
7661
|
+
...options,
|
|
7662
|
+
headers: {
|
|
7663
|
+
'Content-Type': 'application/json',
|
|
7664
|
+
...options.headers
|
|
7665
|
+
}
|
|
7666
|
+
});
|
|
7667
|
+
/**
|
|
7668
|
+
* Remove sub tickets
|
|
7669
|
+
*
|
|
7670
|
+
* 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.
|
|
7671
|
+
*/
|
|
7672
|
+
export const ticketDeleteTicketsNumberSubTicketsChild = (options) => (options.client ?? client).delete({
|
|
7673
|
+
security: [{
|
|
7674
|
+
key: 'BearerAuth',
|
|
7675
|
+
scheme: 'bearer',
|
|
7676
|
+
type: 'http'
|
|
7677
|
+
}, {
|
|
7678
|
+
key: 'ApiKeyAuth',
|
|
7679
|
+
name: 'X-API-Key',
|
|
7680
|
+
type: 'apiKey'
|
|
7681
|
+
}],
|
|
7682
|
+
url: '/ticket/v1/tickets/{number}/sub_tickets/{child}',
|
|
7683
|
+
...options
|
|
7684
|
+
});
|
|
7685
|
+
/**
|
|
7686
|
+
* List blocked by
|
|
7687
|
+
*
|
|
7688
|
+
* 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.
|
|
7689
|
+
*/
|
|
7690
|
+
export const ticketGetTicketsNumberDependenciesBlockedBy = (options) => (options.client ?? client).get({
|
|
7691
|
+
security: [{
|
|
7692
|
+
key: 'BearerAuth',
|
|
7693
|
+
scheme: 'bearer',
|
|
7694
|
+
type: 'http'
|
|
7695
|
+
}, {
|
|
7696
|
+
key: 'ApiKeyAuth',
|
|
7697
|
+
name: 'X-API-Key',
|
|
7698
|
+
type: 'apiKey'
|
|
7699
|
+
}],
|
|
7700
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocked_by',
|
|
7701
|
+
...options
|
|
7702
|
+
});
|
|
7703
|
+
/**
|
|
7704
|
+
* Create or add blocked by
|
|
7705
|
+
*
|
|
7706
|
+
* 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.
|
|
7707
|
+
*/
|
|
7708
|
+
export const ticketPostTicketsNumberDependenciesBlockedBy = (options) => (options.client ?? client).post({
|
|
7709
|
+
security: [{
|
|
7710
|
+
key: 'BearerAuth',
|
|
7711
|
+
scheme: 'bearer',
|
|
7712
|
+
type: 'http'
|
|
7713
|
+
}, {
|
|
7714
|
+
key: 'ApiKeyAuth',
|
|
7715
|
+
name: 'X-API-Key',
|
|
7716
|
+
type: 'apiKey'
|
|
7717
|
+
}],
|
|
7718
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocked_by',
|
|
7719
|
+
...options,
|
|
7720
|
+
headers: {
|
|
7721
|
+
'Content-Type': 'application/json',
|
|
7722
|
+
...options.headers
|
|
7723
|
+
}
|
|
7724
|
+
});
|
|
7725
|
+
/**
|
|
7726
|
+
* Remove blocked by
|
|
7727
|
+
*
|
|
7728
|
+
* 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.
|
|
7729
|
+
*/
|
|
7730
|
+
export const ticketDeleteTicketsNumberDependenciesBlockedByN = (options) => (options.client ?? client).delete({
|
|
7731
|
+
security: [{
|
|
7732
|
+
key: 'BearerAuth',
|
|
7733
|
+
scheme: 'bearer',
|
|
7734
|
+
type: 'http'
|
|
7735
|
+
}, {
|
|
7736
|
+
key: 'ApiKeyAuth',
|
|
7737
|
+
name: 'X-API-Key',
|
|
7738
|
+
type: 'apiKey'
|
|
7739
|
+
}],
|
|
7740
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocked_by/{n}',
|
|
7741
|
+
...options
|
|
7742
|
+
});
|
|
7743
|
+
/**
|
|
7744
|
+
* List relations
|
|
7745
|
+
*
|
|
7746
|
+
* 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.
|
|
7747
|
+
*/
|
|
7748
|
+
export const ticketGetTicketsNumberRelations = (options) => (options.client ?? client).get({
|
|
7749
|
+
security: [{
|
|
7750
|
+
key: 'BearerAuth',
|
|
7751
|
+
scheme: 'bearer',
|
|
7752
|
+
type: 'http'
|
|
7753
|
+
}, {
|
|
7754
|
+
key: 'ApiKeyAuth',
|
|
7755
|
+
name: 'X-API-Key',
|
|
7756
|
+
type: 'apiKey'
|
|
7757
|
+
}],
|
|
7758
|
+
url: '/ticket/v1/tickets/{number}/relations',
|
|
7759
|
+
...options
|
|
7760
|
+
});
|
|
7761
|
+
/**
|
|
7762
|
+
* Create or add relations
|
|
7763
|
+
*
|
|
7764
|
+
* 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.
|
|
7765
|
+
*/
|
|
7766
|
+
export const ticketPostTicketsNumberRelations = (options) => (options.client ?? client).post({
|
|
7767
|
+
security: [{
|
|
7768
|
+
key: 'BearerAuth',
|
|
7769
|
+
scheme: 'bearer',
|
|
7770
|
+
type: 'http'
|
|
7771
|
+
}, {
|
|
7772
|
+
key: 'ApiKeyAuth',
|
|
7773
|
+
name: 'X-API-Key',
|
|
7774
|
+
type: 'apiKey'
|
|
7775
|
+
}],
|
|
7776
|
+
url: '/ticket/v1/tickets/{number}/relations',
|
|
7777
|
+
...options,
|
|
7778
|
+
headers: {
|
|
7779
|
+
'Content-Type': 'application/json',
|
|
7780
|
+
...options.headers
|
|
7781
|
+
}
|
|
7782
|
+
});
|
|
7783
|
+
/**
|
|
7784
|
+
* Remove relations
|
|
7785
|
+
*
|
|
7786
|
+
* 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.
|
|
7787
|
+
*/
|
|
7788
|
+
export const ticketDeleteTicketsNumberRelationsN = (options) => (options.client ?? client).delete({
|
|
7789
|
+
security: [{
|
|
7790
|
+
key: 'BearerAuth',
|
|
7791
|
+
scheme: 'bearer',
|
|
7792
|
+
type: 'http'
|
|
7793
|
+
}, {
|
|
7794
|
+
key: 'ApiKeyAuth',
|
|
7795
|
+
name: 'X-API-Key',
|
|
7796
|
+
type: 'apiKey'
|
|
7797
|
+
}],
|
|
7798
|
+
url: '/ticket/v1/tickets/{number}/relations/{n}',
|
|
7799
|
+
...options
|
|
7800
|
+
});
|
|
7801
|
+
/**
|
|
7802
|
+
* List blocking
|
|
7803
|
+
*
|
|
7804
|
+
* 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.
|
|
7805
|
+
*/
|
|
7806
|
+
export const ticketGetTicketsNumberDependenciesBlocking = (options) => (options.client ?? client).get({
|
|
7807
|
+
security: [{
|
|
7808
|
+
key: 'BearerAuth',
|
|
7809
|
+
scheme: 'bearer',
|
|
7810
|
+
type: 'http'
|
|
7811
|
+
}, {
|
|
7812
|
+
key: 'ApiKeyAuth',
|
|
7813
|
+
name: 'X-API-Key',
|
|
7814
|
+
type: 'apiKey'
|
|
7815
|
+
}],
|
|
7816
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocking',
|
|
7817
|
+
...options
|
|
7818
|
+
});
|
|
7819
|
+
/**
|
|
7820
|
+
* List events
|
|
7821
|
+
*
|
|
7822
|
+
* 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.
|
|
7823
|
+
*/
|
|
7824
|
+
export const ticketGetTicketsNumberEvents = (options) => (options.client ?? client).get({
|
|
7825
|
+
security: [{
|
|
7826
|
+
key: 'BearerAuth',
|
|
7827
|
+
scheme: 'bearer',
|
|
7828
|
+
type: 'http'
|
|
7829
|
+
}, {
|
|
7830
|
+
key: 'ApiKeyAuth',
|
|
7831
|
+
name: 'X-API-Key',
|
|
7832
|
+
type: 'apiKey'
|
|
7833
|
+
}],
|
|
7834
|
+
url: '/ticket/v1/tickets/{number}/events',
|
|
7835
|
+
...options
|
|
7836
|
+
});
|
|
7837
|
+
/**
|
|
7838
|
+
* List reactions
|
|
7839
|
+
*
|
|
7840
|
+
* 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.
|
|
7841
|
+
*/
|
|
7842
|
+
export const ticketGetTicketsNumberReactions = (options) => (options.client ?? client).get({
|
|
7843
|
+
security: [{
|
|
7844
|
+
key: 'BearerAuth',
|
|
7845
|
+
scheme: 'bearer',
|
|
7846
|
+
type: 'http'
|
|
7847
|
+
}, {
|
|
7848
|
+
key: 'ApiKeyAuth',
|
|
7849
|
+
name: 'X-API-Key',
|
|
7850
|
+
type: 'apiKey'
|
|
7851
|
+
}],
|
|
7852
|
+
url: '/ticket/v1/tickets/{number}/reactions',
|
|
7853
|
+
...options
|
|
7854
|
+
});
|
|
7855
|
+
/**
|
|
7856
|
+
* Create or add reactions
|
|
7857
|
+
*
|
|
7858
|
+
* 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.
|
|
7859
|
+
*/
|
|
7860
|
+
export const ticketPostTicketsNumberReactions = (options) => (options.client ?? client).post({
|
|
7861
|
+
security: [{
|
|
7862
|
+
key: 'BearerAuth',
|
|
7863
|
+
scheme: 'bearer',
|
|
7864
|
+
type: 'http'
|
|
7865
|
+
}, {
|
|
7866
|
+
key: 'ApiKeyAuth',
|
|
7867
|
+
name: 'X-API-Key',
|
|
7868
|
+
type: 'apiKey'
|
|
7869
|
+
}],
|
|
7870
|
+
url: '/ticket/v1/tickets/{number}/reactions',
|
|
7871
|
+
...options,
|
|
7872
|
+
headers: {
|
|
7873
|
+
'Content-Type': 'application/json',
|
|
7874
|
+
...options.headers
|
|
7875
|
+
}
|
|
7876
|
+
});
|
|
7877
|
+
/**
|
|
7878
|
+
* Remove reactions
|
|
7879
|
+
*
|
|
7880
|
+
* 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.
|
|
7881
|
+
*/
|
|
7882
|
+
export const ticketDeleteTicketsNumberReactionsContent = (options) => (options.client ?? client).delete({
|
|
7883
|
+
security: [{
|
|
7884
|
+
key: 'BearerAuth',
|
|
7885
|
+
scheme: 'bearer',
|
|
7886
|
+
type: 'http'
|
|
7887
|
+
}, {
|
|
7888
|
+
key: 'ApiKeyAuth',
|
|
7889
|
+
name: 'X-API-Key',
|
|
7890
|
+
type: 'apiKey'
|
|
7891
|
+
}],
|
|
7892
|
+
url: '/ticket/v1/tickets/{number}/reactions/{content}',
|
|
7893
|
+
...options
|
|
7894
|
+
});
|
|
7895
|
+
/**
|
|
7896
|
+
* List reactions
|
|
7897
|
+
*
|
|
7898
|
+
* 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.
|
|
7899
|
+
*/
|
|
7900
|
+
export const ticketGetCommentsIdReactions = (options) => (options.client ?? client).get({
|
|
7901
|
+
security: [{
|
|
7902
|
+
key: 'BearerAuth',
|
|
7903
|
+
scheme: 'bearer',
|
|
7904
|
+
type: 'http'
|
|
7905
|
+
}, {
|
|
7906
|
+
key: 'ApiKeyAuth',
|
|
7907
|
+
name: 'X-API-Key',
|
|
7908
|
+
type: 'apiKey'
|
|
7909
|
+
}],
|
|
7910
|
+
url: '/ticket/v1/comments/{id}/reactions',
|
|
7911
|
+
...options
|
|
7912
|
+
});
|
|
7913
|
+
/**
|
|
7914
|
+
* Create or add reactions
|
|
7915
|
+
*
|
|
7916
|
+
* 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.
|
|
7917
|
+
*/
|
|
7918
|
+
export const ticketPostCommentsIdReactions = (options) => (options.client ?? client).post({
|
|
7919
|
+
security: [{
|
|
7920
|
+
key: 'BearerAuth',
|
|
7921
|
+
scheme: 'bearer',
|
|
7922
|
+
type: 'http'
|
|
7923
|
+
}, {
|
|
7924
|
+
key: 'ApiKeyAuth',
|
|
7925
|
+
name: 'X-API-Key',
|
|
7926
|
+
type: 'apiKey'
|
|
7927
|
+
}],
|
|
7928
|
+
url: '/ticket/v1/comments/{id}/reactions',
|
|
7929
|
+
...options,
|
|
7930
|
+
headers: {
|
|
7931
|
+
'Content-Type': 'application/json',
|
|
7932
|
+
...options.headers
|
|
7933
|
+
}
|
|
7934
|
+
});
|
|
7935
|
+
/**
|
|
7936
|
+
* Remove reactions
|
|
7937
|
+
*
|
|
7938
|
+
* 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.
|
|
7939
|
+
*/
|
|
7940
|
+
export const ticketDeleteCommentsIdReactionsContent = (options) => (options.client ?? client).delete({
|
|
7941
|
+
security: [{
|
|
7942
|
+
key: 'BearerAuth',
|
|
7943
|
+
scheme: 'bearer',
|
|
7944
|
+
type: 'http'
|
|
7945
|
+
}, {
|
|
7946
|
+
key: 'ApiKeyAuth',
|
|
7947
|
+
name: 'X-API-Key',
|
|
7948
|
+
type: 'apiKey'
|
|
7949
|
+
}],
|
|
7950
|
+
url: '/ticket/v1/comments/{id}/reactions/{content}',
|
|
7951
|
+
...options
|
|
7952
|
+
});
|
|
7953
|
+
/**
|
|
7954
|
+
* List activity
|
|
7955
|
+
*
|
|
7956
|
+
* 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.
|
|
7957
|
+
*/
|
|
7958
|
+
export const ticketGetActivity = (options) => (options?.client ?? client).get({
|
|
7959
|
+
security: [{
|
|
7960
|
+
key: 'BearerAuth',
|
|
7961
|
+
scheme: 'bearer',
|
|
7962
|
+
type: 'http'
|
|
7963
|
+
}, {
|
|
7964
|
+
key: 'ApiKeyAuth',
|
|
7965
|
+
name: 'X-API-Key',
|
|
7966
|
+
type: 'apiKey'
|
|
7967
|
+
}],
|
|
7968
|
+
url: '/ticket/v1/activity',
|
|
7969
|
+
...options
|
|
7970
|
+
});
|
|
7971
|
+
/**
|
|
7972
|
+
* List repositories
|
|
7973
|
+
*
|
|
7974
|
+
* 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.
|
|
7975
|
+
*/
|
|
7976
|
+
export const ticketGetRepositories = (options) => (options?.client ?? client).get({
|
|
7977
|
+
security: [{
|
|
7978
|
+
key: 'BearerAuth',
|
|
7979
|
+
scheme: 'bearer',
|
|
7980
|
+
type: 'http'
|
|
7981
|
+
}, {
|
|
7982
|
+
key: 'ApiKeyAuth',
|
|
7983
|
+
name: 'X-API-Key',
|
|
7984
|
+
type: 'apiKey'
|
|
7985
|
+
}],
|
|
7986
|
+
url: '/ticket/v1/repositories',
|
|
7987
|
+
...options
|
|
7988
|
+
});
|