@deepraxis/sdk 0.2.0-dev.ed8a023 → 0.2.0-dev.f0a92dd
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 +212 -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 +359 -62
- package/dist/generated/sdk.gen.js +1025 -400
- package/dist/generated/types.gen.d.ts +6551 -1448
- package/dist/helpers/browser-actions.d.ts +4 -0
- package/dist/helpers/browser-actions.js +7 -1
- package/dist/helpers/browser-connect-error.d.ts +22 -4
- package/dist/helpers/browser-connect-error.js +45 -9
- package/dist/helpers/browser-connect.d.ts +23 -2
- package/dist/helpers/browser-connect.js +56 -9
- package/dist/helpers/browser-decisions.d.ts +5 -0
- package/dist/helpers/browser-decisions.js +12 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +4 -0
- package/dist/operations.generated.js +2210 -683
- package/dist/resources.generated.d.ts +944 -74
- package/dist/resources.generated.js +252 -85
- package/package.json +1 -1
|
@@ -117,6 +117,24 @@ export const listAgentInboxLetters = (options) => (options.client ?? client).get
|
|
|
117
117
|
url: '/agent/v1/agents/{agent_id}/inbox/letters',
|
|
118
118
|
...options
|
|
119
119
|
});
|
|
120
|
+
/**
|
|
121
|
+
* List the Claude Code sessions already on a device
|
|
122
|
+
*
|
|
123
|
+
* List the Claude Code sessions that already exist on a person's paired machine for a directory bound to this BYOA agent (started in a terminal, not on the platform), newest first, so one can be continued from the platform: pick an id and create a session with runtime.resume_session_id set to it (runtime.type device, the same device_id and cwd). Only the person who paired the device may ask. cwd is required and must be the directory exactly as the device registered it and bound it to this agent. Pass next_cursor back as cursor for the next page; null means the last page.
|
|
124
|
+
*/
|
|
125
|
+
export const listAgentDeviceLocalSessions = (options) => (options.client ?? client).get({
|
|
126
|
+
security: [{
|
|
127
|
+
key: 'BearerAuth',
|
|
128
|
+
scheme: 'bearer',
|
|
129
|
+
type: 'http'
|
|
130
|
+
}, {
|
|
131
|
+
key: 'ApiKeyAuth',
|
|
132
|
+
name: 'X-API-Key',
|
|
133
|
+
type: 'apiKey'
|
|
134
|
+
}],
|
|
135
|
+
url: '/agent/v1/agents/{agent_id}/devices/{device_id}/local-sessions',
|
|
136
|
+
...options
|
|
137
|
+
});
|
|
120
138
|
/**
|
|
121
139
|
* Create a login intent for the calling agent
|
|
122
140
|
*
|
|
@@ -540,7 +558,7 @@ export const computersRetrieve = (options) => (options.client ?? client).get({
|
|
|
540
558
|
/**
|
|
541
559
|
* Update Computer
|
|
542
560
|
*
|
|
543
|
-
* Rename a computer.
|
|
561
|
+
* Rename a computer, declare its environment, or drop that declaration without touching the machine.
|
|
544
562
|
*
|
|
545
563
|
* Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
|
|
546
564
|
*/
|
|
@@ -714,9 +732,9 @@ export const computersFilesConvert = (options) => (options.client ?? client).pos
|
|
|
714
732
|
*
|
|
715
733
|
* Resume the computer and issue a sandbox connection.
|
|
716
734
|
*
|
|
717
|
-
* Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus
|
|
735
|
+
* Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST .../leases/{lease_id}/renew) and release it on close (DELETE .../leases/{lease_id}). An unrenewed lease simply expires, and the machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.
|
|
718
736
|
*
|
|
719
|
-
* Connect to a computer with a caller-held lease. Omit the body or send {}
|
|
737
|
+
* Connect to a computer with a caller-held lease. Omit the body or send {}: the optional need field is accepted for compatibility and changes nothing, because a Computer is one machine. Renew the lease while using the connection and release it with DELETE when finished.
|
|
720
738
|
*/
|
|
721
739
|
export const connectComputer = (options) => (options.client ?? client).post({
|
|
722
740
|
security: [{
|
|
@@ -1168,7 +1186,7 @@ export const createAgentUploadContentUrl = (options) => (options.client ?? clien
|
|
|
1168
1186
|
/**
|
|
1169
1187
|
* Generate speech
|
|
1170
1188
|
*
|
|
1171
|
-
* 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"}.
|
|
1172
1190
|
*/
|
|
1173
1191
|
export const createAudioSpeech = (options) => (options.client ?? client).post({
|
|
1174
1192
|
security: [{
|
|
@@ -1210,7 +1228,7 @@ export const browserListSessions = (options) => (options?.client ?? client).get(
|
|
|
1210
1228
|
/**
|
|
1211
1229
|
* 创建浏览器会话
|
|
1212
1230
|
*
|
|
1213
|
-
* 创建云端 Chrome,返回自带凭证的 connectUrl
|
|
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 也不豁免;该事件记录判据读数。
|
|
1214
1232
|
*/
|
|
1215
1233
|
export const browserCreateSession = (options) => (options.client ?? client).post({
|
|
1216
1234
|
security: [{
|
|
@@ -1288,7 +1306,7 @@ export const browserListEvents = (options) => (options.client ?? client).get({
|
|
|
1288
1306
|
/**
|
|
1289
1307
|
* 执行页面动作
|
|
1290
1308
|
*
|
|
1291
|
-
* 在会话的浏览器里执行一个页面动作并返回结果,由浏览器服务执行,客户端不需要 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 命令。
|
|
1292
1310
|
*/
|
|
1293
1311
|
export const browserRunPageAction = (options) => (options.client ?? client).post({
|
|
1294
1312
|
security: [{
|
|
@@ -1445,10 +1463,103 @@ export const browserUpdateContext = (options) => (options.client ?? client).put(
|
|
|
1445
1463
|
...options.headers
|
|
1446
1464
|
}
|
|
1447
1465
|
});
|
|
1466
|
+
/**
|
|
1467
|
+
* 创建浏览器配对码
|
|
1468
|
+
*
|
|
1469
|
+
* 为一个要接入的 Chrome 或 Edge 创建 8 位配对码,一次性、10 分钟有效;把它交给用户,由用户在浏览器扩展里输入或由 Console 直接交给扩展,用户点「允许」后配对完成。需要组织已开通 BYOB,否则返回 501 PROVIDER_UNSUPPORTED。
|
|
1470
|
+
*/
|
|
1471
|
+
export const browserCreateByobPairing = (options) => (options?.client ?? client).post({
|
|
1472
|
+
security: [{
|
|
1473
|
+
key: 'BrowserBearer',
|
|
1474
|
+
scheme: 'bearer',
|
|
1475
|
+
type: 'http'
|
|
1476
|
+
}],
|
|
1477
|
+
url: '/browser/v1/byob/pairings',
|
|
1478
|
+
...options
|
|
1479
|
+
});
|
|
1480
|
+
/**
|
|
1481
|
+
* 列出自带浏览器
|
|
1482
|
+
*
|
|
1483
|
+
* 分页列出当前组织已配对且未断开的自带浏览器,按 ID 升序。将 nextCursor 原样传入读取下一页,直到其为 null。
|
|
1484
|
+
*/
|
|
1485
|
+
export const browserListByobBrowsers = (options) => (options?.client ?? client).get({
|
|
1486
|
+
security: [{
|
|
1487
|
+
key: 'BrowserBearer',
|
|
1488
|
+
scheme: 'bearer',
|
|
1489
|
+
type: 'http'
|
|
1490
|
+
}],
|
|
1491
|
+
url: '/browser/v1/byob/browsers',
|
|
1492
|
+
...options
|
|
1493
|
+
});
|
|
1494
|
+
/**
|
|
1495
|
+
* 读取自带浏览器
|
|
1496
|
+
*
|
|
1497
|
+
* 读取当前组织的指定自带浏览器,包括已断开的(revoked_at 不为 null)。不存在或不属于当前组织时返回 404 BROWSER_NOT_FOUND。
|
|
1498
|
+
*/
|
|
1499
|
+
export const browserGetByobBrowser = (options) => (options.client ?? client).get({
|
|
1500
|
+
security: [{
|
|
1501
|
+
key: 'BrowserBearer',
|
|
1502
|
+
scheme: 'bearer',
|
|
1503
|
+
type: 'http'
|
|
1504
|
+
}],
|
|
1505
|
+
url: '/browser/v1/byob/browsers/{browser_id}',
|
|
1506
|
+
...options
|
|
1507
|
+
});
|
|
1508
|
+
/**
|
|
1509
|
+
* 更新自带浏览器的名称、授权智能体与允许站点
|
|
1510
|
+
*
|
|
1511
|
+
* 给自带浏览器改名,只改请求里出现的字段。已断开的浏览器返回 410 BROWSER_REVOKED,需要重新配对。
|
|
1512
|
+
*/
|
|
1513
|
+
export const browserUpdateByobBrowser = (options) => (options.client ?? client).patch({
|
|
1514
|
+
security: [{
|
|
1515
|
+
key: 'BrowserBearer',
|
|
1516
|
+
scheme: 'bearer',
|
|
1517
|
+
type: 'http'
|
|
1518
|
+
}],
|
|
1519
|
+
url: '/browser/v1/byob/browsers/{browser_id}',
|
|
1520
|
+
...options,
|
|
1521
|
+
headers: {
|
|
1522
|
+
'Content-Type': 'application/json',
|
|
1523
|
+
...options.headers
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
/**
|
|
1527
|
+
* 断开自带浏览器
|
|
1528
|
+
*
|
|
1529
|
+
* 断开自带浏览器:之后没有任何智能体能再驱动它,要用必须重新配对。可重复调用,结果相同;功能开关关闭时也能断开。
|
|
1530
|
+
*/
|
|
1531
|
+
export const browserDisconnectByobBrowser = (options) => (options.client ?? client).post({
|
|
1532
|
+
security: [{
|
|
1533
|
+
key: 'BrowserBearer',
|
|
1534
|
+
scheme: 'bearer',
|
|
1535
|
+
type: 'http'
|
|
1536
|
+
}],
|
|
1537
|
+
url: '/browser/v1/byob/browsers/{browser_id}/disconnect',
|
|
1538
|
+
...options
|
|
1539
|
+
});
|
|
1540
|
+
/**
|
|
1541
|
+
* 读取浏览器配对授权页信息
|
|
1542
|
+
*
|
|
1543
|
+
* 扩展的授权页读取配对码对应的组织与发起人,让用户确认后再点「允许」。不需要 API Key,配对码就是凭证;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND,不区分原因。
|
|
1544
|
+
*/
|
|
1545
|
+
export const browserReadByobPairing = (options) => (options.client ?? client).get({ url: '/browser/v1/byob/pairings/{code}', ...options });
|
|
1546
|
+
/**
|
|
1547
|
+
* 认领浏览器配对码
|
|
1548
|
+
*
|
|
1549
|
+
* 用户点「允许」后,扩展用配对码认领一次,登记这个浏览器并取得 browser_id 和要拨入的 link_url。不需要 API Key,配对码就是凭证,只能使用一次;码不存在、已过期、已使用一律返回 404 PAIRING_NOT_FOUND。请求体不合格时返回 400 且不消耗配对码。
|
|
1550
|
+
*/
|
|
1551
|
+
export const browserClaimByobPairing = (options) => (options.client ?? client).post({
|
|
1552
|
+
url: '/browser/v1/byob/pairings/{code}/claim',
|
|
1553
|
+
...options,
|
|
1554
|
+
headers: {
|
|
1555
|
+
'Content-Type': 'application/json',
|
|
1556
|
+
...options.headers
|
|
1557
|
+
}
|
|
1558
|
+
});
|
|
1448
1559
|
/**
|
|
1449
1560
|
* 连接云端浏览器
|
|
1450
1561
|
*
|
|
1451
|
-
* 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。
|
|
1452
1563
|
*/
|
|
1453
1564
|
export const browserConnect = (options) => (options?.client ?? client).get({
|
|
1454
1565
|
security: [{
|
|
@@ -1466,7 +1577,7 @@ export const browserConnect = (options) => (options?.client ?? client).get({
|
|
|
1466
1577
|
/**
|
|
1467
1578
|
* 打开实时浏览器画面
|
|
1468
1579
|
*
|
|
1469
|
-
*
|
|
1580
|
+
* 旧版 debug 返回的带 t 凭证的地址,凭证在有效期内时跳转到该会话在 Console 的会话页。debug 现在直接返回 Console 会话页地址,新代码不要拼这个地址。
|
|
1470
1581
|
*/
|
|
1471
1582
|
export const browserLiveView = (options) => (options.client ?? client).get({
|
|
1472
1583
|
security: [{
|
|
@@ -3054,7 +3165,7 @@ export const createOrganizationFeedbackMessage = (options) => (options.client ??
|
|
|
3054
3165
|
/**
|
|
3055
3166
|
* List Organization Costs
|
|
3056
3167
|
*
|
|
3057
|
-
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole
|
|
3168
|
+
* Billed cost per time bucket per group (AWS GetCostAndUsage shape). Buckets are whole hour or day periods in time_zone (UTC by default); a window is answered over the aligned envelope covering it. Amounts are exact decimal strings in the currency the organization was charged in (BillingCurrency, CNY or USD); a group charged in two currencies is two results. estimated is always false: charges are final when they are recorded. Windows span at most 93 days; longer ranges belong to the charges export.
|
|
3058
3169
|
*
|
|
3059
3170
|
*/
|
|
3060
3171
|
export const listOrganizationCosts = (options) => (options.client ?? client).get({
|
|
@@ -3073,7 +3184,7 @@ export const listOrganizationCosts = (options) => (options.client ?? client).get
|
|
|
3073
3184
|
/**
|
|
3074
3185
|
* List Organization Usage
|
|
3075
3186
|
*
|
|
3076
|
-
* Consumed quantity per time bucket per group. Buckets are whole
|
|
3187
|
+
* Consumed quantity per time bucket per group. Buckets are whole hour or day periods in time_zone (UTC by default) covering the requested window. Each result carries exactly one ConsumedQuantity + ConsumedUnit — quantities of different units are never added together.
|
|
3077
3188
|
*
|
|
3078
3189
|
*/
|
|
3079
3190
|
export const listOrganizationUsage = (options) => (options.client ?? client).get({
|
|
@@ -3165,9 +3276,9 @@ export const getOrganizationNotificationsInbox = (options) => (options?.client ?
|
|
|
3165
3276
|
...options
|
|
3166
3277
|
});
|
|
3167
3278
|
/**
|
|
3168
|
-
* List the letters addressed to you
|
|
3279
|
+
* List the letters addressed to you, or the ones you sent
|
|
3169
3280
|
*
|
|
3170
|
-
* 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.
|
|
3171
3282
|
*/
|
|
3172
3283
|
export const listOrganizationNotificationLetters = (options) => (options?.client ?? client).get({
|
|
3173
3284
|
security: [{
|
|
@@ -3182,6 +3293,28 @@ export const listOrganizationNotificationLetters = (options) => (options?.client
|
|
|
3182
3293
|
url: '/organization/v1/notifications/letters',
|
|
3183
3294
|
...options
|
|
3184
3295
|
});
|
|
3296
|
+
/**
|
|
3297
|
+
* Send a letter to a person or an agent
|
|
3298
|
+
*
|
|
3299
|
+
* Write one letter to a member or an agent of this organization, for an automation script or an outside caller that needs to reach someone, or to leave itself an alarm: a letter to your own address is allowed and arrives at its deliver_at. The sender is the credential's own and is never a request field — a person writes as themselves, an agent as itself, and an automation run (a scheduled or service-started one included) as the platform's automation sender with the run recorded in the letter's source; a `sender` in the body is ignored. Any other credential (an organization API key, an application) has no address to write from and is refused with 403. The recipient must belong to this organization: a person or agent of another organization answers 404 without saying whether it exists. A letter to a person needs a summary of at most 60 characters — one sentence saying what the reader must do or know; a longer one is refused, never cut. An agent's letter may leave summary out and the first line of body stands in. Repeating the same letter (same recipient, kind, thread, body and time) returns the same id and writes it once. Usage charge: none.
|
|
3300
|
+
*/
|
|
3301
|
+
export const createOrganizationNotificationLetter = (options) => (options.client ?? client).post({
|
|
3302
|
+
security: [{
|
|
3303
|
+
key: 'BearerAuth',
|
|
3304
|
+
scheme: 'bearer',
|
|
3305
|
+
type: 'http'
|
|
3306
|
+
}, {
|
|
3307
|
+
key: 'ApiKeyAuth',
|
|
3308
|
+
name: 'X-API-Key',
|
|
3309
|
+
type: 'apiKey'
|
|
3310
|
+
}],
|
|
3311
|
+
url: '/organization/v1/notifications/letters',
|
|
3312
|
+
...options,
|
|
3313
|
+
headers: {
|
|
3314
|
+
'Content-Type': 'application/json',
|
|
3315
|
+
...options.headers
|
|
3316
|
+
}
|
|
3317
|
+
});
|
|
3185
3318
|
/**
|
|
3186
3319
|
* Open one of your letters by its id
|
|
3187
3320
|
*
|
|
@@ -3258,6 +3391,100 @@ export const archiveOrganizationNotificationLetter = (options) => (options.clien
|
|
|
3258
3391
|
url: '/organization/v1/notifications/letters/{id}:archive',
|
|
3259
3392
|
...options
|
|
3260
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
|
+
});
|
|
3261
3488
|
/**
|
|
3262
3489
|
* Your notification switches, and what they resolve to
|
|
3263
3490
|
*
|
|
@@ -3824,6 +4051,24 @@ export const getByodPairing = (options) => (options.client ?? client).get({
|
|
|
3824
4051
|
url: '/sandbox/v1/byod/pairings/{code}',
|
|
3825
4052
|
...options
|
|
3826
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
|
+
});
|
|
3827
4072
|
/**
|
|
3828
4073
|
* Claim a pairing and register the phone
|
|
3829
4074
|
*
|
|
@@ -5067,7 +5312,7 @@ export const sessionsRetrieve = (options) => (options.client ?? client).get({
|
|
|
5067
5312
|
/**
|
|
5068
5313
|
* Update session
|
|
5069
5314
|
*
|
|
5070
|
-
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
5315
|
+
* Update a session's title, metadata, model or thinking selection. metadata follows patch semantics: a string value sets the key, null deletes it, a null metadata clears all keys, untouched keys stay. model must be allowed by the session's agent version; thinking is {effort} or null (null restores inheritance); a model-only change clears a session thinking that the new model does not support, and combined changes are validated against the new model, with the previous selection kept on a 400. Changes apply from the next turn, not to a turn already running. Agent overrides are not supported (400 naming the field). Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. A budget limit must exceed consumed cost; null removes it permanently for this session. Updating an archived session returns 409.
|
|
5071
5316
|
*/
|
|
5072
5317
|
export const sessionsUpdate = (options) => (options.client ?? client).post({
|
|
5073
5318
|
security: [{
|
|
@@ -5223,7 +5468,7 @@ export const sessionsList = (options) => (options?.client ?? client).get({
|
|
|
5223
5468
|
/**
|
|
5224
5469
|
* Create session
|
|
5225
5470
|
*
|
|
5226
|
-
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired "light" returns 400 naming the two forms that work: "node22", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead.
|
|
5471
|
+
* Create a session: one conversation with an agent. Pass agent as an agent id or {type:"agent", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (node22 for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. The retired "light" returns 400 naming the two forms that work: "node22", or null for no machine. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:"agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead. vault_ids (at most 50, owned by the organization, not archived) adds vaults to the agent's own vault_ids, the ones its department or organization rule grants attach, and the session carries both sets from creation; sessions.update replaces the session's own set later. The secrets of those vaults reach the session's machine as environment variables named after the secret, in every command it runs, and are matched against its MCP servers; a service agent's session skips OAuth credentials and secrets that declare allowed_hosts, and names the platform login owns are never taken. allowed_hosts does not limit what a command does with an exported value. A session with no machine has no environment. budget is {type:"limit", max_list_cost:{amount, currency:"USD"}} where amount is a positive decimal string of US dollars with at most 2 decimal places ("20.00" is USD 20.00); omitted budget defaults to "20.00" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.
|
|
5227
5472
|
*/
|
|
5228
5473
|
export const sessionsCreate = (options) => (options.client ?? client).post({
|
|
5229
5474
|
security: [{
|
|
@@ -5603,7 +5848,7 @@ export const deploymentsList = (options) => (options?.client ?? client).get({
|
|
|
5603
5848
|
/**
|
|
5604
5849
|
* Create deployment
|
|
5605
5850
|
*
|
|
5606
|
-
* Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:"computer"} is for general agents and needs no environment_id, while target:{type:"environment"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived;
|
|
5851
|
+
* Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:"computer"} is for general agents and needs no environment_id, while target:{type:"environment"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session's machine as environment variables and are matched against its MCP servers. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {"agent":"agent_123","name":"weekly report","initial_events":[{"type":"user.message","content":[{"type":"text","text":"Write the weekly report."}]}],"target":{"type":"computer"},"schedule":{"type":"cron","expression":"0 9 * * 1","timezone":"America/Los_Angeles"}}.
|
|
5607
5852
|
*/
|
|
5608
5853
|
export const deploymentsCreate = (options) => (options.client ?? client).post({
|
|
5609
5854
|
security: [{
|
|
@@ -6292,6 +6537,60 @@ export const applicationListEvents = (options) => (options.client ?? client).get
|
|
|
6292
6537
|
url: '/application/v1/workers/{worker_id}/events',
|
|
6293
6538
|
...options
|
|
6294
6539
|
});
|
|
6540
|
+
/**
|
|
6541
|
+
* Query Worker logs
|
|
6542
|
+
*
|
|
6543
|
+
* Read this application's request logs for a time window: individual log lines (view events) or aggregates (calculations), with Cloudflare's filters, group-bys and pagination. The body is Cloudflare's Workers Observability query body and the answer its result, field for field, so examples from Cloudflare's documentation work as they are. The server scopes every read to this application: it adds the application's script name as a filter, forces the dataset to cloudflare-workers and drops any caller filter on the script or dataset, so one application never reads another's logs. Logs are kept 7 days and start once the next deployment runs with observability on (on by default). Use logs:keys and logs:values to discover the fields to filter on, and the Worker's events (ListEvents) for lifecycle rather than request logs.
|
|
6544
|
+
*/
|
|
6545
|
+
export const applicationQueryWorkerLogs = (options) => (options.client ?? client).post({
|
|
6546
|
+
security: [{
|
|
6547
|
+
key: 'application-bearerAuth',
|
|
6548
|
+
scheme: 'bearer',
|
|
6549
|
+
type: 'http'
|
|
6550
|
+
}],
|
|
6551
|
+
url: '/application/v1/workers/{worker_id}/logs:query',
|
|
6552
|
+
...options,
|
|
6553
|
+
headers: {
|
|
6554
|
+
'Content-Type': 'application/json',
|
|
6555
|
+
...options.headers
|
|
6556
|
+
}
|
|
6557
|
+
});
|
|
6558
|
+
/**
|
|
6559
|
+
* List log fields
|
|
6560
|
+
*
|
|
6561
|
+
* List the fields present in this application's request logs (key, type, last seen), to build filters for logs:query or values for logs:values. Scoped to this application exactly like logs:query. Cloudflare's telemetry keys body and answer, unchanged.
|
|
6562
|
+
*/
|
|
6563
|
+
export const applicationListWorkerLogKeys = (options) => (options.client ?? client).post({
|
|
6564
|
+
security: [{
|
|
6565
|
+
key: 'application-bearerAuth',
|
|
6566
|
+
scheme: 'bearer',
|
|
6567
|
+
type: 'http'
|
|
6568
|
+
}],
|
|
6569
|
+
url: '/application/v1/workers/{worker_id}/logs:keys',
|
|
6570
|
+
...options,
|
|
6571
|
+
headers: {
|
|
6572
|
+
'Content-Type': 'application/json',
|
|
6573
|
+
...options.headers
|
|
6574
|
+
}
|
|
6575
|
+
});
|
|
6576
|
+
/**
|
|
6577
|
+
* List log field values
|
|
6578
|
+
*
|
|
6579
|
+
* List the distinct values a field takes in this application's request logs within a window, to build filters whose values actually match (for example the levels that occur). Scoped to this application exactly like logs:query. Cloudflare's telemetry values body and answer, unchanged.
|
|
6580
|
+
*/
|
|
6581
|
+
export const applicationListWorkerLogValues = (options) => (options.client ?? client).post({
|
|
6582
|
+
security: [{
|
|
6583
|
+
key: 'application-bearerAuth',
|
|
6584
|
+
scheme: 'bearer',
|
|
6585
|
+
type: 'http'
|
|
6586
|
+
}],
|
|
6587
|
+
url: '/application/v1/workers/{worker_id}/logs:values',
|
|
6588
|
+
...options,
|
|
6589
|
+
headers: {
|
|
6590
|
+
'Content-Type': 'application/json',
|
|
6591
|
+
...options.headers
|
|
6592
|
+
}
|
|
6593
|
+
});
|
|
6295
6594
|
/**
|
|
6296
6595
|
* Create asset upload session
|
|
6297
6596
|
*
|
|
@@ -6388,7 +6687,7 @@ export const automationActionsGet = (options) => (options.client ?? client).get(
|
|
|
6388
6687
|
name: 'X-API-Key',
|
|
6389
6688
|
type: 'apiKey'
|
|
6390
6689
|
}],
|
|
6391
|
-
url: '/automation/v1/actions/{
|
|
6690
|
+
url: '/automation/v1/actions/{namespace}/{name}',
|
|
6392
6691
|
...options
|
|
6393
6692
|
});
|
|
6394
6693
|
/**
|
|
@@ -6406,7 +6705,7 @@ export const automationActionsUpdate = (options) => (options.client ?? client).p
|
|
|
6406
6705
|
name: 'X-API-Key',
|
|
6407
6706
|
type: 'apiKey'
|
|
6408
6707
|
}],
|
|
6409
|
-
url: '/automation/v1/actions/{
|
|
6708
|
+
url: '/automation/v1/actions/{namespace}/{name}',
|
|
6410
6709
|
...options,
|
|
6411
6710
|
headers: {
|
|
6412
6711
|
'Content-Type': 'application/json',
|
|
@@ -6428,7 +6727,7 @@ export const automationActionsRevisions = (options) => (options.client ?? client
|
|
|
6428
6727
|
name: 'X-API-Key',
|
|
6429
6728
|
type: 'apiKey'
|
|
6430
6729
|
}],
|
|
6431
|
-
url: '/automation/v1/actions/{
|
|
6730
|
+
url: '/automation/v1/actions/{namespace}/{name}/revisions',
|
|
6432
6731
|
...options
|
|
6433
6732
|
});
|
|
6434
6733
|
/**
|
|
@@ -6446,7 +6745,7 @@ export const automationActionsRevision = (options) => (options.client ?? client)
|
|
|
6446
6745
|
name: 'X-API-Key',
|
|
6447
6746
|
type: 'apiKey'
|
|
6448
6747
|
}],
|
|
6449
|
-
url: '/automation/v1/actions/{
|
|
6748
|
+
url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}',
|
|
6450
6749
|
...options
|
|
6451
6750
|
});
|
|
6452
6751
|
/**
|
|
@@ -6464,7 +6763,7 @@ export const automationActionsRollback = (options) => (options.client ?? client)
|
|
|
6464
6763
|
name: 'X-API-Key',
|
|
6465
6764
|
type: 'apiKey'
|
|
6466
6765
|
}],
|
|
6467
|
-
url: '/automation/v1/actions/{
|
|
6766
|
+
url: '/automation/v1/actions/{namespace}/{name}/rollback',
|
|
6468
6767
|
...options,
|
|
6469
6768
|
headers: {
|
|
6470
6769
|
'Content-Type': 'application/json',
|
|
@@ -6487,7 +6786,7 @@ export const automationActionsInvocations = (options) => (options.client ?? clie
|
|
|
6487
6786
|
name: 'X-API-Key',
|
|
6488
6787
|
type: 'apiKey'
|
|
6489
6788
|
}],
|
|
6490
|
-
url: '/automation/v1/actions/{
|
|
6789
|
+
url: '/automation/v1/actions/{namespace}/{name}/invocations',
|
|
6491
6790
|
...options
|
|
6492
6791
|
});
|
|
6493
6792
|
/**
|
|
@@ -6505,7 +6804,7 @@ export const automationActionsDependents = (options) => (options.client ?? clien
|
|
|
6505
6804
|
name: 'X-API-Key',
|
|
6506
6805
|
type: 'apiKey'
|
|
6507
6806
|
}],
|
|
6508
|
-
url: '/automation/v1/actions/{
|
|
6807
|
+
url: '/automation/v1/actions/{namespace}/{name}/dependents',
|
|
6509
6808
|
...options
|
|
6510
6809
|
});
|
|
6511
6810
|
/**
|
|
@@ -6523,7 +6822,7 @@ export const automationActionsArchive = (options) => (options.client ?? client).
|
|
|
6523
6822
|
name: 'X-API-Key',
|
|
6524
6823
|
type: 'apiKey'
|
|
6525
6824
|
}],
|
|
6526
|
-
url: '/automation/v1/actions/{
|
|
6825
|
+
url: '/automation/v1/actions/{namespace}/{name}/archive',
|
|
6527
6826
|
...options,
|
|
6528
6827
|
headers: {
|
|
6529
6828
|
'Content-Type': 'application/json',
|
|
@@ -6545,7 +6844,7 @@ export const automationActionsRestore = (options) => (options.client ?? client).
|
|
|
6545
6844
|
name: 'X-API-Key',
|
|
6546
6845
|
type: 'apiKey'
|
|
6547
6846
|
}],
|
|
6548
|
-
url: '/automation/v1/actions/{
|
|
6847
|
+
url: '/automation/v1/actions/{namespace}/{name}/restore',
|
|
6549
6848
|
...options,
|
|
6550
6849
|
headers: {
|
|
6551
6850
|
'Content-Type': 'application/json',
|
|
@@ -6574,7 +6873,7 @@ export const automationScriptsList = (options) => (options?.client ?? client).ge
|
|
|
6574
6873
|
/**
|
|
6575
6874
|
* Create a script
|
|
6576
6875
|
*
|
|
6577
|
-
* 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,
|
|
6876
|
+
* 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.
|
|
6578
6877
|
*/
|
|
6579
6878
|
export const automationScriptsCreate = (options) => (options.client ?? client).post({
|
|
6580
6879
|
security: [{
|
|
@@ -6596,7 +6895,7 @@ export const automationScriptsCreate = (options) => (options.client ?? client).p
|
|
|
6596
6895
|
/**
|
|
6597
6896
|
* Get a script
|
|
6598
6897
|
*
|
|
6599
|
-
* Read script details and draft source. The
|
|
6898
|
+
* Read script details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.
|
|
6600
6899
|
*/
|
|
6601
6900
|
export const automationScriptsGet = (options) => (options.client ?? client).get({
|
|
6602
6901
|
security: [{
|
|
@@ -6608,13 +6907,13 @@ export const automationScriptsGet = (options) => (options.client ?? client).get(
|
|
|
6608
6907
|
name: 'X-API-Key',
|
|
6609
6908
|
type: 'apiKey'
|
|
6610
6909
|
}],
|
|
6611
|
-
url: '/automation/v1/scripts/{
|
|
6910
|
+
url: '/automation/v1/scripts/{namespace}/{name}',
|
|
6612
6911
|
...options
|
|
6613
6912
|
});
|
|
6614
6913
|
/**
|
|
6615
6914
|
* Update a script draft
|
|
6616
6915
|
*
|
|
6617
|
-
* 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.
|
|
6916
|
+
* 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.
|
|
6618
6917
|
*/
|
|
6619
6918
|
export const automationScriptsPatch = (options) => (options.client ?? client).patch({
|
|
6620
6919
|
security: [{
|
|
@@ -6626,7 +6925,7 @@ export const automationScriptsPatch = (options) => (options.client ?? client).pa
|
|
|
6626
6925
|
name: 'X-API-Key',
|
|
6627
6926
|
type: 'apiKey'
|
|
6628
6927
|
}],
|
|
6629
|
-
url: '/automation/v1/scripts/{
|
|
6928
|
+
url: '/automation/v1/scripts/{namespace}/{name}',
|
|
6630
6929
|
...options,
|
|
6631
6930
|
headers: {
|
|
6632
6931
|
'Content-Type': 'application/json',
|
|
@@ -6648,7 +6947,7 @@ export const automationScriptsArchive = (options) => (options.client ?? client).
|
|
|
6648
6947
|
name: 'X-API-Key',
|
|
6649
6948
|
type: 'apiKey'
|
|
6650
6949
|
}],
|
|
6651
|
-
url: '/automation/v1/scripts/{
|
|
6950
|
+
url: '/automation/v1/scripts/{namespace}/{name}/archive',
|
|
6652
6951
|
...options,
|
|
6653
6952
|
headers: {
|
|
6654
6953
|
'Content-Type': 'application/json',
|
|
@@ -6670,7 +6969,7 @@ export const automationScriptsRestore = (options) => (options.client ?? client).
|
|
|
6670
6969
|
name: 'X-API-Key',
|
|
6671
6970
|
type: 'apiKey'
|
|
6672
6971
|
}],
|
|
6673
|
-
url: '/automation/v1/scripts/{
|
|
6972
|
+
url: '/automation/v1/scripts/{namespace}/{name}/restore',
|
|
6674
6973
|
...options,
|
|
6675
6974
|
headers: {
|
|
6676
6975
|
'Content-Type': 'application/json',
|
|
@@ -6692,13 +6991,13 @@ export const automationScriptsVersions = (options) => (options.client ?? client)
|
|
|
6692
6991
|
name: 'X-API-Key',
|
|
6693
6992
|
type: 'apiKey'
|
|
6694
6993
|
}],
|
|
6695
|
-
url: '/automation/v1/scripts/{
|
|
6994
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions',
|
|
6696
6995
|
...options
|
|
6697
6996
|
});
|
|
6698
6997
|
/**
|
|
6699
6998
|
* Publish a script version
|
|
6700
6999
|
*
|
|
6701
|
-
* 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.
|
|
7000
|
+
* 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.
|
|
6702
7001
|
*/
|
|
6703
7002
|
export const automationScriptsPublish = (options) => (options.client ?? client).post({
|
|
6704
7003
|
security: [{
|
|
@@ -6710,7 +7009,7 @@ export const automationScriptsPublish = (options) => (options.client ?? client).
|
|
|
6710
7009
|
name: 'X-API-Key',
|
|
6711
7010
|
type: 'apiKey'
|
|
6712
7011
|
}],
|
|
6713
|
-
url: '/automation/v1/scripts/{
|
|
7012
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions',
|
|
6714
7013
|
...options,
|
|
6715
7014
|
headers: {
|
|
6716
7015
|
'Content-Type': 'application/json',
|
|
@@ -6732,7 +7031,7 @@ export const automationScriptsVersion = (options) => (options.client ?? client).
|
|
|
6732
7031
|
name: 'X-API-Key',
|
|
6733
7032
|
type: 'apiKey'
|
|
6734
7033
|
}],
|
|
6735
|
-
url: '/automation/v1/scripts/{
|
|
7034
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}',
|
|
6736
7035
|
...options
|
|
6737
7036
|
});
|
|
6738
7037
|
/**
|
|
@@ -6750,7 +7049,7 @@ export const automationScriptsDeprecate = (options) => (options.client ?? client
|
|
|
6750
7049
|
name: 'X-API-Key',
|
|
6751
7050
|
type: 'apiKey'
|
|
6752
7051
|
}],
|
|
6753
|
-
url: '/automation/v1/scripts/{
|
|
7052
|
+
url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate',
|
|
6754
7053
|
...options,
|
|
6755
7054
|
headers: {
|
|
6756
7055
|
'Content-Type': 'application/json',
|
|
@@ -6772,7 +7071,7 @@ export const automationScriptsDistTags = (options) => (options.client ?? client)
|
|
|
6772
7071
|
name: 'X-API-Key',
|
|
6773
7072
|
type: 'apiKey'
|
|
6774
7073
|
}],
|
|
6775
|
-
url: '/automation/v1/scripts/{
|
|
7074
|
+
url: '/automation/v1/scripts/{namespace}/{name}/dist-tags',
|
|
6776
7075
|
...options
|
|
6777
7076
|
});
|
|
6778
7077
|
/**
|
|
@@ -6790,7 +7089,7 @@ export const automationScriptsDeleteDistTag = (options) => (options.client ?? cl
|
|
|
6790
7089
|
name: 'X-API-Key',
|
|
6791
7090
|
type: 'apiKey'
|
|
6792
7091
|
}],
|
|
6793
|
-
url: '/automation/v1/scripts/{
|
|
7092
|
+
url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}',
|
|
6794
7093
|
...options
|
|
6795
7094
|
});
|
|
6796
7095
|
/**
|
|
@@ -6808,7 +7107,7 @@ export const automationScriptsSetDistTag = (options) => (options.client ?? clien
|
|
|
6808
7107
|
name: 'X-API-Key',
|
|
6809
7108
|
type: 'apiKey'
|
|
6810
7109
|
}],
|
|
6811
|
-
url: '/automation/v1/scripts/{
|
|
7110
|
+
url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}',
|
|
6812
7111
|
...options,
|
|
6813
7112
|
headers: {
|
|
6814
7113
|
'Content-Type': 'application/json',
|
|
@@ -6859,7 +7158,7 @@ export const automationWorkflowsCreate = (options) => (options.client ?? client)
|
|
|
6859
7158
|
/**
|
|
6860
7159
|
* Get a workflow
|
|
6861
7160
|
*
|
|
6862
|
-
* Read workflow details and draft source. The
|
|
7161
|
+
* Read workflow details and draft source. The draft revision is draft.revision (also the ETag); send it back as draft.revision when updating.
|
|
6863
7162
|
*/
|
|
6864
7163
|
export const automationWorkflowsGet = (options) => (options.client ?? client).get({
|
|
6865
7164
|
security: [{
|
|
@@ -6871,13 +7170,13 @@ export const automationWorkflowsGet = (options) => (options.client ?? client).ge
|
|
|
6871
7170
|
name: 'X-API-Key',
|
|
6872
7171
|
type: 'apiKey'
|
|
6873
7172
|
}],
|
|
6874
|
-
url: '/automation/v1/workflows/{
|
|
7173
|
+
url: '/automation/v1/workflows/{namespace}/{name}',
|
|
6875
7174
|
...options
|
|
6876
7175
|
});
|
|
6877
7176
|
/**
|
|
6878
7177
|
* Update a workflow draft
|
|
6879
7178
|
*
|
|
6880
|
-
* Update description, labels or draft with the current draft revision in
|
|
7179
|
+
* 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.
|
|
6881
7180
|
*/
|
|
6882
7181
|
export const automationWorkflowsPatch = (options) => (options.client ?? client).patch({
|
|
6883
7182
|
security: [{
|
|
@@ -6889,7 +7188,7 @@ export const automationWorkflowsPatch = (options) => (options.client ?? client).
|
|
|
6889
7188
|
name: 'X-API-Key',
|
|
6890
7189
|
type: 'apiKey'
|
|
6891
7190
|
}],
|
|
6892
|
-
url: '/automation/v1/workflows/{
|
|
7191
|
+
url: '/automation/v1/workflows/{namespace}/{name}',
|
|
6893
7192
|
...options,
|
|
6894
7193
|
headers: {
|
|
6895
7194
|
'Content-Type': 'application/json',
|
|
@@ -6911,7 +7210,7 @@ export const automationWorkflowsArchive = (options) => (options.client ?? client
|
|
|
6911
7210
|
name: 'X-API-Key',
|
|
6912
7211
|
type: 'apiKey'
|
|
6913
7212
|
}],
|
|
6914
|
-
url: '/automation/v1/workflows/{
|
|
7213
|
+
url: '/automation/v1/workflows/{namespace}/{name}/archive',
|
|
6915
7214
|
...options,
|
|
6916
7215
|
headers: {
|
|
6917
7216
|
'Content-Type': 'application/json',
|
|
@@ -6933,7 +7232,7 @@ export const automationWorkflowsRestore = (options) => (options.client ?? client
|
|
|
6933
7232
|
name: 'X-API-Key',
|
|
6934
7233
|
type: 'apiKey'
|
|
6935
7234
|
}],
|
|
6936
|
-
url: '/automation/v1/workflows/{
|
|
7235
|
+
url: '/automation/v1/workflows/{namespace}/{name}/restore',
|
|
6937
7236
|
...options,
|
|
6938
7237
|
headers: {
|
|
6939
7238
|
'Content-Type': 'application/json',
|
|
@@ -6955,13 +7254,13 @@ export const automationWorkflowsVersions = (options) => (options.client ?? clien
|
|
|
6955
7254
|
name: 'X-API-Key',
|
|
6956
7255
|
type: 'apiKey'
|
|
6957
7256
|
}],
|
|
6958
|
-
url: '/automation/v1/workflows/{
|
|
7257
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions',
|
|
6959
7258
|
...options
|
|
6960
7259
|
});
|
|
6961
7260
|
/**
|
|
6962
7261
|
* Publish a workflow version
|
|
6963
7262
|
*
|
|
6964
|
-
* 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.
|
|
7263
|
+
* 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).
|
|
6965
7264
|
*/
|
|
6966
7265
|
export const automationWorkflowsPublish = (options) => (options.client ?? client).post({
|
|
6967
7266
|
security: [{
|
|
@@ -6973,7 +7272,7 @@ export const automationWorkflowsPublish = (options) => (options.client ?? client
|
|
|
6973
7272
|
name: 'X-API-Key',
|
|
6974
7273
|
type: 'apiKey'
|
|
6975
7274
|
}],
|
|
6976
|
-
url: '/automation/v1/workflows/{
|
|
7275
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions',
|
|
6977
7276
|
...options,
|
|
6978
7277
|
headers: {
|
|
6979
7278
|
'Content-Type': 'application/json',
|
|
@@ -6995,7 +7294,7 @@ export const automationWorkflowsVersion = (options) => (options.client ?? client
|
|
|
6995
7294
|
name: 'X-API-Key',
|
|
6996
7295
|
type: 'apiKey'
|
|
6997
7296
|
}],
|
|
6998
|
-
url: '/automation/v1/workflows/{
|
|
7297
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}',
|
|
6999
7298
|
...options
|
|
7000
7299
|
});
|
|
7001
7300
|
/**
|
|
@@ -7013,7 +7312,7 @@ export const automationWorkflowsDeprecate = (options) => (options.client ?? clie
|
|
|
7013
7312
|
name: 'X-API-Key',
|
|
7014
7313
|
type: 'apiKey'
|
|
7015
7314
|
}],
|
|
7016
|
-
url: '/automation/v1/workflows/{
|
|
7315
|
+
url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate',
|
|
7017
7316
|
...options,
|
|
7018
7317
|
headers: {
|
|
7019
7318
|
'Content-Type': 'application/json',
|
|
@@ -7035,7 +7334,7 @@ export const automationWorkflowsDistTags = (options) => (options.client ?? clien
|
|
|
7035
7334
|
name: 'X-API-Key',
|
|
7036
7335
|
type: 'apiKey'
|
|
7037
7336
|
}],
|
|
7038
|
-
url: '/automation/v1/workflows/{
|
|
7337
|
+
url: '/automation/v1/workflows/{namespace}/{name}/dist-tags',
|
|
7039
7338
|
...options
|
|
7040
7339
|
});
|
|
7041
7340
|
/**
|
|
@@ -7053,7 +7352,7 @@ export const automationWorkflowsDeleteDistTag = (options) => (options.client ??
|
|
|
7053
7352
|
name: 'X-API-Key',
|
|
7054
7353
|
type: 'apiKey'
|
|
7055
7354
|
}],
|
|
7056
|
-
url: '/automation/v1/workflows/{
|
|
7355
|
+
url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}',
|
|
7057
7356
|
...options
|
|
7058
7357
|
});
|
|
7059
7358
|
/**
|
|
@@ -7071,7 +7370,7 @@ export const automationWorkflowsSetDistTag = (options) => (options.client ?? cli
|
|
|
7071
7370
|
name: 'X-API-Key',
|
|
7072
7371
|
type: 'apiKey'
|
|
7073
7372
|
}],
|
|
7074
|
-
url: '/automation/v1/workflows/{
|
|
7373
|
+
url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}',
|
|
7075
7374
|
...options,
|
|
7076
7375
|
headers: {
|
|
7077
7376
|
'Content-Type': 'application/json',
|
|
@@ -7204,7 +7503,7 @@ export const automationRunsGet = (options) => (options.client ?? client).get({
|
|
|
7204
7503
|
name: 'X-API-Key',
|
|
7205
7504
|
type: 'apiKey'
|
|
7206
7505
|
}],
|
|
7207
|
-
url: '/automation/v1/runs/{
|
|
7506
|
+
url: '/automation/v1/runs/{run_id}',
|
|
7208
7507
|
...options
|
|
7209
7508
|
});
|
|
7210
7509
|
/**
|
|
@@ -7222,7 +7521,7 @@ export const automationRunsCancel = (options) => (options.client ?? client).post
|
|
|
7222
7521
|
name: 'X-API-Key',
|
|
7223
7522
|
type: 'apiKey'
|
|
7224
7523
|
}],
|
|
7225
|
-
url: '/automation/v1/runs/{
|
|
7524
|
+
url: '/automation/v1/runs/{run_id}/cancel',
|
|
7226
7525
|
...options,
|
|
7227
7526
|
headers: {
|
|
7228
7527
|
'Content-Type': 'application/json',
|
|
@@ -7244,7 +7543,7 @@ export const automationRunsRerun = (options) => (options.client ?? client).post(
|
|
|
7244
7543
|
name: 'X-API-Key',
|
|
7245
7544
|
type: 'apiKey'
|
|
7246
7545
|
}],
|
|
7247
|
-
url: '/automation/v1/runs/{
|
|
7546
|
+
url: '/automation/v1/runs/{run_id}/rerun',
|
|
7248
7547
|
...options,
|
|
7249
7548
|
headers: {
|
|
7250
7549
|
'Content-Type': 'application/json',
|
|
@@ -7266,7 +7565,7 @@ export const automationRunsSuspend = (options) => (options.client ?? client).pos
|
|
|
7266
7565
|
name: 'X-API-Key',
|
|
7267
7566
|
type: 'apiKey'
|
|
7268
7567
|
}],
|
|
7269
|
-
url: '/automation/v1/runs/{
|
|
7568
|
+
url: '/automation/v1/runs/{run_id}/suspend',
|
|
7270
7569
|
...options,
|
|
7271
7570
|
headers: {
|
|
7272
7571
|
'Content-Type': 'application/json',
|
|
@@ -7288,7 +7587,7 @@ export const automationRunsResume = (options) => (options.client ?? client).post
|
|
|
7288
7587
|
name: 'X-API-Key',
|
|
7289
7588
|
type: 'apiKey'
|
|
7290
7589
|
}],
|
|
7291
|
-
url: '/automation/v1/runs/{
|
|
7590
|
+
url: '/automation/v1/runs/{run_id}/resume',
|
|
7292
7591
|
...options,
|
|
7293
7592
|
headers: {
|
|
7294
7593
|
'Content-Type': 'application/json',
|
|
@@ -7310,7 +7609,7 @@ export const automationRunsWaits = (options) => (options.client ?? client).get({
|
|
|
7310
7609
|
name: 'X-API-Key',
|
|
7311
7610
|
type: 'apiKey'
|
|
7312
7611
|
}],
|
|
7313
|
-
url: '/automation/v1/runs/{
|
|
7612
|
+
url: '/automation/v1/runs/{run_id}/waits',
|
|
7314
7613
|
...options
|
|
7315
7614
|
});
|
|
7316
7615
|
/**
|
|
@@ -7328,7 +7627,7 @@ export const automationRunsCalls = (options) => (options.client ?? client).get({
|
|
|
7328
7627
|
name: 'X-API-Key',
|
|
7329
7628
|
type: 'apiKey'
|
|
7330
7629
|
}],
|
|
7331
|
-
url: '/automation/v1/runs/{
|
|
7630
|
+
url: '/automation/v1/runs/{run_id}/calls',
|
|
7332
7631
|
...options
|
|
7333
7632
|
});
|
|
7334
7633
|
/**
|
|
@@ -7346,7 +7645,7 @@ export const automationRunsArtifacts = (options) => (options.client ?? client).g
|
|
|
7346
7645
|
name: 'X-API-Key',
|
|
7347
7646
|
type: 'apiKey'
|
|
7348
7647
|
}],
|
|
7349
|
-
url: '/automation/v1/runs/{
|
|
7648
|
+
url: '/automation/v1/runs/{run_id}/artifacts',
|
|
7350
7649
|
...options
|
|
7351
7650
|
});
|
|
7352
7651
|
/**
|
|
@@ -7364,7 +7663,7 @@ export const automationRunsCompleteWait = (options) => (options.client ?? client
|
|
|
7364
7663
|
name: 'X-API-Key',
|
|
7365
7664
|
type: 'apiKey'
|
|
7366
7665
|
}],
|
|
7367
|
-
url: '/automation/v1/runs/{
|
|
7666
|
+
url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete',
|
|
7368
7667
|
...options,
|
|
7369
7668
|
headers: {
|
|
7370
7669
|
'Content-Type': 'application/json',
|
|
@@ -7386,7 +7685,7 @@ export const automationRunsTasks = (options) => (options.client ?? client).get({
|
|
|
7386
7685
|
name: 'X-API-Key',
|
|
7387
7686
|
type: 'apiKey'
|
|
7388
7687
|
}],
|
|
7389
|
-
url: '/automation/v1/runs/{
|
|
7688
|
+
url: '/automation/v1/runs/{run_id}/tasks',
|
|
7390
7689
|
...options
|
|
7391
7690
|
});
|
|
7392
7691
|
/**
|
|
@@ -7404,7 +7703,7 @@ export const automationRunsEvents = (options) => (options.client ?? client).get(
|
|
|
7404
7703
|
name: 'X-API-Key',
|
|
7405
7704
|
type: 'apiKey'
|
|
7406
7705
|
}],
|
|
7407
|
-
url: '/automation/v1/runs/{
|
|
7706
|
+
url: '/automation/v1/runs/{run_id}/events',
|
|
7408
7707
|
...options
|
|
7409
7708
|
});
|
|
7410
7709
|
/**
|
|
@@ -7422,7 +7721,7 @@ export const automationRunsLogs = (options) => (options.client ?? client).get({
|
|
|
7422
7721
|
name: 'X-API-Key',
|
|
7423
7722
|
type: 'apiKey'
|
|
7424
7723
|
}],
|
|
7425
|
-
url: '/automation/v1/runs/{
|
|
7724
|
+
url: '/automation/v1/runs/{run_id}/logs',
|
|
7426
7725
|
...options
|
|
7427
7726
|
});
|
|
7428
7727
|
/**
|
|
@@ -7440,7 +7739,7 @@ export const automationRunsSource = (options) => (options.client ?? client).get(
|
|
|
7440
7739
|
name: 'X-API-Key',
|
|
7441
7740
|
type: 'apiKey'
|
|
7442
7741
|
}],
|
|
7443
|
-
url: '/automation/v1/runs/{
|
|
7742
|
+
url: '/automation/v1/runs/{run_id}/source',
|
|
7444
7743
|
...options
|
|
7445
7744
|
});
|
|
7446
7745
|
/**
|
|
@@ -7452,7 +7751,8 @@ export const automationTriggersList = (options) => (options?.client ?? client).g
|
|
|
7452
7751
|
querySerializer: { parameters: {
|
|
7453
7752
|
target: { array: { explode: false } },
|
|
7454
7753
|
kind: { array: { explode: false } },
|
|
7455
|
-
state: { array: { explode: false } }
|
|
7754
|
+
state: { array: { explode: false } },
|
|
7755
|
+
status: { array: { explode: false } }
|
|
7456
7756
|
} },
|
|
7457
7757
|
security: [{
|
|
7458
7758
|
key: 'BearerAuth',
|
|
@@ -7503,7 +7803,7 @@ export const automationTriggersDelete = (options) => (options.client ?? client).
|
|
|
7503
7803
|
name: 'X-API-Key',
|
|
7504
7804
|
type: 'apiKey'
|
|
7505
7805
|
}],
|
|
7506
|
-
url: '/automation/v1/triggers/{
|
|
7806
|
+
url: '/automation/v1/triggers/{trigger_id}',
|
|
7507
7807
|
...options
|
|
7508
7808
|
});
|
|
7509
7809
|
/**
|
|
@@ -7521,7 +7821,7 @@ export const automationTriggersGet = (options) => (options.client ?? client).get
|
|
|
7521
7821
|
name: 'X-API-Key',
|
|
7522
7822
|
type: 'apiKey'
|
|
7523
7823
|
}],
|
|
7524
|
-
url: '/automation/v1/triggers/{
|
|
7824
|
+
url: '/automation/v1/triggers/{trigger_id}',
|
|
7525
7825
|
...options
|
|
7526
7826
|
});
|
|
7527
7827
|
/**
|
|
@@ -7539,7 +7839,7 @@ export const automationTriggersPatch = (options) => (options.client ?? client).p
|
|
|
7539
7839
|
name: 'X-API-Key',
|
|
7540
7840
|
type: 'apiKey'
|
|
7541
7841
|
}],
|
|
7542
|
-
url: '/automation/v1/triggers/{
|
|
7842
|
+
url: '/automation/v1/triggers/{trigger_id}',
|
|
7543
7843
|
...options,
|
|
7544
7844
|
headers: {
|
|
7545
7845
|
'Content-Type': 'application/json',
|
|
@@ -7561,7 +7861,7 @@ export const automationTriggersPause = (options) => (options.client ?? client).p
|
|
|
7561
7861
|
name: 'X-API-Key',
|
|
7562
7862
|
type: 'apiKey'
|
|
7563
7863
|
}],
|
|
7564
|
-
url: '/automation/v1/triggers/{
|
|
7864
|
+
url: '/automation/v1/triggers/{trigger_id}/pause',
|
|
7565
7865
|
...options
|
|
7566
7866
|
});
|
|
7567
7867
|
/**
|
|
@@ -7579,7 +7879,7 @@ export const automationTriggersResume = (options) => (options.client ?? client).
|
|
|
7579
7879
|
name: 'X-API-Key',
|
|
7580
7880
|
type: 'apiKey'
|
|
7581
7881
|
}],
|
|
7582
|
-
url: '/automation/v1/triggers/{
|
|
7882
|
+
url: '/automation/v1/triggers/{trigger_id}/resume',
|
|
7583
7883
|
...options
|
|
7584
7884
|
});
|
|
7585
7885
|
/**
|
|
@@ -7597,7 +7897,7 @@ export const automationTriggersFire = (options) => (options.client ?? client).po
|
|
|
7597
7897
|
name: 'X-API-Key',
|
|
7598
7898
|
type: 'apiKey'
|
|
7599
7899
|
}],
|
|
7600
|
-
url: '/automation/v1/triggers/{
|
|
7900
|
+
url: '/automation/v1/triggers/{trigger_id}/fire',
|
|
7601
7901
|
...options
|
|
7602
7902
|
});
|
|
7603
7903
|
/**
|
|
@@ -7615,7 +7915,7 @@ export const automationTriggersRotateWebhook = (options) => (options.client ?? c
|
|
|
7615
7915
|
name: 'X-API-Key',
|
|
7616
7916
|
type: 'apiKey'
|
|
7617
7917
|
}],
|
|
7618
|
-
url: '/automation/v1/triggers/{
|
|
7918
|
+
url: '/automation/v1/triggers/{trigger_id}/rotate-webhook',
|
|
7619
7919
|
...options
|
|
7620
7920
|
});
|
|
7621
7921
|
/**
|
|
@@ -7634,7 +7934,7 @@ export const automationTriggersFirings = (options) => (options.client ?? client)
|
|
|
7634
7934
|
name: 'X-API-Key',
|
|
7635
7935
|
type: 'apiKey'
|
|
7636
7936
|
}],
|
|
7637
|
-
url: '/automation/v1/triggers/{
|
|
7937
|
+
url: '/automation/v1/triggers/{trigger_id}/firings',
|
|
7638
7938
|
...options
|
|
7639
7939
|
});
|
|
7640
7940
|
/**
|
|
@@ -7662,7 +7962,7 @@ export const automationTriggersPreview = (options) => (options.client ?? client)
|
|
|
7662
7962
|
/**
|
|
7663
7963
|
* Receive a webhook
|
|
7664
7964
|
*
|
|
7665
|
-
* 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/{
|
|
7965
|
+
* 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.
|
|
7666
7966
|
*/
|
|
7667
7967
|
export const automationHooksReceive = (options) => (options.client ?? client).post({
|
|
7668
7968
|
url: '/automation/v1/hooks/{trigger_id}/{token}',
|
|
@@ -7706,7 +8006,7 @@ export const automationHumanTasksGet = (options) => (options.client ?? client).g
|
|
|
7706
8006
|
name: 'X-API-Key',
|
|
7707
8007
|
type: 'apiKey'
|
|
7708
8008
|
}],
|
|
7709
|
-
url: '/automation/v1/human-tasks/{
|
|
8009
|
+
url: '/automation/v1/human-tasks/{task_id}',
|
|
7710
8010
|
...options
|
|
7711
8011
|
});
|
|
7712
8012
|
/**
|
|
@@ -7724,7 +8024,7 @@ export const automationHumanTasksRespond = (options) => (options.client ?? clien
|
|
|
7724
8024
|
name: 'X-API-Key',
|
|
7725
8025
|
type: 'apiKey'
|
|
7726
8026
|
}],
|
|
7727
|
-
url: '/automation/v1/human-tasks/{
|
|
8027
|
+
url: '/automation/v1/human-tasks/{task_id}/respond',
|
|
7728
8028
|
...options,
|
|
7729
8029
|
headers: {
|
|
7730
8030
|
'Content-Type': 'application/json',
|
|
@@ -7746,7 +8046,7 @@ export const automationHumanTasksCancel = (options) => (options.client ?? client
|
|
|
7746
8046
|
name: 'X-API-Key',
|
|
7747
8047
|
type: 'apiKey'
|
|
7748
8048
|
}],
|
|
7749
|
-
url: '/automation/v1/human-tasks/{
|
|
8049
|
+
url: '/automation/v1/human-tasks/{task_id}/cancel',
|
|
7750
8050
|
...options,
|
|
7751
8051
|
headers: {
|
|
7752
8052
|
'Content-Type': 'application/json',
|
|
@@ -7768,7 +8068,7 @@ export const automationHumanTasksDelegate = (options) => (options.client ?? clie
|
|
|
7768
8068
|
name: 'X-API-Key',
|
|
7769
8069
|
type: 'apiKey'
|
|
7770
8070
|
}],
|
|
7771
|
-
url: '/automation/v1/human-tasks/{
|
|
8071
|
+
url: '/automation/v1/human-tasks/{task_id}/delegate',
|
|
7772
8072
|
...options,
|
|
7773
8073
|
headers: {
|
|
7774
8074
|
'Content-Type': 'application/json',
|
|
@@ -7790,7 +8090,7 @@ export const automationScriptsVaultsList = (options) => (options.client ?? clien
|
|
|
7790
8090
|
name: 'X-API-Key',
|
|
7791
8091
|
type: 'apiKey'
|
|
7792
8092
|
}],
|
|
7793
|
-
url: '/automation/v1/scripts/{
|
|
8093
|
+
url: '/automation/v1/scripts/{namespace}/{name}/vaults',
|
|
7794
8094
|
...options
|
|
7795
8095
|
});
|
|
7796
8096
|
/**
|
|
@@ -7808,7 +8108,7 @@ export const automationScriptsVaultsDelete = (options) => (options.client ?? cli
|
|
|
7808
8108
|
name: 'X-API-Key',
|
|
7809
8109
|
type: 'apiKey'
|
|
7810
8110
|
}],
|
|
7811
|
-
url: '/automation/v1/scripts/{
|
|
8111
|
+
url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}',
|
|
7812
8112
|
...options
|
|
7813
8113
|
});
|
|
7814
8114
|
/**
|
|
@@ -7826,7 +8126,7 @@ export const automationScriptsVaultsSet = (options) => (options.client ?? client
|
|
|
7826
8126
|
name: 'X-API-Key',
|
|
7827
8127
|
type: 'apiKey'
|
|
7828
8128
|
}],
|
|
7829
|
-
url: '/automation/v1/scripts/{
|
|
8129
|
+
url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}',
|
|
7830
8130
|
...options,
|
|
7831
8131
|
headers: {
|
|
7832
8132
|
'Content-Type': 'application/json',
|
|
@@ -7848,7 +8148,7 @@ export const automationWorkflowsVaultsList = (options) => (options.client ?? cli
|
|
|
7848
8148
|
name: 'X-API-Key',
|
|
7849
8149
|
type: 'apiKey'
|
|
7850
8150
|
}],
|
|
7851
|
-
url: '/automation/v1/workflows/{
|
|
8151
|
+
url: '/automation/v1/workflows/{namespace}/{name}/vaults',
|
|
7852
8152
|
...options
|
|
7853
8153
|
});
|
|
7854
8154
|
/**
|
|
@@ -7866,7 +8166,7 @@ export const automationWorkflowsVaultsDelete = (options) => (options.client ?? c
|
|
|
7866
8166
|
name: 'X-API-Key',
|
|
7867
8167
|
type: 'apiKey'
|
|
7868
8168
|
}],
|
|
7869
|
-
url: '/automation/v1/workflows/{
|
|
8169
|
+
url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}',
|
|
7870
8170
|
...options
|
|
7871
8171
|
});
|
|
7872
8172
|
/**
|
|
@@ -7884,7 +8184,7 @@ export const automationWorkflowsVaultsSet = (options) => (options.client ?? clie
|
|
|
7884
8184
|
name: 'X-API-Key',
|
|
7885
8185
|
type: 'apiKey'
|
|
7886
8186
|
}],
|
|
7887
|
-
url: '/automation/v1/workflows/{
|
|
8187
|
+
url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}',
|
|
7888
8188
|
...options,
|
|
7889
8189
|
headers: {
|
|
7890
8190
|
'Content-Type': 'application/json',
|
|
@@ -8211,6 +8511,20 @@ export const canvasListLibraryVersions = (options) => (options.client ?? client)
|
|
|
8211
8511
|
url: '/canvas/v1/canvases/{canvas_id}/library_versions',
|
|
8212
8512
|
...options
|
|
8213
8513
|
});
|
|
8514
|
+
/**
|
|
8515
|
+
* Read a process step brief
|
|
8516
|
+
*
|
|
8517
|
+
* 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.
|
|
8518
|
+
*/
|
|
8519
|
+
export const canvasRetrieveProcessStepBrief = (options) => (options.client ?? client).get({
|
|
8520
|
+
security: [{
|
|
8521
|
+
key: 'canvas-bearerAuth',
|
|
8522
|
+
scheme: 'bearer',
|
|
8523
|
+
type: 'http'
|
|
8524
|
+
}],
|
|
8525
|
+
url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief',
|
|
8526
|
+
...options
|
|
8527
|
+
});
|
|
8214
8528
|
/**
|
|
8215
8529
|
* List libraries
|
|
8216
8530
|
*
|
|
@@ -8434,7 +8748,7 @@ export const contentGetVersion = (options) => (options.client ?? client).get({
|
|
|
8434
8748
|
/**
|
|
8435
8749
|
* Open a playback session
|
|
8436
8750
|
*
|
|
8437
|
-
* 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.
|
|
8751
|
+
* 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.
|
|
8438
8752
|
*/
|
|
8439
8753
|
export const contentCreatePlaybackSession = (options) => (options.client ?? client).post({
|
|
8440
8754
|
url: '/content/v1/playback/sessions',
|
|
@@ -8643,7 +8957,7 @@ export const crmObjectsBatchArchive = (options) => (options.client ?? client).po
|
|
|
8643
8957
|
/**
|
|
8644
8958
|
* List properties
|
|
8645
8959
|
*
|
|
8646
|
-
* 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.
|
|
8960
|
+
* 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.
|
|
8647
8961
|
*/
|
|
8648
8962
|
export const crmPropertiesList = (options) => (options.client ?? client).get({
|
|
8649
8963
|
security: [{
|
|
@@ -9037,7 +9351,10 @@ export const crmLayoutsUpdate = (options) => (options.client ?? client).put({
|
|
|
9037
9351
|
/**
|
|
9038
9352
|
* Create a grant code
|
|
9039
9353
|
*
|
|
9354
|
+
* 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).
|
|
9040
9355
|
* 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.
|
|
9356
|
+
*
|
|
9357
|
+
* @deprecated
|
|
9041
9358
|
*/
|
|
9042
9359
|
export const customerCreateGrantCode = (options) => (options.client ?? client).post({
|
|
9043
9360
|
security: [{
|
|
@@ -9059,7 +9376,10 @@ export const customerCreateGrantCode = (options) => (options.client ?? client).p
|
|
|
9059
9376
|
/**
|
|
9060
9377
|
* Exchange a grant code or publishable key
|
|
9061
9378
|
*
|
|
9379
|
+
* 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).
|
|
9062
9380
|
* 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.
|
|
9381
|
+
*
|
|
9382
|
+
* @deprecated
|
|
9063
9383
|
*/
|
|
9064
9384
|
export const customerCreateAccessToken = (options) => (options.client ?? client).post({
|
|
9065
9385
|
url: '/customer/v1/access_tokens',
|
|
@@ -9072,19 +9392,28 @@ export const customerCreateAccessToken = (options) => (options.client ?? client)
|
|
|
9072
9392
|
/**
|
|
9073
9393
|
* Renew an access token
|
|
9074
9394
|
*
|
|
9395
|
+
* 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).
|
|
9075
9396
|
* 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.
|
|
9397
|
+
*
|
|
9398
|
+
* @deprecated
|
|
9076
9399
|
*/
|
|
9077
9400
|
export const customerRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/customer/v1/access_tokens/renew', ...options });
|
|
9078
9401
|
/**
|
|
9079
9402
|
* Sign out the current token
|
|
9080
9403
|
*
|
|
9404
|
+
* 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).
|
|
9081
9405
|
* 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.
|
|
9406
|
+
*
|
|
9407
|
+
* @deprecated
|
|
9082
9408
|
*/
|
|
9083
9409
|
export const customerRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/customer/v1/access_tokens/current', ...options });
|
|
9084
9410
|
/**
|
|
9085
9411
|
* List end users
|
|
9086
9412
|
*
|
|
9413
|
+
* 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).
|
|
9087
9414
|
* 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.
|
|
9415
|
+
*
|
|
9416
|
+
* @deprecated
|
|
9088
9417
|
*/
|
|
9089
9418
|
export const customerListCustomers = (options) => (options?.client ?? client).get({
|
|
9090
9419
|
security: [{
|
|
@@ -9102,7 +9431,10 @@ export const customerListCustomers = (options) => (options?.client ?? client).ge
|
|
|
9102
9431
|
/**
|
|
9103
9432
|
* Delete an end user
|
|
9104
9433
|
*
|
|
9434
|
+
* 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).
|
|
9105
9435
|
* 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.
|
|
9436
|
+
*
|
|
9437
|
+
* @deprecated
|
|
9106
9438
|
*/
|
|
9107
9439
|
export const customerDeleteCustomer = (options) => (options.client ?? client).delete({
|
|
9108
9440
|
security: [{
|
|
@@ -9120,7 +9452,10 @@ export const customerDeleteCustomer = (options) => (options.client ?? client).de
|
|
|
9120
9452
|
/**
|
|
9121
9453
|
* Get an end user
|
|
9122
9454
|
*
|
|
9455
|
+
* 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).
|
|
9123
9456
|
* 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.
|
|
9457
|
+
*
|
|
9458
|
+
* @deprecated
|
|
9124
9459
|
*/
|
|
9125
9460
|
export const customerGetCustomer = (options) => (options.client ?? client).get({
|
|
9126
9461
|
security: [{
|
|
@@ -9138,7 +9473,10 @@ export const customerGetCustomer = (options) => (options.client ?? client).get({
|
|
|
9138
9473
|
/**
|
|
9139
9474
|
* Read end-user usage
|
|
9140
9475
|
*
|
|
9476
|
+
* 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).
|
|
9141
9477
|
* 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.
|
|
9478
|
+
*
|
|
9479
|
+
* @deprecated
|
|
9142
9480
|
*/
|
|
9143
9481
|
export const customerGetUsage = (options) => (options.client ?? client).get({
|
|
9144
9482
|
security: [{
|
|
@@ -9156,8 +9494,11 @@ export const customerGetUsage = (options) => (options.client ?? client).get({
|
|
|
9156
9494
|
/**
|
|
9157
9495
|
* Block an end user
|
|
9158
9496
|
*
|
|
9497
|
+
* 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).
|
|
9159
9498
|
* 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.
|
|
9160
|
-
|
|
9499
|
+
*
|
|
9500
|
+
* @deprecated
|
|
9501
|
+
*/
|
|
9161
9502
|
export const customerBlockCustomer = (options) => (options.client ?? client).post({
|
|
9162
9503
|
security: [{
|
|
9163
9504
|
key: 'BearerAuth',
|
|
@@ -9178,7 +9519,10 @@ export const customerBlockCustomer = (options) => (options.client ?? client).pos
|
|
|
9178
9519
|
/**
|
|
9179
9520
|
* Unblock an end user
|
|
9180
9521
|
*
|
|
9522
|
+
* 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).
|
|
9181
9523
|
* 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.
|
|
9524
|
+
*
|
|
9525
|
+
* @deprecated
|
|
9182
9526
|
*/
|
|
9183
9527
|
export const customerUnblockCustomer = (options) => (options.client ?? client).post({
|
|
9184
9528
|
security: [{
|
|
@@ -9196,7 +9540,10 @@ export const customerUnblockCustomer = (options) => (options.client ?? client).p
|
|
|
9196
9540
|
/**
|
|
9197
9541
|
* Revoke every token of an end user
|
|
9198
9542
|
*
|
|
9543
|
+
* 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).
|
|
9199
9544
|
* 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.
|
|
9545
|
+
*
|
|
9546
|
+
* @deprecated
|
|
9200
9547
|
*/
|
|
9201
9548
|
export const customerRevokeTokens = (options) => (options.client ?? client).post({
|
|
9202
9549
|
security: [{
|
|
@@ -9214,7 +9561,10 @@ export const customerRevokeTokens = (options) => (options.client ?? client).post
|
|
|
9214
9561
|
/**
|
|
9215
9562
|
* List publishable keys
|
|
9216
9563
|
*
|
|
9564
|
+
* 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).
|
|
9217
9565
|
* 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.
|
|
9566
|
+
*
|
|
9567
|
+
* @deprecated
|
|
9218
9568
|
*/
|
|
9219
9569
|
export const customerListPublishableKeys = (options) => (options?.client ?? client).get({
|
|
9220
9570
|
security: [{
|
|
@@ -9232,7 +9582,10 @@ export const customerListPublishableKeys = (options) => (options?.client ?? clie
|
|
|
9232
9582
|
/**
|
|
9233
9583
|
* Create a publishable key
|
|
9234
9584
|
*
|
|
9585
|
+
* 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).
|
|
9235
9586
|
* 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.
|
|
9587
|
+
*
|
|
9588
|
+
* @deprecated
|
|
9236
9589
|
*/
|
|
9237
9590
|
export const customerCreatePublishableKey = (options) => (options.client ?? client).post({
|
|
9238
9591
|
security: [{
|
|
@@ -9254,7 +9607,10 @@ export const customerCreatePublishableKey = (options) => (options.client ?? clie
|
|
|
9254
9607
|
/**
|
|
9255
9608
|
* Delete a publishable key
|
|
9256
9609
|
*
|
|
9610
|
+
* 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).
|
|
9257
9611
|
* 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.
|
|
9612
|
+
*
|
|
9613
|
+
* @deprecated
|
|
9258
9614
|
*/
|
|
9259
9615
|
export const customerDeletePublishableKey = (options) => (options.client ?? client).delete({
|
|
9260
9616
|
security: [{
|
|
@@ -9272,7 +9628,10 @@ export const customerDeletePublishableKey = (options) => (options.client ?? clie
|
|
|
9272
9628
|
/**
|
|
9273
9629
|
* Update a publishable key
|
|
9274
9630
|
*
|
|
9631
|
+
* 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).
|
|
9275
9632
|
* 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.
|
|
9633
|
+
*
|
|
9634
|
+
* @deprecated
|
|
9276
9635
|
*/
|
|
9277
9636
|
export const customerUpdatePublishableKey = (options) => (options.client ?? client).patch({
|
|
9278
9637
|
security: [{
|
|
@@ -9773,7 +10132,7 @@ export const cutListExports = (options) => (options.client ?? client).get({
|
|
|
9773
10132
|
/**
|
|
9774
10133
|
* Create video export
|
|
9775
10134
|
*
|
|
9776
|
-
* Start an asynchronous video export from the project
|
|
10135
|
+
* 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.
|
|
9777
10136
|
*/
|
|
9778
10137
|
export const cutCreateExport = (options) => (options.client ?? client).post({
|
|
9779
10138
|
security: [{
|
|
@@ -12028,10 +12387,28 @@ export const devopsChangesMarkLastSlice = (options) => (options.client ?? client
|
|
|
12028
12387
|
...options.headers
|
|
12029
12388
|
}
|
|
12030
12389
|
});
|
|
12390
|
+
/**
|
|
12391
|
+
* Open a new slice
|
|
12392
|
+
*
|
|
12393
|
+
* Open one more slice of a change: another pull request on the same change, developed beside the ones already open. Use it when a second piece of the change can be built in parallel; for the change's first pull request there is nothing to open — work on the branch `praxis devops change checkout` gave you. The call cuts the next slice branch, named <id>--<n> where n is one more than the highest slice number the change's pull requests and its workspace already hold (so two calls give two different slices), and gives it its own git worktree in the change's workspace. If the change has no live workspace one is opened. Everything after that is automatic: the branch name, the worktree, removing the worktree once its pull request merges, and restacking a slice cut from another onto the default branch when that slice merges. A restack that conflicts is aborted and reported with the conflicting files; resolve those by hand on the slice branch, nothing is resolved for you. Without from the slice is cut from the default branch; with from set to another branch of the same change it is cut from that slice (the right choice when it builds on it). An abandoned change is refused with INVALID_ARGUMENT. The change id is the branch name <type>/<slug>; give it as it comes back — the SDK and the CLI encode the slash themselves. The workspace may still be starting when the call returns: directory is the path the worktree will have once it is available, and exists at once when the workspace is already running. From a terminal: `praxis devops changes slice <change>`.
|
|
12394
|
+
*/
|
|
12395
|
+
export const devopsChangesSlicesCreate = (options) => (options.client ?? client).post({
|
|
12396
|
+
security: [{
|
|
12397
|
+
key: 'devops-bearerAuth',
|
|
12398
|
+
scheme: 'bearer',
|
|
12399
|
+
type: 'http'
|
|
12400
|
+
}],
|
|
12401
|
+
url: '/devops/v1/projects/{project}/changes/{change}/slices',
|
|
12402
|
+
...options,
|
|
12403
|
+
headers: {
|
|
12404
|
+
'Content-Type': 'application/json',
|
|
12405
|
+
...options.headers
|
|
12406
|
+
}
|
|
12407
|
+
});
|
|
12031
12408
|
/**
|
|
12032
12409
|
* Open a change's pull request
|
|
12033
12410
|
*
|
|
12034
|
-
* Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.
|
|
12411
|
+
* Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. For a later slice opened with `slices.create`, pass head set to that slice's branch (<id>--<n>): the pull request is opened from it instead of the change's own branch, and a branch that belongs to another change is refused with INVALID_ARGUMENT. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.
|
|
12035
12412
|
*/
|
|
12036
12413
|
export const devopsChangesOpenPullRequest = (options) => (options.client ?? client).post({
|
|
12037
12414
|
security: [{
|
|
@@ -12091,7 +12468,7 @@ export const devopsPullRequestsGet = (options) => (options.client ?? client).get
|
|
|
12091
12468
|
/**
|
|
12092
12469
|
* Decide a pull request's merge gate again
|
|
12093
12470
|
*
|
|
12094
|
-
* 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
|
|
12471
|
+
* 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.
|
|
12095
12472
|
*/
|
|
12096
12473
|
export const devopsPullRequestsRerunGate = (options) => (options.client ?? client).post({
|
|
12097
12474
|
security: [{
|
|
@@ -12102,6 +12479,24 @@ export const devopsPullRequestsRerunGate = (options) => (options.client ?? clien
|
|
|
12102
12479
|
url: '/devops/v1/pull-requests/{id}:rerunGate',
|
|
12103
12480
|
...options
|
|
12104
12481
|
});
|
|
12482
|
+
/**
|
|
12483
|
+
* Record a listed position's exception to the merge gate
|
|
12484
|
+
*
|
|
12485
|
+
* 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"}.
|
|
12486
|
+
*/
|
|
12487
|
+
export const devopsPullRequestsOverrideGate = (options) => (options.client ?? client).post({
|
|
12488
|
+
security: [{
|
|
12489
|
+
key: 'devops-bearerAuth',
|
|
12490
|
+
scheme: 'bearer',
|
|
12491
|
+
type: 'http'
|
|
12492
|
+
}],
|
|
12493
|
+
url: '/devops/v1/pull-requests/{id}:overrideGate',
|
|
12494
|
+
...options,
|
|
12495
|
+
headers: {
|
|
12496
|
+
'Content-Type': 'application/json',
|
|
12497
|
+
...options.headers
|
|
12498
|
+
}
|
|
12499
|
+
});
|
|
12105
12500
|
/**
|
|
12106
12501
|
* Merge a pull request through its gate
|
|
12107
12502
|
*
|
|
@@ -12481,7 +12876,7 @@ export const devopsUnitsFetch = (options) => (options.client ?? client).post({
|
|
|
12481
12876
|
/**
|
|
12482
12877
|
* Push a unit's branch
|
|
12483
12878
|
*
|
|
12484
|
-
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed,
|
|
12879
|
+
* Publish the unit's local commits to the remote for the change: the machine itself holds no git credential and cannot reach the remote, so this verb is the way work done on a unit lands. ref says what to push — branch for the change's own branch, wip for this unit's own refs/praxis/wip/<change>, or a full ref name; anything else (the default branch, another change's branch, a tag, another unit's wip ref) is refused with 400 PUSH_REF_FORBIDDEN and nothing is pushed. expectedHead is the commit you believe the remote branch is at now; DevOps checks it before signing anything, and a remote that has moved since answers 409 HEAD_MOVED with nothing pushed, naming the head it is at now in the message and in details.remoteHead. Read the starting value from the unit's git.remoteHead (fetch first when someone else may have pushed). For branch the call also takes a lease on that head, so the push cannot silently overwrite work that landed in between; wip is this change's own ref and is force-pushed. On success the answer is pushedSha, the commit that landed. Commit inside the machine first, through the sandbox instance API — this verb pushes commits, it does not create them. The unit must be available with a machine and a checkout, or the call answers 409 UNIT_INVALID_STATE; a push that git refuses inside the machine answers with the cause in the error message and in details.detail (the last 4000 characters of git's output, credentials redacted) and details.exitCode (git's exit code): 409 PUSH_REJECTED_BY_HOOK when a pre-push hook such as lefthook rejected it, so read the hook output, fix the content and push again, 409 PUSH_REJECTED_NON_FAST_FORWARD when the remote moved ahead, so fetch and reconcile, 409 HEAD_MOVED when the lease on expectedHead no longer holds, and 500 PUSH_FAILED for anything else. Do not retry the same push unchanged.
|
|
12485
12880
|
*/
|
|
12486
12881
|
export const devopsUnitsPush = (options) => (options.client ?? client).post({
|
|
12487
12882
|
security: [{
|
|
@@ -12543,31 +12938,34 @@ export const devopsUnitsTransitionsList = (options) => (options.client ?? client
|
|
|
12543
12938
|
...options
|
|
12544
12939
|
});
|
|
12545
12940
|
/**
|
|
12546
|
-
*
|
|
12941
|
+
* Create a grant code
|
|
12547
12942
|
*
|
|
12548
|
-
*
|
|
12943
|
+
* 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.
|
|
12549
12944
|
*/
|
|
12550
|
-
export const
|
|
12945
|
+
export const endCreateGrantCode = (options) => (options.client ?? client).post({
|
|
12551
12946
|
security: [{
|
|
12552
|
-
key: '
|
|
12947
|
+
key: 'BearerAuth',
|
|
12553
12948
|
scheme: 'bearer',
|
|
12554
12949
|
type: 'http'
|
|
12950
|
+
}, {
|
|
12951
|
+
key: 'ApiKeyAuth',
|
|
12952
|
+
name: 'X-API-Key',
|
|
12953
|
+
type: 'apiKey'
|
|
12555
12954
|
}],
|
|
12556
|
-
url: '/
|
|
12557
|
-
...options
|
|
12955
|
+
url: '/end/v1/grant_codes',
|
|
12956
|
+
...options,
|
|
12957
|
+
headers: {
|
|
12958
|
+
'Content-Type': 'application/json',
|
|
12959
|
+
...options.headers
|
|
12960
|
+
}
|
|
12558
12961
|
});
|
|
12559
12962
|
/**
|
|
12560
|
-
*
|
|
12963
|
+
* Exchange a grant code or publishable key
|
|
12561
12964
|
*
|
|
12562
|
-
*
|
|
12965
|
+
* 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.
|
|
12563
12966
|
*/
|
|
12564
|
-
export const
|
|
12565
|
-
|
|
12566
|
-
key: 'knowledge-bearerAuth',
|
|
12567
|
-
scheme: 'bearer',
|
|
12568
|
-
type: 'http'
|
|
12569
|
-
}],
|
|
12570
|
-
url: '/knowledge/v1/vector_stores',
|
|
12967
|
+
export const endCreateAccessToken = (options) => (options.client ?? client).post({
|
|
12968
|
+
url: '/end/v1/access_tokens',
|
|
12571
12969
|
...options,
|
|
12572
12970
|
headers: {
|
|
12573
12971
|
'Content-Type': 'application/json',
|
|
@@ -12575,95 +12973,105 @@ export const knowledgeCreateVectorStore = (options) => (options.client ?? client
|
|
|
12575
12973
|
}
|
|
12576
12974
|
});
|
|
12577
12975
|
/**
|
|
12578
|
-
*
|
|
12976
|
+
* Renew an access token
|
|
12579
12977
|
*
|
|
12580
|
-
*
|
|
12978
|
+
* 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.
|
|
12581
12979
|
*/
|
|
12582
|
-
export const
|
|
12583
|
-
security: [{
|
|
12584
|
-
key: 'knowledge-bearerAuth',
|
|
12585
|
-
scheme: 'bearer',
|
|
12586
|
-
type: 'http'
|
|
12587
|
-
}],
|
|
12588
|
-
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
12589
|
-
...options
|
|
12590
|
-
});
|
|
12980
|
+
export const endRenewAccessToken = (options) => (options?.client ?? client).post({ url: '/end/v1/access_tokens/renew', ...options });
|
|
12591
12981
|
/**
|
|
12592
|
-
*
|
|
12982
|
+
* Sign out the current token
|
|
12593
12983
|
*
|
|
12594
|
-
*
|
|
12984
|
+
* 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.
|
|
12595
12985
|
*/
|
|
12596
|
-
export const
|
|
12986
|
+
export const endRevokeCurrentTokens = (options) => (options?.client ?? client).delete({ url: '/end/v1/access_tokens/current', ...options });
|
|
12987
|
+
/**
|
|
12988
|
+
* List end users
|
|
12989
|
+
*
|
|
12990
|
+
* 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.
|
|
12991
|
+
*/
|
|
12992
|
+
export const endListUsers = (options) => (options?.client ?? client).get({
|
|
12597
12993
|
security: [{
|
|
12598
|
-
key: '
|
|
12994
|
+
key: 'BearerAuth',
|
|
12599
12995
|
scheme: 'bearer',
|
|
12600
12996
|
type: 'http'
|
|
12997
|
+
}, {
|
|
12998
|
+
key: 'ApiKeyAuth',
|
|
12999
|
+
name: 'X-API-Key',
|
|
13000
|
+
type: 'apiKey'
|
|
12601
13001
|
}],
|
|
12602
|
-
url: '/
|
|
13002
|
+
url: '/end/v1/users',
|
|
12603
13003
|
...options
|
|
12604
13004
|
});
|
|
12605
13005
|
/**
|
|
12606
|
-
*
|
|
13006
|
+
* Delete an end user
|
|
12607
13007
|
*
|
|
12608
|
-
*
|
|
13008
|
+
* 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.
|
|
12609
13009
|
*/
|
|
12610
|
-
export const
|
|
13010
|
+
export const endDeleteUser = (options) => (options.client ?? client).delete({
|
|
12611
13011
|
security: [{
|
|
12612
|
-
key: '
|
|
13012
|
+
key: 'BearerAuth',
|
|
12613
13013
|
scheme: 'bearer',
|
|
12614
13014
|
type: 'http'
|
|
13015
|
+
}, {
|
|
13016
|
+
key: 'ApiKeyAuth',
|
|
13017
|
+
name: 'X-API-Key',
|
|
13018
|
+
type: 'apiKey'
|
|
12615
13019
|
}],
|
|
12616
|
-
url: '/
|
|
12617
|
-
...options
|
|
12618
|
-
headers: {
|
|
12619
|
-
'Content-Type': 'application/json',
|
|
12620
|
-
...options.headers
|
|
12621
|
-
}
|
|
13020
|
+
url: '/end/v1/users/{end_user_id}',
|
|
13021
|
+
...options
|
|
12622
13022
|
});
|
|
12623
13023
|
/**
|
|
12624
|
-
*
|
|
13024
|
+
* Get an end user
|
|
12625
13025
|
*
|
|
12626
|
-
*
|
|
13026
|
+
* 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.
|
|
12627
13027
|
*/
|
|
12628
|
-
export const
|
|
13028
|
+
export const endGetUser = (options) => (options.client ?? client).get({
|
|
12629
13029
|
security: [{
|
|
12630
|
-
key: '
|
|
13030
|
+
key: 'BearerAuth',
|
|
12631
13031
|
scheme: 'bearer',
|
|
12632
13032
|
type: 'http'
|
|
13033
|
+
}, {
|
|
13034
|
+
key: 'ApiKeyAuth',
|
|
13035
|
+
name: 'X-API-Key',
|
|
13036
|
+
type: 'apiKey'
|
|
12633
13037
|
}],
|
|
12634
|
-
url: '/
|
|
12635
|
-
...options
|
|
12636
|
-
headers: {
|
|
12637
|
-
'Content-Type': 'application/json',
|
|
12638
|
-
...options.headers
|
|
12639
|
-
}
|
|
13038
|
+
url: '/end/v1/users/{end_user_id}',
|
|
13039
|
+
...options
|
|
12640
13040
|
});
|
|
12641
13041
|
/**
|
|
12642
|
-
*
|
|
13042
|
+
* Read end-user usage
|
|
12643
13043
|
*
|
|
12644
|
-
*
|
|
13044
|
+
* 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.
|
|
12645
13045
|
*/
|
|
12646
|
-
export const
|
|
13046
|
+
export const endGetUsage = (options) => (options.client ?? client).get({
|
|
12647
13047
|
security: [{
|
|
12648
|
-
key: '
|
|
13048
|
+
key: 'BearerAuth',
|
|
12649
13049
|
scheme: 'bearer',
|
|
12650
13050
|
type: 'http'
|
|
13051
|
+
}, {
|
|
13052
|
+
key: 'ApiKeyAuth',
|
|
13053
|
+
name: 'X-API-Key',
|
|
13054
|
+
type: 'apiKey'
|
|
12651
13055
|
}],
|
|
12652
|
-
url: '/
|
|
13056
|
+
url: '/end/v1/users/{end_user_id}/usage',
|
|
12653
13057
|
...options
|
|
12654
13058
|
});
|
|
12655
13059
|
/**
|
|
12656
|
-
*
|
|
13060
|
+
* Block an end user
|
|
12657
13061
|
*
|
|
12658
|
-
*
|
|
13062
|
+
* 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.
|
|
12659
13063
|
*/
|
|
12660
|
-
export const
|
|
13064
|
+
export const endBlockUser = (options) => (options.client ?? client).post({
|
|
12661
13065
|
security: [{
|
|
12662
|
-
key: '
|
|
13066
|
+
key: 'BearerAuth',
|
|
12663
13067
|
scheme: 'bearer',
|
|
12664
13068
|
type: 'http'
|
|
13069
|
+
}, {
|
|
13070
|
+
key: 'ApiKeyAuth',
|
|
13071
|
+
name: 'X-API-Key',
|
|
13072
|
+
type: 'apiKey'
|
|
12665
13073
|
}],
|
|
12666
|
-
url: '/
|
|
13074
|
+
url: '/end/v1/users/{end_user_id}/block',
|
|
12667
13075
|
...options,
|
|
12668
13076
|
headers: {
|
|
12669
13077
|
'Content-Type': 'application/json',
|
|
@@ -12671,45 +13079,75 @@ export const knowledgeAttachFile = (options) => (options.client ?? client).post(
|
|
|
12671
13079
|
}
|
|
12672
13080
|
});
|
|
12673
13081
|
/**
|
|
12674
|
-
*
|
|
13082
|
+
* Unblock an end user
|
|
12675
13083
|
*
|
|
12676
|
-
*
|
|
13084
|
+
* 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.
|
|
12677
13085
|
*/
|
|
12678
|
-
export const
|
|
13086
|
+
export const endUnblockUser = (options) => (options.client ?? client).post({
|
|
12679
13087
|
security: [{
|
|
12680
|
-
key: '
|
|
13088
|
+
key: 'BearerAuth',
|
|
12681
13089
|
scheme: 'bearer',
|
|
12682
13090
|
type: 'http'
|
|
13091
|
+
}, {
|
|
13092
|
+
key: 'ApiKeyAuth',
|
|
13093
|
+
name: 'X-API-Key',
|
|
13094
|
+
type: 'apiKey'
|
|
12683
13095
|
}],
|
|
12684
|
-
url: '/
|
|
13096
|
+
url: '/end/v1/users/{end_user_id}/unblock',
|
|
12685
13097
|
...options
|
|
12686
13098
|
});
|
|
12687
13099
|
/**
|
|
12688
|
-
*
|
|
13100
|
+
* Revoke every token of an end user
|
|
12689
13101
|
*
|
|
12690
|
-
*
|
|
13102
|
+
* 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.
|
|
12691
13103
|
*/
|
|
12692
|
-
export const
|
|
13104
|
+
export const endRevokeTokens = (options) => (options.client ?? client).post({
|
|
12693
13105
|
security: [{
|
|
12694
|
-
key: '
|
|
13106
|
+
key: 'BearerAuth',
|
|
12695
13107
|
scheme: 'bearer',
|
|
12696
13108
|
type: 'http'
|
|
13109
|
+
}, {
|
|
13110
|
+
key: 'ApiKeyAuth',
|
|
13111
|
+
name: 'X-API-Key',
|
|
13112
|
+
type: 'apiKey'
|
|
12697
13113
|
}],
|
|
12698
|
-
url: '/
|
|
13114
|
+
url: '/end/v1/users/{end_user_id}/revoke_tokens',
|
|
12699
13115
|
...options
|
|
12700
13116
|
});
|
|
12701
13117
|
/**
|
|
12702
|
-
*
|
|
13118
|
+
* List publishable keys
|
|
12703
13119
|
*
|
|
12704
|
-
*
|
|
13120
|
+
* 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.
|
|
12705
13121
|
*/
|
|
12706
|
-
export const
|
|
13122
|
+
export const endListPublishableKeys = (options) => (options?.client ?? client).get({
|
|
12707
13123
|
security: [{
|
|
12708
|
-
key: '
|
|
13124
|
+
key: 'BearerAuth',
|
|
12709
13125
|
scheme: 'bearer',
|
|
12710
13126
|
type: 'http'
|
|
13127
|
+
}, {
|
|
13128
|
+
key: 'ApiKeyAuth',
|
|
13129
|
+
name: 'X-API-Key',
|
|
13130
|
+
type: 'apiKey'
|
|
12711
13131
|
}],
|
|
12712
|
-
url: '/
|
|
13132
|
+
url: '/end/v1/publishable_keys',
|
|
13133
|
+
...options
|
|
13134
|
+
});
|
|
13135
|
+
/**
|
|
13136
|
+
* Create a publishable key
|
|
13137
|
+
*
|
|
13138
|
+
* 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.
|
|
13139
|
+
*/
|
|
13140
|
+
export const endCreatePublishableKey = (options) => (options.client ?? client).post({
|
|
13141
|
+
security: [{
|
|
13142
|
+
key: 'BearerAuth',
|
|
13143
|
+
scheme: 'bearer',
|
|
13144
|
+
type: 'http'
|
|
13145
|
+
}, {
|
|
13146
|
+
key: 'ApiKeyAuth',
|
|
13147
|
+
name: 'X-API-Key',
|
|
13148
|
+
type: 'apiKey'
|
|
13149
|
+
}],
|
|
13150
|
+
url: '/end/v1/publishable_keys',
|
|
12713
13151
|
...options,
|
|
12714
13152
|
headers: {
|
|
12715
13153
|
'Content-Type': 'application/json',
|
|
@@ -12717,31 +13155,39 @@ export const knowledgeUpdateFile = (options) => (options.client ?? client).post(
|
|
|
12717
13155
|
}
|
|
12718
13156
|
});
|
|
12719
13157
|
/**
|
|
12720
|
-
*
|
|
13158
|
+
* Delete a publishable key
|
|
12721
13159
|
*
|
|
12722
|
-
*
|
|
13160
|
+
* 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.
|
|
12723
13161
|
*/
|
|
12724
|
-
export const
|
|
13162
|
+
export const endDeletePublishableKey = (options) => (options.client ?? client).delete({
|
|
12725
13163
|
security: [{
|
|
12726
|
-
key: '
|
|
13164
|
+
key: 'BearerAuth',
|
|
12727
13165
|
scheme: 'bearer',
|
|
12728
13166
|
type: 'http'
|
|
13167
|
+
}, {
|
|
13168
|
+
key: 'ApiKeyAuth',
|
|
13169
|
+
name: 'X-API-Key',
|
|
13170
|
+
type: 'apiKey'
|
|
12729
13171
|
}],
|
|
12730
|
-
url: '/
|
|
13172
|
+
url: '/end/v1/publishable_keys/{key_id}',
|
|
12731
13173
|
...options
|
|
12732
13174
|
});
|
|
12733
13175
|
/**
|
|
12734
|
-
*
|
|
13176
|
+
* Update a publishable key
|
|
12735
13177
|
*
|
|
12736
|
-
*
|
|
13178
|
+
* 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.
|
|
12737
13179
|
*/
|
|
12738
|
-
export const
|
|
13180
|
+
export const endUpdatePublishableKey = (options) => (options.client ?? client).patch({
|
|
12739
13181
|
security: [{
|
|
12740
|
-
key: '
|
|
13182
|
+
key: 'BearerAuth',
|
|
12741
13183
|
scheme: 'bearer',
|
|
12742
13184
|
type: 'http'
|
|
13185
|
+
}, {
|
|
13186
|
+
key: 'ApiKeyAuth',
|
|
13187
|
+
name: 'X-API-Key',
|
|
13188
|
+
type: 'apiKey'
|
|
12743
13189
|
}],
|
|
12744
|
-
url: '/
|
|
13190
|
+
url: '/end/v1/publishable_keys/{key_id}',
|
|
12745
13191
|
...options,
|
|
12746
13192
|
headers: {
|
|
12747
13193
|
'Content-Type': 'application/json',
|
|
@@ -12749,73 +13195,353 @@ export const knowledgeCreateFileBatch = (options) => (options.client ?? client).
|
|
|
12749
13195
|
}
|
|
12750
13196
|
});
|
|
12751
13197
|
/**
|
|
12752
|
-
*
|
|
13198
|
+
* List event types
|
|
12753
13199
|
*
|
|
12754
|
-
*
|
|
13200
|
+
* 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.
|
|
12755
13201
|
*/
|
|
12756
|
-
export const
|
|
13202
|
+
export const eventsListTypes = (options) => (options?.client ?? client).get({
|
|
12757
13203
|
security: [{
|
|
12758
|
-
key: '
|
|
13204
|
+
key: 'events-bearerAuth',
|
|
12759
13205
|
scheme: 'bearer',
|
|
12760
13206
|
type: 'http'
|
|
12761
13207
|
}],
|
|
12762
|
-
url: '/
|
|
13208
|
+
url: '/events/v1/types',
|
|
12763
13209
|
...options
|
|
12764
13210
|
});
|
|
12765
13211
|
/**
|
|
12766
|
-
*
|
|
13212
|
+
* List event subscriptions
|
|
12767
13213
|
*
|
|
12768
|
-
*
|
|
13214
|
+
* 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.
|
|
12769
13215
|
*/
|
|
12770
|
-
export const
|
|
13216
|
+
export const eventsListSubscriptions = (options) => (options?.client ?? client).get({
|
|
12771
13217
|
security: [{
|
|
12772
|
-
key: '
|
|
13218
|
+
key: 'events-bearerAuth',
|
|
12773
13219
|
scheme: 'bearer',
|
|
12774
13220
|
type: 'http'
|
|
12775
13221
|
}],
|
|
12776
|
-
url: '/
|
|
13222
|
+
url: '/events/v1/subscriptions',
|
|
12777
13223
|
...options
|
|
12778
13224
|
});
|
|
12779
13225
|
/**
|
|
12780
|
-
*
|
|
13226
|
+
* Create event subscription
|
|
12781
13227
|
*
|
|
12782
|
-
*
|
|
13228
|
+
* 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.
|
|
12783
13229
|
*/
|
|
12784
|
-
export const
|
|
13230
|
+
export const eventsCreateSubscription = (options) => (options.client ?? client).post({
|
|
12785
13231
|
security: [{
|
|
12786
|
-
key: '
|
|
13232
|
+
key: 'events-bearerAuth',
|
|
12787
13233
|
scheme: 'bearer',
|
|
12788
13234
|
type: 'http'
|
|
12789
13235
|
}],
|
|
12790
|
-
url: '/
|
|
12791
|
-
...options
|
|
13236
|
+
url: '/events/v1/subscriptions',
|
|
13237
|
+
...options,
|
|
13238
|
+
headers: {
|
|
13239
|
+
'Content-Type': 'application/json',
|
|
13240
|
+
...options.headers
|
|
13241
|
+
}
|
|
12792
13242
|
});
|
|
12793
13243
|
/**
|
|
12794
|
-
*
|
|
13244
|
+
* Delete event subscription
|
|
12795
13245
|
*
|
|
12796
|
-
*
|
|
13246
|
+
* 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.
|
|
12797
13247
|
*/
|
|
12798
|
-
export const
|
|
13248
|
+
export const eventsDeleteSubscription = (options) => (options.client ?? client).delete({
|
|
12799
13249
|
security: [{
|
|
12800
|
-
key: '
|
|
13250
|
+
key: 'events-bearerAuth',
|
|
12801
13251
|
scheme: 'bearer',
|
|
12802
13252
|
type: 'http'
|
|
12803
13253
|
}],
|
|
12804
|
-
url: '/
|
|
13254
|
+
url: '/events/v1/subscriptions/{subscription_id}',
|
|
12805
13255
|
...options
|
|
12806
13256
|
});
|
|
12807
13257
|
/**
|
|
12808
|
-
*
|
|
13258
|
+
* Retrieve event subscription
|
|
12809
13259
|
*
|
|
12810
|
-
*
|
|
13260
|
+
* 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.
|
|
12811
13261
|
*/
|
|
12812
|
-
export const
|
|
13262
|
+
export const eventsRetrieveSubscription = (options) => (options.client ?? client).get({
|
|
12813
13263
|
security: [{
|
|
12814
|
-
key: '
|
|
13264
|
+
key: 'events-bearerAuth',
|
|
12815
13265
|
scheme: 'bearer',
|
|
12816
13266
|
type: 'http'
|
|
12817
13267
|
}],
|
|
12818
|
-
url: '/
|
|
13268
|
+
url: '/events/v1/subscriptions/{subscription_id}',
|
|
13269
|
+
...options
|
|
13270
|
+
});
|
|
13271
|
+
/**
|
|
13272
|
+
* List knowledge bases
|
|
13273
|
+
*
|
|
13274
|
+
* 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.
|
|
13275
|
+
*/
|
|
13276
|
+
export const knowledgeListVectorStores = (options) => (options?.client ?? client).get({
|
|
13277
|
+
security: [{
|
|
13278
|
+
key: 'knowledge-bearerAuth',
|
|
13279
|
+
scheme: 'bearer',
|
|
13280
|
+
type: 'http'
|
|
13281
|
+
}],
|
|
13282
|
+
url: '/knowledge/v1/vector_stores',
|
|
13283
|
+
...options
|
|
13284
|
+
});
|
|
13285
|
+
/**
|
|
13286
|
+
* Create knowledge base
|
|
13287
|
+
*
|
|
13288
|
+
* 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"}.
|
|
13289
|
+
*/
|
|
13290
|
+
export const knowledgeCreateVectorStore = (options) => (options.client ?? client).post({
|
|
13291
|
+
security: [{
|
|
13292
|
+
key: 'knowledge-bearerAuth',
|
|
13293
|
+
scheme: 'bearer',
|
|
13294
|
+
type: 'http'
|
|
13295
|
+
}],
|
|
13296
|
+
url: '/knowledge/v1/vector_stores',
|
|
13297
|
+
...options,
|
|
13298
|
+
headers: {
|
|
13299
|
+
'Content-Type': 'application/json',
|
|
13300
|
+
...options.headers
|
|
13301
|
+
}
|
|
13302
|
+
});
|
|
13303
|
+
/**
|
|
13304
|
+
* Delete knowledge base
|
|
13305
|
+
*
|
|
13306
|
+
* 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.
|
|
13307
|
+
*/
|
|
13308
|
+
export const knowledgeDeleteVectorStore = (options) => (options.client ?? client).delete({
|
|
13309
|
+
security: [{
|
|
13310
|
+
key: 'knowledge-bearerAuth',
|
|
13311
|
+
scheme: 'bearer',
|
|
13312
|
+
type: 'http'
|
|
13313
|
+
}],
|
|
13314
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
13315
|
+
...options
|
|
13316
|
+
});
|
|
13317
|
+
/**
|
|
13318
|
+
* Retrieve knowledge base
|
|
13319
|
+
*
|
|
13320
|
+
* 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.
|
|
13321
|
+
*/
|
|
13322
|
+
export const knowledgeRetrieveVectorStore = (options) => (options.client ?? client).get({
|
|
13323
|
+
security: [{
|
|
13324
|
+
key: 'knowledge-bearerAuth',
|
|
13325
|
+
scheme: 'bearer',
|
|
13326
|
+
type: 'http'
|
|
13327
|
+
}],
|
|
13328
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
13329
|
+
...options
|
|
13330
|
+
});
|
|
13331
|
+
/**
|
|
13332
|
+
* Update knowledge base
|
|
13333
|
+
*
|
|
13334
|
+
* Updates an active knowledge base using its returned id. Omitted fields stay unchanged; metadata replaces the whole map. Example body: {"name":"Refund policies"}.
|
|
13335
|
+
*/
|
|
13336
|
+
export const knowledgeUpdateVectorStore = (options) => (options.client ?? client).post({
|
|
13337
|
+
security: [{
|
|
13338
|
+
key: 'knowledge-bearerAuth',
|
|
13339
|
+
scheme: 'bearer',
|
|
13340
|
+
type: 'http'
|
|
13341
|
+
}],
|
|
13342
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}',
|
|
13343
|
+
...options,
|
|
13344
|
+
headers: {
|
|
13345
|
+
'Content-Type': 'application/json',
|
|
13346
|
+
...options.headers
|
|
13347
|
+
}
|
|
13348
|
+
});
|
|
13349
|
+
/**
|
|
13350
|
+
* Search knowledge base
|
|
13351
|
+
*
|
|
13352
|
+
* 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.
|
|
13353
|
+
*/
|
|
13354
|
+
export const knowledgeSearchVectorStore = (options) => (options.client ?? client).post({
|
|
13355
|
+
security: [{
|
|
13356
|
+
key: 'knowledge-bearerAuth',
|
|
13357
|
+
scheme: 'bearer',
|
|
13358
|
+
type: 'http'
|
|
13359
|
+
}],
|
|
13360
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/search',
|
|
13361
|
+
...options,
|
|
13362
|
+
headers: {
|
|
13363
|
+
'Content-Type': 'application/json',
|
|
13364
|
+
...options.headers
|
|
13365
|
+
}
|
|
13366
|
+
});
|
|
13367
|
+
/**
|
|
13368
|
+
* List files
|
|
13369
|
+
*
|
|
13370
|
+
* 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.
|
|
13371
|
+
*/
|
|
13372
|
+
export const knowledgeListFiles = (options) => (options.client ?? client).get({
|
|
13373
|
+
security: [{
|
|
13374
|
+
key: 'knowledge-bearerAuth',
|
|
13375
|
+
scheme: 'bearer',
|
|
13376
|
+
type: 'http'
|
|
13377
|
+
}],
|
|
13378
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
13379
|
+
...options
|
|
13380
|
+
});
|
|
13381
|
+
/**
|
|
13382
|
+
* Add file
|
|
13383
|
+
*
|
|
13384
|
+
* 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.
|
|
13385
|
+
*/
|
|
13386
|
+
export const knowledgeAttachFile = (options) => (options.client ?? client).post({
|
|
13387
|
+
security: [{
|
|
13388
|
+
key: 'knowledge-bearerAuth',
|
|
13389
|
+
scheme: 'bearer',
|
|
13390
|
+
type: 'http'
|
|
13391
|
+
}],
|
|
13392
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files',
|
|
13393
|
+
...options,
|
|
13394
|
+
headers: {
|
|
13395
|
+
'Content-Type': 'application/json',
|
|
13396
|
+
...options.headers
|
|
13397
|
+
}
|
|
13398
|
+
});
|
|
13399
|
+
/**
|
|
13400
|
+
* Remove file
|
|
13401
|
+
*
|
|
13402
|
+
* Removes the file from search immediately; does not delete the original File.
|
|
13403
|
+
*/
|
|
13404
|
+
export const knowledgeRemoveFile = (options) => (options.client ?? client).delete({
|
|
13405
|
+
security: [{
|
|
13406
|
+
key: 'knowledge-bearerAuth',
|
|
13407
|
+
scheme: 'bearer',
|
|
13408
|
+
type: 'http'
|
|
13409
|
+
}],
|
|
13410
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
13411
|
+
...options
|
|
13412
|
+
});
|
|
13413
|
+
/**
|
|
13414
|
+
* Retrieve file
|
|
13415
|
+
*
|
|
13416
|
+
* Retrieves an attached file using the id returned by attachment or file listing. Poll this operation until status leaves in_progress to observe the ingestion outcome.
|
|
13417
|
+
*/
|
|
13418
|
+
export const knowledgeRetrieveFile = (options) => (options.client ?? client).get({
|
|
13419
|
+
security: [{
|
|
13420
|
+
key: 'knowledge-bearerAuth',
|
|
13421
|
+
scheme: 'bearer',
|
|
13422
|
+
type: 'http'
|
|
13423
|
+
}],
|
|
13424
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
13425
|
+
...options
|
|
13426
|
+
});
|
|
13427
|
+
/**
|
|
13428
|
+
* Update file attributes
|
|
13429
|
+
*
|
|
13430
|
+
* Replaces search-filter attributes of an existing attachment without reingesting its content. Use an attached file id. Example body: {"attributes":{"category":"refund"}}; null clears the attributes.
|
|
13431
|
+
*/
|
|
13432
|
+
export const knowledgeUpdateFile = (options) => (options.client ?? client).post({
|
|
13433
|
+
security: [{
|
|
13434
|
+
key: 'knowledge-bearerAuth',
|
|
13435
|
+
scheme: 'bearer',
|
|
13436
|
+
type: 'http'
|
|
13437
|
+
}],
|
|
13438
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}',
|
|
13439
|
+
...options,
|
|
13440
|
+
headers: {
|
|
13441
|
+
'Content-Type': 'application/json',
|
|
13442
|
+
...options.headers
|
|
13443
|
+
}
|
|
13444
|
+
});
|
|
13445
|
+
/**
|
|
13446
|
+
* Read extracted content
|
|
13447
|
+
*
|
|
13448
|
+
* Extracted text chunks may overlap. Image content can be a generated description rather than verbatim OCR.
|
|
13449
|
+
*/
|
|
13450
|
+
export const knowledgeRetrieveFileContent = (options) => (options.client ?? client).get({
|
|
13451
|
+
security: [{
|
|
13452
|
+
key: 'knowledge-bearerAuth',
|
|
13453
|
+
scheme: 'bearer',
|
|
13454
|
+
type: 'http'
|
|
13455
|
+
}],
|
|
13456
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content',
|
|
13457
|
+
...options
|
|
13458
|
+
});
|
|
13459
|
+
/**
|
|
13460
|
+
* Create file batch
|
|
13461
|
+
*
|
|
13462
|
+
* Attaches existing Files as a batch for asynchronous ingestion. Supply exactly one of file_ids or files; files allows per-file settings. Existing attachments are reused. Read the returned batch id to monitor status.
|
|
13463
|
+
*/
|
|
13464
|
+
export const knowledgeCreateFileBatch = (options) => (options.client ?? client).post({
|
|
13465
|
+
security: [{
|
|
13466
|
+
key: 'knowledge-bearerAuth',
|
|
13467
|
+
scheme: 'bearer',
|
|
13468
|
+
type: 'http'
|
|
13469
|
+
}],
|
|
13470
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches',
|
|
13471
|
+
...options,
|
|
13472
|
+
headers: {
|
|
13473
|
+
'Content-Type': 'application/json',
|
|
13474
|
+
...options.headers
|
|
13475
|
+
}
|
|
13476
|
+
});
|
|
13477
|
+
/**
|
|
13478
|
+
* Retrieve file batch
|
|
13479
|
+
*
|
|
13480
|
+
* Retrieves a batch created in this knowledge base, including current status and file counts. Use the batch id returned by batch creation to monitor ingestion.
|
|
13481
|
+
*/
|
|
13482
|
+
export const knowledgeRetrieveFileBatch = (options) => (options.client ?? client).get({
|
|
13483
|
+
security: [{
|
|
13484
|
+
key: 'knowledge-bearerAuth',
|
|
13485
|
+
scheme: 'bearer',
|
|
13486
|
+
type: 'http'
|
|
13487
|
+
}],
|
|
13488
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}',
|
|
13489
|
+
...options
|
|
13490
|
+
});
|
|
13491
|
+
/**
|
|
13492
|
+
* Cancel file batch
|
|
13493
|
+
*
|
|
13494
|
+
* Cancels only in-progress batches and pending files. Completed, failed and cancelled batches return unchanged (200, idempotent).
|
|
13495
|
+
*/
|
|
13496
|
+
export const knowledgeCancelFileBatch = (options) => (options.client ?? client).post({
|
|
13497
|
+
security: [{
|
|
13498
|
+
key: 'knowledge-bearerAuth',
|
|
13499
|
+
scheme: 'bearer',
|
|
13500
|
+
type: 'http'
|
|
13501
|
+
}],
|
|
13502
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel',
|
|
13503
|
+
...options
|
|
13504
|
+
});
|
|
13505
|
+
/**
|
|
13506
|
+
* List batch files
|
|
13507
|
+
*
|
|
13508
|
+
* Lists files still attached from the identified batch, newest attachment first by default. Use the batch creation id and ?filter=failed to inspect failures; last_id is the next after cursor.
|
|
13509
|
+
*/
|
|
13510
|
+
export const knowledgeListBatchFiles = (options) => (options.client ?? client).get({
|
|
13511
|
+
security: [{
|
|
13512
|
+
key: 'knowledge-bearerAuth',
|
|
13513
|
+
scheme: 'bearer',
|
|
13514
|
+
type: 'http'
|
|
13515
|
+
}],
|
|
13516
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files',
|
|
13517
|
+
...options
|
|
13518
|
+
});
|
|
13519
|
+
/**
|
|
13520
|
+
* Restore knowledge base
|
|
13521
|
+
*
|
|
13522
|
+
* Restores a deleting store within 7 days. Active stores return 409 VECTOR_STORE_INVALID_STATE; absent stores return 404. Empty body is allowed.
|
|
13523
|
+
*/
|
|
13524
|
+
export const knowledgeRestoreVectorStore = (options) => (options.client ?? client).post({
|
|
13525
|
+
security: [{
|
|
13526
|
+
key: 'knowledge-bearerAuth',
|
|
13527
|
+
scheme: 'bearer',
|
|
13528
|
+
type: 'http'
|
|
13529
|
+
}],
|
|
13530
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/restore',
|
|
13531
|
+
...options
|
|
13532
|
+
});
|
|
13533
|
+
/**
|
|
13534
|
+
* Permanently purge knowledge base
|
|
13535
|
+
*
|
|
13536
|
+
* Immediately and irreversibly clears a deleting store using the retention cleanup path. Active stores return 409; absent stores return 404. Empty body is allowed.
|
|
13537
|
+
*/
|
|
13538
|
+
export const knowledgePurgeVectorStore = (options) => (options.client ?? client).post({
|
|
13539
|
+
security: [{
|
|
13540
|
+
key: 'knowledge-bearerAuth',
|
|
13541
|
+
scheme: 'bearer',
|
|
13542
|
+
type: 'http'
|
|
13543
|
+
}],
|
|
13544
|
+
url: '/knowledge/v1/vector_stores/{vector_store_id}/purge',
|
|
12819
13545
|
...options
|
|
12820
13546
|
});
|
|
12821
13547
|
/**
|
|
@@ -13646,6 +14372,98 @@ export const mediaDesignVoice = (options) => (options.client ?? client).post({
|
|
|
13646
14372
|
...options.headers
|
|
13647
14373
|
}
|
|
13648
14374
|
});
|
|
14375
|
+
/**
|
|
14376
|
+
* List works
|
|
14377
|
+
*
|
|
14378
|
+
* 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.
|
|
14379
|
+
*/
|
|
14380
|
+
export const mediaListWorks = (options) => (options.client ?? client).get({
|
|
14381
|
+
security: [{
|
|
14382
|
+
key: 'media-BearerAuth',
|
|
14383
|
+
scheme: 'bearer',
|
|
14384
|
+
type: 'http'
|
|
14385
|
+
}],
|
|
14386
|
+
url: '/media/v1/libraries/{library_id}/works',
|
|
14387
|
+
...options
|
|
14388
|
+
});
|
|
14389
|
+
/**
|
|
14390
|
+
* Create work
|
|
14391
|
+
*
|
|
14392
|
+
* 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>"}]}}.
|
|
14393
|
+
*/
|
|
14394
|
+
export const mediaCreateWork = (options) => (options.client ?? client).post({
|
|
14395
|
+
security: [{
|
|
14396
|
+
key: 'media-BearerAuth',
|
|
14397
|
+
scheme: 'bearer',
|
|
14398
|
+
type: 'http'
|
|
14399
|
+
}],
|
|
14400
|
+
url: '/media/v1/libraries/{library_id}/works',
|
|
14401
|
+
...options,
|
|
14402
|
+
headers: {
|
|
14403
|
+
'Content-Type': 'application/json',
|
|
14404
|
+
...options.headers
|
|
14405
|
+
}
|
|
14406
|
+
});
|
|
14407
|
+
/**
|
|
14408
|
+
* Delete work
|
|
14409
|
+
*
|
|
14410
|
+
* Delete a work. Only the work goes: every asset it named stays in the library unchanged.
|
|
14411
|
+
*/
|
|
14412
|
+
export const mediaDeleteWork = (options) => (options.client ?? client).delete({
|
|
14413
|
+
security: [{
|
|
14414
|
+
key: 'media-BearerAuth',
|
|
14415
|
+
scheme: 'bearer',
|
|
14416
|
+
type: 'http'
|
|
14417
|
+
}],
|
|
14418
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}',
|
|
14419
|
+
...options
|
|
14420
|
+
});
|
|
14421
|
+
/**
|
|
14422
|
+
* Get work
|
|
14423
|
+
*
|
|
14424
|
+
* 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.
|
|
14425
|
+
*/
|
|
14426
|
+
export const mediaGetWork = (options) => (options.client ?? client).get({
|
|
14427
|
+
security: [{
|
|
14428
|
+
key: 'media-BearerAuth',
|
|
14429
|
+
scheme: 'bearer',
|
|
14430
|
+
type: 'http'
|
|
14431
|
+
}],
|
|
14432
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}',
|
|
14433
|
+
...options
|
|
14434
|
+
});
|
|
14435
|
+
/**
|
|
14436
|
+
* Update work
|
|
14437
|
+
*
|
|
14438
|
+
* 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}}}.
|
|
14439
|
+
*/
|
|
14440
|
+
export const mediaUpdateWork = (options) => (options.client ?? client).patch({
|
|
14441
|
+
security: [{
|
|
14442
|
+
key: 'media-BearerAuth',
|
|
14443
|
+
scheme: 'bearer',
|
|
14444
|
+
type: 'http'
|
|
14445
|
+
}],
|
|
14446
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}',
|
|
14447
|
+
...options,
|
|
14448
|
+
headers: {
|
|
14449
|
+
'Content-Type': 'application/json',
|
|
14450
|
+
...options.headers
|
|
14451
|
+
}
|
|
14452
|
+
});
|
|
14453
|
+
/**
|
|
14454
|
+
* List works using an asset
|
|
14455
|
+
*
|
|
14456
|
+
* 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.
|
|
14457
|
+
*/
|
|
14458
|
+
export const mediaListAssetWorks = (options) => (options.client ?? client).get({
|
|
14459
|
+
security: [{
|
|
14460
|
+
key: 'media-BearerAuth',
|
|
14461
|
+
scheme: 'bearer',
|
|
14462
|
+
type: 'http'
|
|
14463
|
+
}],
|
|
14464
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works',
|
|
14465
|
+
...options
|
|
14466
|
+
});
|
|
13649
14467
|
/**
|
|
13650
14468
|
* List types
|
|
13651
14469
|
*
|
|
@@ -14336,7 +15154,7 @@ export const getSandboxV1Sandboxes = (options) => (options?.client ?? client).ge
|
|
|
14336
15154
|
/**
|
|
14337
15155
|
* Create sandbox (v2)
|
|
14338
15156
|
*
|
|
14339
|
-
* 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,
|
|
15157
|
+
* 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.
|
|
14340
15158
|
*/
|
|
14341
15159
|
export const postSandboxV1Sandboxes = (options) => (options.client ?? client).post({
|
|
14342
15160
|
security: [
|
|
@@ -14612,158 +15430,6 @@ export const requestTemplateBuild = (options) => (options.client ?? client).post
|
|
|
14612
15430
|
...options.headers
|
|
14613
15431
|
}
|
|
14614
15432
|
});
|
|
14615
|
-
/**
|
|
14616
|
-
* List team volumes
|
|
14617
|
-
*
|
|
14618
|
-
* 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.
|
|
14619
|
-
*/
|
|
14620
|
-
export const getSandboxV1Volumes = (options) => (options?.client ?? client).get({
|
|
14621
|
-
security: [
|
|
14622
|
-
{
|
|
14623
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14624
|
-
name: 'X-API-Key',
|
|
14625
|
-
type: 'apiKey'
|
|
14626
|
-
},
|
|
14627
|
-
{
|
|
14628
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14629
|
-
scheme: 'bearer',
|
|
14630
|
-
type: 'http'
|
|
14631
|
-
},
|
|
14632
|
-
{
|
|
14633
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14634
|
-
name: 'X-Team-ID',
|
|
14635
|
-
type: 'apiKey'
|
|
14636
|
-
},
|
|
14637
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14638
|
-
{
|
|
14639
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14640
|
-
name: 'X-Team-ID',
|
|
14641
|
-
type: 'apiKey'
|
|
14642
|
-
},
|
|
14643
|
-
{
|
|
14644
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14645
|
-
scheme: 'bearer',
|
|
14646
|
-
type: 'http'
|
|
14647
|
-
}
|
|
14648
|
-
],
|
|
14649
|
-
url: '/sandbox/v1/volumes',
|
|
14650
|
-
...options
|
|
14651
|
-
});
|
|
14652
|
-
/**
|
|
14653
|
-
* Create team volume
|
|
14654
|
-
*
|
|
14655
|
-
* 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.
|
|
14656
|
-
*/
|
|
14657
|
-
export const postSandboxV1Volumes = (options) => (options.client ?? client).post({
|
|
14658
|
-
security: [
|
|
14659
|
-
{
|
|
14660
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14661
|
-
name: 'X-API-Key',
|
|
14662
|
-
type: 'apiKey'
|
|
14663
|
-
},
|
|
14664
|
-
{
|
|
14665
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14666
|
-
scheme: 'bearer',
|
|
14667
|
-
type: 'http'
|
|
14668
|
-
},
|
|
14669
|
-
{
|
|
14670
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14671
|
-
name: 'X-Team-ID',
|
|
14672
|
-
type: 'apiKey'
|
|
14673
|
-
},
|
|
14674
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14675
|
-
{
|
|
14676
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14677
|
-
name: 'X-Team-ID',
|
|
14678
|
-
type: 'apiKey'
|
|
14679
|
-
},
|
|
14680
|
-
{
|
|
14681
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14682
|
-
scheme: 'bearer',
|
|
14683
|
-
type: 'http'
|
|
14684
|
-
}
|
|
14685
|
-
],
|
|
14686
|
-
url: '/sandbox/v1/volumes',
|
|
14687
|
-
...options,
|
|
14688
|
-
headers: {
|
|
14689
|
-
'Content-Type': 'application/json',
|
|
14690
|
-
...options.headers
|
|
14691
|
-
}
|
|
14692
|
-
});
|
|
14693
|
-
/**
|
|
14694
|
-
* Delete team volume
|
|
14695
|
-
*
|
|
14696
|
-
* 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.
|
|
14697
|
-
*/
|
|
14698
|
-
export const deleteSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).delete({
|
|
14699
|
-
security: [
|
|
14700
|
-
{
|
|
14701
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14702
|
-
name: 'X-API-Key',
|
|
14703
|
-
type: 'apiKey'
|
|
14704
|
-
},
|
|
14705
|
-
{
|
|
14706
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14707
|
-
scheme: 'bearer',
|
|
14708
|
-
type: 'http'
|
|
14709
|
-
},
|
|
14710
|
-
{
|
|
14711
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14712
|
-
name: 'X-Team-ID',
|
|
14713
|
-
type: 'apiKey'
|
|
14714
|
-
},
|
|
14715
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14716
|
-
{
|
|
14717
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14718
|
-
name: 'X-Team-ID',
|
|
14719
|
-
type: 'apiKey'
|
|
14720
|
-
},
|
|
14721
|
-
{
|
|
14722
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14723
|
-
scheme: 'bearer',
|
|
14724
|
-
type: 'http'
|
|
14725
|
-
}
|
|
14726
|
-
],
|
|
14727
|
-
url: '/sandbox/v1/volumes/{volumeID}',
|
|
14728
|
-
...options
|
|
14729
|
-
});
|
|
14730
|
-
/**
|
|
14731
|
-
* Team volume
|
|
14732
|
-
*
|
|
14733
|
-
* 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.
|
|
14734
|
-
*/
|
|
14735
|
-
export const getSandboxV1VolumesByVolumeId = (options) => (options.client ?? client).get({
|
|
14736
|
-
security: [
|
|
14737
|
-
{
|
|
14738
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14739
|
-
name: 'X-API-Key',
|
|
14740
|
-
type: 'apiKey'
|
|
14741
|
-
},
|
|
14742
|
-
{
|
|
14743
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14744
|
-
scheme: 'bearer',
|
|
14745
|
-
type: 'http'
|
|
14746
|
-
},
|
|
14747
|
-
{
|
|
14748
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14749
|
-
name: 'X-Team-ID',
|
|
14750
|
-
type: 'apiKey'
|
|
14751
|
-
},
|
|
14752
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14753
|
-
{
|
|
14754
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14755
|
-
name: 'X-Team-ID',
|
|
14756
|
-
type: 'apiKey'
|
|
14757
|
-
},
|
|
14758
|
-
{
|
|
14759
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14760
|
-
scheme: 'bearer',
|
|
14761
|
-
type: 'http'
|
|
14762
|
-
}
|
|
14763
|
-
],
|
|
14764
|
-
url: '/sandbox/v1/volumes/{volumeID}',
|
|
14765
|
-
...options
|
|
14766
|
-
});
|
|
14767
15433
|
/**
|
|
14768
15434
|
* Fork sandbox
|
|
14769
15435
|
*
|
|
@@ -14920,47 +15586,6 @@ export const deleteSandboxV1SnapshotsBySnapshotId = (options) => (options.client
|
|
|
14920
15586
|
url: '/sandbox/v1/snapshots/{snapshotID}',
|
|
14921
15587
|
...options
|
|
14922
15588
|
});
|
|
14923
|
-
/**
|
|
14924
|
-
* Update sandbox network
|
|
14925
|
-
*
|
|
14926
|
-
* Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting field clears it.
|
|
14927
|
-
*/
|
|
14928
|
-
export const putSandboxV1SandboxesBySandboxIdNetwork = (options) => (options.client ?? client).put({
|
|
14929
|
-
security: [
|
|
14930
|
-
{
|
|
14931
|
-
key: 'sandbox-ApiKeyAuth',
|
|
14932
|
-
name: 'X-API-Key',
|
|
14933
|
-
type: 'apiKey'
|
|
14934
|
-
},
|
|
14935
|
-
{
|
|
14936
|
-
key: 'sandbox-AuthProviderBearerAuth',
|
|
14937
|
-
scheme: 'bearer',
|
|
14938
|
-
type: 'http'
|
|
14939
|
-
},
|
|
14940
|
-
{
|
|
14941
|
-
key: 'sandbox-AuthProviderTeamAuth',
|
|
14942
|
-
name: 'X-Team-ID',
|
|
14943
|
-
type: 'apiKey'
|
|
14944
|
-
},
|
|
14945
|
-
{ name: 'X-Admin-Token', type: 'apiKey' },
|
|
14946
|
-
{
|
|
14947
|
-
key: 'sandbox-AdminTeamAuth',
|
|
14948
|
-
name: 'X-Team-ID',
|
|
14949
|
-
type: 'apiKey'
|
|
14950
|
-
},
|
|
14951
|
-
{
|
|
14952
|
-
key: 'sandbox-AdminJWTAuth',
|
|
14953
|
-
scheme: 'bearer',
|
|
14954
|
-
type: 'http'
|
|
14955
|
-
}
|
|
14956
|
-
],
|
|
14957
|
-
url: '/sandbox/v1/sandboxes/{sandboxID}/network',
|
|
14958
|
-
...options,
|
|
14959
|
-
headers: {
|
|
14960
|
-
'Content-Type': 'application/json',
|
|
14961
|
-
...options.headers
|
|
14962
|
-
}
|
|
14963
|
-
});
|
|
14964
15589
|
/**
|
|
14965
15590
|
* Sandbox logs (v2)
|
|
14966
15591
|
*
|
|
@@ -16958,7 +17583,7 @@ export const vaultListVaults = (options) => (options?.client ?? client).get({
|
|
|
16958
17583
|
/**
|
|
16959
17584
|
* Create vault
|
|
16960
17585
|
*
|
|
16961
|
-
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations.
|
|
17586
|
+
* Create an empty, active vault to hold credentials for your account, with a display name and optional metadata. Use its returned id as vault_id when creating secrets or OAuth authorizations. A session carries its agent's vaults (agent vault_ids, which a department or organization rule's grants also write) plus its own vault_ids, at most 50 together, and it matches their credentials against its MCP servers, so a stored static or oauth credential serves as vault-backed MCP authentication, and it exports their secrets to its machine as environment variables named after the secret, with real values (a service agent's session leaves out OAuth credentials and secrets that declare allowed_hosts; allowed_hosts does not limit what a command does with an exported value). Application vault references are also unavailable; praxis_vault_ref version bindings and secret writes with a vault source return 501, so creating a vault does not yet enable either consumer.
|
|
16962
17587
|
*/
|
|
16963
17588
|
export const vaultCreateVault = (options) => (options.client ?? client).post({
|
|
16964
17589
|
security: [{
|