@deepraxis/sdk 0.2.0-dev.e77a9e4 → 0.2.0-dev.e8560dc

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.
@@ -3696,11 +3696,48 @@ export type BrowserSessionCreateParams = {
3696
3696
  ignoreCertificateErrors?: boolean;
3697
3697
  };
3698
3698
  /**
3699
- * 省略、false 或 [{type: 'none'}] 表示不用代理。一条 {type: 'external', server, username?, password? | password_secret?} 让会话在我们的 Chrome 容器里经这个 HTTP 代理出网(需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED);不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS。其它代理类型返回 501。
3699
+ * 让会话经一个固定的外部 HTTP 代理(如住宅 IP)出网:[{type: 'external', server: 'host:port', username?, password_secret?}];省略、false 或 [{type: 'none'}] 表示不用代理。只能有一个代理条目;密码推荐用 password_secret 引用保管库(只在连接代理主机时兑换),也可以直接给明文 password,二者不能同时出现。带代理的会话一定在我们的 Chrome 容器里运行,需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED;不能与 source.type 为 cloud 或 byob 同用,返回 400 INVALID_PARAMS(格式错误、私网地址、用户名没有密码等同样返回 400,reason 写明原因)。其它代理类型和 socks5 返回 501 PROVIDER_UNSUPPORTED。要让某个账号始终从同一个出口地址出去,把代理绑定在登录态上(contexts 的 proxy),不必每次会话重复传。
3700
3700
  */
3701
- proxies?: boolean | Array<unknown>;
3701
+ proxies?: boolean | [
3702
+ {
3703
+ /**
3704
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
3705
+ */
3706
+ type: 'external';
3707
+ /**
3708
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
3709
+ */
3710
+ server: string;
3711
+ /**
3712
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
3713
+ */
3714
+ username?: string;
3715
+ /**
3716
+ * 代理密码明文,只在这次创建中使用,不会保存;推荐改用 password_secret。与 password_secret 二选一。
3717
+ */
3718
+ password?: string;
3719
+ /**
3720
+ * 推荐:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。与 password 二选一。
3721
+ */
3722
+ password_secret?: {
3723
+ /**
3724
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
3725
+ */
3726
+ vault_id: string;
3727
+ /**
3728
+ * 保管库中该密码的密钥 ID(不是密码本身)。
3729
+ */
3730
+ secret: string;
3731
+ };
3732
+ } | {
3733
+ /**
3734
+ * 固定为 none:不用代理,与省略 proxies 相同。
3735
+ */
3736
+ type: 'none';
3737
+ }
3738
+ ];
3702
3739
  /**
3703
- * 选择浏览器后端。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带代理也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3740
+ * 选择浏览器后端,只有 container 支持外部代理:cloud(Browser Run)和 byob 都不能用代理。{type: 'cloud'}:Browser Run,启动最快、不能用代理、自动化特征可被网站发现。{type: 'container'}:我们自己的 Chrome 容器,可带 proxies(或用登录态绑定的代理),也可不带;组织未开通容器后端时返回 501 PROVIDER_UNSUPPORTED。{type: 'byob', browser: 'byb_…'}:用户自己配对的浏览器,不能与 proxies 或登录态同用。简写 {byob: 'byb_…'} 等同最后一种。省略时按旧规则:带 proxies 进容器,否则 Browser Run。cloud 加代理、未知 type、格式错误都返回 400 INVALID_PARAMS。
3704
3741
  */
3705
3742
  source?: {
3706
3743
  /**
@@ -3774,7 +3811,7 @@ export type BrowserSessionCreateResult = {
3774
3811
  */
3775
3812
  region: 'ap-southeast-1';
3776
3813
  /**
3777
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3814
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3778
3815
  */
3779
3816
  proxyBytes: number;
3780
3817
  /**
@@ -3955,7 +3992,7 @@ export type BrowserSession = {
3955
3992
  */
3956
3993
  region: 'ap-southeast-1';
3957
3994
  /**
3958
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
3995
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
3959
3996
  */
3960
3997
  proxyBytes: number;
3961
3998
  /**
@@ -4114,7 +4151,7 @@ export type BrowserSessionGetResult = {
4114
4151
  */
4115
4152
  region: 'ap-southeast-1';
4116
4153
  /**
4117
- * 会话经代理转发的流量字节数(上行与下行之和);仅容器后端的会话有值,其余后端固定为 0。
4154
+ * 会话经代理链转发的流量字节数(上行与下行之和),容器后端的会话按它计费;Browser Run 和自带浏览器固定为 0,运行中每几分钟更新一次。
4118
4155
  */
4119
4156
  proxyBytes: number;
4120
4157
  /**
@@ -4270,11 +4307,11 @@ export type BrowserSessionGetResult = {
4270
4307
  */
4271
4308
  export type BrowserSessionLiveUrls = {
4272
4309
  /**
4273
- * 会话实时画面的完整跳转地址,携带观看凭证;与 debuggerUrl 相同。
4310
+ * 与 debuggerUrl 相同:会话在 Console 的会话页地址。
4274
4311
  */
4275
4312
  debuggerFullscreenUrl: string;
4276
4313
  /**
4277
- * 会话实时画面的完整跳转地址;直接打开,勿移除查询凭证。
4314
+ * 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
4278
4315
  */
4279
4316
  debuggerUrl: string;
4280
4317
  /**
@@ -4302,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
4302
4339
  */
4303
4340
  faviconUrl: string;
4304
4341
  /**
4305
- * 此标签页实时画面的完整跳转地址,包含观看凭证。
4342
+ * 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
4306
4343
  */
4307
4344
  debuggerUrl: string;
4308
4345
  /**
4309
- * 此标签页实时画面的完整跳转地址,与该页 debuggerUrl 相同。
4346
+ * 与该页 debuggerUrl 相同。
4310
4347
  */
4311
4348
  debuggerFullscreenUrl: string;
4312
4349
  }>;
@@ -4390,6 +4427,36 @@ export type BrowserContextCreateResult = {
4390
4427
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4391
4428
  */
4392
4429
  lastUsedAt?: string;
4430
+ /**
4431
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4432
+ */
4433
+ proxy?: {
4434
+ /**
4435
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4436
+ */
4437
+ type: 'external';
4438
+ /**
4439
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4440
+ */
4441
+ server: string;
4442
+ /**
4443
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4444
+ */
4445
+ username?: string;
4446
+ /**
4447
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4448
+ */
4449
+ password_secret?: {
4450
+ /**
4451
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4452
+ */
4453
+ vault_id: string;
4454
+ /**
4455
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4456
+ */
4457
+ secret: string;
4458
+ };
4459
+ };
4393
4460
  /**
4394
4461
  * Empty compatibility field; context encryption keys are held by the server.
4395
4462
  */
@@ -4450,6 +4517,36 @@ export type BrowserContext = {
4450
4517
  * UTC timestamp when a session last started with this context; absent if it has never been used.
4451
4518
  */
4452
4519
  lastUsedAt?: string;
4520
+ /**
4521
+ * 登录态绑定的固定外部代理(只含保管库引用,不含密码);没有绑定时省略。
4522
+ */
4523
+ proxy?: {
4524
+ /**
4525
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
4526
+ */
4527
+ type: 'external';
4528
+ /**
4529
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
4530
+ */
4531
+ server: string;
4532
+ /**
4533
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
4534
+ */
4535
+ username?: string;
4536
+ /**
4537
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
4538
+ */
4539
+ password_secret?: {
4540
+ /**
4541
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
4542
+ */
4543
+ vault_id: string;
4544
+ /**
4545
+ * 保管库中该密码的密钥 ID(不是密码本身)。
4546
+ */
4547
+ secret: string;
4548
+ };
4549
+ };
4453
4550
  };
4454
4551
  export type BrowserByobPairing = {
4455
4552
  /**
@@ -4583,17 +4680,29 @@ export type BrowserStreamMessage = {
4583
4680
  */
4584
4681
  nextCursor: string | null;
4585
4682
  };
4683
+ /**
4684
+ * The tab in front: the newest one the browser opened, the one a client or a page action last brought to the front, or the fallback tab after the front one closed. null when the session has no tab.
4685
+ */
4686
+ activePageId?: string | null;
4586
4687
  };
4587
4688
  } | {
4588
4689
  event: 'session';
4589
4690
  data: BrowserSession;
4590
4691
  } | {
4591
4692
  event: 'pages';
4592
- data: BrowserSessionLiveUrls;
4693
+ data: BrowserSessionLiveUrls & {
4694
+ /**
4695
+ * The tab in front, sent with every pages message and whenever the front tab moves even if the tab list did not. A viewer shows this tab and never infers its own; null when the session has no tab.
4696
+ */
4697
+ activePageId?: string | null;
4698
+ };
4593
4699
  } | {
4594
4700
  event: 'action';
4595
4701
  data: {
4596
- kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed';
4702
+ /**
4703
+ * page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
4704
+ */
4705
+ kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
4597
4706
  pageId?: string;
4598
4707
  url?: string;
4599
4708
  x?: number;
@@ -12114,6 +12223,19 @@ export type AutomationDefinition = {
12114
12223
  */
12115
12224
  updated_at: string;
12116
12225
  };
12226
+ /**
12227
+ * The draft written on creation, in the shape a read returns: source is required and revision may be omitted.
12228
+ */
12229
+ export type AutomationDraftCreateInput = {
12230
+ /**
12231
+ * Draft source: TypeScript for scripts, YAML for workflows.
12232
+ */
12233
+ source: string;
12234
+ /**
12235
+ * A new definition has no earlier draft, so revision has no meaning here and is ignored; it lets a draft that was read be written back as is.
12236
+ */
12237
+ revision?: string;
12238
+ };
12117
12239
  export type AutomationDefinitionDetail = {
12118
12240
  draft: AutomationDraft;
12119
12241
  /**
@@ -12191,6 +12313,19 @@ export type AutomationDefinitionDetail = {
12191
12313
  */
12192
12314
  updated_at: string;
12193
12315
  };
12316
+ /**
12317
+ * The draft written on update, in the shape a read returns: revision is the concurrency token, and omitting source changes only metadata.
12318
+ */
12319
+ export type AutomationDraftUpdateInput = {
12320
+ /**
12321
+ * The new draft source; omit it to keep the draft source and change only metadata.
12322
+ */
12323
+ source?: string;
12324
+ /**
12325
+ * Concurrency token of the draft: the draft.revision a read returned, which must equal the current draft revision (a mismatch returns 412); the If-Match header is its deprecated alias.
12326
+ */
12327
+ revision?: string;
12328
+ };
12194
12329
  export type AutomationVersion = {
12195
12330
  /**
12196
12331
  * Version id, prefixed scv_ for scripts and wfv_ for workflows.
@@ -12871,7 +13006,9 @@ export type AutomationWait = {
12871
13006
  */
12872
13007
  kind: 'event' | 'timer' | 'child';
12873
13008
  /**
12874
- * Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13009
+ * Deprecated, read status, which holds the same value. Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13010
+ *
13011
+ * @deprecated
12875
13012
  */
12876
13013
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
12877
13014
  /**
@@ -12911,6 +13048,10 @@ export type AutomationWait = {
12911
13048
  * Time the wait point was resolved (RFC 3339 UTC), or null if still open.
12912
13049
  */
12913
13050
  resolved_at: null | string;
13051
+ /**
13052
+ * Wait point status. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13053
+ */
13054
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
12914
13055
  };
12915
13056
  /**
12916
13057
  * Record of one call made during a script run (an action, platform API, script or workflow), ordered by seq.
@@ -13155,7 +13296,7 @@ export type AutomationRunEvent = {
13155
13296
  */
13156
13297
  id: string;
13157
13298
  /**
13158
- * Event source, of the form /automation/v1/runs/{id}.
13299
+ * Event source, of the form /automation/v1/runs/{run_id}.
13159
13300
  */
13160
13301
  source: string;
13161
13302
  /**
@@ -13185,7 +13326,7 @@ export type AutomationRunEvent = {
13185
13326
  */
13186
13327
  id: string;
13187
13328
  /**
13188
- * Event source, of the form /automation/v1/runs/{id}.
13329
+ * Event source, of the form /automation/v1/runs/{run_id}.
13189
13330
  */
13190
13331
  source: string;
13191
13332
  /**
@@ -13215,7 +13356,7 @@ export type AutomationRunEvent = {
13215
13356
  */
13216
13357
  id: string;
13217
13358
  /**
13218
- * Event source, of the form /automation/v1/runs/{id}.
13359
+ * Event source, of the form /automation/v1/runs/{run_id}.
13219
13360
  */
13220
13361
  source: string;
13221
13362
  /**
@@ -13245,7 +13386,7 @@ export type AutomationRunEvent = {
13245
13386
  */
13246
13387
  id: string;
13247
13388
  /**
13248
- * Event source, of the form /automation/v1/runs/{id}.
13389
+ * Event source, of the form /automation/v1/runs/{run_id}.
13249
13390
  */
13250
13391
  source: string;
13251
13392
  /**
@@ -13275,7 +13416,7 @@ export type AutomationRunEvent = {
13275
13416
  */
13276
13417
  id: string;
13277
13418
  /**
13278
- * Event source, of the form /automation/v1/runs/{id}.
13419
+ * Event source, of the form /automation/v1/runs/{run_id}.
13279
13420
  */
13280
13421
  source: string;
13281
13422
  /**
@@ -13372,7 +13513,7 @@ export type AutomationTrigger = {
13372
13513
  */
13373
13514
  input_mode: 'body' | 'envelope';
13374
13515
  /**
13375
- * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{id}/… path.
13516
+ * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{trigger_id}/… path.
13376
13517
  */
13377
13518
  url_hint: string;
13378
13519
  } | null;
@@ -13384,6 +13525,11 @@ export type AutomationTrigger = {
13384
13525
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13385
13526
  */
13386
13527
  owner: string;
13528
+ /**
13529
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13530
+ *
13531
+ * @deprecated
13532
+ */
13387
13533
  state: AutomationTriggerState;
13388
13534
  /**
13389
13535
  * Origin of the trigger. api was created through the API and can be changed and deleted; definition was generated from the schedule in a workflow YAML and can only be paused or resumed, changes return 409 TRIGGER_MANAGED.
@@ -13436,9 +13582,13 @@ export type AutomationTrigger = {
13436
13582
  */
13437
13583
  etag: string;
13438
13584
  /**
13439
- * Returned only by GET /triggers/{id}, omitted from lists. Attributed charges over the preceding 30 days for this trigger's runs and descendants. Runs themselves are free; these are actual charges for capabilities such as models and search called during runs, attributed by call. Unrated usage is included later. Aggregation failure or timeout (1.5 seconds) returns null while details still return 200.
13585
+ * Returned only by GET /triggers/{trigger_id}, omitted from lists. Attributed charges over the preceding 30 days for this trigger's runs and descendants. Runs themselves are free; these are actual charges for capabilities such as models and search called during runs, attributed by call. Unrated usage is included later. Aggregation failure or timeout (1.5 seconds) returns null while details still return 200.
13440
13586
  */
13441
13587
  usage_30d?: AutomationAttributedUsage | null;
13588
+ /**
13589
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13590
+ */
13591
+ status: AutomationTriggerState;
13442
13592
  };
13443
13593
  export type AutomationTriggerCreateResult = {
13444
13594
  /**
@@ -13492,7 +13642,7 @@ export type AutomationTriggerCreateResult = {
13492
13642
  */
13493
13643
  input_mode: 'body' | 'envelope';
13494
13644
  /**
13495
- * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{id}/… path.
13645
+ * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{trigger_id}/… path.
13496
13646
  */
13497
13647
  url_hint: string;
13498
13648
  } | null;
@@ -13504,6 +13654,11 @@ export type AutomationTriggerCreateResult = {
13504
13654
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13505
13655
  */
13506
13656
  owner: string;
13657
+ /**
13658
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13659
+ *
13660
+ * @deprecated
13661
+ */
13507
13662
  state: AutomationTriggerState;
13508
13663
  /**
13509
13664
  * Origin of the trigger. api was created through the API and can be changed and deleted; definition was generated from the schedule in a workflow YAML and can only be paused or resumed, changes return 409 TRIGGER_MANAGED.
@@ -13556,13 +13711,19 @@ export type AutomationTriggerCreateResult = {
13556
13711
  */
13557
13712
  etag: string;
13558
13713
  /**
13559
- * Always null in a create response; the 30-day usage is only returned by GET /triggers/{id}.
13714
+ * Always null in a create response; the 30-day usage is only returned by GET /triggers/{trigger_id}.
13560
13715
  */
13561
13716
  usage_30d?: AutomationAttributedUsage | null;
13562
13717
  /**
13563
13718
  * Returned only on webhook creation or rotation.
13564
13719
  */
13565
13720
  webhook_url?: string;
13721
+ /**
13722
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13723
+ *
13724
+ * @deprecated
13725
+ */
13726
+ status: AutomationTriggerState;
13566
13727
  };
13567
13728
  /**
13568
13729
  * A duration: an ISO 8601 string such as PT5M, or an object with days, hours, minutes, seconds and milliseconds. It must convert to a whole number of milliseconds between 60000 and 31622400000 (1 minute to 366 days).
@@ -13742,7 +13903,7 @@ export type AutomationHumanTask = {
13742
13903
  */
13743
13904
  initiator: {
13744
13905
  /**
13745
- * Initiator type: user, api_key, agent, run (a parent run) or trigger.
13906
+ * Initiator type: user, api_key, agent, run (a parent run), trigger or application.
13746
13907
  */
13747
13908
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
13748
13909
  /**
@@ -14294,6 +14455,95 @@ export type CanvasLibraryVersionPage = {
14294
14455
  */
14295
14456
  next_cursor: string | null;
14296
14457
  };
14458
+ /**
14459
+ * Everything needed to fill one step of a canvas process; a read of the document that stores nothing.
14460
+ */
14461
+ export type CanvasProcessStepBrief = {
14462
+ version: CanvasVersion;
14463
+ /**
14464
+ * The process this step belongs to.
14465
+ */
14466
+ process: {
14467
+ /**
14468
+ * Node id of the process frame or instance.
14469
+ */
14470
+ id: string;
14471
+ /**
14472
+ * Process name from its metadata.
14473
+ */
14474
+ name: string;
14475
+ };
14476
+ /**
14477
+ * The step and what is asked of it.
14478
+ */
14479
+ step: {
14480
+ /**
14481
+ * Step key within the process.
14482
+ */
14483
+ step: string;
14484
+ /**
14485
+ * Node id of the step frame; inside an instance it is a path such as inst/frame.
14486
+ */
14487
+ node_id: string;
14488
+ /**
14489
+ * Step title shown on the block.
14490
+ */
14491
+ title: string;
14492
+ /**
14493
+ * Derived from the document; filled means at least one output points at the step (an each step with expected needs that many), ready means unfilled with every needed step filled, waiting means otherwise; the state never blocks a write.
14494
+ */
14495
+ state: 'waiting' | 'ready' | 'filled';
14496
+ /**
14497
+ * For an each step, how many outputs the filler decided on; omitted when none was set.
14498
+ */
14499
+ expected?: number;
14500
+ /**
14501
+ * The requirement as stored in metadata.requirement; output says what to produce, rules are instructions where a skill:name entry names a skill to follow, and needs, back and each carry when and by text for you to read, never evaluated.
14502
+ */
14503
+ requirement: {
14504
+ [key: string]: unknown;
14505
+ };
14506
+ };
14507
+ /**
14508
+ * This production's linked materials for the step, resolved; dangling links are dropped.
14509
+ */
14510
+ materials: Array<CanvasProcessElement>;
14511
+ /**
14512
+ * The process's shared context elements, such as the series bible, resolved.
14513
+ */
14514
+ shared: Array<CanvasProcessElement>;
14515
+ /**
14516
+ * One entry per step in needs, in needs order, with that step's current outputs.
14517
+ */
14518
+ upstream: Array<{
14519
+ /**
14520
+ * Key of the upstream step.
14521
+ */
14522
+ step: string;
14523
+ /**
14524
+ * Title of the upstream step.
14525
+ */
14526
+ title: string;
14527
+ /**
14528
+ * Derived state of the upstream step; filled means it has its outputs, ready means unfilled with its own needs filled, waiting means otherwise.
14529
+ */
14530
+ state: 'waiting' | 'ready' | 'filled';
14531
+ /**
14532
+ * Outputs of the upstream step, resolved.
14533
+ */
14534
+ outputs: Array<CanvasProcessElement>;
14535
+ }>;
14536
+ /**
14537
+ * Elements that already answer this step through metadata.output; check them before adding more.
14538
+ */
14539
+ outputs: Array<CanvasProcessElement>;
14540
+ /**
14541
+ * Problems found in the whole process, such as dangling-material, dangling-shared, orphan-output, duplicate-step, unknown-step, needs-cycle and invalid-requirement; each has a kind plus the step or node it names.
14542
+ */
14543
+ issues: Array<{
14544
+ [key: string]: unknown;
14545
+ }>;
14546
+ };
14297
14547
  export type CanvasLibraryPage = {
14298
14548
  /**
14299
14549
  * Libraries on this page, most recently published first.
@@ -20039,6 +20289,10 @@ export type DevopsPullRequest = {
20039
20289
  * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
20040
20290
  */
20041
20291
  mergeableState: string;
20292
+ /**
20293
+ * Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
20294
+ */
20295
+ notify?: string;
20042
20296
  /**
20043
20297
  * The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
20044
20298
  */
@@ -20715,6 +20969,102 @@ export type DevopsUnitTransitionPage = {
20715
20969
  */
20716
20970
  nextPageToken: string;
20717
20971
  };
20972
+ /**
20973
+ * The tenant event types.
20974
+ */
20975
+ export type EventsEventTypePage = {
20976
+ /**
20977
+ * One entry per type and schema version.
20978
+ */
20979
+ data: Array<EventsEventType>;
20980
+ /**
20981
+ * Always null today; the list is one page.
20982
+ */
20983
+ next_cursor: string | null;
20984
+ /**
20985
+ * Always false today; the list is one page.
20986
+ */
20987
+ has_more: boolean;
20988
+ };
20989
+ /**
20990
+ * What to subscribe to. The organization and the sink come from your credential and are not fields.
20991
+ */
20992
+ export type EventsCreateEventSubscriptionInput = {
20993
+ /**
20994
+ * The tenant event types to hear about, from events.types.list; an event of any one of them can match.
20995
+ */
20996
+ types: Array<string>;
20997
+ /**
20998
+ * Conditions that must all hold for an event to match; omit or leave empty to match every event of the types.
20999
+ */
21000
+ filters?: Array<EventsEventSubscriptionFilter>;
21001
+ /**
21002
+ * The inbox address that receives the letters, agent:<id> or human:<id>. Today only the caller's own address is accepted, which is also the default.
21003
+ */
21004
+ sink?: string;
21005
+ /**
21006
+ * True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour.
21007
+ */
21008
+ once?: boolean;
21009
+ /**
21010
+ * When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now.
21011
+ */
21012
+ expires_at?: string;
21013
+ };
21014
+ /**
21015
+ * One event subscription.
21016
+ */
21017
+ export type EventsEventSubscription = {
21018
+ /**
21019
+ * The subscription id, esub_...; use it to retrieve or delete it.
21020
+ */
21021
+ id: string;
21022
+ /**
21023
+ * The tenant event types it listens to.
21024
+ */
21025
+ types: Array<string>;
21026
+ /**
21027
+ * The conditions that must all hold; empty means every event of the types.
21028
+ */
21029
+ filters: Array<EventsEventSubscriptionFilter>;
21030
+ /**
21031
+ * The inbox address the letters go to, agent:<id> or human:<id>.
21032
+ */
21033
+ sink: string;
21034
+ /**
21035
+ * Whether the subscription ends after its first letter.
21036
+ */
21037
+ once: boolean;
21038
+ /**
21039
+ * When the subscription ends and stops matching, RFC 3339.
21040
+ */
21041
+ expires_at: string;
21042
+ /**
21043
+ * When the subscription was created, RFC 3339.
21044
+ */
21045
+ created_at: string;
21046
+ /**
21047
+ * The address that created it, agent:<id> or human:<id>; only that caller can see it.
21048
+ */
21049
+ created_by: string;
21050
+ };
21051
+ /**
21052
+ * Your live subscriptions.
21053
+ */
21054
+ export type EventsEventSubscriptionPage = {
21055
+ /**
21056
+ * The subscriptions, at most limit.
21057
+ */
21058
+ data: Array<EventsEventSubscription>;
21059
+ /**
21060
+ * Always null today; the list is one page.
21061
+ */
21062
+ next_cursor: string | null;
21063
+ /**
21064
+ * Always false today; the list is one page.
21065
+ */
21066
+ has_more: boolean;
21067
+ };
20718
21068
  export type KnowledgeNativeVectorStore = {
20719
21069
  /**
20720
21070
  * Resource ID.
@@ -21340,7 +21690,7 @@ export type MediaLibrary = {
21340
21690
  };
21341
21691
  export type MediaMediaError = {
21342
21692
  error: {
21343
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21693
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
21344
21694
  message: string;
21345
21695
  details: string | null;
21346
21696
  };
@@ -22869,6 +23219,107 @@ export type MediaVoiceDesignCreateInput = {
22869
23219
  */
22870
23220
  description?: string;
22871
23221
  };
23222
+ /**
23223
+ * A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
23224
+ */
23225
+ export type MediaWork = {
23226
+ /**
23227
+ * Always work.
23228
+ */
23229
+ object: 'work';
23230
+ /**
23231
+ * Work id (wrk_…).
23232
+ */
23233
+ id: string;
23234
+ /**
23235
+ * Library the work belongs to.
23236
+ */
23237
+ library_id: MediaLibraryId;
23238
+ /**
23239
+ * The work’s kind.
23240
+ */
23241
+ kind: MediaWorkKind;
23242
+ /**
23243
+ * The title, copied from body.title.
23244
+ */
23245
+ title: string;
23246
+ /**
23247
+ * Groups the platform versions of one story; null when unset.
23248
+ */
23249
+ series: string | null;
23250
+ /**
23251
+ * The kind’s body as stored.
23252
+ */
23253
+ body: MediaWorkBody;
23254
+ /**
23255
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23256
+ */
23257
+ custom: MediaWorkCustom;
23258
+ /**
23259
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23260
+ */
23261
+ missing: Array<string>;
23262
+ /**
23263
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23264
+ */
23265
+ revision: number;
23266
+ /**
23267
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23268
+ */
23269
+ created_by: string;
23270
+ /**
23271
+ * When the work was created.
23272
+ */
23273
+ created_at: MediaIsoTimestamp;
23274
+ /**
23275
+ * When the work last changed.
23276
+ */
23277
+ updated_at: MediaIsoTimestamp;
23278
+ /**
23279
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23280
+ */
23281
+ assets?: {
23282
+ [key: string]: MediaWorkAsset;
23283
+ };
23284
+ };
23285
+ /**
23286
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23287
+ */
23288
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23289
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23290
+ export type MediaWorkCustom = {
23291
+ [key: string]: unknown;
23292
+ };
23293
+ /**
23294
+ * A page of work summaries.
23295
+ */
23296
+ export type MediaWorkPage = {
23297
+ /**
23298
+ * Works in this page, most recently changed first.
23299
+ */
23300
+ data: Array<MediaWorkSummary>;
23301
+ /**
23302
+ * Cursor for the next page, or null when there are no more works.
23303
+ */
23304
+ next_cursor: string | null;
23305
+ };
23306
+ /**
23307
+ * The answer to deleting a work.
23308
+ */
23309
+ export type MediaDeletedWork = {
23310
+ /**
23311
+ * Id of the deleted work.
23312
+ */
23313
+ id: string;
23314
+ /**
23315
+ * Always work.
23316
+ */
23317
+ object: 'work';
23318
+ /**
23319
+ * Always true: the work is deleted; every asset it named is unchanged.
23320
+ */
23321
+ deleted: true;
23322
+ };
22872
23323
  /**
22873
23324
  * One page of type registrations; types are few enough that this face returns them in a single page.
22874
23325
  */
@@ -35003,6 +35454,14 @@ export type SandboxSandboxNetworkConfig = {
35003
35454
  rules?: {
35004
35455
  [key: string]: Array<SandboxSandboxNetworkRule>;
35005
35456
  };
35457
+ /**
35458
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
35459
+ */
35460
+ staticEgressIp?: boolean;
35461
+ /**
35462
+ * Own face, read-only: the fixed public egress IP of a sandbox created with staticEgressIp: true, present once the machine has bound it; add this address to the IP allowlist of the service you call (for example a WeCom trusted IP list). Absent on a sandbox that did not ask for a static IP, because its public address can change.
35463
+ */
35464
+ readonly egressIp?: string;
35006
35465
  };
35007
35466
  /**
35008
35467
  * Sandbox lifecycle policy returned by sandbox info.
@@ -36713,11 +37172,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36713
37172
  */
36714
37173
  export type AutomationSubject = {
36715
37174
  /**
36716
- * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
37175
+ * Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
36717
37176
  */
36718
37177
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36719
37178
  /**
36720
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
37179
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36721
37180
  */
36722
37181
  id: string;
36723
37182
  };
@@ -36760,7 +37219,7 @@ export type AutomationDraft = {
36760
37219
  */
36761
37220
  source: string;
36762
37221
  /**
36763
- * Draft revision tag (ETag); send it as expected_draft_revision when publishing or as If-Match when updating the draft; a mismatch returns 412.
37222
+ * Draft revision tag (ETag); send it back unchanged as draft.revision when updating the draft or publishing, and a mismatch returns 412.
36764
37223
  */
36765
37224
  revision: string;
36766
37225
  /**
@@ -37287,6 +37746,60 @@ export type CanvasLibraryVersion = {
37287
37746
  */
37288
37747
  removed: Array<CanvasComponentRef>;
37289
37748
  };
37749
+ /**
37750
+ * One canvas element resolved for a brief; which fields besides kind and node_id are present depends on kind.
37751
+ */
37752
+ export type CanvasProcessElement = {
37753
+ /**
37754
+ * What the element is; text carries content, image carries file_id, embed carries ref, other carries type, and html carries only its name because its source is large.
37755
+ */
37756
+ kind: 'text' | 'image' | 'html' | 'embed' | 'other';
37757
+ /**
37758
+ * Node id of the element on this canvas; use it with nodes.list to read the full node.
37759
+ */
37760
+ node_id: string;
37761
+ /**
37762
+ * The node's name, when it has one.
37763
+ */
37764
+ name?: string;
37765
+ /**
37766
+ * Text of a text node.
37767
+ */
37768
+ content?: string;
37769
+ /**
37770
+ * Platform file id of an image fill; read the picture through the file domain.
37771
+ */
37772
+ file_id?: string;
37773
+ /**
37774
+ * Reference of an embed node's platform object; read the object from its own domain, as the canvas stores no copy of it.
37775
+ */
37776
+ ref?: {
37777
+ /**
37778
+ * Object type such as media-asset or media-work.
37779
+ */
37780
+ object: string;
37781
+ /**
37782
+ * Object id inside its domain.
37783
+ */
37784
+ id: string;
37785
+ /**
37786
+ * Optional position inside the object, such as a timestamp or page.
37787
+ */
37788
+ anchor?: string;
37789
+ };
37790
+ /**
37791
+ * How an embed node is drawn on the canvas, one of card, embed or inline.
37792
+ */
37793
+ appearance?: string;
37794
+ /**
37795
+ * Node type of an element that is none of the other kinds.
37796
+ */
37797
+ type?: string;
37798
+ /**
37799
+ * For an output of an each step, which item it answers, such as a section name.
37800
+ */
37801
+ item?: string;
37802
+ };
37290
37803
  export type CanvasLibrarySummary = {
37291
37804
  /**
37292
37805
  * The library's canvas id; use it as canvas_id in library_versions and publish.
@@ -40276,6 +40789,10 @@ export type DevopsUnitGit = {
40276
40789
  * The ref holding the unit's work in progress, or null when none was recorded.
40277
40790
  */
40278
40791
  wipRef: string | null;
40792
+ /**
40793
+ * The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
40794
+ */
40795
+ remoteHead?: string;
40279
40796
  /**
40280
40797
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40281
40798
  */
@@ -40383,6 +40900,71 @@ export type DevopsCleanupEntry = {
40383
40900
  */
40384
40901
  error: string | null;
40385
40902
  };
40903
+ /**
40904
+ * One tenant event type at one schema version.
40905
+ */
40906
+ export type EventsEventType = {
40907
+ /**
40908
+ * The event type name, for example automation.run.finished; pass it in the types of subscriptions.create.
40909
+ */
40910
+ type: string;
40911
+ /**
40912
+ * The version of this type's data schema. Within one version fields are only added; a breaking change publishes a new version, and both are listed side by side for a while.
40913
+ */
40914
+ schemaversion: number;
40915
+ /**
40916
+ * What the event means and when it is published.
40917
+ */
40918
+ description?: string;
40919
+ /**
40920
+ * JSON Schema of the event's data, the body of the letter a subscription writes.
40921
+ */
40922
+ data_schema: {
40923
+ [key: string]: unknown;
40924
+ };
40925
+ /**
40926
+ * The names a filter of this type may use, always subject and actor, plus data.<field> for each top-level field of data_schema.
40927
+ */
40928
+ filterable: Array<string>;
40929
+ };
40930
+ /**
40931
+ * An RFC 9457 problem; every non-2xx response of this face has this shape.
40932
+ */
40933
+ export type EventsEventsProblem = {
40934
+ /**
40935
+ * The HTTP status of the response.
40936
+ */
40937
+ status: number;
40938
+ /**
40939
+ * Machine-readable failure, such as INVALID_PARAMS, UNSUPPORTED_FILTER_DIALECT, SUBSCRIPTION_NOT_FOUND or PROVIDER_UNAVAILABLE.
40940
+ */
40941
+ code: string;
40942
+ /**
40943
+ * Human-readable reason; it names the offending field and what to do.
40944
+ */
40945
+ message: string;
40946
+ /**
40947
+ * True when repeating the same call can succeed, as for PROVIDER_UNAVAILABLE; false when the request itself must change.
40948
+ */
40949
+ retryable?: boolean;
40950
+ };
40951
+ /**
40952
+ * One condition on an event. Write exactly one dialect key: exact (the named attribute equals the value) or prefix (it starts with the value). The attribute is subject, actor or data.<field>.
40953
+ */
40954
+ export type EventsEventSubscriptionFilter = {
40955
+ /**
40956
+ * The attribute equals the value, for example { subject: "runs/run_1" } or { "data.status": "faulted" }.
40957
+ */
40958
+ exact?: {
40959
+ [key: string]: string;
40960
+ };
40961
+ /**
40962
+ * The attribute starts with the value, for example { subject: "runs/" }.
40963
+ */
40964
+ prefix?: {
40965
+ [key: string]: string;
40966
+ };
40967
+ };
40386
40968
  /**
40387
40969
  * Counts of files still attached to the store or batch, grouped by ingestion status.
40388
40970
  */
@@ -41445,7 +42027,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41445
42027
  * Edit operations: the change this step applied to its parent asset.
41446
42028
  */
41447
42029
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
41448
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
42030
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41449
42031
  /**
41450
42032
  * State of a requested generation output.
41451
42033
  */
@@ -41791,6 +42373,192 @@ export type MediaHlsRendition = {
41791
42373
  state: MediaHlsRenditionState;
41792
42374
  };
41793
42375
  export type MediaVoiceConsentId = string;
42376
+ /**
42377
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42378
+ */
42379
+ export type MediaWorkAsset = {
42380
+ /**
42381
+ * The asset’s material type, such as image or video.
42382
+ */
42383
+ type: MediaMaterialType;
42384
+ /**
42385
+ * Short-lived delivery URL of the asset.
42386
+ */
42387
+ url: string;
42388
+ /**
42389
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42390
+ */
42391
+ thumbnail_url: string;
42392
+ /**
42393
+ * Width in pixels when known.
42394
+ */
42395
+ width?: number;
42396
+ /**
42397
+ * Height in pixels when known.
42398
+ */
42399
+ height?: number;
42400
+ /**
42401
+ * The asset’s display name.
42402
+ */
42403
+ display_name: string;
42404
+ };
42405
+ /**
42406
+ * Body of a gallery (图文). Order is the order of items.
42407
+ */
42408
+ export type MediaGalleryBody = {
42409
+ /**
42410
+ * Title, 1 to 100 characters.
42411
+ */
42412
+ title: string;
42413
+ /**
42414
+ * Body text, at most 10000 characters.
42415
+ */
42416
+ text?: string;
42417
+ /**
42418
+ * Topics without the # sign, at most 30 of up to 40 characters.
42419
+ */
42420
+ topics?: Array<string>;
42421
+ /**
42422
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42423
+ */
42424
+ cover?: string;
42425
+ /**
42426
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42427
+ */
42428
+ items: Array<MediaGalleryItem>;
42429
+ /**
42430
+ * Display style; defaults to xiaohongshu in the Console.
42431
+ */
42432
+ style?: MediaWorkStyle;
42433
+ };
42434
+ /**
42435
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42436
+ */
42437
+ export type MediaArticleBody = {
42438
+ /**
42439
+ * Title, 1 to 200 characters.
42440
+ */
42441
+ title: string;
42442
+ /**
42443
+ * Optional summary or digest, at most 500 characters.
42444
+ */
42445
+ summary?: string;
42446
+ /**
42447
+ * Optional author name, at most 60 characters.
42448
+ */
42449
+ author?: string;
42450
+ /**
42451
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42452
+ */
42453
+ body: string;
42454
+ /**
42455
+ * Optional cover: an image or sticker asset of this library.
42456
+ */
42457
+ cover?: string;
42458
+ /**
42459
+ * Display style; defaults to wechat_mp in the Console.
42460
+ */
42461
+ style?: MediaWorkStyle;
42462
+ };
42463
+ /**
42464
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42465
+ */
42466
+ export type MediaProductListingBody = {
42467
+ /**
42468
+ * Listing title, 1 to 200 characters.
42469
+ */
42470
+ title: string;
42471
+ /**
42472
+ * Selling points in order, at most 10 of up to 100 characters.
42473
+ */
42474
+ selling_points?: Array<string>;
42475
+ /**
42476
+ * Parameter rows in order, at most 50.
42477
+ */
42478
+ attributes?: Array<MediaListingAttribute>;
42479
+ /**
42480
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42481
+ */
42482
+ main: Array<string>;
42483
+ /**
42484
+ * Detail images in order, at most 100 image or sticker assets of this library.
42485
+ */
42486
+ detail?: Array<string>;
42487
+ /**
42488
+ * SKUs in order, at most 200.
42489
+ */
42490
+ skus?: Array<MediaListingSku>;
42491
+ /**
42492
+ * Optional product element (material_type product) this listing shows.
42493
+ */
42494
+ product?: string;
42495
+ /**
42496
+ * Display style; defaults to generic in the Console.
42497
+ */
42498
+ style?: MediaWorkStyle;
42499
+ };
42500
+ /**
42501
+ * Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
42502
+ */
42503
+ export type MediaBlocksBody = {
42504
+ /**
42505
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42506
+ */
42507
+ title: string;
42508
+ /**
42509
+ * Optional Editor.js save time in milliseconds, kept as sent.
42510
+ */
42511
+ time?: number;
42512
+ /**
42513
+ * The blocks in order, 1 to 500.
42514
+ */
42515
+ blocks: Array<MediaEditorBlock>;
42516
+ /**
42517
+ * Optional Editor.js version string, kept as sent.
42518
+ */
42519
+ version?: string;
42520
+ };
42521
+ /**
42522
+ * One work in a list.
42523
+ */
42524
+ export type MediaWorkSummary = {
42525
+ /**
42526
+ * Always work.
42527
+ */
42528
+ object: 'work';
42529
+ /**
42530
+ * Work id (wrk_…).
42531
+ */
42532
+ id: string;
42533
+ /**
42534
+ * The work’s kind.
42535
+ */
42536
+ kind: MediaWorkKind;
42537
+ /**
42538
+ * The work’s title.
42539
+ */
42540
+ title: string;
42541
+ /**
42542
+ * The work’s series, or null.
42543
+ */
42544
+ series: string | null;
42545
+ /**
42546
+ * Short-lived URL of the cover picture, or null when it is missing.
42547
+ */
42548
+ cover_url: string | null;
42549
+ /**
42550
+ * How many distinct assets the body orders, cover and product element excluded.
42551
+ */
42552
+ item_count: number;
42553
+ /**
42554
+ * How many referenced assets have been deleted since.
42555
+ */
42556
+ missing_count: number;
42557
+ /**
42558
+ * When the work last changed.
42559
+ */
42560
+ updated_at: MediaIsoTimestamp;
42561
+ };
41794
42562
  /**
41795
42563
  * A kind of entity the graph accepts, for example a file or a customer.
41796
42564
  */
@@ -48139,7 +48907,7 @@ export type DevopsPlannedSkip = {
48139
48907
  /**
48140
48908
  * Why it is left out, which is what tells a deliberate skip apart from an oversight.
48141
48909
  */
48142
- reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'artifact_identical';
48910
+ reason: 'unchanged' | 'newer_checkpoint' | 'not_requested' | 'callee_excluded' | 'not_deployed_upstream' | 'artifact_identical';
48143
48911
  };
48144
48912
  /**
48145
48913
  * The migrations one target has pending, as the plan found them.
@@ -48775,7 +49543,7 @@ export type MediaSemanticMatch = {
48775
49543
  /**
48776
49544
  * Type of change recorded for a library, asset, processing task, search index or batch.
48777
49545
  */
48778
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
49546
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
48779
49547
  /**
48780
49548
  * One picture an element names, with the word the caller uses for that view.
48781
49549
  */
@@ -48871,6 +49639,75 @@ export type MediaGenerationCapabilityModel = {
48871
49639
  * Readiness of one rung or of the ladder it is part of.
48872
49640
  */
48873
49641
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49642
+ /**
49643
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49644
+ */
49645
+ export type MediaGalleryItem = {
49646
+ /**
49647
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49648
+ */
49649
+ asset_id: string;
49650
+ /**
49651
+ * Optional caption for this picture, at most 1000 characters.
49652
+ */
49653
+ caption?: string;
49654
+ } | {
49655
+ /**
49656
+ * A text segment shown between pictures, at most 1000 characters.
49657
+ */
49658
+ text: string;
49659
+ };
49660
+ /**
49661
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49662
+ */
49663
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49664
+ /**
49665
+ * One parameter row of a listing.
49666
+ */
49667
+ export type MediaListingAttribute = {
49668
+ /**
49669
+ * Parameter name such as 容量, at most 40 characters.
49670
+ */
49671
+ name: string;
49672
+ /**
49673
+ * Parameter value such as 500ml, at most 200 characters.
49674
+ */
49675
+ value: string;
49676
+ };
49677
+ /**
49678
+ * One SKU of a listing.
49679
+ */
49680
+ export type MediaListingSku = {
49681
+ /**
49682
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49683
+ */
49684
+ spec: {
49685
+ [key: string]: string;
49686
+ };
49687
+ /**
49688
+ * Optional picture of this SKU: an image or sticker asset of this library.
49689
+ */
49690
+ asset_id?: string;
49691
+ };
49692
+ /**
49693
+ * One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
49694
+ */
49695
+ export type MediaEditorBlock = {
49696
+ /**
49697
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49698
+ */
49699
+ id: string;
49700
+ /**
49701
+ * The official Editor.js block type.
49702
+ */
49703
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49704
+ /**
49705
+ * The block’s data in that type’s Editor.js shape.
49706
+ */
49707
+ data: {
49708
+ [key: string]: unknown;
49709
+ };
49710
+ };
48874
49711
  /**
48875
49712
  * Auto-resume enabled flag for paused sandboxes. Default false.
48876
49713
  */
@@ -50822,7 +51659,7 @@ export type PraxisSdkSsePostModelV1Messages = {
50822
51659
  };
50823
51660
  export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
50824
51661
  export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
50825
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51662
+ export type PraxisSdkSseGetAutomationV1RunsRunIdEvents = ({
50826
51663
  /**
50827
51664
  * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data.
50828
51665
  */
@@ -50855,7 +51692,7 @@ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
50855
51692
  [key: string]: unknown;
50856
51693
  };
50857
51694
  };
50858
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
51695
+ export type PraxisSdkSseGetAutomationV1RunsRunIdLogs = ({
50859
51696
  /**
50860
51697
  * SSE event name: log, one log line is carried in data.
50861
51698
  */
@@ -50994,6 +51831,58 @@ export type UpdateMediaPipelineRequestWritable = {
50994
51831
  * Models to use for completion
50995
51832
  */
50996
51833
  export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
51834
+ export type SandboxSandboxDetailWritable = {
51835
+ /**
51836
+ * Identifier of the template from which is the sandbox created
51837
+ */
51838
+ templateID: string;
51839
+ /**
51840
+ * Alias of the template
51841
+ */
51842
+ alias?: string;
51843
+ /**
51844
+ * Identifier of the sandbox
51845
+ */
51846
+ sandboxID: string;
51847
+ /**
51848
+ * Identifier of the client
51849
+ *
51850
+ * @deprecated
51851
+ */
51852
+ clientID: string;
51853
+ /**
51854
+ * Time when the sandbox was started
51855
+ */
51856
+ startedAt: string;
51857
+ /**
51858
+ * Time when the sandbox will expire
51859
+ */
51860
+ endAt: string;
51861
+ envdVersion: SandboxEnvdVersion;
51862
+ /**
51863
+ * Access token used for envd communication
51864
+ */
51865
+ envdAccessToken?: string;
51866
+ /**
51867
+ * Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
51868
+ */
51869
+ allowInternetAccess?: boolean;
51870
+ /**
51871
+ * Base domain where the sandbox traffic is accessible
51872
+ */
51873
+ domain?: string;
51874
+ cpuCount: SandboxCpuCount;
51875
+ memoryMB: SandboxMemoryMb;
51876
+ diskSizeMB: SandboxDiskSizeMb;
51877
+ metadata?: SandboxSandboxMetadata;
51878
+ state: SandboxSandboxState;
51879
+ network?: SandboxSandboxNetworkConfigWritable;
51880
+ lifecycle?: SandboxSandboxLifecycle;
51881
+ /**
51882
+ * Volumes mounted into the sandbox.
51883
+ */
51884
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
51885
+ };
50997
51886
  /**
50998
51887
  * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
50999
51888
  */
@@ -51573,6 +52462,94 @@ export type MediaSemanticSearchResultWritable = {
51573
52462
  */
51574
52463
  not_ready_excluded: number;
51575
52464
  };
52465
+ /**
52466
+ * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
52467
+ */
52468
+ export type SandboxNewSandboxV2Writable = {
52469
+ /**
52470
+ * Identifier of the required template
52471
+ */
52472
+ templateID: string;
52473
+ /**
52474
+ * Lifetime of the new sandbox in seconds. Defaults to 300 seconds when omitted.
52475
+ */
52476
+ timeout?: number;
52477
+ /**
52478
+ * Lifecycle declaration on the E2B-compatible face. true creates a persistent sandbox that pauses at its timeout and can be resumed; false or absent creates an ephemeral sandbox that ends at its timeout and keeps nothing. Keep true only for long-lived computers. The own face declares with ephemeral instead.
52479
+ */
52480
+ autoPause?: boolean;
52481
+ /**
52482
+ * Controls the snapshot kind taken when the sandbox auto-pauses on timeout (only relevant when autoPause is true). When false, the auto-pause drops the in-memory state and persists only the filesystem (a filesystem-only snapshot); resuming it cold-boots (reboots) the sandbox from disk. Such a snapshot cannot be auto-resumed by traffic and must be resumed explicitly, so it cannot be combined with autoResume. Defaults to true (full memory snapshot).
52483
+ */
52484
+ autoPauseMemory?: boolean;
52485
+ autoResume?: SandboxSandboxAutoResumeConfig;
52486
+ /**
52487
+ * Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOut to 0.0.0.0/0 in the network config.
52488
+ */
52489
+ allow_internet_access?: boolean;
52490
+ network?: SandboxSandboxNetworkConfigWritable;
52491
+ metadata?: SandboxSandboxMetadata;
52492
+ envVars?: SandboxEnvVars;
52493
+ mcp?: SandboxMcp;
52494
+ iam?: SandboxSandboxIam;
52495
+ /**
52496
+ * Volumes to mount into the sandbox, each with the volume name and the path inside the sandbox.
52497
+ */
52498
+ volumeMounts?: Array<SandboxSandboxVolumeMount>;
52499
+ /**
52500
+ * Own face, required unless sku is named: true for an ephemeral sandbox (ends at its timeout, never pauses, cannot be snapshotted), false for a persistent one (pauses, resumes, snapshots, mounts volumes). Leaving it out returns INVALID_PARAMS.
52501
+ */
52502
+ ephemeral?: boolean;
52503
+ /**
52504
+ * Own face: the machine size, a SKU id such as base-2c4g or, for an android phone, android-2c4g. Omitted, the template's default size is used.
52505
+ */
52506
+ size?: string;
52507
+ /**
52508
+ * Own face: a display name for the sandbox, 1 to 64 characters. Omitted, one is generated from the template.
52509
+ */
52510
+ name?: string;
52511
+ /**
52512
+ * Own face, android phones only: keep the create open until the phone is running or 55 seconds have passed since the request arrived; running out is not an error and answers the state reached.
52513
+ */
52514
+ waitForReady?: boolean;
52515
+ /**
52516
+ * Own face: what happens at the timeout. pause needs ephemeral: false; must agree with autoPause when both are sent.
52517
+ */
52518
+ onExpire?: 'kill' | 'pause';
52519
+ /**
52520
+ * Own face, persistent sandboxes only: pause after this many milliseconds without activity; null turns the idle pause off.
52521
+ */
52522
+ idleTimeout?: number;
52523
+ /**
52524
+ * Own face, persistent sandboxes only: whose activity resets idleTimeout. traffic (default) counts data-plane calls, preview traffic and live processes; caller counts only your own control-plane calls.
52525
+ */
52526
+ idleActivity?: 'traffic' | 'caller';
52527
+ /**
52528
+ * Own face: a demand-profile SKU <kind>.<image>.<size>, such as run.document.medium (someone waits; starts fast), job.base.large (background work that must not be cut off), batch.base.large (retried work that may be reclaimed) or computer.base.medium (keeps its disk). It fixes ephemeral, interruptible, size and the template, so those may be left out; any of them you also send must agree with it, otherwise the create fails with INVALID_PARAMS naming the field. The sandbox answers it back as sku and as the read-only label praxis.sku.
52529
+ */
52530
+ sku?: string;
52531
+ /**
52532
+ * Own face: the kind of sandbox you need, when you do not name a full sku. The sandbox completes <kind>.<image>.<size> from the template you start (its family, or custom for your own environment or snapshot) and the size you send, or medium. run is for work someone waits for (starts fast), job is background work that must not be cut off, batch is retried work that may be reclaimed (spot capacity), computer keeps its disk, and compat is the E2B-compatible persistent series. The kind fixes ephemeral and interruptible, so leave those out; if you also send them, or a sku of another kind, the create fails with INVALID_PARAMS naming the field. The light template always starts the light shell, whatever the kind says.
52533
+ */
52534
+ kind?: 'run' | 'job' | 'batch' | 'computer' | 'compat';
52535
+ /**
52536
+ * Own face, ephemeral sandboxes only: true says this sandbox may be reclaimed while it runs (a build or test you retry), which lets it run on cheaper spot capacity. A reclaimed sandbox ends with PROVIDER_FAILED; create it again. Absent or false keeps the usual capacity.
52537
+ */
52538
+ interruptible?: boolean;
52539
+ /**
52540
+ * Own face, persistent sandboxes only: what happens when the provider loses the machine. fail (default) ends the sandbox; rebuild starts a new machine under the same id with its state lost.
52541
+ */
52542
+ onLoss?: 'fail' | 'rebuild';
52543
+ /**
52544
+ * Own face: up to eight absolute paths to keep when the sandbox ends; each is packed as .tar.gz into File and listed on the killed event.
52545
+ */
52546
+ outputs?: Array<{
52547
+ /**
52548
+ * Absolute path of a directory or file inside the sandbox.
52549
+ */
52550
+ path: string;
52551
+ }>;
52552
+ };
51576
52553
  /**
51577
52554
  * Arguments the model passed to the tool.
51578
52555
  */
@@ -51651,6 +52628,43 @@ export type AnthropicAnonymous204Writable = {
51651
52628
  export type AnthropicAnonymous206Writable = {
51652
52629
  [key: string]: unknown;
51653
52630
  };
52631
+ /**
52632
+ * Network policy of the sandbox: public access, egress allow and deny lists and proxy.
52633
+ */
52634
+ export type SandboxSandboxNetworkConfigWritable = {
52635
+ /**
52636
+ * Specify if the sandbox URLs should be accessible only with authentication.
52637
+ */
52638
+ allowPublicTraffic?: boolean;
52639
+ /**
52640
+ * List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
52641
+ */
52642
+ allowOut?: Array<string>;
52643
+ /**
52644
+ * List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
52645
+ */
52646
+ denyOut?: Array<string>;
52647
+ egressProxy?: SandboxSandboxEgressProxyConfig;
52648
+ /**
52649
+ * Specify host mask which will be used for all sandbox requests
52650
+ */
52651
+ maskRequestHost?: string;
52652
+ /**
52653
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
52654
+ */
52655
+ httpsPorts?: Array<number>;
52656
+ /**
52657
+ * Per-domain transform rules applied to matching outbound HTTPS requests. Keys may be exact DNS names (for example, "api.example.com") or a leading wildcard (for example, "*.example.com"), and are normalized to lowercase on write. Wildcards match subdomains at any depth but not the apex domain; a bare "*" is invalid. Exact rules take precedence, followed by the longest matching wildcard suffix, and matching rule sets are not merged. Broad wildcards such as "*.com" are allowed and may expose transformed credentials to every matching destination the sandbox contacts. Rules do not grant network access; configure allowOut separately to permit the destination.
52658
+ *
52659
+ */
52660
+ rules?: {
52661
+ [key: string]: Array<SandboxSandboxNetworkRule>;
52662
+ };
52663
+ /**
52664
+ * Own face, persistent sandboxes only (autoPause: true, or ephemeral: false): true gives the sandbox one fixed public egress IP for its whole life, held through pause and resume and released when the sandbox is deleted. Without it the egress IP is not stable: it changes when a spot machine is reclaimed, when a paused machine starts again, and when the machine is rebuilt. An ephemeral sandbox returns INVALID_PARAMS; the E2B face refuses the field; it is placed only on capacity that declares static IPs, and without such capacity the create does not start (it never falls back to a changing IP). Billed as the usage item sandbox:public_ip:hours from allocation to release, paused time included, plus outbound traffic as usual.
52665
+ */
52666
+ staticEgressIp?: boolean;
52667
+ };
51654
52668
  /**
51655
52669
  * Free-form string key/value pairs.
51656
52670
  */
@@ -52314,6 +53328,10 @@ export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
52314
53328
  * The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for.
52315
53329
  */
52316
53330
  export type DevopsUnitIdPath = string;
53331
+ /**
53332
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
53333
+ */
53334
+ export type EventsSubscriptionId = string;
52317
53335
  /**
52318
53336
  * A type name from types.list, with its dots preserved — a display label is not accepted.
52319
53337
  */
@@ -55752,7 +56770,7 @@ export type ApplyAgentVersionResponses = {
55752
56770
  */
55753
56771
  environment_id?: string | null;
55754
56772
  /**
55755
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
56773
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
55756
56774
  */
55757
56775
  vault_ids?: Array<string>;
55758
56776
  /**
@@ -57012,7 +58030,7 @@ export type UnarchiveAgentResponses = {
57012
58030
  */
57013
58031
  environment_id?: string | null;
57014
58032
  /**
57015
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
58033
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
57016
58034
  */
57017
58035
  vault_ids?: Array<string>;
57018
58036
  /**
@@ -59481,9 +60499,13 @@ export type ComputersRetrieveResponse = ComputersRetrieveResponses[keyof Compute
59481
60499
  export type ComputersUpdateData = {
59482
60500
  body: {
59483
60501
  /**
59484
- * Name of the entry or object.
60502
+ * New display name, 1 to 255 characters after trimming. Omit to keep the current name.
59485
60503
  */
59486
- name: string;
60504
+ name?: string;
60505
+ /**
60506
+ * Environment recipe the computer declares (agent.environments.list or agent.environments.create, or a built-in id). A string sets the declaration and is checked as in computers.create: an unknown, foreign or archived environment is refused. null removes the declaration. Omit to leave it unchanged. Only the record changes: the machine is not touched or restarted, so the new declaration applies from the computer's next start; restart the computer once to apply it at once.
60507
+ */
60508
+ environment_id?: string | null;
59487
60509
  };
59488
60510
  path: {
59489
60511
  /**
@@ -61653,7 +62675,7 @@ export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof
61653
62675
  export type ConnectComputerData = {
61654
62676
  body?: {
61655
62677
  /**
61656
- * Defaults to light. light uses the lightweight shell, or the heavy instance while it is running. heavy requests a full Linux computer for interactive programs; heavy running time counts toward the daily budget in seconds.
62678
+ * Accepted for compatibility and ignored: light and heavy both reach the same machine, because a Computer is one machine. Omit it.
61657
62679
  */
61658
62680
  need?: 'light' | 'heavy';
61659
62681
  };
@@ -69923,6 +70945,78 @@ export type BrowserRunPageActionData = {
69923
70945
  * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
69924
70946
  */
69925
70947
  tab?: string;
70948
+ } | {
70949
+ /**
70950
+ * 动作类型,固定为 route。
70951
+ */
70952
+ type: 'route';
70953
+ /**
70954
+ * 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
70955
+ */
70956
+ url: string;
70957
+ /**
70958
+ * 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
70959
+ */
70960
+ method?: string;
70961
+ /**
70962
+ * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70963
+ */
70964
+ tab?: string;
70965
+ /**
70966
+ * 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
70967
+ */
70968
+ response: {
70969
+ /**
70970
+ * 直接返回给定响应。
70971
+ */
70972
+ kind: 'fulfill';
70973
+ /**
70974
+ * 返回的 HTTP 状态码,100 到 599。
70975
+ */
70976
+ status: number;
70977
+ /**
70978
+ * 返回的响应头,名 → 值;最多 100 项。
70979
+ */
70980
+ headers?: {
70981
+ [key: string]: string;
70982
+ };
70983
+ /**
70984
+ * 返回的响应体,最多 1000000 个字符。
70985
+ */
70986
+ body?: string;
70987
+ } | {
70988
+ /**
70989
+ * 让请求失败,页面看到一次网络错误。
70990
+ */
70991
+ kind: 'abort';
70992
+ /**
70993
+ * Playwright 的错误码;省略为 failed。
70994
+ */
70995
+ error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
70996
+ } | {
70997
+ /**
70998
+ * 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
70999
+ */
71000
+ kind: 'delay';
71001
+ /**
71002
+ * 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
71003
+ */
71004
+ ms: number;
71005
+ };
71006
+ } | {
71007
+ /**
71008
+ * 动作类型,固定为 unroute。
71009
+ */
71010
+ type: 'unroute';
71011
+ /**
71012
+ * route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
71013
+ */
71014
+ routeId: string;
71015
+ } | {
71016
+ /**
71017
+ * 动作类型,固定为 routes。
71018
+ */
71019
+ type: 'routes';
69926
71020
  } | {
69927
71021
  /**
69928
71022
  * 动作类型:后退、前进或刷新当前页。
@@ -70141,6 +71235,60 @@ export type BrowserRunPageActionResponses = {
70141
71235
  * 已设置的 cookie 的域。
70142
71236
  */
70143
71237
  domain: string;
71238
+ } | {
71239
+ /**
71240
+ * 动作类型,固定为 route。
71241
+ */
71242
+ type: 'route';
71243
+ /**
71244
+ * 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
71245
+ */
71246
+ routeId: string;
71247
+ } | {
71248
+ /**
71249
+ * 动作类型,固定为 unroute。
71250
+ */
71251
+ type: 'unroute';
71252
+ /**
71253
+ * 请求移除的规则 ID。
71254
+ */
71255
+ routeId: string;
71256
+ /**
71257
+ * 是否真的移除了一条规则;ID 不存在时为 false。
71258
+ */
71259
+ removed: boolean;
71260
+ } | {
71261
+ /**
71262
+ * 动作类型,固定为 routes。
71263
+ */
71264
+ type: 'routes';
71265
+ /**
71266
+ * 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
71267
+ */
71268
+ routes: Array<{
71269
+ /**
71270
+ * 规则 ID,注册时由服务端生成并返回。
71271
+ */
71272
+ routeId: string;
71273
+ /**
71274
+ * 规则匹配的地址模式。
71275
+ */
71276
+ url: string;
71277
+ /**
71278
+ * 规则限定的 HTTP 方法;不限定时省略。
71279
+ */
71280
+ method?: string;
71281
+ /**
71282
+ * 规则只作用的标签页;作用于整个会话时省略。
71283
+ */
71284
+ tab?: string;
71285
+ /**
71286
+ * 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
71287
+ */
71288
+ response: {
71289
+ [key: string]: unknown;
71290
+ };
71291
+ }>;
70144
71292
  };
70145
71293
  };
70146
71294
  export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
@@ -70585,6 +71733,36 @@ export type BrowserCreateContextData = {
70585
71733
  labels?: {
70586
71734
  [key: string]: string;
70587
71735
  };
71736
+ /**
71737
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。
71738
+ */
71739
+ proxy?: {
71740
+ /**
71741
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
71742
+ */
71743
+ type: 'external';
71744
+ /**
71745
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
71746
+ */
71747
+ server: string;
71748
+ /**
71749
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
71750
+ */
71751
+ username?: string;
71752
+ /**
71753
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
71754
+ */
71755
+ password_secret?: {
71756
+ /**
71757
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
71758
+ */
71759
+ vault_id: string;
71760
+ /**
71761
+ * 保管库中该密码的密钥 ID(不是密码本身)。
71762
+ */
71763
+ secret: string;
71764
+ };
71765
+ };
70588
71766
  };
70589
71767
  path?: never;
70590
71768
  query?: never;
@@ -70827,6 +72005,36 @@ export type BrowserUpdateContextData = {
70827
72005
  labels?: {
70828
72006
  [key: string]: string;
70829
72007
  };
72008
+ /**
72009
+ * 给登录态绑定一个固定的外部代理(如住宅 IP),使用这个登录态的会话没有写 proxies 时都经它出网,让同一账号始终从同一个出口地址出去。只存保管库引用(password_secret),不存密码;会话自己写了 proxies 时以会话的为准。需要组织已开通容器后端,否则返回 501 PROVIDER_UNSUPPORTED。 更新时传 null 解除绑定,省略则保留原绑定。
72010
+ */
72011
+ proxy?: {
72012
+ /**
72013
+ * 固定为 external:经一个你自己的外部 HTTP 代理出网。
72014
+ */
72015
+ type: 'external';
72016
+ /**
72017
+ * 代理地址,host:port 或 http://host:port;只支持 HTTP 代理,不接受 socks5:// 等协议,也不接受 localhost 和内网、链路本地地址。
72018
+ */
72019
+ server: string;
72020
+ /**
72021
+ * 代理用户名;有密码时才能填,填了就必须同时给出密码。
72022
+ */
72023
+ username?: string;
72024
+ /**
72025
+ * 必须用这种形式:引用保管库里的代理密码,只在连接这个代理的主机时兑换,不会交给网页。登录态里只存引用,传明文 password 返回 400 INVALID_PARAMS。
72026
+ */
72027
+ password_secret?: {
72028
+ /**
72029
+ * 保存代理密码的保管库 ID,以 vlt_ 开头。
72030
+ */
72031
+ vault_id: string;
72032
+ /**
72033
+ * 保管库中该密码的密钥 ID(不是密码本身)。
72034
+ */
72035
+ secret: string;
72036
+ };
72037
+ } | null;
70830
72038
  };
70831
72039
  path: {
70832
72040
  /**
@@ -78475,15 +79683,15 @@ export type ListOrganizationCostsData = {
78475
79683
  */
78476
79684
  bucket_width: '1h' | '1d';
78477
79685
  /**
78478
- * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79686
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78479
79687
  *
78480
79688
  */
78481
79689
  time_zone?: string;
78482
79690
  /**
78483
- * FOCUS columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).
79691
+ * Columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.
78484
79692
  *
78485
79693
  */
78486
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79694
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
78487
79695
  /**
78488
79696
  * Opaque cursor from the previous page's next_page.
78489
79697
  */
@@ -78550,6 +79758,22 @@ export type ListOrganizationCostsResponses = {
78550
79758
  * Display name of the resource; falls back to ResourceId when no name is known.
78551
79759
  */
78552
79760
  ResourceName?: string;
79761
+ /**
79762
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79763
+ */
79764
+ SessionId?: string | null;
79765
+ /**
79766
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79767
+ */
79768
+ AgentId?: string | null;
79769
+ /**
79770
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79771
+ */
79772
+ ApiKeyId?: string | null;
79773
+ /**
79774
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79775
+ */
79776
+ RunId?: string | null;
78553
79777
  /**
78554
79778
  * Amount in BillingCurrency: US dollars for USD, decimal string, 6 decimals.
78555
79779
  */
@@ -78593,15 +79817,15 @@ export type ListOrganizationUsageData = {
78593
79817
  */
78594
79818
  bucket_width: '1h' | '1d';
78595
79819
  /**
78596
- * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79820
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78597
79821
  *
78598
79822
  */
78599
79823
  time_zone?: string;
78600
79824
  /**
78601
- * FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).
79825
+ * Columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.
78602
79826
  *
78603
79827
  */
78604
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79828
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
78605
79829
  /**
78606
79830
  * Opaque cursor from the previous page's next_page.
78607
79831
  */
@@ -78668,6 +79892,22 @@ export type ListOrganizationUsageResponses = {
78668
79892
  * Display name of the resource; falls back to ResourceId when no name is known.
78669
79893
  */
78670
79894
  ResourceName?: string;
79895
+ /**
79896
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79897
+ */
79898
+ SessionId?: string | null;
79899
+ /**
79900
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79901
+ */
79902
+ AgentId?: string | null;
79903
+ /**
79904
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79905
+ */
79906
+ ApiKeyId?: string | null;
79907
+ /**
79908
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79909
+ */
79910
+ RunId?: string | null;
78671
79911
  /**
78672
79912
  * Exact decimal string in ConsumedUnit.
78673
79913
  */
@@ -78784,6 +80024,22 @@ export type ListOrganizationEventsResponses = {
78784
80024
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
78785
80025
  */
78786
80026
  request_id: string | null;
80027
+ /**
80028
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80029
+ */
80030
+ session_id: string | null;
80031
+ /**
80032
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80033
+ */
80034
+ agent_id: string | null;
80035
+ /**
80036
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80037
+ */
80038
+ api_key_id: string | null;
80039
+ /**
80040
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80041
+ */
80042
+ run_id: string | null;
78787
80043
  /**
78788
80044
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
78789
80045
  */
@@ -78905,6 +80161,22 @@ export type GetOrganizationEventResponses = {
78905
80161
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
78906
80162
  */
78907
80163
  request_id: string | null;
80164
+ /**
80165
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80166
+ */
80167
+ session_id: string | null;
80168
+ /**
80169
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80170
+ */
80171
+ agent_id: string | null;
80172
+ /**
80173
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80174
+ */
80175
+ api_key_id: string | null;
80176
+ /**
80177
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80178
+ */
80179
+ run_id: string | null;
78908
80180
  /**
78909
80181
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
78910
80182
  */
@@ -79113,11 +80385,19 @@ export type ListOrganizationNotificationLettersData = {
79113
80385
  path?: never;
79114
80386
  query?: {
79115
80387
  /**
79116
- * Only unread letters, or only read ones; omit for both.
80388
+ * received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
79117
80389
  */
79118
- status?: 'unread' | 'read';
80390
+ direction?: 'received' | 'sent';
79119
80391
  /**
79120
- * false (the default) hides archived letters; true lists only the archived ones.
80392
+ * Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state.
80393
+ */
80394
+ status?: 'unread' | 'read' | 'scheduled';
80395
+ /**
80396
+ * Only letters of this conversation, for received and sent alike; omit for all.
80397
+ */
80398
+ thread?: string;
80399
+ /**
80400
+ * false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
79121
80401
  */
79122
80402
  archived?: boolean;
79123
80403
  /**
@@ -79133,7 +80413,7 @@ export type ListOrganizationNotificationLettersData = {
79133
80413
  };
79134
80414
  export type ListOrganizationNotificationLettersErrors = {
79135
80415
  /**
79136
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80416
+ * A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
79137
80417
  */
79138
80418
  400: unknown;
79139
80419
  /**
@@ -79175,9 +80455,9 @@ export type ListOrganizationNotificationLettersResponses = {
79175
80455
  */
79176
80456
  thread: string;
79177
80457
  /**
79178
- * The letter's kind (ADR-193 §2, #4107): notice, mention or decision; the kind is its category and decides the channels. Letters written before the column existed read mention.
80458
+ * The letter's kind (ADR-193 §2, #4107): notice, mention, decision, or event (a subscribed event, ADR-218); the kind is its category and decides the channels. Letters written before the column existed read mention.
79179
80459
  */
79180
- kind: 'notice' | 'mention' | 'decision';
80460
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79181
80461
  /**
79182
80462
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79183
80463
  */
@@ -79233,6 +80513,80 @@ export type ListOrganizationNotificationLettersResponses = {
79233
80513
  };
79234
80514
  };
79235
80515
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
80516
+ export type CreateOrganizationNotificationLetterData = {
80517
+ body: {
80518
+ /**
80519
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
80520
+ */
80521
+ to: string;
80522
+ /**
80523
+ * The whole letter, 1 to 16000 characters.
80524
+ */
80525
+ body: string;
80526
+ /**
80527
+ * One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
80528
+ */
80529
+ summary?: string;
80530
+ /**
80531
+ * The letter's kind; it decides the channels. Defaults to mention.
80532
+ */
80533
+ kind?: 'notice' | 'mention' | 'decision';
80534
+ /**
80535
+ * The conversation the letter belongs to, free text; omit for none.
80536
+ */
80537
+ thread?: string;
80538
+ /**
80539
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
80540
+ */
80541
+ deliver_at?: string;
80542
+ };
80543
+ path?: never;
80544
+ query?: never;
80545
+ url: '/organization/v1/notifications/letters';
80546
+ };
80547
+ export type CreateOrganizationNotificationLetterErrors = {
80548
+ /**
80549
+ * `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
80550
+ */
80551
+ 400: unknown;
80552
+ /**
80553
+ * Missing or invalid credential (RFC 9457 problem).
80554
+ */
80555
+ 401: unknown;
80556
+ /**
80557
+ * `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
80558
+ */
80559
+ 403: unknown;
80560
+ /**
80561
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
80562
+ */
80563
+ 404: unknown;
80564
+ /**
80565
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80566
+ */
80567
+ 502: unknown;
80568
+ };
80569
+ export type CreateOrganizationNotificationLetterResponses = {
80570
+ /**
80571
+ * The letter is written; it is delivered at deliverAt.
80572
+ */
80573
+ 200: {
80574
+ /**
80575
+ * The letter that was written: its id and the time it is delivered.
80576
+ */
80577
+ letter: {
80578
+ /**
80579
+ * The letter's id.
80580
+ */
80581
+ id: string;
80582
+ /**
80583
+ * When it is delivered: now, or the time asked for.
80584
+ */
80585
+ deliverAt: string;
80586
+ };
80587
+ };
80588
+ };
80589
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79236
80590
  export type GetOrganizationNotificationLetterData = {
79237
80591
  body?: never;
79238
80592
  path: {
@@ -79290,7 +80644,7 @@ export type GetOrganizationNotificationLetterResponses = {
79290
80644
  /**
79291
80645
  * The letter's kind (ADR-193 §2, #4107).
79292
80646
  */
79293
- kind: 'notice' | 'mention' | 'decision';
80647
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79294
80648
  /**
79295
80649
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79296
80650
  */
@@ -79383,7 +80737,7 @@ export type ReadAllOrganizationNotificationLettersData = {
79383
80737
  /**
79384
80738
  * Only letters of this kind; omit for all kinds.
79385
80739
  */
79386
- kind?: 'notice' | 'mention' | 'decision';
80740
+ kind?: 'notice' | 'mention' | 'decision' | 'event';
79387
80741
  };
79388
80742
  path?: never;
79389
80743
  query?: never;
@@ -79456,6 +80810,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79456
80810
  };
79457
80811
  };
79458
80812
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80813
+ export type ListOrganizationNotificationMessagesData = {
80814
+ body?: never;
80815
+ path?: never;
80816
+ query?: {
80817
+ /**
80818
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80819
+ */
80820
+ archived?: '0' | '1';
80821
+ /**
80822
+ * Messages per page, 1 to 100; defaults to 20.
80823
+ */
80824
+ limit?: number;
80825
+ /**
80826
+ * Opaque nextPageToken from the previous response; omit for the first page.
80827
+ */
80828
+ page?: string;
80829
+ };
80830
+ url: '/organization/v1/notifications/messages';
80831
+ };
80832
+ export type ListOrganizationNotificationMessagesErrors = {
80833
+ /**
80834
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80835
+ */
80836
+ 400: unknown;
80837
+ /**
80838
+ * Missing or invalid credential (RFC 9457 problem).
80839
+ */
80840
+ 401: unknown;
80841
+ /**
80842
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80843
+ */
80844
+ 403: unknown;
80845
+ /**
80846
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80847
+ */
80848
+ 502: unknown;
80849
+ };
80850
+ export type ListOrganizationNotificationMessagesResponses = {
80851
+ /**
80852
+ * One page of this person's messages.
80853
+ */
80854
+ 200: {
80855
+ /**
80856
+ * The page, newest first.
80857
+ */
80858
+ items: Array<{
80859
+ /**
80860
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80861
+ */
80862
+ name: string;
80863
+ /**
80864
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80865
+ */
80866
+ organizationId: string;
80867
+ /**
80868
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80869
+ */
80870
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80871
+ /**
80872
+ * The notification workflow that wrote it, as the preferences page names it.
80873
+ */
80874
+ workflow: string;
80875
+ /**
80876
+ * The message's headline, as the bell shows it.
80877
+ */
80878
+ title: string;
80879
+ /**
80880
+ * The message text.
80881
+ */
80882
+ body: string;
80883
+ /**
80884
+ * Where the bell opens this message; absent when it has no page.
80885
+ */
80886
+ actionUrl?: string;
80887
+ /**
80888
+ * Whether the bell has been opened since the message arrived.
80889
+ */
80890
+ seen: boolean;
80891
+ /**
80892
+ * Whether this person has read it.
80893
+ */
80894
+ read: boolean;
80895
+ /**
80896
+ * Whether this person archived it; archived messages are not in the inbox tab.
80897
+ */
80898
+ archived: boolean;
80899
+ /**
80900
+ * When the message arrived.
80901
+ */
80902
+ createTime: string;
80903
+ }>;
80904
+ /**
80905
+ * Pass unchanged as page for the next page; absent at the end.
80906
+ */
80907
+ nextPageToken?: string;
80908
+ };
80909
+ };
80910
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80911
+ export type DeleteOrganizationNotificationMessageData = {
80912
+ body?: never;
80913
+ path: {
80914
+ /**
80915
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80916
+ */
80917
+ name: string;
80918
+ };
80919
+ query?: never;
80920
+ url: '/organization/v1/notifications/messages/{name}';
80921
+ };
80922
+ export type DeleteOrganizationNotificationMessageErrors = {
80923
+ /**
80924
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80925
+ */
80926
+ 400: unknown;
80927
+ /**
80928
+ * Missing or invalid credential (RFC 9457 problem).
80929
+ */
80930
+ 401: unknown;
80931
+ /**
80932
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80933
+ */
80934
+ 403: unknown;
80935
+ /**
80936
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80937
+ */
80938
+ 404: unknown;
80939
+ /**
80940
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80941
+ */
80942
+ 502: unknown;
80943
+ };
80944
+ export type DeleteOrganizationNotificationMessageResponses = {
80945
+ /**
80946
+ * The message is deleted.
80947
+ */
80948
+ 200: {
80949
+ /**
80950
+ * Always true: the message was deleted.
80951
+ */
80952
+ deleted: boolean;
80953
+ };
80954
+ };
80955
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80956
+ export type GetOrganizationNotificationMessageData = {
80957
+ body?: never;
80958
+ path: {
80959
+ /**
80960
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80961
+ */
80962
+ name: string;
80963
+ };
80964
+ query?: never;
80965
+ url: '/organization/v1/notifications/messages/{name}';
80966
+ };
80967
+ export type GetOrganizationNotificationMessageErrors = {
80968
+ /**
80969
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80970
+ */
80971
+ 400: unknown;
80972
+ /**
80973
+ * Missing or invalid credential (RFC 9457 problem).
80974
+ */
80975
+ 401: unknown;
80976
+ /**
80977
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80978
+ */
80979
+ 403: unknown;
80980
+ /**
80981
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND`, the same answer for another person's message and one that never existed (RFC 9457 problem).
80982
+ */
80983
+ 404: unknown;
80984
+ /**
80985
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
80986
+ */
80987
+ 502: unknown;
80988
+ };
80989
+ export type GetOrganizationNotificationMessageResponses = {
80990
+ /**
80991
+ * The message.
80992
+ */
80993
+ 200: {
80994
+ /**
80995
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80996
+ */
80997
+ name: string;
80998
+ /**
80999
+ * The organization the message belongs to; empty for a message that belongs to no organization.
81000
+ */
81001
+ organizationId: string;
81002
+ /**
81003
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
81004
+ */
81005
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
81006
+ /**
81007
+ * The notification workflow that wrote it, as the preferences page names it.
81008
+ */
81009
+ workflow: string;
81010
+ /**
81011
+ * The message's headline, as the bell shows it.
81012
+ */
81013
+ title: string;
81014
+ /**
81015
+ * The message text.
81016
+ */
81017
+ body: string;
81018
+ /**
81019
+ * Where the bell opens this message; absent when it has no page.
81020
+ */
81021
+ actionUrl?: string;
81022
+ /**
81023
+ * Whether the bell has been opened since the message arrived.
81024
+ */
81025
+ seen: boolean;
81026
+ /**
81027
+ * Whether this person has read it.
81028
+ */
81029
+ read: boolean;
81030
+ /**
81031
+ * Whether this person archived it; archived messages are not in the inbox tab.
81032
+ */
81033
+ archived: boolean;
81034
+ /**
81035
+ * When the message arrived.
81036
+ */
81037
+ createTime: string;
81038
+ };
81039
+ };
81040
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
81041
+ export type UpdateOrganizationNotificationMessageData = {
81042
+ body: {
81043
+ /**
81044
+ * Mark the message read (true) or unread (false); omit to leave it.
81045
+ */
81046
+ read?: boolean;
81047
+ /**
81048
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
81049
+ */
81050
+ archived?: boolean;
81051
+ };
81052
+ path: {
81053
+ /**
81054
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
81055
+ */
81056
+ name: string;
81057
+ };
81058
+ query?: never;
81059
+ url: '/organization/v1/notifications/messages/{name}';
81060
+ };
81061
+ export type UpdateOrganizationNotificationMessageErrors = {
81062
+ /**
81063
+ * The body is not a JSON object, names neither `read` nor `archived`, a flag is not true or false, or `name` is malformed (RFC 9457 problem).
81064
+ */
81065
+ 400: unknown;
81066
+ /**
81067
+ * Missing or invalid credential (RFC 9457 problem).
81068
+ */
81069
+ 401: unknown;
81070
+ /**
81071
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
81072
+ */
81073
+ 403: unknown;
81074
+ /**
81075
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
81076
+ */
81077
+ 404: unknown;
81078
+ /**
81079
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
81080
+ */
81081
+ 502: unknown;
81082
+ };
81083
+ export type UpdateOrganizationNotificationMessageResponses = {
81084
+ /**
81085
+ * The message after the change.
81086
+ */
81087
+ 200: {
81088
+ /**
81089
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
81090
+ */
81091
+ name: string;
81092
+ /**
81093
+ * The organization the message belongs to; empty for a message that belongs to no organization.
81094
+ */
81095
+ organizationId: string;
81096
+ /**
81097
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
81098
+ */
81099
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
81100
+ /**
81101
+ * The notification workflow that wrote it, as the preferences page names it.
81102
+ */
81103
+ workflow: string;
81104
+ /**
81105
+ * The message's headline, as the bell shows it.
81106
+ */
81107
+ title: string;
81108
+ /**
81109
+ * The message text.
81110
+ */
81111
+ body: string;
81112
+ /**
81113
+ * Where the bell opens this message; absent when it has no page.
81114
+ */
81115
+ actionUrl?: string;
81116
+ /**
81117
+ * Whether the bell has been opened since the message arrived.
81118
+ */
81119
+ seen: boolean;
81120
+ /**
81121
+ * Whether this person has read it.
81122
+ */
81123
+ read: boolean;
81124
+ /**
81125
+ * Whether this person archived it; archived messages are not in the inbox tab.
81126
+ */
81127
+ archived: boolean;
81128
+ /**
81129
+ * When the message arrived.
81130
+ */
81131
+ createTime: string;
81132
+ };
81133
+ };
81134
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
81135
+ export type ReadAllOrganizationNotificationMessagesData = {
81136
+ body?: never;
81137
+ path?: never;
81138
+ query?: never;
81139
+ url: '/organization/v1/notifications/messages:readAll';
81140
+ };
81141
+ export type ReadAllOrganizationNotificationMessagesErrors = {
81142
+ /**
81143
+ * Missing or invalid credential (RFC 9457 problem).
81144
+ */
81145
+ 401: unknown;
81146
+ /**
81147
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
81148
+ */
81149
+ 403: unknown;
81150
+ /**
81151
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
81152
+ */
81153
+ 502: unknown;
81154
+ };
81155
+ export type ReadAllOrganizationNotificationMessagesResponses = {
81156
+ /**
81157
+ * How many messages were marked read.
81158
+ */
81159
+ 200: {
81160
+ /**
81161
+ * The number of messages that were unread and are now read.
81162
+ */
81163
+ updated: number;
81164
+ };
81165
+ };
81166
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79459
81167
  export type GetOrganizationNotificationPreferencesData = {
79460
81168
  body?: never;
79461
81169
  path?: never;
@@ -80923,7 +82631,7 @@ export type ListByodDevicesResponses = {
80923
82631
  */
80924
82632
  id: string;
80925
82633
  /**
80926
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
82634
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
80927
82635
  */
80928
82636
  platform: 'android' | 'macos' | 'linux';
80929
82637
  /**
@@ -81022,7 +82730,7 @@ export type GetByodDeviceResponses = {
81022
82730
  */
81023
82731
  id: string;
81024
82732
  /**
81025
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
82733
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
81026
82734
  */
81027
82735
  platform: 'android' | 'macos' | 'linux';
81028
82736
  /**
@@ -81132,7 +82840,7 @@ export type UpdateByodDeviceResponses = {
81132
82840
  */
81133
82841
  id: string;
81134
82842
  /**
81135
- * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs only for an organization with the local-agent-connect flag on; windows is not supported yet.
82843
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
81136
82844
  */
81137
82845
  platform: 'android' | 'macos' | 'linux';
81138
82846
  /**
@@ -81269,13 +82977,124 @@ export type GetByodPairingResponses = {
81269
82977
  };
81270
82978
  };
81271
82979
  export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
82980
+ export type GetByodPairingStatusData = {
82981
+ body?: never;
82982
+ path: {
82983
+ /**
82984
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
82985
+ */
82986
+ code: string;
82987
+ };
82988
+ query?: never;
82989
+ url: '/sandbox/v1/byod/pairings/{code}/status';
82990
+ };
82991
+ export type GetByodPairingStatusErrors = {
82992
+ /**
82993
+ * Authentication required: supply an organization API key that carries a tenant.
82994
+ */
82995
+ 401: unknown;
82996
+ /**
82997
+ * NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
82998
+ */
82999
+ 404: unknown;
83000
+ /**
83001
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
83002
+ */
83003
+ 503: unknown;
83004
+ };
83005
+ export type GetByodPairingStatusResponses = {
83006
+ /**
83007
+ * One pairing of the organization.
83008
+ */
83009
+ 200: {
83010
+ /**
83011
+ * The 8-character pairing code that was asked about.
83012
+ */
83013
+ code: string;
83014
+ /**
83015
+ * When the code stops working, as an ISO-8601 timestamp.
83016
+ */
83017
+ expires_at: string;
83018
+ /**
83019
+ * The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
83020
+ */
83021
+ claimed_device: {
83022
+ /**
83023
+ * Resource type; always "byod_device".
83024
+ */
83025
+ object: 'byod_device';
83026
+ /**
83027
+ * Device id, `byd_` followed by 26 lowercase hex characters. Pass it wherever a use face takes a sandbox id, such as POST /sandbox/v1/sandboxes/{id}/act; every lifecycle operation on it answers CAPABILITY_UNSUPPORTED.
83028
+ */
83029
+ id: string;
83030
+ /**
83031
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
83032
+ */
83033
+ platform: 'android' | 'macos' | 'linux';
83034
+ /**
83035
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
83036
+ */
83037
+ name: string;
83038
+ /**
83039
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
83040
+ */
83041
+ model: string;
83042
+ /**
83043
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
83044
+ */
83045
+ os_version: string;
83046
+ /**
83047
+ * True while the device holds its one control connection; false when it is paired but not connected. An act on an offline device answers 503 DEVICE_NOT_READY.
83048
+ */
83049
+ online: boolean;
83050
+ /**
83051
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
83052
+ */
83053
+ last_seen_at: string | null;
83054
+ /**
83055
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
83056
+ */
83057
+ created_at: string;
83058
+ /**
83059
+ * What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session).
83060
+ */
83061
+ capabilities: Array<'display' | 'agent'>;
83062
+ /**
83063
+ * The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. Empty for a phone and for a desktop that has not connected yet.
83064
+ */
83065
+ agent_dirs: Array<string>;
83066
+ /**
83067
+ * Which agent each registered directory is bound to, as the desktop's last hello reported. Empty for a phone and for a desktop that has not connected yet.
83068
+ */
83069
+ agent_bindings: Array<{
83070
+ /**
83071
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
83072
+ */
83073
+ dir: string;
83074
+ /**
83075
+ * The agent the directory is bound to: its identity number or its agent id.
83076
+ */
83077
+ agent: string;
83078
+ }>;
83079
+ /**
83080
+ * The version of the envd on the desktop, as its last hello reported. Null for a phone, for a desktop that has not connected yet, and for an envd that sent no version.
83081
+ */
83082
+ envd_version: string | null;
83083
+ /**
83084
+ * Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). True unless the person ran praxis connect agent --no-bypass on that machine; a session create that asks for bypassPermissions on a device where this is false answers 400 INVALID_PARAMS. False for a phone and for a desktop that has not connected yet.
83085
+ */
83086
+ allow_bypass: boolean;
83087
+ } | null;
83088
+ };
83089
+ };
83090
+ export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
81272
83091
  export type ClaimByodPairingData = {
81273
83092
  /**
81274
83093
  * What the phone's app knows about itself when it claims the pairing.
81275
83094
  */
81276
83095
  body: {
81277
83096
  /**
81278
- * The device's platform. macos and linux are accepted only for an organization with the local-agent-connect flag on; with it off, and for any other value, the claim answers INVALID_PARAMS.
83097
+ * The device's platform. macos and linux are accepted for every organization; any other value than android, macos or linux answers INVALID_PARAMS.
81279
83098
  */
81280
83099
  platform: 'android' | 'macos' | 'linux';
81281
83100
  /**
@@ -81306,7 +83125,7 @@ export type ClaimByodPairingData = {
81306
83125
  };
81307
83126
  export type ClaimByodPairingErrors = {
81308
83127
  /**
81309
- * INVALID_PARAMS: the body is missing, platform is not android, macos or linux, or a desktop platform was claimed where local-agent-connect is off. Fix the body and resend; the code is not spent by a refused claim.
83128
+ * INVALID_PARAMS: the body is missing, platform is not android, macos or linux. Fix the body and resend; the code is not spent by a refused claim.
81310
83129
  */
81311
83130
  400: unknown;
81312
83131
  /**
@@ -83929,8 +85748,7 @@ export type SessionsUpdateData = {
83929
85748
  */
83930
85749
  title?: null | string;
83931
85750
  /**
83932
- * Vault IDs (`vlt_*`) to attach to the session. Not yet supported;
83933
- * requests setting this field are rejected. Reserved for future use.
85751
+ * The vaults this session carries, replacing the whole set it has now, including the vaults it took from its agent when it was created: send those ids again to keep them. At most 50 ids, each a vault of your organization that is not archived. The next command the session runs sees the new set: the secrets of the vaults become environment variables on its machine and are matched against its MCP servers, as sessions.create describes.
83934
85752
  */
83935
85753
  vault_ids?: Array<string>;
83936
85754
  /**
@@ -84871,7 +86689,7 @@ export type AgentsListResponses = {
84871
86689
  */
84872
86690
  environment_id?: string | null;
84873
86691
  /**
84874
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86692
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
84875
86693
  */
84876
86694
  vault_ids?: Array<string>;
84877
86695
  /**
@@ -85410,7 +87228,7 @@ export type AgentsCreateData = {
85410
87228
  */
85411
87229
  environment_id?: string | null;
85412
87230
  /**
85413
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
87231
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
85414
87232
  */
85415
87233
  vault_ids?: Array<string>;
85416
87234
  /**
@@ -86093,7 +87911,7 @@ export type AgentsCreateResponses = {
86093
87911
  */
86094
87912
  environment_id?: string | null;
86095
87913
  /**
86096
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
87914
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86097
87915
  */
86098
87916
  vault_ids?: Array<string>;
86099
87917
  /**
@@ -86764,7 +88582,7 @@ export type AgentsRetrieveResponses = {
86764
88582
  */
86765
88583
  environment_id?: string | null;
86766
88584
  /**
86767
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88585
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
86768
88586
  */
86769
88587
  vault_ids?: Array<string>;
86770
88588
  /**
@@ -87312,7 +89130,7 @@ export type AgentsUpdateData = {
87312
89130
  */
87313
89131
  environment_id?: string | null;
87314
89132
  /**
87315
- * Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
89133
+ * Default vaults of the agent: the vault_ids every new session carries, so the agent's credentials follow the version. A department or organization rule's grants write this list on the agents it reaches (the agent's vaults become exactly the rule's set). Their secrets reach each session's machine as environment variables and match its MCP servers; sessions.create says which are skipped. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself adds its vaults to these and does not replace them; sessions already open keep the vaults they were created with. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. General and assume agents hold vaults on themselves the same way. /agent/v1 only; /anthropic neither accepts nor returns it.
87316
89134
  */
87317
89135
  vault_ids?: Array<string>;
87318
89136
  /**
@@ -88008,7 +89826,7 @@ export type AgentsUpdateResponses = {
88008
89826
  */
88009
89827
  environment_id?: string | null;
88010
89828
  /**
88011
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89829
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88012
89830
  */
88013
89831
  vault_ids?: Array<string>;
88014
89832
  /**
@@ -88634,7 +90452,7 @@ export type AgentsArchiveResponses = {
88634
90452
  */
88635
90453
  environment_id?: string | null;
88636
90454
  /**
88637
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
90455
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
88638
90456
  */
88639
90457
  vault_ids?: Array<string>;
88640
90458
  /**
@@ -89305,7 +91123,7 @@ export type AgentsVersionsListResponses = {
89305
91123
  */
89306
91124
  environment_id?: string | null;
89307
91125
  /**
89308
- * Default vaults of this service or assume agent version: the vault_ids new sessions get when they name none. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
91126
+ * Default vaults of this service or assume agent version: the vault_ids every new session carries; a session's own vault_ids are added to them. Present for service and assume agents. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
89309
91127
  */
89310
91128
  vault_ids?: Array<string>;
89311
91129
  /**
@@ -96890,14 +98708,14 @@ export type AutomationActionsGetData = {
96890
98708
  /**
96891
98709
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
96892
98710
  */
96893
- ns: string;
98711
+ namespace: string;
96894
98712
  /**
96895
98713
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
96896
98714
  */
96897
98715
  name: string;
96898
98716
  };
96899
98717
  query?: never;
96900
- url: '/automation/v1/actions/{ns}/{name}';
98718
+ url: '/automation/v1/actions/{namespace}/{name}';
96901
98719
  };
96902
98720
  export type AutomationActionsGetErrors = {
96903
98721
  /**
@@ -97020,7 +98838,7 @@ export type AutomationActionsUpdateData = {
97020
98838
  /**
97021
98839
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97022
98840
  */
97023
- ns: string;
98841
+ namespace: string;
97024
98842
  /**
97025
98843
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97026
98844
  */
@@ -97032,7 +98850,7 @@ export type AutomationActionsUpdateData = {
97032
98850
  */
97033
98851
  dry_run?: boolean;
97034
98852
  };
97035
- url: '/automation/v1/actions/{ns}/{name}';
98853
+ url: '/automation/v1/actions/{namespace}/{name}';
97036
98854
  };
97037
98855
  export type AutomationActionsUpdateErrors = {
97038
98856
  /**
@@ -97083,7 +98901,7 @@ export type AutomationActionsRevisionsData = {
97083
98901
  /**
97084
98902
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97085
98903
  */
97086
- ns: string;
98904
+ namespace: string;
97087
98905
  /**
97088
98906
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97089
98907
  */
@@ -97103,7 +98921,7 @@ export type AutomationActionsRevisionsData = {
97103
98921
  */
97104
98922
  expand?: 'source';
97105
98923
  };
97106
- url: '/automation/v1/actions/{ns}/{name}/revisions';
98924
+ url: '/automation/v1/actions/{namespace}/{name}/revisions';
97107
98925
  };
97108
98926
  export type AutomationActionsRevisionsErrors = {
97109
98927
  /**
@@ -97142,7 +98960,7 @@ export type AutomationActionsRevisionData = {
97142
98960
  /**
97143
98961
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97144
98962
  */
97145
- ns: string;
98963
+ namespace: string;
97146
98964
  /**
97147
98965
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97148
98966
  */
@@ -97153,7 +98971,7 @@ export type AutomationActionsRevisionData = {
97153
98971
  revision: string;
97154
98972
  };
97155
98973
  query?: never;
97156
- url: '/automation/v1/actions/{ns}/{name}/revisions/{revision}';
98974
+ url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}';
97157
98975
  };
97158
98976
  export type AutomationActionsRevisionErrors = {
97159
98977
  /**
@@ -97203,14 +99021,14 @@ export type AutomationActionsRollbackData = {
97203
99021
  /**
97204
99022
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97205
99023
  */
97206
- ns: string;
99024
+ namespace: string;
97207
99025
  /**
97208
99026
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97209
99027
  */
97210
99028
  name: string;
97211
99029
  };
97212
99030
  query?: never;
97213
- url: '/automation/v1/actions/{ns}/{name}/rollback';
99031
+ url: '/automation/v1/actions/{namespace}/{name}/rollback';
97214
99032
  };
97215
99033
  export type AutomationActionsRollbackErrors = {
97216
99034
  /**
@@ -97264,7 +99082,7 @@ export type AutomationActionsInvocationsData = {
97264
99082
  /**
97265
99083
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97266
99084
  */
97267
- ns: string;
99085
+ namespace: string;
97268
99086
  /**
97269
99087
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97270
99088
  */
@@ -97300,7 +99118,7 @@ export type AutomationActionsInvocationsData = {
97300
99118
  */
97301
99119
  'created_at[gte]'?: string;
97302
99120
  };
97303
- url: '/automation/v1/actions/{ns}/{name}/invocations';
99121
+ url: '/automation/v1/actions/{namespace}/{name}/invocations';
97304
99122
  };
97305
99123
  export type AutomationActionsInvocationsErrors = {
97306
99124
  /**
@@ -97339,7 +99157,7 @@ export type AutomationActionsDependentsData = {
97339
99157
  /**
97340
99158
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97341
99159
  */
97342
- ns: string;
99160
+ namespace: string;
97343
99161
  /**
97344
99162
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97345
99163
  */
@@ -97355,7 +99173,7 @@ export type AutomationActionsDependentsData = {
97355
99173
  */
97356
99174
  cursor?: string;
97357
99175
  };
97358
- url: '/automation/v1/actions/{ns}/{name}/dependents';
99176
+ url: '/automation/v1/actions/{namespace}/{name}/dependents';
97359
99177
  };
97360
99178
  export type AutomationActionsDependentsErrors = {
97361
99179
  /**
@@ -97394,14 +99212,14 @@ export type AutomationActionsArchiveData = {
97394
99212
  /**
97395
99213
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97396
99214
  */
97397
- ns: string;
99215
+ namespace: string;
97398
99216
  /**
97399
99217
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97400
99218
  */
97401
99219
  name: string;
97402
99220
  };
97403
99221
  query?: never;
97404
- url: '/automation/v1/actions/{ns}/{name}/archive';
99222
+ url: '/automation/v1/actions/{namespace}/{name}/archive';
97405
99223
  };
97406
99224
  export type AutomationActionsArchiveErrors = {
97407
99225
  /**
@@ -97435,14 +99253,14 @@ export type AutomationActionsRestoreData = {
97435
99253
  /**
97436
99254
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97437
99255
  */
97438
- ns: string;
99256
+ namespace: string;
97439
99257
  /**
97440
99258
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97441
99259
  */
97442
99260
  name: string;
97443
99261
  };
97444
99262
  query?: never;
97445
- url: '/automation/v1/actions/{ns}/{name}/restore';
99263
+ url: '/automation/v1/actions/{namespace}/{name}/restore';
97446
99264
  };
97447
99265
  export type AutomationActionsRestoreErrors = {
97448
99266
  /**
@@ -97557,9 +99375,9 @@ export type AutomationScriptsCreateData = {
97557
99375
  */
97558
99376
  description?: string;
97559
99377
  /**
97560
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99378
+ * Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }.
97561
99379
  */
97562
- draft?: string;
99380
+ draft?: AutomationDraftCreateInput | string;
97563
99381
  /**
97564
99382
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
97565
99383
  */
@@ -97614,14 +99432,14 @@ export type AutomationScriptsGetData = {
97614
99432
  /**
97615
99433
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97616
99434
  */
97617
- ns: string;
99435
+ namespace: string;
97618
99436
  /**
97619
99437
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97620
99438
  */
97621
99439
  name: string;
97622
99440
  };
97623
99441
  query?: never;
97624
- url: '/automation/v1/scripts/{ns}/{name}';
99442
+ url: '/automation/v1/scripts/{namespace}/{name}';
97625
99443
  };
97626
99444
  export type AutomationScriptsGetErrors = {
97627
99445
  /**
@@ -97658,28 +99476,30 @@ export type AutomationScriptsPatchData = {
97658
99476
  [key: string]: string;
97659
99477
  };
97660
99478
  /**
97661
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99479
+ * Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match.
97662
99480
  */
97663
- draft?: string;
99481
+ draft?: AutomationDraftUpdateInput | string;
97664
99482
  };
97665
- headers: {
99483
+ headers?: {
97666
99484
  /**
97667
- * Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412.
99485
+ * Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412.
99486
+ *
99487
+ * @deprecated
97668
99488
  */
97669
- 'If-Match': string;
99489
+ 'If-Match'?: string;
97670
99490
  };
97671
99491
  path: {
97672
99492
  /**
97673
99493
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97674
99494
  */
97675
- ns: string;
99495
+ namespace: string;
97676
99496
  /**
97677
99497
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97678
99498
  */
97679
99499
  name: string;
97680
99500
  };
97681
99501
  query?: never;
97682
- url: '/automation/v1/scripts/{ns}/{name}';
99502
+ url: '/automation/v1/scripts/{namespace}/{name}';
97683
99503
  };
97684
99504
  export type AutomationScriptsPatchErrors = {
97685
99505
  /**
@@ -97721,14 +99541,14 @@ export type AutomationScriptsArchiveData = {
97721
99541
  /**
97722
99542
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97723
99543
  */
97724
- ns: string;
99544
+ namespace: string;
97725
99545
  /**
97726
99546
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97727
99547
  */
97728
99548
  name: string;
97729
99549
  };
97730
99550
  query?: never;
97731
- url: '/automation/v1/scripts/{ns}/{name}/archive';
99551
+ url: '/automation/v1/scripts/{namespace}/{name}/archive';
97732
99552
  };
97733
99553
  export type AutomationScriptsArchiveErrors = {
97734
99554
  /**
@@ -97766,14 +99586,14 @@ export type AutomationScriptsRestoreData = {
97766
99586
  /**
97767
99587
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97768
99588
  */
97769
- ns: string;
99589
+ namespace: string;
97770
99590
  /**
97771
99591
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97772
99592
  */
97773
99593
  name: string;
97774
99594
  };
97775
99595
  query?: never;
97776
- url: '/automation/v1/scripts/{ns}/{name}/restore';
99596
+ url: '/automation/v1/scripts/{namespace}/{name}/restore';
97777
99597
  };
97778
99598
  export type AutomationScriptsRestoreErrors = {
97779
99599
  /**
@@ -97811,7 +99631,7 @@ export type AutomationScriptsVersionsData = {
97811
99631
  /**
97812
99632
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97813
99633
  */
97814
- ns: string;
99634
+ namespace: string;
97815
99635
  /**
97816
99636
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97817
99637
  */
@@ -97831,7 +99651,7 @@ export type AutomationScriptsVersionsData = {
97831
99651
  */
97832
99652
  expand?: 'source';
97833
99653
  };
97834
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99654
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
97835
99655
  };
97836
99656
  export type AutomationScriptsVersionsErrors = {
97837
99657
  /**
@@ -97871,13 +99691,24 @@ export type AutomationScriptsPublishData = {
97871
99691
  */
97872
99692
  version: string;
97873
99693
  /**
97874
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
99694
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
99695
+ *
99696
+ * @deprecated
97875
99697
  */
97876
- expected_draft_revision: string;
99698
+ expected_draft_revision?: string;
97877
99699
  /**
97878
99700
  * Distribution tag. A prerelease (such as 1.3.0-beta.1) requires a tag and it cannot be latest; a tag may only use URL-safe characters (letters, digits and - _ . ! ~ * ' ( )), no spaces or / ? # and no leading or trailing whitespace; it cannot be a version or a version range (such as 1.2.3, ^1, 1.x, *); any other name such as beta, next or debug is allowed. Violations return TAG_INVALID or TAG_REQUIRED with the complete rules in hint.
97879
99701
  */
97880
99702
  tag?: string;
99703
+ /**
99704
+ * Precondition for publishing the draft: { revision } is the draft.revision from a read or update and must match the current draft; alternative to publishing from_run. The whole draft object a read returned may be sent back as is, and its other fields are ignored.
99705
+ */
99706
+ draft?: {
99707
+ /**
99708
+ * Draft revision to publish: the draft.revision a read or update returned, which must equal the current draft revision; expected_draft_revision is its deprecated alias.
99709
+ */
99710
+ revision: string;
99711
+ };
97881
99712
  } | {
97882
99713
  /**
97883
99714
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -97906,14 +99737,14 @@ export type AutomationScriptsPublishData = {
97906
99737
  /**
97907
99738
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97908
99739
  */
97909
- ns: string;
99740
+ namespace: string;
97910
99741
  /**
97911
99742
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97912
99743
  */
97913
99744
  name: string;
97914
99745
  };
97915
99746
  query?: never;
97916
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99747
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
97917
99748
  };
97918
99749
  export type AutomationScriptsPublishErrors = {
97919
99750
  /**
@@ -97968,7 +99799,7 @@ export type AutomationScriptsVersionData = {
97968
99799
  /**
97969
99800
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
97970
99801
  */
97971
- ns: string;
99802
+ namespace: string;
97972
99803
  /**
97973
99804
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
97974
99805
  */
@@ -97979,7 +99810,7 @@ export type AutomationScriptsVersionData = {
97979
99810
  version: string;
97980
99811
  };
97981
99812
  query?: never;
97982
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}';
99813
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}';
97983
99814
  };
97984
99815
  export type AutomationScriptsVersionErrors = {
97985
99816
  /**
@@ -98015,7 +99846,7 @@ export type AutomationScriptsDeprecateData = {
98015
99846
  /**
98016
99847
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98017
99848
  */
98018
- ns: string;
99849
+ namespace: string;
98019
99850
  /**
98020
99851
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98021
99852
  */
@@ -98026,7 +99857,7 @@ export type AutomationScriptsDeprecateData = {
98026
99857
  version: string;
98027
99858
  };
98028
99859
  query?: never;
98029
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate';
99860
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate';
98030
99861
  };
98031
99862
  export type AutomationScriptsDeprecateErrors = {
98032
99863
  /**
@@ -98069,14 +99900,14 @@ export type AutomationScriptsDistTagsData = {
98069
99900
  /**
98070
99901
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98071
99902
  */
98072
- ns: string;
99903
+ namespace: string;
98073
99904
  /**
98074
99905
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98075
99906
  */
98076
99907
  name: string;
98077
99908
  };
98078
99909
  query?: never;
98079
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags';
99910
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags';
98080
99911
  };
98081
99912
  export type AutomationScriptsDistTagsErrors = {
98082
99913
  /**
@@ -98108,7 +99939,7 @@ export type AutomationScriptsDeleteDistTagData = {
98108
99939
  /**
98109
99940
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98110
99941
  */
98111
- ns: string;
99942
+ namespace: string;
98112
99943
  /**
98113
99944
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98114
99945
  */
@@ -98119,7 +99950,7 @@ export type AutomationScriptsDeleteDistTagData = {
98119
99950
  tag: string;
98120
99951
  };
98121
99952
  query?: never;
98122
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99953
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98123
99954
  };
98124
99955
  export type AutomationScriptsDeleteDistTagErrors = {
98125
99956
  /**
@@ -98169,7 +100000,7 @@ export type AutomationScriptsSetDistTagData = {
98169
100000
  /**
98170
100001
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98171
100002
  */
98172
- ns: string;
100003
+ namespace: string;
98173
100004
  /**
98174
100005
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98175
100006
  */
@@ -98180,7 +100011,7 @@ export type AutomationScriptsSetDistTagData = {
98180
100011
  tag: string;
98181
100012
  };
98182
100013
  query?: never;
98183
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
100014
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98184
100015
  };
98185
100016
  export type AutomationScriptsSetDistTagErrors = {
98186
100017
  /**
@@ -98307,9 +100138,9 @@ export type AutomationWorkflowsCreateData = {
98307
100138
  */
98308
100139
  description?: string;
98309
100140
  /**
98310
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100141
+ * Editable source in the shape a read returns: { source, revision }; TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation, where revision has no meaning. A bare string is the deprecated spelling of { source }.
98311
100142
  */
98312
- draft?: string;
100143
+ draft?: AutomationDraftCreateInput | string;
98313
100144
  /**
98314
100145
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
98315
100146
  */
@@ -98364,14 +100195,14 @@ export type AutomationWorkflowsGetData = {
98364
100195
  /**
98365
100196
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98366
100197
  */
98367
- ns: string;
100198
+ namespace: string;
98368
100199
  /**
98369
100200
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98370
100201
  */
98371
100202
  name: string;
98372
100203
  };
98373
100204
  query?: never;
98374
- url: '/automation/v1/workflows/{ns}/{name}';
100205
+ url: '/automation/v1/workflows/{namespace}/{name}';
98375
100206
  };
98376
100207
  export type AutomationWorkflowsGetErrors = {
98377
100208
  /**
@@ -98408,28 +100239,30 @@ export type AutomationWorkflowsPatchData = {
98408
100239
  [key: string]: string;
98409
100240
  };
98410
100241
  /**
98411
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100242
+ * Draft in the shape a read returns: { source, revision }. revision is the one concurrency token and must equal the current draft revision (a mismatch returns 412); omit source to change only metadata and keep the draft source; updated_at and updated_by are read-only echoes and are ignored. A bare string is the deprecated spelling of { source }, and the revision then travels in If-Match.
98412
100243
  */
98413
- draft?: string;
100244
+ draft?: AutomationDraftUpdateInput | string;
98414
100245
  };
98415
- headers: {
100246
+ headers?: {
98416
100247
  /**
98417
- * Current resource ETag. The value of the object's draft.revision or etag field can be used directly: the bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison). Omission returns 400 and a revision mismatch returns 412.
100248
+ * Deprecated alias of draft.revision in the body. Give the draft revision once; the two together with different values return 400. The bare value, the quoted form and the weak form W/"…" are all accepted (RFC 7232 weak comparison), and a revision mismatch returns 412.
100249
+ *
100250
+ * @deprecated
98418
100251
  */
98419
- 'If-Match': string;
100252
+ 'If-Match'?: string;
98420
100253
  };
98421
100254
  path: {
98422
100255
  /**
98423
100256
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98424
100257
  */
98425
- ns: string;
100258
+ namespace: string;
98426
100259
  /**
98427
100260
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98428
100261
  */
98429
100262
  name: string;
98430
100263
  };
98431
100264
  query?: never;
98432
- url: '/automation/v1/workflows/{ns}/{name}';
100265
+ url: '/automation/v1/workflows/{namespace}/{name}';
98433
100266
  };
98434
100267
  export type AutomationWorkflowsPatchErrors = {
98435
100268
  /**
@@ -98471,14 +100304,14 @@ export type AutomationWorkflowsArchiveData = {
98471
100304
  /**
98472
100305
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98473
100306
  */
98474
- ns: string;
100307
+ namespace: string;
98475
100308
  /**
98476
100309
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98477
100310
  */
98478
100311
  name: string;
98479
100312
  };
98480
100313
  query?: never;
98481
- url: '/automation/v1/workflows/{ns}/{name}/archive';
100314
+ url: '/automation/v1/workflows/{namespace}/{name}/archive';
98482
100315
  };
98483
100316
  export type AutomationWorkflowsArchiveErrors = {
98484
100317
  /**
@@ -98516,14 +100349,14 @@ export type AutomationWorkflowsRestoreData = {
98516
100349
  /**
98517
100350
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98518
100351
  */
98519
- ns: string;
100352
+ namespace: string;
98520
100353
  /**
98521
100354
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98522
100355
  */
98523
100356
  name: string;
98524
100357
  };
98525
100358
  query?: never;
98526
- url: '/automation/v1/workflows/{ns}/{name}/restore';
100359
+ url: '/automation/v1/workflows/{namespace}/{name}/restore';
98527
100360
  };
98528
100361
  export type AutomationWorkflowsRestoreErrors = {
98529
100362
  /**
@@ -98561,7 +100394,7 @@ export type AutomationWorkflowsVersionsData = {
98561
100394
  /**
98562
100395
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98563
100396
  */
98564
- ns: string;
100397
+ namespace: string;
98565
100398
  /**
98566
100399
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98567
100400
  */
@@ -98581,7 +100414,7 @@ export type AutomationWorkflowsVersionsData = {
98581
100414
  */
98582
100415
  expand?: 'source';
98583
100416
  };
98584
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100417
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
98585
100418
  };
98586
100419
  export type AutomationWorkflowsVersionsErrors = {
98587
100420
  /**
@@ -98621,13 +100454,24 @@ export type AutomationWorkflowsPublishData = {
98621
100454
  */
98622
100455
  version: string;
98623
100456
  /**
98624
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
100457
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
100458
+ *
100459
+ * @deprecated
98625
100460
  */
98626
- expected_draft_revision: string;
100461
+ expected_draft_revision?: string;
98627
100462
  /**
98628
100463
  * Distribution tag. A prerelease (such as 1.3.0-beta.1) requires a tag and it cannot be latest; a tag may only use URL-safe characters (letters, digits and - _ . ! ~ * ' ( )), no spaces or / ? # and no leading or trailing whitespace; it cannot be a version or a version range (such as 1.2.3, ^1, 1.x, *); any other name such as beta, next or debug is allowed. Violations return TAG_INVALID or TAG_REQUIRED with the complete rules in hint.
98629
100464
  */
98630
100465
  tag?: string;
100466
+ /**
100467
+ * Precondition for publishing the draft: { revision } is the draft.revision from a read or update and must match the current draft; alternative to publishing from_run. The whole draft object a read returned may be sent back as is, and its other fields are ignored.
100468
+ */
100469
+ draft?: {
100470
+ /**
100471
+ * Draft revision to publish: the draft.revision a read or update returned, which must equal the current draft revision; expected_draft_revision is its deprecated alias.
100472
+ */
100473
+ revision: string;
100474
+ };
98631
100475
  } | {
98632
100476
  /**
98633
100477
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -98656,14 +100500,14 @@ export type AutomationWorkflowsPublishData = {
98656
100500
  /**
98657
100501
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98658
100502
  */
98659
- ns: string;
100503
+ namespace: string;
98660
100504
  /**
98661
100505
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98662
100506
  */
98663
100507
  name: string;
98664
100508
  };
98665
100509
  query?: never;
98666
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100510
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
98667
100511
  };
98668
100512
  export type AutomationWorkflowsPublishErrors = {
98669
100513
  /**
@@ -98726,7 +100570,7 @@ export type AutomationWorkflowsVersionData = {
98726
100570
  /**
98727
100571
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98728
100572
  */
98729
- ns: string;
100573
+ namespace: string;
98730
100574
  /**
98731
100575
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98732
100576
  */
@@ -98737,7 +100581,7 @@ export type AutomationWorkflowsVersionData = {
98737
100581
  version: string;
98738
100582
  };
98739
100583
  query?: never;
98740
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}';
100584
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}';
98741
100585
  };
98742
100586
  export type AutomationWorkflowsVersionErrors = {
98743
100587
  /**
@@ -98773,7 +100617,7 @@ export type AutomationWorkflowsDeprecateData = {
98773
100617
  /**
98774
100618
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98775
100619
  */
98776
- ns: string;
100620
+ namespace: string;
98777
100621
  /**
98778
100622
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98779
100623
  */
@@ -98784,7 +100628,7 @@ export type AutomationWorkflowsDeprecateData = {
98784
100628
  version: string;
98785
100629
  };
98786
100630
  query?: never;
98787
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate';
100631
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate';
98788
100632
  };
98789
100633
  export type AutomationWorkflowsDeprecateErrors = {
98790
100634
  /**
@@ -98827,14 +100671,14 @@ export type AutomationWorkflowsDistTagsData = {
98827
100671
  /**
98828
100672
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98829
100673
  */
98830
- ns: string;
100674
+ namespace: string;
98831
100675
  /**
98832
100676
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98833
100677
  */
98834
100678
  name: string;
98835
100679
  };
98836
100680
  query?: never;
98837
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags';
100681
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags';
98838
100682
  };
98839
100683
  export type AutomationWorkflowsDistTagsErrors = {
98840
100684
  /**
@@ -98866,7 +100710,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
98866
100710
  /**
98867
100711
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98868
100712
  */
98869
- ns: string;
100713
+ namespace: string;
98870
100714
  /**
98871
100715
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98872
100716
  */
@@ -98877,7 +100721,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
98877
100721
  tag: string;
98878
100722
  };
98879
100723
  query?: never;
98880
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100724
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
98881
100725
  };
98882
100726
  export type AutomationWorkflowsDeleteDistTagErrors = {
98883
100727
  /**
@@ -98927,7 +100771,7 @@ export type AutomationWorkflowsSetDistTagData = {
98927
100771
  /**
98928
100772
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
98929
100773
  */
98930
- ns: string;
100774
+ namespace: string;
98931
100775
  /**
98932
100776
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
98933
100777
  */
@@ -98938,7 +100782,7 @@ export type AutomationWorkflowsSetDistTagData = {
98938
100782
  tag: string;
98939
100783
  };
98940
100784
  query?: never;
98941
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100785
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
98942
100786
  };
98943
100787
  export type AutomationWorkflowsSetDistTagErrors = {
98944
100788
  /**
@@ -99165,7 +101009,7 @@ export type AutomationRunsListData = {
99165
101009
  */
99166
101010
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99167
101011
  /**
99168
- * Root initiator type: user, api_key, agent or trigger, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
101012
+ * Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
99169
101013
  */
99170
101014
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99171
101015
  /**
@@ -99353,7 +101197,7 @@ export type AutomationRunsGetData = {
99353
101197
  /**
99354
101198
  * Run ID (run_).
99355
101199
  */
99356
- id: string;
101200
+ run_id: string;
99357
101201
  };
99358
101202
  query?: {
99359
101203
  /**
@@ -99365,7 +101209,7 @@ export type AutomationRunsGetData = {
99365
101209
  */
99366
101210
  wait?: number;
99367
101211
  };
99368
- url: '/automation/v1/runs/{id}';
101212
+ url: '/automation/v1/runs/{run_id}';
99369
101213
  };
99370
101214
  export type AutomationRunsGetErrors = {
99371
101215
  /**
@@ -99400,10 +101244,10 @@ export type AutomationRunsCancelData = {
99400
101244
  /**
99401
101245
  * Run ID (run_).
99402
101246
  */
99403
- id: string;
101247
+ run_id: string;
99404
101248
  };
99405
101249
  query?: never;
99406
- url: '/automation/v1/runs/{id}/cancel';
101250
+ url: '/automation/v1/runs/{run_id}/cancel';
99407
101251
  };
99408
101252
  export type AutomationRunsCancelErrors = {
99409
101253
  /**
@@ -99448,10 +101292,10 @@ export type AutomationRunsRerunData = {
99448
101292
  /**
99449
101293
  * Run ID (run_).
99450
101294
  */
99451
- id: string;
101295
+ run_id: string;
99452
101296
  };
99453
101297
  query?: never;
99454
- url: '/automation/v1/runs/{id}/rerun';
101298
+ url: '/automation/v1/runs/{run_id}/rerun';
99455
101299
  };
99456
101300
  export type AutomationRunsRerunErrors = {
99457
101301
  /**
@@ -99503,10 +101347,10 @@ export type AutomationRunsSuspendData = {
99503
101347
  /**
99504
101348
  * Run ID (run_).
99505
101349
  */
99506
- id: string;
101350
+ run_id: string;
99507
101351
  };
99508
101352
  query?: never;
99509
- url: '/automation/v1/runs/{id}/suspend';
101353
+ url: '/automation/v1/runs/{run_id}/suspend';
99510
101354
  };
99511
101355
  export type AutomationRunsSuspendErrors = {
99512
101356
  /**
@@ -99541,10 +101385,10 @@ export type AutomationRunsResumeData = {
99541
101385
  /**
99542
101386
  * Run ID (run_).
99543
101387
  */
99544
- id: string;
101388
+ run_id: string;
99545
101389
  };
99546
101390
  query?: never;
99547
- url: '/automation/v1/runs/{id}/resume';
101391
+ url: '/automation/v1/runs/{run_id}/resume';
99548
101392
  };
99549
101393
  export type AutomationRunsResumeErrors = {
99550
101394
  /**
@@ -99579,7 +101423,7 @@ export type AutomationRunsWaitsData = {
99579
101423
  /**
99580
101424
  * Run ID (run_).
99581
101425
  */
99582
- id: string;
101426
+ run_id: string;
99583
101427
  };
99584
101428
  query?: {
99585
101429
  /**
@@ -99591,7 +101435,7 @@ export type AutomationRunsWaitsData = {
99591
101435
  */
99592
101436
  cursor?: string;
99593
101437
  };
99594
- url: '/automation/v1/runs/{id}/waits';
101438
+ url: '/automation/v1/runs/{run_id}/waits';
99595
101439
  };
99596
101440
  export type AutomationRunsWaitsErrors = {
99597
101441
  /**
@@ -99630,7 +101474,7 @@ export type AutomationRunsCallsData = {
99630
101474
  /**
99631
101475
  * Run ID (run_).
99632
101476
  */
99633
- id: string;
101477
+ run_id: string;
99634
101478
  };
99635
101479
  query?: {
99636
101480
  /**
@@ -99642,7 +101486,7 @@ export type AutomationRunsCallsData = {
99642
101486
  */
99643
101487
  cursor?: string;
99644
101488
  };
99645
- url: '/automation/v1/runs/{id}/calls';
101489
+ url: '/automation/v1/runs/{run_id}/calls';
99646
101490
  };
99647
101491
  export type AutomationRunsCallsErrors = {
99648
101492
  /**
@@ -99681,7 +101525,7 @@ export type AutomationRunsArtifactsData = {
99681
101525
  /**
99682
101526
  * Run ID (run_).
99683
101527
  */
99684
- id: string;
101528
+ run_id: string;
99685
101529
  };
99686
101530
  query?: {
99687
101531
  /**
@@ -99693,7 +101537,7 @@ export type AutomationRunsArtifactsData = {
99693
101537
  */
99694
101538
  cursor?: string;
99695
101539
  };
99696
- url: '/automation/v1/runs/{id}/artifacts';
101540
+ url: '/automation/v1/runs/{run_id}/artifacts';
99697
101541
  };
99698
101542
  export type AutomationRunsArtifactsErrors = {
99699
101543
  /**
@@ -99741,14 +101585,14 @@ export type AutomationRunsCompleteWaitData = {
99741
101585
  /**
99742
101586
  * Run ID (run_).
99743
101587
  */
99744
- id: string;
101588
+ run_id: string;
99745
101589
  /**
99746
101590
  * Wait ID (wait_) belonging to this run.
99747
101591
  */
99748
101592
  wait_id: string;
99749
101593
  };
99750
101594
  query?: never;
99751
- url: '/automation/v1/runs/{id}/waits/{wait_id}/complete';
101595
+ url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete';
99752
101596
  };
99753
101597
  export type AutomationRunsCompleteWaitErrors = {
99754
101598
  /**
@@ -99799,6 +101643,8 @@ export type AutomationRunsCompleteWaitResponses = {
99799
101643
  kind: 'event' | 'timer' | 'child';
99800
101644
  /**
99801
101645
  * Wait state after the call. open is still waiting; resolved was satisfied; expired passed its deadline; cancelled was cancelled. A successfully submitted event leaves it resolved.
101646
+ *
101647
+ * @deprecated
99802
101648
  */
99803
101649
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
99804
101650
  /**
@@ -99842,6 +101688,10 @@ export type AutomationRunsCompleteWaitResponses = {
99842
101688
  * true when this was a repeated submission with the same id and payload, so the original result is returned instead of processing it again.
99843
101689
  */
99844
101690
  replayed: boolean;
101691
+ /**
101692
+ * Wait state after the call. open is still waiting; resolved was satisfied; expired passed its deadline; cancelled was cancelled. A successfully submitted event leaves it resolved.
101693
+ */
101694
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
99845
101695
  };
99846
101696
  };
99847
101697
  export type AutomationRunsCompleteWaitResponse = AutomationRunsCompleteWaitResponses[keyof AutomationRunsCompleteWaitResponses];
@@ -99851,7 +101701,7 @@ export type AutomationRunsTasksData = {
99851
101701
  /**
99852
101702
  * Run ID (run_).
99853
101703
  */
99854
- id: string;
101704
+ run_id: string;
99855
101705
  };
99856
101706
  query?: {
99857
101707
  /**
@@ -99871,7 +101721,7 @@ export type AutomationRunsTasksData = {
99871
101721
  */
99872
101722
  group_by?: 'reference';
99873
101723
  };
99874
- url: '/automation/v1/runs/{id}/tasks';
101724
+ url: '/automation/v1/runs/{run_id}/tasks';
99875
101725
  };
99876
101726
  export type AutomationRunsTasksErrors = {
99877
101727
  /**
@@ -99920,7 +101770,7 @@ export type AutomationRunsEventsData = {
99920
101770
  /**
99921
101771
  * Run ID (run_).
99922
101772
  */
99923
- id: string;
101773
+ run_id: string;
99924
101774
  };
99925
101775
  query?: {
99926
101776
  /**
@@ -99932,7 +101782,7 @@ export type AutomationRunsEventsData = {
99932
101782
  */
99933
101783
  cursor?: string;
99934
101784
  };
99935
- url: '/automation/v1/runs/{id}/events';
101785
+ url: '/automation/v1/runs/{run_id}/events';
99936
101786
  };
99937
101787
  export type AutomationRunsEventsErrors = {
99938
101788
  /**
@@ -99981,7 +101831,7 @@ export type AutomationRunsLogsData = {
99981
101831
  /**
99982
101832
  * Run ID (run_).
99983
101833
  */
99984
- id: string;
101834
+ run_id: string;
99985
101835
  };
99986
101836
  query?: {
99987
101837
  /**
@@ -99993,7 +101843,7 @@ export type AutomationRunsLogsData = {
99993
101843
  */
99994
101844
  cursor?: string;
99995
101845
  };
99996
- url: '/automation/v1/runs/{id}/logs';
101846
+ url: '/automation/v1/runs/{run_id}/logs';
99997
101847
  };
99998
101848
  export type AutomationRunsLogsErrors = {
99999
101849
  /**
@@ -100032,10 +101882,10 @@ export type AutomationRunsSourceData = {
100032
101882
  /**
100033
101883
  * Run ID (run_).
100034
101884
  */
100035
- id: string;
101885
+ run_id: string;
100036
101886
  };
100037
101887
  query?: never;
100038
- url: '/automation/v1/runs/{id}/source';
101888
+ url: '/automation/v1/runs/{run_id}/source';
100039
101889
  };
100040
101890
  export type AutomationRunsSourceErrors = {
100041
101891
  /**
@@ -100090,7 +101940,9 @@ export type AutomationTriggersListData = {
100090
101940
  */
100091
101941
  kind?: Array<'schedule' | 'webhook'>;
100092
101942
  /**
100093
- * Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101943
+ * Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101944
+ *
101945
+ * @deprecated
100094
101946
  */
100095
101947
  state?: Array<AutomationTriggerState>;
100096
101948
  /**
@@ -100107,6 +101959,10 @@ export type AutomationTriggersListData = {
100107
101959
  * Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone.
100108
101960
  */
100109
101961
  'created_at[lte]'?: string;
101962
+ /**
101963
+ * Trigger status: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value. Giving it together with a different state returns 400.
101964
+ */
101965
+ status?: Array<AutomationTriggerState>;
100110
101966
  };
100111
101967
  url: '/automation/v1/triggers';
100112
101968
  };
@@ -100272,10 +102128,10 @@ export type AutomationTriggersDeleteData = {
100272
102128
  /**
100273
102129
  * Trigger ID (trg_).
100274
102130
  */
100275
- id: string;
102131
+ trigger_id: string;
100276
102132
  };
100277
102133
  query?: never;
100278
- url: '/automation/v1/triggers/{id}';
102134
+ url: '/automation/v1/triggers/{trigger_id}';
100279
102135
  };
100280
102136
  export type AutomationTriggersDeleteErrors = {
100281
102137
  /**
@@ -100309,10 +102165,10 @@ export type AutomationTriggersGetData = {
100309
102165
  /**
100310
102166
  * Trigger ID (trg_).
100311
102167
  */
100312
- id: string;
102168
+ trigger_id: string;
100313
102169
  };
100314
102170
  query?: never;
100315
- url: '/automation/v1/triggers/{id}';
102171
+ url: '/automation/v1/triggers/{trigger_id}';
100316
102172
  };
100317
102173
  export type AutomationTriggersGetErrors = {
100318
102174
  /**
@@ -100420,10 +102276,10 @@ export type AutomationTriggersPatchData = {
100420
102276
  /**
100421
102277
  * Trigger ID (trg_).
100422
102278
  */
100423
- id: string;
102279
+ trigger_id: string;
100424
102280
  };
100425
102281
  query?: never;
100426
- url: '/automation/v1/triggers/{id}';
102282
+ url: '/automation/v1/triggers/{trigger_id}';
100427
102283
  };
100428
102284
  export type AutomationTriggersPatchErrors = {
100429
102285
  /**
@@ -100476,10 +102332,10 @@ export type AutomationTriggersPauseData = {
100476
102332
  /**
100477
102333
  * Trigger ID (trg_).
100478
102334
  */
100479
- id: string;
102335
+ trigger_id: string;
100480
102336
  };
100481
102337
  query?: never;
100482
- url: '/automation/v1/triggers/{id}/pause';
102338
+ url: '/automation/v1/triggers/{trigger_id}/pause';
100483
102339
  };
100484
102340
  export type AutomationTriggersPauseErrors = {
100485
102341
  /**
@@ -100513,10 +102369,10 @@ export type AutomationTriggersResumeData = {
100513
102369
  /**
100514
102370
  * Trigger ID (trg_).
100515
102371
  */
100516
- id: string;
102372
+ trigger_id: string;
100517
102373
  };
100518
102374
  query?: never;
100519
- url: '/automation/v1/triggers/{id}/resume';
102375
+ url: '/automation/v1/triggers/{trigger_id}/resume';
100520
102376
  };
100521
102377
  export type AutomationTriggersResumeErrors = {
100522
102378
  /**
@@ -100560,10 +102416,10 @@ export type AutomationTriggersFireData = {
100560
102416
  /**
100561
102417
  * Trigger ID (trg_).
100562
102418
  */
100563
- id: string;
102419
+ trigger_id: string;
100564
102420
  };
100565
102421
  query?: never;
100566
- url: '/automation/v1/triggers/{id}/fire';
102422
+ url: '/automation/v1/triggers/{trigger_id}/fire';
100567
102423
  };
100568
102424
  export type AutomationTriggersFireErrors = {
100569
102425
  /**
@@ -100606,10 +102462,10 @@ export type AutomationTriggersRotateWebhookData = {
100606
102462
  /**
100607
102463
  * Trigger ID (trg_).
100608
102464
  */
100609
- id: string;
102465
+ trigger_id: string;
100610
102466
  };
100611
102467
  query?: never;
100612
- url: '/automation/v1/triggers/{id}/rotate-webhook';
102468
+ url: '/automation/v1/triggers/{trigger_id}/rotate-webhook';
100613
102469
  };
100614
102470
  export type AutomationTriggersRotateWebhookErrors = {
100615
102471
  /**
@@ -100639,7 +102495,7 @@ export type AutomationTriggersFiringsData = {
100639
102495
  /**
100640
102496
  * Trigger ID (trg_).
100641
102497
  */
100642
- id: string;
102498
+ trigger_id: string;
100643
102499
  };
100644
102500
  query?: {
100645
102501
  /**
@@ -100659,7 +102515,7 @@ export type AutomationTriggersFiringsData = {
100659
102515
  */
100660
102516
  run_id?: string;
100661
102517
  };
100662
- url: '/automation/v1/triggers/{id}/firings';
102518
+ url: '/automation/v1/triggers/{trigger_id}/firings';
100663
102519
  };
100664
102520
  export type AutomationTriggersFiringsErrors = {
100665
102521
  /**
@@ -100865,10 +102721,10 @@ export type AutomationHumanTasksGetData = {
100865
102721
  /**
100866
102722
  * Human task ID (htask_), from the list or the run's waits.
100867
102723
  */
100868
- id: string;
102724
+ task_id: string;
100869
102725
  };
100870
102726
  query?: never;
100871
- url: '/automation/v1/human-tasks/{id}';
102727
+ url: '/automation/v1/human-tasks/{task_id}';
100872
102728
  };
100873
102729
  export type AutomationHumanTasksGetErrors = {
100874
102730
  /**
@@ -100904,10 +102760,10 @@ export type AutomationHumanTasksRespondData = {
100904
102760
  /**
100905
102761
  * Human task ID (htask_).
100906
102762
  */
100907
- id: string;
102763
+ task_id: string;
100908
102764
  };
100909
102765
  query?: never;
100910
- url: '/automation/v1/human-tasks/{id}/respond';
102766
+ url: '/automation/v1/human-tasks/{task_id}/respond';
100911
102767
  };
100912
102768
  export type AutomationHumanTasksRespondErrors = {
100913
102769
  /**
@@ -100962,10 +102818,10 @@ export type AutomationHumanTasksCancelData = {
100962
102818
  /**
100963
102819
  * Human task ID (htask_).
100964
102820
  */
100965
- id: string;
102821
+ task_id: string;
100966
102822
  };
100967
102823
  query?: never;
100968
- url: '/automation/v1/human-tasks/{id}/cancel';
102824
+ url: '/automation/v1/human-tasks/{task_id}/cancel';
100969
102825
  };
100970
102826
  export type AutomationHumanTasksCancelErrors = {
100971
102827
  /**
@@ -101008,10 +102864,10 @@ export type AutomationHumanTasksDelegateData = {
101008
102864
  /**
101009
102865
  * Human task ID (htask_).
101010
102866
  */
101011
- id: string;
102867
+ task_id: string;
101012
102868
  };
101013
102869
  query?: never;
101014
- url: '/automation/v1/human-tasks/{id}/delegate';
102870
+ url: '/automation/v1/human-tasks/{task_id}/delegate';
101015
102871
  };
101016
102872
  export type AutomationHumanTasksDelegateErrors = {
101017
102873
  /**
@@ -101052,14 +102908,14 @@ export type AutomationScriptsVaultsListData = {
101052
102908
  /**
101053
102909
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101054
102910
  */
101055
- ns: string;
102911
+ namespace: string;
101056
102912
  /**
101057
102913
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101058
102914
  */
101059
102915
  name: string;
101060
102916
  };
101061
102917
  query?: never;
101062
- url: '/automation/v1/scripts/{ns}/{name}/vaults';
102918
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults';
101063
102919
  };
101064
102920
  export type AutomationScriptsVaultsListErrors = {
101065
102921
  /**
@@ -101125,7 +102981,7 @@ export type AutomationScriptsVaultsDeleteData = {
101125
102981
  /**
101126
102982
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101127
102983
  */
101128
- ns: string;
102984
+ namespace: string;
101129
102985
  /**
101130
102986
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101131
102987
  */
@@ -101136,7 +102992,7 @@ export type AutomationScriptsVaultsDeleteData = {
101136
102992
  alias: string;
101137
102993
  };
101138
102994
  query?: never;
101139
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102995
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101140
102996
  };
101141
102997
  export type AutomationScriptsVaultsDeleteErrors = {
101142
102998
  /**
@@ -101171,7 +103027,7 @@ export type AutomationScriptsVaultsSetData = {
101171
103027
  /**
101172
103028
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101173
103029
  */
101174
- ns: string;
103030
+ namespace: string;
101175
103031
  /**
101176
103032
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101177
103033
  */
@@ -101182,7 +103038,7 @@ export type AutomationScriptsVaultsSetData = {
101182
103038
  alias: string;
101183
103039
  };
101184
103040
  query?: never;
101185
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
103041
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101186
103042
  };
101187
103043
  export type AutomationScriptsVaultsSetErrors = {
101188
103044
  /**
@@ -101252,14 +103108,14 @@ export type AutomationWorkflowsVaultsListData = {
101252
103108
  /**
101253
103109
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101254
103110
  */
101255
- ns: string;
103111
+ namespace: string;
101256
103112
  /**
101257
103113
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101258
103114
  */
101259
103115
  name: string;
101260
103116
  };
101261
103117
  query?: never;
101262
- url: '/automation/v1/workflows/{ns}/{name}/vaults';
103118
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults';
101263
103119
  };
101264
103120
  export type AutomationWorkflowsVaultsListErrors = {
101265
103121
  /**
@@ -101325,7 +103181,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
101325
103181
  /**
101326
103182
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101327
103183
  */
101328
- ns: string;
103184
+ namespace: string;
101329
103185
  /**
101330
103186
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101331
103187
  */
@@ -101336,7 +103192,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
101336
103192
  alias: string;
101337
103193
  };
101338
103194
  query?: never;
101339
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103195
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
101340
103196
  };
101341
103197
  export type AutomationWorkflowsVaultsDeleteErrors = {
101342
103198
  /**
@@ -101371,7 +103227,7 @@ export type AutomationWorkflowsVaultsSetData = {
101371
103227
  /**
101372
103228
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101373
103229
  */
101374
- ns: string;
103230
+ namespace: string;
101375
103231
  /**
101376
103232
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101377
103233
  */
@@ -101382,7 +103238,7 @@ export type AutomationWorkflowsVaultsSetData = {
101382
103238
  alias: string;
101383
103239
  };
101384
103240
  query?: never;
101385
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103241
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
101386
103242
  };
101387
103243
  export type AutomationWorkflowsVaultsSetErrors = {
101388
103244
  /**
@@ -102229,6 +104085,60 @@ export type CanvasListLibraryVersionsResponses = {
102229
104085
  200: CanvasLibraryVersionPage;
102230
104086
  };
102231
104087
  export type CanvasListLibraryVersionsResponse = CanvasListLibraryVersionsResponses[keyof CanvasListLibraryVersionsResponses];
104088
+ export type CanvasRetrieveProcessStepBriefData = {
104089
+ body?: never;
104090
+ path: {
104091
+ /**
104092
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
104093
+ */
104094
+ canvas_id: string;
104095
+ /**
104096
+ * Node id of the process frame, or of the ref instance that is one production of a library process; the outputs of a production point at this id.
104097
+ */
104098
+ process_id: string;
104099
+ /**
104100
+ * Step key from the requirement block, such as 1 or 9a; not the node id of the step frame.
104101
+ */
104102
+ step_id: string;
104103
+ };
104104
+ query?: {
104105
+ /**
104106
+ * Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND.
104107
+ */
104108
+ version?: string;
104109
+ };
104110
+ url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief';
104111
+ };
104112
+ export type CanvasRetrieveProcessStepBriefErrors = {
104113
+ /**
104114
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
104115
+ */
104116
+ 400: CanvasCanvasError;
104117
+ /**
104118
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
104119
+ */
104120
+ 401: CanvasCanvasError;
104121
+ /**
104122
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
104123
+ */
104124
+ 403: CanvasCanvasError;
104125
+ /**
104126
+ * CANVAS_NOT_FOUND means the canvas is missing or belongs to another organization. NODE_NOT_FOUND means process_id is not a process on this canvas or step is not one of its step keys; read the process with nodes.list to see its requirement blocks.
104127
+ */
104128
+ 404: CanvasCanvasError;
104129
+ /**
104130
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
104131
+ */
104132
+ 500: CanvasCanvasError;
104133
+ };
104134
+ export type CanvasRetrieveProcessStepBriefError = CanvasRetrieveProcessStepBriefErrors[keyof CanvasRetrieveProcessStepBriefErrors];
104135
+ export type CanvasRetrieveProcessStepBriefResponses = {
104136
+ /**
104137
+ * The step brief at the requested canvas version.
104138
+ */
104139
+ 200: CanvasProcessStepBrief;
104140
+ };
104141
+ export type CanvasRetrieveProcessStepBriefResponse = CanvasRetrieveProcessStepBriefResponses[keyof CanvasRetrieveProcessStepBriefResponses];
102232
104142
  export type CanvasListLibrariesData = {
102233
104143
  body?: never;
102234
104144
  path?: never;
@@ -113713,7 +115623,7 @@ export type DevopsUnitsPushErrors = {
113713
115623
  */
113714
115624
  404: DevopsDevOpsError;
113715
115625
  /**
113716
- * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
115626
+ * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed. The message says where the remote is ("remote is at <sha7> (<full sha>) on <ref>") and details.remoteHead carries the full sha: send it as expectedHead after reconciling your checkout. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
113717
115627
  */
113718
115628
  409: DevopsDevOpsError;
113719
115629
  /**
@@ -113861,6 +115771,160 @@ export type DevopsUnitsTransitionsListResponses = {
113861
115771
  200: DevopsUnitTransitionPage;
113862
115772
  };
113863
115773
  export type DevopsUnitsTransitionsListResponse = DevopsUnitsTransitionsListResponses[keyof DevopsUnitsTransitionsListResponses];
115774
+ export type EventsListTypesData = {
115775
+ body?: never;
115776
+ path?: never;
115777
+ query?: never;
115778
+ url: '/events/v1/types';
115779
+ };
115780
+ export type EventsListTypesErrors = {
115781
+ /**
115782
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115783
+ */
115784
+ 401: EventsEventsProblem;
115785
+ /**
115786
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115787
+ */
115788
+ 503: EventsEventsProblem;
115789
+ };
115790
+ export type EventsListTypesError = EventsListTypesErrors[keyof EventsListTypesErrors];
115791
+ export type EventsListTypesResponses = {
115792
+ /**
115793
+ * The tenant event types, one entry per type and schema version.
115794
+ */
115795
+ 200: EventsEventTypePage;
115796
+ };
115797
+ export type EventsListTypesResponse = EventsListTypesResponses[keyof EventsListTypesResponses];
115798
+ export type EventsListSubscriptionsData = {
115799
+ body?: never;
115800
+ path?: never;
115801
+ query?: {
115802
+ /**
115803
+ * Maximum subscriptions to return, from 1 to 100; defaults to 50.
115804
+ */
115805
+ limit?: number;
115806
+ };
115807
+ url: '/events/v1/subscriptions';
115808
+ };
115809
+ export type EventsListSubscriptionsErrors = {
115810
+ /**
115811
+ * UNSUPPORTED_FILTER_DIALECT means a filter used a form other than exact and prefix; INVALID_PARAMS means a field, type, filter name, count, date or query value is not accepted, and the message names it. Correct the request; retrying it unchanged fails again.
115812
+ */
115813
+ 400: EventsEventsProblem;
115814
+ /**
115815
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115816
+ */
115817
+ 401: EventsEventsProblem;
115818
+ /**
115819
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115820
+ */
115821
+ 503: EventsEventsProblem;
115822
+ };
115823
+ export type EventsListSubscriptionsError = EventsListSubscriptionsErrors[keyof EventsListSubscriptionsErrors];
115824
+ export type EventsListSubscriptionsResponses = {
115825
+ /**
115826
+ * Your live subscriptions.
115827
+ */
115828
+ 200: EventsEventSubscriptionPage;
115829
+ };
115830
+ export type EventsListSubscriptionsResponse = EventsListSubscriptionsResponses[keyof EventsListSubscriptionsResponses];
115831
+ export type EventsCreateSubscriptionData = {
115832
+ /**
115833
+ * What to subscribe to and how long the subscription lasts.
115834
+ */
115835
+ body: EventsCreateEventSubscriptionInput;
115836
+ path?: never;
115837
+ query?: never;
115838
+ url: '/events/v1/subscriptions';
115839
+ };
115840
+ export type EventsCreateSubscriptionErrors = {
115841
+ /**
115842
+ * UNSUPPORTED_FILTER_DIALECT means a filter used a form other than exact and prefix; INVALID_PARAMS means a field, type, filter name, count, date or query value is not accepted, and the message names it. Correct the request; retrying it unchanged fails again.
115843
+ */
115844
+ 400: EventsEventsProblem;
115845
+ /**
115846
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115847
+ */
115848
+ 401: EventsEventsProblem;
115849
+ /**
115850
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115851
+ */
115852
+ 503: EventsEventsProblem;
115853
+ };
115854
+ export type EventsCreateSubscriptionError = EventsCreateSubscriptionErrors[keyof EventsCreateSubscriptionErrors];
115855
+ export type EventsCreateSubscriptionResponses = {
115856
+ /**
115857
+ * The new subscription.
115858
+ */
115859
+ 201: EventsEventSubscription;
115860
+ };
115861
+ export type EventsCreateSubscriptionResponse = EventsCreateSubscriptionResponses[keyof EventsCreateSubscriptionResponses];
115862
+ export type EventsDeleteSubscriptionData = {
115863
+ body?: never;
115864
+ path: {
115865
+ /**
115866
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115867
+ */
115868
+ subscription_id: string;
115869
+ };
115870
+ query?: never;
115871
+ url: '/events/v1/subscriptions/{subscription_id}';
115872
+ };
115873
+ export type EventsDeleteSubscriptionErrors = {
115874
+ /**
115875
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115876
+ */
115877
+ 401: EventsEventsProblem;
115878
+ /**
115879
+ * SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else's. List subscriptions to find an id you can reach.
115880
+ */
115881
+ 404: EventsEventsProblem;
115882
+ /**
115883
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115884
+ */
115885
+ 503: EventsEventsProblem;
115886
+ };
115887
+ export type EventsDeleteSubscriptionError = EventsDeleteSubscriptionErrors[keyof EventsDeleteSubscriptionErrors];
115888
+ export type EventsDeleteSubscriptionResponses = {
115889
+ /**
115890
+ * The subscription is deleted; there is no body.
115891
+ */
115892
+ 204: void;
115893
+ };
115894
+ export type EventsDeleteSubscriptionResponse = EventsDeleteSubscriptionResponses[keyof EventsDeleteSubscriptionResponses];
115895
+ export type EventsRetrieveSubscriptionData = {
115896
+ body?: never;
115897
+ path: {
115898
+ /**
115899
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115900
+ */
115901
+ subscription_id: string;
115902
+ };
115903
+ query?: never;
115904
+ url: '/events/v1/subscriptions/{subscription_id}';
115905
+ };
115906
+ export type EventsRetrieveSubscriptionErrors = {
115907
+ /**
115908
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115909
+ */
115910
+ 401: EventsEventsProblem;
115911
+ /**
115912
+ * SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else's. List subscriptions to find an id you can reach.
115913
+ */
115914
+ 404: EventsEventsProblem;
115915
+ /**
115916
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115917
+ */
115918
+ 503: EventsEventsProblem;
115919
+ };
115920
+ export type EventsRetrieveSubscriptionError = EventsRetrieveSubscriptionErrors[keyof EventsRetrieveSubscriptionErrors];
115921
+ export type EventsRetrieveSubscriptionResponses = {
115922
+ /**
115923
+ * The subscription.
115924
+ */
115925
+ 200: EventsEventSubscription;
115926
+ };
115927
+ export type EventsRetrieveSubscriptionResponse = EventsRetrieveSubscriptionResponses[keyof EventsRetrieveSubscriptionResponses];
113864
115928
  export type KnowledgeListVectorStoresData = {
113865
115929
  body?: never;
113866
115930
  path?: never;
@@ -119469,6 +121533,511 @@ export type MediaDesignVoiceResponses = {
119469
121533
  202: MediaJob;
119470
121534
  };
119471
121535
  export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121536
+ export type MediaListWorksData = {
121537
+ body?: never;
121538
+ path: {
121539
+ /**
121540
+ * Library ID returned by creation.
121541
+ */
121542
+ library_id: string;
121543
+ };
121544
+ query?: {
121545
+ /**
121546
+ * Only works of this kind: gallery, article, product_listing or blocks.
121547
+ */
121548
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
121549
+ /**
121550
+ * Only works of this series.
121551
+ */
121552
+ series?: string;
121553
+ /**
121554
+ * Only works whose title contains this text, at most 100 characters.
121555
+ */
121556
+ q?: string;
121557
+ /**
121558
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
121559
+ */
121560
+ limit?: number;
121561
+ /**
121562
+ * Cursor from the previous next_cursor.
121563
+ */
121564
+ cursor?: string;
121565
+ };
121566
+ url: '/media/v1/libraries/{library_id}/works';
121567
+ };
121568
+ export type MediaListWorksErrors = {
121569
+ /**
121570
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121571
+ */
121572
+ 400: MediaMediaError;
121573
+ /**
121574
+ * Request failed; see the error code reference.
121575
+ */
121576
+ 402: MediaMediaError;
121577
+ /**
121578
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121579
+ */
121580
+ 403: MediaMediaError;
121581
+ /**
121582
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121583
+ */
121584
+ 404: MediaMediaError;
121585
+ /**
121586
+ * Request failed; see the error code reference.
121587
+ */
121588
+ 409: MediaMediaError;
121589
+ /**
121590
+ * The file exceeds an input limit; provide a smaller source file.
121591
+ */
121592
+ 413: MediaMediaError;
121593
+ /**
121594
+ * This media format is unsupported; provide a supported format.
121595
+ */
121596
+ 415: MediaMediaError;
121597
+ /**
121598
+ * Request failed; see the error code reference.
121599
+ */
121600
+ 422: MediaMediaError;
121601
+ /**
121602
+ * A rate limit was reached; wait before retrying.
121603
+ */
121604
+ 429: MediaMediaError;
121605
+ /**
121606
+ * The requested operation is unsupported; choose a supported method.
121607
+ */
121608
+ 501: MediaMediaError;
121609
+ /**
121610
+ * Request failed; see the error code reference.
121611
+ */
121612
+ 502: MediaMediaError;
121613
+ /**
121614
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121615
+ */
121616
+ 503: MediaMediaError;
121617
+ };
121618
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
121619
+ export type MediaListWorksResponses = {
121620
+ /**
121621
+ * Successful response.
121622
+ */
121623
+ 200: MediaWorkPage;
121624
+ };
121625
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
121626
+ export type MediaCreateWorkData = {
121627
+ /**
121628
+ * A new work: its kind and its whole body, with an optional series and custom fields.
121629
+ */
121630
+ body: {
121631
+ /**
121632
+ * The work’s kind; it decides which body fields are accepted.
121633
+ */
121634
+ kind: MediaWorkKind;
121635
+ /**
121636
+ * The kind’s body. Every asset it names must be a live asset of this library of the fitting type, or the request is refused with ASSET_NOT_FOUND or REFERENCE_TYPE_MISMATCH naming every bad reference, and nothing is saved.
121637
+ */
121638
+ body: MediaWorkBody;
121639
+ /**
121640
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
121641
+ */
121642
+ series?: string;
121643
+ /**
121644
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
121645
+ */
121646
+ custom?: MediaWorkCustom;
121647
+ };
121648
+ path: {
121649
+ /**
121650
+ * Library ID returned by creation.
121651
+ */
121652
+ library_id: string;
121653
+ };
121654
+ query?: never;
121655
+ url: '/media/v1/libraries/{library_id}/works';
121656
+ };
121657
+ export type MediaCreateWorkErrors = {
121658
+ /**
121659
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121660
+ */
121661
+ 400: MediaMediaError;
121662
+ /**
121663
+ * Request failed; see the error code reference.
121664
+ */
121665
+ 402: MediaMediaError;
121666
+ /**
121667
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121668
+ */
121669
+ 403: MediaMediaError;
121670
+ /**
121671
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121672
+ */
121673
+ 404: MediaMediaError;
121674
+ /**
121675
+ * Request failed; see the error code reference.
121676
+ */
121677
+ 409: MediaMediaError;
121678
+ /**
121679
+ * The file exceeds an input limit; provide a smaller source file.
121680
+ */
121681
+ 413: MediaMediaError;
121682
+ /**
121683
+ * This media format is unsupported; provide a supported format.
121684
+ */
121685
+ 415: MediaMediaError;
121686
+ /**
121687
+ * Request failed; see the error code reference.
121688
+ */
121689
+ 422: MediaMediaError;
121690
+ /**
121691
+ * A rate limit was reached; wait before retrying.
121692
+ */
121693
+ 429: MediaMediaError;
121694
+ /**
121695
+ * The requested operation is unsupported; choose a supported method.
121696
+ */
121697
+ 501: MediaMediaError;
121698
+ /**
121699
+ * Request failed; see the error code reference.
121700
+ */
121701
+ 502: MediaMediaError;
121702
+ /**
121703
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121704
+ */
121705
+ 503: MediaMediaError;
121706
+ };
121707
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
121708
+ export type MediaCreateWorkResponses = {
121709
+ /**
121710
+ * Successful response.
121711
+ */
121712
+ 200: MediaWork;
121713
+ };
121714
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
121715
+ export type MediaDeleteWorkData = {
121716
+ body?: never;
121717
+ path: {
121718
+ /**
121719
+ * Library ID returned by creation.
121720
+ */
121721
+ library_id: string;
121722
+ /**
121723
+ * Work id (wrk_…) returned by creation or listing.
121724
+ */
121725
+ work_id: string;
121726
+ };
121727
+ query?: never;
121728
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
121729
+ };
121730
+ export type MediaDeleteWorkErrors = {
121731
+ /**
121732
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121733
+ */
121734
+ 400: MediaMediaError;
121735
+ /**
121736
+ * Request failed; see the error code reference.
121737
+ */
121738
+ 402: MediaMediaError;
121739
+ /**
121740
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121741
+ */
121742
+ 403: MediaMediaError;
121743
+ /**
121744
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121745
+ */
121746
+ 404: MediaMediaError;
121747
+ /**
121748
+ * Request failed; see the error code reference.
121749
+ */
121750
+ 409: MediaMediaError;
121751
+ /**
121752
+ * The file exceeds an input limit; provide a smaller source file.
121753
+ */
121754
+ 413: MediaMediaError;
121755
+ /**
121756
+ * This media format is unsupported; provide a supported format.
121757
+ */
121758
+ 415: MediaMediaError;
121759
+ /**
121760
+ * Request failed; see the error code reference.
121761
+ */
121762
+ 422: MediaMediaError;
121763
+ /**
121764
+ * A rate limit was reached; wait before retrying.
121765
+ */
121766
+ 429: MediaMediaError;
121767
+ /**
121768
+ * The requested operation is unsupported; choose a supported method.
121769
+ */
121770
+ 501: MediaMediaError;
121771
+ /**
121772
+ * Request failed; see the error code reference.
121773
+ */
121774
+ 502: MediaMediaError;
121775
+ /**
121776
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121777
+ */
121778
+ 503: MediaMediaError;
121779
+ };
121780
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
121781
+ export type MediaDeleteWorkResponses = {
121782
+ /**
121783
+ * Successful response.
121784
+ */
121785
+ 200: MediaDeletedWork;
121786
+ };
121787
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
121788
+ export type MediaGetWorkData = {
121789
+ body?: never;
121790
+ path: {
121791
+ /**
121792
+ * Library ID returned by creation.
121793
+ */
121794
+ library_id: string;
121795
+ /**
121796
+ * Work id (wrk_…) returned by creation or listing.
121797
+ */
121798
+ work_id: string;
121799
+ };
121800
+ query?: {
121801
+ /**
121802
+ * assets returns every referenced asset with its URLs and size.
121803
+ */
121804
+ expand?: string;
121805
+ };
121806
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
121807
+ };
121808
+ export type MediaGetWorkErrors = {
121809
+ /**
121810
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121811
+ */
121812
+ 400: MediaMediaError;
121813
+ /**
121814
+ * Request failed; see the error code reference.
121815
+ */
121816
+ 402: MediaMediaError;
121817
+ /**
121818
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121819
+ */
121820
+ 403: MediaMediaError;
121821
+ /**
121822
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121823
+ */
121824
+ 404: MediaMediaError;
121825
+ /**
121826
+ * Request failed; see the error code reference.
121827
+ */
121828
+ 409: MediaMediaError;
121829
+ /**
121830
+ * The file exceeds an input limit; provide a smaller source file.
121831
+ */
121832
+ 413: MediaMediaError;
121833
+ /**
121834
+ * This media format is unsupported; provide a supported format.
121835
+ */
121836
+ 415: MediaMediaError;
121837
+ /**
121838
+ * Request failed; see the error code reference.
121839
+ */
121840
+ 422: MediaMediaError;
121841
+ /**
121842
+ * A rate limit was reached; wait before retrying.
121843
+ */
121844
+ 429: MediaMediaError;
121845
+ /**
121846
+ * The requested operation is unsupported; choose a supported method.
121847
+ */
121848
+ 501: MediaMediaError;
121849
+ /**
121850
+ * Request failed; see the error code reference.
121851
+ */
121852
+ 502: MediaMediaError;
121853
+ /**
121854
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121855
+ */
121856
+ 503: MediaMediaError;
121857
+ };
121858
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
121859
+ export type MediaGetWorkResponses = {
121860
+ /**
121861
+ * Successful response.
121862
+ */
121863
+ 200: MediaWork;
121864
+ };
121865
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
121866
+ export type MediaUpdateWorkData = {
121867
+ /**
121868
+ * Changes to a work. Send only what changes.
121869
+ */
121870
+ body: {
121871
+ /**
121872
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
121873
+ */
121874
+ body?: MediaWorkBody;
121875
+ /**
121876
+ * A new series, or null to clear it.
121877
+ */
121878
+ series?: string | null;
121879
+ /**
121880
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
121881
+ */
121882
+ custom?: MediaWorkCustom;
121883
+ /**
121884
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
121885
+ */
121886
+ if_revision?: number;
121887
+ };
121888
+ path: {
121889
+ /**
121890
+ * Library ID returned by creation.
121891
+ */
121892
+ library_id: string;
121893
+ /**
121894
+ * Work id (wrk_…) returned by creation or listing.
121895
+ */
121896
+ work_id: string;
121897
+ };
121898
+ query?: never;
121899
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
121900
+ };
121901
+ export type MediaUpdateWorkErrors = {
121902
+ /**
121903
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121904
+ */
121905
+ 400: MediaMediaError;
121906
+ /**
121907
+ * Request failed; see the error code reference.
121908
+ */
121909
+ 402: MediaMediaError;
121910
+ /**
121911
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121912
+ */
121913
+ 403: MediaMediaError;
121914
+ /**
121915
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121916
+ */
121917
+ 404: MediaMediaError;
121918
+ /**
121919
+ * Request failed; see the error code reference.
121920
+ */
121921
+ 409: MediaMediaError;
121922
+ /**
121923
+ * The file exceeds an input limit; provide a smaller source file.
121924
+ */
121925
+ 413: MediaMediaError;
121926
+ /**
121927
+ * This media format is unsupported; provide a supported format.
121928
+ */
121929
+ 415: MediaMediaError;
121930
+ /**
121931
+ * Request failed; see the error code reference.
121932
+ */
121933
+ 422: MediaMediaError;
121934
+ /**
121935
+ * A rate limit was reached; wait before retrying.
121936
+ */
121937
+ 429: MediaMediaError;
121938
+ /**
121939
+ * The requested operation is unsupported; choose a supported method.
121940
+ */
121941
+ 501: MediaMediaError;
121942
+ /**
121943
+ * Request failed; see the error code reference.
121944
+ */
121945
+ 502: MediaMediaError;
121946
+ /**
121947
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121948
+ */
121949
+ 503: MediaMediaError;
121950
+ };
121951
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121952
+ export type MediaUpdateWorkResponses = {
121953
+ /**
121954
+ * Successful response.
121955
+ */
121956
+ 200: MediaWork;
121957
+ };
121958
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121959
+ export type MediaListAssetWorksData = {
121960
+ body?: never;
121961
+ path: {
121962
+ /**
121963
+ * Library ID returned by creation.
121964
+ */
121965
+ library_id: string;
121966
+ /**
121967
+ * 32-character asset ID.
121968
+ */
121969
+ asset_id: string;
121970
+ };
121971
+ query?: {
121972
+ /**
121973
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
121974
+ */
121975
+ limit?: number;
121976
+ /**
121977
+ * Cursor from the previous next_cursor.
121978
+ */
121979
+ cursor?: string;
121980
+ };
121981
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
121982
+ };
121983
+ export type MediaListAssetWorksErrors = {
121984
+ /**
121985
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121986
+ */
121987
+ 400: MediaMediaError;
121988
+ /**
121989
+ * Request failed; see the error code reference.
121990
+ */
121991
+ 402: MediaMediaError;
121992
+ /**
121993
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121994
+ */
121995
+ 403: MediaMediaError;
121996
+ /**
121997
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121998
+ */
121999
+ 404: MediaMediaError;
122000
+ /**
122001
+ * Request failed; see the error code reference.
122002
+ */
122003
+ 409: MediaMediaError;
122004
+ /**
122005
+ * The file exceeds an input limit; provide a smaller source file.
122006
+ */
122007
+ 413: MediaMediaError;
122008
+ /**
122009
+ * This media format is unsupported; provide a supported format.
122010
+ */
122011
+ 415: MediaMediaError;
122012
+ /**
122013
+ * Request failed; see the error code reference.
122014
+ */
122015
+ 422: MediaMediaError;
122016
+ /**
122017
+ * A rate limit was reached; wait before retrying.
122018
+ */
122019
+ 429: MediaMediaError;
122020
+ /**
122021
+ * The requested operation is unsupported; choose a supported method.
122022
+ */
122023
+ 501: MediaMediaError;
122024
+ /**
122025
+ * Request failed; see the error code reference.
122026
+ */
122027
+ 502: MediaMediaError;
122028
+ /**
122029
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
122030
+ */
122031
+ 503: MediaMediaError;
122032
+ };
122033
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
122034
+ export type MediaListAssetWorksResponses = {
122035
+ /**
122036
+ * Successful response.
122037
+ */
122038
+ 200: MediaWorkPage;
122039
+ };
122040
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119472
122041
  export type OntologyListTypesData = {
119473
122042
  body?: never;
119474
122043
  path?: never;
@@ -121428,7 +123997,7 @@ export type GetSandboxV1SandboxesResponses = {
121428
123997
  };
121429
123998
  export type GetSandboxV1SandboxesResponse = GetSandboxV1SandboxesResponses[keyof GetSandboxV1SandboxesResponses];
121430
123999
  export type PostSandboxV1SandboxesData = {
121431
- body: SandboxNewSandboxV2;
124000
+ body: SandboxNewSandboxV2Writable;
121432
124001
  path?: never;
121433
124002
  query?: never;
121434
124003
  url: '/sandbox/v1/sandboxes';