@deepraxis/sdk 0.2.0-dev.142bee8 → 0.2.0-dev.1b88a02
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 +163 -73
- package/README.md +1 -1
- package/dist/automation.d.ts +683 -64
- package/dist/core/bindings.d.ts +13 -0
- package/dist/core/bindings.js +17 -0
- package/dist/core/client.js +1 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +270 -51
- package/dist/generated/sdk.gen.js +760 -340
- package/dist/generated/types.gen.d.ts +5143 -1917
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +2 -0
- package/dist/helpers/browser-connect-error.d.ts +15 -3
- package/dist/helpers/browser-connect-error.js +33 -8
- package/dist/helpers/browser-connect.d.ts +22 -1
- package/dist/helpers/browser-connect.js +44 -8
- package/dist/helpers/browser-decisions.d.ts +2 -0
- package/dist/helpers/browser-decisions.js +7 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -0
- package/dist/operations.generated.js +1395 -427
- package/dist/resources.generated.d.ts +864 -74
- package/dist/resources.generated.js +221 -85
- package/package.json +1 -1
|
@@ -1186,7 +1186,7 @@ export const createAgentUploadContentUrl = (options) => (options.client ?? clien
|
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Generate speech
|
|
1188
1188
|
*
|
|
1189
|
-
* Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as
|
|
1189
|
+
* Synthesize speech from text and return the complete audio as the response body. Use it for text-to-speech; to turn audio into text use createAudioTranscription. model is a speech model such as aura-2-en (list them with listModels?type=speech). Aura takes a native speaker name in voice (default luna) and supports mp3, opus, flac, wav and pcm (pcm is raw signed 16-bit little-endian audio at 24 kHz). lang is not read by any speech model offered today: Aura rejects it with 400 input_not_representable. Unlike OpenAI, voice names such as alloy are not aliases for Aura speakers. Non-default speed, instructions and stream_format sse are not representable and return 400 input_not_representable. No transcoding is done: when response_format is omitted the format the upstream produced is returned. Minimal request: {"model":"aura-2-en","input":"Hello","response_format":"mp3"}.
|
|
1190
1190
|
*/
|
|
1191
1191
|
export const createAudioSpeech = (options) => (options.client ?? client).post({
|
|
1192
1192
|
security: [{
|
|
@@ -1228,7 +1228,7 @@ export const browserListSessions = (options) => (options?.client ?? client).get(
|
|
|
1228
1228
|
/**
|
|
1229
1229
|
* 创建浏览器会话
|
|
1230
1230
|
*
|
|
1231
|
-
* 创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6
|
|
1231
|
+
* 创建云端 Chrome,返回自带凭证的 connectUrl;带 name 时按名字幂等:本账户已有同名且 RUNNING(未在释放中)、挂载的登录态与本次相同(都没挂也算相同)的会话,就直接返回这个会话(HTTP 200,reused=true,不新开、不计费),同名但登录态不同返回 409 SESSION_NAME_IN_USE(消息写明已有会话的 id),同名会话已在释放或已结束则新开;不带 name 时每次都新开(HTTP 201,reused=false)。同一件事请固定一个会话名并复用,不要每步新开再关闭:频繁新开会话对网站来说像同一账号不断换新设备登录,容易触发风控。persist 写入租约仍只属于这一个会话。它是一条完整 CDP 连接,真指针事件(触摸、拖拽、按坐标点击)从那里发送,页面动作接口只做按 ref 的语义动作。API 会话默认断开后结束;最长 6 小时。请求体里不认识的字段返回 400 INVALID_PARAMS 并写明字段名,不会被静默忽略;登录态写在 browserSettings.context({ id, persist }),写在顶层会被拒绝。运行中服务每 60 秒做一次健康检查(Browser.getVersion,超时 10 秒),连续 2 次失败即以 closeReason=watchdog 结束会话,keepAlive=true 也不豁免;该事件记录判据读数。
|
|
1232
1232
|
*/
|
|
1233
1233
|
export const browserCreateSession = (options) => (options.client ?? client).post({
|
|
1234
1234
|
security: [{
|
|
@@ -1306,7 +1306,7 @@ export const browserListEvents = (options) => (options.client ?? client).get({
|
|
|
1306
1306
|
/**
|
|
1307
1307
|
* 执行页面动作
|
|
1308
1308
|
*
|
|
1309
|
-
* 在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll
|
|
1309
|
+
* 在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 Playwright。同一会话的动作按到达顺序串行执行,单个动作 30 秒内完成。先用 snapshot 读取页面:元素带 [ref=eN],click、fill、select 按 ref 操作;ref 只在最近一次快照里有效,页面跳转后失效(409 ACTION_REF_STALE,重新 snapshot)。省略 tab 时作用于当前标签页。动作都是语义动作:click、fill、select 按快照 ref 定位元素,scroll 派发滚轮事件;网络层用 route、unroute、routes 拦截请求(对标 Playwright 的 context.route 与 CDP Fetch 域):规则挂在会话上,open、reload、新开标签页之后仍然有效,会话结束时清除,多条规则都匹配时后注册的优先;没有触摸、拖拽或按坐标点击,也没有按坐标派发指针事件的动作。页面必须收到真手指或指针事件(touchstart/touchmove/touchend、拖拽、按坐标点击)时,改用 CDP 连接:使用创建会话返回的 connectUrl,或 /browser/v1/connect 建立连接,再发送 Input.dispatchTouchEvent、Input.dispatchMouseEvent 等 CDP 命令。
|
|
1310
1310
|
*/
|
|
1311
1311
|
export const browserRunPageAction = (options) => (options.client ?? client).post({
|
|
1312
1312
|
security: [{
|
|
@@ -1559,7 +1559,7 @@ export const browserClaimByobPairing = (options) => (options.client ?? client).p
|
|
|
1559
1559
|
/**
|
|
1560
1560
|
* 连接云端浏览器
|
|
1561
1561
|
*
|
|
1562
|
-
* CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl
|
|
1562
|
+
* CDP WebSocket:不填 session 或 name 时新开;session 连接已有会话;name 有就连接、没有就新开。session 与 name 不可同时提供。新建参数在连接已有会话时忽略。使用 Authorization: Bearer API_KEY,或直接使用创建会话返回的带 signingKey 的 connectUrl。连上后发送 CDP 命令 Praxis.getSession,获取 sessionId、liveViewUrl、consoleUrl(两者都是该会话在 Console 的会话页)。这是完整 CDP 连接:真手指或指针事件(Emulation.setTouchEmulationEnabled 加 Input.dispatchTouchEvent、拖拽用的 Input.dispatchMouseEvent)只能从这里发,页面动作接口只做按 ref 的语义动作。要挂指定登录态,可用 context 参数,或直接连接 sessions.create 返回的 connectUrl。
|
|
1563
1563
|
*/
|
|
1564
1564
|
export const browserConnect = (options) => (options?.client ?? client).get({
|
|
1565
1565
|
security: [{
|
|
@@ -1577,7 +1577,7 @@ export const browserConnect = (options) => (options?.client ?? client).get({
|
|
|
1577
1577
|
/**
|
|
1578
1578
|
* 打开实时浏览器画面
|
|
1579
1579
|
*
|
|
1580
|
-
*
|
|
1580
|
+
* 旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。
|
|
1581
1581
|
*/
|
|
1582
1582
|
export const browserLiveView = (options) => (options.client ?? client).get({
|
|
1583
1583
|
security: [{
|
|
@@ -3276,9 +3276,9 @@ export const getOrganizationNotificationsInbox = (options) => (options?.client ?
|
|
|
3276
3276
|
...options
|
|
3277
3277
|
});
|
|
3278
3278
|
/**
|
|
3279
|
-
* List the letters addressed to you
|
|
3279
|
+
* List the letters addressed to you, or the ones you sent
|
|
3280
3280
|
*
|
|
3281
|
-
* The letters this person received in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.
|
|
3281
|
+
* The letters this person received (or, with direction=sent, wrote) in this organization, newest first, as the notification center lists them (ADR-193 §5, #4107): the sender, the summary and the whole body are the copy this reader receives — every human:/agent: address is rendered as the directory's display name, and one the directory cannot name reads 「未知成员」, never an address or an internal id. Also the kind, when it arrived, whether it is read, and one line saying why it reached this person. The address is the credential's own and is never a request field. Details stay whole in body; open one by its id. Pass next_cursor unchanged as cursor; null ends the list. Read-only; no usage charge.
|
|
3282
3282
|
*/
|
|
3283
3283
|
export const listOrganizationNotificationLetters = (options) => (options?.client ?? client).get({
|
|
3284
3284
|
security: [{
|
|
@@ -3391,6 +3391,100 @@ export const archiveOrganizationNotificationLetter = (options) => (options.clien
|
|
|
3391
3391
|
url: '/organization/v1/notifications/letters/{id}:archive',
|
|
3392
3392
|
...options
|
|
3393
3393
|
});
|
|
3394
|
+
/**
|
|
3395
|
+
* List your bell messages
|
|
3396
|
+
*
|
|
3397
|
+
* The calling person's bell messages in this organization, newest first: the inbox tab by default, or the archive tab with archived=1. The person is always the credential's own; the request cannot name another member. Pass nextPageToken unchanged as page for the next page; it is absent on the last one. Read-only; no usage charge.
|
|
3398
|
+
*/
|
|
3399
|
+
export const listOrganizationNotificationMessages = (options) => (options?.client ?? client).get({
|
|
3400
|
+
security: [{
|
|
3401
|
+
key: 'BearerAuth',
|
|
3402
|
+
scheme: 'bearer',
|
|
3403
|
+
type: 'http'
|
|
3404
|
+
}, {
|
|
3405
|
+
key: 'ApiKeyAuth',
|
|
3406
|
+
name: 'X-API-Key',
|
|
3407
|
+
type: 'apiKey'
|
|
3408
|
+
}],
|
|
3409
|
+
url: '/organization/v1/notifications/messages',
|
|
3410
|
+
...options
|
|
3411
|
+
});
|
|
3412
|
+
/**
|
|
3413
|
+
* Delete one of your bell messages
|
|
3414
|
+
*
|
|
3415
|
+
* Delete one of the calling person's own bell messages for good. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.
|
|
3416
|
+
*/
|
|
3417
|
+
export const deleteOrganizationNotificationMessage = (options) => (options.client ?? client).delete({
|
|
3418
|
+
security: [{
|
|
3419
|
+
key: 'BearerAuth',
|
|
3420
|
+
scheme: 'bearer',
|
|
3421
|
+
type: 'http'
|
|
3422
|
+
}, {
|
|
3423
|
+
key: 'ApiKeyAuth',
|
|
3424
|
+
name: 'X-API-Key',
|
|
3425
|
+
type: 'apiKey'
|
|
3426
|
+
}],
|
|
3427
|
+
url: '/organization/v1/notifications/messages/{name}',
|
|
3428
|
+
...options
|
|
3429
|
+
});
|
|
3430
|
+
/**
|
|
3431
|
+
* Open one of your bell messages
|
|
3432
|
+
*
|
|
3433
|
+
* One bell message of the calling person by its name. A message that is not theirs — another person's, another organization's — answers 404 exactly as one that does not exist, without saying which. Read-only; no usage charge.
|
|
3434
|
+
*/
|
|
3435
|
+
export const getOrganizationNotificationMessage = (options) => (options.client ?? client).get({
|
|
3436
|
+
security: [{
|
|
3437
|
+
key: 'BearerAuth',
|
|
3438
|
+
scheme: 'bearer',
|
|
3439
|
+
type: 'http'
|
|
3440
|
+
}, {
|
|
3441
|
+
key: 'ApiKeyAuth',
|
|
3442
|
+
name: 'X-API-Key',
|
|
3443
|
+
type: 'apiKey'
|
|
3444
|
+
}],
|
|
3445
|
+
url: '/organization/v1/notifications/messages/{name}',
|
|
3446
|
+
...options
|
|
3447
|
+
});
|
|
3448
|
+
/**
|
|
3449
|
+
* Mark one of your bell messages read or archived
|
|
3450
|
+
*
|
|
3451
|
+
* Change the read or archived flag of one of the calling person's own bell messages and return it. Name at least one flag. Reading a message also tells the notification still waiting on it, so it is not emailed later as unread. A message that is not theirs answers 404 like one that does not exist. No usage charge.
|
|
3452
|
+
*/
|
|
3453
|
+
export const updateOrganizationNotificationMessage = (options) => (options.client ?? client).post({
|
|
3454
|
+
security: [{
|
|
3455
|
+
key: 'BearerAuth',
|
|
3456
|
+
scheme: 'bearer',
|
|
3457
|
+
type: 'http'
|
|
3458
|
+
}, {
|
|
3459
|
+
key: 'ApiKeyAuth',
|
|
3460
|
+
name: 'X-API-Key',
|
|
3461
|
+
type: 'apiKey'
|
|
3462
|
+
}],
|
|
3463
|
+
url: '/organization/v1/notifications/messages/{name}',
|
|
3464
|
+
...options,
|
|
3465
|
+
headers: {
|
|
3466
|
+
'Content-Type': 'application/json',
|
|
3467
|
+
...options.headers
|
|
3468
|
+
}
|
|
3469
|
+
});
|
|
3470
|
+
/**
|
|
3471
|
+
* Mark all your unread bell messages read
|
|
3472
|
+
*
|
|
3473
|
+
* Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else's is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.
|
|
3474
|
+
*/
|
|
3475
|
+
export const readAllOrganizationNotificationMessages = (options) => (options?.client ?? client).post({
|
|
3476
|
+
security: [{
|
|
3477
|
+
key: 'BearerAuth',
|
|
3478
|
+
scheme: 'bearer',
|
|
3479
|
+
type: 'http'
|
|
3480
|
+
}, {
|
|
3481
|
+
key: 'ApiKeyAuth',
|
|
3482
|
+
name: 'X-API-Key',
|
|
3483
|
+
type: 'apiKey'
|
|
3484
|
+
}],
|
|
3485
|
+
url: '/organization/v1/notifications/messages:readAll',
|
|
3486
|
+
...options
|
|
3487
|
+
});
|
|
3394
3488
|
/**
|
|
3395
3489
|
* Your notification switches, and what they resolve to
|
|
3396
3490
|
*
|
|
@@ -3957,6 +4051,24 @@ export const getByodPairing = (options) => (options.client ?? client).get({
|
|
|
3957
4051
|
url: '/sandbox/v1/byod/pairings/{code}',
|
|
3958
4052
|
...options
|
|
3959
4053
|
});
|
|
4054
|
+
/**
|
|
4055
|
+
* Read which device claimed your pairing
|
|
4056
|
+
*
|
|
4057
|
+
* Read one of your organization's own pairings: its code, its deadline and the device that claimed it. Poll it after showing the QR payload to learn that this very code was claimed, instead of guessing from the device list: claimed_device is null until a phone taps Allow, then it is the device that code registered (a phone that was paired before is reused, so it is the same device id). Unlike getByodPairing this call is authenticated and organization-scoped. An unknown code and another organization's code both answer 404, so the answer never reveals that a foreign pairing exists. Example: GET /sandbox/v1/byod/pairings/K7M4PQRS/status returns {code:'K7M4PQRS',expires_at:'2026-11-22T13:10:00.000Z',claimed_device:null}.
|
|
4058
|
+
*/
|
|
4059
|
+
export const getByodPairingStatus = (options) => (options.client ?? client).get({
|
|
4060
|
+
security: [{
|
|
4061
|
+
key: 'BearerAuth',
|
|
4062
|
+
scheme: 'bearer',
|
|
4063
|
+
type: 'http'
|
|
4064
|
+
}, {
|
|
4065
|
+
key: 'ApiKeyAuth',
|
|
4066
|
+
name: 'X-API-Key',
|
|
4067
|
+
type: 'apiKey'
|
|
4068
|
+
}],
|
|
4069
|
+
url: '/sandbox/v1/byod/pairings/{code}/status',
|
|
4070
|
+
...options
|
|
4071
|
+
});
|
|
3960
4072
|
/**
|
|
3961
4073
|
* Claim a pairing and register the phone
|
|
3962
4074
|
*
|
|
@@ -6521,7 +6633,7 @@ export const automationActionsGet = (options) => (options.client ?? client).get(
|
|
|
6521
6633
|
name: 'X-API-Key',
|
|
6522
6634
|
type: 'apiKey'
|
|
6523
6635
|
}],
|
|
6524
|
-
url: '/automation/v1/actions/{
|
|
6636
|
+
url: '/automation/v1/actions/{namespace}/{name}',
|
|
6525
6637
|
...options
|
|
6526
6638
|
});
|
|
6527
6639
|
/**
|
|
@@ -6539,7 +6651,7 @@ export const automationActionsUpdate = (options) => (options.client ?? client).p
|
|
|
6539
6651
|
name: 'X-API-Key',
|
|
6540
6652
|
type: 'apiKey'
|
|
6541
6653
|
}],
|
|
6542
|
-
url: '/automation/v1/actions/{
|
|
6654
|
+
url: '/automation/v1/actions/{namespace}/{name}',
|
|
6543
6655
|
...options,
|
|
6544
6656
|
headers: {
|
|
6545
6657
|
'Content-Type': 'application/json',
|
|
@@ -6561,7 +6673,7 @@ export const automationActionsRevisions = (options) => (options.client ?? client
|
|
|
6561
6673
|
name: 'X-API-Key',
|
|
6562
6674
|
type: 'apiKey'
|
|
6563
6675
|
}],
|
|
6564
|
-
url: '/automation/v1/actions/{
|
|
6676
|
+
url: '/automation/v1/actions/{namespace}/{name}/revisions',
|
|
6565
6677
|
...options
|
|
6566
6678
|
});
|
|
6567
6679
|
/**
|
|
@@ -6579,7 +6691,7 @@ export const automationActionsRevision = (options) => (options.client ?? client)
|
|
|
6579
6691
|
name: 'X-API-Key',
|
|
6580
6692
|
type: 'apiKey'
|
|
6581
6693
|
}],
|
|
6582
|
-
url: '/automation/v1/actions/{
|
|
6694
|
+
url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}',
|
|
6583
6695
|
...options
|
|
6584
6696
|
});
|
|
6585
6697
|
/**
|
|
@@ -6597,7 +6709,7 @@ export const automationActionsRollback = (options) => (options.client ?? client)
|
|
|
6597
6709
|
name: 'X-API-Key',
|
|
6598
6710
|
type: 'apiKey'
|
|
6599
6711
|
}],
|
|
6600
|
-
url: '/automation/v1/actions/{
|
|
6712
|
+
url: '/automation/v1/actions/{namespace}/{name}/rollback',
|
|
6601
6713
|
...options,
|
|
6602
6714
|
headers: {
|
|
6603
6715
|
'Content-Type': 'application/json',
|
|
@@ -6620,7 +6732,7 @@ export const automationActionsInvocations = (options) => (options.client ?? clie
|
|
|
6620
6732
|
name: 'X-API-Key',
|
|
6621
6733
|
type: 'apiKey'
|
|
6622
6734
|
}],
|
|
6623
|
-
url: '/automation/v1/actions/{
|
|
6735
|
+
url: '/automation/v1/actions/{namespace}/{name}/invocations',
|
|
6624
6736
|
...options
|
|
6625
6737
|
});
|
|
6626
6738
|
/**
|
|
@@ -6638,7 +6750,7 @@ export const automationActionsDependents = (options) => (options.client ?? clien
|
|
|
6638
6750
|
name: 'X-API-Key',
|
|
6639
6751
|
type: 'apiKey'
|
|
6640
6752
|
}],
|
|
6641
|
-
url: '/automation/v1/actions/{
|
|
6753
|
+
url: '/automation/v1/actions/{namespace}/{name}/dependents',
|
|
6642
6754
|
...options
|
|
6643
6755
|
});
|
|
6644
6756
|
/**
|
|
@@ -6656,7 +6768,7 @@ export const automationActionsArchive = (options) => (options.client ?? client).
|
|
|
6656
6768
|
name: 'X-API-Key',
|
|
6657
6769
|
type: 'apiKey'
|
|
6658
6770
|
}],
|
|
6659
|
-
url: '/automation/v1/actions/{
|
|
6771
|
+
url: '/automation/v1/actions/{namespace}/{name}/archive',
|
|
6660
6772
|
...options,
|
|
6661
6773
|
headers: {
|
|
6662
6774
|
'Content-Type': 'application/json',
|
|
@@ -6678,7 +6790,7 @@ export const automationActionsRestore = (options) => (options.client ?? client).
|
|
|
6678
6790
|
name: 'X-API-Key',
|
|
6679
6791
|
type: 'apiKey'
|
|
6680
6792
|
}],
|
|
6681
|
-
url: '/automation/v1/actions/{
|
|
6793
|
+
url: '/automation/v1/actions/{namespace}/{name}/restore',
|
|
6682
6794
|
...options,
|
|
6683
6795
|
headers: {
|
|
6684
6796
|
'Content-Type': 'application/json',
|
|
@@ -6707,7 +6819,7 @@ export const automationScriptsList = (options) => (options?.client ?? client).ge
|
|
|
6707
6819
|
/**
|
|
6708
6820
|
* Create a script
|
|
6709
6821
|
*
|
|
6710
|
-
* Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: "Hello, " + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call("ocr", input) calls a built-in Action, and invoke("namespace/name", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call("write-file", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later,
|
|
6822
|
+
* Save a TypeScript script as an editable draft for later reuse; this does not publish or start a run. Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. The draft is a source string with a default-exported function, for example `export default async (input: {name: string}) => ({greeting: "Hello, " + input.name});`. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call("ocr", input) calls a built-in Action, and invoke("namespace/name", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist. The return value is limited to 1 MiB: write large results to a file with call("write-file", ...) and return the file ID. A call error carries errors[] (pointer, detail, hint); String(e) is only the summary. To test it, pass that source and language=ts to praxis.automation.runs.create without publishing. To publish later, send the returned draft.revision as draft.revision of the publish request.
|
|
6711
6823
|
*/
|
|
6712
6824
|
export const automationScriptsCreate = (options) => (options.client ?? client).post({
|
|
6713
6825
|
security: [{
|
|
@@ -6729,7 +6841,7 @@ export const automationScriptsCreate = (options) => (options.client ?? client).p
|
|
|
6729
6841
|
/**
|
|
6730
6842
|
* Get a script
|
|
6731
6843
|
*
|
|
6732
|
-
* Read script details and draft source. The
|
|
6844
|
+
* Read script details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.
|
|
6733
6845
|
*/
|
|
6734
6846
|
export const automationScriptsGet = (options) => (options.client ?? client).get({
|
|
6735
6847
|
security: [{
|
|
@@ -6741,13 +6853,13 @@ export const automationScriptsGet = (options) => (options.client ?? client).get(
|
|
|
6741
6853
|
name: 'X-API-Key',
|
|
6742
6854
|
type: 'apiKey'
|
|
6743
6855
|
}],
|
|
6744
|
-
url: '/automation/v1/scripts/{
|
|
6856
|
+
url: '/automation/v1/scripts/{namespace}/{name}',
|
|
6745
6857
|
...options
|
|
6746
6858
|
});
|
|
6747
6859
|
/**
|
|
6748
6860
|
* Update a script draft
|
|
6749
6861
|
*
|
|
6750
|
-
* Update description, labels or draft with the current draft revision in If-Match. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call("ocr", input) calls a built-in Action, and invoke("namespace/name", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.
|
|
6862
|
+
* Update description, labels or draft with the current draft revision in the body as draft.revision (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. Scripts provide praxis, call, invoke, console and codemode as module-scope bindings, not on globalThis, with no import needed: praxis.<domain>.<resource>.<method>(...) calls a platform API, call("ocr", input) calls a built-in Action, and invoke("namespace/name", input) starts a child run. Action IDs are strings (bare names for built-ins, namespace/name for your own Actions); praxis.ocr(...) does not exist.
|
|
6751
6863
|
*/
|
|
6752
6864
|
export const automationScriptsPatch = (options) => (options.client ?? client).patch({
|
|
6753
6865
|
security: [{
|
|
@@ -6759,7 +6871,7 @@ export const automationScriptsPatch = (options) => (options.client ?? client).pa
|
|
|
6759
6871
|
name: 'X-API-Key',
|
|
6760
6872
|
type: 'apiKey'
|
|
6761
6873
|
}],
|
|
6762
|
-
url: '/automation/v1/scripts/{
|
|
6874
|
+
url: '/automation/v1/scripts/{namespace}/{name}',
|
|
6763
6875
|
...options,
|
|
6764
6876
|
headers: {
|
|
6765
6877
|
'Content-Type': 'application/json',
|
|
@@ -6781,7 +6893,7 @@ export const automationScriptsArchive = (options) => (options.client ?? client).
|
|
|
6781
6893
|
name: 'X-API-Key',
|
|
6782
6894
|
type: 'apiKey'
|
|
6783
6895
|
}],
|
|
6784
|
-
url: '/automation/v1/scripts/{
|
|
6896
|
+
url: '/automation/v1/scripts/{namespace}/{name}/archive',
|
|
6785
6897
|
...options,
|
|
6786
6898
|
headers: {
|
|
6787
6899
|
'Content-Type': 'application/json',
|
|
@@ -6803,7 +6915,7 @@ export const automationScriptsRestore = (options) => (options.client ?? client).
|
|
|
6803
6915
|
name: 'X-API-Key',
|
|
6804
6916
|
type: 'apiKey'
|
|
6805
6917
|
}],
|
|
6806
|
-
url: '/automation/v1/scripts/{
|
|
6918
|
+
url: '/automation/v1/scripts/{namespace}/{name}/restore',
|
|
6807
6919
|
...options,
|
|
6808
6920
|
headers: {
|
|
6809
6921
|
'Content-Type': 'application/json',
|
|
@@ -6825,13 +6937,13 @@ export const automationScriptsVersions = (options) => (options.client ?? client)
|
|
|
6825
6937
|
name: 'X-API-Key',
|
|
6826
6938
|
type: 'apiKey'
|
|
6827
6939
|
}],
|
|
6828
|
-
url: '/automation/v1/scripts/{
|
|
6940
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions',
|
|
6829
6941
|
...options
|
|
6830
6942
|
});
|
|
6831
6943
|
/**
|
|
6832
6944
|
* Publish a script version
|
|
6833
6945
|
*
|
|
6834
|
-
* Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead.
|
|
6946
|
+
* Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. Publishing removes +build metadata from the version number.
|
|
6835
6947
|
*/
|
|
6836
6948
|
export const automationScriptsPublish = (options) => (options.client ?? client).post({
|
|
6837
6949
|
security: [{
|
|
@@ -6843,7 +6955,7 @@ export const automationScriptsPublish = (options) => (options.client ?? client).
|
|
|
6843
6955
|
name: 'X-API-Key',
|
|
6844
6956
|
type: 'apiKey'
|
|
6845
6957
|
}],
|
|
6846
|
-
url: '/automation/v1/scripts/{
|
|
6958
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions',
|
|
6847
6959
|
...options,
|
|
6848
6960
|
headers: {
|
|
6849
6961
|
'Content-Type': 'application/json',
|
|
@@ -6865,7 +6977,7 @@ export const automationScriptsVersion = (options) => (options.client ?? client).
|
|
|
6865
6977
|
name: 'X-API-Key',
|
|
6866
6978
|
type: 'apiKey'
|
|
6867
6979
|
}],
|
|
6868
|
-
url: '/automation/v1/scripts/{
|
|
6980
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}',
|
|
6869
6981
|
...options
|
|
6870
6982
|
});
|
|
6871
6983
|
/**
|
|
@@ -6883,7 +6995,7 @@ export const automationScriptsDeprecate = (options) => (options.client ?? client
|
|
|
6883
6995
|
name: 'X-API-Key',
|
|
6884
6996
|
type: 'apiKey'
|
|
6885
6997
|
}],
|
|
6886
|
-
url: '/automation/v1/scripts/{
|
|
6998
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate',
|
|
6887
6999
|
...options,
|
|
6888
7000
|
headers: {
|
|
6889
7001
|
'Content-Type': 'application/json',
|
|
@@ -6905,7 +7017,7 @@ export const automationScriptsDistTags = (options) => (options.client ?? client)
|
|
|
6905
7017
|
name: 'X-API-Key',
|
|
6906
7018
|
type: 'apiKey'
|
|
6907
7019
|
}],
|
|
6908
|
-
url: '/automation/v1/scripts/{
|
|
7020
|
+
url: '/automation/v1/scripts/{namespace}/{name}/dist-tags',
|
|
6909
7021
|
...options
|
|
6910
7022
|
});
|
|
6911
7023
|
/**
|
|
@@ -6923,7 +7035,7 @@ export const automationScriptsDeleteDistTag = (options) => (options.client ?? cl
|
|
|
6923
7035
|
name: 'X-API-Key',
|
|
6924
7036
|
type: 'apiKey'
|
|
6925
7037
|
}],
|
|
6926
|
-
url: '/automation/v1/scripts/{
|
|
7038
|
+
url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}',
|
|
6927
7039
|
...options
|
|
6928
7040
|
});
|
|
6929
7041
|
/**
|
|
@@ -6941,7 +7053,7 @@ export const automationScriptsSetDistTag = (options) => (options.client ?? clien
|
|
|
6941
7053
|
name: 'X-API-Key',
|
|
6942
7054
|
type: 'apiKey'
|
|
6943
7055
|
}],
|
|
6944
|
-
url: '/automation/v1/scripts/{
|
|
7056
|
+
url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}',
|
|
6945
7057
|
...options,
|
|
6946
7058
|
headers: {
|
|
6947
7059
|
'Content-Type': 'application/json',
|
|
@@ -6992,7 +7104,7 @@ export const automationWorkflowsCreate = (options) => (options.client ?? client)
|
|
|
6992
7104
|
/**
|
|
6993
7105
|
* Get a workflow
|
|
6994
7106
|
*
|
|
6995
|
-
* Read workflow details and draft source. The
|
|
7107
|
+
* Read workflow details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.
|
|
6996
7108
|
*/
|
|
6997
7109
|
export const automationWorkflowsGet = (options) => (options.client ?? client).get({
|
|
6998
7110
|
security: [{
|
|
@@ -7004,13 +7116,13 @@ export const automationWorkflowsGet = (options) => (options.client ?? client).ge
|
|
|
7004
7116
|
name: 'X-API-Key',
|
|
7005
7117
|
type: 'apiKey'
|
|
7006
7118
|
}],
|
|
7007
|
-
url: '/automation/v1/workflows/{
|
|
7119
|
+
url: '/automation/v1/workflows/{namespace}/{name}',
|
|
7008
7120
|
...options
|
|
7009
7121
|
});
|
|
7010
7122
|
/**
|
|
7011
7123
|
* Update a workflow draft
|
|
7012
7124
|
*
|
|
7013
|
-
* Update description, labels or draft with the current draft revision in
|
|
7125
|
+
* Update description, labels or draft with the current draft revision in the body as draft.revision, taken from the get-workflow response (the If-Match header is a deprecated alias); draft may be the object a read returns, and a bare string still means { source }. Even metadata-only updates create a new draft revision. A mismatch returns 412 PRECONDITION_FAILED; read the draft again, merge and retry. The draft is not validated here, so check it with validate (kind=workflow) before publishing. Error details are in errors[]. See the workflow syntax reference at https://docs.deepraxis.com/developers/automation/reference/workflow-syntax.
|
|
7014
7126
|
*/
|
|
7015
7127
|
export const automationWorkflowsPatch = (options) => (options.client ?? client).patch({
|
|
7016
7128
|
security: [{
|
|
@@ -7022,7 +7134,7 @@ export const automationWorkflowsPatch = (options) => (options.client ?? client).
|
|
|
7022
7134
|
name: 'X-API-Key',
|
|
7023
7135
|
type: 'apiKey'
|
|
7024
7136
|
}],
|
|
7025
|
-
url: '/automation/v1/workflows/{
|
|
7137
|
+
url: '/automation/v1/workflows/{namespace}/{name}',
|
|
7026
7138
|
...options,
|
|
7027
7139
|
headers: {
|
|
7028
7140
|
'Content-Type': 'application/json',
|
|
@@ -7044,7 +7156,7 @@ export const automationWorkflowsArchive = (options) => (options.client ?? client
|
|
|
7044
7156
|
name: 'X-API-Key',
|
|
7045
7157
|
type: 'apiKey'
|
|
7046
7158
|
}],
|
|
7047
|
-
url: '/automation/v1/workflows/{
|
|
7159
|
+
url: '/automation/v1/workflows/{namespace}/{name}/archive',
|
|
7048
7160
|
...options,
|
|
7049
7161
|
headers: {
|
|
7050
7162
|
'Content-Type': 'application/json',
|
|
@@ -7066,7 +7178,7 @@ export const automationWorkflowsRestore = (options) => (options.client ?? client
|
|
|
7066
7178
|
name: 'X-API-Key',
|
|
7067
7179
|
type: 'apiKey'
|
|
7068
7180
|
}],
|
|
7069
|
-
url: '/automation/v1/workflows/{
|
|
7181
|
+
url: '/automation/v1/workflows/{namespace}/{name}/restore',
|
|
7070
7182
|
...options,
|
|
7071
7183
|
headers: {
|
|
7072
7184
|
'Content-Type': 'application/json',
|
|
@@ -7088,13 +7200,13 @@ export const automationWorkflowsVersions = (options) => (options.client ?? clien
|
|
|
7088
7200
|
name: 'X-API-Key',
|
|
7089
7201
|
type: 'apiKey'
|
|
7090
7202
|
}],
|
|
7091
|
-
url: '/automation/v1/workflows/{
|
|
7203
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions',
|
|
7092
7204
|
...options
|
|
7093
7205
|
});
|
|
7094
7206
|
/**
|
|
7095
7207
|
* Publish a workflow version
|
|
7096
7208
|
*
|
|
7097
|
-
* Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead.
|
|
7209
|
+
* Publish a saved definition from its draft or an ad hoc run as a reusable version for named runs or triggers, validating the definition and locking dependencies. To test unpublished code, use praxis.automation.runs.create with source and language instead. Send draft.revision from create or retrieve as draft.revision in the body (expected_draft_revision is a deprecated alias). The draft must match it; an ad hoc run requires from_run and expected_source_sha256. The same version and contents return the existing version; different contents return VERSION_EXISTS, prereleases require an explicit tag (not latest, URL-safe characters only, not a version or range; violations return TAG_REQUIRED or TAG_INVALID with the complete rules in hint), and invalid definitions return DEFINITION_INVALID. Stable releases automatically advance latest only above the highest existing stable version; workflows becoming latest synchronize their declared schedule. String and object run.workflow/run.script references share version resolution and dependency locking. Publishing removes +build metadata from the version number. For a workflow, document namespace, name and version must equal the publish target, otherwise DEFINITION_IDENTITY_MISMATCH; where a DEFINITION_INVALID failure sits is listed in errors[] (pointer, detail, hint).
|
|
7098
7210
|
*/
|
|
7099
7211
|
export const automationWorkflowsPublish = (options) => (options.client ?? client).post({
|
|
7100
7212
|
security: [{
|
|
@@ -7106,7 +7218,7 @@ export const automationWorkflowsPublish = (options) => (options.client ?? client
|
|
|
7106
7218
|
name: 'X-API-Key',
|
|
7107
7219
|
type: 'apiKey'
|
|
7108
7220
|
}],
|
|
7109
|
-
url: '/automation/v1/workflows/{
|
|
7221
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions',
|
|
7110
7222
|
...options,
|
|
7111
7223
|
headers: {
|
|
7112
7224
|
'Content-Type': 'application/json',
|
|
@@ -7128,7 +7240,7 @@ export const automationWorkflowsVersion = (options) => (options.client ?? client
|
|
|
7128
7240
|
name: 'X-API-Key',
|
|
7129
7241
|
type: 'apiKey'
|
|
7130
7242
|
}],
|
|
7131
|
-
url: '/automation/v1/workflows/{
|
|
7243
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}',
|
|
7132
7244
|
...options
|
|
7133
7245
|
});
|
|
7134
7246
|
/**
|
|
@@ -7146,7 +7258,7 @@ export const automationWorkflowsDeprecate = (options) => (options.client ?? clie
|
|
|
7146
7258
|
name: 'X-API-Key',
|
|
7147
7259
|
type: 'apiKey'
|
|
7148
7260
|
}],
|
|
7149
|
-
url: '/automation/v1/workflows/{
|
|
7261
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate',
|
|
7150
7262
|
...options,
|
|
7151
7263
|
headers: {
|
|
7152
7264
|
'Content-Type': 'application/json',
|
|
@@ -7168,7 +7280,7 @@ export const automationWorkflowsDistTags = (options) => (options.client ?? clien
|
|
|
7168
7280
|
name: 'X-API-Key',
|
|
7169
7281
|
type: 'apiKey'
|
|
7170
7282
|
}],
|
|
7171
|
-
url: '/automation/v1/workflows/{
|
|
7283
|
+
url: '/automation/v1/workflows/{namespace}/{name}/dist-tags',
|
|
7172
7284
|
...options
|
|
7173
7285
|
});
|
|
7174
7286
|
/**
|
|
@@ -7186,7 +7298,7 @@ export const automationWorkflowsDeleteDistTag = (options) => (options.client ??
|
|
|
7186
7298
|
name: 'X-API-Key',
|
|
7187
7299
|
type: 'apiKey'
|
|
7188
7300
|
}],
|
|
7189
|
-
url: '/automation/v1/workflows/{
|
|
7301
|
+
url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}',
|
|
7190
7302
|
...options
|
|
7191
7303
|
});
|
|
7192
7304
|
/**
|
|
@@ -7204,7 +7316,7 @@ export const automationWorkflowsSetDistTag = (options) => (options.client ?? cli
|
|
|
7204
7316
|
name: 'X-API-Key',
|
|
7205
7317
|
type: 'apiKey'
|
|
7206
7318
|
}],
|
|
7207
|
-
url: '/automation/v1/workflows/{
|
|
7319
|
+
url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}',
|
|
7208
7320
|
...options,
|
|
7209
7321
|
headers: {
|
|
7210
7322
|
'Content-Type': 'application/json',
|
|
@@ -7337,7 +7449,7 @@ export const automationRunsGet = (options) => (options.client ?? client).get({
|
|
|
7337
7449
|
name: 'X-API-Key',
|
|
7338
7450
|
type: 'apiKey'
|
|
7339
7451
|
}],
|
|
7340
|
-
url: '/automation/v1/runs/{
|
|
7452
|
+
url: '/automation/v1/runs/{run_id}',
|
|
7341
7453
|
...options
|
|
7342
7454
|
});
|
|
7343
7455
|
/**
|
|
@@ -7355,7 +7467,7 @@ export const automationRunsCancel = (options) => (options.client ?? client).post
|
|
|
7355
7467
|
name: 'X-API-Key',
|
|
7356
7468
|
type: 'apiKey'
|
|
7357
7469
|
}],
|
|
7358
|
-
url: '/automation/v1/runs/{
|
|
7470
|
+
url: '/automation/v1/runs/{run_id}/cancel',
|
|
7359
7471
|
...options,
|
|
7360
7472
|
headers: {
|
|
7361
7473
|
'Content-Type': 'application/json',
|
|
@@ -7377,7 +7489,7 @@ export const automationRunsRerun = (options) => (options.client ?? client).post(
|
|
|
7377
7489
|
name: 'X-API-Key',
|
|
7378
7490
|
type: 'apiKey'
|
|
7379
7491
|
}],
|
|
7380
|
-
url: '/automation/v1/runs/{
|
|
7492
|
+
url: '/automation/v1/runs/{run_id}/rerun',
|
|
7381
7493
|
...options,
|
|
7382
7494
|
headers: {
|
|
7383
7495
|
'Content-Type': 'application/json',
|
|
@@ -7399,7 +7511,7 @@ export const automationRunsSuspend = (options) => (options.client ?? client).pos
|
|
|
7399
7511
|
name: 'X-API-Key',
|
|
7400
7512
|
type: 'apiKey'
|
|
7401
7513
|
}],
|
|
7402
|
-
url: '/automation/v1/runs/{
|
|
7514
|
+
url: '/automation/v1/runs/{run_id}/suspend',
|
|
7403
7515
|
...options,
|
|
7404
7516
|
headers: {
|
|
7405
7517
|
'Content-Type': 'application/json',
|
|
@@ -7421,7 +7533,7 @@ export const automationRunsResume = (options) => (options.client ?? client).post
|
|
|
7421
7533
|
name: 'X-API-Key',
|
|
7422
7534
|
type: 'apiKey'
|
|
7423
7535
|
}],
|
|
7424
|
-
url: '/automation/v1/runs/{
|
|
7536
|
+
url: '/automation/v1/runs/{run_id}/resume',
|
|
7425
7537
|
...options,
|
|
7426
7538
|
headers: {
|
|
7427
7539
|
'Content-Type': 'application/json',
|
|
@@ -7443,7 +7555,7 @@ export const automationRunsWaits = (options) => (options.client ?? client).get({
|
|
|
7443
7555
|
name: 'X-API-Key',
|
|
7444
7556
|
type: 'apiKey'
|
|
7445
7557
|
}],
|
|
7446
|
-
url: '/automation/v1/runs/{
|
|
7558
|
+
url: '/automation/v1/runs/{run_id}/waits',
|
|
7447
7559
|
...options
|
|
7448
7560
|
});
|
|
7449
7561
|
/**
|
|
@@ -7461,7 +7573,7 @@ export const automationRunsCalls = (options) => (options.client ?? client).get({
|
|
|
7461
7573
|
name: 'X-API-Key',
|
|
7462
7574
|
type: 'apiKey'
|
|
7463
7575
|
}],
|
|
7464
|
-
url: '/automation/v1/runs/{
|
|
7576
|
+
url: '/automation/v1/runs/{run_id}/calls',
|
|
7465
7577
|
...options
|
|
7466
7578
|
});
|
|
7467
7579
|
/**
|
|
@@ -7479,7 +7591,7 @@ export const automationRunsArtifacts = (options) => (options.client ?? client).g
|
|
|
7479
7591
|
name: 'X-API-Key',
|
|
7480
7592
|
type: 'apiKey'
|
|
7481
7593
|
}],
|
|
7482
|
-
url: '/automation/v1/runs/{
|
|
7594
|
+
url: '/automation/v1/runs/{run_id}/artifacts',
|
|
7483
7595
|
...options
|
|
7484
7596
|
});
|
|
7485
7597
|
/**
|
|
@@ -7497,7 +7609,7 @@ export const automationRunsCompleteWait = (options) => (options.client ?? client
|
|
|
7497
7609
|
name: 'X-API-Key',
|
|
7498
7610
|
type: 'apiKey'
|
|
7499
7611
|
}],
|
|
7500
|
-
url: '/automation/v1/runs/{
|
|
7612
|
+
url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete',
|
|
7501
7613
|
...options,
|
|
7502
7614
|
headers: {
|
|
7503
7615
|
'Content-Type': 'application/json',
|
|
@@ -7519,7 +7631,7 @@ export const automationRunsTasks = (options) => (options.client ?? client).get({
|
|
|
7519
7631
|
name: 'X-API-Key',
|
|
7520
7632
|
type: 'apiKey'
|
|
7521
7633
|
}],
|
|
7522
|
-
url: '/automation/v1/runs/{
|
|
7634
|
+
url: '/automation/v1/runs/{run_id}/tasks',
|
|
7523
7635
|
...options
|
|
7524
7636
|
});
|
|
7525
7637
|
/**
|
|
@@ -7537,7 +7649,7 @@ export const automationRunsEvents = (options) => (options.client ?? client).get(
|
|
|
7537
7649
|
name: 'X-API-Key',
|
|
7538
7650
|
type: 'apiKey'
|
|
7539
7651
|
}],
|
|
7540
|
-
url: '/automation/v1/runs/{
|
|
7652
|
+
url: '/automation/v1/runs/{run_id}/events',
|
|
7541
7653
|
...options
|
|
7542
7654
|
});
|
|
7543
7655
|
/**
|
|
@@ -7555,7 +7667,7 @@ export const automationRunsLogs = (options) => (options.client ?? client).get({
|
|
|
7555
7667
|
name: 'X-API-Key',
|
|
7556
7668
|
type: 'apiKey'
|
|
7557
7669
|
}],
|
|
7558
|
-
url: '/automation/v1/runs/{
|
|
7670
|
+
url: '/automation/v1/runs/{run_id}/logs',
|
|
7559
7671
|
...options
|
|
7560
7672
|
});
|
|
7561
7673
|
/**
|
|
@@ -7573,7 +7685,7 @@ export const automationRunsSource = (options) => (options.client ?? client).get(
|
|
|
7573
7685
|
name: 'X-API-Key',
|
|
7574
7686
|
type: 'apiKey'
|
|
7575
7687
|
}],
|
|
7576
|
-
url: '/automation/v1/runs/{
|
|
7688
|
+
url: '/automation/v1/runs/{run_id}/source',
|
|
7577
7689
|
...options
|
|
7578
7690
|
});
|
|
7579
7691
|
/**
|
|
@@ -7585,7 +7697,8 @@ export const automationTriggersList = (options) => (options?.client ?? client).g
|
|
|
7585
7697
|
querySerializer: { parameters: {
|
|
7586
7698
|
target: { array: { explode: false } },
|
|
7587
7699
|
kind: { array: { explode: false } },
|
|
7588
|
-
state: { array: { explode: false } }
|
|
7700
|
+
state: { array: { explode: false } },
|
|
7701
|
+
status: { array: { explode: false } }
|
|
7589
7702
|
} },
|
|
7590
7703
|
security: [{
|
|
7591
7704
|
key: 'BearerAuth',
|
|
@@ -7636,7 +7749,7 @@ export const automationTriggersDelete = (options) => (options.client ?? client).
|
|
|
7636
7749
|
name: 'X-API-Key',
|
|
7637
7750
|
type: 'apiKey'
|
|
7638
7751
|
}],
|
|
7639
|
-
url: '/automation/v1/triggers/{
|
|
7752
|
+
url: '/automation/v1/triggers/{trigger_id}',
|
|
7640
7753
|
...options
|
|
7641
7754
|
});
|
|
7642
7755
|
/**
|
|
@@ -7654,7 +7767,7 @@ export const automationTriggersGet = (options) => (options.client ?? client).get
|
|
|
7654
7767
|
name: 'X-API-Key',
|
|
7655
7768
|
type: 'apiKey'
|
|
7656
7769
|
}],
|
|
7657
|
-
url: '/automation/v1/triggers/{
|
|
7770
|
+
url: '/automation/v1/triggers/{trigger_id}',
|
|
7658
7771
|
...options
|
|
7659
7772
|
});
|
|
7660
7773
|
/**
|
|
@@ -7672,7 +7785,7 @@ export const automationTriggersPatch = (options) => (options.client ?? client).p
|
|
|
7672
7785
|
name: 'X-API-Key',
|
|
7673
7786
|
type: 'apiKey'
|
|
7674
7787
|
}],
|
|
7675
|
-
url: '/automation/v1/triggers/{
|
|
7788
|
+
url: '/automation/v1/triggers/{trigger_id}',
|
|
7676
7789
|
...options,
|
|
7677
7790
|
headers: {
|
|
7678
7791
|
'Content-Type': 'application/json',
|
|
@@ -7694,7 +7807,7 @@ export const automationTriggersPause = (options) => (options.client ?? client).p
|
|
|
7694
7807
|
name: 'X-API-Key',
|
|
7695
7808
|
type: 'apiKey'
|
|
7696
7809
|
}],
|
|
7697
|
-
url: '/automation/v1/triggers/{
|
|
7810
|
+
url: '/automation/v1/triggers/{trigger_id}/pause',
|
|
7698
7811
|
...options
|
|
7699
7812
|
});
|
|
7700
7813
|
/**
|
|
@@ -7712,7 +7825,7 @@ export const automationTriggersResume = (options) => (options.client ?? client).
|
|
|
7712
7825
|
name: 'X-API-Key',
|
|
7713
7826
|
type: 'apiKey'
|
|
7714
7827
|
}],
|
|
7715
|
-
url: '/automation/v1/triggers/{
|
|
7828
|
+
url: '/automation/v1/triggers/{trigger_id}/resume',
|
|
7716
7829
|
...options
|
|
7717
7830
|
});
|
|
7718
7831
|
/**
|
|
@@ -7730,7 +7843,7 @@ export const automationTriggersFire = (options) => (options.client ?? client).po
|
|
|
7730
7843
|
name: 'X-API-Key',
|
|
7731
7844
|
type: 'apiKey'
|
|
7732
7845
|
}],
|
|
7733
|
-
url: '/automation/v1/triggers/{
|
|
7846
|
+
url: '/automation/v1/triggers/{trigger_id}/fire',
|
|
7734
7847
|
...options
|
|
7735
7848
|
});
|
|
7736
7849
|
/**
|
|
@@ -7748,7 +7861,7 @@ export const automationTriggersRotateWebhook = (options) => (options.client ?? c
|
|
|
7748
7861
|
name: 'X-API-Key',
|
|
7749
7862
|
type: 'apiKey'
|
|
7750
7863
|
}],
|
|
7751
|
-
url: '/automation/v1/triggers/{
|
|
7864
|
+
url: '/automation/v1/triggers/{trigger_id}/rotate-webhook',
|
|
7752
7865
|
...options
|
|
7753
7866
|
});
|
|
7754
7867
|
/**
|
|
@@ -7767,7 +7880,7 @@ export const automationTriggersFirings = (options) => (options.client ?? client)
|
|
|
7767
7880
|
name: 'X-API-Key',
|
|
7768
7881
|
type: 'apiKey'
|
|
7769
7882
|
}],
|
|
7770
|
-
url: '/automation/v1/triggers/{
|
|
7883
|
+
url: '/automation/v1/triggers/{trigger_id}/firings',
|
|
7771
7884
|
...options
|
|
7772
7885
|
});
|
|
7773
7886
|
/**
|
|
@@ -7795,7 +7908,7 @@ export const automationTriggersPreview = (options) => (options.client ?? client)
|
|
|
7795
7908
|
/**
|
|
7796
7909
|
* Receive a webhook
|
|
7797
7910
|
*
|
|
7798
|
-
* No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{
|
|
7911
|
+
* No API key is needed: the URL token authenticates requests. Invalid tokens, absent triggers, wrong kinds and inactive time windows return 404; a paused trigger (circuit breaker after 5 consecutive failures, or manual pause) returns 409 TRIGGER_PAUSED whose message gives the reason and whose hint gives the way back, POST /automation/v1/triggers/{trigger_id}/resume. Raw bodies are limited to 512 KiB; serialized run input, including raw and parsed copies, must fit within 1 MiB. Exceeding either limit returns 413 synchronously without recording a firing; webhook-id deduplicates for 24 hours. A 202 with outcome=accepted acknowledges receipt; the final outcome is updated later, and repeats return deduped. Invalid JSON yields body=null; other UTF-8 is text and non-UTF-8 is base64. The envelope contains body, raw_body, raw_body_encoding, allowlisted headers, webhook_id and received_at. raw_body preserves exact bytes with utf8 or base64 encoding for caller-side signature verification.
|
|
7799
7912
|
*/
|
|
7800
7913
|
export const automationHooksReceive = (options) => (options.client ?? client).post({
|
|
7801
7914
|
url: '/automation/v1/hooks/{trigger_id}/{token}',
|
|
@@ -7839,7 +7952,7 @@ export const automationHumanTasksGet = (options) => (options.client ?? client).g
|
|
|
7839
7952
|
name: 'X-API-Key',
|
|
7840
7953
|
type: 'apiKey'
|
|
7841
7954
|
}],
|
|
7842
|
-
url: '/automation/v1/human-tasks/{
|
|
7955
|
+
url: '/automation/v1/human-tasks/{task_id}',
|
|
7843
7956
|
...options
|
|
7844
7957
|
});
|
|
7845
7958
|
/**
|
|
@@ -7857,7 +7970,7 @@ export const automationHumanTasksRespond = (options) => (options.client ?? clien
|
|
|
7857
7970
|
name: 'X-API-Key',
|
|
7858
7971
|
type: 'apiKey'
|
|
7859
7972
|
}],
|
|
7860
|
-
url: '/automation/v1/human-tasks/{
|
|
7973
|
+
url: '/automation/v1/human-tasks/{task_id}/respond',
|
|
7861
7974
|
...options,
|
|
7862
7975
|
headers: {
|
|
7863
7976
|
'Content-Type': 'application/json',
|
|
@@ -7879,7 +7992,7 @@ export const automationHumanTasksCancel = (options) => (options.client ?? client
|
|
|
7879
7992
|
name: 'X-API-Key',
|
|
7880
7993
|
type: 'apiKey'
|
|
7881
7994
|
}],
|
|
7882
|
-
url: '/automation/v1/human-tasks/{
|
|
7995
|
+
url: '/automation/v1/human-tasks/{task_id}/cancel',
|
|
7883
7996
|
...options,
|
|
7884
7997
|
headers: {
|
|
7885
7998
|
'Content-Type': 'application/json',
|
|
@@ -7901,7 +8014,7 @@ export const automationHumanTasksDelegate = (options) => (options.client ?? clie
|
|
|
7901
8014
|
name: 'X-API-Key',
|
|
7902
8015
|
type: 'apiKey'
|
|
7903
8016
|
}],
|
|
7904
|
-
url: '/automation/v1/human-tasks/{
|
|
8017
|
+
url: '/automation/v1/human-tasks/{task_id}/delegate',
|
|
7905
8018
|
...options,
|
|
7906
8019
|
headers: {
|
|
7907
8020
|
'Content-Type': 'application/json',
|
|
@@ -7923,7 +8036,7 @@ export const automationScriptsVaultsList = (options) => (options.client ?? clien
|
|
|
7923
8036
|
name: 'X-API-Key',
|
|
7924
8037
|
type: 'apiKey'
|
|
7925
8038
|
}],
|
|
7926
|
-
url: '/automation/v1/scripts/{
|
|
8039
|
+
url: '/automation/v1/scripts/{namespace}/{name}/vaults',
|
|
7927
8040
|
...options
|
|
7928
8041
|
});
|
|
7929
8042
|
/**
|
|
@@ -7941,7 +8054,7 @@ export const automationScriptsVaultsDelete = (options) => (options.client ?? cli
|
|
|
7941
8054
|
name: 'X-API-Key',
|
|
7942
8055
|
type: 'apiKey'
|
|
7943
8056
|
}],
|
|
7944
|
-
url: '/automation/v1/scripts/{
|
|
8057
|
+
url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}',
|
|
7945
8058
|
...options
|
|
7946
8059
|
});
|
|
7947
8060
|
/**
|
|
@@ -7959,7 +8072,7 @@ export const automationScriptsVaultsSet = (options) => (options.client ?? client
|
|
|
7959
8072
|
name: 'X-API-Key',
|
|
7960
8073
|
type: 'apiKey'
|
|
7961
8074
|
}],
|
|
7962
|
-
url: '/automation/v1/scripts/{
|
|
8075
|
+
url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}',
|
|
7963
8076
|
...options,
|
|
7964
8077
|
headers: {
|
|
7965
8078
|
'Content-Type': 'application/json',
|
|
@@ -7981,7 +8094,7 @@ export const automationWorkflowsVaultsList = (options) => (options.client ?? cli
|
|
|
7981
8094
|
name: 'X-API-Key',
|
|
7982
8095
|
type: 'apiKey'
|
|
7983
8096
|
}],
|
|
7984
|
-
url: '/automation/v1/workflows/{
|
|
8097
|
+
url: '/automation/v1/workflows/{namespace}/{name}/vaults',
|
|
7985
8098
|
...options
|
|
7986
8099
|
});
|
|
7987
8100
|
/**
|
|
@@ -7999,7 +8112,7 @@ export const automationWorkflowsVaultsDelete = (options) => (options.client ?? c
|
|
|
7999
8112
|
name: 'X-API-Key',
|
|
8000
8113
|
type: 'apiKey'
|
|
8001
8114
|
}],
|
|
8002
|
-
url: '/automation/v1/workflows/{
|
|
8115
|
+
url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}',
|
|
8003
8116
|
...options
|
|
8004
8117
|
});
|
|
8005
8118
|
/**
|
|
@@ -8017,7 +8130,7 @@ export const automationWorkflowsVaultsSet = (options) => (options.client ?? clie
|
|
|
8017
8130
|
name: 'X-API-Key',
|
|
8018
8131
|
type: 'apiKey'
|
|
8019
8132
|
}],
|
|
8020
|
-
url: '/automation/v1/workflows/{
|
|
8133
|
+
url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}',
|
|
8021
8134
|
...options,
|
|
8022
8135
|
headers: {
|
|
8023
8136
|
'Content-Type': 'application/json',
|
|
@@ -8344,6 +8457,20 @@ export const canvasListLibraryVersions = (options) => (options.client ?? client)
|
|
|
8344
8457
|
url: '/canvas/v1/canvases/{canvas_id}/library_versions',
|
|
8345
8458
|
...options
|
|
8346
8459
|
});
|
|
8460
|
+
/**
|
|
8461
|
+
* Read a process step brief
|
|
8462
|
+
*
|
|
8463
|
+
* Read everything needed to fill one step of a canvas process, in one call, before writing its output. A process is a frame whose steps are requirement blocks; this read returns the step's requirement and derived state (waiting, ready or filled), its linked materials resolved to content, the process's shared context, the outputs of the steps it needs, and its own current outputs. Supply process_id from canvases.state or nodes.list (the process frame, or the instance of a library process that is this production) and the step key from a requirement. To fill the step, create the output element and write metadata.output through canvases.execute; this read stores nothing. A platform object linked as an embed node comes back as its reference only; read it from its own domain. Links that point at deleted nodes are dropped from the lists and named in issues.
|
|
8464
|
+
*/
|
|
8465
|
+
export const canvasRetrieveProcessStepBrief = (options) => (options.client ?? client).get({
|
|
8466
|
+
security: [{
|
|
8467
|
+
key: 'canvas-bearerAuth',
|
|
8468
|
+
scheme: 'bearer',
|
|
8469
|
+
type: 'http'
|
|
8470
|
+
}],
|
|
8471
|
+
url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief',
|
|
8472
|
+
...options
|
|
8473
|
+
});
|
|
8347
8474
|
/**
|
|
8348
8475
|
* List libraries
|
|
8349
8476
|
*
|
|
@@ -8567,7 +8694,7 @@ export const contentGetVersion = (options) => (options.client ?? client).get({
|
|
|
8567
8694
|
/**
|
|
8568
8695
|
* Open a playback session
|
|
8569
8696
|
*
|
|
8570
|
-
* Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
8697
|
+
* Open one playback of a published content for an end user and get the manifest address a player loads. No platform API key is needed: the caller is the end user's own Praxis customer access token carried as `Authorization: Bearer <access_token>`, verified by this door exactly as the customer exchange verifies it. A caller with no token is left to the service, which refuses it RESOURCE_NOT_GRANTED, because a content is always signed and there is no public playback. The organization is taken from the content row, never from the token, and a token that claims another organization is refused. The content must be published (otherwise 403 CONTENT_NOT_PUBLISHED), its allowed_origins must accept the request Origin when the list is not empty (otherwise 403 ORIGIN_NOT_ALLOWED), the token must cover a resource for this content (otherwise 403 RESOURCE_NOT_GRANTED) and the pinned version must be ready (otherwise 409 SOURCE_NOT_READY; retry once readiness is ready). Returns HTTP 201 with the session id, manifest_url (its host depends on the viewer's region, https://content.praxisusercontent.com/{content_id}/{capability}/master.m3u8 or a mainland edge address such as https://media-hk.deepractice.cn/play/{content_id}/{capability}/master.m3u8; pass it to the player exactly as returned), expire_time, the renditions, the poster, the title when the player shows it, and the player settings. The playback reads access settings from the content's latest version and source and player from the live version, so a tightened origin or lifetime takes effect without a republish. This door has its own per-IP request budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
8571
8698
|
*/
|
|
8572
8699
|
export const contentCreatePlaybackSession = (options) => (options.client ?? client).post({
|
|
8573
8700
|
url: '/content/v1/playback/sessions',
|
|
@@ -8776,7 +8903,7 @@ export const crmObjectsBatchArchive = (options) => (options.client ?? client).po
|
|
|
8776
8903
|
/**
|
|
8777
8904
|
* List properties
|
|
8778
8905
|
*
|
|
8779
|
-
* Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false.
|
|
8906
|
+
* Inspect the property definitions available for an object type before writing or filtering records. Obtain objectType from schemas.list; reuse each immutable name in record properties and filters. archived defaults to false. Every organization starts with preset definitions. For contacts these are the HubSpot default contact properties that a person or the API can write - salutation, firstname, lastname, email, phone, mobilephone, fax, company, jobtitle, website, address, city, state, zip, country, industry, numemployees, annualrevenue and message - plus hubspot_owner_id, lifecyclestage (HubSpot's default stages) and hs_lead_status (HubSpot's default statuses). All of them sit in the contactinformation group and are writable; industry is free text here where HubSpot presents a fixed dropdown, and fax uses the phone-number format. The remaining HubSpot default contact properties are deliberately not provided, because the HubSpot feature behind each one is not part of Praxis - values HubSpot computes and keeps read-only (create and last-modified dates, created-by and updated-by user ids, owner-assigned date, email domain, record id and record source, country and state codes, contact unworked), activity, sequence, meeting and NPS dates and counters and predictive scores, form and conversion tracking (first and recent conversion, form submission counts, ad click ids, IP location, original and latest traffic source, page views and sessions), marketing email state (opt-outs, bounces, quarantine, delivered, opened and clicked counts and dates, marketing contact status), deal rollups (associated deals, revenue, close and first deal dates, days to close), lifecycle-stage timing, the ads form fields (date of birth, gender, marital status, education), private content membership, social profile handles, follower counts and photo, and account-level fields HubSpot maintains from its own settings (persona, preferred language, time zone, legal basis, brands, shared teams and users, team and merged ids). Create one as a custom property when a workflow needs it.
|
|
8780
8907
|
*/
|
|
8781
8908
|
export const crmPropertiesList = (options) => (options.client ?? client).get({
|
|
8782
8909
|
security: [{
|
|
@@ -9170,7 +9297,10 @@ export const crmLayoutsUpdate = (options) => (options.client ?? client).put({
|
|
|
9170
9297
|
/**
|
|
9171
9298
|
* Create a grant code
|
|
9172
9299
|
*
|
|
9300
|
+
* Deprecated: use POST /end/v1/grant_codes instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9173
9301
|
* Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. customer_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_customer_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_customer_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.
|
|
9302
|
+
*
|
|
9303
|
+
* @deprecated
|
|
9174
9304
|
*/
|
|
9175
9305
|
export const customerCreateGrantCode = (options) => (options.client ?? client).post({
|
|
9176
9306
|
security: [{
|
|
@@ -9192,7 +9322,10 @@ export const customerCreateGrantCode = (options) => (options.client ?? client).p
|
|
|
9192
9322
|
/**
|
|
9193
9323
|
* Exchange a grant code or publishable key
|
|
9194
9324
|
*
|
|
9325
|
+
* Deprecated: use POST /end/v1/access_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9195
9326
|
* Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis customer access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous customer (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 CUSTOMER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.customer.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.
|
|
9327
|
+
*
|
|
9328
|
+
* @deprecated
|
|
9196
9329
|
*/
|
|
9197
9330
|
export const customerCreateAccessToken = (options) => (options.client ?? client).post({
|
|
9198
9331
|
url: '/customer/v1/access_tokens',
|
|
@@ -9205,19 +9338,28 @@ export const customerCreateAccessToken = (options) => (options.client ?? client)
|
|
|
9205
9338
|
/**
|
|
9206
9339
|
* Renew an access token
|
|
9207
9340
|
*
|
|
9341
|
+
* Deprecated: use POST /end/v1/access_tokens/renew instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9208
9342
|
* Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.customer.accessTokens.create. A blocked end user answers 403 CUSTOMER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
9343
|
+
*
|
|
9344
|
+
* @deprecated
|
|
9209
9345
|
*/
|
|
9210
9346
|
export const customerRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/customer/v1/access_tokens/renew', ...options });
|
|
9211
9347
|
/**
|
|
9212
9348
|
* Sign out the current token
|
|
9213
9349
|
*
|
|
9350
|
+
* Deprecated: use DELETE /end/v1/access_tokens/current instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9214
9351
|
* Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.customer.customers.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
9352
|
+
*
|
|
9353
|
+
* @deprecated
|
|
9215
9354
|
*/
|
|
9216
9355
|
export const customerRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/customer/v1/access_tokens/current', ...options });
|
|
9217
9356
|
/**
|
|
9218
9357
|
* List end users
|
|
9219
9358
|
*
|
|
9359
|
+
* Deprecated: use GET /end/v1/users instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9220
9360
|
* Read the organization's end-user directory and obtain the customer_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the customer id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.
|
|
9361
|
+
*
|
|
9362
|
+
* @deprecated
|
|
9221
9363
|
*/
|
|
9222
9364
|
export const customerListCustomers = (options) => (options?.client ?? client).get({
|
|
9223
9365
|
security: [{
|
|
@@ -9235,7 +9377,10 @@ export const customerListCustomers = (options) => (options?.client ?? client).ge
|
|
|
9235
9377
|
/**
|
|
9236
9378
|
* Delete an end user
|
|
9237
9379
|
*
|
|
9380
|
+
* Deprecated: use DELETE /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9238
9381
|
* Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's customer_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
|
|
9382
|
+
*
|
|
9383
|
+
* @deprecated
|
|
9239
9384
|
*/
|
|
9240
9385
|
export const customerDeleteCustomer = (options) => (options.client ?? client).delete({
|
|
9241
9386
|
security: [{
|
|
@@ -9253,7 +9398,10 @@ export const customerDeleteCustomer = (options) => (options.client ?? client).de
|
|
|
9253
9398
|
/**
|
|
9254
9399
|
* Get an end user
|
|
9255
9400
|
*
|
|
9401
|
+
* Deprecated: use GET /end/v1/users/{end_user_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9256
9402
|
* Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 CUSTOMER_NOT_FOUND.
|
|
9403
|
+
*
|
|
9404
|
+
* @deprecated
|
|
9257
9405
|
*/
|
|
9258
9406
|
export const customerGetCustomer = (options) => (options.client ?? client).get({
|
|
9259
9407
|
security: [{
|
|
@@ -9271,7 +9419,10 @@ export const customerGetCustomer = (options) => (options.client ?? client).get({
|
|
|
9271
9419
|
/**
|
|
9272
9420
|
* Read end-user usage
|
|
9273
9421
|
*
|
|
9422
|
+
* Deprecated: use GET /end/v1/users/{end_user_id}/usage instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9274
9423
|
* Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the customerId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 CUSTOMER_NOT_FOUND.
|
|
9424
|
+
*
|
|
9425
|
+
* @deprecated
|
|
9275
9426
|
*/
|
|
9276
9427
|
export const customerGetUsage = (options) => (options.client ?? client).get({
|
|
9277
9428
|
security: [{
|
|
@@ -9289,7 +9440,10 @@ export const customerGetUsage = (options) => (options.client ?? client).get({
|
|
|
9289
9440
|
/**
|
|
9290
9441
|
* Block an end user
|
|
9291
9442
|
*
|
|
9443
|
+
* Deprecated: use POST /end/v1/users/{end_user_id}/block instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9292
9444
|
* Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
|
|
9445
|
+
*
|
|
9446
|
+
* @deprecated
|
|
9293
9447
|
*/
|
|
9294
9448
|
export const customerBlockCustomer = (options) => (options.client ?? client).post({
|
|
9295
9449
|
security: [{
|
|
@@ -9311,7 +9465,10 @@ export const customerBlockCustomer = (options) => (options.client ?? client).pos
|
|
|
9311
9465
|
/**
|
|
9312
9466
|
* Unblock an end user
|
|
9313
9467
|
*
|
|
9468
|
+
* Deprecated: use POST /end/v1/users/{end_user_id}/unblock instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9314
9469
|
* Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
|
|
9470
|
+
*
|
|
9471
|
+
* @deprecated
|
|
9315
9472
|
*/
|
|
9316
9473
|
export const customerUnblockCustomer = (options) => (options.client ?? client).post({
|
|
9317
9474
|
security: [{
|
|
@@ -9329,7 +9486,10 @@ export const customerUnblockCustomer = (options) => (options.client ?? client).p
|
|
|
9329
9486
|
/**
|
|
9330
9487
|
* Revoke every token of an end user
|
|
9331
9488
|
*
|
|
9489
|
+
* Deprecated: use POST /end/v1/users/{end_user_id}/revoke_tokens instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9332
9490
|
* End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.customer.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
|
|
9491
|
+
*
|
|
9492
|
+
* @deprecated
|
|
9333
9493
|
*/
|
|
9334
9494
|
export const customerRevokeTokens = (options) => (options.client ?? client).post({
|
|
9335
9495
|
security: [{
|
|
@@ -9347,7 +9507,10 @@ export const customerRevokeTokens = (options) => (options.client ?? client).post
|
|
|
9347
9507
|
/**
|
|
9348
9508
|
* List publishable keys
|
|
9349
9509
|
*
|
|
9510
|
+
* Deprecated: use GET /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9350
9511
|
* List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.
|
|
9512
|
+
*
|
|
9513
|
+
* @deprecated
|
|
9351
9514
|
*/
|
|
9352
9515
|
export const customerListPublishableKeys = (options) => (options?.client ?? client).get({
|
|
9353
9516
|
security: [{
|
|
@@ -9365,7 +9528,10 @@ export const customerListPublishableKeys = (options) => (options?.client ?? clie
|
|
|
9365
9528
|
/**
|
|
9366
9529
|
* Create a publishable key
|
|
9367
9530
|
*
|
|
9531
|
+
* Deprecated: use POST /end/v1/publishable_keys instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9368
9532
|
* Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {"amount": "5.00", "currency": "USD"} (at most 2 decimals), read from the key's usage events; change them later with praxis.customer.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.customer.accessTokens.create with publishable_key.
|
|
9533
|
+
*
|
|
9534
|
+
* @deprecated
|
|
9369
9535
|
*/
|
|
9370
9536
|
export const customerCreatePublishableKey = (options) => (options.client ?? client).post({
|
|
9371
9537
|
security: [{
|
|
@@ -9387,7 +9553,10 @@ export const customerCreatePublishableKey = (options) => (options.client ?? clie
|
|
|
9387
9553
|
/**
|
|
9388
9554
|
* Delete a publishable key
|
|
9389
9555
|
*
|
|
9556
|
+
* Deprecated: use DELETE /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9390
9557
|
* Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 CUSTOMER_NOT_FOUND.
|
|
9558
|
+
*
|
|
9559
|
+
* @deprecated
|
|
9391
9560
|
*/
|
|
9392
9561
|
export const customerDeletePublishableKey = (options) => (options.client ?? client).delete({
|
|
9393
9562
|
security: [{
|
|
@@ -9405,7 +9574,10 @@ export const customerDeletePublishableKey = (options) => (options.client ?? clie
|
|
|
9405
9574
|
/**
|
|
9406
9575
|
* Update a publishable key
|
|
9407
9576
|
*
|
|
9577
|
+
* Deprecated: use PATCH /end/v1/publishable_keys/{key_id} instead; this path stops working on 2026-12-12. It answers meanwhile with a `Deprecation` header and a `Link` to its successor (#5299).
|
|
9408
9578
|
* Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.
|
|
9579
|
+
*
|
|
9580
|
+
* @deprecated
|
|
9409
9581
|
*/
|
|
9410
9582
|
export const customerUpdatePublishableKey = (options) => (options.client ?? client).patch({
|
|
9411
9583
|
security: [{
|
|
@@ -9906,7 +10078,7 @@ export const cutListExports = (options) => (options.client ?? client).get({
|
|
|
9906
10078
|
/**
|
|
9907
10079
|
* Create video export
|
|
9908
10080
|
*
|
|
9909
|
-
* Start an asynchronous video export from the project
|
|
10081
|
+
* Start an asynchronous video export from the project, and optionally select revision and output settings. Omit both binding and folder and the export only produces a file: no library receives it, and on done file.url downloads it (the link is valid for one hour and is minted on every read). Name a binding from bindings.list (a writable one), or a folder, and the finished video is also imported into that media library, and on done asset identifies it in praxis.media. HTTP 202 only accepts the job; poll praxis.cut.exports.retrieve using the returned id until status is done, failed or canceled. Each call starts a job, so retrieve a known job before retrying a submission.
|
|
9910
10082
|
*/
|
|
9911
10083
|
export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
9912
10084
|
security: [{
|
|
@@ -12242,7 +12414,7 @@ export const devopsPullRequestsGet = (options) => (options.client ?? client).get
|
|
|
12242
12414
|
/**
|
|
12243
12415
|
* Decide a pull request's merge gate again
|
|
12244
12416
|
*
|
|
12245
|
-
* Decide the merge gate again at the pull request's current head and report the result on GitHub as the "Praxis DevOps / gate" check run
|
|
12417
|
+
* Decide the merge gate again at the pull request's current head and report the result on GitHub as the "Praxis DevOps / gate" check run; use it when a check says 平台故障,不是代码问题 (cause infrastructure) or when a fact the gate reads changed without a new push. First it restarts the checks the platform could not answer at this head — repo-lint or lockfile reading unavailable with cause infrastructure, or not_run — by clearing their unanswered records and starting the check machine again; a passed or failed result is never reopened. Restarting is limited to 3 times per head per hour, and a fourth is refused with GATE_RERUN_LIMITED (429): an outage that is not fixed only fails again, so report it to 运维部 instead. A call with nothing to restart only decides again and is never limited — for example after a flag was registered (test evidence uploaded for the head already decides the gate again by itself). The answer is the pull request with the gate it now reaches; a restarted check reads pending until the machine answers. A head whose earlier gate already had a verdict and comes back pending opens a NEW check run, because GitHub will not reopen a completed one.
|
|
12246
12418
|
*/
|
|
12247
12419
|
export const devopsPullRequestsRerunGate = (options) => (options.client ?? client).post({
|
|
12248
12420
|
security: [{
|
|
@@ -12253,6 +12425,24 @@ export const devopsPullRequestsRerunGate = (options) => (options.client ?? clien
|
|
|
12253
12425
|
url: '/devops/v1/pull-requests/{id}:rerunGate',
|
|
12254
12426
|
...options
|
|
12255
12427
|
});
|
|
12428
|
+
/**
|
|
12429
|
+
* Record a listed position's exception to the merge gate
|
|
12430
|
+
*
|
|
12431
|
+
* Record the one exception to the fail-closed merge gate: the written authorization of a holder of a position listed in practice-config (today CEO, CTO, COO), for named checks, at the pull request's current head. Use it only when the authorization is already written on a ticket and the platform cannot answer a check in time; to restart a check the platform failed, use rerunGate first. headSha must be the current head (HEAD_MOVED otherwise), and a new push voids the override, because the gate reads only the overrides of its own head. authorizedBy must be the address (agent:<id> or human:<id>) of an actor holding an active workforce assignment to one of the positions listed in practice-config (today CEO, CTO, COO), otherwise GATE_OVERRIDE_NOT_AUTHORIZED (403) and nothing is written; when the position list or the workforce assignments cannot be read, or the list is empty, the call is refused too (fail-closed). The override is written once and never changed: the checks keep their real result, stop counting, and carry overriddenBy; the gate is decided again and its summary lists them on their own line, and the event devops.gate.overridden is published. A pull request that is not open is refused with PULL_REQUEST_NOT_OPEN. Example body: {"headSha":"4f2a9c1…","checks":["repo-lint"],"ticket":"#5273","reason":"build machines down, fix in #6801","authorizedBy":"agent:agent_praxisfour"}.
|
|
12432
|
+
*/
|
|
12433
|
+
export const devopsPullRequestsOverrideGate = (options) => (options.client ?? client).post({
|
|
12434
|
+
security: [{
|
|
12435
|
+
key: 'devops-bearerAuth',
|
|
12436
|
+
scheme: 'bearer',
|
|
12437
|
+
type: 'http'
|
|
12438
|
+
}],
|
|
12439
|
+
url: '/devops/v1/pull-requests/{id}:overrideGate',
|
|
12440
|
+
...options,
|
|
12441
|
+
headers: {
|
|
12442
|
+
'Content-Type': 'application/json',
|
|
12443
|
+
...options.headers
|
|
12444
|
+
}
|
|
12445
|
+
});
|
|
12256
12446
|
/**
|
|
12257
12447
|
* Merge a pull request through its gate
|
|
12258
12448
|
*
|
|
@@ -12694,31 +12884,34 @@ export const devopsUnitsTransitionsList = (options) => (options.client ?? client
|
|
|
12694
12884
|
...options
|
|
12695
12885
|
});
|
|
12696
12886
|
/**
|
|
12697
|
-
*
|
|
12887
|
+
* Create a grant code
|
|
12698
12888
|
*
|
|
12699
|
-
*
|
|
12889
|
+
* Sign one of your logged-in end users in from your backend, after your own login succeeded, by handing out a one-time grant code that the browser exchanges for an access token. Call it with the organization API key; never from the browser, because the API key must stay on your server. end_user_id is your own identifier for the person (an opaque value such as your database user id, not an email address or phone number); a value starting with anon_ is reserved for anonymous visitors. resources name what the sign-in may reach and is required: each entry is a scope string in the form agent:<id>:chat, content:<id>:play or application:<id>:visit, or an object with that scope plus product params this service stores without interpreting; use the id form for one object and * for every object of a type. expires_in shortens the code's life in seconds (900 seconds, fifteen minutes, by default) and max_session_seconds shortens the sign-in's life (7 days by default); merge_end_user_id merges an anonymous visitor's record into this person; origin pins the page the sign-in may be made from. When the browser still holds that visitor's own access token, send it as anonymous_access_token instead of merge_end_user_id: the door verifies it and merges the visitor it names, which is the usual way a merchant continues a session the browser already began. The code is single use and unknown, used or expired codes all answer 401 GRANT_CODE_INVALID at the exchange. Returns the code with HTTP 201; pass it to the Kit in the browser and never call this route with it.
|
|
12700
12890
|
*/
|
|
12701
|
-
export const
|
|
12891
|
+
export const endCreateGrantCode = (options) => (options.client ?? client).post({
|
|
12702
12892
|
security: [{
|
|
12703
|
-
key: '
|
|
12893
|
+
key: 'BearerAuth',
|
|
12704
12894
|
scheme: 'bearer',
|
|
12705
12895
|
type: 'http'
|
|
12896
|
+
}, {
|
|
12897
|
+
key: 'ApiKeyAuth',
|
|
12898
|
+
name: 'X-API-Key',
|
|
12899
|
+
type: 'apiKey'
|
|
12706
12900
|
}],
|
|
12707
|
-
url: '/
|
|
12708
|
-
...options
|
|
12901
|
+
url: '/end/v1/grant_codes',
|
|
12902
|
+
...options,
|
|
12903
|
+
headers: {
|
|
12904
|
+
'Content-Type': 'application/json',
|
|
12905
|
+
...options.headers
|
|
12906
|
+
}
|
|
12709
12907
|
});
|
|
12710
12908
|
/**
|
|
12711
|
-
*
|
|
12909
|
+
* Exchange a grant code or publishable key
|
|
12712
12910
|
*
|
|
12713
|
-
*
|
|
12911
|
+
* Turn a grant code, or a publishable key for an anonymous visitor, into the Praxis end user access token that authorizes the Kit's sessions and playbacks. It is PRE-AUTH: no platform API key is needed, because the grant code or the publishable key is the credential; the Kit calls it from the browser, so send the page Origin when the code or key is bound to one. Send exactly one of grant_code or publishable_key — the door refuses any other combination with 400. With grant_code the code is consumed atomically: concurrent attempts have exactly one winner, and unknown, already used, expired and foreign codes all answer 401 GRANT_CODE_INVALID. With publishable_key a new anonymous end user (anon_…) is created and merged into the identified one later if it signs in. The sign-in may be bound to an origin at creation; when the request Origin does not satisfy it, the exchange answers 403 ORIGIN_NOT_ALLOWED, and a blocked end user answers 403 END_USER_BLOCKED. The access token lasts at most two hours and never outlives the sign-in; renew it with praxis.end.accessTokens.renew before expires_at. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After. A publishable key may also carry its own limits (anon_rate_per_min and daily_session_cap, set on the key): over the key's per-minute exchanges the door answers 429 PUBLISHABLE_KEY_RATE_LIMITED, and once the key has admitted daily_session_cap new anonymous visitors in the current UTC day it answers 429 PUBLISHABLE_KEY_DAILY_CAP_REACHED to a new visitor while a returning visitor with a continuation_token still continues; both carry Retry-After, the seconds until their UTC minute or day ends. A key may also carry a daily_spend_cap, the most its visitors' usage may cost in one UTC day: once the usage events of this key in the current UTC day add up to it (when the platform has switched the spend cap on for your organization), the door answers 429 PUBLISHABLE_KEY_DAILY_SPEND_CAP_REACHED to every visitor, a returning one with a continuation_token included, with Retry-After until 00:00 UTC.
|
|
12714
12912
|
*/
|
|
12715
|
-
export const
|
|
12716
|
-
|
|
12717
|
-
key: 'knowledge-bearerAuth',
|
|
12718
|
-
scheme: 'bearer',
|
|
12719
|
-
type: 'http'
|
|
12720
|
-
}],
|
|
12721
|
-
url: '/knowledge/v1/vector_stores',
|
|
12913
|
+
export const endCreateAccessToken = (options) => (options.client ?? client).post({
|
|
12914
|
+
url: '/end/v1/access_tokens',
|
|
12722
12915
|
...options,
|
|
12723
12916
|
headers: {
|
|
12724
12917
|
'Content-Type': 'application/json',
|
|
@@ -12726,95 +12919,105 @@ export const knowledgeCreateVectorStore = (options) => (options.client ?? client
|
|
|
12726
12919
|
}
|
|
12727
12920
|
});
|
|
12728
12921
|
/**
|
|
12729
|
-
*
|
|
12922
|
+
* Renew an access token
|
|
12730
12923
|
*
|
|
12731
|
-
*
|
|
12924
|
+
* Replace a live access token with a fresh one so a signed-in end user stays signed in without signing in again. It is PRE-AUTH: the credential is the token the caller already carries as `Authorization: Bearer <access_token>`, verified by this door, and the token names the sign-in it renews. Call it before the token's expires_at; the sign-in and its resource scopes stay the same, so what the end user may reach does not change. A missing, unverifiable or foreign token answers 401 ACCESS_TOKEN_EXPIRED, and a sign-in that is over answers 401 SIGN_IN_EXPIRED or SIGN_IN_REVOKED, in which case the end user signs in again through praxis.end.accessTokens.create. A blocked end user answers 403 END_USER_BLOCKED. When the sign-in itself has ended, the renewal does not extend it. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
12732
12925
|
*/
|
|
12733
|
-
export const
|
|
12734
|
-
security: [{
|
|
12735
|
-
key: 'knowledge-bearerAuth',
|
|
12736
|
-
scheme: 'bearer',
|
|
12737
|
-
type: 'http'
|
|
12738
|
-
}],
|
|
12739
|
-
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
12740
|
-
...options
|
|
12741
|
-
});
|
|
12926
|
+
export const endRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/end/v1/access_tokens/renew', ...options });
|
|
12742
12927
|
/**
|
|
12743
|
-
*
|
|
12928
|
+
* Sign out the current token
|
|
12744
12929
|
*
|
|
12745
|
-
*
|
|
12930
|
+
* Sign out: end the sign-in the caller's token belongs to and revoke every token issued from it, exactly as a logout does. It is PRE-AUTH: the credential is the token the caller carries as `Authorization: Bearer <access_token>`. Use it when the end user asks to sign out, and after it every token of that sign-in stops working and a later session or playback answers 401 SIGN_IN_REVOKED; other sign-ins of the same end user are untouched (revoke every token of one end user, organization-wide, with praxis.end.users.revokeTokens). A missing or unverifiable token answers 401 ACCESS_TOKEN_EXPIRED. The call answers 200 with an empty body. This door has its own per-IP anonymous budget: over it answers 429 RATE_LIMITED with Retry-After.
|
|
12746
12931
|
*/
|
|
12747
|
-
export const
|
|
12932
|
+
export const endRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/end/v1/access_tokens/current', ...options });
|
|
12933
|
+
/**
|
|
12934
|
+
* List end users
|
|
12935
|
+
*
|
|
12936
|
+
* Read the organization's end-user directory and obtain the end_user_id the administrative acts take. Results are ordered by last_seen_at, most recently seen first. Filter with type (identified for people who signed in through a grant code, anonymous for visitors admitted with a publishable key), blocked (true or false), resource (one product in the form agent:<id>, content:<id> or application:<id>, giving that product's own view of the directory) and q (a prefix of the end user id). Identified and anonymous end users both appear; an anonymous one that later signs in shows merged_into and its record joins that person. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null, keeping the same filters.
|
|
12937
|
+
*/
|
|
12938
|
+
export const endListUsers = (options) => (options?.client ?? client).get({
|
|
12748
12939
|
security: [{
|
|
12749
|
-
key: '
|
|
12940
|
+
key: 'BearerAuth',
|
|
12750
12941
|
scheme: 'bearer',
|
|
12751
12942
|
type: 'http'
|
|
12943
|
+
}, {
|
|
12944
|
+
key: 'ApiKeyAuth',
|
|
12945
|
+
name: 'X-API-Key',
|
|
12946
|
+
type: 'apiKey'
|
|
12752
12947
|
}],
|
|
12753
|
-
url: '/
|
|
12948
|
+
url: '/end/v1/users',
|
|
12754
12949
|
...options
|
|
12755
12950
|
});
|
|
12756
12951
|
/**
|
|
12757
|
-
*
|
|
12952
|
+
* Delete an end user
|
|
12758
12953
|
*
|
|
12759
|
-
*
|
|
12954
|
+
* Delete one end user on the merchant's own confirmation, for a deletion request the person made to you. The confirm query parameter must repeat the path's end_user_id; the door passes it through verbatim and the service refuses any other value with 400 INVALID_PARAMS, so a missing confirm never deletes anything. The deletion is announced on the platform event bus and each product deletes its own sessions, events and files for that person, so the call returns as soon as the directory record is gone, not when every product has finished. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
|
|
12760
12955
|
*/
|
|
12761
|
-
export const
|
|
12956
|
+
export const endDeleteUser = (options) => (options.client ?? client).delete({
|
|
12762
12957
|
security: [{
|
|
12763
|
-
key: '
|
|
12958
|
+
key: 'BearerAuth',
|
|
12764
12959
|
scheme: 'bearer',
|
|
12765
12960
|
type: 'http'
|
|
12961
|
+
}, {
|
|
12962
|
+
key: 'ApiKeyAuth',
|
|
12963
|
+
name: 'X-API-Key',
|
|
12964
|
+
type: 'apiKey'
|
|
12766
12965
|
}],
|
|
12767
|
-
url: '/
|
|
12768
|
-
...options
|
|
12769
|
-
headers: {
|
|
12770
|
-
'Content-Type': 'application/json',
|
|
12771
|
-
...options.headers
|
|
12772
|
-
}
|
|
12966
|
+
url: '/end/v1/users/{end_user_id}',
|
|
12967
|
+
...options
|
|
12773
12968
|
});
|
|
12774
12969
|
/**
|
|
12775
|
-
*
|
|
12970
|
+
* Get an end user
|
|
12776
12971
|
*
|
|
12777
|
-
*
|
|
12972
|
+
* Read one end user of the organization: the id, its kind, whether it is blocked, its metadata and when it was first and last seen. Add expand=products,sign_ins,usage (comma separated, any combination) to also receive the products it has used with their counts, its sign-ins with their resource scopes, and its recorded usage over the whole time. An unknown id, and an id of another organization, answer 404 END_USER_NOT_FOUND.
|
|
12778
12973
|
*/
|
|
12779
|
-
export const
|
|
12974
|
+
export const endGetUser = (options) => (options.client ?? client).get({
|
|
12780
12975
|
security: [{
|
|
12781
|
-
key: '
|
|
12976
|
+
key: 'BearerAuth',
|
|
12782
12977
|
scheme: 'bearer',
|
|
12783
12978
|
type: 'http'
|
|
12979
|
+
}, {
|
|
12980
|
+
key: 'ApiKeyAuth',
|
|
12981
|
+
name: 'X-API-Key',
|
|
12982
|
+
type: 'apiKey'
|
|
12784
12983
|
}],
|
|
12785
|
-
url: '/
|
|
12786
|
-
...options
|
|
12787
|
-
headers: {
|
|
12788
|
-
'Content-Type': 'application/json',
|
|
12789
|
-
...options.headers
|
|
12790
|
-
}
|
|
12984
|
+
url: '/end/v1/users/{end_user_id}',
|
|
12985
|
+
...options
|
|
12791
12986
|
});
|
|
12792
12987
|
/**
|
|
12793
|
-
*
|
|
12988
|
+
* Read end-user usage
|
|
12794
12989
|
*
|
|
12795
|
-
*
|
|
12990
|
+
* Read what one end user has cost the organization, per product and per day. The directory stores no cost itself: this reads billing by the endId dimension shared by every product, so it is the money figure the platform charged for that person. Send from and/or to as RFC 3339 times to narrow the window; omit both for everything recorded. Returns the total, the per-product breakdown and the per-day breakdown. An unknown id answers 404 END_USER_NOT_FOUND.
|
|
12796
12991
|
*/
|
|
12797
|
-
export const
|
|
12992
|
+
export const endGetUsage = (options) => (options.client ?? client).get({
|
|
12798
12993
|
security: [{
|
|
12799
|
-
key: '
|
|
12994
|
+
key: 'BearerAuth',
|
|
12800
12995
|
scheme: 'bearer',
|
|
12801
12996
|
type: 'http'
|
|
12997
|
+
}, {
|
|
12998
|
+
key: 'ApiKeyAuth',
|
|
12999
|
+
name: 'X-API-Key',
|
|
13000
|
+
type: 'apiKey'
|
|
12802
13001
|
}],
|
|
12803
|
-
url: '/
|
|
13002
|
+
url: '/end/v1/users/{end_user_id}/usage',
|
|
12804
13003
|
...options
|
|
12805
13004
|
});
|
|
12806
13005
|
/**
|
|
12807
|
-
*
|
|
13006
|
+
* Block an end user
|
|
12808
13007
|
*
|
|
12809
|
-
*
|
|
13008
|
+
* Block one end user across every product of the organization. From then on no grant code, sign-in, renewal or new session and no playback is accepted for this id — each product's admission door refuses it at once. A stream already running and a playback capability already issued ride out their own token, at most two hours and 3000 seconds; they are not cut off. Send reason to record why, and the response's blocked field carries the block time, the reason and the actor. Blocking an already blocked end user is idempotent: the first block time is kept. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
|
|
12810
13009
|
*/
|
|
12811
|
-
export const
|
|
13010
|
+
export const endBlockUser = (options) => (options.client ?? client).post({
|
|
12812
13011
|
security: [{
|
|
12813
|
-
key: '
|
|
13012
|
+
key: 'BearerAuth',
|
|
12814
13013
|
scheme: 'bearer',
|
|
12815
13014
|
type: 'http'
|
|
13015
|
+
}, {
|
|
13016
|
+
key: 'ApiKeyAuth',
|
|
13017
|
+
name: 'X-API-Key',
|
|
13018
|
+
type: 'apiKey'
|
|
12816
13019
|
}],
|
|
12817
|
-
url: '/
|
|
13020
|
+
url: '/end/v1/users/{end_user_id}/block',
|
|
12818
13021
|
...options,
|
|
12819
13022
|
headers: {
|
|
12820
13023
|
'Content-Type': 'application/json',
|
|
@@ -12822,11 +13025,329 @@ export const knowledgeAttachFile = (options) => (options.client ?? client).post(
|
|
|
12822
13025
|
}
|
|
12823
13026
|
});
|
|
12824
13027
|
/**
|
|
12825
|
-
*
|
|
13028
|
+
* Unblock an end user
|
|
12826
13029
|
*
|
|
12827
|
-
*
|
|
13030
|
+
* Lift a block from one end user, so the products accept its grant codes, sign-ins, renewals and new sessions again. Tokens that were revoked to enforce the block are not restored: the end user signs in again for a fresh sign-in. Unblocking an end user that is not blocked is idempotent and returns it unchanged. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
|
|
12828
13031
|
*/
|
|
12829
|
-
export const
|
|
13032
|
+
export const endUnblockUser = (options) => (options.client ?? client).post({
|
|
13033
|
+
security: [{
|
|
13034
|
+
key: 'BearerAuth',
|
|
13035
|
+
scheme: 'bearer',
|
|
13036
|
+
type: 'http'
|
|
13037
|
+
}, {
|
|
13038
|
+
key: 'ApiKeyAuth',
|
|
13039
|
+
name: 'X-API-Key',
|
|
13040
|
+
type: 'apiKey'
|
|
13041
|
+
}],
|
|
13042
|
+
url: '/end/v1/users/{end_user_id}/unblock',
|
|
13043
|
+
...options
|
|
13044
|
+
});
|
|
13045
|
+
/**
|
|
13046
|
+
* Revoke every token of an end user
|
|
13047
|
+
*
|
|
13048
|
+
* End every sign-in of one end user at once, everything of the organization's, not one product's and not one token's. Use it when credentials may have leaked and the end user must not be trusted until it signs in again; a single sign-in is ended instead with praxis.end.accessTokens.revoke. After it every token of that end user stops working and a new session or playback answers 401 SIGN_IN_REVOKED, while the end user itself stays in the directory and may sign in again. The response counts how many sign-ins were revoked. An unknown or foreign id answers 404 END_USER_NOT_FOUND.
|
|
13049
|
+
*/
|
|
13050
|
+
export const endRevokeTokens = (options) => (options.client ?? client).post({
|
|
13051
|
+
security: [{
|
|
13052
|
+
key: 'BearerAuth',
|
|
13053
|
+
scheme: 'bearer',
|
|
13054
|
+
type: 'http'
|
|
13055
|
+
}, {
|
|
13056
|
+
key: 'ApiKeyAuth',
|
|
13057
|
+
name: 'X-API-Key',
|
|
13058
|
+
type: 'apiKey'
|
|
13059
|
+
}],
|
|
13060
|
+
url: '/end/v1/users/{end_user_id}/revoke_tokens',
|
|
13061
|
+
...options
|
|
13062
|
+
});
|
|
13063
|
+
/**
|
|
13064
|
+
* List publishable keys
|
|
13065
|
+
*
|
|
13066
|
+
* List the organization's publishable keys, newest first, so you can see which anonymous admittance is open and what each one may reach. A publishable key is public by design (it ships in the browser page); use it from the Kit to admit anonymous visitors, and never expose an API key this way. The plaintext value is not in this list: it is returned once, by the create call, and only its hash is stored. page_size is 1 to 100 and defaults to 50; copy next_page into page_token until it is null.
|
|
13067
|
+
*/
|
|
13068
|
+
export const endListPublishableKeys = (options) => (options?.client ?? client).get({
|
|
13069
|
+
security: [{
|
|
13070
|
+
key: 'BearerAuth',
|
|
13071
|
+
scheme: 'bearer',
|
|
13072
|
+
type: 'http'
|
|
13073
|
+
}, {
|
|
13074
|
+
key: 'ApiKeyAuth',
|
|
13075
|
+
name: 'X-API-Key',
|
|
13076
|
+
type: 'apiKey'
|
|
13077
|
+
}],
|
|
13078
|
+
url: '/end/v1/publishable_keys',
|
|
13079
|
+
...options
|
|
13080
|
+
});
|
|
13081
|
+
/**
|
|
13082
|
+
* Create a publishable key
|
|
13083
|
+
*
|
|
13084
|
+
* Mint a publishable key so a page can admit anonymous visitors without you signing each one in from your backend. name labels the key for the console and the key list. resources is required and names what an anonymous visitor may reach, in the same form as the grant-code scopes: agent:<id>:chat, content:<id>:play or application:<id>:visit, with * for every object of one type; give it only what the anonymous experience needs, because any visitor who has the page can use the key. The response carries the plaintext key once, in key, and the store keeps only its hash — save it then, because no later call returns it. anon_rate_per_min, daily_session_cap and daily_spend_cap are optional limits of the key itself, all absent by default: the first caps how many exchanges the key allows per UTC minute across all visitors, the second how many new anonymous visitors it admits per UTC day (returning visitors are not counted); the third, daily_spend_cap, is the most the usage of this key's visitors may cost in one UTC day, as an amount with its currency such as {"amount": "5.00", "currency": "USD"} (at most 2 decimals), read from the key's usage events; change them later with praxis.end.publishableKeys.update. Returns HTTP 201; the exchange that consumes it is praxis.end.accessTokens.create with publishable_key.
|
|
13085
|
+
*/
|
|
13086
|
+
export const endCreatePublishableKey = (options) => (options.client ?? client).post({
|
|
13087
|
+
security: [{
|
|
13088
|
+
key: 'BearerAuth',
|
|
13089
|
+
scheme: 'bearer',
|
|
13090
|
+
type: 'http'
|
|
13091
|
+
}, {
|
|
13092
|
+
key: 'ApiKeyAuth',
|
|
13093
|
+
name: 'X-API-Key',
|
|
13094
|
+
type: 'apiKey'
|
|
13095
|
+
}],
|
|
13096
|
+
url: '/end/v1/publishable_keys',
|
|
13097
|
+
...options,
|
|
13098
|
+
headers: {
|
|
13099
|
+
'Content-Type': 'application/json',
|
|
13100
|
+
...options.headers
|
|
13101
|
+
}
|
|
13102
|
+
});
|
|
13103
|
+
/**
|
|
13104
|
+
* Delete a publishable key
|
|
13105
|
+
*
|
|
13106
|
+
* Delete a publishable key, closing that anonymous admittance for good. A page that still carries the plaintext key can no longer exchange it; any anonymous sign-ins it already made keep working until their own sign-in expires, so end users already admitted are not signed out by this call. Get the key id from the publishable key list, not from the plaintext value (only its hash is stored). An unknown or foreign id answers 404 END_USER_NOT_FOUND.
|
|
13107
|
+
*/
|
|
13108
|
+
export const endDeletePublishableKey = (options) => (options.client ?? client).delete({
|
|
13109
|
+
security: [{
|
|
13110
|
+
key: 'BearerAuth',
|
|
13111
|
+
scheme: 'bearer',
|
|
13112
|
+
type: 'http'
|
|
13113
|
+
}, {
|
|
13114
|
+
key: 'ApiKeyAuth',
|
|
13115
|
+
name: 'X-API-Key',
|
|
13116
|
+
type: 'apiKey'
|
|
13117
|
+
}],
|
|
13118
|
+
url: '/end/v1/publishable_keys/{key_id}',
|
|
13119
|
+
...options
|
|
13120
|
+
});
|
|
13121
|
+
/**
|
|
13122
|
+
* Update a publishable key
|
|
13123
|
+
*
|
|
13124
|
+
* Change the name of a publishable key or its own limits on anonymous admittance, for example to cap a page that is drawing more anonymous visitors than you want to pay for. Send at least one of name, anon_rate_per_min, daily_session_cap or daily_spend_cap; a field left out keeps its value, and null removes that limit. anon_rate_per_min caps the exchanges of this key per UTC minute across all visitors (returning visitors included), daily_session_cap caps the new anonymous visitors it admits per UTC day, and daily_spend_cap caps what its visitors' usage may cost per UTC day (a returning visitor is refused too, because it would start new chargeable work); a returning visitor that sends its continuation_token is never counted toward or refused by the daily cap. A new limit applies from the next exchange. The resources a key grants and its plaintext value never change; mint a new key for different resources. Get the key id from the publishable key list. An unknown, deleted or foreign id answers 400 INVALID_PARAMS, as does a limit outside its range.
|
|
13125
|
+
*/
|
|
13126
|
+
export const endUpdatePublishableKey = (options) => (options.client ?? client).patch({
|
|
13127
|
+
security: [{
|
|
13128
|
+
key: 'BearerAuth',
|
|
13129
|
+
scheme: 'bearer',
|
|
13130
|
+
type: 'http'
|
|
13131
|
+
}, {
|
|
13132
|
+
key: 'ApiKeyAuth',
|
|
13133
|
+
name: 'X-API-Key',
|
|
13134
|
+
type: 'apiKey'
|
|
13135
|
+
}],
|
|
13136
|
+
url: '/end/v1/publishable_keys/{key_id}',
|
|
13137
|
+
...options,
|
|
13138
|
+
headers: {
|
|
13139
|
+
'Content-Type': 'application/json',
|
|
13140
|
+
...options.headers
|
|
13141
|
+
}
|
|
13142
|
+
});
|
|
13143
|
+
/**
|
|
13144
|
+
* List event types
|
|
13145
|
+
*
|
|
13146
|
+
* Find which facts about your organization's resources you can subscribe to, and which filters each one allows, before you create a subscription. Each entry is one event type at one schema version: type is what you pass in subscriptions.create types, data_schema describes the event's data, and filterable lists the names a filter may use (subject, actor, and data.<field> for each top-level field of data_schema). Only tenant event types are listed; the list is generated from the platform's event declarations, so a new tenant event appears here without an API change. When a breaking change publishes a new schemaversion, both versions are listed side by side. The list is one page: next_cursor is always null today. Read-only. Errors: 503 PROVIDER_UNAVAILABLE (retryable) when the catalog cannot be read right now; wait and call again.
|
|
13147
|
+
*/
|
|
13148
|
+
export const eventsListTypes = (options) => (options?.client ?? client).get({
|
|
13149
|
+
security: [{
|
|
13150
|
+
key: 'events-bearerAuth',
|
|
13151
|
+
scheme: 'bearer',
|
|
13152
|
+
type: 'http'
|
|
13153
|
+
}],
|
|
13154
|
+
url: '/events/v1/types',
|
|
13155
|
+
...options
|
|
13156
|
+
});
|
|
13157
|
+
/**
|
|
13158
|
+
* List event subscriptions
|
|
13159
|
+
*
|
|
13160
|
+
* See which subscriptions you still have waiting, for example to avoid subscribing twice to the same run or to find an id to delete. Only subscriptions you created, in your organization, that have not expired are listed. The list is one page of at most limit entries: next_cursor is always null today. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter or a limit outside 1 to 100.
|
|
13161
|
+
*/
|
|
13162
|
+
export const eventsListSubscriptions = (options) => (options?.client ?? client).get({
|
|
13163
|
+
security: [{
|
|
13164
|
+
key: 'events-bearerAuth',
|
|
13165
|
+
scheme: 'bearer',
|
|
13166
|
+
type: 'http'
|
|
13167
|
+
}],
|
|
13168
|
+
url: '/events/v1/subscriptions',
|
|
13169
|
+
...options
|
|
13170
|
+
});
|
|
13171
|
+
/**
|
|
13172
|
+
* Create event subscription
|
|
13173
|
+
*
|
|
13174
|
+
* Ask to be told, as an inbox letter, when something happens to a resource of your organization. Typical use: an agent that started an automation run subscribes to `automation.run.finished` with `filters: [{ exact: { subject: "runs/<run id>" } }]`, then ends its turn; when the run finishes, one letter of kind event arrives in the agent's inbox and wakes it. With codemode: `const run = await praxis.automation.runs.create({ ... }); await praxis.events.subscriptions.create({ types: ["automation.run.finished"], filters: [{ exact: { subject: `runs/${run.id}` } }] });` Name 1 to 10 types from events.types.list; filters must all hold, may be empty, and use exact or prefix on subject, actor or a data.<field> the type declares. once defaults to true: the first match writes one letter and the subscription ends. Set once false for a standing subscription, which delivers at most 30 letters an hour, counts the matches it holds back, and never delivers an event whose actor is its own sink. expires_at defaults to 7 days from now and may be at most 30 days; a subscription past it stops matching. The sink is the caller's own inbox; the organization comes from your credential and is not a field. The letter's summary is `<type> · <subject>` and its body is the event, with the type's sensitive fields removed. Errors: 400 UNSUPPORTED_FILTER_DIALECT for any filter form other than exact and prefix; 400 INVALID_PARAMS for a type that is not a tenant type, a filter field the type does not declare, a field not listed here (the organization is never a field), too many types or filters, or an expires_at beyond 30 days; 503 PROVIDER_UNAVAILABLE (retryable) when the catalog cannot be read, wait and call again.
|
|
13175
|
+
*/
|
|
13176
|
+
export const eventsCreateSubscription = (options) => (options.client ?? client).post({
|
|
13177
|
+
security: [{
|
|
13178
|
+
key: 'events-bearerAuth',
|
|
13179
|
+
scheme: 'bearer',
|
|
13180
|
+
type: 'http'
|
|
13181
|
+
}],
|
|
13182
|
+
url: '/events/v1/subscriptions',
|
|
13183
|
+
...options,
|
|
13184
|
+
headers: {
|
|
13185
|
+
'Content-Type': 'application/json',
|
|
13186
|
+
...options.headers
|
|
13187
|
+
}
|
|
13188
|
+
});
|
|
13189
|
+
/**
|
|
13190
|
+
* Delete event subscription
|
|
13191
|
+
*
|
|
13192
|
+
* Stop waiting for an event, for example when the run you were waiting for was canceled by you. The subscription stops matching at once and a letter already written stays in the inbox. A once subscription that has already fired is gone, so deleting it answers 404 SUBSCRIPTION_NOT_FOUND; treat that as done. Take the id from subscriptions.create or subscriptions.list.
|
|
13193
|
+
*/
|
|
13194
|
+
export const eventsDeleteSubscription = (options) => (options.client ?? client).delete({
|
|
13195
|
+
security: [{
|
|
13196
|
+
key: 'events-bearerAuth',
|
|
13197
|
+
scheme: 'bearer',
|
|
13198
|
+
type: 'http'
|
|
13199
|
+
}],
|
|
13200
|
+
url: '/events/v1/subscriptions/{subscription_id}',
|
|
13201
|
+
...options
|
|
13202
|
+
});
|
|
13203
|
+
/**
|
|
13204
|
+
* Retrieve event subscription
|
|
13205
|
+
*
|
|
13206
|
+
* Read one subscription to check its filters, its sink and when it expires. Take the id from subscriptions.create or subscriptions.list. A subscription that does not exist, has expired, belongs to someone else or to another organization answers the same 404 SUBSCRIPTION_NOT_FOUND. Read-only.
|
|
13207
|
+
*/
|
|
13208
|
+
export const eventsRetrieveSubscription = (options) => (options.client ?? client).get({
|
|
13209
|
+
security: [{
|
|
13210
|
+
key: 'events-bearerAuth',
|
|
13211
|
+
scheme: 'bearer',
|
|
13212
|
+
type: 'http'
|
|
13213
|
+
}],
|
|
13214
|
+
url: '/events/v1/subscriptions/{subscription_id}',
|
|
13215
|
+
...options
|
|
13216
|
+
});
|
|
13217
|
+
/**
|
|
13218
|
+
* List knowledge bases
|
|
13219
|
+
*
|
|
13220
|
+
* Lists knowledge bases visible to the caller, newest first by default. Use last_id as after to read the next page; for example, ?limit=20.
|
|
13221
|
+
*/
|
|
13222
|
+
export const knowledgeListVectorStores = (options) => (options?.client ?? client).get({
|
|
13223
|
+
security: [{
|
|
13224
|
+
key: 'knowledge-bearerAuth',
|
|
13225
|
+
scheme: 'bearer',
|
|
13226
|
+
type: 'http'
|
|
13227
|
+
}],
|
|
13228
|
+
url: '/knowledge/v1/vector_stores',
|
|
13229
|
+
...options
|
|
13230
|
+
});
|
|
13231
|
+
/**
|
|
13232
|
+
* Create knowledge base
|
|
13233
|
+
*
|
|
13234
|
+
* Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.
|
|
13235
|
+
*/
|
|
13236
|
+
export const knowledgeCreateVectorStore = (options) => (options.client ?? client).post({
|
|
13237
|
+
security: [{
|
|
13238
|
+
key: 'knowledge-bearerAuth',
|
|
13239
|
+
scheme: 'bearer',
|
|
13240
|
+
type: 'http'
|
|
13241
|
+
}],
|
|
13242
|
+
url: '/knowledge/v1/vector_stores',
|
|
13243
|
+
...options,
|
|
13244
|
+
headers: {
|
|
13245
|
+
'Content-Type': 'application/json',
|
|
13246
|
+
...options.headers
|
|
13247
|
+
}
|
|
13248
|
+
});
|
|
13249
|
+
/**
|
|
13250
|
+
* Delete knowledge base
|
|
13251
|
+
*
|
|
13252
|
+
* Remove a knowledge base from active use while keeping a recovery window. Unlike OpenAI vector stores, native DELETE returns the store with status=deleting and ISO purge_at, retains it for 7 days and is idempotent on repeat. Retrieve remains 200; object operations return 409. Use restore before purge_at to recover it, or purge to remove it irreversibly.
|
|
13253
|
+
*/
|
|
13254
|
+
export const knowledgeDeleteVectorStore = (options) => (options.client ?? client).delete({
|
|
13255
|
+
security: [{
|
|
13256
|
+
key: 'knowledge-bearerAuth',
|
|
13257
|
+
scheme: 'bearer',
|
|
13258
|
+
type: 'http'
|
|
13259
|
+
}],
|
|
13260
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
13261
|
+
...options
|
|
13262
|
+
});
|
|
13263
|
+
/**
|
|
13264
|
+
* Retrieve knowledge base
|
|
13265
|
+
*
|
|
13266
|
+
* Retrieves a knowledge base using an id returned by create or list. Add ?expand=files to include the first page of attached files. Soft-deleted stores remain readable with status=deleting until purged.
|
|
13267
|
+
*/
|
|
13268
|
+
export const knowledgeRetrieveVectorStore = (options) => (options.client ?? client).get({
|
|
13269
|
+
security: [{
|
|
13270
|
+
key: 'knowledge-bearerAuth',
|
|
13271
|
+
scheme: 'bearer',
|
|
13272
|
+
type: 'http'
|
|
13273
|
+
}],
|
|
13274
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
13275
|
+
...options
|
|
13276
|
+
});
|
|
13277
|
+
/**
|
|
13278
|
+
* Update knowledge base
|
|
13279
|
+
*
|
|
13280
|
+
* Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {"name":"Refund policies"}.
|
|
13281
|
+
*/
|
|
13282
|
+
export const knowledgeUpdateVectorStore = (options) => (options.client ?? client).post({
|
|
13283
|
+
security: [{
|
|
13284
|
+
key: 'knowledge-bearerAuth',
|
|
13285
|
+
scheme: 'bearer',
|
|
13286
|
+
type: 'http'
|
|
13287
|
+
}],
|
|
13288
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
13289
|
+
...options,
|
|
13290
|
+
headers: {
|
|
13291
|
+
'Content-Type': 'application/json',
|
|
13292
|
+
...options.headers
|
|
13293
|
+
}
|
|
13294
|
+
});
|
|
13295
|
+
/**
|
|
13296
|
+
* Search knowledge base
|
|
13297
|
+
*
|
|
13298
|
+
* Search ingested text to answer a question or find supporting passages. Native results contain one chunk each, so file_id can repeat; max_num_results counts chunks (1–50, default 10), while the compatible URL groups results by file. Unlike OpenAI vector stores, next_page is always null even when has_more is true. Only completed attachments are searchable. For keyword-only retrieval set ranking_options.hybrid_search to {"embedding_weight":0,"text_weight":1}; omit rewrite_query or set it to false to avoid query rewriting. Unlike OpenAI, ranker auto does not rerank; only default-2024-11-15 requests reranking. Set praxis.explain=true to inspect scores and use returned content[].chunk_id to retrieve a segment.
|
|
13299
|
+
*/
|
|
13300
|
+
export const knowledgeSearchVectorStore = (options) => (options.client ?? client).post({
|
|
13301
|
+
security: [{
|
|
13302
|
+
key: 'knowledge-bearerAuth',
|
|
13303
|
+
scheme: 'bearer',
|
|
13304
|
+
type: 'http'
|
|
13305
|
+
}],
|
|
13306
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/search',
|
|
13307
|
+
...options,
|
|
13308
|
+
headers: {
|
|
13309
|
+
'Content-Type': 'application/json',
|
|
13310
|
+
...options.headers
|
|
13311
|
+
}
|
|
13312
|
+
});
|
|
13313
|
+
/**
|
|
13314
|
+
* List files
|
|
13315
|
+
*
|
|
13316
|
+
* Lists attached files and their ingestion status, newest attachment first by default. Use last_id as after to continue; ?filter=failed selects files that can be retried.
|
|
13317
|
+
*/
|
|
13318
|
+
export const knowledgeListFiles = (options) => (options.client ?? client).get({
|
|
13319
|
+
security: [{
|
|
13320
|
+
key: 'knowledge-bearerAuth',
|
|
13321
|
+
scheme: 'bearer',
|
|
13322
|
+
type: 'http'
|
|
13323
|
+
}],
|
|
13324
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
13325
|
+
...options
|
|
13326
|
+
});
|
|
13327
|
+
/**
|
|
13328
|
+
* Add file
|
|
13329
|
+
*
|
|
13330
|
+
* Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. PDF files accept up to 536870912 bytes (512 MiB), while other formats accept up to 52428800 bytes (50 MiB), constrained by Router conversion; every file is limited to 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.
|
|
13331
|
+
*/
|
|
13332
|
+
export const knowledgeAttachFile = (options) => (options.client ?? client).post({
|
|
13333
|
+
security: [{
|
|
13334
|
+
key: 'knowledge-bearerAuth',
|
|
13335
|
+
scheme: 'bearer',
|
|
13336
|
+
type: 'http'
|
|
13337
|
+
}],
|
|
13338
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
13339
|
+
...options,
|
|
13340
|
+
headers: {
|
|
13341
|
+
'Content-Type': 'application/json',
|
|
13342
|
+
...options.headers
|
|
13343
|
+
}
|
|
13344
|
+
});
|
|
13345
|
+
/**
|
|
13346
|
+
* Remove file
|
|
13347
|
+
*
|
|
13348
|
+
* Removes the file from search immediately; does not delete the original File.
|
|
13349
|
+
*/
|
|
13350
|
+
export const knowledgeRemoveFile = (options) => (options.client ?? client).delete({
|
|
12830
13351
|
security: [{
|
|
12831
13352
|
key: 'knowledge-bearerAuth',
|
|
12832
13353
|
scheme: 'bearer',
|
|
@@ -13797,6 +14318,98 @@ export const mediaDesignVoice = (options) => (options.client ?? client).post({
|
|
|
13797
14318
|
...options.headers
|
|
13798
14319
|
}
|
|
13799
14320
|
});
|
|
14321
|
+
/**
|
|
14322
|
+
* List works
|
|
14323
|
+
*
|
|
14324
|
+
* List the works of a library as summaries, most recently changed first: id, kind, title, series, cover_url, item_count, missing_count and updated_at. Filter with kind and series (for example all platform versions of one story), match the title with q, and continue with next_cursor.
|
|
14325
|
+
*/
|
|
14326
|
+
export const mediaListWorks = (options) => (options.client ?? client).get({
|
|
14327
|
+
security: [{
|
|
14328
|
+
key: 'media-BearerAuth',
|
|
14329
|
+
scheme: 'bearer',
|
|
14330
|
+
type: 'http'
|
|
14331
|
+
}],
|
|
14332
|
+
url: '/media/v1/libraries/{library_id}/works',
|
|
14333
|
+
...options
|
|
14334
|
+
});
|
|
14335
|
+
/**
|
|
14336
|
+
* Create work
|
|
14337
|
+
*
|
|
14338
|
+
* Create a work in a library: a gallery (图文), an article (长文), a product listing (商品图组) or a general work (blocks, 通用作品, Editor.js saved data whose image blocks name library assets in data.asset_id) that orders references to assets of this same library and adds a title and text. Upload or generate the pictures first, then send kind and body. In an article an inline image is written  where it should appear. Every asset the body names must be a live image or sticker of this library (a gallery item may also be a video), or the request is refused naming every bad reference and nothing is saved. Price, stock and other unknown fields are refused. Several platform versions of one story are several works with the same series. A work copies no file and changes no asset; creating one is free. Answers 201 with the work. Example: POST /media/v1/libraries/default/works with {"kind":"gallery","series":"ai-diary-01","body":{"title":"AI 创业第一天就踩坑","items":[{"asset_id":"<asset id>"}]}}.
|
|
14339
|
+
*/
|
|
14340
|
+
export const mediaCreateWork = (options) => (options.client ?? client).post({
|
|
14341
|
+
security: [{
|
|
14342
|
+
key: 'media-BearerAuth',
|
|
14343
|
+
scheme: 'bearer',
|
|
14344
|
+
type: 'http'
|
|
14345
|
+
}],
|
|
14346
|
+
url: '/media/v1/libraries/{library_id}/works',
|
|
14347
|
+
...options,
|
|
14348
|
+
headers: {
|
|
14349
|
+
'Content-Type': 'application/json',
|
|
14350
|
+
...options.headers
|
|
14351
|
+
}
|
|
14352
|
+
});
|
|
14353
|
+
/**
|
|
14354
|
+
* Delete work
|
|
14355
|
+
*
|
|
14356
|
+
* Delete a work. Only the work goes: every asset it named stays in the library unchanged.
|
|
14357
|
+
*/
|
|
14358
|
+
export const mediaDeleteWork = (options) => (options.client ?? client).delete({
|
|
14359
|
+
security: [{
|
|
14360
|
+
key: 'media-BearerAuth',
|
|
14361
|
+
scheme: 'bearer',
|
|
14362
|
+
type: 'http'
|
|
14363
|
+
}],
|
|
14364
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}',
|
|
14365
|
+
...options
|
|
14366
|
+
});
|
|
14367
|
+
/**
|
|
14368
|
+
* Get work
|
|
14369
|
+
*
|
|
14370
|
+
* Read one work with its body, custom fields, revision and missing (asset ids deleted since; the body keeps them in place). Add expand=assets to receive every referenced asset’s type, short-lived url, thumbnail_url and size in the same answer, which is what a publish script needs to send the work out. Use work_id from creation or listing.
|
|
14371
|
+
*/
|
|
14372
|
+
export const mediaGetWork = (options) => (options.client ?? client).get({
|
|
14373
|
+
security: [{
|
|
14374
|
+
key: 'media-BearerAuth',
|
|
14375
|
+
scheme: 'bearer',
|
|
14376
|
+
type: 'http'
|
|
14377
|
+
}],
|
|
14378
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}',
|
|
14379
|
+
...options
|
|
14380
|
+
});
|
|
14381
|
+
/**
|
|
14382
|
+
* Update work
|
|
14383
|
+
*
|
|
14384
|
+
* Change a work. body replaces the whole body and is checked like a new one; series replaces the series and null clears it; custom is a JSON Merge Patch (RFC 7396), so a script writing back its published link and numbers sends only its own keys and never erases keys another script wrote, and null removes a key. Send if_revision with the revision you read to apply the change only if nobody changed the work since; otherwise the answer is 409 REVISION_CONFLICT. Example: PATCH /media/v1/libraries/default/works/<work id> with {"custom":{"published_url":"https://…","stats":{"likes":120}}}.
|
|
14385
|
+
*/
|
|
14386
|
+
export const mediaUpdateWork = (options) => (options.client ?? client).patch({
|
|
14387
|
+
security: [{
|
|
14388
|
+
key: 'media-BearerAuth',
|
|
14389
|
+
scheme: 'bearer',
|
|
14390
|
+
type: 'http'
|
|
14391
|
+
}],
|
|
14392
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}',
|
|
14393
|
+
...options,
|
|
14394
|
+
headers: {
|
|
14395
|
+
'Content-Type': 'application/json',
|
|
14396
|
+
...options.headers
|
|
14397
|
+
}
|
|
14398
|
+
});
|
|
14399
|
+
/**
|
|
14400
|
+
* List works using an asset
|
|
14401
|
+
*
|
|
14402
|
+
* List the works whose body names one asset, as work summaries, most recently changed first. Check it before deleting an asset: the delete is never blocked, and those works would then show the asset as missing.
|
|
14403
|
+
*/
|
|
14404
|
+
export const mediaListAssetWorks = (options) => (options.client ?? client).get({
|
|
14405
|
+
security: [{
|
|
14406
|
+
key: 'media-BearerAuth',
|
|
14407
|
+
scheme: 'bearer',
|
|
14408
|
+
type: 'http'
|
|
14409
|
+
}],
|
|
14410
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works',
|
|
14411
|
+
...options
|
|
14412
|
+
});
|
|
13800
14413
|
/**
|
|
13801
14414
|
* List types
|
|
13802
14415
|
*
|
|
@@ -14487,7 +15100,7 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
|
|
|
14487
15100
|
/**
|
|
14488
15101
|
* Create sandbox (v2)
|
|
14489
15102
|
*
|
|
14490
|
-
* Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots,
|
|
15103
|
+
* Create a sandbox from a template. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, cannot be snapshotted, deleted when it ends; for jobs such as transcodes, scripts and builds) or ephemeral: false for a persistent one (pauses and resumes, snapshots, kept after it stops; for long-lived computers). Leaving ephemeral out returns INVALID_PARAMS. autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention belong to persistent sandboxes and need ephemeral: false. Choose persistent only for long-lived computers. On the E2B-compatible face autoPause is the declaration: true is persistent, false or absent is ephemeral and ends at its timeout. Responses carry ephemeral. When a sandbox's machine has ended (timeout, kill, retention, provider loss), reaching it returns SANDBOX_EXPIRED (410) with terminationReason in the message: its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths, a directory or a file): when the sandbox ends for any reason except provider loss or a failed start, each path is packed as .tar.gz and stored in File, and the killed event of GET /sandbox/v1/events/sandboxes/{sandboxID} lists each fileId or the reason it was not kept. Paths not declared are not kept. The E2B face refuses outputs. On the own face an android phone accepts waitForReady: true, an own-face-only option: the create then waits until the phone program has connected (state running) or 55 seconds have passed since the request arrived (the vendor create itself takes about 48 s, so this is often not enough), and answers with the state it reached — a timeout is not an error; omit it (the default) and the create answers at once, before the phone connects, with state starting or booting, which you follow with the detail read or the act socket.
|
|
14491
15104
|
*/
|
|
14492
15105
|
export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
|
|
14493
15106
|
security: [
|
|
@@ -14763,158 +15376,6 @@ export const requestTemplateBuild = (options) => (options.client ?? client).post
|
|
|
14763
15376
|
...options.headers
|
|
14764
15377
|
}
|
|
14765
15378
|
});
|
|
14766
|
-
/**
|
|
14767
|
-
* List team volumes
|
|
14768
|
-
*
|
|
14769
|
-
* List the volumes of your team. Use it to find a volumeID before reading or deleting a volume, or to attach a volume to a sandbox by name when you create it.
|
|
14770
|
-
*/
|
|
14771
|
-
export const getSandboxV1Volumes = (options) => (options?.client ?? client).get({
|
|
14772
|
-
security: [
|
|
14773
|
-
{
|
|
14774
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14775
|
-
name: 'X-API-Key',
|
|
14776
|
-
type: 'apiKey'
|
|
14777
|
-
},
|
|
14778
|
-
{
|
|
14779
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14780
|
-
scheme: 'bearer',
|
|
14781
|
-
type: 'http'
|
|
14782
|
-
},
|
|
14783
|
-
{
|
|
14784
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14785
|
-
name: 'X-Team-ID',
|
|
14786
|
-
type: 'apiKey'
|
|
14787
|
-
},
|
|
14788
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14789
|
-
{
|
|
14790
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14791
|
-
name: 'X-Team-ID',
|
|
14792
|
-
type: 'apiKey'
|
|
14793
|
-
},
|
|
14794
|
-
{
|
|
14795
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14796
|
-
scheme: 'bearer',
|
|
14797
|
-
type: 'http'
|
|
14798
|
-
}
|
|
14799
|
-
],
|
|
14800
|
-
url: '/sandbox/v1/volumes',
|
|
14801
|
-
...options
|
|
14802
|
-
});
|
|
14803
|
-
/**
|
|
14804
|
-
* Create team volume
|
|
14805
|
-
*
|
|
14806
|
-
* Create a team volume: persistent storage that can be mounted into sandboxes and outlives them. Send the volume name; the response returns the volume id and name. Use getVolume to read it back and deleteVolume to remove it.
|
|
14807
|
-
*/
|
|
14808
|
-
export const postSandboxV1Volumes = (options) => (options.client ?? client).post({
|
|
14809
|
-
security: [
|
|
14810
|
-
{
|
|
14811
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14812
|
-
name: 'X-API-Key',
|
|
14813
|
-
type: 'apiKey'
|
|
14814
|
-
},
|
|
14815
|
-
{
|
|
14816
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14817
|
-
scheme: 'bearer',
|
|
14818
|
-
type: 'http'
|
|
14819
|
-
},
|
|
14820
|
-
{
|
|
14821
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14822
|
-
name: 'X-Team-ID',
|
|
14823
|
-
type: 'apiKey'
|
|
14824
|
-
},
|
|
14825
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14826
|
-
{
|
|
14827
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14828
|
-
name: 'X-Team-ID',
|
|
14829
|
-
type: 'apiKey'
|
|
14830
|
-
},
|
|
14831
|
-
{
|
|
14832
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14833
|
-
scheme: 'bearer',
|
|
14834
|
-
type: 'http'
|
|
14835
|
-
}
|
|
14836
|
-
],
|
|
14837
|
-
url: '/sandbox/v1/volumes',
|
|
14838
|
-
...options,
|
|
14839
|
-
headers: {
|
|
14840
|
-
'Content-Type': 'application/json',
|
|
14841
|
-
...options.headers
|
|
14842
|
-
}
|
|
14843
|
-
});
|
|
14844
|
-
/**
|
|
14845
|
-
* Delete team volume
|
|
14846
|
-
*
|
|
14847
|
-
* Delete a team volume and its data permanently. Use it only when no sandbox needs the volume any more; the data cannot be recovered. Success answers 204; an unknown id answers 404.
|
|
14848
|
-
*/
|
|
14849
|
-
export const deleteSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).delete({
|
|
14850
|
-
security: [
|
|
14851
|
-
{
|
|
14852
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14853
|
-
name: 'X-API-Key',
|
|
14854
|
-
type: 'apiKey'
|
|
14855
|
-
},
|
|
14856
|
-
{
|
|
14857
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14858
|
-
scheme: 'bearer',
|
|
14859
|
-
type: 'http'
|
|
14860
|
-
},
|
|
14861
|
-
{
|
|
14862
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14863
|
-
name: 'X-Team-ID',
|
|
14864
|
-
type: 'apiKey'
|
|
14865
|
-
},
|
|
14866
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14867
|
-
{
|
|
14868
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14869
|
-
name: 'X-Team-ID',
|
|
14870
|
-
type: 'apiKey'
|
|
14871
|
-
},
|
|
14872
|
-
{
|
|
14873
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14874
|
-
scheme: 'bearer',
|
|
14875
|
-
type: 'http'
|
|
14876
|
-
}
|
|
14877
|
-
],
|
|
14878
|
-
url: '/sandbox/v1/volumes/{volumeID}',
|
|
14879
|
-
...options
|
|
14880
|
-
});
|
|
14881
|
-
/**
|
|
14882
|
-
* Team volume
|
|
14883
|
-
*
|
|
14884
|
-
* Read one team volume by id. Use it to confirm a volume exists and to read its name before mounting it in a sandbox. An unknown id answers 404.
|
|
14885
|
-
*/
|
|
14886
|
-
export const getSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).get({
|
|
14887
|
-
security: [
|
|
14888
|
-
{
|
|
14889
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14890
|
-
name: 'X-API-Key',
|
|
14891
|
-
type: 'apiKey'
|
|
14892
|
-
},
|
|
14893
|
-
{
|
|
14894
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14895
|
-
scheme: 'bearer',
|
|
14896
|
-
type: 'http'
|
|
14897
|
-
},
|
|
14898
|
-
{
|
|
14899
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14900
|
-
name: 'X-Team-ID',
|
|
14901
|
-
type: 'apiKey'
|
|
14902
|
-
},
|
|
14903
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14904
|
-
{
|
|
14905
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14906
|
-
name: 'X-Team-ID',
|
|
14907
|
-
type: 'apiKey'
|
|
14908
|
-
},
|
|
14909
|
-
{
|
|
14910
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14911
|
-
scheme: 'bearer',
|
|
14912
|
-
type: 'http'
|
|
14913
|
-
}
|
|
14914
|
-
],
|
|
14915
|
-
url: '/sandbox/v1/volumes/{volumeID}',
|
|
14916
|
-
...options
|
|
14917
|
-
});
|
|
14918
15379
|
/**
|
|
14919
15380
|
* Fork sandbox
|
|
14920
15381
|
*
|
|
@@ -15071,47 +15532,6 @@ export const deleteSandboxV1SnapshotsBySnapshotId = (options) => (options.client
|
|
|
15071
15532
|
url: '/sandbox/v1/snapshots/{snapshotID}',
|
|
15072
15533
|
...options
|
|
15073
15534
|
});
|
|
15074
|
-
/**
|
|
15075
|
-
* Update sandbox network
|
|
15076
|
-
*
|
|
15077
|
-
* Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.
|
|
15078
|
-
*/
|
|
15079
|
-
export const putSandboxV1SandboxesBySandboxIdNetwork = (options) => (options.client ?? client).put({
|
|
15080
|
-
security: [
|
|
15081
|
-
{
|
|
15082
|
-
key: 'sandbox-ApiKeyAuth',
|
|
15083
|
-
name: 'X-API-Key',
|
|
15084
|
-
type: 'apiKey'
|
|
15085
|
-
},
|
|
15086
|
-
{
|
|
15087
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
15088
|
-
scheme: 'bearer',
|
|
15089
|
-
type: 'http'
|
|
15090
|
-
},
|
|
15091
|
-
{
|
|
15092
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
15093
|
-
name: 'X-Team-ID',
|
|
15094
|
-
type: 'apiKey'
|
|
15095
|
-
},
|
|
15096
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
15097
|
-
{
|
|
15098
|
-
key: 'sandbox-AdminTeamAuth',
|
|
15099
|
-
name: 'X-Team-ID',
|
|
15100
|
-
type: 'apiKey'
|
|
15101
|
-
},
|
|
15102
|
-
{
|
|
15103
|
-
key: 'sandbox-AdminJWTAuth',
|
|
15104
|
-
scheme: 'bearer',
|
|
15105
|
-
type: 'http'
|
|
15106
|
-
}
|
|
15107
|
-
],
|
|
15108
|
-
url: '/sandbox/v1/sandboxes/{sandboxID}/network',
|
|
15109
|
-
...options,
|
|
15110
|
-
headers: {
|
|
15111
|
-
'Content-Type': 'application/json',
|
|
15112
|
-
...options.headers
|
|
15113
|
-
}
|
|
15114
|
-
});
|
|
15115
15535
|
/**
|
|
15116
15536
|
* Sandbox logs (v2)
|
|
15117
15537
|
*
|