@deepraxis/sdk 0.2.0-dev.142bee8 → 0.2.0-dev.229e1e5

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.
@@ -4307,11 +4307,11 @@ export type BrowserSessionGetResult = {
4307
4307
  */
4308
4308
  export type BrowserSessionLiveUrls = {
4309
4309
  /**
4310
- * 会话实时画面的完整跳转地址,携带观看凭证;与 debuggerUrl 相同。
4310
+ * 与 debuggerUrl 相同:会话在 Console 的会话页地址。
4311
4311
  */
4312
4312
  debuggerFullscreenUrl: string;
4313
4313
  /**
4314
- * 会话实时画面的完整跳转地址;直接打开,勿移除查询凭证。
4314
+ * 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
4315
4315
  */
4316
4316
  debuggerUrl: string;
4317
4317
  /**
@@ -4339,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
4339
4339
  */
4340
4340
  faviconUrl: string;
4341
4341
  /**
4342
- * 此标签页实时画面的完整跳转地址,包含观看凭证。
4342
+ * 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
4343
4343
  */
4344
4344
  debuggerUrl: string;
4345
4345
  /**
4346
- * 此标签页实时画面的完整跳转地址,与该页 debuggerUrl 相同。
4346
+ * 与该页 debuggerUrl 相同。
4347
4347
  */
4348
4348
  debuggerFullscreenUrl: string;
4349
4349
  }>;
@@ -4680,6 +4680,10 @@ export type BrowserStreamMessage = {
4680
4680
  */
4681
4681
  nextCursor: string | null;
4682
4682
  };
4683
+ /**
4684
+ * The tab in front: the newest one the browser opened or the one a client last brought to the front. null when unknown.
4685
+ */
4686
+ activePageId?: string | null;
4683
4687
  };
4684
4688
  } | {
4685
4689
  event: 'session';
@@ -4690,7 +4694,10 @@ export type BrowserStreamMessage = {
4690
4694
  } | {
4691
4695
  event: 'action';
4692
4696
  data: {
4693
- kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed';
4697
+ /**
4698
+ * 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.
4699
+ */
4700
+ kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
4694
4701
  pageId?: string;
4695
4702
  url?: string;
4696
4703
  x?: number;
@@ -12211,6 +12218,19 @@ export type AutomationDefinition = {
12211
12218
  */
12212
12219
  updated_at: string;
12213
12220
  };
12221
+ /**
12222
+ * The draft written on creation, in the shape a read returns: source is required and revision may be omitted.
12223
+ */
12224
+ export type AutomationDraftCreateInput = {
12225
+ /**
12226
+ * Draft source: TypeScript for scripts, YAML for workflows.
12227
+ */
12228
+ source: string;
12229
+ /**
12230
+ * 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.
12231
+ */
12232
+ revision?: string;
12233
+ };
12214
12234
  export type AutomationDefinitionDetail = {
12215
12235
  draft: AutomationDraft;
12216
12236
  /**
@@ -12288,6 +12308,19 @@ export type AutomationDefinitionDetail = {
12288
12308
  */
12289
12309
  updated_at: string;
12290
12310
  };
12311
+ /**
12312
+ * The draft written on update, in the shape a read returns: revision is the concurrency token, and omitting source changes only metadata.
12313
+ */
12314
+ export type AutomationDraftUpdateInput = {
12315
+ /**
12316
+ * The new draft source; omit it to keep the draft source and change only metadata.
12317
+ */
12318
+ source?: string;
12319
+ /**
12320
+ * 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.
12321
+ */
12322
+ revision?: string;
12323
+ };
12291
12324
  export type AutomationVersion = {
12292
12325
  /**
12293
12326
  * Version id, prefixed scv_ for scripts and wfv_ for workflows.
@@ -12968,7 +13001,9 @@ export type AutomationWait = {
12968
13001
  */
12969
13002
  kind: 'event' | 'timer' | 'child';
12970
13003
  /**
12971
- * Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13004
+ * 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.
13005
+ *
13006
+ * @deprecated
12972
13007
  */
12973
13008
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
12974
13009
  /**
@@ -13008,6 +13043,10 @@ export type AutomationWait = {
13008
13043
  * Time the wait point was resolved (RFC 3339 UTC), or null if still open.
13009
13044
  */
13010
13045
  resolved_at: null | string;
13046
+ /**
13047
+ * Wait point status. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13048
+ */
13049
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
13011
13050
  };
13012
13051
  /**
13013
13052
  * Record of one call made during a script run (an action, platform API, script or workflow), ordered by seq.
@@ -13252,7 +13291,7 @@ export type AutomationRunEvent = {
13252
13291
  */
13253
13292
  id: string;
13254
13293
  /**
13255
- * Event source, of the form /automation/v1/runs/{id}.
13294
+ * Event source, of the form /automation/v1/runs/{run_id}.
13256
13295
  */
13257
13296
  source: string;
13258
13297
  /**
@@ -13282,7 +13321,7 @@ export type AutomationRunEvent = {
13282
13321
  */
13283
13322
  id: string;
13284
13323
  /**
13285
- * Event source, of the form /automation/v1/runs/{id}.
13324
+ * Event source, of the form /automation/v1/runs/{run_id}.
13286
13325
  */
13287
13326
  source: string;
13288
13327
  /**
@@ -13312,7 +13351,7 @@ export type AutomationRunEvent = {
13312
13351
  */
13313
13352
  id: string;
13314
13353
  /**
13315
- * Event source, of the form /automation/v1/runs/{id}.
13354
+ * Event source, of the form /automation/v1/runs/{run_id}.
13316
13355
  */
13317
13356
  source: string;
13318
13357
  /**
@@ -13342,7 +13381,7 @@ export type AutomationRunEvent = {
13342
13381
  */
13343
13382
  id: string;
13344
13383
  /**
13345
- * Event source, of the form /automation/v1/runs/{id}.
13384
+ * Event source, of the form /automation/v1/runs/{run_id}.
13346
13385
  */
13347
13386
  source: string;
13348
13387
  /**
@@ -13372,7 +13411,7 @@ export type AutomationRunEvent = {
13372
13411
  */
13373
13412
  id: string;
13374
13413
  /**
13375
- * Event source, of the form /automation/v1/runs/{id}.
13414
+ * Event source, of the form /automation/v1/runs/{run_id}.
13376
13415
  */
13377
13416
  source: string;
13378
13417
  /**
@@ -13469,7 +13508,7 @@ export type AutomationTrigger = {
13469
13508
  */
13470
13509
  input_mode: 'body' | 'envelope';
13471
13510
  /**
13472
- * 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.
13511
+ * 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.
13473
13512
  */
13474
13513
  url_hint: string;
13475
13514
  } | null;
@@ -13481,6 +13520,11 @@ export type AutomationTrigger = {
13481
13520
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13482
13521
  */
13483
13522
  owner: string;
13523
+ /**
13524
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13525
+ *
13526
+ * @deprecated
13527
+ */
13484
13528
  state: AutomationTriggerState;
13485
13529
  /**
13486
13530
  * 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.
@@ -13533,9 +13577,13 @@ export type AutomationTrigger = {
13533
13577
  */
13534
13578
  etag: string;
13535
13579
  /**
13536
- * 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.
13580
+ * 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.
13537
13581
  */
13538
13582
  usage_30d?: AutomationAttributedUsage | null;
13583
+ /**
13584
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13585
+ */
13586
+ status: AutomationTriggerState;
13539
13587
  };
13540
13588
  export type AutomationTriggerCreateResult = {
13541
13589
  /**
@@ -13589,7 +13637,7 @@ export type AutomationTriggerCreateResult = {
13589
13637
  */
13590
13638
  input_mode: 'body' | 'envelope';
13591
13639
  /**
13592
- * 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.
13640
+ * 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.
13593
13641
  */
13594
13642
  url_hint: string;
13595
13643
  } | null;
@@ -13601,6 +13649,11 @@ export type AutomationTriggerCreateResult = {
13601
13649
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13602
13650
  */
13603
13651
  owner: string;
13652
+ /**
13653
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13654
+ *
13655
+ * @deprecated
13656
+ */
13604
13657
  state: AutomationTriggerState;
13605
13658
  /**
13606
13659
  * 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.
@@ -13653,13 +13706,19 @@ export type AutomationTriggerCreateResult = {
13653
13706
  */
13654
13707
  etag: string;
13655
13708
  /**
13656
- * Always null in a create response; the 30-day usage is only returned by GET /triggers/{id}.
13709
+ * Always null in a create response; the 30-day usage is only returned by GET /triggers/{trigger_id}.
13657
13710
  */
13658
13711
  usage_30d?: AutomationAttributedUsage | null;
13659
13712
  /**
13660
13713
  * Returned only on webhook creation or rotation.
13661
13714
  */
13662
13715
  webhook_url?: string;
13716
+ /**
13717
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13718
+ *
13719
+ * @deprecated
13720
+ */
13721
+ status: AutomationTriggerState;
13663
13722
  };
13664
13723
  /**
13665
13724
  * 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).
@@ -13839,7 +13898,7 @@ export type AutomationHumanTask = {
13839
13898
  */
13840
13899
  initiator: {
13841
13900
  /**
13842
- * Initiator type: user, api_key, agent, run (a parent run) or trigger.
13901
+ * Initiator type: user, api_key, agent, run (a parent run), trigger or application.
13843
13902
  */
13844
13903
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
13845
13904
  /**
@@ -20136,6 +20195,10 @@ export type DevopsPullRequest = {
20136
20195
  * 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.
20137
20196
  */
20138
20197
  mergeableState: string;
20198
+ /**
20199
+ * 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.
20200
+ */
20201
+ notify?: string;
20139
20202
  /**
20140
20203
  * 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.
20141
20204
  */
@@ -21437,7 +21500,7 @@ export type MediaLibrary = {
21437
21500
  };
21438
21501
  export type MediaMediaError = {
21439
21502
  error: {
21440
- 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';
21503
+ 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';
21441
21504
  message: string;
21442
21505
  details: string | null;
21443
21506
  };
@@ -22966,6 +23029,107 @@ export type MediaVoiceDesignCreateInput = {
22966
23029
  */
22967
23030
  description?: string;
22968
23031
  };
23032
+ /**
23033
+ * 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.
23034
+ */
23035
+ export type MediaWork = {
23036
+ /**
23037
+ * Always work.
23038
+ */
23039
+ object: 'work';
23040
+ /**
23041
+ * Work id (wrk_…).
23042
+ */
23043
+ id: string;
23044
+ /**
23045
+ * Library the work belongs to.
23046
+ */
23047
+ library_id: MediaLibraryId;
23048
+ /**
23049
+ * The work’s kind.
23050
+ */
23051
+ kind: MediaWorkKind;
23052
+ /**
23053
+ * The title, copied from body.title.
23054
+ */
23055
+ title: string;
23056
+ /**
23057
+ * Groups the platform versions of one story; null when unset.
23058
+ */
23059
+ series: string | null;
23060
+ /**
23061
+ * The kind’s body as stored.
23062
+ */
23063
+ body: MediaWorkBody;
23064
+ /**
23065
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23066
+ */
23067
+ custom: MediaWorkCustom;
23068
+ /**
23069
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23070
+ */
23071
+ missing: Array<string>;
23072
+ /**
23073
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23074
+ */
23075
+ revision: number;
23076
+ /**
23077
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23078
+ */
23079
+ created_by: string;
23080
+ /**
23081
+ * When the work was created.
23082
+ */
23083
+ created_at: MediaIsoTimestamp;
23084
+ /**
23085
+ * When the work last changed.
23086
+ */
23087
+ updated_at: MediaIsoTimestamp;
23088
+ /**
23089
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23090
+ */
23091
+ assets?: {
23092
+ [key: string]: MediaWorkAsset;
23093
+ };
23094
+ };
23095
+ /**
23096
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23097
+ */
23098
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23099
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23100
+ export type MediaWorkCustom = {
23101
+ [key: string]: unknown;
23102
+ };
23103
+ /**
23104
+ * A page of work summaries.
23105
+ */
23106
+ export type MediaWorkPage = {
23107
+ /**
23108
+ * Works in this page, most recently changed first.
23109
+ */
23110
+ data: Array<MediaWorkSummary>;
23111
+ /**
23112
+ * Cursor for the next page, or null when there are no more works.
23113
+ */
23114
+ next_cursor: string | null;
23115
+ };
23116
+ /**
23117
+ * The answer to deleting a work.
23118
+ */
23119
+ export type MediaDeletedWork = {
23120
+ /**
23121
+ * Id of the deleted work.
23122
+ */
23123
+ id: string;
23124
+ /**
23125
+ * Always work.
23126
+ */
23127
+ object: 'work';
23128
+ /**
23129
+ * Always true: the work is deleted; every asset it named is unchanged.
23130
+ */
23131
+ deleted: true;
23132
+ };
22969
23133
  /**
22970
23134
  * One page of type registrations; types are few enough that this face returns them in a single page.
22971
23135
  */
@@ -36818,11 +36982,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36818
36982
  */
36819
36983
  export type AutomationSubject = {
36820
36984
  /**
36821
- * 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.
36985
+ * 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.
36822
36986
  */
36823
36987
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36824
36988
  /**
36825
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
36989
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36826
36990
  */
36827
36991
  id: string;
36828
36992
  };
@@ -36865,7 +37029,7 @@ export type AutomationDraft = {
36865
37029
  */
36866
37030
  source: string;
36867
37031
  /**
36868
- * Draft revision tag (ETag); send it as expected_draft_revision when publishing or as If-Match when updating the draft; a mismatch returns 412.
37032
+ * Draft revision tag (ETag); send it back unchanged as draft.revision when updating the draft or publishing, and a mismatch returns 412.
36869
37033
  */
36870
37034
  revision: string;
36871
37035
  /**
@@ -41554,7 +41718,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41554
41718
  * Edit operations: the change this step applied to its parent asset.
41555
41719
  */
41556
41720
  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';
41557
- 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';
41721
+ 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';
41558
41722
  /**
41559
41723
  * State of a requested generation output.
41560
41724
  */
@@ -41900,6 +42064,192 @@ export type MediaHlsRendition = {
41900
42064
  state: MediaHlsRenditionState;
41901
42065
  };
41902
42066
  export type MediaVoiceConsentId = string;
42067
+ /**
42068
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42069
+ */
42070
+ export type MediaWorkAsset = {
42071
+ /**
42072
+ * The asset’s material type, such as image or video.
42073
+ */
42074
+ type: MediaMaterialType;
42075
+ /**
42076
+ * Short-lived delivery URL of the asset.
42077
+ */
42078
+ url: string;
42079
+ /**
42080
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42081
+ */
42082
+ thumbnail_url: string;
42083
+ /**
42084
+ * Width in pixels when known.
42085
+ */
42086
+ width?: number;
42087
+ /**
42088
+ * Height in pixels when known.
42089
+ */
42090
+ height?: number;
42091
+ /**
42092
+ * The asset’s display name.
42093
+ */
42094
+ display_name: string;
42095
+ };
42096
+ /**
42097
+ * Body of a gallery (图文). Order is the order of items.
42098
+ */
42099
+ export type MediaGalleryBody = {
42100
+ /**
42101
+ * Title, 1 to 100 characters.
42102
+ */
42103
+ title: string;
42104
+ /**
42105
+ * Body text, at most 10000 characters.
42106
+ */
42107
+ text?: string;
42108
+ /**
42109
+ * Topics without the # sign, at most 30 of up to 40 characters.
42110
+ */
42111
+ topics?: Array<string>;
42112
+ /**
42113
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42114
+ */
42115
+ cover?: string;
42116
+ /**
42117
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42118
+ */
42119
+ items: Array<MediaGalleryItem>;
42120
+ /**
42121
+ * Display style; defaults to xiaohongshu in the Console.
42122
+ */
42123
+ style?: MediaWorkStyle;
42124
+ };
42125
+ /**
42126
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42127
+ */
42128
+ export type MediaArticleBody = {
42129
+ /**
42130
+ * Title, 1 to 200 characters.
42131
+ */
42132
+ title: string;
42133
+ /**
42134
+ * Optional summary or digest, at most 500 characters.
42135
+ */
42136
+ summary?: string;
42137
+ /**
42138
+ * Optional author name, at most 60 characters.
42139
+ */
42140
+ author?: string;
42141
+ /**
42142
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42143
+ */
42144
+ body: string;
42145
+ /**
42146
+ * Optional cover: an image or sticker asset of this library.
42147
+ */
42148
+ cover?: string;
42149
+ /**
42150
+ * Display style; defaults to wechat_mp in the Console.
42151
+ */
42152
+ style?: MediaWorkStyle;
42153
+ };
42154
+ /**
42155
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42156
+ */
42157
+ export type MediaProductListingBody = {
42158
+ /**
42159
+ * Listing title, 1 to 200 characters.
42160
+ */
42161
+ title: string;
42162
+ /**
42163
+ * Selling points in order, at most 10 of up to 100 characters.
42164
+ */
42165
+ selling_points?: Array<string>;
42166
+ /**
42167
+ * Parameter rows in order, at most 50.
42168
+ */
42169
+ attributes?: Array<MediaListingAttribute>;
42170
+ /**
42171
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42172
+ */
42173
+ main: Array<string>;
42174
+ /**
42175
+ * Detail images in order, at most 100 image or sticker assets of this library.
42176
+ */
42177
+ detail?: Array<string>;
42178
+ /**
42179
+ * SKUs in order, at most 200.
42180
+ */
42181
+ skus?: Array<MediaListingSku>;
42182
+ /**
42183
+ * Optional product element (material_type product) this listing shows.
42184
+ */
42185
+ product?: string;
42186
+ /**
42187
+ * Display style; defaults to generic in the Console.
42188
+ */
42189
+ style?: MediaWorkStyle;
42190
+ };
42191
+ /**
42192
+ * 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.
42193
+ */
42194
+ export type MediaBlocksBody = {
42195
+ /**
42196
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42197
+ */
42198
+ title: string;
42199
+ /**
42200
+ * Optional Editor.js save time in milliseconds, kept as sent.
42201
+ */
42202
+ time?: number;
42203
+ /**
42204
+ * The blocks in order, 1 to 500.
42205
+ */
42206
+ blocks: Array<MediaEditorBlock>;
42207
+ /**
42208
+ * Optional Editor.js version string, kept as sent.
42209
+ */
42210
+ version?: string;
42211
+ };
42212
+ /**
42213
+ * One work in a list.
42214
+ */
42215
+ export type MediaWorkSummary = {
42216
+ /**
42217
+ * Always work.
42218
+ */
42219
+ object: 'work';
42220
+ /**
42221
+ * Work id (wrk_…).
42222
+ */
42223
+ id: string;
42224
+ /**
42225
+ * The work’s kind.
42226
+ */
42227
+ kind: MediaWorkKind;
42228
+ /**
42229
+ * The work’s title.
42230
+ */
42231
+ title: string;
42232
+ /**
42233
+ * The work’s series, or null.
42234
+ */
42235
+ series: string | null;
42236
+ /**
42237
+ * Short-lived URL of the cover picture, or null when it is missing.
42238
+ */
42239
+ cover_url: string | null;
42240
+ /**
42241
+ * How many distinct assets the body orders, cover and product element excluded.
42242
+ */
42243
+ item_count: number;
42244
+ /**
42245
+ * How many referenced assets have been deleted since.
42246
+ */
42247
+ missing_count: number;
42248
+ /**
42249
+ * When the work last changed.
42250
+ */
42251
+ updated_at: MediaIsoTimestamp;
42252
+ };
41903
42253
  /**
41904
42254
  * A kind of entity the graph accepts, for example a file or a customer.
41905
42255
  */
@@ -48884,7 +49234,7 @@ export type MediaSemanticMatch = {
48884
49234
  /**
48885
49235
  * Type of change recorded for a library, asset, processing task, search index or batch.
48886
49236
  */
48887
- 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';
49237
+ 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';
48888
49238
  /**
48889
49239
  * One picture an element names, with the word the caller uses for that view.
48890
49240
  */
@@ -48980,6 +49330,75 @@ export type MediaGenerationCapabilityModel = {
48980
49330
  * Readiness of one rung or of the ladder it is part of.
48981
49331
  */
48982
49332
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49333
+ /**
49334
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49335
+ */
49336
+ export type MediaGalleryItem = {
49337
+ /**
49338
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49339
+ */
49340
+ asset_id: string;
49341
+ /**
49342
+ * Optional caption for this picture, at most 1000 characters.
49343
+ */
49344
+ caption?: string;
49345
+ } | {
49346
+ /**
49347
+ * A text segment shown between pictures, at most 1000 characters.
49348
+ */
49349
+ text: string;
49350
+ };
49351
+ /**
49352
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49353
+ */
49354
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49355
+ /**
49356
+ * One parameter row of a listing.
49357
+ */
49358
+ export type MediaListingAttribute = {
49359
+ /**
49360
+ * Parameter name such as 容量, at most 40 characters.
49361
+ */
49362
+ name: string;
49363
+ /**
49364
+ * Parameter value such as 500ml, at most 200 characters.
49365
+ */
49366
+ value: string;
49367
+ };
49368
+ /**
49369
+ * One SKU of a listing.
49370
+ */
49371
+ export type MediaListingSku = {
49372
+ /**
49373
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49374
+ */
49375
+ spec: {
49376
+ [key: string]: string;
49377
+ };
49378
+ /**
49379
+ * Optional picture of this SKU: an image or sticker asset of this library.
49380
+ */
49381
+ asset_id?: string;
49382
+ };
49383
+ /**
49384
+ * 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.
49385
+ */
49386
+ export type MediaEditorBlock = {
49387
+ /**
49388
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49389
+ */
49390
+ id: string;
49391
+ /**
49392
+ * The official Editor.js block type.
49393
+ */
49394
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49395
+ /**
49396
+ * The block’s data in that type’s Editor.js shape.
49397
+ */
49398
+ data: {
49399
+ [key: string]: unknown;
49400
+ };
49401
+ };
48983
49402
  /**
48984
49403
  * Auto-resume enabled flag for paused sandboxes. Default false.
48985
49404
  */
@@ -50931,7 +51350,7 @@ export type PraxisSdkSsePostModelV1Messages = {
50931
51350
  };
50932
51351
  export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
50933
51352
  export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
50934
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51353
+ export type PraxisSdkSseGetAutomationV1RunsRunIdEvents = ({
50935
51354
  /**
50936
51355
  * 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.
50937
51356
  */
@@ -50964,7 +51383,7 @@ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
50964
51383
  [key: string]: unknown;
50965
51384
  };
50966
51385
  };
50967
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
51386
+ export type PraxisSdkSseGetAutomationV1RunsRunIdLogs = ({
50968
51387
  /**
50969
51388
  * SSE event name: log, one log line is carried in data.
50970
51389
  */
@@ -70213,6 +70632,78 @@ export type BrowserRunPageActionData = {
70213
70632
  * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70214
70633
  */
70215
70634
  tab?: string;
70635
+ } | {
70636
+ /**
70637
+ * 动作类型,固定为 route。
70638
+ */
70639
+ type: 'route';
70640
+ /**
70641
+ * 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
70642
+ */
70643
+ url: string;
70644
+ /**
70645
+ * 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
70646
+ */
70647
+ method?: string;
70648
+ /**
70649
+ * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70650
+ */
70651
+ tab?: string;
70652
+ /**
70653
+ * 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
70654
+ */
70655
+ response: {
70656
+ /**
70657
+ * 直接返回给定响应。
70658
+ */
70659
+ kind: 'fulfill';
70660
+ /**
70661
+ * 返回的 HTTP 状态码,100 到 599。
70662
+ */
70663
+ status: number;
70664
+ /**
70665
+ * 返回的响应头,名 → 值;最多 100 项。
70666
+ */
70667
+ headers?: {
70668
+ [key: string]: string;
70669
+ };
70670
+ /**
70671
+ * 返回的响应体,最多 1000000 个字符。
70672
+ */
70673
+ body?: string;
70674
+ } | {
70675
+ /**
70676
+ * 让请求失败,页面看到一次网络错误。
70677
+ */
70678
+ kind: 'abort';
70679
+ /**
70680
+ * Playwright 的错误码;省略为 failed。
70681
+ */
70682
+ error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
70683
+ } | {
70684
+ /**
70685
+ * 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
70686
+ */
70687
+ kind: 'delay';
70688
+ /**
70689
+ * 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
70690
+ */
70691
+ ms: number;
70692
+ };
70693
+ } | {
70694
+ /**
70695
+ * 动作类型,固定为 unroute。
70696
+ */
70697
+ type: 'unroute';
70698
+ /**
70699
+ * route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
70700
+ */
70701
+ routeId: string;
70702
+ } | {
70703
+ /**
70704
+ * 动作类型,固定为 routes。
70705
+ */
70706
+ type: 'routes';
70216
70707
  } | {
70217
70708
  /**
70218
70709
  * 动作类型:后退、前进或刷新当前页。
@@ -70431,6 +70922,60 @@ export type BrowserRunPageActionResponses = {
70431
70922
  * 已设置的 cookie 的域。
70432
70923
  */
70433
70924
  domain: string;
70925
+ } | {
70926
+ /**
70927
+ * 动作类型,固定为 route。
70928
+ */
70929
+ type: 'route';
70930
+ /**
70931
+ * 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
70932
+ */
70933
+ routeId: string;
70934
+ } | {
70935
+ /**
70936
+ * 动作类型,固定为 unroute。
70937
+ */
70938
+ type: 'unroute';
70939
+ /**
70940
+ * 请求移除的规则 ID。
70941
+ */
70942
+ routeId: string;
70943
+ /**
70944
+ * 是否真的移除了一条规则;ID 不存在时为 false。
70945
+ */
70946
+ removed: boolean;
70947
+ } | {
70948
+ /**
70949
+ * 动作类型,固定为 routes。
70950
+ */
70951
+ type: 'routes';
70952
+ /**
70953
+ * 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
70954
+ */
70955
+ routes: Array<{
70956
+ /**
70957
+ * 规则 ID,注册时由服务端生成并返回。
70958
+ */
70959
+ routeId: string;
70960
+ /**
70961
+ * 规则匹配的地址模式。
70962
+ */
70963
+ url: string;
70964
+ /**
70965
+ * 规则限定的 HTTP 方法;不限定时省略。
70966
+ */
70967
+ method?: string;
70968
+ /**
70969
+ * 规则只作用的标签页;作用于整个会话时省略。
70970
+ */
70971
+ tab?: string;
70972
+ /**
70973
+ * 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
70974
+ */
70975
+ response: {
70976
+ [key: string]: unknown;
70977
+ };
70978
+ }>;
70434
70979
  };
70435
70980
  };
70436
70981
  export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
@@ -79463,11 +80008,19 @@ export type ListOrganizationNotificationLettersData = {
79463
80008
  path?: never;
79464
80009
  query?: {
79465
80010
  /**
79466
- * Only unread letters, or only read ones; omit for both.
80011
+ * 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.
80012
+ */
80013
+ direction?: 'received' | 'sent';
80014
+ /**
80015
+ * 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.
79467
80016
  */
79468
- status?: 'unread' | 'read';
80017
+ status?: 'unread' | 'read' | 'scheduled';
79469
80018
  /**
79470
- * false (the default) hides archived letters; true lists only the archived ones.
80019
+ * Only letters of this conversation, for received and sent alike; omit for all.
80020
+ */
80021
+ thread?: string;
80022
+ /**
80023
+ * 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.
79471
80024
  */
79472
80025
  archived?: boolean;
79473
80026
  /**
@@ -79483,7 +80036,7 @@ export type ListOrganizationNotificationLettersData = {
79483
80036
  };
79484
80037
  export type ListOrganizationNotificationLettersErrors = {
79485
80038
  /**
79486
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80039
+ * 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).
79487
80040
  */
79488
80041
  400: unknown;
79489
80042
  /**
@@ -79880,6 +80433,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79880
80433
  };
79881
80434
  };
79882
80435
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80436
+ export type ListOrganizationNotificationMessagesData = {
80437
+ body?: never;
80438
+ path?: never;
80439
+ query?: {
80440
+ /**
80441
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80442
+ */
80443
+ archived?: '0' | '1';
80444
+ /**
80445
+ * Messages per page, 1 to 100; defaults to 20.
80446
+ */
80447
+ limit?: number;
80448
+ /**
80449
+ * Opaque nextPageToken from the previous response; omit for the first page.
80450
+ */
80451
+ page?: string;
80452
+ };
80453
+ url: '/organization/v1/notifications/messages';
80454
+ };
80455
+ export type ListOrganizationNotificationMessagesErrors = {
80456
+ /**
80457
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80458
+ */
80459
+ 400: unknown;
80460
+ /**
80461
+ * Missing or invalid credential (RFC 9457 problem).
80462
+ */
80463
+ 401: unknown;
80464
+ /**
80465
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80466
+ */
80467
+ 403: unknown;
80468
+ /**
80469
+ * 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.
80470
+ */
80471
+ 502: unknown;
80472
+ };
80473
+ export type ListOrganizationNotificationMessagesResponses = {
80474
+ /**
80475
+ * One page of this person's messages.
80476
+ */
80477
+ 200: {
80478
+ /**
80479
+ * The page, newest first.
80480
+ */
80481
+ items: Array<{
80482
+ /**
80483
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80484
+ */
80485
+ name: string;
80486
+ /**
80487
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80488
+ */
80489
+ organizationId: string;
80490
+ /**
80491
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80492
+ */
80493
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80494
+ /**
80495
+ * The notification workflow that wrote it, as the preferences page names it.
80496
+ */
80497
+ workflow: string;
80498
+ /**
80499
+ * The message's headline, as the bell shows it.
80500
+ */
80501
+ title: string;
80502
+ /**
80503
+ * The message text.
80504
+ */
80505
+ body: string;
80506
+ /**
80507
+ * Where the bell opens this message; absent when it has no page.
80508
+ */
80509
+ actionUrl?: string;
80510
+ /**
80511
+ * Whether the bell has been opened since the message arrived.
80512
+ */
80513
+ seen: boolean;
80514
+ /**
80515
+ * Whether this person has read it.
80516
+ */
80517
+ read: boolean;
80518
+ /**
80519
+ * Whether this person archived it; archived messages are not in the inbox tab.
80520
+ */
80521
+ archived: boolean;
80522
+ /**
80523
+ * When the message arrived.
80524
+ */
80525
+ createTime: string;
80526
+ }>;
80527
+ /**
80528
+ * Pass unchanged as page for the next page; absent at the end.
80529
+ */
80530
+ nextPageToken?: string;
80531
+ };
80532
+ };
80533
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80534
+ export type DeleteOrganizationNotificationMessageData = {
80535
+ body?: never;
80536
+ path: {
80537
+ /**
80538
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80539
+ */
80540
+ name: string;
80541
+ };
80542
+ query?: never;
80543
+ url: '/organization/v1/notifications/messages/{name}';
80544
+ };
80545
+ export type DeleteOrganizationNotificationMessageErrors = {
80546
+ /**
80547
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80548
+ */
80549
+ 400: unknown;
80550
+ /**
80551
+ * Missing or invalid credential (RFC 9457 problem).
80552
+ */
80553
+ 401: unknown;
80554
+ /**
80555
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80556
+ */
80557
+ 403: unknown;
80558
+ /**
80559
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80560
+ */
80561
+ 404: unknown;
80562
+ /**
80563
+ * 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.
80564
+ */
80565
+ 502: unknown;
80566
+ };
80567
+ export type DeleteOrganizationNotificationMessageResponses = {
80568
+ /**
80569
+ * The message is deleted.
80570
+ */
80571
+ 200: {
80572
+ /**
80573
+ * Always true: the message was deleted.
80574
+ */
80575
+ deleted: boolean;
80576
+ };
80577
+ };
80578
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80579
+ export type GetOrganizationNotificationMessageData = {
80580
+ body?: never;
80581
+ path: {
80582
+ /**
80583
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80584
+ */
80585
+ name: string;
80586
+ };
80587
+ query?: never;
80588
+ url: '/organization/v1/notifications/messages/{name}';
80589
+ };
80590
+ export type GetOrganizationNotificationMessageErrors = {
80591
+ /**
80592
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80593
+ */
80594
+ 400: unknown;
80595
+ /**
80596
+ * Missing or invalid credential (RFC 9457 problem).
80597
+ */
80598
+ 401: unknown;
80599
+ /**
80600
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80601
+ */
80602
+ 403: unknown;
80603
+ /**
80604
+ * 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).
80605
+ */
80606
+ 404: unknown;
80607
+ /**
80608
+ * 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.
80609
+ */
80610
+ 502: unknown;
80611
+ };
80612
+ export type GetOrganizationNotificationMessageResponses = {
80613
+ /**
80614
+ * The message.
80615
+ */
80616
+ 200: {
80617
+ /**
80618
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80619
+ */
80620
+ name: string;
80621
+ /**
80622
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80623
+ */
80624
+ organizationId: string;
80625
+ /**
80626
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80627
+ */
80628
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80629
+ /**
80630
+ * The notification workflow that wrote it, as the preferences page names it.
80631
+ */
80632
+ workflow: string;
80633
+ /**
80634
+ * The message's headline, as the bell shows it.
80635
+ */
80636
+ title: string;
80637
+ /**
80638
+ * The message text.
80639
+ */
80640
+ body: string;
80641
+ /**
80642
+ * Where the bell opens this message; absent when it has no page.
80643
+ */
80644
+ actionUrl?: string;
80645
+ /**
80646
+ * Whether the bell has been opened since the message arrived.
80647
+ */
80648
+ seen: boolean;
80649
+ /**
80650
+ * Whether this person has read it.
80651
+ */
80652
+ read: boolean;
80653
+ /**
80654
+ * Whether this person archived it; archived messages are not in the inbox tab.
80655
+ */
80656
+ archived: boolean;
80657
+ /**
80658
+ * When the message arrived.
80659
+ */
80660
+ createTime: string;
80661
+ };
80662
+ };
80663
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80664
+ export type UpdateOrganizationNotificationMessageData = {
80665
+ body: {
80666
+ /**
80667
+ * Mark the message read (true) or unread (false); omit to leave it.
80668
+ */
80669
+ read?: boolean;
80670
+ /**
80671
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80672
+ */
80673
+ archived?: boolean;
80674
+ };
80675
+ path: {
80676
+ /**
80677
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80678
+ */
80679
+ name: string;
80680
+ };
80681
+ query?: never;
80682
+ url: '/organization/v1/notifications/messages/{name}';
80683
+ };
80684
+ export type UpdateOrganizationNotificationMessageErrors = {
80685
+ /**
80686
+ * 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).
80687
+ */
80688
+ 400: unknown;
80689
+ /**
80690
+ * Missing or invalid credential (RFC 9457 problem).
80691
+ */
80692
+ 401: unknown;
80693
+ /**
80694
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80695
+ */
80696
+ 403: unknown;
80697
+ /**
80698
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80699
+ */
80700
+ 404: unknown;
80701
+ /**
80702
+ * 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.
80703
+ */
80704
+ 502: unknown;
80705
+ };
80706
+ export type UpdateOrganizationNotificationMessageResponses = {
80707
+ /**
80708
+ * The message after the change.
80709
+ */
80710
+ 200: {
80711
+ /**
80712
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80713
+ */
80714
+ name: string;
80715
+ /**
80716
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80717
+ */
80718
+ organizationId: string;
80719
+ /**
80720
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80721
+ */
80722
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80723
+ /**
80724
+ * The notification workflow that wrote it, as the preferences page names it.
80725
+ */
80726
+ workflow: string;
80727
+ /**
80728
+ * The message's headline, as the bell shows it.
80729
+ */
80730
+ title: string;
80731
+ /**
80732
+ * The message text.
80733
+ */
80734
+ body: string;
80735
+ /**
80736
+ * Where the bell opens this message; absent when it has no page.
80737
+ */
80738
+ actionUrl?: string;
80739
+ /**
80740
+ * Whether the bell has been opened since the message arrived.
80741
+ */
80742
+ seen: boolean;
80743
+ /**
80744
+ * Whether this person has read it.
80745
+ */
80746
+ read: boolean;
80747
+ /**
80748
+ * Whether this person archived it; archived messages are not in the inbox tab.
80749
+ */
80750
+ archived: boolean;
80751
+ /**
80752
+ * When the message arrived.
80753
+ */
80754
+ createTime: string;
80755
+ };
80756
+ };
80757
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80758
+ export type ReadAllOrganizationNotificationMessagesData = {
80759
+ body?: never;
80760
+ path?: never;
80761
+ query?: never;
80762
+ url: '/organization/v1/notifications/messages:readAll';
80763
+ };
80764
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80765
+ /**
80766
+ * Missing or invalid credential (RFC 9457 problem).
80767
+ */
80768
+ 401: unknown;
80769
+ /**
80770
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80771
+ */
80772
+ 403: unknown;
80773
+ /**
80774
+ * 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.
80775
+ */
80776
+ 502: unknown;
80777
+ };
80778
+ export type ReadAllOrganizationNotificationMessagesResponses = {
80779
+ /**
80780
+ * How many messages were marked read.
80781
+ */
80782
+ 200: {
80783
+ /**
80784
+ * The number of messages that were unread and are now read.
80785
+ */
80786
+ updated: number;
80787
+ };
80788
+ };
80789
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79883
80790
  export type GetOrganizationNotificationPreferencesData = {
79884
80791
  body?: never;
79885
80792
  path?: never;
@@ -81693,6 +82600,117 @@ export type GetByodPairingResponses = {
81693
82600
  };
81694
82601
  };
81695
82602
  export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
82603
+ export type GetByodPairingStatusData = {
82604
+ body?: never;
82605
+ path: {
82606
+ /**
82607
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
82608
+ */
82609
+ code: string;
82610
+ };
82611
+ query?: never;
82612
+ url: '/sandbox/v1/byod/pairings/{code}/status';
82613
+ };
82614
+ export type GetByodPairingStatusErrors = {
82615
+ /**
82616
+ * Authentication required: supply an organization API key that carries a tenant.
82617
+ */
82618
+ 401: unknown;
82619
+ /**
82620
+ * NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
82621
+ */
82622
+ 404: unknown;
82623
+ /**
82624
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
82625
+ */
82626
+ 503: unknown;
82627
+ };
82628
+ export type GetByodPairingStatusResponses = {
82629
+ /**
82630
+ * One pairing of the organization.
82631
+ */
82632
+ 200: {
82633
+ /**
82634
+ * The 8-character pairing code that was asked about.
82635
+ */
82636
+ code: string;
82637
+ /**
82638
+ * When the code stops working, as an ISO-8601 timestamp.
82639
+ */
82640
+ expires_at: string;
82641
+ /**
82642
+ * The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
82643
+ */
82644
+ claimed_device: {
82645
+ /**
82646
+ * Resource type; always "byod_device".
82647
+ */
82648
+ object: 'byod_device';
82649
+ /**
82650
+ * 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.
82651
+ */
82652
+ id: string;
82653
+ /**
82654
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
82655
+ */
82656
+ platform: 'android' | 'macos' | 'linux';
82657
+ /**
82658
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
82659
+ */
82660
+ name: string;
82661
+ /**
82662
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
82663
+ */
82664
+ model: string;
82665
+ /**
82666
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
82667
+ */
82668
+ os_version: string;
82669
+ /**
82670
+ * 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.
82671
+ */
82672
+ online: boolean;
82673
+ /**
82674
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
82675
+ */
82676
+ last_seen_at: string | null;
82677
+ /**
82678
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
82679
+ */
82680
+ created_at: string;
82681
+ /**
82682
+ * 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).
82683
+ */
82684
+ capabilities: Array<'display' | 'agent'>;
82685
+ /**
82686
+ * 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.
82687
+ */
82688
+ agent_dirs: Array<string>;
82689
+ /**
82690
+ * 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.
82691
+ */
82692
+ agent_bindings: Array<{
82693
+ /**
82694
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
82695
+ */
82696
+ dir: string;
82697
+ /**
82698
+ * The agent the directory is bound to: its identity number or its agent id.
82699
+ */
82700
+ agent: string;
82701
+ }>;
82702
+ /**
82703
+ * 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.
82704
+ */
82705
+ envd_version: string | null;
82706
+ /**
82707
+ * 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.
82708
+ */
82709
+ allow_bypass: boolean;
82710
+ } | null;
82711
+ };
82712
+ };
82713
+ export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
81696
82714
  export type ClaimByodPairingData = {
81697
82715
  /**
81698
82716
  * What the phone's app knows about itself when it claims the pairing.
@@ -97313,14 +98331,14 @@ export type AutomationActionsGetData = {
97313
98331
  /**
97314
98332
  * 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.
97315
98333
  */
97316
- ns: string;
98334
+ namespace: string;
97317
98335
  /**
97318
98336
  * 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}.
97319
98337
  */
97320
98338
  name: string;
97321
98339
  };
97322
98340
  query?: never;
97323
- url: '/automation/v1/actions/{ns}/{name}';
98341
+ url: '/automation/v1/actions/{namespace}/{name}';
97324
98342
  };
97325
98343
  export type AutomationActionsGetErrors = {
97326
98344
  /**
@@ -97443,7 +98461,7 @@ export type AutomationActionsUpdateData = {
97443
98461
  /**
97444
98462
  * 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.
97445
98463
  */
97446
- ns: string;
98464
+ namespace: string;
97447
98465
  /**
97448
98466
  * 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}.
97449
98467
  */
@@ -97455,7 +98473,7 @@ export type AutomationActionsUpdateData = {
97455
98473
  */
97456
98474
  dry_run?: boolean;
97457
98475
  };
97458
- url: '/automation/v1/actions/{ns}/{name}';
98476
+ url: '/automation/v1/actions/{namespace}/{name}';
97459
98477
  };
97460
98478
  export type AutomationActionsUpdateErrors = {
97461
98479
  /**
@@ -97506,7 +98524,7 @@ export type AutomationActionsRevisionsData = {
97506
98524
  /**
97507
98525
  * 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.
97508
98526
  */
97509
- ns: string;
98527
+ namespace: string;
97510
98528
  /**
97511
98529
  * 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}.
97512
98530
  */
@@ -97526,7 +98544,7 @@ export type AutomationActionsRevisionsData = {
97526
98544
  */
97527
98545
  expand?: 'source';
97528
98546
  };
97529
- url: '/automation/v1/actions/{ns}/{name}/revisions';
98547
+ url: '/automation/v1/actions/{namespace}/{name}/revisions';
97530
98548
  };
97531
98549
  export type AutomationActionsRevisionsErrors = {
97532
98550
  /**
@@ -97565,7 +98583,7 @@ export type AutomationActionsRevisionData = {
97565
98583
  /**
97566
98584
  * 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.
97567
98585
  */
97568
- ns: string;
98586
+ namespace: string;
97569
98587
  /**
97570
98588
  * 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}.
97571
98589
  */
@@ -97576,7 +98594,7 @@ export type AutomationActionsRevisionData = {
97576
98594
  revision: string;
97577
98595
  };
97578
98596
  query?: never;
97579
- url: '/automation/v1/actions/{ns}/{name}/revisions/{revision}';
98597
+ url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}';
97580
98598
  };
97581
98599
  export type AutomationActionsRevisionErrors = {
97582
98600
  /**
@@ -97626,14 +98644,14 @@ export type AutomationActionsRollbackData = {
97626
98644
  /**
97627
98645
  * 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.
97628
98646
  */
97629
- ns: string;
98647
+ namespace: string;
97630
98648
  /**
97631
98649
  * 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}.
97632
98650
  */
97633
98651
  name: string;
97634
98652
  };
97635
98653
  query?: never;
97636
- url: '/automation/v1/actions/{ns}/{name}/rollback';
98654
+ url: '/automation/v1/actions/{namespace}/{name}/rollback';
97637
98655
  };
97638
98656
  export type AutomationActionsRollbackErrors = {
97639
98657
  /**
@@ -97687,7 +98705,7 @@ export type AutomationActionsInvocationsData = {
97687
98705
  /**
97688
98706
  * 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.
97689
98707
  */
97690
- ns: string;
98708
+ namespace: string;
97691
98709
  /**
97692
98710
  * 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}.
97693
98711
  */
@@ -97723,7 +98741,7 @@ export type AutomationActionsInvocationsData = {
97723
98741
  */
97724
98742
  'created_at[gte]'?: string;
97725
98743
  };
97726
- url: '/automation/v1/actions/{ns}/{name}/invocations';
98744
+ url: '/automation/v1/actions/{namespace}/{name}/invocations';
97727
98745
  };
97728
98746
  export type AutomationActionsInvocationsErrors = {
97729
98747
  /**
@@ -97762,7 +98780,7 @@ export type AutomationActionsDependentsData = {
97762
98780
  /**
97763
98781
  * 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.
97764
98782
  */
97765
- ns: string;
98783
+ namespace: string;
97766
98784
  /**
97767
98785
  * 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}.
97768
98786
  */
@@ -97778,7 +98796,7 @@ export type AutomationActionsDependentsData = {
97778
98796
  */
97779
98797
  cursor?: string;
97780
98798
  };
97781
- url: '/automation/v1/actions/{ns}/{name}/dependents';
98799
+ url: '/automation/v1/actions/{namespace}/{name}/dependents';
97782
98800
  };
97783
98801
  export type AutomationActionsDependentsErrors = {
97784
98802
  /**
@@ -97817,14 +98835,14 @@ export type AutomationActionsArchiveData = {
97817
98835
  /**
97818
98836
  * 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.
97819
98837
  */
97820
- ns: string;
98838
+ namespace: string;
97821
98839
  /**
97822
98840
  * 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}.
97823
98841
  */
97824
98842
  name: string;
97825
98843
  };
97826
98844
  query?: never;
97827
- url: '/automation/v1/actions/{ns}/{name}/archive';
98845
+ url: '/automation/v1/actions/{namespace}/{name}/archive';
97828
98846
  };
97829
98847
  export type AutomationActionsArchiveErrors = {
97830
98848
  /**
@@ -97858,14 +98876,14 @@ export type AutomationActionsRestoreData = {
97858
98876
  /**
97859
98877
  * 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.
97860
98878
  */
97861
- ns: string;
98879
+ namespace: string;
97862
98880
  /**
97863
98881
  * 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}.
97864
98882
  */
97865
98883
  name: string;
97866
98884
  };
97867
98885
  query?: never;
97868
- url: '/automation/v1/actions/{ns}/{name}/restore';
98886
+ url: '/automation/v1/actions/{namespace}/{name}/restore';
97869
98887
  };
97870
98888
  export type AutomationActionsRestoreErrors = {
97871
98889
  /**
@@ -97980,9 +98998,9 @@ export type AutomationScriptsCreateData = {
97980
98998
  */
97981
98999
  description?: string;
97982
99000
  /**
97983
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99001
+ * 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 }.
97984
99002
  */
97985
- draft?: string;
99003
+ draft?: AutomationDraftCreateInput | string;
97986
99004
  /**
97987
99005
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
97988
99006
  */
@@ -98037,14 +99055,14 @@ export type AutomationScriptsGetData = {
98037
99055
  /**
98038
99056
  * 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.
98039
99057
  */
98040
- ns: string;
99058
+ namespace: string;
98041
99059
  /**
98042
99060
  * 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}.
98043
99061
  */
98044
99062
  name: string;
98045
99063
  };
98046
99064
  query?: never;
98047
- url: '/automation/v1/scripts/{ns}/{name}';
99065
+ url: '/automation/v1/scripts/{namespace}/{name}';
98048
99066
  };
98049
99067
  export type AutomationScriptsGetErrors = {
98050
99068
  /**
@@ -98081,28 +99099,30 @@ export type AutomationScriptsPatchData = {
98081
99099
  [key: string]: string;
98082
99100
  };
98083
99101
  /**
98084
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99102
+ * 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.
98085
99103
  */
98086
- draft?: string;
99104
+ draft?: AutomationDraftUpdateInput | string;
98087
99105
  };
98088
- headers: {
99106
+ headers?: {
98089
99107
  /**
98090
- * 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.
99108
+ * 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.
99109
+ *
99110
+ * @deprecated
98091
99111
  */
98092
- 'If-Match': string;
99112
+ 'If-Match'?: string;
98093
99113
  };
98094
99114
  path: {
98095
99115
  /**
98096
99116
  * 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.
98097
99117
  */
98098
- ns: string;
99118
+ namespace: string;
98099
99119
  /**
98100
99120
  * 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}.
98101
99121
  */
98102
99122
  name: string;
98103
99123
  };
98104
99124
  query?: never;
98105
- url: '/automation/v1/scripts/{ns}/{name}';
99125
+ url: '/automation/v1/scripts/{namespace}/{name}';
98106
99126
  };
98107
99127
  export type AutomationScriptsPatchErrors = {
98108
99128
  /**
@@ -98144,14 +99164,14 @@ export type AutomationScriptsArchiveData = {
98144
99164
  /**
98145
99165
  * 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.
98146
99166
  */
98147
- ns: string;
99167
+ namespace: string;
98148
99168
  /**
98149
99169
  * 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}.
98150
99170
  */
98151
99171
  name: string;
98152
99172
  };
98153
99173
  query?: never;
98154
- url: '/automation/v1/scripts/{ns}/{name}/archive';
99174
+ url: '/automation/v1/scripts/{namespace}/{name}/archive';
98155
99175
  };
98156
99176
  export type AutomationScriptsArchiveErrors = {
98157
99177
  /**
@@ -98189,14 +99209,14 @@ export type AutomationScriptsRestoreData = {
98189
99209
  /**
98190
99210
  * 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.
98191
99211
  */
98192
- ns: string;
99212
+ namespace: string;
98193
99213
  /**
98194
99214
  * 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}.
98195
99215
  */
98196
99216
  name: string;
98197
99217
  };
98198
99218
  query?: never;
98199
- url: '/automation/v1/scripts/{ns}/{name}/restore';
99219
+ url: '/automation/v1/scripts/{namespace}/{name}/restore';
98200
99220
  };
98201
99221
  export type AutomationScriptsRestoreErrors = {
98202
99222
  /**
@@ -98234,7 +99254,7 @@ export type AutomationScriptsVersionsData = {
98234
99254
  /**
98235
99255
  * 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.
98236
99256
  */
98237
- ns: string;
99257
+ namespace: string;
98238
99258
  /**
98239
99259
  * 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}.
98240
99260
  */
@@ -98254,7 +99274,7 @@ export type AutomationScriptsVersionsData = {
98254
99274
  */
98255
99275
  expand?: 'source';
98256
99276
  };
98257
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99277
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98258
99278
  };
98259
99279
  export type AutomationScriptsVersionsErrors = {
98260
99280
  /**
@@ -98294,13 +99314,24 @@ export type AutomationScriptsPublishData = {
98294
99314
  */
98295
99315
  version: string;
98296
99316
  /**
98297
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
99317
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
99318
+ *
99319
+ * @deprecated
98298
99320
  */
98299
- expected_draft_revision: string;
99321
+ expected_draft_revision?: string;
98300
99322
  /**
98301
99323
  * 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.
98302
99324
  */
98303
99325
  tag?: string;
99326
+ /**
99327
+ * 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.
99328
+ */
99329
+ draft?: {
99330
+ /**
99331
+ * 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.
99332
+ */
99333
+ revision: string;
99334
+ };
98304
99335
  } | {
98305
99336
  /**
98306
99337
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -98329,14 +99360,14 @@ export type AutomationScriptsPublishData = {
98329
99360
  /**
98330
99361
  * 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.
98331
99362
  */
98332
- ns: string;
99363
+ namespace: string;
98333
99364
  /**
98334
99365
  * 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}.
98335
99366
  */
98336
99367
  name: string;
98337
99368
  };
98338
99369
  query?: never;
98339
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99370
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98340
99371
  };
98341
99372
  export type AutomationScriptsPublishErrors = {
98342
99373
  /**
@@ -98391,7 +99422,7 @@ export type AutomationScriptsVersionData = {
98391
99422
  /**
98392
99423
  * 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.
98393
99424
  */
98394
- ns: string;
99425
+ namespace: string;
98395
99426
  /**
98396
99427
  * 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}.
98397
99428
  */
@@ -98402,7 +99433,7 @@ export type AutomationScriptsVersionData = {
98402
99433
  version: string;
98403
99434
  };
98404
99435
  query?: never;
98405
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}';
99436
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}';
98406
99437
  };
98407
99438
  export type AutomationScriptsVersionErrors = {
98408
99439
  /**
@@ -98438,7 +99469,7 @@ export type AutomationScriptsDeprecateData = {
98438
99469
  /**
98439
99470
  * 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.
98440
99471
  */
98441
- ns: string;
99472
+ namespace: string;
98442
99473
  /**
98443
99474
  * 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}.
98444
99475
  */
@@ -98449,7 +99480,7 @@ export type AutomationScriptsDeprecateData = {
98449
99480
  version: string;
98450
99481
  };
98451
99482
  query?: never;
98452
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate';
99483
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate';
98453
99484
  };
98454
99485
  export type AutomationScriptsDeprecateErrors = {
98455
99486
  /**
@@ -98492,14 +99523,14 @@ export type AutomationScriptsDistTagsData = {
98492
99523
  /**
98493
99524
  * 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.
98494
99525
  */
98495
- ns: string;
99526
+ namespace: string;
98496
99527
  /**
98497
99528
  * 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}.
98498
99529
  */
98499
99530
  name: string;
98500
99531
  };
98501
99532
  query?: never;
98502
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags';
99533
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags';
98503
99534
  };
98504
99535
  export type AutomationScriptsDistTagsErrors = {
98505
99536
  /**
@@ -98531,7 +99562,7 @@ export type AutomationScriptsDeleteDistTagData = {
98531
99562
  /**
98532
99563
  * 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.
98533
99564
  */
98534
- ns: string;
99565
+ namespace: string;
98535
99566
  /**
98536
99567
  * 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}.
98537
99568
  */
@@ -98542,7 +99573,7 @@ export type AutomationScriptsDeleteDistTagData = {
98542
99573
  tag: string;
98543
99574
  };
98544
99575
  query?: never;
98545
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99576
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98546
99577
  };
98547
99578
  export type AutomationScriptsDeleteDistTagErrors = {
98548
99579
  /**
@@ -98592,7 +99623,7 @@ export type AutomationScriptsSetDistTagData = {
98592
99623
  /**
98593
99624
  * 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.
98594
99625
  */
98595
- ns: string;
99626
+ namespace: string;
98596
99627
  /**
98597
99628
  * 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}.
98598
99629
  */
@@ -98603,7 +99634,7 @@ export type AutomationScriptsSetDistTagData = {
98603
99634
  tag: string;
98604
99635
  };
98605
99636
  query?: never;
98606
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99637
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98607
99638
  };
98608
99639
  export type AutomationScriptsSetDistTagErrors = {
98609
99640
  /**
@@ -98730,9 +99761,9 @@ export type AutomationWorkflowsCreateData = {
98730
99761
  */
98731
99762
  description?: string;
98732
99763
  /**
98733
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99764
+ * 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 }.
98734
99765
  */
98735
- draft?: string;
99766
+ draft?: AutomationDraftCreateInput | string;
98736
99767
  /**
98737
99768
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
98738
99769
  */
@@ -98787,14 +99818,14 @@ export type AutomationWorkflowsGetData = {
98787
99818
  /**
98788
99819
  * 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.
98789
99820
  */
98790
- ns: string;
99821
+ namespace: string;
98791
99822
  /**
98792
99823
  * 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}.
98793
99824
  */
98794
99825
  name: string;
98795
99826
  };
98796
99827
  query?: never;
98797
- url: '/automation/v1/workflows/{ns}/{name}';
99828
+ url: '/automation/v1/workflows/{namespace}/{name}';
98798
99829
  };
98799
99830
  export type AutomationWorkflowsGetErrors = {
98800
99831
  /**
@@ -98831,28 +99862,30 @@ export type AutomationWorkflowsPatchData = {
98831
99862
  [key: string]: string;
98832
99863
  };
98833
99864
  /**
98834
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99865
+ * 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.
98835
99866
  */
98836
- draft?: string;
99867
+ draft?: AutomationDraftUpdateInput | string;
98837
99868
  };
98838
- headers: {
99869
+ headers?: {
98839
99870
  /**
98840
- * 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.
99871
+ * 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.
99872
+ *
99873
+ * @deprecated
98841
99874
  */
98842
- 'If-Match': string;
99875
+ 'If-Match'?: string;
98843
99876
  };
98844
99877
  path: {
98845
99878
  /**
98846
99879
  * 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.
98847
99880
  */
98848
- ns: string;
99881
+ namespace: string;
98849
99882
  /**
98850
99883
  * 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}.
98851
99884
  */
98852
99885
  name: string;
98853
99886
  };
98854
99887
  query?: never;
98855
- url: '/automation/v1/workflows/{ns}/{name}';
99888
+ url: '/automation/v1/workflows/{namespace}/{name}';
98856
99889
  };
98857
99890
  export type AutomationWorkflowsPatchErrors = {
98858
99891
  /**
@@ -98894,14 +99927,14 @@ export type AutomationWorkflowsArchiveData = {
98894
99927
  /**
98895
99928
  * 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.
98896
99929
  */
98897
- ns: string;
99930
+ namespace: string;
98898
99931
  /**
98899
99932
  * 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}.
98900
99933
  */
98901
99934
  name: string;
98902
99935
  };
98903
99936
  query?: never;
98904
- url: '/automation/v1/workflows/{ns}/{name}/archive';
99937
+ url: '/automation/v1/workflows/{namespace}/{name}/archive';
98905
99938
  };
98906
99939
  export type AutomationWorkflowsArchiveErrors = {
98907
99940
  /**
@@ -98939,14 +99972,14 @@ export type AutomationWorkflowsRestoreData = {
98939
99972
  /**
98940
99973
  * 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.
98941
99974
  */
98942
- ns: string;
99975
+ namespace: string;
98943
99976
  /**
98944
99977
  * 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}.
98945
99978
  */
98946
99979
  name: string;
98947
99980
  };
98948
99981
  query?: never;
98949
- url: '/automation/v1/workflows/{ns}/{name}/restore';
99982
+ url: '/automation/v1/workflows/{namespace}/{name}/restore';
98950
99983
  };
98951
99984
  export type AutomationWorkflowsRestoreErrors = {
98952
99985
  /**
@@ -98984,7 +100017,7 @@ export type AutomationWorkflowsVersionsData = {
98984
100017
  /**
98985
100018
  * 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.
98986
100019
  */
98987
- ns: string;
100020
+ namespace: string;
98988
100021
  /**
98989
100022
  * 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}.
98990
100023
  */
@@ -99004,7 +100037,7 @@ export type AutomationWorkflowsVersionsData = {
99004
100037
  */
99005
100038
  expand?: 'source';
99006
100039
  };
99007
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100040
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99008
100041
  };
99009
100042
  export type AutomationWorkflowsVersionsErrors = {
99010
100043
  /**
@@ -99044,13 +100077,24 @@ export type AutomationWorkflowsPublishData = {
99044
100077
  */
99045
100078
  version: string;
99046
100079
  /**
99047
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
100080
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
100081
+ *
100082
+ * @deprecated
99048
100083
  */
99049
- expected_draft_revision: string;
100084
+ expected_draft_revision?: string;
99050
100085
  /**
99051
100086
  * 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.
99052
100087
  */
99053
100088
  tag?: string;
100089
+ /**
100090
+ * 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.
100091
+ */
100092
+ draft?: {
100093
+ /**
100094
+ * 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.
100095
+ */
100096
+ revision: string;
100097
+ };
99054
100098
  } | {
99055
100099
  /**
99056
100100
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99079,14 +100123,14 @@ export type AutomationWorkflowsPublishData = {
99079
100123
  /**
99080
100124
  * 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.
99081
100125
  */
99082
- ns: string;
100126
+ namespace: string;
99083
100127
  /**
99084
100128
  * 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}.
99085
100129
  */
99086
100130
  name: string;
99087
100131
  };
99088
100132
  query?: never;
99089
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100133
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99090
100134
  };
99091
100135
  export type AutomationWorkflowsPublishErrors = {
99092
100136
  /**
@@ -99149,7 +100193,7 @@ export type AutomationWorkflowsVersionData = {
99149
100193
  /**
99150
100194
  * 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.
99151
100195
  */
99152
- ns: string;
100196
+ namespace: string;
99153
100197
  /**
99154
100198
  * 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}.
99155
100199
  */
@@ -99160,7 +100204,7 @@ export type AutomationWorkflowsVersionData = {
99160
100204
  version: string;
99161
100205
  };
99162
100206
  query?: never;
99163
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}';
100207
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}';
99164
100208
  };
99165
100209
  export type AutomationWorkflowsVersionErrors = {
99166
100210
  /**
@@ -99196,7 +100240,7 @@ export type AutomationWorkflowsDeprecateData = {
99196
100240
  /**
99197
100241
  * 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.
99198
100242
  */
99199
- ns: string;
100243
+ namespace: string;
99200
100244
  /**
99201
100245
  * 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}.
99202
100246
  */
@@ -99207,7 +100251,7 @@ export type AutomationWorkflowsDeprecateData = {
99207
100251
  version: string;
99208
100252
  };
99209
100253
  query?: never;
99210
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate';
100254
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate';
99211
100255
  };
99212
100256
  export type AutomationWorkflowsDeprecateErrors = {
99213
100257
  /**
@@ -99250,14 +100294,14 @@ export type AutomationWorkflowsDistTagsData = {
99250
100294
  /**
99251
100295
  * 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.
99252
100296
  */
99253
- ns: string;
100297
+ namespace: string;
99254
100298
  /**
99255
100299
  * 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}.
99256
100300
  */
99257
100301
  name: string;
99258
100302
  };
99259
100303
  query?: never;
99260
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags';
100304
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags';
99261
100305
  };
99262
100306
  export type AutomationWorkflowsDistTagsErrors = {
99263
100307
  /**
@@ -99289,7 +100333,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
99289
100333
  /**
99290
100334
  * 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.
99291
100335
  */
99292
- ns: string;
100336
+ namespace: string;
99293
100337
  /**
99294
100338
  * 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}.
99295
100339
  */
@@ -99300,7 +100344,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
99300
100344
  tag: string;
99301
100345
  };
99302
100346
  query?: never;
99303
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100347
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
99304
100348
  };
99305
100349
  export type AutomationWorkflowsDeleteDistTagErrors = {
99306
100350
  /**
@@ -99350,7 +100394,7 @@ export type AutomationWorkflowsSetDistTagData = {
99350
100394
  /**
99351
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.
99352
100396
  */
99353
- ns: string;
100397
+ namespace: string;
99354
100398
  /**
99355
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}.
99356
100400
  */
@@ -99361,7 +100405,7 @@ export type AutomationWorkflowsSetDistTagData = {
99361
100405
  tag: string;
99362
100406
  };
99363
100407
  query?: never;
99364
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100408
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
99365
100409
  };
99366
100410
  export type AutomationWorkflowsSetDistTagErrors = {
99367
100411
  /**
@@ -99588,7 +100632,7 @@ export type AutomationRunsListData = {
99588
100632
  */
99589
100633
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99590
100634
  /**
99591
- * 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.
100635
+ * 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.
99592
100636
  */
99593
100637
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99594
100638
  /**
@@ -99776,7 +100820,7 @@ export type AutomationRunsGetData = {
99776
100820
  /**
99777
100821
  * Run ID (run_).
99778
100822
  */
99779
- id: string;
100823
+ run_id: string;
99780
100824
  };
99781
100825
  query?: {
99782
100826
  /**
@@ -99788,7 +100832,7 @@ export type AutomationRunsGetData = {
99788
100832
  */
99789
100833
  wait?: number;
99790
100834
  };
99791
- url: '/automation/v1/runs/{id}';
100835
+ url: '/automation/v1/runs/{run_id}';
99792
100836
  };
99793
100837
  export type AutomationRunsGetErrors = {
99794
100838
  /**
@@ -99823,10 +100867,10 @@ export type AutomationRunsCancelData = {
99823
100867
  /**
99824
100868
  * Run ID (run_).
99825
100869
  */
99826
- id: string;
100870
+ run_id: string;
99827
100871
  };
99828
100872
  query?: never;
99829
- url: '/automation/v1/runs/{id}/cancel';
100873
+ url: '/automation/v1/runs/{run_id}/cancel';
99830
100874
  };
99831
100875
  export type AutomationRunsCancelErrors = {
99832
100876
  /**
@@ -99871,10 +100915,10 @@ export type AutomationRunsRerunData = {
99871
100915
  /**
99872
100916
  * Run ID (run_).
99873
100917
  */
99874
- id: string;
100918
+ run_id: string;
99875
100919
  };
99876
100920
  query?: never;
99877
- url: '/automation/v1/runs/{id}/rerun';
100921
+ url: '/automation/v1/runs/{run_id}/rerun';
99878
100922
  };
99879
100923
  export type AutomationRunsRerunErrors = {
99880
100924
  /**
@@ -99926,10 +100970,10 @@ export type AutomationRunsSuspendData = {
99926
100970
  /**
99927
100971
  * Run ID (run_).
99928
100972
  */
99929
- id: string;
100973
+ run_id: string;
99930
100974
  };
99931
100975
  query?: never;
99932
- url: '/automation/v1/runs/{id}/suspend';
100976
+ url: '/automation/v1/runs/{run_id}/suspend';
99933
100977
  };
99934
100978
  export type AutomationRunsSuspendErrors = {
99935
100979
  /**
@@ -99964,10 +101008,10 @@ export type AutomationRunsResumeData = {
99964
101008
  /**
99965
101009
  * Run ID (run_).
99966
101010
  */
99967
- id: string;
101011
+ run_id: string;
99968
101012
  };
99969
101013
  query?: never;
99970
- url: '/automation/v1/runs/{id}/resume';
101014
+ url: '/automation/v1/runs/{run_id}/resume';
99971
101015
  };
99972
101016
  export type AutomationRunsResumeErrors = {
99973
101017
  /**
@@ -100002,7 +101046,7 @@ export type AutomationRunsWaitsData = {
100002
101046
  /**
100003
101047
  * Run ID (run_).
100004
101048
  */
100005
- id: string;
101049
+ run_id: string;
100006
101050
  };
100007
101051
  query?: {
100008
101052
  /**
@@ -100014,7 +101058,7 @@ export type AutomationRunsWaitsData = {
100014
101058
  */
100015
101059
  cursor?: string;
100016
101060
  };
100017
- url: '/automation/v1/runs/{id}/waits';
101061
+ url: '/automation/v1/runs/{run_id}/waits';
100018
101062
  };
100019
101063
  export type AutomationRunsWaitsErrors = {
100020
101064
  /**
@@ -100053,7 +101097,7 @@ export type AutomationRunsCallsData = {
100053
101097
  /**
100054
101098
  * Run ID (run_).
100055
101099
  */
100056
- id: string;
101100
+ run_id: string;
100057
101101
  };
100058
101102
  query?: {
100059
101103
  /**
@@ -100065,7 +101109,7 @@ export type AutomationRunsCallsData = {
100065
101109
  */
100066
101110
  cursor?: string;
100067
101111
  };
100068
- url: '/automation/v1/runs/{id}/calls';
101112
+ url: '/automation/v1/runs/{run_id}/calls';
100069
101113
  };
100070
101114
  export type AutomationRunsCallsErrors = {
100071
101115
  /**
@@ -100104,7 +101148,7 @@ export type AutomationRunsArtifactsData = {
100104
101148
  /**
100105
101149
  * Run ID (run_).
100106
101150
  */
100107
- id: string;
101151
+ run_id: string;
100108
101152
  };
100109
101153
  query?: {
100110
101154
  /**
@@ -100116,7 +101160,7 @@ export type AutomationRunsArtifactsData = {
100116
101160
  */
100117
101161
  cursor?: string;
100118
101162
  };
100119
- url: '/automation/v1/runs/{id}/artifacts';
101163
+ url: '/automation/v1/runs/{run_id}/artifacts';
100120
101164
  };
100121
101165
  export type AutomationRunsArtifactsErrors = {
100122
101166
  /**
@@ -100164,14 +101208,14 @@ export type AutomationRunsCompleteWaitData = {
100164
101208
  /**
100165
101209
  * Run ID (run_).
100166
101210
  */
100167
- id: string;
101211
+ run_id: string;
100168
101212
  /**
100169
101213
  * Wait ID (wait_) belonging to this run.
100170
101214
  */
100171
101215
  wait_id: string;
100172
101216
  };
100173
101217
  query?: never;
100174
- url: '/automation/v1/runs/{id}/waits/{wait_id}/complete';
101218
+ url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete';
100175
101219
  };
100176
101220
  export type AutomationRunsCompleteWaitErrors = {
100177
101221
  /**
@@ -100222,6 +101266,8 @@ export type AutomationRunsCompleteWaitResponses = {
100222
101266
  kind: 'event' | 'timer' | 'child';
100223
101267
  /**
100224
101268
  * 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.
101269
+ *
101270
+ * @deprecated
100225
101271
  */
100226
101272
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
100227
101273
  /**
@@ -100265,6 +101311,10 @@ export type AutomationRunsCompleteWaitResponses = {
100265
101311
  * true when this was a repeated submission with the same id and payload, so the original result is returned instead of processing it again.
100266
101312
  */
100267
101313
  replayed: boolean;
101314
+ /**
101315
+ * 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.
101316
+ */
101317
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
100268
101318
  };
100269
101319
  };
100270
101320
  export type AutomationRunsCompleteWaitResponse = AutomationRunsCompleteWaitResponses[keyof AutomationRunsCompleteWaitResponses];
@@ -100274,7 +101324,7 @@ export type AutomationRunsTasksData = {
100274
101324
  /**
100275
101325
  * Run ID (run_).
100276
101326
  */
100277
- id: string;
101327
+ run_id: string;
100278
101328
  };
100279
101329
  query?: {
100280
101330
  /**
@@ -100294,7 +101344,7 @@ export type AutomationRunsTasksData = {
100294
101344
  */
100295
101345
  group_by?: 'reference';
100296
101346
  };
100297
- url: '/automation/v1/runs/{id}/tasks';
101347
+ url: '/automation/v1/runs/{run_id}/tasks';
100298
101348
  };
100299
101349
  export type AutomationRunsTasksErrors = {
100300
101350
  /**
@@ -100343,7 +101393,7 @@ export type AutomationRunsEventsData = {
100343
101393
  /**
100344
101394
  * Run ID (run_).
100345
101395
  */
100346
- id: string;
101396
+ run_id: string;
100347
101397
  };
100348
101398
  query?: {
100349
101399
  /**
@@ -100355,7 +101405,7 @@ export type AutomationRunsEventsData = {
100355
101405
  */
100356
101406
  cursor?: string;
100357
101407
  };
100358
- url: '/automation/v1/runs/{id}/events';
101408
+ url: '/automation/v1/runs/{run_id}/events';
100359
101409
  };
100360
101410
  export type AutomationRunsEventsErrors = {
100361
101411
  /**
@@ -100404,7 +101454,7 @@ export type AutomationRunsLogsData = {
100404
101454
  /**
100405
101455
  * Run ID (run_).
100406
101456
  */
100407
- id: string;
101457
+ run_id: string;
100408
101458
  };
100409
101459
  query?: {
100410
101460
  /**
@@ -100416,7 +101466,7 @@ export type AutomationRunsLogsData = {
100416
101466
  */
100417
101467
  cursor?: string;
100418
101468
  };
100419
- url: '/automation/v1/runs/{id}/logs';
101469
+ url: '/automation/v1/runs/{run_id}/logs';
100420
101470
  };
100421
101471
  export type AutomationRunsLogsErrors = {
100422
101472
  /**
@@ -100455,10 +101505,10 @@ export type AutomationRunsSourceData = {
100455
101505
  /**
100456
101506
  * Run ID (run_).
100457
101507
  */
100458
- id: string;
101508
+ run_id: string;
100459
101509
  };
100460
101510
  query?: never;
100461
- url: '/automation/v1/runs/{id}/source';
101511
+ url: '/automation/v1/runs/{run_id}/source';
100462
101512
  };
100463
101513
  export type AutomationRunsSourceErrors = {
100464
101514
  /**
@@ -100513,7 +101563,9 @@ export type AutomationTriggersListData = {
100513
101563
  */
100514
101564
  kind?: Array<'schedule' | 'webhook'>;
100515
101565
  /**
100516
- * Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101566
+ * Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101567
+ *
101568
+ * @deprecated
100517
101569
  */
100518
101570
  state?: Array<AutomationTriggerState>;
100519
101571
  /**
@@ -100530,6 +101582,10 @@ export type AutomationTriggersListData = {
100530
101582
  * Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone.
100531
101583
  */
100532
101584
  'created_at[lte]'?: string;
101585
+ /**
101586
+ * 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.
101587
+ */
101588
+ status?: Array<AutomationTriggerState>;
100533
101589
  };
100534
101590
  url: '/automation/v1/triggers';
100535
101591
  };
@@ -100695,10 +101751,10 @@ export type AutomationTriggersDeleteData = {
100695
101751
  /**
100696
101752
  * Trigger ID (trg_).
100697
101753
  */
100698
- id: string;
101754
+ trigger_id: string;
100699
101755
  };
100700
101756
  query?: never;
100701
- url: '/automation/v1/triggers/{id}';
101757
+ url: '/automation/v1/triggers/{trigger_id}';
100702
101758
  };
100703
101759
  export type AutomationTriggersDeleteErrors = {
100704
101760
  /**
@@ -100732,10 +101788,10 @@ export type AutomationTriggersGetData = {
100732
101788
  /**
100733
101789
  * Trigger ID (trg_).
100734
101790
  */
100735
- id: string;
101791
+ trigger_id: string;
100736
101792
  };
100737
101793
  query?: never;
100738
- url: '/automation/v1/triggers/{id}';
101794
+ url: '/automation/v1/triggers/{trigger_id}';
100739
101795
  };
100740
101796
  export type AutomationTriggersGetErrors = {
100741
101797
  /**
@@ -100843,10 +101899,10 @@ export type AutomationTriggersPatchData = {
100843
101899
  /**
100844
101900
  * Trigger ID (trg_).
100845
101901
  */
100846
- id: string;
101902
+ trigger_id: string;
100847
101903
  };
100848
101904
  query?: never;
100849
- url: '/automation/v1/triggers/{id}';
101905
+ url: '/automation/v1/triggers/{trigger_id}';
100850
101906
  };
100851
101907
  export type AutomationTriggersPatchErrors = {
100852
101908
  /**
@@ -100899,10 +101955,10 @@ export type AutomationTriggersPauseData = {
100899
101955
  /**
100900
101956
  * Trigger ID (trg_).
100901
101957
  */
100902
- id: string;
101958
+ trigger_id: string;
100903
101959
  };
100904
101960
  query?: never;
100905
- url: '/automation/v1/triggers/{id}/pause';
101961
+ url: '/automation/v1/triggers/{trigger_id}/pause';
100906
101962
  };
100907
101963
  export type AutomationTriggersPauseErrors = {
100908
101964
  /**
@@ -100936,10 +101992,10 @@ export type AutomationTriggersResumeData = {
100936
101992
  /**
100937
101993
  * Trigger ID (trg_).
100938
101994
  */
100939
- id: string;
101995
+ trigger_id: string;
100940
101996
  };
100941
101997
  query?: never;
100942
- url: '/automation/v1/triggers/{id}/resume';
101998
+ url: '/automation/v1/triggers/{trigger_id}/resume';
100943
101999
  };
100944
102000
  export type AutomationTriggersResumeErrors = {
100945
102001
  /**
@@ -100983,10 +102039,10 @@ export type AutomationTriggersFireData = {
100983
102039
  /**
100984
102040
  * Trigger ID (trg_).
100985
102041
  */
100986
- id: string;
102042
+ trigger_id: string;
100987
102043
  };
100988
102044
  query?: never;
100989
- url: '/automation/v1/triggers/{id}/fire';
102045
+ url: '/automation/v1/triggers/{trigger_id}/fire';
100990
102046
  };
100991
102047
  export type AutomationTriggersFireErrors = {
100992
102048
  /**
@@ -101029,10 +102085,10 @@ export type AutomationTriggersRotateWebhookData = {
101029
102085
  /**
101030
102086
  * Trigger ID (trg_).
101031
102087
  */
101032
- id: string;
102088
+ trigger_id: string;
101033
102089
  };
101034
102090
  query?: never;
101035
- url: '/automation/v1/triggers/{id}/rotate-webhook';
102091
+ url: '/automation/v1/triggers/{trigger_id}/rotate-webhook';
101036
102092
  };
101037
102093
  export type AutomationTriggersRotateWebhookErrors = {
101038
102094
  /**
@@ -101062,7 +102118,7 @@ export type AutomationTriggersFiringsData = {
101062
102118
  /**
101063
102119
  * Trigger ID (trg_).
101064
102120
  */
101065
- id: string;
102121
+ trigger_id: string;
101066
102122
  };
101067
102123
  query?: {
101068
102124
  /**
@@ -101082,7 +102138,7 @@ export type AutomationTriggersFiringsData = {
101082
102138
  */
101083
102139
  run_id?: string;
101084
102140
  };
101085
- url: '/automation/v1/triggers/{id}/firings';
102141
+ url: '/automation/v1/triggers/{trigger_id}/firings';
101086
102142
  };
101087
102143
  export type AutomationTriggersFiringsErrors = {
101088
102144
  /**
@@ -101288,10 +102344,10 @@ export type AutomationHumanTasksGetData = {
101288
102344
  /**
101289
102345
  * Human task ID (htask_), from the list or the run's waits.
101290
102346
  */
101291
- id: string;
102347
+ task_id: string;
101292
102348
  };
101293
102349
  query?: never;
101294
- url: '/automation/v1/human-tasks/{id}';
102350
+ url: '/automation/v1/human-tasks/{task_id}';
101295
102351
  };
101296
102352
  export type AutomationHumanTasksGetErrors = {
101297
102353
  /**
@@ -101327,10 +102383,10 @@ export type AutomationHumanTasksRespondData = {
101327
102383
  /**
101328
102384
  * Human task ID (htask_).
101329
102385
  */
101330
- id: string;
102386
+ task_id: string;
101331
102387
  };
101332
102388
  query?: never;
101333
- url: '/automation/v1/human-tasks/{id}/respond';
102389
+ url: '/automation/v1/human-tasks/{task_id}/respond';
101334
102390
  };
101335
102391
  export type AutomationHumanTasksRespondErrors = {
101336
102392
  /**
@@ -101385,10 +102441,10 @@ export type AutomationHumanTasksCancelData = {
101385
102441
  /**
101386
102442
  * Human task ID (htask_).
101387
102443
  */
101388
- id: string;
102444
+ task_id: string;
101389
102445
  };
101390
102446
  query?: never;
101391
- url: '/automation/v1/human-tasks/{id}/cancel';
102447
+ url: '/automation/v1/human-tasks/{task_id}/cancel';
101392
102448
  };
101393
102449
  export type AutomationHumanTasksCancelErrors = {
101394
102450
  /**
@@ -101431,10 +102487,10 @@ export type AutomationHumanTasksDelegateData = {
101431
102487
  /**
101432
102488
  * Human task ID (htask_).
101433
102489
  */
101434
- id: string;
102490
+ task_id: string;
101435
102491
  };
101436
102492
  query?: never;
101437
- url: '/automation/v1/human-tasks/{id}/delegate';
102493
+ url: '/automation/v1/human-tasks/{task_id}/delegate';
101438
102494
  };
101439
102495
  export type AutomationHumanTasksDelegateErrors = {
101440
102496
  /**
@@ -101475,14 +102531,14 @@ export type AutomationScriptsVaultsListData = {
101475
102531
  /**
101476
102532
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101477
102533
  */
101478
- ns: string;
102534
+ namespace: string;
101479
102535
  /**
101480
102536
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101481
102537
  */
101482
102538
  name: string;
101483
102539
  };
101484
102540
  query?: never;
101485
- url: '/automation/v1/scripts/{ns}/{name}/vaults';
102541
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults';
101486
102542
  };
101487
102543
  export type AutomationScriptsVaultsListErrors = {
101488
102544
  /**
@@ -101548,7 +102604,7 @@ export type AutomationScriptsVaultsDeleteData = {
101548
102604
  /**
101549
102605
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101550
102606
  */
101551
- ns: string;
102607
+ namespace: string;
101552
102608
  /**
101553
102609
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101554
102610
  */
@@ -101559,7 +102615,7 @@ export type AutomationScriptsVaultsDeleteData = {
101559
102615
  alias: string;
101560
102616
  };
101561
102617
  query?: never;
101562
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102618
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101563
102619
  };
101564
102620
  export type AutomationScriptsVaultsDeleteErrors = {
101565
102621
  /**
@@ -101594,7 +102650,7 @@ export type AutomationScriptsVaultsSetData = {
101594
102650
  /**
101595
102651
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101596
102652
  */
101597
- ns: string;
102653
+ namespace: string;
101598
102654
  /**
101599
102655
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101600
102656
  */
@@ -101605,7 +102661,7 @@ export type AutomationScriptsVaultsSetData = {
101605
102661
  alias: string;
101606
102662
  };
101607
102663
  query?: never;
101608
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102664
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101609
102665
  };
101610
102666
  export type AutomationScriptsVaultsSetErrors = {
101611
102667
  /**
@@ -101675,14 +102731,14 @@ export type AutomationWorkflowsVaultsListData = {
101675
102731
  /**
101676
102732
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101677
102733
  */
101678
- ns: string;
102734
+ namespace: string;
101679
102735
  /**
101680
102736
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101681
102737
  */
101682
102738
  name: string;
101683
102739
  };
101684
102740
  query?: never;
101685
- url: '/automation/v1/workflows/{ns}/{name}/vaults';
102741
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults';
101686
102742
  };
101687
102743
  export type AutomationWorkflowsVaultsListErrors = {
101688
102744
  /**
@@ -101748,7 +102804,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
101748
102804
  /**
101749
102805
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101750
102806
  */
101751
- ns: string;
102807
+ namespace: string;
101752
102808
  /**
101753
102809
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101754
102810
  */
@@ -101759,7 +102815,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
101759
102815
  alias: string;
101760
102816
  };
101761
102817
  query?: never;
101762
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
102818
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
101763
102819
  };
101764
102820
  export type AutomationWorkflowsVaultsDeleteErrors = {
101765
102821
  /**
@@ -101794,7 +102850,7 @@ export type AutomationWorkflowsVaultsSetData = {
101794
102850
  /**
101795
102851
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101796
102852
  */
101797
- ns: string;
102853
+ namespace: string;
101798
102854
  /**
101799
102855
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101800
102856
  */
@@ -101805,7 +102861,7 @@ export type AutomationWorkflowsVaultsSetData = {
101805
102861
  alias: string;
101806
102862
  };
101807
102863
  query?: never;
101808
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
102864
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
101809
102865
  };
101810
102866
  export type AutomationWorkflowsVaultsSetErrors = {
101811
102867
  /**
@@ -119239,45 +120295,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
119239
120295
  */
119240
120296
  503: MediaMediaError;
119241
120297
  };
119242
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
119243
- export type MediaListUnderstandingsByLibraryResponses = {
120298
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
120299
+ export type MediaListUnderstandingsByLibraryResponses = {
120300
+ /**
120301
+ * Successful response.
120302
+ */
120303
+ 200: MediaUnderstandingPage;
120304
+ };
120305
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
120306
+ export type MediaListJobsData = {
120307
+ body?: never;
120308
+ path: {
120309
+ /**
120310
+ * Library ID returned by creation.
120311
+ */
120312
+ library_id: string;
120313
+ };
120314
+ query?: {
120315
+ /**
120316
+ * Filter jobs by their current status.
120317
+ */
120318
+ status?: MediaJobStatus;
120319
+ /**
120320
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
120321
+ */
120322
+ pipeline_run_id?: string;
120323
+ /**
120324
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120325
+ */
120326
+ limit?: number;
120327
+ /**
120328
+ * Job id from the previous page’s next_cursor; omit for the first page.
120329
+ */
120330
+ cursor?: MediaJobId;
120331
+ };
120332
+ url: '/media/v1/libraries/{library_id}/jobs';
120333
+ };
120334
+ export type MediaListJobsErrors = {
120335
+ /**
120336
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120337
+ */
120338
+ 400: MediaMediaError;
120339
+ /**
120340
+ * Request failed; see the error code reference.
120341
+ */
120342
+ 402: MediaMediaError;
120343
+ /**
120344
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120345
+ */
120346
+ 403: MediaMediaError;
120347
+ /**
120348
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120349
+ */
120350
+ 404: MediaMediaError;
120351
+ /**
120352
+ * Request failed; see the error code reference.
120353
+ */
120354
+ 409: MediaMediaError;
120355
+ /**
120356
+ * The file exceeds an input limit; provide a smaller source file.
120357
+ */
120358
+ 413: MediaMediaError;
120359
+ /**
120360
+ * This media format is unsupported; provide a supported format.
120361
+ */
120362
+ 415: MediaMediaError;
120363
+ /**
120364
+ * Request failed; see the error code reference.
120365
+ */
120366
+ 422: MediaMediaError;
120367
+ /**
120368
+ * A rate limit was reached; wait before retrying.
120369
+ */
120370
+ 429: MediaMediaError;
120371
+ /**
120372
+ * The requested operation is unsupported; choose a supported method.
120373
+ */
120374
+ 501: MediaMediaError;
120375
+ /**
120376
+ * Request failed; see the error code reference.
120377
+ */
120378
+ 502: MediaMediaError;
120379
+ /**
120380
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120381
+ */
120382
+ 503: MediaMediaError;
120383
+ };
120384
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
120385
+ export type MediaListJobsResponses = {
120386
+ /**
120387
+ * Successful response.
120388
+ */
120389
+ 200: MediaJobPage;
120390
+ };
120391
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
120392
+ export type MediaCancelJobData = {
120393
+ body?: never;
120394
+ path: {
120395
+ /**
120396
+ * Library ID returned by creation.
120397
+ */
120398
+ library_id: string;
120399
+ /**
120400
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
120401
+ */
120402
+ job_id: string;
120403
+ };
120404
+ query?: never;
120405
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120406
+ };
120407
+ export type MediaCancelJobErrors = {
120408
+ /**
120409
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120410
+ */
120411
+ 400: MediaMediaError;
120412
+ /**
120413
+ * Request failed; see the error code reference.
120414
+ */
120415
+ 402: MediaMediaError;
120416
+ /**
120417
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120418
+ */
120419
+ 403: MediaMediaError;
120420
+ /**
120421
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120422
+ */
120423
+ 404: MediaMediaError;
120424
+ /**
120425
+ * Request failed; see the error code reference.
120426
+ */
120427
+ 409: MediaMediaError;
120428
+ /**
120429
+ * The file exceeds an input limit; provide a smaller source file.
120430
+ */
120431
+ 413: MediaMediaError;
120432
+ /**
120433
+ * This media format is unsupported; provide a supported format.
120434
+ */
120435
+ 415: MediaMediaError;
120436
+ /**
120437
+ * Request failed; see the error code reference.
120438
+ */
120439
+ 422: MediaMediaError;
120440
+ /**
120441
+ * A rate limit was reached; wait before retrying.
120442
+ */
120443
+ 429: MediaMediaError;
120444
+ /**
120445
+ * The requested operation is unsupported; choose a supported method.
120446
+ */
120447
+ 501: MediaMediaError;
120448
+ /**
120449
+ * Request failed; see the error code reference.
120450
+ */
120451
+ 502: MediaMediaError;
120452
+ /**
120453
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120454
+ */
120455
+ 503: MediaMediaError;
120456
+ };
120457
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
120458
+ export type MediaCancelJobResponses = {
120459
+ /**
120460
+ * Successful response.
120461
+ */
120462
+ 200: MediaJob;
120463
+ };
120464
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
120465
+ export type MediaGetGenerationCapabilitiesData = {
120466
+ body?: never;
120467
+ path?: never;
120468
+ query?: never;
120469
+ url: '/media/v1/generation/capabilities';
120470
+ };
120471
+ export type MediaGetGenerationCapabilitiesErrors = {
120472
+ /**
120473
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120474
+ */
120475
+ 400: MediaMediaError;
120476
+ /**
120477
+ * Request failed; see the error code reference.
120478
+ */
120479
+ 402: MediaMediaError;
120480
+ /**
120481
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120482
+ */
120483
+ 403: MediaMediaError;
120484
+ /**
120485
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120486
+ */
120487
+ 404: MediaMediaError;
120488
+ /**
120489
+ * Request failed; see the error code reference.
120490
+ */
120491
+ 409: MediaMediaError;
120492
+ /**
120493
+ * The file exceeds an input limit; provide a smaller source file.
120494
+ */
120495
+ 413: MediaMediaError;
120496
+ /**
120497
+ * This media format is unsupported; provide a supported format.
120498
+ */
120499
+ 415: MediaMediaError;
120500
+ /**
120501
+ * Request failed; see the error code reference.
120502
+ */
120503
+ 422: MediaMediaError;
120504
+ /**
120505
+ * A rate limit was reached; wait before retrying.
120506
+ */
120507
+ 429: MediaMediaError;
120508
+ /**
120509
+ * The requested operation is unsupported; choose a supported method.
120510
+ */
120511
+ 501: MediaMediaError;
120512
+ /**
120513
+ * Request failed; see the error code reference.
120514
+ */
120515
+ 502: MediaMediaError;
120516
+ /**
120517
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120518
+ */
120519
+ 503: MediaMediaError;
120520
+ };
120521
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
120522
+ export type MediaGetGenerationCapabilitiesResponses = {
120523
+ /**
120524
+ * Successful response.
120525
+ */
120526
+ 200: MediaGenerationCapabilities;
120527
+ };
120528
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
120529
+ export type MediaAlignAssetData = {
120530
+ /**
120531
+ * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
120532
+ */
120533
+ body: {
120534
+ /**
120535
+ * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
120536
+ */
120537
+ reference_asset_id: string;
120538
+ /**
120539
+ * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
120540
+ */
120541
+ max_offset_seconds?: number;
120542
+ /**
120543
+ * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120544
+ */
120545
+ idempotency_key?: string;
120546
+ };
120547
+ headers?: {
120548
+ /**
120549
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120550
+ */
120551
+ 'Idempotency-Key'?: string;
120552
+ };
120553
+ path: {
120554
+ /**
120555
+ * Library ID returned by creation.
120556
+ */
120557
+ library_id: string;
120558
+ /**
120559
+ * 32-character asset ID.
120560
+ */
120561
+ asset_id: string;
120562
+ };
120563
+ query?: never;
120564
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120565
+ };
120566
+ export type MediaAlignAssetErrors = {
120567
+ /**
120568
+ * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
120569
+ */
120570
+ 400: MediaMediaError;
120571
+ /**
120572
+ * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
120573
+ */
120574
+ 402: MediaMediaError;
120575
+ /**
120576
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120577
+ */
120578
+ 403: MediaMediaError;
120579
+ /**
120580
+ * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
120581
+ */
120582
+ 404: MediaMediaError;
120583
+ /**
120584
+ * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
120585
+ */
120586
+ 409: MediaMediaError;
120587
+ /**
120588
+ * The file exceeds an input limit; provide a smaller source file.
120589
+ */
120590
+ 413: MediaMediaError;
120591
+ /**
120592
+ * This media format is unsupported; provide a supported format.
120593
+ */
120594
+ 415: MediaMediaError;
120595
+ /**
120596
+ * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
120597
+ */
120598
+ 422: MediaMediaError;
120599
+ /**
120600
+ * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
120601
+ */
120602
+ 429: MediaMediaError;
120603
+ /**
120604
+ * The requested operation is unsupported; choose a supported method.
120605
+ */
120606
+ 501: MediaMediaError;
120607
+ /**
120608
+ * Request failed; see the error code reference.
120609
+ */
120610
+ 502: MediaMediaError;
120611
+ /**
120612
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120613
+ */
120614
+ 503: MediaMediaError;
120615
+ };
120616
+ export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
120617
+ export type MediaAlignAssetResponses = {
120618
+ /**
120619
+ * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
120620
+ */
120621
+ 202: MediaJob;
120622
+ };
120623
+ export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
120624
+ export type MediaGetHlsRenditionsData = {
120625
+ body?: never;
120626
+ path: {
120627
+ /**
120628
+ * Library ID returned by creation.
120629
+ */
120630
+ library_id: string;
120631
+ /**
120632
+ * 32-character asset ID.
120633
+ */
120634
+ asset_id: string;
120635
+ };
120636
+ query?: never;
120637
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120638
+ };
120639
+ export type MediaGetHlsRenditionsErrors = {
120640
+ /**
120641
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120642
+ */
120643
+ 400: MediaMediaError;
120644
+ /**
120645
+ * Request failed; see the error code reference.
120646
+ */
120647
+ 402: MediaMediaError;
120648
+ /**
120649
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120650
+ */
120651
+ 403: MediaMediaError;
120652
+ /**
120653
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120654
+ */
120655
+ 404: MediaMediaError;
120656
+ /**
120657
+ * Request failed; see the error code reference.
120658
+ */
120659
+ 409: MediaMediaError;
120660
+ /**
120661
+ * The file exceeds an input limit; provide a smaller source file.
120662
+ */
120663
+ 413: MediaMediaError;
120664
+ /**
120665
+ * This media format is unsupported; provide a supported format.
120666
+ */
120667
+ 415: MediaMediaError;
120668
+ /**
120669
+ * Request failed; see the error code reference.
120670
+ */
120671
+ 422: MediaMediaError;
120672
+ /**
120673
+ * A rate limit was reached; wait before retrying.
120674
+ */
120675
+ 429: MediaMediaError;
120676
+ /**
120677
+ * The requested operation is unsupported; choose a supported method.
120678
+ */
120679
+ 501: MediaMediaError;
120680
+ /**
120681
+ * Request failed; see the error code reference.
120682
+ */
120683
+ 502: MediaMediaError;
120684
+ /**
120685
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120686
+ */
120687
+ 503: MediaMediaError;
120688
+ };
120689
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
120690
+ export type MediaGetHlsRenditionsResponses = {
120691
+ /**
120692
+ * Successful response.
120693
+ */
120694
+ 200: MediaHlsLadder;
120695
+ };
120696
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
120697
+ export type MediaRequestHlsRenditionsData = {
120698
+ /**
120699
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
120700
+ */
120701
+ body: {
120702
+ /**
120703
+ * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
120704
+ */
120705
+ heights?: Array<480 | 720 | 1080>;
120706
+ };
120707
+ path: {
120708
+ /**
120709
+ * Library ID returned by creation.
120710
+ */
120711
+ library_id: string;
120712
+ /**
120713
+ * 32-character asset ID.
120714
+ */
120715
+ asset_id: string;
120716
+ };
120717
+ query?: never;
120718
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
120719
+ };
120720
+ export type MediaRequestHlsRenditionsErrors = {
120721
+ /**
120722
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120723
+ */
120724
+ 400: MediaMediaError;
120725
+ /**
120726
+ * Request failed; see the error code reference.
120727
+ */
120728
+ 402: MediaMediaError;
120729
+ /**
120730
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120731
+ */
120732
+ 403: MediaMediaError;
120733
+ /**
120734
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120735
+ */
120736
+ 404: MediaMediaError;
120737
+ /**
120738
+ * Request failed; see the error code reference.
120739
+ */
120740
+ 409: MediaMediaError;
120741
+ /**
120742
+ * The file exceeds an input limit; provide a smaller source file.
120743
+ */
120744
+ 413: MediaMediaError;
120745
+ /**
120746
+ * This media format is unsupported; provide a supported format.
120747
+ */
120748
+ 415: MediaMediaError;
120749
+ /**
120750
+ * Request failed; see the error code reference.
120751
+ */
120752
+ 422: MediaMediaError;
120753
+ /**
120754
+ * A rate limit was reached; wait before retrying.
120755
+ */
120756
+ 429: MediaMediaError;
120757
+ /**
120758
+ * The requested operation is unsupported; choose a supported method.
120759
+ */
120760
+ 501: MediaMediaError;
120761
+ /**
120762
+ * Request failed; see the error code reference.
120763
+ */
120764
+ 502: MediaMediaError;
120765
+ /**
120766
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120767
+ */
120768
+ 503: MediaMediaError;
120769
+ };
120770
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
120771
+ export type MediaRequestHlsRenditionsResponses = {
119244
120772
  /**
119245
120773
  * Successful response.
119246
120774
  */
119247
- 200: MediaUnderstandingPage;
120775
+ 202: MediaHlsLadder;
119248
120776
  };
119249
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
119250
- export type MediaListJobsData = {
119251
- body?: never;
119252
- path: {
120777
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
120778
+ export type MediaCreateVoiceData = {
120779
+ /**
120780
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
120781
+ */
120782
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
120783
+ headers?: {
119253
120784
  /**
119254
- * Library ID returned by creation.
120785
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
119255
120786
  */
119256
- library_id: string;
120787
+ 'Idempotency-Key'?: string;
119257
120788
  };
119258
- query?: {
119259
- /**
119260
- * Filter jobs by their current status.
119261
- */
119262
- status?: MediaJobStatus;
119263
- /**
119264
- * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
119265
- */
119266
- pipeline_run_id?: string;
119267
- /**
119268
- * Maximum entries in this page, from 1 through 100; defaults to 100.
119269
- */
119270
- limit?: number;
120789
+ path: {
119271
120790
  /**
119272
- * Job id from the previous page’s next_cursor; omit for the first page.
120791
+ * Library ID returned by creation.
119273
120792
  */
119274
- cursor?: MediaJobId;
120793
+ library_id: string;
119275
120794
  };
119276
- url: '/media/v1/libraries/{library_id}/jobs';
120795
+ query?: never;
120796
+ url: '/media/v1/libraries/{library_id}/voices';
119277
120797
  };
119278
- export type MediaListJobsErrors = {
120798
+ export type MediaCreateVoiceErrors = {
119279
120799
  /**
119280
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120800
+ * Request failed; see the error code reference.
119281
120801
  */
119282
120802
  400: MediaMediaError;
119283
120803
  /**
@@ -119285,11 +120805,11 @@ export type MediaListJobsErrors = {
119285
120805
  */
119286
120806
  402: MediaMediaError;
119287
120807
  /**
119288
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120808
+ * Request failed; see the error code reference.
119289
120809
  */
119290
120810
  403: MediaMediaError;
119291
120811
  /**
119292
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120812
+ * Request failed; see the error code reference.
119293
120813
  */
119294
120814
  404: MediaMediaError;
119295
120815
  /**
@@ -119297,11 +120817,11 @@ export type MediaListJobsErrors = {
119297
120817
  */
119298
120818
  409: MediaMediaError;
119299
120819
  /**
119300
- * The file exceeds an input limit; provide a smaller source file.
120820
+ * Request failed; see the error code reference.
119301
120821
  */
119302
120822
  413: MediaMediaError;
119303
120823
  /**
119304
- * This media format is unsupported; provide a supported format.
120824
+ * Request failed; see the error code reference.
119305
120825
  */
119306
120826
  415: MediaMediaError;
119307
120827
  /**
@@ -119309,11 +120829,11 @@ export type MediaListJobsErrors = {
119309
120829
  */
119310
120830
  422: MediaMediaError;
119311
120831
  /**
119312
- * A rate limit was reached; wait before retrying.
120832
+ * Request failed; see the error code reference.
119313
120833
  */
119314
120834
  429: MediaMediaError;
119315
120835
  /**
119316
- * The requested operation is unsupported; choose a supported method.
120836
+ * Request failed; see the error code reference.
119317
120837
  */
119318
120838
  501: MediaMediaError;
119319
120839
  /**
@@ -119321,36 +120841,58 @@ export type MediaListJobsErrors = {
119321
120841
  */
119322
120842
  502: MediaMediaError;
119323
120843
  /**
119324
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120844
+ * Request failed; see the error code reference.
119325
120845
  */
119326
120846
  503: MediaMediaError;
119327
120847
  };
119328
- export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
119329
- export type MediaListJobsResponses = {
120848
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
120849
+ export type MediaCreateVoiceResponses = {
119330
120850
  /**
119331
120851
  * Successful response.
119332
120852
  */
119333
- 200: MediaJobPage;
120853
+ 202: MediaJob;
119334
120854
  };
119335
- export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
119336
- export type MediaCancelJobData = {
119337
- body?: never;
120855
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
120856
+ export type MediaDesignVoiceData = {
120857
+ /**
120858
+ * One voice-design run: what the voice should sound like and the line the previews speak.
120859
+ */
120860
+ body: {
120861
+ /**
120862
+ * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
120863
+ */
120864
+ description: string;
120865
+ /**
120866
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
120867
+ */
120868
+ preview_text: string;
120869
+ /**
120870
+ * Language the previews speak: zh or en only.
120871
+ */
120872
+ language: 'zh' | 'en';
120873
+ /**
120874
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
120875
+ */
120876
+ count?: number;
120877
+ };
120878
+ headers?: {
120879
+ /**
120880
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
120881
+ */
120882
+ 'Idempotency-Key'?: string;
120883
+ };
119338
120884
  path: {
119339
120885
  /**
119340
120886
  * Library ID returned by creation.
119341
120887
  */
119342
120888
  library_id: string;
119343
- /**
119344
- * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
119345
- */
119346
- job_id: string;
119347
120889
  };
119348
120890
  query?: never;
119349
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120891
+ url: '/media/v1/libraries/{library_id}/voices/designs';
119350
120892
  };
119351
- export type MediaCancelJobErrors = {
120893
+ export type MediaDesignVoiceErrors = {
119352
120894
  /**
119353
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120895
+ * Request failed; see the error code reference.
119354
120896
  */
119355
120897
  400: MediaMediaError;
119356
120898
  /**
@@ -119358,11 +120900,11 @@ export type MediaCancelJobErrors = {
119358
120900
  */
119359
120901
  402: MediaMediaError;
119360
120902
  /**
119361
- * This credential has read-only access to the library; use a write-capable binding for mutations.
120903
+ * Request failed; see the error code reference.
119362
120904
  */
119363
120905
  403: MediaMediaError;
119364
120906
  /**
119365
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120907
+ * Request failed; see the error code reference.
119366
120908
  */
119367
120909
  404: MediaMediaError;
119368
120910
  /**
@@ -119370,11 +120912,11 @@ export type MediaCancelJobErrors = {
119370
120912
  */
119371
120913
  409: MediaMediaError;
119372
120914
  /**
119373
- * The file exceeds an input limit; provide a smaller source file.
120915
+ * Request failed; see the error code reference.
119374
120916
  */
119375
120917
  413: MediaMediaError;
119376
120918
  /**
119377
- * This media format is unsupported; provide a supported format.
120919
+ * Request failed; see the error code reference.
119378
120920
  */
119379
120921
  415: MediaMediaError;
119380
120922
  /**
@@ -119382,11 +120924,11 @@ export type MediaCancelJobErrors = {
119382
120924
  */
119383
120925
  422: MediaMediaError;
119384
120926
  /**
119385
- * A rate limit was reached; wait before retrying.
120927
+ * Request failed; see the error code reference.
119386
120928
  */
119387
120929
  429: MediaMediaError;
119388
120930
  /**
119389
- * The requested operation is unsupported; choose a supported method.
120931
+ * Request failed; see the error code reference.
119390
120932
  */
119391
120933
  501: MediaMediaError;
119392
120934
  /**
@@ -119394,25 +120936,51 @@ export type MediaCancelJobErrors = {
119394
120936
  */
119395
120937
  502: MediaMediaError;
119396
120938
  /**
119397
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120939
+ * Request failed; see the error code reference.
119398
120940
  */
119399
120941
  503: MediaMediaError;
119400
120942
  };
119401
- export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
119402
- export type MediaCancelJobResponses = {
120943
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
120944
+ export type MediaDesignVoiceResponses = {
119403
120945
  /**
119404
120946
  * Successful response.
119405
120947
  */
119406
- 200: MediaJob;
120948
+ 202: MediaJob;
119407
120949
  };
119408
- export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
119409
- export type MediaGetGenerationCapabilitiesData = {
120950
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
120951
+ export type MediaListWorksData = {
119410
120952
  body?: never;
119411
- path?: never;
119412
- query?: never;
119413
- url: '/media/v1/generation/capabilities';
120953
+ path: {
120954
+ /**
120955
+ * Library ID returned by creation.
120956
+ */
120957
+ library_id: string;
120958
+ };
120959
+ query?: {
120960
+ /**
120961
+ * Only works of this kind: gallery, article, product_listing or blocks.
120962
+ */
120963
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
120964
+ /**
120965
+ * Only works of this series.
120966
+ */
120967
+ series?: string;
120968
+ /**
120969
+ * Only works whose title contains this text, at most 100 characters.
120970
+ */
120971
+ q?: string;
120972
+ /**
120973
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120974
+ */
120975
+ limit?: number;
120976
+ /**
120977
+ * Cursor from the previous next_cursor.
120978
+ */
120979
+ cursor?: string;
120980
+ };
120981
+ url: '/media/v1/libraries/{library_id}/works';
119414
120982
  };
119415
- export type MediaGetGenerationCapabilitiesErrors = {
120983
+ export type MediaListWorksErrors = {
119416
120984
  /**
119417
120985
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119418
120986
  */
@@ -119462,58 +121030,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
119462
121030
  */
119463
121031
  503: MediaMediaError;
119464
121032
  };
119465
- export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
119466
- export type MediaGetGenerationCapabilitiesResponses = {
121033
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
121034
+ export type MediaListWorksResponses = {
119467
121035
  /**
119468
121036
  * Successful response.
119469
121037
  */
119470
- 200: MediaGenerationCapabilities;
121038
+ 200: MediaWorkPage;
119471
121039
  };
119472
- export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
119473
- export type MediaAlignAssetData = {
121040
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
121041
+ export type MediaCreateWorkData = {
119474
121042
  /**
119475
- * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
121043
+ * A new work: its kind and its whole body, with an optional series and custom fields.
119476
121044
  */
119477
121045
  body: {
119478
121046
  /**
119479
- * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
121047
+ * The work’s kind; it decides which body fields are accepted.
119480
121048
  */
119481
- reference_asset_id: string;
121049
+ kind: MediaWorkKind;
119482
121050
  /**
119483
- * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
121051
+ * 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.
119484
121052
  */
119485
- max_offset_seconds?: number;
121053
+ body: MediaWorkBody;
119486
121054
  /**
119487
- * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
121055
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
119488
121056
  */
119489
- idempotency_key?: string;
119490
- };
119491
- headers?: {
121057
+ series?: string;
119492
121058
  /**
119493
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
121059
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
119494
121060
  */
119495
- 'Idempotency-Key'?: string;
121061
+ custom?: MediaWorkCustom;
119496
121062
  };
119497
121063
  path: {
119498
121064
  /**
119499
121065
  * Library ID returned by creation.
119500
121066
  */
119501
121067
  library_id: string;
119502
- /**
119503
- * 32-character asset ID.
119504
- */
119505
- asset_id: string;
119506
121068
  };
119507
121069
  query?: never;
119508
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
121070
+ url: '/media/v1/libraries/{library_id}/works';
119509
121071
  };
119510
- export type MediaAlignAssetErrors = {
121072
+ export type MediaCreateWorkErrors = {
119511
121073
  /**
119512
- * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
121074
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119513
121075
  */
119514
121076
  400: MediaMediaError;
119515
121077
  /**
119516
- * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
121078
+ * Request failed; see the error code reference.
119517
121079
  */
119518
121080
  402: MediaMediaError;
119519
121081
  /**
@@ -119521,11 +121083,11 @@ export type MediaAlignAssetErrors = {
119521
121083
  */
119522
121084
  403: MediaMediaError;
119523
121085
  /**
119524
- * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
121086
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119525
121087
  */
119526
121088
  404: MediaMediaError;
119527
121089
  /**
119528
- * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
121090
+ * Request failed; see the error code reference.
119529
121091
  */
119530
121092
  409: MediaMediaError;
119531
121093
  /**
@@ -119537,11 +121099,11 @@ export type MediaAlignAssetErrors = {
119537
121099
  */
119538
121100
  415: MediaMediaError;
119539
121101
  /**
119540
- * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
121102
+ * Request failed; see the error code reference.
119541
121103
  */
119542
121104
  422: MediaMediaError;
119543
121105
  /**
119544
- * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
121106
+ * A rate limit was reached; wait before retrying.
119545
121107
  */
119546
121108
  429: MediaMediaError;
119547
121109
  /**
@@ -119557,15 +121119,15 @@ export type MediaAlignAssetErrors = {
119557
121119
  */
119558
121120
  503: MediaMediaError;
119559
121121
  };
119560
- export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
119561
- export type MediaAlignAssetResponses = {
121122
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
121123
+ export type MediaCreateWorkResponses = {
119562
121124
  /**
119563
- * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
121125
+ * Successful response.
119564
121126
  */
119565
- 202: MediaJob;
121127
+ 200: MediaWork;
119566
121128
  };
119567
- export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
119568
- export type MediaGetHlsRenditionsData = {
121129
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
121130
+ export type MediaDeleteWorkData = {
119569
121131
  body?: never;
119570
121132
  path: {
119571
121133
  /**
@@ -119573,14 +121135,14 @@ export type MediaGetHlsRenditionsData = {
119573
121135
  */
119574
121136
  library_id: string;
119575
121137
  /**
119576
- * 32-character asset ID.
121138
+ * Work id (wrk_…) returned by creation or listing.
119577
121139
  */
119578
- asset_id: string;
121140
+ work_id: string;
119579
121141
  };
119580
121142
  query?: never;
119581
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
121143
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119582
121144
  };
119583
- export type MediaGetHlsRenditionsErrors = {
121145
+ export type MediaDeleteWorkErrors = {
119584
121146
  /**
119585
121147
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119586
121148
  */
@@ -119630,38 +121192,35 @@ export type MediaGetHlsRenditionsErrors = {
119630
121192
  */
119631
121193
  503: MediaMediaError;
119632
121194
  };
119633
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
119634
- export type MediaGetHlsRenditionsResponses = {
121195
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
121196
+ export type MediaDeleteWorkResponses = {
119635
121197
  /**
119636
121198
  * Successful response.
119637
121199
  */
119638
- 200: MediaHlsLadder;
121200
+ 200: MediaDeletedWork;
119639
121201
  };
119640
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
119641
- export type MediaRequestHlsRenditionsData = {
119642
- /**
119643
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
119644
- */
119645
- body: {
119646
- /**
119647
- * The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
119648
- */
119649
- heights?: Array<480 | 720 | 1080>;
119650
- };
121202
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
121203
+ export type MediaGetWorkData = {
121204
+ body?: never;
119651
121205
  path: {
119652
121206
  /**
119653
121207
  * Library ID returned by creation.
119654
121208
  */
119655
121209
  library_id: string;
119656
121210
  /**
119657
- * 32-character asset ID.
121211
+ * Work id (wrk_…) returned by creation or listing.
119658
121212
  */
119659
- asset_id: string;
121213
+ work_id: string;
119660
121214
  };
119661
- query?: never;
119662
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
121215
+ query?: {
121216
+ /**
121217
+ * assets returns every referenced asset with its URLs and size.
121218
+ */
121219
+ expand?: string;
121220
+ };
121221
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119663
121222
  };
119664
- export type MediaRequestHlsRenditionsErrors = {
121223
+ export type MediaGetWorkErrors = {
119665
121224
  /**
119666
121225
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119667
121226
  */
@@ -119711,37 +121270,52 @@ export type MediaRequestHlsRenditionsErrors = {
119711
121270
  */
119712
121271
  503: MediaMediaError;
119713
121272
  };
119714
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
119715
- export type MediaRequestHlsRenditionsResponses = {
121273
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
121274
+ export type MediaGetWorkResponses = {
119716
121275
  /**
119717
121276
  * Successful response.
119718
121277
  */
119719
- 202: MediaHlsLadder;
121278
+ 200: MediaWork;
119720
121279
  };
119721
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
119722
- export type MediaCreateVoiceData = {
121280
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
121281
+ export type MediaUpdateWorkData = {
119723
121282
  /**
119724
- * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
121283
+ * Changes to a work. Send only what changes.
119725
121284
  */
119726
- body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
119727
- headers?: {
121285
+ body: {
119728
121286
  /**
119729
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
121287
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
119730
121288
  */
119731
- 'Idempotency-Key'?: string;
121289
+ body?: MediaWorkBody;
121290
+ /**
121291
+ * A new series, or null to clear it.
121292
+ */
121293
+ series?: string | null;
121294
+ /**
121295
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
121296
+ */
121297
+ custom?: MediaWorkCustom;
121298
+ /**
121299
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
121300
+ */
121301
+ if_revision?: number;
119732
121302
  };
119733
121303
  path: {
119734
121304
  /**
119735
121305
  * Library ID returned by creation.
119736
121306
  */
119737
121307
  library_id: string;
121308
+ /**
121309
+ * Work id (wrk_…) returned by creation or listing.
121310
+ */
121311
+ work_id: string;
119738
121312
  };
119739
121313
  query?: never;
119740
- url: '/media/v1/libraries/{library_id}/voices';
121314
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119741
121315
  };
119742
- export type MediaCreateVoiceErrors = {
121316
+ export type MediaUpdateWorkErrors = {
119743
121317
  /**
119744
- * Request failed; see the error code reference.
121318
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119745
121319
  */
119746
121320
  400: MediaMediaError;
119747
121321
  /**
@@ -119749,11 +121323,11 @@ export type MediaCreateVoiceErrors = {
119749
121323
  */
119750
121324
  402: MediaMediaError;
119751
121325
  /**
119752
- * Request failed; see the error code reference.
121326
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119753
121327
  */
119754
121328
  403: MediaMediaError;
119755
121329
  /**
119756
- * Request failed; see the error code reference.
121330
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119757
121331
  */
119758
121332
  404: MediaMediaError;
119759
121333
  /**
@@ -119761,11 +121335,11 @@ export type MediaCreateVoiceErrors = {
119761
121335
  */
119762
121336
  409: MediaMediaError;
119763
121337
  /**
119764
- * Request failed; see the error code reference.
121338
+ * The file exceeds an input limit; provide a smaller source file.
119765
121339
  */
119766
121340
  413: MediaMediaError;
119767
121341
  /**
119768
- * Request failed; see the error code reference.
121342
+ * This media format is unsupported; provide a supported format.
119769
121343
  */
119770
121344
  415: MediaMediaError;
119771
121345
  /**
@@ -119773,11 +121347,11 @@ export type MediaCreateVoiceErrors = {
119773
121347
  */
119774
121348
  422: MediaMediaError;
119775
121349
  /**
119776
- * Request failed; see the error code reference.
121350
+ * A rate limit was reached; wait before retrying.
119777
121351
  */
119778
121352
  429: MediaMediaError;
119779
121353
  /**
119780
- * Request failed; see the error code reference.
121354
+ * The requested operation is unsupported; choose a supported method.
119781
121355
  */
119782
121356
  501: MediaMediaError;
119783
121357
  /**
@@ -119785,58 +121359,45 @@ export type MediaCreateVoiceErrors = {
119785
121359
  */
119786
121360
  502: MediaMediaError;
119787
121361
  /**
119788
- * Request failed; see the error code reference.
121362
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119789
121363
  */
119790
121364
  503: MediaMediaError;
119791
121365
  };
119792
- export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
119793
- export type MediaCreateVoiceResponses = {
121366
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121367
+ export type MediaUpdateWorkResponses = {
119794
121368
  /**
119795
121369
  * Successful response.
119796
121370
  */
119797
- 202: MediaJob;
121371
+ 200: MediaWork;
119798
121372
  };
119799
- export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
119800
- export type MediaDesignVoiceData = {
119801
- /**
119802
- * One voice-design run: what the voice should sound like and the line the previews speak.
119803
- */
119804
- body: {
119805
- /**
119806
- * Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
119807
- */
119808
- description: string;
119809
- /**
119810
- * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
119811
- */
119812
- preview_text: string;
121373
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121374
+ export type MediaListAssetWorksData = {
121375
+ body?: never;
121376
+ path: {
119813
121377
  /**
119814
- * Language the previews speak: zh or en only.
121378
+ * Library ID returned by creation.
119815
121379
  */
119816
- language: 'zh' | 'en';
121380
+ library_id: string;
119817
121381
  /**
119818
- * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
121382
+ * 32-character asset ID.
119819
121383
  */
119820
- count?: number;
121384
+ asset_id: string;
119821
121385
  };
119822
- headers?: {
121386
+ query?: {
119823
121387
  /**
119824
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
121388
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119825
121389
  */
119826
- 'Idempotency-Key'?: string;
119827
- };
119828
- path: {
121390
+ limit?: number;
119829
121391
  /**
119830
- * Library ID returned by creation.
121392
+ * Cursor from the previous next_cursor.
119831
121393
  */
119832
- library_id: string;
121394
+ cursor?: string;
119833
121395
  };
119834
- query?: never;
119835
- url: '/media/v1/libraries/{library_id}/voices/designs';
121396
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
119836
121397
  };
119837
- export type MediaDesignVoiceErrors = {
121398
+ export type MediaListAssetWorksErrors = {
119838
121399
  /**
119839
- * Request failed; see the error code reference.
121400
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119840
121401
  */
119841
121402
  400: MediaMediaError;
119842
121403
  /**
@@ -119844,11 +121405,11 @@ export type MediaDesignVoiceErrors = {
119844
121405
  */
119845
121406
  402: MediaMediaError;
119846
121407
  /**
119847
- * Request failed; see the error code reference.
121408
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119848
121409
  */
119849
121410
  403: MediaMediaError;
119850
121411
  /**
119851
- * Request failed; see the error code reference.
121412
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119852
121413
  */
119853
121414
  404: MediaMediaError;
119854
121415
  /**
@@ -119856,11 +121417,11 @@ export type MediaDesignVoiceErrors = {
119856
121417
  */
119857
121418
  409: MediaMediaError;
119858
121419
  /**
119859
- * Request failed; see the error code reference.
121420
+ * The file exceeds an input limit; provide a smaller source file.
119860
121421
  */
119861
121422
  413: MediaMediaError;
119862
121423
  /**
119863
- * Request failed; see the error code reference.
121424
+ * This media format is unsupported; provide a supported format.
119864
121425
  */
119865
121426
  415: MediaMediaError;
119866
121427
  /**
@@ -119868,11 +121429,11 @@ export type MediaDesignVoiceErrors = {
119868
121429
  */
119869
121430
  422: MediaMediaError;
119870
121431
  /**
119871
- * Request failed; see the error code reference.
121432
+ * A rate limit was reached; wait before retrying.
119872
121433
  */
119873
121434
  429: MediaMediaError;
119874
121435
  /**
119875
- * Request failed; see the error code reference.
121436
+ * The requested operation is unsupported; choose a supported method.
119876
121437
  */
119877
121438
  501: MediaMediaError;
119878
121439
  /**
@@ -119880,18 +121441,18 @@ export type MediaDesignVoiceErrors = {
119880
121441
  */
119881
121442
  502: MediaMediaError;
119882
121443
  /**
119883
- * Request failed; see the error code reference.
121444
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119884
121445
  */
119885
121446
  503: MediaMediaError;
119886
121447
  };
119887
- export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
119888
- export type MediaDesignVoiceResponses = {
121448
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
121449
+ export type MediaListAssetWorksResponses = {
119889
121450
  /**
119890
121451
  * Successful response.
119891
121452
  */
119892
- 202: MediaJob;
121453
+ 200: MediaWorkPage;
119893
121454
  };
119894
- export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121455
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119895
121456
  export type OntologyListTypesData = {
119896
121457
  body?: never;
119897
121458
  path?: never;