@deepraxis/sdk 0.1.0-dev.f119641 → 0.1.0-dev.f8a7b74
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 +217 -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 +441 -33
- package/dist/generated/sdk.gen.js +1284 -65
- package/dist/generated/types.gen.d.ts +16687 -9285
- 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 +1789 -52
- package/dist/operations.generated.js +2232 -49
- package/dist/resources.generated.d.ts +1054 -86
- package/dist/resources.generated.js +129 -0
- package/package.json +1 -1
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { formDataBodySerializer } from './client/index.js';
|
|
3
3
|
import { client } from './client.gen.js';
|
|
4
|
+
/**
|
|
5
|
+
* Unarchive Agent
|
|
6
|
+
*
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
export const unarchiveAgent = (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}/unarchive',
|
|
20
|
+
...options
|
|
21
|
+
});
|
|
4
22
|
/**
|
|
5
23
|
* Delete Run Feedback
|
|
6
24
|
*
|
|
@@ -45,6 +63,176 @@ export const setRunFeedback = (options) => (options.client ?? client).post({
|
|
|
45
63
|
...options.headers
|
|
46
64
|
}
|
|
47
65
|
});
|
|
66
|
+
/**
|
|
67
|
+
* List End Users
|
|
68
|
+
*
|
|
69
|
+
* List users who have sessions or token issuance history on a service agent.
|
|
70
|
+
*
|
|
71
|
+
* 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.
|
|
72
|
+
*/
|
|
73
|
+
export const listEndUsers = (options) => (options.client ?? client).get({
|
|
74
|
+
security: [{
|
|
75
|
+
key: 'BearerAuth',
|
|
76
|
+
scheme: 'bearer',
|
|
77
|
+
type: 'http'
|
|
78
|
+
}, {
|
|
79
|
+
key: 'ApiKeyAuth',
|
|
80
|
+
name: 'X-API-Key',
|
|
81
|
+
type: 'apiKey'
|
|
82
|
+
}],
|
|
83
|
+
url: '/agent/v1/agents/{agent_id}/end_users',
|
|
84
|
+
...options
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* Delete end-user data
|
|
88
|
+
*
|
|
89
|
+
* Delete a host application's end-user data from one service agent after explicit confirmation.
|
|
90
|
+
*
|
|
91
|
+
* 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.
|
|
92
|
+
*/
|
|
93
|
+
export const deleteEndUser = (options) => (options.client ?? client).delete({
|
|
94
|
+
security: [{
|
|
95
|
+
key: 'BearerAuth',
|
|
96
|
+
scheme: 'bearer',
|
|
97
|
+
type: 'http'
|
|
98
|
+
}, {
|
|
99
|
+
key: 'ApiKeyAuth',
|
|
100
|
+
name: 'X-API-Key',
|
|
101
|
+
type: 'apiKey'
|
|
102
|
+
}],
|
|
103
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}',
|
|
104
|
+
...options
|
|
105
|
+
});
|
|
106
|
+
/**
|
|
107
|
+
* Get End User
|
|
108
|
+
*
|
|
109
|
+
* Inspect one end user and their twenty most recently updated sessions.
|
|
110
|
+
*
|
|
111
|
+
* 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.
|
|
112
|
+
*/
|
|
113
|
+
export const getEndUser = (options) => (options.client ?? client).get({
|
|
114
|
+
security: [{
|
|
115
|
+
key: 'BearerAuth',
|
|
116
|
+
scheme: 'bearer',
|
|
117
|
+
type: 'http'
|
|
118
|
+
}, {
|
|
119
|
+
key: 'ApiKeyAuth',
|
|
120
|
+
name: 'X-API-Key',
|
|
121
|
+
type: 'apiKey'
|
|
122
|
+
}],
|
|
123
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}',
|
|
124
|
+
...options
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* Get end-user deletion
|
|
128
|
+
*
|
|
129
|
+
* Poll the latest deletion task for an end user, including after the user data has been removed.
|
|
130
|
+
*
|
|
131
|
+
* 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.
|
|
132
|
+
*/
|
|
133
|
+
export const getEndUserDeletion = (options) => (options.client ?? client).get({
|
|
134
|
+
security: [{
|
|
135
|
+
key: 'BearerAuth',
|
|
136
|
+
scheme: 'bearer',
|
|
137
|
+
type: 'http'
|
|
138
|
+
}, {
|
|
139
|
+
key: 'ApiKeyAuth',
|
|
140
|
+
name: 'X-API-Key',
|
|
141
|
+
type: 'apiKey'
|
|
142
|
+
}],
|
|
143
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/deletion',
|
|
144
|
+
...options
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* Revoke End User Tokens
|
|
148
|
+
*
|
|
149
|
+
* Revoke all issued tokens for an end user and terminate their open embed streams.
|
|
150
|
+
*
|
|
151
|
+
* 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.
|
|
152
|
+
*/
|
|
153
|
+
export const revokeEndUserTokens = (options) => (options.client ?? client).post({
|
|
154
|
+
security: [{
|
|
155
|
+
key: 'BearerAuth',
|
|
156
|
+
scheme: 'bearer',
|
|
157
|
+
type: 'http'
|
|
158
|
+
}, {
|
|
159
|
+
key: 'ApiKeyAuth',
|
|
160
|
+
name: 'X-API-Key',
|
|
161
|
+
type: 'apiKey'
|
|
162
|
+
}],
|
|
163
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/revoke_tokens',
|
|
164
|
+
...options
|
|
165
|
+
});
|
|
166
|
+
/**
|
|
167
|
+
* Block End User
|
|
168
|
+
*
|
|
169
|
+
* Block token issuance and session creation, then revoke existing tokens for an end user.
|
|
170
|
+
*
|
|
171
|
+
* 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.
|
|
172
|
+
*/
|
|
173
|
+
export const blockEndUser = (options) => (options.client ?? client).post({
|
|
174
|
+
security: [{
|
|
175
|
+
key: 'BearerAuth',
|
|
176
|
+
scheme: 'bearer',
|
|
177
|
+
type: 'http'
|
|
178
|
+
}, {
|
|
179
|
+
key: 'ApiKeyAuth',
|
|
180
|
+
name: 'X-API-Key',
|
|
181
|
+
type: 'apiKey'
|
|
182
|
+
}],
|
|
183
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/block',
|
|
184
|
+
...options
|
|
185
|
+
});
|
|
186
|
+
/**
|
|
187
|
+
* Unblock End User
|
|
188
|
+
*
|
|
189
|
+
* Allow an end user to receive new tokens and create new sessions again.
|
|
190
|
+
*
|
|
191
|
+
* 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.
|
|
192
|
+
*/
|
|
193
|
+
export const unblockEndUser = (options) => (options.client ?? client).post({
|
|
194
|
+
security: [{
|
|
195
|
+
key: 'BearerAuth',
|
|
196
|
+
scheme: 'bearer',
|
|
197
|
+
type: 'http'
|
|
198
|
+
}, {
|
|
199
|
+
key: 'ApiKeyAuth',
|
|
200
|
+
name: 'X-API-Key',
|
|
201
|
+
type: 'apiKey'
|
|
202
|
+
}],
|
|
203
|
+
url: '/agent/v1/agents/{agent_id}/end_users/{external_user_id}/unblock',
|
|
204
|
+
...options
|
|
205
|
+
});
|
|
206
|
+
/**
|
|
207
|
+
* Exchange Hosted Code
|
|
208
|
+
*
|
|
209
|
+
* Redeem a single-use hosted link credential for an end-user token.
|
|
210
|
+
*
|
|
211
|
+
* 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>"}.
|
|
212
|
+
*/
|
|
213
|
+
export const exchangeEmbedCode = (options) => (options.client ?? client).post({
|
|
214
|
+
url: '/agent/v1/embed/exchange',
|
|
215
|
+
...options,
|
|
216
|
+
headers: {
|
|
217
|
+
'Content-Type': 'application/json',
|
|
218
|
+
...options.headers
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
/**
|
|
222
|
+
* Issue anonymous visitor token
|
|
223
|
+
*
|
|
224
|
+
* Obtain a short-lived embedding token for a visitor without an account using the agent owner's publishable key.
|
|
225
|
+
*
|
|
226
|
+
* 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"}.
|
|
227
|
+
*/
|
|
228
|
+
export const createAnonymousEmbedToken = (options) => (options.client ?? client).post({
|
|
229
|
+
url: '/agent/v1/embed_tokens/anonymous',
|
|
230
|
+
...options,
|
|
231
|
+
headers: {
|
|
232
|
+
'Content-Type': 'application/json',
|
|
233
|
+
...options.headers
|
|
234
|
+
}
|
|
235
|
+
});
|
|
48
236
|
/**
|
|
49
237
|
* List Embed Tokens
|
|
50
238
|
*
|
|
@@ -70,7 +258,7 @@ export const listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
|
70
258
|
*
|
|
71
259
|
* Issue a short-lived credential on your backend for an end user of a service agent.
|
|
72
260
|
*
|
|
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.
|
|
261
|
+
* 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
262
|
*/
|
|
75
263
|
export const createEmbedToken = (options) => (options.client ?? client).post({
|
|
76
264
|
security: [{
|
|
@@ -307,7 +495,9 @@ export const computersFilesContent = (options) => (options.client ?? client).get
|
|
|
307
495
|
*
|
|
308
496
|
* Resume the computer and issue a sandbox connection.
|
|
309
497
|
*
|
|
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.
|
|
498
|
+
* 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.
|
|
499
|
+
*
|
|
500
|
+
* 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
501
|
*/
|
|
312
502
|
export const connectComputer = (options) => (options.client ?? client).post({
|
|
313
503
|
security: [{
|
|
@@ -320,6 +510,50 @@ export const connectComputer = (options) => (options.client ?? client).post({
|
|
|
320
510
|
type: 'apiKey'
|
|
321
511
|
}],
|
|
322
512
|
url: '/agent/v1/computers/{computer_id}/connect',
|
|
513
|
+
...options,
|
|
514
|
+
headers: {
|
|
515
|
+
'Content-Type': 'application/json',
|
|
516
|
+
...options.headers
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
/**
|
|
520
|
+
* Renew computer lease
|
|
521
|
+
*
|
|
522
|
+
* Extend the lease a connection holds so the full machine stays in service while the connection is open.
|
|
523
|
+
*
|
|
524
|
+
* 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.
|
|
525
|
+
*/
|
|
526
|
+
export const renewComputerLease = (options) => (options.client ?? client).post({
|
|
527
|
+
security: [{
|
|
528
|
+
key: 'BearerAuth',
|
|
529
|
+
scheme: 'bearer',
|
|
530
|
+
type: 'http'
|
|
531
|
+
}, {
|
|
532
|
+
key: 'ApiKeyAuth',
|
|
533
|
+
name: 'X-API-Key',
|
|
534
|
+
type: 'apiKey'
|
|
535
|
+
}],
|
|
536
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}/renew',
|
|
537
|
+
...options
|
|
538
|
+
});
|
|
539
|
+
/**
|
|
540
|
+
* Release computer lease
|
|
541
|
+
*
|
|
542
|
+
* Give the lease back when a connection closes so the full machine can be reclaimed without waiting for it to expire.
|
|
543
|
+
*
|
|
544
|
+
* Own-face extension. Idempotent: an unknown or already released lease succeeds as well. Foreign or absent computers return 404.
|
|
545
|
+
*/
|
|
546
|
+
export const releaseComputerLease = (options) => (options.client ?? client).delete({
|
|
547
|
+
security: [{
|
|
548
|
+
key: 'BearerAuth',
|
|
549
|
+
scheme: 'bearer',
|
|
550
|
+
type: 'http'
|
|
551
|
+
}, {
|
|
552
|
+
key: 'ApiKeyAuth',
|
|
553
|
+
name: 'X-API-Key',
|
|
554
|
+
type: 'apiKey'
|
|
555
|
+
}],
|
|
556
|
+
url: '/agent/v1/computers/{computer_id}/leases/{lease_id}',
|
|
323
557
|
...options
|
|
324
558
|
});
|
|
325
559
|
/**
|
|
@@ -508,6 +742,20 @@ export const listSessionCompactions = (options) => (options.client ?? client).ge
|
|
|
508
742
|
url: '/agent/v1/sessions/{session_id}/compactions',
|
|
509
743
|
...options
|
|
510
744
|
});
|
|
745
|
+
/**
|
|
746
|
+
* Read chat appearance
|
|
747
|
+
*
|
|
748
|
+
* 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.
|
|
749
|
+
*/
|
|
750
|
+
export const getEmbedAppearance = (options) => (options?.client ?? client).get({
|
|
751
|
+
security: [{
|
|
752
|
+
key: 'BearerAuth',
|
|
753
|
+
scheme: 'bearer',
|
|
754
|
+
type: 'http'
|
|
755
|
+
}, { name: 'Praxis-Publishable-Key', type: 'apiKey' }],
|
|
756
|
+
url: '/agent/v1/embed/appearance',
|
|
757
|
+
...options
|
|
758
|
+
});
|
|
511
759
|
/**
|
|
512
760
|
* Generate speech
|
|
513
761
|
*
|
|
@@ -835,7 +1083,7 @@ export const fileListFiles = (options) => (options?.client ?? client).get({
|
|
|
835
1083
|
/**
|
|
836
1084
|
* Upload file
|
|
837
1085
|
*
|
|
838
|
-
* Upload a file to reuse in conversations or attach to a knowledge base. Unlike OpenAI Files, uploads must be nonempty and at most
|
|
1086
|
+
* 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
1087
|
*/
|
|
840
1088
|
export const fileCreateFile = (options) => (options.client ?? client).post({
|
|
841
1089
|
...formDataBodySerializer,
|
|
@@ -876,7 +1124,7 @@ export const fileDeleteFile = (options) => (options.client ?? client).delete({
|
|
|
876
1124
|
/**
|
|
877
1125
|
* Retrieve file
|
|
878
1126
|
*
|
|
879
|
-
* Retrieve metadata for a live file owned by your tenant. Use its
|
|
1127
|
+
* 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
1128
|
*/
|
|
881
1129
|
export const fileRetrieveFile = (options) => (options.client ?? client).get({
|
|
882
1130
|
security: [{
|
|
@@ -894,7 +1142,7 @@ export const fileRetrieveFile = (options) => (options.client ?? client).get({
|
|
|
894
1142
|
/**
|
|
895
1143
|
* Retrieve file content
|
|
896
1144
|
*
|
|
897
|
-
* Download the original bytes of a live file owned by your tenant. Supply its
|
|
1145
|
+
* 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
1146
|
*/
|
|
899
1147
|
export const fileRetrieveFileContent = (options) => (options.client ?? client).get({
|
|
900
1148
|
security: [{
|
|
@@ -909,6 +1157,75 @@ export const fileRetrieveFileContent = (options) => (options.client ?? client).g
|
|
|
909
1157
|
url: '/file/v1/files/{file_id}/content',
|
|
910
1158
|
...options
|
|
911
1159
|
});
|
|
1160
|
+
/**
|
|
1161
|
+
* Create an upload
|
|
1162
|
+
*
|
|
1163
|
+
* 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.
|
|
1164
|
+
*/
|
|
1165
|
+
export const fileCreateUpload = (options) => (options.client ?? client).post({
|
|
1166
|
+
security: [{
|
|
1167
|
+
key: 'BearerAuth',
|
|
1168
|
+
scheme: 'bearer',
|
|
1169
|
+
type: 'http'
|
|
1170
|
+
}],
|
|
1171
|
+
url: '/file/v1/uploads',
|
|
1172
|
+
...options,
|
|
1173
|
+
headers: {
|
|
1174
|
+
'Content-Type': 'application/json',
|
|
1175
|
+
...options.headers
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
/**
|
|
1179
|
+
* Add an upload part
|
|
1180
|
+
*
|
|
1181
|
+
* 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.
|
|
1182
|
+
*/
|
|
1183
|
+
export const fileAddUploadPart = (options) => (options.client ?? client).post({
|
|
1184
|
+
...formDataBodySerializer,
|
|
1185
|
+
security: [{
|
|
1186
|
+
key: 'BearerAuth',
|
|
1187
|
+
scheme: 'bearer',
|
|
1188
|
+
type: 'http'
|
|
1189
|
+
}],
|
|
1190
|
+
url: '/file/v1/uploads/{upload_id}/parts',
|
|
1191
|
+
...options,
|
|
1192
|
+
headers: {
|
|
1193
|
+
'Content-Type': null,
|
|
1194
|
+
...options.headers
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
/**
|
|
1198
|
+
* Complete an upload
|
|
1199
|
+
*
|
|
1200
|
+
* 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.
|
|
1201
|
+
*/
|
|
1202
|
+
export const fileCompleteUpload = (options) => (options.client ?? client).post({
|
|
1203
|
+
security: [{
|
|
1204
|
+
key: 'BearerAuth',
|
|
1205
|
+
scheme: 'bearer',
|
|
1206
|
+
type: 'http'
|
|
1207
|
+
}],
|
|
1208
|
+
url: '/file/v1/uploads/{upload_id}/complete',
|
|
1209
|
+
...options,
|
|
1210
|
+
headers: {
|
|
1211
|
+
'Content-Type': 'application/json',
|
|
1212
|
+
...options.headers
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
/**
|
|
1216
|
+
* Cancel an upload
|
|
1217
|
+
*
|
|
1218
|
+
* 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.
|
|
1219
|
+
*/
|
|
1220
|
+
export const fileCancelUpload = (options) => (options.client ?? client).post({
|
|
1221
|
+
security: [{
|
|
1222
|
+
key: 'BearerAuth',
|
|
1223
|
+
scheme: 'bearer',
|
|
1224
|
+
type: 'http'
|
|
1225
|
+
}],
|
|
1226
|
+
url: '/file/v1/uploads/{upload_id}/cancel',
|
|
1227
|
+
...options
|
|
1228
|
+
});
|
|
912
1229
|
/**
|
|
913
1230
|
* Health Check
|
|
914
1231
|
*
|
|
@@ -1562,6 +1879,24 @@ export const countResponseInputTokens = (options) => (options.client ?? client).
|
|
|
1562
1879
|
...options.headers
|
|
1563
1880
|
}
|
|
1564
1881
|
});
|
|
1882
|
+
/**
|
|
1883
|
+
* List your organization's feedback
|
|
1884
|
+
*
|
|
1885
|
+
* 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.
|
|
1886
|
+
*/
|
|
1887
|
+
export const listOrganizationFeedback = (options) => (options?.client ?? client).get({
|
|
1888
|
+
security: [{
|
|
1889
|
+
key: 'BearerAuth',
|
|
1890
|
+
scheme: 'bearer',
|
|
1891
|
+
type: 'http'
|
|
1892
|
+
}, {
|
|
1893
|
+
key: 'ApiKeyAuth',
|
|
1894
|
+
name: 'X-API-Key',
|
|
1895
|
+
type: 'apiKey'
|
|
1896
|
+
}],
|
|
1897
|
+
url: '/organization/v1/feedback',
|
|
1898
|
+
...options
|
|
1899
|
+
});
|
|
1565
1900
|
/**
|
|
1566
1901
|
* Report a problem with the Praxis platform
|
|
1567
1902
|
*
|
|
@@ -1585,12 +1920,11 @@ export const createOrganizationFeedback = (options) => (options.client ?? client
|
|
|
1585
1920
|
}
|
|
1586
1921
|
});
|
|
1587
1922
|
/**
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole UTC hour/day periods; a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.
|
|
1923
|
+
* Count your organization's feedback by phase
|
|
1591
1924
|
*
|
|
1925
|
+
* How many of your organization's feedback are in each phase, for status tabs. Counts never include another organization's feedback.
|
|
1592
1926
|
*/
|
|
1593
|
-
export const
|
|
1927
|
+
export const getOrganizationFeedbackCounts = (options) => (options?.client ?? client).get({
|
|
1594
1928
|
security: [{
|
|
1595
1929
|
key: 'BearerAuth',
|
|
1596
1930
|
scheme: 'bearer',
|
|
@@ -1600,7 +1934,84 @@ export const listOrganizationCosts = (options) => (options.client ?? client).get
|
|
|
1600
1934
|
name: 'X-API-Key',
|
|
1601
1935
|
type: 'apiKey'
|
|
1602
1936
|
}],
|
|
1603
|
-
url: '/organization/v1/
|
|
1937
|
+
url: '/organization/v1/feedback/counts',
|
|
1938
|
+
...options
|
|
1939
|
+
});
|
|
1940
|
+
/**
|
|
1941
|
+
* Get one of your organization's feedback
|
|
1942
|
+
*
|
|
1943
|
+
* 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.
|
|
1944
|
+
*/
|
|
1945
|
+
export const getOrganizationFeedback = (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/{id}',
|
|
1956
|
+
...options
|
|
1957
|
+
});
|
|
1958
|
+
/**
|
|
1959
|
+
* List the messages of a feedback
|
|
1960
|
+
*
|
|
1961
|
+
* 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.
|
|
1962
|
+
*/
|
|
1963
|
+
export const listOrganizationFeedbackMessages = (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}/messages',
|
|
1974
|
+
...options
|
|
1975
|
+
});
|
|
1976
|
+
/**
|
|
1977
|
+
* Reply on a feedback
|
|
1978
|
+
*
|
|
1979
|
+
* 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.
|
|
1980
|
+
*/
|
|
1981
|
+
export const createOrganizationFeedbackMessage = (options) => (options.client ?? client).post({
|
|
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
|
+
headers: {
|
|
1994
|
+
'Content-Type': 'application/json',
|
|
1995
|
+
...options.headers
|
|
1996
|
+
}
|
|
1997
|
+
});
|
|
1998
|
+
/**
|
|
1999
|
+
* List Organization Costs
|
|
2000
|
+
*
|
|
2001
|
+
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole UTC hour/day periods; a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.
|
|
2002
|
+
*
|
|
2003
|
+
*/
|
|
2004
|
+
export const listOrganizationCosts = (options) => (options.client ?? client).get({
|
|
2005
|
+
security: [{
|
|
2006
|
+
key: 'BearerAuth',
|
|
2007
|
+
scheme: 'bearer',
|
|
2008
|
+
type: 'http'
|
|
2009
|
+
}, {
|
|
2010
|
+
key: 'ApiKeyAuth',
|
|
2011
|
+
name: 'X-API-Key',
|
|
2012
|
+
type: 'apiKey'
|
|
2013
|
+
}],
|
|
2014
|
+
url: '/organization/v1/costs',
|
|
1604
2015
|
...options
|
|
1605
2016
|
});
|
|
1606
2017
|
/**
|
|
@@ -1971,6 +2382,64 @@ export const runSandboxCommand = (options) => (options.client ?? client).post({
|
|
|
1971
2382
|
...options.headers
|
|
1972
2383
|
}
|
|
1973
2384
|
});
|
|
2385
|
+
/**
|
|
2386
|
+
* Delete session
|
|
2387
|
+
*
|
|
2388
|
+
* 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.
|
|
2389
|
+
*/
|
|
2390
|
+
export const sessionsDelete = (options) => (options.client ?? client).delete({
|
|
2391
|
+
security: [{
|
|
2392
|
+
key: 'BearerAuth',
|
|
2393
|
+
scheme: 'bearer',
|
|
2394
|
+
type: 'http'
|
|
2395
|
+
}, {
|
|
2396
|
+
key: 'ApiKeyAuth',
|
|
2397
|
+
name: 'X-API-Key',
|
|
2398
|
+
type: 'apiKey'
|
|
2399
|
+
}],
|
|
2400
|
+
url: '/agent/v1/sessions/{session_id}',
|
|
2401
|
+
...options
|
|
2402
|
+
});
|
|
2403
|
+
/**
|
|
2404
|
+
* Get session
|
|
2405
|
+
*
|
|
2406
|
+
* 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.
|
|
2407
|
+
*/
|
|
2408
|
+
export const sessionsRetrieve = (options) => (options.client ?? client).get({
|
|
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
|
+
* Update session
|
|
2423
|
+
*
|
|
2424
|
+
* 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.
|
|
2425
|
+
*/
|
|
2426
|
+
export const sessionsUpdate = (options) => (options.client ?? client).post({
|
|
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
|
+
headers: {
|
|
2439
|
+
'Content-Type': 'application/json',
|
|
2440
|
+
...options.headers
|
|
2441
|
+
}
|
|
2442
|
+
});
|
|
1974
2443
|
/**
|
|
1975
2444
|
* List agents
|
|
1976
2445
|
*
|
|
@@ -1992,7 +2461,7 @@ export const agentsList = (options) => (options?.client ?? client).get({
|
|
|
1992
2461
|
/**
|
|
1993
2462
|
* Create agent
|
|
1994
2463
|
*
|
|
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
|
|
2464
|
+
* 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
2465
|
*/
|
|
1997
2466
|
export const agentsCreate = (options) => (options.client ?? client).post({
|
|
1998
2467
|
security: [{
|
|
@@ -2032,7 +2501,7 @@ export const agentsRetrieve = (options) => (options.client ?? client).get({
|
|
|
2032
2501
|
/**
|
|
2033
2502
|
* Update agent
|
|
2034
2503
|
*
|
|
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; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments
|
|
2504
|
+
* Update an agent. Send the current version in the body for optimistic concurrency: a stale version returns 409, and an update that changes nothing keeps the version number. Any real change saves a new version; existing sessions keep the version they were created with. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. Unlike Anthropic Managed Agents, nonempty skills attachments return 400; use the native skill tool for available runtime skills.
|
|
2036
2505
|
*/
|
|
2037
2506
|
export const agentsUpdate = (options) => (options.client ?? client).post({
|
|
2038
2507
|
security: [{
|
|
@@ -2108,7 +2577,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
|
|
|
2108
2577
|
/**
|
|
2109
2578
|
* Create session
|
|
2110
2579
|
*
|
|
2111
|
-
* Create a session: one conversation with an agent
|
|
2580
|
+
* Create a session: one conversation with an agent. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass 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
2581
|
*/
|
|
2113
2582
|
export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
2114
2583
|
security: [{
|
|
@@ -2127,46 +2596,6 @@ export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
|
2127
2596
|
...options.headers
|
|
2128
2597
|
}
|
|
2129
2598
|
});
|
|
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
2599
|
/**
|
|
2171
2600
|
* Archive session
|
|
2172
2601
|
*
|
|
@@ -2188,7 +2617,7 @@ export const sessionsArchive = (options) => (options.client ?? client).post({
|
|
|
2188
2617
|
/**
|
|
2189
2618
|
* List session events
|
|
2190
2619
|
*
|
|
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.
|
|
2620
|
+
* 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
2621
|
*/
|
|
2193
2622
|
export const sessionsEventsList = (options) => (options.client ?? client).get({
|
|
2194
2623
|
security: [{
|
|
@@ -2206,7 +2635,7 @@ export const sessionsEventsList = (options) => (options.client ?? client).get({
|
|
|
2206
2635
|
/**
|
|
2207
2636
|
* Send session events
|
|
2208
2637
|
*
|
|
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.
|
|
2638
|
+
* 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
2639
|
*/
|
|
2211
2640
|
export const sessionsEventsSend = (options) => (options.client ?? client).post({
|
|
2212
2641
|
security: [{
|
|
@@ -2851,6 +3280,20 @@ export const applicationCreateVersion = (options) => (options.client ?? client).
|
|
|
2851
3280
|
...options.headers
|
|
2852
3281
|
}
|
|
2853
3282
|
});
|
|
3283
|
+
/**
|
|
3284
|
+
* Get version asset manifest
|
|
3285
|
+
*
|
|
3286
|
+
* 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.
|
|
3287
|
+
*/
|
|
3288
|
+
export const applicationGetVersionAssetManifest = (options) => (options.client ?? client).get({
|
|
3289
|
+
security: [{
|
|
3290
|
+
key: 'application-bearerAuth',
|
|
3291
|
+
scheme: 'bearer',
|
|
3292
|
+
type: 'http'
|
|
3293
|
+
}],
|
|
3294
|
+
url: '/application/v1/workers/{worker_id}/versions/{version_id}/assets/manifest',
|
|
3295
|
+
...options
|
|
3296
|
+
});
|
|
2854
3297
|
/**
|
|
2855
3298
|
* Get version
|
|
2856
3299
|
*
|
|
@@ -4534,7 +4977,7 @@ export const databaseListTables = (options) => (options.client ?? client).get({
|
|
|
4534
4977
|
/**
|
|
4535
4978
|
* Create table
|
|
4536
4979
|
*
|
|
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.
|
|
4980
|
+
* 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
4981
|
*/
|
|
4539
4982
|
export const databaseCreateTable = (options) => (options.client ?? client).post({
|
|
4540
4983
|
security: [{
|
|
@@ -4598,7 +5041,7 @@ export const databaseUpdateTable = (options) => (options.client ?? client).patch
|
|
|
4598
5041
|
/**
|
|
4599
5042
|
* Add field
|
|
4600
5043
|
*
|
|
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.
|
|
5044
|
+
* 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
5045
|
*/
|
|
4603
5046
|
export const databaseAddField = (options) => (options.client ?? client).post({
|
|
4604
5047
|
security: [{
|
|
@@ -4676,7 +5119,7 @@ export const databaseDelete = (options) => (options.client ?? client).delete({
|
|
|
4676
5119
|
/**
|
|
4677
5120
|
* Select rows
|
|
4678
5121
|
*
|
|
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.
|
|
5122
|
+
* 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
5123
|
*/
|
|
4681
5124
|
export const databaseSelect = (options) => (options.client ?? client).get({
|
|
4682
5125
|
security: [{
|
|
@@ -4690,7 +5133,7 @@ export const databaseSelect = (options) => (options.client ?? client).get({
|
|
|
4690
5133
|
/**
|
|
4691
5134
|
* Count rows
|
|
4692
5135
|
*
|
|
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.
|
|
5136
|
+
* 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
5137
|
*/
|
|
4695
5138
|
export const databaseHead = (options) => (options.client ?? client).head({
|
|
4696
5139
|
security: [{
|
|
@@ -4724,7 +5167,7 @@ export const databaseUpdate = (options) => (options.client ?? client).patch({
|
|
|
4724
5167
|
*
|
|
4725
5168
|
* 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
5169
|
* 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.
|
|
5170
|
+
* 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
5171
|
*/
|
|
4729
5172
|
export const databaseInsert = (options) => (options.client ?? client).post({
|
|
4730
5173
|
security: [{
|
|
@@ -5510,7 +5953,7 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
|
|
|
5510
5953
|
/**
|
|
5511
5954
|
* Create sandbox (v2)
|
|
5512
5955
|
*
|
|
5513
|
-
*
|
|
5956
|
+
* Create a sandbox from the template. All system communication with the sandbox is secured.
|
|
5514
5957
|
*/
|
|
5515
5958
|
export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
|
|
5516
5959
|
security: [
|
|
@@ -5551,7 +5994,7 @@ export const postSandboxV1Sandboxes = (options) => (options.client ?? client).po
|
|
|
5551
5994
|
/**
|
|
5552
5995
|
* Sandbox metrics
|
|
5553
5996
|
*
|
|
5554
|
-
* Read CPU, memory and disk usage over
|
|
5997
|
+
* 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
5998
|
*/
|
|
5556
5999
|
export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.client ?? client).get({
|
|
5557
6000
|
security: [
|
|
@@ -5588,7 +6031,7 @@ export const getSandboxV1SandboxesBySandboxIdMetrics = (options) => (options.cli
|
|
|
5588
6031
|
/**
|
|
5589
6032
|
* Pause sandbox
|
|
5590
6033
|
*
|
|
5591
|
-
*
|
|
6034
|
+
* 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
6035
|
*/
|
|
5593
6036
|
export const postSandboxV1SandboxesBySandboxIdPause = (options) => (options.client ?? client).post({
|
|
5594
6037
|
security: [
|
|
@@ -5670,7 +6113,7 @@ export const postSandboxV1SandboxesBySandboxIdTimeout = (options) => (options.cl
|
|
|
5670
6113
|
/**
|
|
5671
6114
|
* Connect sandbox (v2)
|
|
5672
6115
|
*
|
|
5673
|
-
*
|
|
6116
|
+
* 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
6117
|
*/
|
|
5675
6118
|
export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.client ?? client).post({
|
|
5676
6119
|
security: [
|
|
@@ -5711,7 +6154,7 @@ export const postSandboxV1SandboxesBySandboxIdConnect = (options) => (options.cl
|
|
|
5711
6154
|
/**
|
|
5712
6155
|
* List templates (v2)
|
|
5713
6156
|
*
|
|
5714
|
-
*
|
|
6157
|
+
* 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
6158
|
*/
|
|
5716
6159
|
export const getSandboxV1Templates = (options) => (options?.client ?? client).get({
|
|
5717
6160
|
security: [
|
|
@@ -6577,3 +7020,779 @@ export const vaultConnectContinue = (options) => (options.client ?? client).post
|
|
|
6577
7020
|
* 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
7021
|
*/
|
|
6579
7022
|
export const vaultConnectDeny = (options) => (options.client ?? client).post({ url: '/vault/v1/connect/{token}/deny', ...options });
|
|
7023
|
+
/**
|
|
7024
|
+
* List tickets
|
|
7025
|
+
*
|
|
7026
|
+
* 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.
|
|
7027
|
+
*/
|
|
7028
|
+
export const ticketGetTickets = (options) => (options?.client ?? client).get({
|
|
7029
|
+
security: [{
|
|
7030
|
+
key: 'BearerAuth',
|
|
7031
|
+
scheme: 'bearer',
|
|
7032
|
+
type: 'http'
|
|
7033
|
+
}, {
|
|
7034
|
+
key: 'ApiKeyAuth',
|
|
7035
|
+
name: 'X-API-Key',
|
|
7036
|
+
type: 'apiKey'
|
|
7037
|
+
}],
|
|
7038
|
+
url: '/ticket/v1/tickets',
|
|
7039
|
+
...options
|
|
7040
|
+
});
|
|
7041
|
+
/**
|
|
7042
|
+
* Create or add tickets
|
|
7043
|
+
*
|
|
7044
|
+
* 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.
|
|
7045
|
+
*/
|
|
7046
|
+
export const ticketPostTickets = (options) => (options.client ?? client).post({
|
|
7047
|
+
security: [{
|
|
7048
|
+
key: 'BearerAuth',
|
|
7049
|
+
scheme: 'bearer',
|
|
7050
|
+
type: 'http'
|
|
7051
|
+
}, {
|
|
7052
|
+
key: 'ApiKeyAuth',
|
|
7053
|
+
name: 'X-API-Key',
|
|
7054
|
+
type: 'apiKey'
|
|
7055
|
+
}],
|
|
7056
|
+
url: '/ticket/v1/tickets',
|
|
7057
|
+
...options,
|
|
7058
|
+
headers: {
|
|
7059
|
+
'Content-Type': 'application/json',
|
|
7060
|
+
...options.headers
|
|
7061
|
+
}
|
|
7062
|
+
});
|
|
7063
|
+
/**
|
|
7064
|
+
* Read tickets
|
|
7065
|
+
*
|
|
7066
|
+
* 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.
|
|
7067
|
+
*/
|
|
7068
|
+
export const ticketGetTicketsNumber = (options) => (options.client ?? client).get({
|
|
7069
|
+
security: [{
|
|
7070
|
+
key: 'BearerAuth',
|
|
7071
|
+
scheme: 'bearer',
|
|
7072
|
+
type: 'http'
|
|
7073
|
+
}, {
|
|
7074
|
+
key: 'ApiKeyAuth',
|
|
7075
|
+
name: 'X-API-Key',
|
|
7076
|
+
type: 'apiKey'
|
|
7077
|
+
}],
|
|
7078
|
+
url: '/ticket/v1/tickets/{number}',
|
|
7079
|
+
...options
|
|
7080
|
+
});
|
|
7081
|
+
/**
|
|
7082
|
+
* Update tickets
|
|
7083
|
+
*
|
|
7084
|
+
* 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.
|
|
7085
|
+
*/
|
|
7086
|
+
export const ticketPatchTicketsNumber = (options) => (options.client ?? client).patch({
|
|
7087
|
+
security: [{
|
|
7088
|
+
key: 'BearerAuth',
|
|
7089
|
+
scheme: 'bearer',
|
|
7090
|
+
type: 'http'
|
|
7091
|
+
}, {
|
|
7092
|
+
key: 'ApiKeyAuth',
|
|
7093
|
+
name: 'X-API-Key',
|
|
7094
|
+
type: 'apiKey'
|
|
7095
|
+
}],
|
|
7096
|
+
url: '/ticket/v1/tickets/{number}',
|
|
7097
|
+
...options,
|
|
7098
|
+
headers: {
|
|
7099
|
+
'Content-Type': 'application/json',
|
|
7100
|
+
...options.headers
|
|
7101
|
+
}
|
|
7102
|
+
});
|
|
7103
|
+
/**
|
|
7104
|
+
* Remove lock
|
|
7105
|
+
*
|
|
7106
|
+
* 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.
|
|
7107
|
+
*/
|
|
7108
|
+
export const ticketDeleteTicketsNumberLock = (options) => (options.client ?? client).delete({
|
|
7109
|
+
security: [{
|
|
7110
|
+
key: 'BearerAuth',
|
|
7111
|
+
scheme: 'bearer',
|
|
7112
|
+
type: 'http'
|
|
7113
|
+
}, {
|
|
7114
|
+
key: 'ApiKeyAuth',
|
|
7115
|
+
name: 'X-API-Key',
|
|
7116
|
+
type: 'apiKey'
|
|
7117
|
+
}],
|
|
7118
|
+
url: '/ticket/v1/tickets/{number}/lock',
|
|
7119
|
+
...options
|
|
7120
|
+
});
|
|
7121
|
+
/**
|
|
7122
|
+
* Update lock
|
|
7123
|
+
*
|
|
7124
|
+
* 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.
|
|
7125
|
+
*/
|
|
7126
|
+
export const ticketPutTicketsNumberLock = (options) => (options.client ?? client).put({
|
|
7127
|
+
security: [{
|
|
7128
|
+
key: 'BearerAuth',
|
|
7129
|
+
scheme: 'bearer',
|
|
7130
|
+
type: 'http'
|
|
7131
|
+
}, {
|
|
7132
|
+
key: 'ApiKeyAuth',
|
|
7133
|
+
name: 'X-API-Key',
|
|
7134
|
+
type: 'apiKey'
|
|
7135
|
+
}],
|
|
7136
|
+
url: '/ticket/v1/tickets/{number}/lock',
|
|
7137
|
+
...options,
|
|
7138
|
+
headers: {
|
|
7139
|
+
'Content-Type': 'application/json',
|
|
7140
|
+
...options.headers
|
|
7141
|
+
}
|
|
7142
|
+
});
|
|
7143
|
+
/**
|
|
7144
|
+
* List comments
|
|
7145
|
+
*
|
|
7146
|
+
* 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.
|
|
7147
|
+
*/
|
|
7148
|
+
export const ticketGetTicketsNumberComments = (options) => (options.client ?? client).get({
|
|
7149
|
+
security: [{
|
|
7150
|
+
key: 'BearerAuth',
|
|
7151
|
+
scheme: 'bearer',
|
|
7152
|
+
type: 'http'
|
|
7153
|
+
}, {
|
|
7154
|
+
key: 'ApiKeyAuth',
|
|
7155
|
+
name: 'X-API-Key',
|
|
7156
|
+
type: 'apiKey'
|
|
7157
|
+
}],
|
|
7158
|
+
url: '/ticket/v1/tickets/{number}/comments',
|
|
7159
|
+
...options
|
|
7160
|
+
});
|
|
7161
|
+
/**
|
|
7162
|
+
* Create or add comments
|
|
7163
|
+
*
|
|
7164
|
+
* 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.
|
|
7165
|
+
*/
|
|
7166
|
+
export const ticketPostTicketsNumberComments = (options) => (options.client ?? client).post({
|
|
7167
|
+
security: [{
|
|
7168
|
+
key: 'BearerAuth',
|
|
7169
|
+
scheme: 'bearer',
|
|
7170
|
+
type: 'http'
|
|
7171
|
+
}, {
|
|
7172
|
+
key: 'ApiKeyAuth',
|
|
7173
|
+
name: 'X-API-Key',
|
|
7174
|
+
type: 'apiKey'
|
|
7175
|
+
}],
|
|
7176
|
+
url: '/ticket/v1/tickets/{number}/comments',
|
|
7177
|
+
...options,
|
|
7178
|
+
headers: {
|
|
7179
|
+
'Content-Type': 'application/json',
|
|
7180
|
+
...options.headers
|
|
7181
|
+
}
|
|
7182
|
+
});
|
|
7183
|
+
/**
|
|
7184
|
+
* Remove comments
|
|
7185
|
+
*
|
|
7186
|
+
* 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.
|
|
7187
|
+
*/
|
|
7188
|
+
export const ticketDeleteCommentsId = (options) => (options.client ?? client).delete({
|
|
7189
|
+
security: [{
|
|
7190
|
+
key: 'BearerAuth',
|
|
7191
|
+
scheme: 'bearer',
|
|
7192
|
+
type: 'http'
|
|
7193
|
+
}, {
|
|
7194
|
+
key: 'ApiKeyAuth',
|
|
7195
|
+
name: 'X-API-Key',
|
|
7196
|
+
type: 'apiKey'
|
|
7197
|
+
}],
|
|
7198
|
+
url: '/ticket/v1/comments/{id}',
|
|
7199
|
+
...options
|
|
7200
|
+
});
|
|
7201
|
+
/**
|
|
7202
|
+
* Read comments
|
|
7203
|
+
*
|
|
7204
|
+
* 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.
|
|
7205
|
+
*/
|
|
7206
|
+
export const ticketGetCommentsId = (options) => (options.client ?? client).get({
|
|
7207
|
+
security: [{
|
|
7208
|
+
key: 'BearerAuth',
|
|
7209
|
+
scheme: 'bearer',
|
|
7210
|
+
type: 'http'
|
|
7211
|
+
}, {
|
|
7212
|
+
key: 'ApiKeyAuth',
|
|
7213
|
+
name: 'X-API-Key',
|
|
7214
|
+
type: 'apiKey'
|
|
7215
|
+
}],
|
|
7216
|
+
url: '/ticket/v1/comments/{id}',
|
|
7217
|
+
...options
|
|
7218
|
+
});
|
|
7219
|
+
/**
|
|
7220
|
+
* Update comments
|
|
7221
|
+
*
|
|
7222
|
+
* 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.
|
|
7223
|
+
*/
|
|
7224
|
+
export const ticketPatchCommentsId = (options) => (options.client ?? client).patch({
|
|
7225
|
+
security: [{
|
|
7226
|
+
key: 'BearerAuth',
|
|
7227
|
+
scheme: 'bearer',
|
|
7228
|
+
type: 'http'
|
|
7229
|
+
}, {
|
|
7230
|
+
key: 'ApiKeyAuth',
|
|
7231
|
+
name: 'X-API-Key',
|
|
7232
|
+
type: 'apiKey'
|
|
7233
|
+
}],
|
|
7234
|
+
url: '/ticket/v1/comments/{id}',
|
|
7235
|
+
...options,
|
|
7236
|
+
headers: {
|
|
7237
|
+
'Content-Type': 'application/json',
|
|
7238
|
+
...options.headers
|
|
7239
|
+
}
|
|
7240
|
+
});
|
|
7241
|
+
/**
|
|
7242
|
+
* List labels
|
|
7243
|
+
*
|
|
7244
|
+
* 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.
|
|
7245
|
+
*/
|
|
7246
|
+
export const ticketGetLabels = (options) => (options?.client ?? client).get({
|
|
7247
|
+
security: [{
|
|
7248
|
+
key: 'BearerAuth',
|
|
7249
|
+
scheme: 'bearer',
|
|
7250
|
+
type: 'http'
|
|
7251
|
+
}, {
|
|
7252
|
+
key: 'ApiKeyAuth',
|
|
7253
|
+
name: 'X-API-Key',
|
|
7254
|
+
type: 'apiKey'
|
|
7255
|
+
}],
|
|
7256
|
+
url: '/ticket/v1/labels',
|
|
7257
|
+
...options
|
|
7258
|
+
});
|
|
7259
|
+
/**
|
|
7260
|
+
* Create or add labels
|
|
7261
|
+
*
|
|
7262
|
+
* 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.
|
|
7263
|
+
*/
|
|
7264
|
+
export const ticketPostLabels = (options) => (options.client ?? client).post({
|
|
7265
|
+
security: [{
|
|
7266
|
+
key: 'BearerAuth',
|
|
7267
|
+
scheme: 'bearer',
|
|
7268
|
+
type: 'http'
|
|
7269
|
+
}, {
|
|
7270
|
+
key: 'ApiKeyAuth',
|
|
7271
|
+
name: 'X-API-Key',
|
|
7272
|
+
type: 'apiKey'
|
|
7273
|
+
}],
|
|
7274
|
+
url: '/ticket/v1/labels',
|
|
7275
|
+
...options,
|
|
7276
|
+
headers: {
|
|
7277
|
+
'Content-Type': 'application/json',
|
|
7278
|
+
...options.headers
|
|
7279
|
+
}
|
|
7280
|
+
});
|
|
7281
|
+
/**
|
|
7282
|
+
* Remove labels
|
|
7283
|
+
*
|
|
7284
|
+
* 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.
|
|
7285
|
+
*/
|
|
7286
|
+
export const ticketDeleteLabelsName = (options) => (options.client ?? client).delete({
|
|
7287
|
+
security: [{
|
|
7288
|
+
key: 'BearerAuth',
|
|
7289
|
+
scheme: 'bearer',
|
|
7290
|
+
type: 'http'
|
|
7291
|
+
}, {
|
|
7292
|
+
key: 'ApiKeyAuth',
|
|
7293
|
+
name: 'X-API-Key',
|
|
7294
|
+
type: 'apiKey'
|
|
7295
|
+
}],
|
|
7296
|
+
url: '/ticket/v1/labels/{name}',
|
|
7297
|
+
...options
|
|
7298
|
+
});
|
|
7299
|
+
/**
|
|
7300
|
+
* Update labels
|
|
7301
|
+
*
|
|
7302
|
+
* 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.
|
|
7303
|
+
*/
|
|
7304
|
+
export const ticketPatchLabelsName = (options) => (options.client ?? client).patch({
|
|
7305
|
+
security: [{
|
|
7306
|
+
key: 'BearerAuth',
|
|
7307
|
+
scheme: 'bearer',
|
|
7308
|
+
type: 'http'
|
|
7309
|
+
}, {
|
|
7310
|
+
key: 'ApiKeyAuth',
|
|
7311
|
+
name: 'X-API-Key',
|
|
7312
|
+
type: 'apiKey'
|
|
7313
|
+
}],
|
|
7314
|
+
url: '/ticket/v1/labels/{name}',
|
|
7315
|
+
...options,
|
|
7316
|
+
headers: {
|
|
7317
|
+
'Content-Type': 'application/json',
|
|
7318
|
+
...options.headers
|
|
7319
|
+
}
|
|
7320
|
+
});
|
|
7321
|
+
/**
|
|
7322
|
+
* Read types
|
|
7323
|
+
*
|
|
7324
|
+
* 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.
|
|
7325
|
+
*/
|
|
7326
|
+
export const ticketGetTypes = (options) => (options?.client ?? client).get({
|
|
7327
|
+
security: [{
|
|
7328
|
+
key: 'BearerAuth',
|
|
7329
|
+
scheme: 'bearer',
|
|
7330
|
+
type: 'http'
|
|
7331
|
+
}, {
|
|
7332
|
+
key: 'ApiKeyAuth',
|
|
7333
|
+
name: 'X-API-Key',
|
|
7334
|
+
type: 'apiKey'
|
|
7335
|
+
}],
|
|
7336
|
+
url: '/ticket/v1/types',
|
|
7337
|
+
...options
|
|
7338
|
+
});
|
|
7339
|
+
/**
|
|
7340
|
+
* List milestones
|
|
7341
|
+
*
|
|
7342
|
+
* 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.
|
|
7343
|
+
*/
|
|
7344
|
+
export const ticketGetMilestones = (options) => (options?.client ?? client).get({
|
|
7345
|
+
security: [{
|
|
7346
|
+
key: 'BearerAuth',
|
|
7347
|
+
scheme: 'bearer',
|
|
7348
|
+
type: 'http'
|
|
7349
|
+
}, {
|
|
7350
|
+
key: 'ApiKeyAuth',
|
|
7351
|
+
name: 'X-API-Key',
|
|
7352
|
+
type: 'apiKey'
|
|
7353
|
+
}],
|
|
7354
|
+
url: '/ticket/v1/milestones',
|
|
7355
|
+
...options
|
|
7356
|
+
});
|
|
7357
|
+
/**
|
|
7358
|
+
* Create or add milestones
|
|
7359
|
+
*
|
|
7360
|
+
* 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.
|
|
7361
|
+
*/
|
|
7362
|
+
export const ticketPostMilestones = (options) => (options.client ?? client).post({
|
|
7363
|
+
security: [{
|
|
7364
|
+
key: 'BearerAuth',
|
|
7365
|
+
scheme: 'bearer',
|
|
7366
|
+
type: 'http'
|
|
7367
|
+
}, {
|
|
7368
|
+
key: 'ApiKeyAuth',
|
|
7369
|
+
name: 'X-API-Key',
|
|
7370
|
+
type: 'apiKey'
|
|
7371
|
+
}],
|
|
7372
|
+
url: '/ticket/v1/milestones',
|
|
7373
|
+
...options,
|
|
7374
|
+
headers: {
|
|
7375
|
+
'Content-Type': 'application/json',
|
|
7376
|
+
...options.headers
|
|
7377
|
+
}
|
|
7378
|
+
});
|
|
7379
|
+
/**
|
|
7380
|
+
* Remove milestones
|
|
7381
|
+
*
|
|
7382
|
+
* 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.
|
|
7383
|
+
*/
|
|
7384
|
+
export const ticketDeleteMilestonesNumber = (options) => (options.client ?? client).delete({
|
|
7385
|
+
security: [{
|
|
7386
|
+
key: 'BearerAuth',
|
|
7387
|
+
scheme: 'bearer',
|
|
7388
|
+
type: 'http'
|
|
7389
|
+
}, {
|
|
7390
|
+
key: 'ApiKeyAuth',
|
|
7391
|
+
name: 'X-API-Key',
|
|
7392
|
+
type: 'apiKey'
|
|
7393
|
+
}],
|
|
7394
|
+
url: '/ticket/v1/milestones/{number}',
|
|
7395
|
+
...options
|
|
7396
|
+
});
|
|
7397
|
+
/**
|
|
7398
|
+
* Read milestones
|
|
7399
|
+
*
|
|
7400
|
+
* 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.
|
|
7401
|
+
*/
|
|
7402
|
+
export const ticketGetMilestonesNumber = (options) => (options.client ?? client).get({
|
|
7403
|
+
security: [{
|
|
7404
|
+
key: 'BearerAuth',
|
|
7405
|
+
scheme: 'bearer',
|
|
7406
|
+
type: 'http'
|
|
7407
|
+
}, {
|
|
7408
|
+
key: 'ApiKeyAuth',
|
|
7409
|
+
name: 'X-API-Key',
|
|
7410
|
+
type: 'apiKey'
|
|
7411
|
+
}],
|
|
7412
|
+
url: '/ticket/v1/milestones/{number}',
|
|
7413
|
+
...options
|
|
7414
|
+
});
|
|
7415
|
+
/**
|
|
7416
|
+
* Update milestones
|
|
7417
|
+
*
|
|
7418
|
+
* 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.
|
|
7419
|
+
*/
|
|
7420
|
+
export const ticketPatchMilestonesNumber = (options) => (options.client ?? client).patch({
|
|
7421
|
+
security: [{
|
|
7422
|
+
key: 'BearerAuth',
|
|
7423
|
+
scheme: 'bearer',
|
|
7424
|
+
type: 'http'
|
|
7425
|
+
}, {
|
|
7426
|
+
key: 'ApiKeyAuth',
|
|
7427
|
+
name: 'X-API-Key',
|
|
7428
|
+
type: 'apiKey'
|
|
7429
|
+
}],
|
|
7430
|
+
url: '/ticket/v1/milestones/{number}',
|
|
7431
|
+
...options,
|
|
7432
|
+
headers: {
|
|
7433
|
+
'Content-Type': 'application/json',
|
|
7434
|
+
...options.headers
|
|
7435
|
+
}
|
|
7436
|
+
});
|
|
7437
|
+
/**
|
|
7438
|
+
* List sub tickets
|
|
7439
|
+
*
|
|
7440
|
+
* 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.
|
|
7441
|
+
*/
|
|
7442
|
+
export const ticketGetTicketsNumberSubTickets = (options) => (options.client ?? client).get({
|
|
7443
|
+
security: [{
|
|
7444
|
+
key: 'BearerAuth',
|
|
7445
|
+
scheme: 'bearer',
|
|
7446
|
+
type: 'http'
|
|
7447
|
+
}, {
|
|
7448
|
+
key: 'ApiKeyAuth',
|
|
7449
|
+
name: 'X-API-Key',
|
|
7450
|
+
type: 'apiKey'
|
|
7451
|
+
}],
|
|
7452
|
+
url: '/ticket/v1/tickets/{number}/sub_tickets',
|
|
7453
|
+
...options
|
|
7454
|
+
});
|
|
7455
|
+
/**
|
|
7456
|
+
* Create or add sub tickets
|
|
7457
|
+
*
|
|
7458
|
+
* 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.
|
|
7459
|
+
*/
|
|
7460
|
+
export const ticketPostTicketsNumberSubTickets = (options) => (options.client ?? client).post({
|
|
7461
|
+
security: [{
|
|
7462
|
+
key: 'BearerAuth',
|
|
7463
|
+
scheme: 'bearer',
|
|
7464
|
+
type: 'http'
|
|
7465
|
+
}, {
|
|
7466
|
+
key: 'ApiKeyAuth',
|
|
7467
|
+
name: 'X-API-Key',
|
|
7468
|
+
type: 'apiKey'
|
|
7469
|
+
}],
|
|
7470
|
+
url: '/ticket/v1/tickets/{number}/sub_tickets',
|
|
7471
|
+
...options,
|
|
7472
|
+
headers: {
|
|
7473
|
+
'Content-Type': 'application/json',
|
|
7474
|
+
...options.headers
|
|
7475
|
+
}
|
|
7476
|
+
});
|
|
7477
|
+
/**
|
|
7478
|
+
* Remove sub tickets
|
|
7479
|
+
*
|
|
7480
|
+
* 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.
|
|
7481
|
+
*/
|
|
7482
|
+
export const ticketDeleteTicketsNumberSubTicketsChild = (options) => (options.client ?? client).delete({
|
|
7483
|
+
security: [{
|
|
7484
|
+
key: 'BearerAuth',
|
|
7485
|
+
scheme: 'bearer',
|
|
7486
|
+
type: 'http'
|
|
7487
|
+
}, {
|
|
7488
|
+
key: 'ApiKeyAuth',
|
|
7489
|
+
name: 'X-API-Key',
|
|
7490
|
+
type: 'apiKey'
|
|
7491
|
+
}],
|
|
7492
|
+
url: '/ticket/v1/tickets/{number}/sub_tickets/{child}',
|
|
7493
|
+
...options
|
|
7494
|
+
});
|
|
7495
|
+
/**
|
|
7496
|
+
* List blocked by
|
|
7497
|
+
*
|
|
7498
|
+
* 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.
|
|
7499
|
+
*/
|
|
7500
|
+
export const ticketGetTicketsNumberDependenciesBlockedBy = (options) => (options.client ?? client).get({
|
|
7501
|
+
security: [{
|
|
7502
|
+
key: 'BearerAuth',
|
|
7503
|
+
scheme: 'bearer',
|
|
7504
|
+
type: 'http'
|
|
7505
|
+
}, {
|
|
7506
|
+
key: 'ApiKeyAuth',
|
|
7507
|
+
name: 'X-API-Key',
|
|
7508
|
+
type: 'apiKey'
|
|
7509
|
+
}],
|
|
7510
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocked_by',
|
|
7511
|
+
...options
|
|
7512
|
+
});
|
|
7513
|
+
/**
|
|
7514
|
+
* Create or add blocked by
|
|
7515
|
+
*
|
|
7516
|
+
* 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.
|
|
7517
|
+
*/
|
|
7518
|
+
export const ticketPostTicketsNumberDependenciesBlockedBy = (options) => (options.client ?? client).post({
|
|
7519
|
+
security: [{
|
|
7520
|
+
key: 'BearerAuth',
|
|
7521
|
+
scheme: 'bearer',
|
|
7522
|
+
type: 'http'
|
|
7523
|
+
}, {
|
|
7524
|
+
key: 'ApiKeyAuth',
|
|
7525
|
+
name: 'X-API-Key',
|
|
7526
|
+
type: 'apiKey'
|
|
7527
|
+
}],
|
|
7528
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocked_by',
|
|
7529
|
+
...options,
|
|
7530
|
+
headers: {
|
|
7531
|
+
'Content-Type': 'application/json',
|
|
7532
|
+
...options.headers
|
|
7533
|
+
}
|
|
7534
|
+
});
|
|
7535
|
+
/**
|
|
7536
|
+
* Remove blocked by
|
|
7537
|
+
*
|
|
7538
|
+
* 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.
|
|
7539
|
+
*/
|
|
7540
|
+
export const ticketDeleteTicketsNumberDependenciesBlockedByN = (options) => (options.client ?? client).delete({
|
|
7541
|
+
security: [{
|
|
7542
|
+
key: 'BearerAuth',
|
|
7543
|
+
scheme: 'bearer',
|
|
7544
|
+
type: 'http'
|
|
7545
|
+
}, {
|
|
7546
|
+
key: 'ApiKeyAuth',
|
|
7547
|
+
name: 'X-API-Key',
|
|
7548
|
+
type: 'apiKey'
|
|
7549
|
+
}],
|
|
7550
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocked_by/{n}',
|
|
7551
|
+
...options
|
|
7552
|
+
});
|
|
7553
|
+
/**
|
|
7554
|
+
* List relations
|
|
7555
|
+
*
|
|
7556
|
+
* 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.
|
|
7557
|
+
*/
|
|
7558
|
+
export const ticketGetTicketsNumberRelations = (options) => (options.client ?? client).get({
|
|
7559
|
+
security: [{
|
|
7560
|
+
key: 'BearerAuth',
|
|
7561
|
+
scheme: 'bearer',
|
|
7562
|
+
type: 'http'
|
|
7563
|
+
}, {
|
|
7564
|
+
key: 'ApiKeyAuth',
|
|
7565
|
+
name: 'X-API-Key',
|
|
7566
|
+
type: 'apiKey'
|
|
7567
|
+
}],
|
|
7568
|
+
url: '/ticket/v1/tickets/{number}/relations',
|
|
7569
|
+
...options
|
|
7570
|
+
});
|
|
7571
|
+
/**
|
|
7572
|
+
* Create or add relations
|
|
7573
|
+
*
|
|
7574
|
+
* 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.
|
|
7575
|
+
*/
|
|
7576
|
+
export const ticketPostTicketsNumberRelations = (options) => (options.client ?? client).post({
|
|
7577
|
+
security: [{
|
|
7578
|
+
key: 'BearerAuth',
|
|
7579
|
+
scheme: 'bearer',
|
|
7580
|
+
type: 'http'
|
|
7581
|
+
}, {
|
|
7582
|
+
key: 'ApiKeyAuth',
|
|
7583
|
+
name: 'X-API-Key',
|
|
7584
|
+
type: 'apiKey'
|
|
7585
|
+
}],
|
|
7586
|
+
url: '/ticket/v1/tickets/{number}/relations',
|
|
7587
|
+
...options,
|
|
7588
|
+
headers: {
|
|
7589
|
+
'Content-Type': 'application/json',
|
|
7590
|
+
...options.headers
|
|
7591
|
+
}
|
|
7592
|
+
});
|
|
7593
|
+
/**
|
|
7594
|
+
* Remove relations
|
|
7595
|
+
*
|
|
7596
|
+
* 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.
|
|
7597
|
+
*/
|
|
7598
|
+
export const ticketDeleteTicketsNumberRelationsN = (options) => (options.client ?? client).delete({
|
|
7599
|
+
security: [{
|
|
7600
|
+
key: 'BearerAuth',
|
|
7601
|
+
scheme: 'bearer',
|
|
7602
|
+
type: 'http'
|
|
7603
|
+
}, {
|
|
7604
|
+
key: 'ApiKeyAuth',
|
|
7605
|
+
name: 'X-API-Key',
|
|
7606
|
+
type: 'apiKey'
|
|
7607
|
+
}],
|
|
7608
|
+
url: '/ticket/v1/tickets/{number}/relations/{n}',
|
|
7609
|
+
...options
|
|
7610
|
+
});
|
|
7611
|
+
/**
|
|
7612
|
+
* List blocking
|
|
7613
|
+
*
|
|
7614
|
+
* 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.
|
|
7615
|
+
*/
|
|
7616
|
+
export const ticketGetTicketsNumberDependenciesBlocking = (options) => (options.client ?? client).get({
|
|
7617
|
+
security: [{
|
|
7618
|
+
key: 'BearerAuth',
|
|
7619
|
+
scheme: 'bearer',
|
|
7620
|
+
type: 'http'
|
|
7621
|
+
}, {
|
|
7622
|
+
key: 'ApiKeyAuth',
|
|
7623
|
+
name: 'X-API-Key',
|
|
7624
|
+
type: 'apiKey'
|
|
7625
|
+
}],
|
|
7626
|
+
url: '/ticket/v1/tickets/{number}/dependencies/blocking',
|
|
7627
|
+
...options
|
|
7628
|
+
});
|
|
7629
|
+
/**
|
|
7630
|
+
* List events
|
|
7631
|
+
*
|
|
7632
|
+
* 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.
|
|
7633
|
+
*/
|
|
7634
|
+
export const ticketGetTicketsNumberEvents = (options) => (options.client ?? client).get({
|
|
7635
|
+
security: [{
|
|
7636
|
+
key: 'BearerAuth',
|
|
7637
|
+
scheme: 'bearer',
|
|
7638
|
+
type: 'http'
|
|
7639
|
+
}, {
|
|
7640
|
+
key: 'ApiKeyAuth',
|
|
7641
|
+
name: 'X-API-Key',
|
|
7642
|
+
type: 'apiKey'
|
|
7643
|
+
}],
|
|
7644
|
+
url: '/ticket/v1/tickets/{number}/events',
|
|
7645
|
+
...options
|
|
7646
|
+
});
|
|
7647
|
+
/**
|
|
7648
|
+
* List reactions
|
|
7649
|
+
*
|
|
7650
|
+
* 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.
|
|
7651
|
+
*/
|
|
7652
|
+
export const ticketGetTicketsNumberReactions = (options) => (options.client ?? client).get({
|
|
7653
|
+
security: [{
|
|
7654
|
+
key: 'BearerAuth',
|
|
7655
|
+
scheme: 'bearer',
|
|
7656
|
+
type: 'http'
|
|
7657
|
+
}, {
|
|
7658
|
+
key: 'ApiKeyAuth',
|
|
7659
|
+
name: 'X-API-Key',
|
|
7660
|
+
type: 'apiKey'
|
|
7661
|
+
}],
|
|
7662
|
+
url: '/ticket/v1/tickets/{number}/reactions',
|
|
7663
|
+
...options
|
|
7664
|
+
});
|
|
7665
|
+
/**
|
|
7666
|
+
* Create or add reactions
|
|
7667
|
+
*
|
|
7668
|
+
* 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.
|
|
7669
|
+
*/
|
|
7670
|
+
export const ticketPostTicketsNumberReactions = (options) => (options.client ?? client).post({
|
|
7671
|
+
security: [{
|
|
7672
|
+
key: 'BearerAuth',
|
|
7673
|
+
scheme: 'bearer',
|
|
7674
|
+
type: 'http'
|
|
7675
|
+
}, {
|
|
7676
|
+
key: 'ApiKeyAuth',
|
|
7677
|
+
name: 'X-API-Key',
|
|
7678
|
+
type: 'apiKey'
|
|
7679
|
+
}],
|
|
7680
|
+
url: '/ticket/v1/tickets/{number}/reactions',
|
|
7681
|
+
...options,
|
|
7682
|
+
headers: {
|
|
7683
|
+
'Content-Type': 'application/json',
|
|
7684
|
+
...options.headers
|
|
7685
|
+
}
|
|
7686
|
+
});
|
|
7687
|
+
/**
|
|
7688
|
+
* Remove reactions
|
|
7689
|
+
*
|
|
7690
|
+
* 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.
|
|
7691
|
+
*/
|
|
7692
|
+
export const ticketDeleteTicketsNumberReactionsContent = (options) => (options.client ?? client).delete({
|
|
7693
|
+
security: [{
|
|
7694
|
+
key: 'BearerAuth',
|
|
7695
|
+
scheme: 'bearer',
|
|
7696
|
+
type: 'http'
|
|
7697
|
+
}, {
|
|
7698
|
+
key: 'ApiKeyAuth',
|
|
7699
|
+
name: 'X-API-Key',
|
|
7700
|
+
type: 'apiKey'
|
|
7701
|
+
}],
|
|
7702
|
+
url: '/ticket/v1/tickets/{number}/reactions/{content}',
|
|
7703
|
+
...options
|
|
7704
|
+
});
|
|
7705
|
+
/**
|
|
7706
|
+
* List reactions
|
|
7707
|
+
*
|
|
7708
|
+
* 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.
|
|
7709
|
+
*/
|
|
7710
|
+
export const ticketGetCommentsIdReactions = (options) => (options.client ?? client).get({
|
|
7711
|
+
security: [{
|
|
7712
|
+
key: 'BearerAuth',
|
|
7713
|
+
scheme: 'bearer',
|
|
7714
|
+
type: 'http'
|
|
7715
|
+
}, {
|
|
7716
|
+
key: 'ApiKeyAuth',
|
|
7717
|
+
name: 'X-API-Key',
|
|
7718
|
+
type: 'apiKey'
|
|
7719
|
+
}],
|
|
7720
|
+
url: '/ticket/v1/comments/{id}/reactions',
|
|
7721
|
+
...options
|
|
7722
|
+
});
|
|
7723
|
+
/**
|
|
7724
|
+
* Create or add reactions
|
|
7725
|
+
*
|
|
7726
|
+
* 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.
|
|
7727
|
+
*/
|
|
7728
|
+
export const ticketPostCommentsIdReactions = (options) => (options.client ?? client).post({
|
|
7729
|
+
security: [{
|
|
7730
|
+
key: 'BearerAuth',
|
|
7731
|
+
scheme: 'bearer',
|
|
7732
|
+
type: 'http'
|
|
7733
|
+
}, {
|
|
7734
|
+
key: 'ApiKeyAuth',
|
|
7735
|
+
name: 'X-API-Key',
|
|
7736
|
+
type: 'apiKey'
|
|
7737
|
+
}],
|
|
7738
|
+
url: '/ticket/v1/comments/{id}/reactions',
|
|
7739
|
+
...options,
|
|
7740
|
+
headers: {
|
|
7741
|
+
'Content-Type': 'application/json',
|
|
7742
|
+
...options.headers
|
|
7743
|
+
}
|
|
7744
|
+
});
|
|
7745
|
+
/**
|
|
7746
|
+
* Remove reactions
|
|
7747
|
+
*
|
|
7748
|
+
* 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.
|
|
7749
|
+
*/
|
|
7750
|
+
export const ticketDeleteCommentsIdReactionsContent = (options) => (options.client ?? client).delete({
|
|
7751
|
+
security: [{
|
|
7752
|
+
key: 'BearerAuth',
|
|
7753
|
+
scheme: 'bearer',
|
|
7754
|
+
type: 'http'
|
|
7755
|
+
}, {
|
|
7756
|
+
key: 'ApiKeyAuth',
|
|
7757
|
+
name: 'X-API-Key',
|
|
7758
|
+
type: 'apiKey'
|
|
7759
|
+
}],
|
|
7760
|
+
url: '/ticket/v1/comments/{id}/reactions/{content}',
|
|
7761
|
+
...options
|
|
7762
|
+
});
|
|
7763
|
+
/**
|
|
7764
|
+
* List activity
|
|
7765
|
+
*
|
|
7766
|
+
* 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.
|
|
7767
|
+
*/
|
|
7768
|
+
export const ticketGetActivity = (options) => (options?.client ?? client).get({
|
|
7769
|
+
security: [{
|
|
7770
|
+
key: 'BearerAuth',
|
|
7771
|
+
scheme: 'bearer',
|
|
7772
|
+
type: 'http'
|
|
7773
|
+
}, {
|
|
7774
|
+
key: 'ApiKeyAuth',
|
|
7775
|
+
name: 'X-API-Key',
|
|
7776
|
+
type: 'apiKey'
|
|
7777
|
+
}],
|
|
7778
|
+
url: '/ticket/v1/activity',
|
|
7779
|
+
...options
|
|
7780
|
+
});
|
|
7781
|
+
/**
|
|
7782
|
+
* List repositories
|
|
7783
|
+
*
|
|
7784
|
+
* 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.
|
|
7785
|
+
*/
|
|
7786
|
+
export const ticketGetRepositories = (options) => (options?.client ?? client).get({
|
|
7787
|
+
security: [{
|
|
7788
|
+
key: 'BearerAuth',
|
|
7789
|
+
scheme: 'bearer',
|
|
7790
|
+
type: 'http'
|
|
7791
|
+
}, {
|
|
7792
|
+
key: 'ApiKeyAuth',
|
|
7793
|
+
name: 'X-API-Key',
|
|
7794
|
+
type: 'apiKey'
|
|
7795
|
+
}],
|
|
7796
|
+
url: '/ticket/v1/repositories',
|
|
7797
|
+
...options
|
|
7798
|
+
});
|