@deepraxis/sdk 0.2.0-dev.9bf33e2 → 0.2.0-dev.a24e748

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
  */
@@ -20812,6 +20875,102 @@ export type DevopsUnitTransitionPage = {
20812
20875
  */
20813
20876
  nextPageToken: string;
20814
20877
  };
20878
+ /**
20879
+ * The tenant event types.
20880
+ */
20881
+ export type EventsEventTypePage = {
20882
+ /**
20883
+ * One entry per type and schema version.
20884
+ */
20885
+ data: Array<EventsEventType>;
20886
+ /**
20887
+ * Always null today; the list is one page.
20888
+ */
20889
+ next_cursor: string | null;
20890
+ /**
20891
+ * Always false today; the list is one page.
20892
+ */
20893
+ has_more: boolean;
20894
+ };
20895
+ /**
20896
+ * What to subscribe to. The organization and the sink come from your credential and are not fields.
20897
+ */
20898
+ export type EventsCreateEventSubscriptionInput = {
20899
+ /**
20900
+ * The tenant event types to hear about, from events.types.list; an event of any one of them can match.
20901
+ */
20902
+ types: Array<string>;
20903
+ /**
20904
+ * Conditions that must all hold for an event to match; omit or leave empty to match every event of the types.
20905
+ */
20906
+ filters?: Array<EventsEventSubscriptionFilter>;
20907
+ /**
20908
+ * The inbox address that receives the letters, agent:<id> or human:<id>. Today only the caller's own address is accepted, which is also the default.
20909
+ */
20910
+ sink?: string;
20911
+ /**
20912
+ * True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour.
20913
+ */
20914
+ once?: boolean;
20915
+ /**
20916
+ * When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now.
20917
+ */
20918
+ expires_at?: string;
20919
+ };
20920
+ /**
20921
+ * One event subscription.
20922
+ */
20923
+ export type EventsEventSubscription = {
20924
+ /**
20925
+ * The subscription id, esub_...; use it to retrieve or delete it.
20926
+ */
20927
+ id: string;
20928
+ /**
20929
+ * The tenant event types it listens to.
20930
+ */
20931
+ types: Array<string>;
20932
+ /**
20933
+ * The conditions that must all hold; empty means every event of the types.
20934
+ */
20935
+ filters: Array<EventsEventSubscriptionFilter>;
20936
+ /**
20937
+ * The inbox address the letters go to, agent:<id> or human:<id>.
20938
+ */
20939
+ sink: string;
20940
+ /**
20941
+ * Whether the subscription ends after its first letter.
20942
+ */
20943
+ once: boolean;
20944
+ /**
20945
+ * When the subscription ends and stops matching, RFC 3339.
20946
+ */
20947
+ expires_at: string;
20948
+ /**
20949
+ * When the subscription was created, RFC 3339.
20950
+ */
20951
+ created_at: string;
20952
+ /**
20953
+ * The address that created it, agent:<id> or human:<id>; only that caller can see it.
20954
+ */
20955
+ created_by: string;
20956
+ };
20957
+ /**
20958
+ * Your live subscriptions.
20959
+ */
20960
+ export type EventsEventSubscriptionPage = {
20961
+ /**
20962
+ * The subscriptions, at most limit.
20963
+ */
20964
+ data: Array<EventsEventSubscription>;
20965
+ /**
20966
+ * Always null today; the list is one page.
20967
+ */
20968
+ next_cursor: string | null;
20969
+ /**
20970
+ * Always false today; the list is one page.
20971
+ */
20972
+ has_more: boolean;
20973
+ };
20815
20974
  export type KnowledgeNativeVectorStore = {
20816
20975
  /**
20817
20976
  * Resource ID.
@@ -21437,7 +21596,7 @@ export type MediaLibrary = {
21437
21596
  };
21438
21597
  export type MediaMediaError = {
21439
21598
  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';
21599
+ 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
21600
  message: string;
21442
21601
  details: string | null;
21443
21602
  };
@@ -22966,6 +23125,107 @@ export type MediaVoiceDesignCreateInput = {
22966
23125
  */
22967
23126
  description?: string;
22968
23127
  };
23128
+ /**
23129
+ * 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.
23130
+ */
23131
+ export type MediaWork = {
23132
+ /**
23133
+ * Always work.
23134
+ */
23135
+ object: 'work';
23136
+ /**
23137
+ * Work id (wrk_…).
23138
+ */
23139
+ id: string;
23140
+ /**
23141
+ * Library the work belongs to.
23142
+ */
23143
+ library_id: MediaLibraryId;
23144
+ /**
23145
+ * The work’s kind.
23146
+ */
23147
+ kind: MediaWorkKind;
23148
+ /**
23149
+ * The title, copied from body.title.
23150
+ */
23151
+ title: string;
23152
+ /**
23153
+ * Groups the platform versions of one story; null when unset.
23154
+ */
23155
+ series: string | null;
23156
+ /**
23157
+ * The kind’s body as stored.
23158
+ */
23159
+ body: MediaWorkBody;
23160
+ /**
23161
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23162
+ */
23163
+ custom: MediaWorkCustom;
23164
+ /**
23165
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23166
+ */
23167
+ missing: Array<string>;
23168
+ /**
23169
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23170
+ */
23171
+ revision: number;
23172
+ /**
23173
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23174
+ */
23175
+ created_by: string;
23176
+ /**
23177
+ * When the work was created.
23178
+ */
23179
+ created_at: MediaIsoTimestamp;
23180
+ /**
23181
+ * When the work last changed.
23182
+ */
23183
+ updated_at: MediaIsoTimestamp;
23184
+ /**
23185
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23186
+ */
23187
+ assets?: {
23188
+ [key: string]: MediaWorkAsset;
23189
+ };
23190
+ };
23191
+ /**
23192
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23193
+ */
23194
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23195
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23196
+ export type MediaWorkCustom = {
23197
+ [key: string]: unknown;
23198
+ };
23199
+ /**
23200
+ * A page of work summaries.
23201
+ */
23202
+ export type MediaWorkPage = {
23203
+ /**
23204
+ * Works in this page, most recently changed first.
23205
+ */
23206
+ data: Array<MediaWorkSummary>;
23207
+ /**
23208
+ * Cursor for the next page, or null when there are no more works.
23209
+ */
23210
+ next_cursor: string | null;
23211
+ };
23212
+ /**
23213
+ * The answer to deleting a work.
23214
+ */
23215
+ export type MediaDeletedWork = {
23216
+ /**
23217
+ * Id of the deleted work.
23218
+ */
23219
+ id: string;
23220
+ /**
23221
+ * Always work.
23222
+ */
23223
+ object: 'work';
23224
+ /**
23225
+ * Always true: the work is deleted; every asset it named is unchanged.
23226
+ */
23227
+ deleted: true;
23228
+ };
22969
23229
  /**
22970
23230
  * One page of type registrations; types are few enough that this face returns them in a single page.
22971
23231
  */
@@ -36818,11 +37078,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
36818
37078
  */
36819
37079
  export type AutomationSubject = {
36820
37080
  /**
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.
37081
+ * 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
37082
  */
36823
37083
  type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
36824
37084
  /**
36825
- * Principal identifier whose meaning follows type: a user, API key, agent, run or trigger id. Treat it as an opaque string.
37085
+ * Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
36826
37086
  */
36827
37087
  id: string;
36828
37088
  };
@@ -36865,7 +37125,7 @@ export type AutomationDraft = {
36865
37125
  */
36866
37126
  source: string;
36867
37127
  /**
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.
37128
+ * Draft revision tag (ETag); send it back unchanged as draft.revision when updating the draft or publishing, and a mismatch returns 412.
36869
37129
  */
36870
37130
  revision: string;
36871
37131
  /**
@@ -40381,6 +40641,10 @@ export type DevopsUnitGit = {
40381
40641
  * The ref holding the unit's work in progress, or null when none was recorded.
40382
40642
  */
40383
40643
  wipRef: string | null;
40644
+ /**
40645
+ * The branch's head on the remote as of the last fetch: the value units push wants as expectedHead. Absent before the first observation or when the branch has no upstream. Call fetch first when someone else may have pushed.
40646
+ */
40647
+ remoteHead?: string;
40384
40648
  /**
40385
40649
  * RFC 3339 UTC time these facts were observed, or null before the first observation.
40386
40650
  */
@@ -40488,6 +40752,71 @@ export type DevopsCleanupEntry = {
40488
40752
  */
40489
40753
  error: string | null;
40490
40754
  };
40755
+ /**
40756
+ * One tenant event type at one schema version.
40757
+ */
40758
+ export type EventsEventType = {
40759
+ /**
40760
+ * The event type name, for example automation.run.finished; pass it in the types of subscriptions.create.
40761
+ */
40762
+ type: string;
40763
+ /**
40764
+ * The version of this type's data schema. Within one version fields are only added; a breaking change publishes a new version, and both are listed side by side for a while.
40765
+ */
40766
+ schemaversion: number;
40767
+ /**
40768
+ * What the event means and when it is published.
40769
+ */
40770
+ description?: string;
40771
+ /**
40772
+ * JSON Schema of the event's data, the body of the letter a subscription writes.
40773
+ */
40774
+ data_schema: {
40775
+ [key: string]: unknown;
40776
+ };
40777
+ /**
40778
+ * The names a filter of this type may use, always subject and actor, plus data.<field> for each top-level field of data_schema.
40779
+ */
40780
+ filterable: Array<string>;
40781
+ };
40782
+ /**
40783
+ * An RFC 9457 problem; every non-2xx response of this face has this shape.
40784
+ */
40785
+ export type EventsEventsProblem = {
40786
+ /**
40787
+ * The HTTP status of the response.
40788
+ */
40789
+ status: number;
40790
+ /**
40791
+ * Machine-readable failure, such as INVALID_PARAMS, UNSUPPORTED_FILTER_DIALECT, SUBSCRIPTION_NOT_FOUND or PROVIDER_UNAVAILABLE.
40792
+ */
40793
+ code: string;
40794
+ /**
40795
+ * Human-readable reason; it names the offending field and what to do.
40796
+ */
40797
+ message: string;
40798
+ /**
40799
+ * True when repeating the same call can succeed, as for PROVIDER_UNAVAILABLE; false when the request itself must change.
40800
+ */
40801
+ retryable?: boolean;
40802
+ };
40803
+ /**
40804
+ * One condition on an event. Write exactly one dialect key: exact (the named attribute equals the value) or prefix (it starts with the value). The attribute is subject, actor or data.<field>.
40805
+ */
40806
+ export type EventsEventSubscriptionFilter = {
40807
+ /**
40808
+ * The attribute equals the value, for example { subject: "runs/run_1" } or { "data.status": "faulted" }.
40809
+ */
40810
+ exact?: {
40811
+ [key: string]: string;
40812
+ };
40813
+ /**
40814
+ * The attribute starts with the value, for example { subject: "runs/" }.
40815
+ */
40816
+ prefix?: {
40817
+ [key: string]: string;
40818
+ };
40819
+ };
40491
40820
  /**
40492
40821
  * Counts of files still attached to the store or batch, grouped by ingestion status.
40493
40822
  */
@@ -41550,7 +41879,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41550
41879
  * Edit operations: the change this step applied to its parent asset.
41551
41880
  */
41552
41881
  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';
41553
- 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';
41882
+ 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';
41554
41883
  /**
41555
41884
  * State of a requested generation output.
41556
41885
  */
@@ -41896,6 +42225,192 @@ export type MediaHlsRendition = {
41896
42225
  state: MediaHlsRenditionState;
41897
42226
  };
41898
42227
  export type MediaVoiceConsentId = string;
42228
+ /**
42229
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42230
+ */
42231
+ export type MediaWorkAsset = {
42232
+ /**
42233
+ * The asset’s material type, such as image or video.
42234
+ */
42235
+ type: MediaMaterialType;
42236
+ /**
42237
+ * Short-lived delivery URL of the asset.
42238
+ */
42239
+ url: string;
42240
+ /**
42241
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42242
+ */
42243
+ thumbnail_url: string;
42244
+ /**
42245
+ * Width in pixels when known.
42246
+ */
42247
+ width?: number;
42248
+ /**
42249
+ * Height in pixels when known.
42250
+ */
42251
+ height?: number;
42252
+ /**
42253
+ * The asset’s display name.
42254
+ */
42255
+ display_name: string;
42256
+ };
42257
+ /**
42258
+ * Body of a gallery (图文). Order is the order of items.
42259
+ */
42260
+ export type MediaGalleryBody = {
42261
+ /**
42262
+ * Title, 1 to 100 characters.
42263
+ */
42264
+ title: string;
42265
+ /**
42266
+ * Body text, at most 10000 characters.
42267
+ */
42268
+ text?: string;
42269
+ /**
42270
+ * Topics without the # sign, at most 30 of up to 40 characters.
42271
+ */
42272
+ topics?: Array<string>;
42273
+ /**
42274
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42275
+ */
42276
+ cover?: string;
42277
+ /**
42278
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42279
+ */
42280
+ items: Array<MediaGalleryItem>;
42281
+ /**
42282
+ * Display style; defaults to xiaohongshu in the Console.
42283
+ */
42284
+ style?: MediaWorkStyle;
42285
+ };
42286
+ /**
42287
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42288
+ */
42289
+ export type MediaArticleBody = {
42290
+ /**
42291
+ * Title, 1 to 200 characters.
42292
+ */
42293
+ title: string;
42294
+ /**
42295
+ * Optional summary or digest, at most 500 characters.
42296
+ */
42297
+ summary?: string;
42298
+ /**
42299
+ * Optional author name, at most 60 characters.
42300
+ */
42301
+ author?: string;
42302
+ /**
42303
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42304
+ */
42305
+ body: string;
42306
+ /**
42307
+ * Optional cover: an image or sticker asset of this library.
42308
+ */
42309
+ cover?: string;
42310
+ /**
42311
+ * Display style; defaults to wechat_mp in the Console.
42312
+ */
42313
+ style?: MediaWorkStyle;
42314
+ };
42315
+ /**
42316
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42317
+ */
42318
+ export type MediaProductListingBody = {
42319
+ /**
42320
+ * Listing title, 1 to 200 characters.
42321
+ */
42322
+ title: string;
42323
+ /**
42324
+ * Selling points in order, at most 10 of up to 100 characters.
42325
+ */
42326
+ selling_points?: Array<string>;
42327
+ /**
42328
+ * Parameter rows in order, at most 50.
42329
+ */
42330
+ attributes?: Array<MediaListingAttribute>;
42331
+ /**
42332
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42333
+ */
42334
+ main: Array<string>;
42335
+ /**
42336
+ * Detail images in order, at most 100 image or sticker assets of this library.
42337
+ */
42338
+ detail?: Array<string>;
42339
+ /**
42340
+ * SKUs in order, at most 200.
42341
+ */
42342
+ skus?: Array<MediaListingSku>;
42343
+ /**
42344
+ * Optional product element (material_type product) this listing shows.
42345
+ */
42346
+ product?: string;
42347
+ /**
42348
+ * Display style; defaults to generic in the Console.
42349
+ */
42350
+ style?: MediaWorkStyle;
42351
+ };
42352
+ /**
42353
+ * 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.
42354
+ */
42355
+ export type MediaBlocksBody = {
42356
+ /**
42357
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42358
+ */
42359
+ title: string;
42360
+ /**
42361
+ * Optional Editor.js save time in milliseconds, kept as sent.
42362
+ */
42363
+ time?: number;
42364
+ /**
42365
+ * The blocks in order, 1 to 500.
42366
+ */
42367
+ blocks: Array<MediaEditorBlock>;
42368
+ /**
42369
+ * Optional Editor.js version string, kept as sent.
42370
+ */
42371
+ version?: string;
42372
+ };
42373
+ /**
42374
+ * One work in a list.
42375
+ */
42376
+ export type MediaWorkSummary = {
42377
+ /**
42378
+ * Always work.
42379
+ */
42380
+ object: 'work';
42381
+ /**
42382
+ * Work id (wrk_…).
42383
+ */
42384
+ id: string;
42385
+ /**
42386
+ * The work’s kind.
42387
+ */
42388
+ kind: MediaWorkKind;
42389
+ /**
42390
+ * The work’s title.
42391
+ */
42392
+ title: string;
42393
+ /**
42394
+ * The work’s series, or null.
42395
+ */
42396
+ series: string | null;
42397
+ /**
42398
+ * Short-lived URL of the cover picture, or null when it is missing.
42399
+ */
42400
+ cover_url: string | null;
42401
+ /**
42402
+ * How many distinct assets the body orders, cover and product element excluded.
42403
+ */
42404
+ item_count: number;
42405
+ /**
42406
+ * How many referenced assets have been deleted since.
42407
+ */
42408
+ missing_count: number;
42409
+ /**
42410
+ * When the work last changed.
42411
+ */
42412
+ updated_at: MediaIsoTimestamp;
42413
+ };
41899
42414
  /**
41900
42415
  * A kind of entity the graph accepts, for example a file or a customer.
41901
42416
  */
@@ -48880,7 +49395,7 @@ export type MediaSemanticMatch = {
48880
49395
  /**
48881
49396
  * Type of change recorded for a library, asset, processing task, search index or batch.
48882
49397
  */
48883
- 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';
49398
+ 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';
48884
49399
  /**
48885
49400
  * One picture an element names, with the word the caller uses for that view.
48886
49401
  */
@@ -48976,6 +49491,75 @@ export type MediaGenerationCapabilityModel = {
48976
49491
  * Readiness of one rung or of the ladder it is part of.
48977
49492
  */
48978
49493
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49494
+ /**
49495
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49496
+ */
49497
+ export type MediaGalleryItem = {
49498
+ /**
49499
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49500
+ */
49501
+ asset_id: string;
49502
+ /**
49503
+ * Optional caption for this picture, at most 1000 characters.
49504
+ */
49505
+ caption?: string;
49506
+ } | {
49507
+ /**
49508
+ * A text segment shown between pictures, at most 1000 characters.
49509
+ */
49510
+ text: string;
49511
+ };
49512
+ /**
49513
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49514
+ */
49515
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49516
+ /**
49517
+ * One parameter row of a listing.
49518
+ */
49519
+ export type MediaListingAttribute = {
49520
+ /**
49521
+ * Parameter name such as 容量, at most 40 characters.
49522
+ */
49523
+ name: string;
49524
+ /**
49525
+ * Parameter value such as 500ml, at most 200 characters.
49526
+ */
49527
+ value: string;
49528
+ };
49529
+ /**
49530
+ * One SKU of a listing.
49531
+ */
49532
+ export type MediaListingSku = {
49533
+ /**
49534
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49535
+ */
49536
+ spec: {
49537
+ [key: string]: string;
49538
+ };
49539
+ /**
49540
+ * Optional picture of this SKU: an image or sticker asset of this library.
49541
+ */
49542
+ asset_id?: string;
49543
+ };
49544
+ /**
49545
+ * 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.
49546
+ */
49547
+ export type MediaEditorBlock = {
49548
+ /**
49549
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49550
+ */
49551
+ id: string;
49552
+ /**
49553
+ * The official Editor.js block type.
49554
+ */
49555
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49556
+ /**
49557
+ * The block’s data in that type’s Editor.js shape.
49558
+ */
49559
+ data: {
49560
+ [key: string]: unknown;
49561
+ };
49562
+ };
48979
49563
  /**
48980
49564
  * Auto-resume enabled flag for paused sandboxes. Default false.
48981
49565
  */
@@ -50927,7 +51511,7 @@ export type PraxisSdkSsePostModelV1Messages = {
50927
51511
  };
50928
51512
  export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
50929
51513
  export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
50930
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51514
+ export type PraxisSdkSseGetAutomationV1RunsRunIdEvents = ({
50931
51515
  /**
50932
51516
  * 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.
50933
51517
  */
@@ -50960,7 +51544,7 @@ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
50960
51544
  [key: string]: unknown;
50961
51545
  };
50962
51546
  };
50963
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
51547
+ export type PraxisSdkSseGetAutomationV1RunsRunIdLogs = ({
50964
51548
  /**
50965
51549
  * SSE event name: log, one log line is carried in data.
50966
51550
  */
@@ -52596,6 +53180,10 @@ export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
52596
53180
  * The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for.
52597
53181
  */
52598
53182
  export type DevopsUnitIdPath = string;
53183
+ /**
53184
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
53185
+ */
53186
+ export type EventsSubscriptionId = string;
52599
53187
  /**
52600
53188
  * A type name from types.list, with its dots preserved — a display label is not accepted.
52601
53189
  */
@@ -70211,235 +70799,85 @@ export type BrowserRunPageActionData = {
70211
70799
  tab?: string;
70212
70800
  } | {
70213
70801
  /**
70214
- * 动作类型:后退、前进或刷新当前页。
70215
- */
70216
- type: 'back' | 'forward' | 'reload';
70217
- /**
70218
- * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70219
- */
70220
- tab?: string;
70221
- };
70222
- path: {
70223
- /**
70224
- * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
70225
- */
70226
- sessionId: string;
70227
- };
70228
- query?: never;
70229
- url: '/browser/v1/sessions/{sessionId}/actions';
70230
- };
70231
- export type BrowserRunPageActionErrors = {
70232
- /**
70233
- * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70234
- */
70235
- 400: BrowserError;
70236
- /**
70237
- * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70238
- */
70239
- 401: BrowserError;
70240
- /**
70241
- * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70242
- */
70243
- 402: BrowserError;
70244
- /**
70245
- * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70246
- */
70247
- 403: BrowserError;
70248
- /**
70249
- * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70250
- */
70251
- 404: BrowserError;
70252
- /**
70253
- * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70254
- */
70255
- 409: BrowserError;
70256
- /**
70257
- * BROWSER_REVOKED
70258
- */
70259
- 410: BrowserError;
70260
- /**
70261
- * ACTION_RESULT_TOO_LARGE
70262
- */
70263
- 413: BrowserError;
70264
- /**
70265
- * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70266
- */
70267
- 429: BrowserError;
70268
- /**
70269
- * INTERNAL
70270
- */
70271
- 500: BrowserError;
70272
- /**
70273
- * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70274
- */
70275
- 501: BrowserError;
70276
- /**
70277
- * PROVIDER_FAILED
70278
- */
70279
- 502: BrowserError;
70280
- /**
70281
- * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70282
- */
70283
- 503: BrowserError;
70284
- /**
70285
- * ACTION_TIMEOUT
70286
- */
70287
- 504: BrowserError;
70288
- };
70289
- export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
70290
- export type BrowserRunPageActionResponses = {
70291
- /**
70292
- * 请求成功。
70293
- */
70294
- 200: {
70295
- /**
70296
- * 这次执行的动作类型,与请求的 type 相同。
70297
- */
70298
- type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
70299
- /**
70300
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70802
+ * 动作类型,固定为 route。
70301
70803
  */
70302
- tab: string;
70804
+ type: 'route';
70303
70805
  /**
70304
- * 动作完成后该标签页的地址。
70806
+ * 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
70305
70807
  */
70306
70808
  url: string;
70307
70809
  /**
70308
- * 动作完成后该标签页的标题,页面没有标题时为空字符串。
70810
+ * 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
70309
70811
  */
70310
- title: string;
70311
- } | {
70312
- /**
70313
- * 动作类型,固定为 select。
70314
- */
70315
- type: 'select';
70316
- /**
70317
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70318
- */
70319
- tab: string;
70320
- /**
70321
- * 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
70322
- */
70323
- values: Array<string>;
70324
- } | {
70812
+ method?: string;
70325
70813
  /**
70326
- * 动作类型,固定为 tabs.list。
70814
+ * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70327
70815
  */
70328
- type: 'tabs.list';
70816
+ tab?: string;
70329
70817
  /**
70330
- * 会话里所有打开的标签页。
70818
+ * 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
70331
70819
  */
70332
- tabs: Array<{
70820
+ response: {
70333
70821
  /**
70334
- * 标签页 ID,可在动作的 tab 里使用。
70822
+ * 直接返回给定响应。
70335
70823
  */
70336
- id: string;
70824
+ kind: 'fulfill';
70337
70825
  /**
70338
- * 标签页当前地址。
70826
+ * 返回的 HTTP 状态码,100 到 599。
70339
70827
  */
70340
- url: string;
70828
+ status: number;
70341
70829
  /**
70342
- * 标签页当前标题。
70830
+ * 返回的响应头,名 → 值;最多 100 项。
70343
70831
  */
70344
- title: string;
70832
+ headers?: {
70833
+ [key: string]: string;
70834
+ };
70345
70835
  /**
70346
- * 是否为当前标签页,省略 tab 的动作作用于它。
70836
+ * 返回的响应体,最多 1000000 个字符。
70347
70837
  */
70348
- active: boolean;
70349
- }>;
70350
- } | {
70351
- /**
70352
- * 动作类型,固定为 snapshot。
70353
- */
70354
- type: 'snapshot';
70355
- /**
70356
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70357
- */
70358
- tab: string;
70359
- /**
70360
- * 动作完成后该标签页的地址。
70361
- */
70362
- url: string;
70363
- /**
70364
- * 动作完成后该标签页的标题,页面没有标题时为空字符串。
70365
- */
70366
- title: string;
70367
- /**
70368
- * 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
70369
- */
70370
- snapshot: string;
70371
- /**
70372
- * 这份快照里分配出去的 ref 个数。
70373
- */
70374
- refs: number;
70375
- /**
70376
- * 快照超过 200000 个字符被截断时为 true。
70377
- */
70378
- truncated: boolean;
70838
+ body?: string;
70839
+ } | {
70840
+ /**
70841
+ * 让请求失败,页面看到一次网络错误。
70842
+ */
70843
+ kind: 'abort';
70844
+ /**
70845
+ * Playwright 的错误码;省略为 failed。
70846
+ */
70847
+ error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
70848
+ } | {
70849
+ /**
70850
+ * 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
70851
+ */
70852
+ kind: 'delay';
70853
+ /**
70854
+ * 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
70855
+ */
70856
+ ms: number;
70857
+ };
70379
70858
  } | {
70380
70859
  /**
70381
- * 动作类型,固定为 screenshot。
70382
- */
70383
- type: 'screenshot';
70384
- /**
70385
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70386
- */
70387
- tab: string;
70388
- /**
70389
- * 图片格式,固定为 image/png。
70860
+ * 动作类型,固定为 unroute。
70390
70861
  */
70391
- mediaType: 'image/png';
70862
+ type: 'unroute';
70392
70863
  /**
70393
- * PNG 图片的 base64 编码;解码后最多 5 MiB。
70864
+ * route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
70394
70865
  */
70395
- data: string;
70396
- /**
70397
- * 图片 base64 解码后的字节数。
70398
- */
70399
- bytes: number;
70866
+ routeId: string;
70400
70867
  } | {
70401
70868
  /**
70402
- * 动作类型,固定为 evaluate。
70403
- */
70404
- type: 'evaluate';
70405
- /**
70406
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70407
- */
70408
- tab: string;
70409
- /**
70410
- * 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
70869
+ * 动作类型,固定为 routes。
70411
70870
  */
70412
- value: unknown;
70871
+ type: 'routes';
70413
70872
  } | {
70414
70873
  /**
70415
- * 动作类型,固定为 set_cookie。
70416
- */
70417
- type: 'set_cookie';
70418
- /**
70419
- * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70420
- */
70421
- tab: string;
70422
- /**
70423
- * 已设置的 cookie 名称。
70424
- */
70425
- name: string;
70426
- /**
70427
- * 已设置的 cookie 的域。
70428
- */
70429
- domain: string;
70430
- };
70431
- };
70432
- export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
70433
- export type BrowserRequestHandoffData = {
70434
- body: {
70435
- /**
70436
- * 交给人工操作者的接管说明,可为空字符串。
70874
+ * 动作类型:后退、前进或刷新当前页。
70437
70875
  */
70438
- message: string;
70876
+ type: 'back' | 'forward' | 'reload';
70439
70877
  /**
70440
- * 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
70878
+ * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70441
70879
  */
70442
- timeoutMs?: number;
70880
+ tab?: string;
70443
70881
  };
70444
70882
  path: {
70445
70883
  /**
@@ -70448,9 +70886,285 @@ export type BrowserRequestHandoffData = {
70448
70886
  sessionId: string;
70449
70887
  };
70450
70888
  query?: never;
70451
- url: '/browser/v1/sessions/{sessionId}/handoff';
70889
+ url: '/browser/v1/sessions/{sessionId}/actions';
70452
70890
  };
70453
- export type BrowserRequestHandoffErrors = {
70891
+ export type BrowserRunPageActionErrors = {
70892
+ /**
70893
+ * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70894
+ */
70895
+ 400: BrowserError;
70896
+ /**
70897
+ * UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
70898
+ */
70899
+ 401: BrowserError;
70900
+ /**
70901
+ * INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
70902
+ */
70903
+ 402: BrowserError;
70904
+ /**
70905
+ * PERMISSION_DENIED / CONTEXT_READ_ONLY / ACCOUNT_SUSPENDED
70906
+ */
70907
+ 403: BrowserError;
70908
+ /**
70909
+ * SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PAIRING_NOT_FOUND / BROWSER_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
70910
+ */
70911
+ 404: BrowserError;
70912
+ /**
70913
+ * SESSION_ENDED / SESSION_INVALID_STATE / SESSION_NAME_IN_USE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
70914
+ */
70915
+ 409: BrowserError;
70916
+ /**
70917
+ * BROWSER_REVOKED
70918
+ */
70919
+ 410: BrowserError;
70920
+ /**
70921
+ * ACTION_RESULT_TOO_LARGE
70922
+ */
70923
+ 413: BrowserError;
70924
+ /**
70925
+ * CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
70926
+ */
70927
+ 429: BrowserError;
70928
+ /**
70929
+ * INTERNAL
70930
+ */
70931
+ 500: BrowserError;
70932
+ /**
70933
+ * NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
70934
+ */
70935
+ 501: BrowserError;
70936
+ /**
70937
+ * PROVIDER_FAILED
70938
+ */
70939
+ 502: BrowserError;
70940
+ /**
70941
+ * BROWSER_OFFLINE / SERVICE_UNAVAILABLE
70942
+ */
70943
+ 503: BrowserError;
70944
+ /**
70945
+ * ACTION_TIMEOUT
70946
+ */
70947
+ 504: BrowserError;
70948
+ };
70949
+ export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
70950
+ export type BrowserRunPageActionResponses = {
70951
+ /**
70952
+ * 请求成功。
70953
+ */
70954
+ 200: {
70955
+ /**
70956
+ * 这次执行的动作类型,与请求的 type 相同。
70957
+ */
70958
+ type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
70959
+ /**
70960
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70961
+ */
70962
+ tab: string;
70963
+ /**
70964
+ * 动作完成后该标签页的地址。
70965
+ */
70966
+ url: string;
70967
+ /**
70968
+ * 动作完成后该标签页的标题,页面没有标题时为空字符串。
70969
+ */
70970
+ title: string;
70971
+ } | {
70972
+ /**
70973
+ * 动作类型,固定为 select。
70974
+ */
70975
+ type: 'select';
70976
+ /**
70977
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
70978
+ */
70979
+ tab: string;
70980
+ /**
70981
+ * 这次选中的 option 的 value,按它们在下拉框中出现的顺序;单选下拉框最多一项。
70982
+ */
70983
+ values: Array<string>;
70984
+ } | {
70985
+ /**
70986
+ * 动作类型,固定为 tabs.list。
70987
+ */
70988
+ type: 'tabs.list';
70989
+ /**
70990
+ * 会话里所有打开的标签页。
70991
+ */
70992
+ tabs: Array<{
70993
+ /**
70994
+ * 标签页 ID,可在动作的 tab 里使用。
70995
+ */
70996
+ id: string;
70997
+ /**
70998
+ * 标签页当前地址。
70999
+ */
71000
+ url: string;
71001
+ /**
71002
+ * 标签页当前标题。
71003
+ */
71004
+ title: string;
71005
+ /**
71006
+ * 是否为当前标签页,省略 tab 的动作作用于它。
71007
+ */
71008
+ active: boolean;
71009
+ }>;
71010
+ } | {
71011
+ /**
71012
+ * 动作类型,固定为 snapshot。
71013
+ */
71014
+ type: 'snapshot';
71015
+ /**
71016
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
71017
+ */
71018
+ tab: string;
71019
+ /**
71020
+ * 动作完成后该标签页的地址。
71021
+ */
71022
+ url: string;
71023
+ /**
71024
+ * 动作完成后该标签页的标题,页面没有标题时为空字符串。
71025
+ */
71026
+ title: string;
71027
+ /**
71028
+ * 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
71029
+ */
71030
+ snapshot: string;
71031
+ /**
71032
+ * 这份快照里分配出去的 ref 个数。
71033
+ */
71034
+ refs: number;
71035
+ /**
71036
+ * 快照超过 200000 个字符被截断时为 true。
71037
+ */
71038
+ truncated: boolean;
71039
+ } | {
71040
+ /**
71041
+ * 动作类型,固定为 screenshot。
71042
+ */
71043
+ type: 'screenshot';
71044
+ /**
71045
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
71046
+ */
71047
+ tab: string;
71048
+ /**
71049
+ * 图片格式,固定为 image/png。
71050
+ */
71051
+ mediaType: 'image/png';
71052
+ /**
71053
+ * PNG 图片的 base64 编码;解码后最多 5 MiB。
71054
+ */
71055
+ data: string;
71056
+ /**
71057
+ * 图片 base64 解码后的字节数。
71058
+ */
71059
+ bytes: number;
71060
+ } | {
71061
+ /**
71062
+ * 动作类型,固定为 evaluate。
71063
+ */
71064
+ type: 'evaluate';
71065
+ /**
71066
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
71067
+ */
71068
+ tab: string;
71069
+ /**
71070
+ * 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
71071
+ */
71072
+ value: unknown;
71073
+ } | {
71074
+ /**
71075
+ * 动作类型,固定为 set_cookie。
71076
+ */
71077
+ type: 'set_cookie';
71078
+ /**
71079
+ * 动作作用的标签页 ID,可在后续动作的 tab 里使用。
71080
+ */
71081
+ tab: string;
71082
+ /**
71083
+ * 已设置的 cookie 名称。
71084
+ */
71085
+ name: string;
71086
+ /**
71087
+ * 已设置的 cookie 的域。
71088
+ */
71089
+ domain: string;
71090
+ } | {
71091
+ /**
71092
+ * 动作类型,固定为 route。
71093
+ */
71094
+ type: 'route';
71095
+ /**
71096
+ * 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
71097
+ */
71098
+ routeId: string;
71099
+ } | {
71100
+ /**
71101
+ * 动作类型,固定为 unroute。
71102
+ */
71103
+ type: 'unroute';
71104
+ /**
71105
+ * 请求移除的规则 ID。
71106
+ */
71107
+ routeId: string;
71108
+ /**
71109
+ * 是否真的移除了一条规则;ID 不存在时为 false。
71110
+ */
71111
+ removed: boolean;
71112
+ } | {
71113
+ /**
71114
+ * 动作类型,固定为 routes。
71115
+ */
71116
+ type: 'routes';
71117
+ /**
71118
+ * 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
71119
+ */
71120
+ routes: Array<{
71121
+ /**
71122
+ * 规则 ID,注册时由服务端生成并返回。
71123
+ */
71124
+ routeId: string;
71125
+ /**
71126
+ * 规则匹配的地址模式。
71127
+ */
71128
+ url: string;
71129
+ /**
71130
+ * 规则限定的 HTTP 方法;不限定时省略。
71131
+ */
71132
+ method?: string;
71133
+ /**
71134
+ * 规则只作用的标签页;作用于整个会话时省略。
71135
+ */
71136
+ tab?: string;
71137
+ /**
71138
+ * 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
71139
+ */
71140
+ response: {
71141
+ [key: string]: unknown;
71142
+ };
71143
+ }>;
71144
+ };
71145
+ };
71146
+ export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
71147
+ export type BrowserRequestHandoffData = {
71148
+ body: {
71149
+ /**
71150
+ * 交给人工操作者的接管说明,可为空字符串。
71151
+ */
71152
+ message: string;
71153
+ /**
71154
+ * 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
71155
+ */
71156
+ timeoutMs?: number;
71157
+ };
71158
+ path: {
71159
+ /**
71160
+ * 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
71161
+ */
71162
+ sessionId: string;
71163
+ };
71164
+ query?: never;
71165
+ url: '/browser/v1/sessions/{sessionId}/handoff';
71166
+ };
71167
+ export type BrowserRequestHandoffErrors = {
70454
71168
  /**
70455
71169
  * INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
70456
71170
  */
@@ -78821,15 +79535,15 @@ export type ListOrganizationCostsData = {
78821
79535
  */
78822
79536
  bucket_width: '1h' | '1d';
78823
79537
  /**
78824
- * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79538
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78825
79539
  *
78826
79540
  */
78827
79541
  time_zone?: string;
78828
79542
  /**
78829
- * FOCUS columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).
79543
+ * Columns to group by (repeatable). Defaults to ServiceName. Grouping columns appear on each result only when requested; ResourceName rides with ResourceId. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.
78830
79544
  *
78831
79545
  */
78832
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79546
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
78833
79547
  /**
78834
79548
  * Opaque cursor from the previous page's next_page.
78835
79549
  */
@@ -78896,6 +79610,22 @@ export type ListOrganizationCostsResponses = {
78896
79610
  * Display name of the resource; falls back to ResourceId when no name is known.
78897
79611
  */
78898
79612
  ResourceName?: string;
79613
+ /**
79614
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79615
+ */
79616
+ SessionId?: string | null;
79617
+ /**
79618
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79619
+ */
79620
+ AgentId?: string | null;
79621
+ /**
79622
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79623
+ */
79624
+ ApiKeyId?: string | null;
79625
+ /**
79626
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79627
+ */
79628
+ RunId?: string | null;
78899
79629
  /**
78900
79630
  * Amount in BillingCurrency: US dollars for USD, decimal string, 6 decimals.
78901
79631
  */
@@ -78939,15 +79669,15 @@ export type ListOrganizationUsageData = {
78939
79669
  */
78940
79670
  bucket_width: '1h' | '1d';
78941
79671
  /**
78942
- * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.
79672
+ * IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. Only zones whose UTC offset is a whole number of hours across the whole window are supported; zones such as Asia/Kolkata (+05:30) or Asia/Kathmandu (+05:45) are rejected with 400 VALIDATION_ERROR, because Billing buckets in UTC hours and a local hour of those zones straddles two of them. With bucket_width=1d the window widens to whole local days, each bucket carries its real UTC starting_at and ending_at, and a day that crosses a daylight-saving change lasts 23 or 25 hours; the whole window is then answered in one page (has_more is false and page is not accepted). starting_at and ending_at stay UTC instants.
78943
79673
  *
78944
79674
  */
78945
79675
  time_zone?: string;
78946
79676
  /**
78947
- * FOCUS columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637).
79677
+ * Columns to group by (repeatable). Defaults to ServiceName and ConsumedUnit; the consumed unit is always split out server-side. A resource belongs to exactly one service, so ResourceId rows always carry ServiceName and ServiceCategory too — fact columns of that resource's service, not extra grouping dimensions (#4637). SessionId, AgentId, ApiKeyId and RunId group by the usage event's own attribution: the session, agent, API key or automation run the call belongs to. A requested attribution column is on every result — null when that group's events carry none, never an omitted key.
78948
79678
  *
78949
79679
  */
78950
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79680
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
78951
79681
  /**
78952
79682
  * Opaque cursor from the previous page's next_page.
78953
79683
  */
@@ -79014,6 +79744,22 @@ export type ListOrganizationUsageResponses = {
79014
79744
  * Display name of the resource; falls back to ResourceId when no name is known.
79015
79745
  */
79016
79746
  ResourceName?: string;
79747
+ /**
79748
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79749
+ */
79750
+ SessionId?: string | null;
79751
+ /**
79752
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79753
+ */
79754
+ AgentId?: string | null;
79755
+ /**
79756
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79757
+ */
79758
+ ApiKeyId?: string | null;
79759
+ /**
79760
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79761
+ */
79762
+ RunId?: string | null;
79017
79763
  /**
79018
79764
  * Exact decimal string in ConsumedUnit.
79019
79765
  */
@@ -79130,6 +79876,22 @@ export type ListOrganizationEventsResponses = {
79130
79876
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79131
79877
  */
79132
79878
  request_id: string | null;
79879
+ /**
79880
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
79881
+ */
79882
+ session_id: string | null;
79883
+ /**
79884
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
79885
+ */
79886
+ agent_id: string | null;
79887
+ /**
79888
+ * The API key the call was made with (key_…); null for session, run and binding callers.
79889
+ */
79890
+ api_key_id: string | null;
79891
+ /**
79892
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
79893
+ */
79894
+ run_id: string | null;
79133
79895
  /**
79134
79896
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79135
79897
  */
@@ -79251,6 +80013,22 @@ export type GetOrganizationEventResponses = {
79251
80013
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79252
80014
  */
79253
80015
  request_id: string | null;
80016
+ /**
80017
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80018
+ */
80019
+ session_id: string | null;
80020
+ /**
80021
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80022
+ */
80023
+ agent_id: string | null;
80024
+ /**
80025
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80026
+ */
80027
+ api_key_id: string | null;
80028
+ /**
80029
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80030
+ */
80031
+ run_id: string | null;
79254
80032
  /**
79255
80033
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79256
80034
  */
@@ -79459,11 +80237,19 @@ export type ListOrganizationNotificationLettersData = {
79459
80237
  path?: never;
79460
80238
  query?: {
79461
80239
  /**
79462
- * Only unread letters, or only read ones; omit for both.
80240
+ * 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.
79463
80241
  */
79464
- status?: 'unread' | 'read';
80242
+ direction?: 'received' | 'sent';
79465
80243
  /**
79466
- * false (the default) hides archived letters; true lists only the archived ones.
80244
+ * 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.
80245
+ */
80246
+ status?: 'unread' | 'read' | 'scheduled';
80247
+ /**
80248
+ * Only letters of this conversation, for received and sent alike; omit for all.
80249
+ */
80250
+ thread?: string;
80251
+ /**
80252
+ * 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.
79467
80253
  */
79468
80254
  archived?: boolean;
79469
80255
  /**
@@ -79479,7 +80265,7 @@ export type ListOrganizationNotificationLettersData = {
79479
80265
  };
79480
80266
  export type ListOrganizationNotificationLettersErrors = {
79481
80267
  /**
79482
- * A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
80268
+ * 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).
79483
80269
  */
79484
80270
  400: unknown;
79485
80271
  /**
@@ -79521,9 +80307,9 @@ export type ListOrganizationNotificationLettersResponses = {
79521
80307
  */
79522
80308
  thread: string;
79523
80309
  /**
79524
- * The letter's kind (ADR-193 §2, #4107): notice, mention or decision; the kind is its category and decides the channels. Letters written before the column existed read mention.
80310
+ * The letter's kind (ADR-193 §2, #4107): notice, mention, decision, or event (a subscribed event, ADR-218); the kind is its category and decides the channels. Letters written before the column existed read mention.
79525
80311
  */
79526
- kind: 'notice' | 'mention' | 'decision';
80312
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79527
80313
  /**
79528
80314
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79529
80315
  */
@@ -79579,6 +80365,80 @@ export type ListOrganizationNotificationLettersResponses = {
79579
80365
  };
79580
80366
  };
79581
80367
  export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
80368
+ export type CreateOrganizationNotificationLetterData = {
80369
+ body: {
80370
+ /**
80371
+ * The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
80372
+ */
80373
+ to: string;
80374
+ /**
80375
+ * The whole letter, 1 to 16000 characters.
80376
+ */
80377
+ body: string;
80378
+ /**
80379
+ * One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
80380
+ */
80381
+ summary?: string;
80382
+ /**
80383
+ * The letter's kind; it decides the channels. Defaults to mention.
80384
+ */
80385
+ kind?: 'notice' | 'mention' | 'decision';
80386
+ /**
80387
+ * The conversation the letter belongs to, free text; omit for none.
80388
+ */
80389
+ thread?: string;
80390
+ /**
80391
+ * When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
80392
+ */
80393
+ deliver_at?: string;
80394
+ };
80395
+ path?: never;
80396
+ query?: never;
80397
+ url: '/organization/v1/notifications/letters';
80398
+ };
80399
+ export type CreateOrganizationNotificationLetterErrors = {
80400
+ /**
80401
+ * `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
80402
+ */
80403
+ 400: unknown;
80404
+ /**
80405
+ * Missing or invalid credential (RFC 9457 problem).
80406
+ */
80407
+ 401: unknown;
80408
+ /**
80409
+ * `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
80410
+ */
80411
+ 403: unknown;
80412
+ /**
80413
+ * `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
80414
+ */
80415
+ 404: unknown;
80416
+ /**
80417
+ * 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.
80418
+ */
80419
+ 502: unknown;
80420
+ };
80421
+ export type CreateOrganizationNotificationLetterResponses = {
80422
+ /**
80423
+ * The letter is written; it is delivered at deliverAt.
80424
+ */
80425
+ 200: {
80426
+ /**
80427
+ * The letter that was written: its id and the time it is delivered.
80428
+ */
80429
+ letter: {
80430
+ /**
80431
+ * The letter's id.
80432
+ */
80433
+ id: string;
80434
+ /**
80435
+ * When it is delivered: now, or the time asked for.
80436
+ */
80437
+ deliverAt: string;
80438
+ };
80439
+ };
80440
+ };
80441
+ export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
79582
80442
  export type GetOrganizationNotificationLetterData = {
79583
80443
  body?: never;
79584
80444
  path: {
@@ -79636,7 +80496,7 @@ export type GetOrganizationNotificationLetterResponses = {
79636
80496
  /**
79637
80497
  * The letter's kind (ADR-193 §2, #4107).
79638
80498
  */
79639
- kind: 'notice' | 'mention' | 'decision';
80499
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79640
80500
  /**
79641
80501
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79642
80502
  */
@@ -79729,7 +80589,7 @@ export type ReadAllOrganizationNotificationLettersData = {
79729
80589
  /**
79730
80590
  * Only letters of this kind; omit for all kinds.
79731
80591
  */
79732
- kind?: 'notice' | 'mention' | 'decision';
80592
+ kind?: 'notice' | 'mention' | 'decision' | 'event';
79733
80593
  };
79734
80594
  path?: never;
79735
80595
  query?: never;
@@ -79802,6 +80662,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
79802
80662
  };
79803
80663
  };
79804
80664
  export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
80665
+ export type ListOrganizationNotificationMessagesData = {
80666
+ body?: never;
80667
+ path?: never;
80668
+ query?: {
80669
+ /**
80670
+ * 0 (the default) lists the inbox tab, 1 lists archived messages.
80671
+ */
80672
+ archived?: '0' | '1';
80673
+ /**
80674
+ * Messages per page, 1 to 100; defaults to 20.
80675
+ */
80676
+ limit?: number;
80677
+ /**
80678
+ * Opaque nextPageToken from the previous response; omit for the first page.
80679
+ */
80680
+ page?: string;
80681
+ };
80682
+ url: '/organization/v1/notifications/messages';
80683
+ };
80684
+ export type ListOrganizationNotificationMessagesErrors = {
80685
+ /**
80686
+ * A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (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
+ * 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.
80699
+ */
80700
+ 502: unknown;
80701
+ };
80702
+ export type ListOrganizationNotificationMessagesResponses = {
80703
+ /**
80704
+ * One page of this person's messages.
80705
+ */
80706
+ 200: {
80707
+ /**
80708
+ * The page, newest first.
80709
+ */
80710
+ items: Array<{
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
+ * Pass unchanged as page for the next page; absent at the end.
80758
+ */
80759
+ nextPageToken?: string;
80760
+ };
80761
+ };
80762
+ export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
80763
+ export type DeleteOrganizationNotificationMessageData = {
80764
+ body?: never;
80765
+ path: {
80766
+ /**
80767
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80768
+ */
80769
+ name: string;
80770
+ };
80771
+ query?: never;
80772
+ url: '/organization/v1/notifications/messages/{name}';
80773
+ };
80774
+ export type DeleteOrganizationNotificationMessageErrors = {
80775
+ /**
80776
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80777
+ */
80778
+ 400: unknown;
80779
+ /**
80780
+ * Missing or invalid credential (RFC 9457 problem).
80781
+ */
80782
+ 401: unknown;
80783
+ /**
80784
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80785
+ */
80786
+ 403: unknown;
80787
+ /**
80788
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80789
+ */
80790
+ 404: unknown;
80791
+ /**
80792
+ * 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.
80793
+ */
80794
+ 502: unknown;
80795
+ };
80796
+ export type DeleteOrganizationNotificationMessageResponses = {
80797
+ /**
80798
+ * The message is deleted.
80799
+ */
80800
+ 200: {
80801
+ /**
80802
+ * Always true: the message was deleted.
80803
+ */
80804
+ deleted: boolean;
80805
+ };
80806
+ };
80807
+ export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
80808
+ export type GetOrganizationNotificationMessageData = {
80809
+ body?: never;
80810
+ path: {
80811
+ /**
80812
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80813
+ */
80814
+ name: string;
80815
+ };
80816
+ query?: never;
80817
+ url: '/organization/v1/notifications/messages/{name}';
80818
+ };
80819
+ export type GetOrganizationNotificationMessageErrors = {
80820
+ /**
80821
+ * `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
80822
+ */
80823
+ 400: unknown;
80824
+ /**
80825
+ * Missing or invalid credential (RFC 9457 problem).
80826
+ */
80827
+ 401: unknown;
80828
+ /**
80829
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80830
+ */
80831
+ 403: unknown;
80832
+ /**
80833
+ * 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).
80834
+ */
80835
+ 404: unknown;
80836
+ /**
80837
+ * 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.
80838
+ */
80839
+ 502: unknown;
80840
+ };
80841
+ export type GetOrganizationNotificationMessageResponses = {
80842
+ /**
80843
+ * The message.
80844
+ */
80845
+ 200: {
80846
+ /**
80847
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80848
+ */
80849
+ name: string;
80850
+ /**
80851
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80852
+ */
80853
+ organizationId: string;
80854
+ /**
80855
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80856
+ */
80857
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80858
+ /**
80859
+ * The notification workflow that wrote it, as the preferences page names it.
80860
+ */
80861
+ workflow: string;
80862
+ /**
80863
+ * The message's headline, as the bell shows it.
80864
+ */
80865
+ title: string;
80866
+ /**
80867
+ * The message text.
80868
+ */
80869
+ body: string;
80870
+ /**
80871
+ * Where the bell opens this message; absent when it has no page.
80872
+ */
80873
+ actionUrl?: string;
80874
+ /**
80875
+ * Whether the bell has been opened since the message arrived.
80876
+ */
80877
+ seen: boolean;
80878
+ /**
80879
+ * Whether this person has read it.
80880
+ */
80881
+ read: boolean;
80882
+ /**
80883
+ * Whether this person archived it; archived messages are not in the inbox tab.
80884
+ */
80885
+ archived: boolean;
80886
+ /**
80887
+ * When the message arrived.
80888
+ */
80889
+ createTime: string;
80890
+ };
80891
+ };
80892
+ export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
80893
+ export type UpdateOrganizationNotificationMessageData = {
80894
+ body: {
80895
+ /**
80896
+ * Mark the message read (true) or unread (false); omit to leave it.
80897
+ */
80898
+ read?: boolean;
80899
+ /**
80900
+ * Archive the message (true) or move it back to the inbox (false); omit to leave it.
80901
+ */
80902
+ archived?: boolean;
80903
+ };
80904
+ path: {
80905
+ /**
80906
+ * The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
80907
+ */
80908
+ name: string;
80909
+ };
80910
+ query?: never;
80911
+ url: '/organization/v1/notifications/messages/{name}';
80912
+ };
80913
+ export type UpdateOrganizationNotificationMessageErrors = {
80914
+ /**
80915
+ * 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).
80916
+ */
80917
+ 400: unknown;
80918
+ /**
80919
+ * Missing or invalid credential (RFC 9457 problem).
80920
+ */
80921
+ 401: unknown;
80922
+ /**
80923
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
80924
+ */
80925
+ 403: unknown;
80926
+ /**
80927
+ * No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
80928
+ */
80929
+ 404: unknown;
80930
+ /**
80931
+ * 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.
80932
+ */
80933
+ 502: unknown;
80934
+ };
80935
+ export type UpdateOrganizationNotificationMessageResponses = {
80936
+ /**
80937
+ * The message after the change.
80938
+ */
80939
+ 200: {
80940
+ /**
80941
+ * The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
80942
+ */
80943
+ name: string;
80944
+ /**
80945
+ * The organization the message belongs to; empty for a message that belongs to no organization.
80946
+ */
80947
+ organizationId: string;
80948
+ /**
80949
+ * The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
80950
+ */
80951
+ group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
80952
+ /**
80953
+ * The notification workflow that wrote it, as the preferences page names it.
80954
+ */
80955
+ workflow: string;
80956
+ /**
80957
+ * The message's headline, as the bell shows it.
80958
+ */
80959
+ title: string;
80960
+ /**
80961
+ * The message text.
80962
+ */
80963
+ body: string;
80964
+ /**
80965
+ * Where the bell opens this message; absent when it has no page.
80966
+ */
80967
+ actionUrl?: string;
80968
+ /**
80969
+ * Whether the bell has been opened since the message arrived.
80970
+ */
80971
+ seen: boolean;
80972
+ /**
80973
+ * Whether this person has read it.
80974
+ */
80975
+ read: boolean;
80976
+ /**
80977
+ * Whether this person archived it; archived messages are not in the inbox tab.
80978
+ */
80979
+ archived: boolean;
80980
+ /**
80981
+ * When the message arrived.
80982
+ */
80983
+ createTime: string;
80984
+ };
80985
+ };
80986
+ export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
80987
+ export type ReadAllOrganizationNotificationMessagesData = {
80988
+ body?: never;
80989
+ path?: never;
80990
+ query?: never;
80991
+ url: '/organization/v1/notifications/messages:readAll';
80992
+ };
80993
+ export type ReadAllOrganizationNotificationMessagesErrors = {
80994
+ /**
80995
+ * Missing or invalid credential (RFC 9457 problem).
80996
+ */
80997
+ 401: unknown;
80998
+ /**
80999
+ * `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
81000
+ */
81001
+ 403: unknown;
81002
+ /**
81003
+ * 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.
81004
+ */
81005
+ 502: unknown;
81006
+ };
81007
+ export type ReadAllOrganizationNotificationMessagesResponses = {
81008
+ /**
81009
+ * How many messages were marked read.
81010
+ */
81011
+ 200: {
81012
+ /**
81013
+ * The number of messages that were unread and are now read.
81014
+ */
81015
+ updated: number;
81016
+ };
81017
+ };
81018
+ export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
79805
81019
  export type GetOrganizationNotificationPreferencesData = {
79806
81020
  body?: never;
79807
81021
  path?: never;
@@ -81615,6 +82829,117 @@ export type GetByodPairingResponses = {
81615
82829
  };
81616
82830
  };
81617
82831
  export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
82832
+ export type GetByodPairingStatusData = {
82833
+ body?: never;
82834
+ path: {
82835
+ /**
82836
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
82837
+ */
82838
+ code: string;
82839
+ };
82840
+ query?: never;
82841
+ url: '/sandbox/v1/byod/pairings/{code}/status';
82842
+ };
82843
+ export type GetByodPairingStatusErrors = {
82844
+ /**
82845
+ * Authentication required: supply an organization API key that carries a tenant.
82846
+ */
82847
+ 401: unknown;
82848
+ /**
82849
+ * NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
82850
+ */
82851
+ 404: unknown;
82852
+ /**
82853
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
82854
+ */
82855
+ 503: unknown;
82856
+ };
82857
+ export type GetByodPairingStatusResponses = {
82858
+ /**
82859
+ * One pairing of the organization.
82860
+ */
82861
+ 200: {
82862
+ /**
82863
+ * The 8-character pairing code that was asked about.
82864
+ */
82865
+ code: string;
82866
+ /**
82867
+ * When the code stops working, as an ISO-8601 timestamp.
82868
+ */
82869
+ expires_at: string;
82870
+ /**
82871
+ * The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
82872
+ */
82873
+ claimed_device: {
82874
+ /**
82875
+ * Resource type; always "byod_device".
82876
+ */
82877
+ object: 'byod_device';
82878
+ /**
82879
+ * 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.
82880
+ */
82881
+ id: string;
82882
+ /**
82883
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
82884
+ */
82885
+ platform: 'android' | 'macos' | 'linux';
82886
+ /**
82887
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
82888
+ */
82889
+ name: string;
82890
+ /**
82891
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
82892
+ */
82893
+ model: string;
82894
+ /**
82895
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
82896
+ */
82897
+ os_version: string;
82898
+ /**
82899
+ * 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.
82900
+ */
82901
+ online: boolean;
82902
+ /**
82903
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
82904
+ */
82905
+ last_seen_at: string | null;
82906
+ /**
82907
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
82908
+ */
82909
+ created_at: string;
82910
+ /**
82911
+ * 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).
82912
+ */
82913
+ capabilities: Array<'display' | 'agent'>;
82914
+ /**
82915
+ * 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.
82916
+ */
82917
+ agent_dirs: Array<string>;
82918
+ /**
82919
+ * 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.
82920
+ */
82921
+ agent_bindings: Array<{
82922
+ /**
82923
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
82924
+ */
82925
+ dir: string;
82926
+ /**
82927
+ * The agent the directory is bound to: its identity number or its agent id.
82928
+ */
82929
+ agent: string;
82930
+ }>;
82931
+ /**
82932
+ * 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.
82933
+ */
82934
+ envd_version: string | null;
82935
+ /**
82936
+ * 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.
82937
+ */
82938
+ allow_bypass: boolean;
82939
+ } | null;
82940
+ };
82941
+ };
82942
+ export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
81618
82943
  export type ClaimByodPairingData = {
81619
82944
  /**
81620
82945
  * What the phone's app knows about itself when it claims the pairing.
@@ -97235,14 +98560,14 @@ export type AutomationActionsGetData = {
97235
98560
  /**
97236
98561
  * 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.
97237
98562
  */
97238
- ns: string;
98563
+ namespace: string;
97239
98564
  /**
97240
98565
  * 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}.
97241
98566
  */
97242
98567
  name: string;
97243
98568
  };
97244
98569
  query?: never;
97245
- url: '/automation/v1/actions/{ns}/{name}';
98570
+ url: '/automation/v1/actions/{namespace}/{name}';
97246
98571
  };
97247
98572
  export type AutomationActionsGetErrors = {
97248
98573
  /**
@@ -97365,7 +98690,7 @@ export type AutomationActionsUpdateData = {
97365
98690
  /**
97366
98691
  * 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.
97367
98692
  */
97368
- ns: string;
98693
+ namespace: string;
97369
98694
  /**
97370
98695
  * 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}.
97371
98696
  */
@@ -97377,7 +98702,7 @@ export type AutomationActionsUpdateData = {
97377
98702
  */
97378
98703
  dry_run?: boolean;
97379
98704
  };
97380
- url: '/automation/v1/actions/{ns}/{name}';
98705
+ url: '/automation/v1/actions/{namespace}/{name}';
97381
98706
  };
97382
98707
  export type AutomationActionsUpdateErrors = {
97383
98708
  /**
@@ -97428,7 +98753,7 @@ export type AutomationActionsRevisionsData = {
97428
98753
  /**
97429
98754
  * 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.
97430
98755
  */
97431
- ns: string;
98756
+ namespace: string;
97432
98757
  /**
97433
98758
  * 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}.
97434
98759
  */
@@ -97448,7 +98773,7 @@ export type AutomationActionsRevisionsData = {
97448
98773
  */
97449
98774
  expand?: 'source';
97450
98775
  };
97451
- url: '/automation/v1/actions/{ns}/{name}/revisions';
98776
+ url: '/automation/v1/actions/{namespace}/{name}/revisions';
97452
98777
  };
97453
98778
  export type AutomationActionsRevisionsErrors = {
97454
98779
  /**
@@ -97487,7 +98812,7 @@ export type AutomationActionsRevisionData = {
97487
98812
  /**
97488
98813
  * 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.
97489
98814
  */
97490
- ns: string;
98815
+ namespace: string;
97491
98816
  /**
97492
98817
  * 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}.
97493
98818
  */
@@ -97498,7 +98823,7 @@ export type AutomationActionsRevisionData = {
97498
98823
  revision: string;
97499
98824
  };
97500
98825
  query?: never;
97501
- url: '/automation/v1/actions/{ns}/{name}/revisions/{revision}';
98826
+ url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}';
97502
98827
  };
97503
98828
  export type AutomationActionsRevisionErrors = {
97504
98829
  /**
@@ -97548,14 +98873,14 @@ export type AutomationActionsRollbackData = {
97548
98873
  /**
97549
98874
  * 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.
97550
98875
  */
97551
- ns: string;
98876
+ namespace: string;
97552
98877
  /**
97553
98878
  * 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}.
97554
98879
  */
97555
98880
  name: string;
97556
98881
  };
97557
98882
  query?: never;
97558
- url: '/automation/v1/actions/{ns}/{name}/rollback';
98883
+ url: '/automation/v1/actions/{namespace}/{name}/rollback';
97559
98884
  };
97560
98885
  export type AutomationActionsRollbackErrors = {
97561
98886
  /**
@@ -97609,7 +98934,7 @@ export type AutomationActionsInvocationsData = {
97609
98934
  /**
97610
98935
  * 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.
97611
98936
  */
97612
- ns: string;
98937
+ namespace: string;
97613
98938
  /**
97614
98939
  * 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}.
97615
98940
  */
@@ -97645,7 +98970,7 @@ export type AutomationActionsInvocationsData = {
97645
98970
  */
97646
98971
  'created_at[gte]'?: string;
97647
98972
  };
97648
- url: '/automation/v1/actions/{ns}/{name}/invocations';
98973
+ url: '/automation/v1/actions/{namespace}/{name}/invocations';
97649
98974
  };
97650
98975
  export type AutomationActionsInvocationsErrors = {
97651
98976
  /**
@@ -97684,7 +99009,7 @@ export type AutomationActionsDependentsData = {
97684
99009
  /**
97685
99010
  * 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.
97686
99011
  */
97687
- ns: string;
99012
+ namespace: string;
97688
99013
  /**
97689
99014
  * 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}.
97690
99015
  */
@@ -97700,7 +99025,7 @@ export type AutomationActionsDependentsData = {
97700
99025
  */
97701
99026
  cursor?: string;
97702
99027
  };
97703
- url: '/automation/v1/actions/{ns}/{name}/dependents';
99028
+ url: '/automation/v1/actions/{namespace}/{name}/dependents';
97704
99029
  };
97705
99030
  export type AutomationActionsDependentsErrors = {
97706
99031
  /**
@@ -97739,14 +99064,14 @@ export type AutomationActionsArchiveData = {
97739
99064
  /**
97740
99065
  * 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.
97741
99066
  */
97742
- ns: string;
99067
+ namespace: string;
97743
99068
  /**
97744
99069
  * 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}.
97745
99070
  */
97746
99071
  name: string;
97747
99072
  };
97748
99073
  query?: never;
97749
- url: '/automation/v1/actions/{ns}/{name}/archive';
99074
+ url: '/automation/v1/actions/{namespace}/{name}/archive';
97750
99075
  };
97751
99076
  export type AutomationActionsArchiveErrors = {
97752
99077
  /**
@@ -97780,14 +99105,14 @@ export type AutomationActionsRestoreData = {
97780
99105
  /**
97781
99106
  * 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.
97782
99107
  */
97783
- ns: string;
99108
+ namespace: string;
97784
99109
  /**
97785
99110
  * 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}.
97786
99111
  */
97787
99112
  name: string;
97788
99113
  };
97789
99114
  query?: never;
97790
- url: '/automation/v1/actions/{ns}/{name}/restore';
99115
+ url: '/automation/v1/actions/{namespace}/{name}/restore';
97791
99116
  };
97792
99117
  export type AutomationActionsRestoreErrors = {
97793
99118
  /**
@@ -97902,9 +99227,9 @@ export type AutomationScriptsCreateData = {
97902
99227
  */
97903
99228
  description?: string;
97904
99229
  /**
97905
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99230
+ * 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 }.
97906
99231
  */
97907
- draft?: string;
99232
+ draft?: AutomationDraftCreateInput | string;
97908
99233
  /**
97909
99234
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
97910
99235
  */
@@ -97959,14 +99284,14 @@ export type AutomationScriptsGetData = {
97959
99284
  /**
97960
99285
  * 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.
97961
99286
  */
97962
- ns: string;
99287
+ namespace: string;
97963
99288
  /**
97964
99289
  * 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}.
97965
99290
  */
97966
99291
  name: string;
97967
99292
  };
97968
99293
  query?: never;
97969
- url: '/automation/v1/scripts/{ns}/{name}';
99294
+ url: '/automation/v1/scripts/{namespace}/{name}';
97970
99295
  };
97971
99296
  export type AutomationScriptsGetErrors = {
97972
99297
  /**
@@ -98003,28 +99328,30 @@ export type AutomationScriptsPatchData = {
98003
99328
  [key: string]: string;
98004
99329
  };
98005
99330
  /**
98006
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99331
+ * 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.
98007
99332
  */
98008
- draft?: string;
99333
+ draft?: AutomationDraftUpdateInput | string;
98009
99334
  };
98010
- headers: {
99335
+ headers?: {
98011
99336
  /**
98012
- * 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.
99337
+ * 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.
99338
+ *
99339
+ * @deprecated
98013
99340
  */
98014
- 'If-Match': string;
99341
+ 'If-Match'?: string;
98015
99342
  };
98016
99343
  path: {
98017
99344
  /**
98018
99345
  * 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.
98019
99346
  */
98020
- ns: string;
99347
+ namespace: string;
98021
99348
  /**
98022
99349
  * 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}.
98023
99350
  */
98024
99351
  name: string;
98025
99352
  };
98026
99353
  query?: never;
98027
- url: '/automation/v1/scripts/{ns}/{name}';
99354
+ url: '/automation/v1/scripts/{namespace}/{name}';
98028
99355
  };
98029
99356
  export type AutomationScriptsPatchErrors = {
98030
99357
  /**
@@ -98066,14 +99393,14 @@ export type AutomationScriptsArchiveData = {
98066
99393
  /**
98067
99394
  * 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.
98068
99395
  */
98069
- ns: string;
99396
+ namespace: string;
98070
99397
  /**
98071
99398
  * 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}.
98072
99399
  */
98073
99400
  name: string;
98074
99401
  };
98075
99402
  query?: never;
98076
- url: '/automation/v1/scripts/{ns}/{name}/archive';
99403
+ url: '/automation/v1/scripts/{namespace}/{name}/archive';
98077
99404
  };
98078
99405
  export type AutomationScriptsArchiveErrors = {
98079
99406
  /**
@@ -98111,14 +99438,14 @@ export type AutomationScriptsRestoreData = {
98111
99438
  /**
98112
99439
  * 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.
98113
99440
  */
98114
- ns: string;
99441
+ namespace: string;
98115
99442
  /**
98116
99443
  * 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}.
98117
99444
  */
98118
99445
  name: string;
98119
99446
  };
98120
99447
  query?: never;
98121
- url: '/automation/v1/scripts/{ns}/{name}/restore';
99448
+ url: '/automation/v1/scripts/{namespace}/{name}/restore';
98122
99449
  };
98123
99450
  export type AutomationScriptsRestoreErrors = {
98124
99451
  /**
@@ -98156,7 +99483,7 @@ export type AutomationScriptsVersionsData = {
98156
99483
  /**
98157
99484
  * 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.
98158
99485
  */
98159
- ns: string;
99486
+ namespace: string;
98160
99487
  /**
98161
99488
  * 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}.
98162
99489
  */
@@ -98176,7 +99503,7 @@ export type AutomationScriptsVersionsData = {
98176
99503
  */
98177
99504
  expand?: 'source';
98178
99505
  };
98179
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99506
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98180
99507
  };
98181
99508
  export type AutomationScriptsVersionsErrors = {
98182
99509
  /**
@@ -98216,13 +99543,24 @@ export type AutomationScriptsPublishData = {
98216
99543
  */
98217
99544
  version: string;
98218
99545
  /**
98219
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
99546
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
99547
+ *
99548
+ * @deprecated
98220
99549
  */
98221
- expected_draft_revision: string;
99550
+ expected_draft_revision?: string;
98222
99551
  /**
98223
99552
  * 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.
98224
99553
  */
98225
99554
  tag?: string;
99555
+ /**
99556
+ * 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.
99557
+ */
99558
+ draft?: {
99559
+ /**
99560
+ * 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.
99561
+ */
99562
+ revision: string;
99563
+ };
98226
99564
  } | {
98227
99565
  /**
98228
99566
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -98251,14 +99589,14 @@ export type AutomationScriptsPublishData = {
98251
99589
  /**
98252
99590
  * 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.
98253
99591
  */
98254
- ns: string;
99592
+ namespace: string;
98255
99593
  /**
98256
99594
  * 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}.
98257
99595
  */
98258
99596
  name: string;
98259
99597
  };
98260
99598
  query?: never;
98261
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99599
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98262
99600
  };
98263
99601
  export type AutomationScriptsPublishErrors = {
98264
99602
  /**
@@ -98313,7 +99651,7 @@ export type AutomationScriptsVersionData = {
98313
99651
  /**
98314
99652
  * 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.
98315
99653
  */
98316
- ns: string;
99654
+ namespace: string;
98317
99655
  /**
98318
99656
  * 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}.
98319
99657
  */
@@ -98324,7 +99662,7 @@ export type AutomationScriptsVersionData = {
98324
99662
  version: string;
98325
99663
  };
98326
99664
  query?: never;
98327
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}';
99665
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}';
98328
99666
  };
98329
99667
  export type AutomationScriptsVersionErrors = {
98330
99668
  /**
@@ -98360,7 +99698,7 @@ export type AutomationScriptsDeprecateData = {
98360
99698
  /**
98361
99699
  * 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.
98362
99700
  */
98363
- ns: string;
99701
+ namespace: string;
98364
99702
  /**
98365
99703
  * 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}.
98366
99704
  */
@@ -98371,7 +99709,7 @@ export type AutomationScriptsDeprecateData = {
98371
99709
  version: string;
98372
99710
  };
98373
99711
  query?: never;
98374
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate';
99712
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate';
98375
99713
  };
98376
99714
  export type AutomationScriptsDeprecateErrors = {
98377
99715
  /**
@@ -98414,14 +99752,14 @@ export type AutomationScriptsDistTagsData = {
98414
99752
  /**
98415
99753
  * 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.
98416
99754
  */
98417
- ns: string;
99755
+ namespace: string;
98418
99756
  /**
98419
99757
  * 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}.
98420
99758
  */
98421
99759
  name: string;
98422
99760
  };
98423
99761
  query?: never;
98424
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags';
99762
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags';
98425
99763
  };
98426
99764
  export type AutomationScriptsDistTagsErrors = {
98427
99765
  /**
@@ -98453,7 +99791,7 @@ export type AutomationScriptsDeleteDistTagData = {
98453
99791
  /**
98454
99792
  * 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.
98455
99793
  */
98456
- ns: string;
99794
+ namespace: string;
98457
99795
  /**
98458
99796
  * 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}.
98459
99797
  */
@@ -98464,7 +99802,7 @@ export type AutomationScriptsDeleteDistTagData = {
98464
99802
  tag: string;
98465
99803
  };
98466
99804
  query?: never;
98467
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99805
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98468
99806
  };
98469
99807
  export type AutomationScriptsDeleteDistTagErrors = {
98470
99808
  /**
@@ -98514,7 +99852,7 @@ export type AutomationScriptsSetDistTagData = {
98514
99852
  /**
98515
99853
  * 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.
98516
99854
  */
98517
- ns: string;
99855
+ namespace: string;
98518
99856
  /**
98519
99857
  * 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}.
98520
99858
  */
@@ -98525,7 +99863,7 @@ export type AutomationScriptsSetDistTagData = {
98525
99863
  tag: string;
98526
99864
  };
98527
99865
  query?: never;
98528
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
99866
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98529
99867
  };
98530
99868
  export type AutomationScriptsSetDistTagErrors = {
98531
99869
  /**
@@ -98652,9 +99990,9 @@ export type AutomationWorkflowsCreateData = {
98652
99990
  */
98653
99991
  description?: string;
98654
99992
  /**
98655
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99993
+ * 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 }.
98656
99994
  */
98657
- draft?: string;
99995
+ draft?: AutomationDraftCreateInput | string;
98658
99996
  /**
98659
99997
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
98660
99998
  */
@@ -98709,14 +100047,14 @@ export type AutomationWorkflowsGetData = {
98709
100047
  /**
98710
100048
  * 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.
98711
100049
  */
98712
- ns: string;
100050
+ namespace: string;
98713
100051
  /**
98714
100052
  * 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}.
98715
100053
  */
98716
100054
  name: string;
98717
100055
  };
98718
100056
  query?: never;
98719
- url: '/automation/v1/workflows/{ns}/{name}';
100057
+ url: '/automation/v1/workflows/{namespace}/{name}';
98720
100058
  };
98721
100059
  export type AutomationWorkflowsGetErrors = {
98722
100060
  /**
@@ -98753,28 +100091,30 @@ export type AutomationWorkflowsPatchData = {
98753
100091
  [key: string]: string;
98754
100092
  };
98755
100093
  /**
98756
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100094
+ * 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.
98757
100095
  */
98758
- draft?: string;
100096
+ draft?: AutomationDraftUpdateInput | string;
98759
100097
  };
98760
- headers: {
100098
+ headers?: {
98761
100099
  /**
98762
- * 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.
100100
+ * 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.
100101
+ *
100102
+ * @deprecated
98763
100103
  */
98764
- 'If-Match': string;
100104
+ 'If-Match'?: string;
98765
100105
  };
98766
100106
  path: {
98767
100107
  /**
98768
100108
  * 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.
98769
100109
  */
98770
- ns: string;
100110
+ namespace: string;
98771
100111
  /**
98772
100112
  * 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}.
98773
100113
  */
98774
100114
  name: string;
98775
100115
  };
98776
100116
  query?: never;
98777
- url: '/automation/v1/workflows/{ns}/{name}';
100117
+ url: '/automation/v1/workflows/{namespace}/{name}';
98778
100118
  };
98779
100119
  export type AutomationWorkflowsPatchErrors = {
98780
100120
  /**
@@ -98816,14 +100156,14 @@ export type AutomationWorkflowsArchiveData = {
98816
100156
  /**
98817
100157
  * 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.
98818
100158
  */
98819
- ns: string;
100159
+ namespace: string;
98820
100160
  /**
98821
100161
  * 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}.
98822
100162
  */
98823
100163
  name: string;
98824
100164
  };
98825
100165
  query?: never;
98826
- url: '/automation/v1/workflows/{ns}/{name}/archive';
100166
+ url: '/automation/v1/workflows/{namespace}/{name}/archive';
98827
100167
  };
98828
100168
  export type AutomationWorkflowsArchiveErrors = {
98829
100169
  /**
@@ -98861,14 +100201,14 @@ export type AutomationWorkflowsRestoreData = {
98861
100201
  /**
98862
100202
  * 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.
98863
100203
  */
98864
- ns: string;
100204
+ namespace: string;
98865
100205
  /**
98866
100206
  * 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}.
98867
100207
  */
98868
100208
  name: string;
98869
100209
  };
98870
100210
  query?: never;
98871
- url: '/automation/v1/workflows/{ns}/{name}/restore';
100211
+ url: '/automation/v1/workflows/{namespace}/{name}/restore';
98872
100212
  };
98873
100213
  export type AutomationWorkflowsRestoreErrors = {
98874
100214
  /**
@@ -98906,7 +100246,7 @@ export type AutomationWorkflowsVersionsData = {
98906
100246
  /**
98907
100247
  * 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.
98908
100248
  */
98909
- ns: string;
100249
+ namespace: string;
98910
100250
  /**
98911
100251
  * 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}.
98912
100252
  */
@@ -98926,7 +100266,7 @@ export type AutomationWorkflowsVersionsData = {
98926
100266
  */
98927
100267
  expand?: 'source';
98928
100268
  };
98929
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100269
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
98930
100270
  };
98931
100271
  export type AutomationWorkflowsVersionsErrors = {
98932
100272
  /**
@@ -98966,13 +100306,24 @@ export type AutomationWorkflowsPublishData = {
98966
100306
  */
98967
100307
  version: string;
98968
100308
  /**
98969
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
100309
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
100310
+ *
100311
+ * @deprecated
98970
100312
  */
98971
- expected_draft_revision: string;
100313
+ expected_draft_revision?: string;
98972
100314
  /**
98973
100315
  * 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.
98974
100316
  */
98975
100317
  tag?: string;
100318
+ /**
100319
+ * 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.
100320
+ */
100321
+ draft?: {
100322
+ /**
100323
+ * 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.
100324
+ */
100325
+ revision: string;
100326
+ };
98976
100327
  } | {
98977
100328
  /**
98978
100329
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99001,14 +100352,14 @@ export type AutomationWorkflowsPublishData = {
99001
100352
  /**
99002
100353
  * 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.
99003
100354
  */
99004
- ns: string;
100355
+ namespace: string;
99005
100356
  /**
99006
100357
  * 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}.
99007
100358
  */
99008
100359
  name: string;
99009
100360
  };
99010
100361
  query?: never;
99011
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100362
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99012
100363
  };
99013
100364
  export type AutomationWorkflowsPublishErrors = {
99014
100365
  /**
@@ -99071,7 +100422,7 @@ export type AutomationWorkflowsVersionData = {
99071
100422
  /**
99072
100423
  * 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.
99073
100424
  */
99074
- ns: string;
100425
+ namespace: string;
99075
100426
  /**
99076
100427
  * 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}.
99077
100428
  */
@@ -99082,7 +100433,7 @@ export type AutomationWorkflowsVersionData = {
99082
100433
  version: string;
99083
100434
  };
99084
100435
  query?: never;
99085
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}';
100436
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}';
99086
100437
  };
99087
100438
  export type AutomationWorkflowsVersionErrors = {
99088
100439
  /**
@@ -99118,7 +100469,7 @@ export type AutomationWorkflowsDeprecateData = {
99118
100469
  /**
99119
100470
  * 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.
99120
100471
  */
99121
- ns: string;
100472
+ namespace: string;
99122
100473
  /**
99123
100474
  * 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}.
99124
100475
  */
@@ -99129,7 +100480,7 @@ export type AutomationWorkflowsDeprecateData = {
99129
100480
  version: string;
99130
100481
  };
99131
100482
  query?: never;
99132
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate';
100483
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate';
99133
100484
  };
99134
100485
  export type AutomationWorkflowsDeprecateErrors = {
99135
100486
  /**
@@ -99172,14 +100523,14 @@ export type AutomationWorkflowsDistTagsData = {
99172
100523
  /**
99173
100524
  * 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.
99174
100525
  */
99175
- ns: string;
100526
+ namespace: string;
99176
100527
  /**
99177
100528
  * 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}.
99178
100529
  */
99179
100530
  name: string;
99180
100531
  };
99181
100532
  query?: never;
99182
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags';
100533
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags';
99183
100534
  };
99184
100535
  export type AutomationWorkflowsDistTagsErrors = {
99185
100536
  /**
@@ -99211,7 +100562,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
99211
100562
  /**
99212
100563
  * 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.
99213
100564
  */
99214
- ns: string;
100565
+ namespace: string;
99215
100566
  /**
99216
100567
  * 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}.
99217
100568
  */
@@ -99222,7 +100573,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
99222
100573
  tag: string;
99223
100574
  };
99224
100575
  query?: never;
99225
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100576
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
99226
100577
  };
99227
100578
  export type AutomationWorkflowsDeleteDistTagErrors = {
99228
100579
  /**
@@ -99272,7 +100623,7 @@ export type AutomationWorkflowsSetDistTagData = {
99272
100623
  /**
99273
100624
  * 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.
99274
100625
  */
99275
- ns: string;
100626
+ namespace: string;
99276
100627
  /**
99277
100628
  * 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}.
99278
100629
  */
@@ -99283,7 +100634,7 @@ export type AutomationWorkflowsSetDistTagData = {
99283
100634
  tag: string;
99284
100635
  };
99285
100636
  query?: never;
99286
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100637
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
99287
100638
  };
99288
100639
  export type AutomationWorkflowsSetDistTagErrors = {
99289
100640
  /**
@@ -99510,7 +100861,7 @@ export type AutomationRunsListData = {
99510
100861
  */
99511
100862
  channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
99512
100863
  /**
99513
- * 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.
100864
+ * 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.
99514
100865
  */
99515
100866
  initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
99516
100867
  /**
@@ -99698,7 +101049,7 @@ export type AutomationRunsGetData = {
99698
101049
  /**
99699
101050
  * Run ID (run_).
99700
101051
  */
99701
- id: string;
101052
+ run_id: string;
99702
101053
  };
99703
101054
  query?: {
99704
101055
  /**
@@ -99710,7 +101061,7 @@ export type AutomationRunsGetData = {
99710
101061
  */
99711
101062
  wait?: number;
99712
101063
  };
99713
- url: '/automation/v1/runs/{id}';
101064
+ url: '/automation/v1/runs/{run_id}';
99714
101065
  };
99715
101066
  export type AutomationRunsGetErrors = {
99716
101067
  /**
@@ -99745,10 +101096,10 @@ export type AutomationRunsCancelData = {
99745
101096
  /**
99746
101097
  * Run ID (run_).
99747
101098
  */
99748
- id: string;
101099
+ run_id: string;
99749
101100
  };
99750
101101
  query?: never;
99751
- url: '/automation/v1/runs/{id}/cancel';
101102
+ url: '/automation/v1/runs/{run_id}/cancel';
99752
101103
  };
99753
101104
  export type AutomationRunsCancelErrors = {
99754
101105
  /**
@@ -99793,10 +101144,10 @@ export type AutomationRunsRerunData = {
99793
101144
  /**
99794
101145
  * Run ID (run_).
99795
101146
  */
99796
- id: string;
101147
+ run_id: string;
99797
101148
  };
99798
101149
  query?: never;
99799
- url: '/automation/v1/runs/{id}/rerun';
101150
+ url: '/automation/v1/runs/{run_id}/rerun';
99800
101151
  };
99801
101152
  export type AutomationRunsRerunErrors = {
99802
101153
  /**
@@ -99848,10 +101199,10 @@ export type AutomationRunsSuspendData = {
99848
101199
  /**
99849
101200
  * Run ID (run_).
99850
101201
  */
99851
- id: string;
101202
+ run_id: string;
99852
101203
  };
99853
101204
  query?: never;
99854
- url: '/automation/v1/runs/{id}/suspend';
101205
+ url: '/automation/v1/runs/{run_id}/suspend';
99855
101206
  };
99856
101207
  export type AutomationRunsSuspendErrors = {
99857
101208
  /**
@@ -99886,10 +101237,10 @@ export type AutomationRunsResumeData = {
99886
101237
  /**
99887
101238
  * Run ID (run_).
99888
101239
  */
99889
- id: string;
101240
+ run_id: string;
99890
101241
  };
99891
101242
  query?: never;
99892
- url: '/automation/v1/runs/{id}/resume';
101243
+ url: '/automation/v1/runs/{run_id}/resume';
99893
101244
  };
99894
101245
  export type AutomationRunsResumeErrors = {
99895
101246
  /**
@@ -99924,7 +101275,7 @@ export type AutomationRunsWaitsData = {
99924
101275
  /**
99925
101276
  * Run ID (run_).
99926
101277
  */
99927
- id: string;
101278
+ run_id: string;
99928
101279
  };
99929
101280
  query?: {
99930
101281
  /**
@@ -99936,7 +101287,7 @@ export type AutomationRunsWaitsData = {
99936
101287
  */
99937
101288
  cursor?: string;
99938
101289
  };
99939
- url: '/automation/v1/runs/{id}/waits';
101290
+ url: '/automation/v1/runs/{run_id}/waits';
99940
101291
  };
99941
101292
  export type AutomationRunsWaitsErrors = {
99942
101293
  /**
@@ -99975,7 +101326,7 @@ export type AutomationRunsCallsData = {
99975
101326
  /**
99976
101327
  * Run ID (run_).
99977
101328
  */
99978
- id: string;
101329
+ run_id: string;
99979
101330
  };
99980
101331
  query?: {
99981
101332
  /**
@@ -99987,7 +101338,7 @@ export type AutomationRunsCallsData = {
99987
101338
  */
99988
101339
  cursor?: string;
99989
101340
  };
99990
- url: '/automation/v1/runs/{id}/calls';
101341
+ url: '/automation/v1/runs/{run_id}/calls';
99991
101342
  };
99992
101343
  export type AutomationRunsCallsErrors = {
99993
101344
  /**
@@ -100026,7 +101377,7 @@ export type AutomationRunsArtifactsData = {
100026
101377
  /**
100027
101378
  * Run ID (run_).
100028
101379
  */
100029
- id: string;
101380
+ run_id: string;
100030
101381
  };
100031
101382
  query?: {
100032
101383
  /**
@@ -100038,7 +101389,7 @@ export type AutomationRunsArtifactsData = {
100038
101389
  */
100039
101390
  cursor?: string;
100040
101391
  };
100041
- url: '/automation/v1/runs/{id}/artifacts';
101392
+ url: '/automation/v1/runs/{run_id}/artifacts';
100042
101393
  };
100043
101394
  export type AutomationRunsArtifactsErrors = {
100044
101395
  /**
@@ -100086,14 +101437,14 @@ export type AutomationRunsCompleteWaitData = {
100086
101437
  /**
100087
101438
  * Run ID (run_).
100088
101439
  */
100089
- id: string;
101440
+ run_id: string;
100090
101441
  /**
100091
101442
  * Wait ID (wait_) belonging to this run.
100092
101443
  */
100093
101444
  wait_id: string;
100094
101445
  };
100095
101446
  query?: never;
100096
- url: '/automation/v1/runs/{id}/waits/{wait_id}/complete';
101447
+ url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete';
100097
101448
  };
100098
101449
  export type AutomationRunsCompleteWaitErrors = {
100099
101450
  /**
@@ -100144,6 +101495,8 @@ export type AutomationRunsCompleteWaitResponses = {
100144
101495
  kind: 'event' | 'timer' | 'child';
100145
101496
  /**
100146
101497
  * 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.
101498
+ *
101499
+ * @deprecated
100147
101500
  */
100148
101501
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
100149
101502
  /**
@@ -100187,6 +101540,10 @@ export type AutomationRunsCompleteWaitResponses = {
100187
101540
  * true when this was a repeated submission with the same id and payload, so the original result is returned instead of processing it again.
100188
101541
  */
100189
101542
  replayed: boolean;
101543
+ /**
101544
+ * 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.
101545
+ */
101546
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
100190
101547
  };
100191
101548
  };
100192
101549
  export type AutomationRunsCompleteWaitResponse = AutomationRunsCompleteWaitResponses[keyof AutomationRunsCompleteWaitResponses];
@@ -100196,7 +101553,7 @@ export type AutomationRunsTasksData = {
100196
101553
  /**
100197
101554
  * Run ID (run_).
100198
101555
  */
100199
- id: string;
101556
+ run_id: string;
100200
101557
  };
100201
101558
  query?: {
100202
101559
  /**
@@ -100216,7 +101573,7 @@ export type AutomationRunsTasksData = {
100216
101573
  */
100217
101574
  group_by?: 'reference';
100218
101575
  };
100219
- url: '/automation/v1/runs/{id}/tasks';
101576
+ url: '/automation/v1/runs/{run_id}/tasks';
100220
101577
  };
100221
101578
  export type AutomationRunsTasksErrors = {
100222
101579
  /**
@@ -100265,7 +101622,7 @@ export type AutomationRunsEventsData = {
100265
101622
  /**
100266
101623
  * Run ID (run_).
100267
101624
  */
100268
- id: string;
101625
+ run_id: string;
100269
101626
  };
100270
101627
  query?: {
100271
101628
  /**
@@ -100277,7 +101634,7 @@ export type AutomationRunsEventsData = {
100277
101634
  */
100278
101635
  cursor?: string;
100279
101636
  };
100280
- url: '/automation/v1/runs/{id}/events';
101637
+ url: '/automation/v1/runs/{run_id}/events';
100281
101638
  };
100282
101639
  export type AutomationRunsEventsErrors = {
100283
101640
  /**
@@ -100326,7 +101683,7 @@ export type AutomationRunsLogsData = {
100326
101683
  /**
100327
101684
  * Run ID (run_).
100328
101685
  */
100329
- id: string;
101686
+ run_id: string;
100330
101687
  };
100331
101688
  query?: {
100332
101689
  /**
@@ -100338,7 +101695,7 @@ export type AutomationRunsLogsData = {
100338
101695
  */
100339
101696
  cursor?: string;
100340
101697
  };
100341
- url: '/automation/v1/runs/{id}/logs';
101698
+ url: '/automation/v1/runs/{run_id}/logs';
100342
101699
  };
100343
101700
  export type AutomationRunsLogsErrors = {
100344
101701
  /**
@@ -100377,10 +101734,10 @@ export type AutomationRunsSourceData = {
100377
101734
  /**
100378
101735
  * Run ID (run_).
100379
101736
  */
100380
- id: string;
101737
+ run_id: string;
100381
101738
  };
100382
101739
  query?: never;
100383
- url: '/automation/v1/runs/{id}/source';
101740
+ url: '/automation/v1/runs/{run_id}/source';
100384
101741
  };
100385
101742
  export type AutomationRunsSourceErrors = {
100386
101743
  /**
@@ -100435,7 +101792,9 @@ export type AutomationTriggersListData = {
100435
101792
  */
100436
101793
  kind?: Array<'schedule' | 'webhook'>;
100437
101794
  /**
100438
- * Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101795
+ * Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101796
+ *
101797
+ * @deprecated
100439
101798
  */
100440
101799
  state?: Array<AutomationTriggerState>;
100441
101800
  /**
@@ -100452,6 +101811,10 @@ export type AutomationTriggersListData = {
100452
101811
  * Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone.
100453
101812
  */
100454
101813
  'created_at[lte]'?: string;
101814
+ /**
101815
+ * 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.
101816
+ */
101817
+ status?: Array<AutomationTriggerState>;
100455
101818
  };
100456
101819
  url: '/automation/v1/triggers';
100457
101820
  };
@@ -100617,10 +101980,10 @@ export type AutomationTriggersDeleteData = {
100617
101980
  /**
100618
101981
  * Trigger ID (trg_).
100619
101982
  */
100620
- id: string;
101983
+ trigger_id: string;
100621
101984
  };
100622
101985
  query?: never;
100623
- url: '/automation/v1/triggers/{id}';
101986
+ url: '/automation/v1/triggers/{trigger_id}';
100624
101987
  };
100625
101988
  export type AutomationTriggersDeleteErrors = {
100626
101989
  /**
@@ -100654,10 +102017,10 @@ export type AutomationTriggersGetData = {
100654
102017
  /**
100655
102018
  * Trigger ID (trg_).
100656
102019
  */
100657
- id: string;
102020
+ trigger_id: string;
100658
102021
  };
100659
102022
  query?: never;
100660
- url: '/automation/v1/triggers/{id}';
102023
+ url: '/automation/v1/triggers/{trigger_id}';
100661
102024
  };
100662
102025
  export type AutomationTriggersGetErrors = {
100663
102026
  /**
@@ -100765,10 +102128,10 @@ export type AutomationTriggersPatchData = {
100765
102128
  /**
100766
102129
  * Trigger ID (trg_).
100767
102130
  */
100768
- id: string;
102131
+ trigger_id: string;
100769
102132
  };
100770
102133
  query?: never;
100771
- url: '/automation/v1/triggers/{id}';
102134
+ url: '/automation/v1/triggers/{trigger_id}';
100772
102135
  };
100773
102136
  export type AutomationTriggersPatchErrors = {
100774
102137
  /**
@@ -100821,10 +102184,10 @@ export type AutomationTriggersPauseData = {
100821
102184
  /**
100822
102185
  * Trigger ID (trg_).
100823
102186
  */
100824
- id: string;
102187
+ trigger_id: string;
100825
102188
  };
100826
102189
  query?: never;
100827
- url: '/automation/v1/triggers/{id}/pause';
102190
+ url: '/automation/v1/triggers/{trigger_id}/pause';
100828
102191
  };
100829
102192
  export type AutomationTriggersPauseErrors = {
100830
102193
  /**
@@ -100858,10 +102221,10 @@ export type AutomationTriggersResumeData = {
100858
102221
  /**
100859
102222
  * Trigger ID (trg_).
100860
102223
  */
100861
- id: string;
102224
+ trigger_id: string;
100862
102225
  };
100863
102226
  query?: never;
100864
- url: '/automation/v1/triggers/{id}/resume';
102227
+ url: '/automation/v1/triggers/{trigger_id}/resume';
100865
102228
  };
100866
102229
  export type AutomationTriggersResumeErrors = {
100867
102230
  /**
@@ -100905,10 +102268,10 @@ export type AutomationTriggersFireData = {
100905
102268
  /**
100906
102269
  * Trigger ID (trg_).
100907
102270
  */
100908
- id: string;
102271
+ trigger_id: string;
100909
102272
  };
100910
102273
  query?: never;
100911
- url: '/automation/v1/triggers/{id}/fire';
102274
+ url: '/automation/v1/triggers/{trigger_id}/fire';
100912
102275
  };
100913
102276
  export type AutomationTriggersFireErrors = {
100914
102277
  /**
@@ -100951,10 +102314,10 @@ export type AutomationTriggersRotateWebhookData = {
100951
102314
  /**
100952
102315
  * Trigger ID (trg_).
100953
102316
  */
100954
- id: string;
102317
+ trigger_id: string;
100955
102318
  };
100956
102319
  query?: never;
100957
- url: '/automation/v1/triggers/{id}/rotate-webhook';
102320
+ url: '/automation/v1/triggers/{trigger_id}/rotate-webhook';
100958
102321
  };
100959
102322
  export type AutomationTriggersRotateWebhookErrors = {
100960
102323
  /**
@@ -100984,7 +102347,7 @@ export type AutomationTriggersFiringsData = {
100984
102347
  /**
100985
102348
  * Trigger ID (trg_).
100986
102349
  */
100987
- id: string;
102350
+ trigger_id: string;
100988
102351
  };
100989
102352
  query?: {
100990
102353
  /**
@@ -101004,7 +102367,7 @@ export type AutomationTriggersFiringsData = {
101004
102367
  */
101005
102368
  run_id?: string;
101006
102369
  };
101007
- url: '/automation/v1/triggers/{id}/firings';
102370
+ url: '/automation/v1/triggers/{trigger_id}/firings';
101008
102371
  };
101009
102372
  export type AutomationTriggersFiringsErrors = {
101010
102373
  /**
@@ -101210,10 +102573,10 @@ export type AutomationHumanTasksGetData = {
101210
102573
  /**
101211
102574
  * Human task ID (htask_), from the list or the run's waits.
101212
102575
  */
101213
- id: string;
102576
+ task_id: string;
101214
102577
  };
101215
102578
  query?: never;
101216
- url: '/automation/v1/human-tasks/{id}';
102579
+ url: '/automation/v1/human-tasks/{task_id}';
101217
102580
  };
101218
102581
  export type AutomationHumanTasksGetErrors = {
101219
102582
  /**
@@ -101249,10 +102612,10 @@ export type AutomationHumanTasksRespondData = {
101249
102612
  /**
101250
102613
  * Human task ID (htask_).
101251
102614
  */
101252
- id: string;
102615
+ task_id: string;
101253
102616
  };
101254
102617
  query?: never;
101255
- url: '/automation/v1/human-tasks/{id}/respond';
102618
+ url: '/automation/v1/human-tasks/{task_id}/respond';
101256
102619
  };
101257
102620
  export type AutomationHumanTasksRespondErrors = {
101258
102621
  /**
@@ -101307,10 +102670,10 @@ export type AutomationHumanTasksCancelData = {
101307
102670
  /**
101308
102671
  * Human task ID (htask_).
101309
102672
  */
101310
- id: string;
102673
+ task_id: string;
101311
102674
  };
101312
102675
  query?: never;
101313
- url: '/automation/v1/human-tasks/{id}/cancel';
102676
+ url: '/automation/v1/human-tasks/{task_id}/cancel';
101314
102677
  };
101315
102678
  export type AutomationHumanTasksCancelErrors = {
101316
102679
  /**
@@ -101353,10 +102716,10 @@ export type AutomationHumanTasksDelegateData = {
101353
102716
  /**
101354
102717
  * Human task ID (htask_).
101355
102718
  */
101356
- id: string;
102719
+ task_id: string;
101357
102720
  };
101358
102721
  query?: never;
101359
- url: '/automation/v1/human-tasks/{id}/delegate';
102722
+ url: '/automation/v1/human-tasks/{task_id}/delegate';
101360
102723
  };
101361
102724
  export type AutomationHumanTasksDelegateErrors = {
101362
102725
  /**
@@ -101397,14 +102760,14 @@ export type AutomationScriptsVaultsListData = {
101397
102760
  /**
101398
102761
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101399
102762
  */
101400
- ns: string;
102763
+ namespace: string;
101401
102764
  /**
101402
102765
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101403
102766
  */
101404
102767
  name: string;
101405
102768
  };
101406
102769
  query?: never;
101407
- url: '/automation/v1/scripts/{ns}/{name}/vaults';
102770
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults';
101408
102771
  };
101409
102772
  export type AutomationScriptsVaultsListErrors = {
101410
102773
  /**
@@ -101470,7 +102833,7 @@ export type AutomationScriptsVaultsDeleteData = {
101470
102833
  /**
101471
102834
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101472
102835
  */
101473
- ns: string;
102836
+ namespace: string;
101474
102837
  /**
101475
102838
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101476
102839
  */
@@ -101481,7 +102844,7 @@ export type AutomationScriptsVaultsDeleteData = {
101481
102844
  alias: string;
101482
102845
  };
101483
102846
  query?: never;
101484
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102847
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101485
102848
  };
101486
102849
  export type AutomationScriptsVaultsDeleteErrors = {
101487
102850
  /**
@@ -101516,7 +102879,7 @@ export type AutomationScriptsVaultsSetData = {
101516
102879
  /**
101517
102880
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101518
102881
  */
101519
- ns: string;
102882
+ namespace: string;
101520
102883
  /**
101521
102884
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101522
102885
  */
@@ -101527,7 +102890,7 @@ export type AutomationScriptsVaultsSetData = {
101527
102890
  alias: string;
101528
102891
  };
101529
102892
  query?: never;
101530
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
102893
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101531
102894
  };
101532
102895
  export type AutomationScriptsVaultsSetErrors = {
101533
102896
  /**
@@ -101597,14 +102960,14 @@ export type AutomationWorkflowsVaultsListData = {
101597
102960
  /**
101598
102961
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101599
102962
  */
101600
- ns: string;
102963
+ namespace: string;
101601
102964
  /**
101602
102965
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101603
102966
  */
101604
102967
  name: string;
101605
102968
  };
101606
102969
  query?: never;
101607
- url: '/automation/v1/workflows/{ns}/{name}/vaults';
102970
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults';
101608
102971
  };
101609
102972
  export type AutomationWorkflowsVaultsListErrors = {
101610
102973
  /**
@@ -101670,7 +103033,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
101670
103033
  /**
101671
103034
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101672
103035
  */
101673
- ns: string;
103036
+ namespace: string;
101674
103037
  /**
101675
103038
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101676
103039
  */
@@ -101681,7 +103044,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
101681
103044
  alias: string;
101682
103045
  };
101683
103046
  query?: never;
101684
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103047
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
101685
103048
  };
101686
103049
  export type AutomationWorkflowsVaultsDeleteErrors = {
101687
103050
  /**
@@ -101716,7 +103079,7 @@ export type AutomationWorkflowsVaultsSetData = {
101716
103079
  /**
101717
103080
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
101718
103081
  */
101719
- ns: string;
103082
+ namespace: string;
101720
103083
  /**
101721
103084
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
101722
103085
  */
@@ -101727,7 +103090,7 @@ export type AutomationWorkflowsVaultsSetData = {
101727
103090
  alias: string;
101728
103091
  };
101729
103092
  query?: never;
101730
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103093
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
101731
103094
  };
101732
103095
  export type AutomationWorkflowsVaultsSetErrors = {
101733
103096
  /**
@@ -114058,7 +115421,7 @@ export type DevopsUnitsPushErrors = {
114058
115421
  */
114059
115422
  404: DevopsDevOpsError;
114060
115423
  /**
114061
- * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
115424
+ * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed. The message says where the remote is ("remote is at <sha7> (<full sha>) on <ref>") and details.remoteHead carries the full sha: send it as expectedHead after reconciling your checkout. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
114062
115425
  */
114063
115426
  409: DevopsDevOpsError;
114064
115427
  /**
@@ -114206,86 +115569,240 @@ export type DevopsUnitsTransitionsListResponses = {
114206
115569
  200: DevopsUnitTransitionPage;
114207
115570
  };
114208
115571
  export type DevopsUnitsTransitionsListResponse = DevopsUnitsTransitionsListResponses[keyof DevopsUnitsTransitionsListResponses];
114209
- export type KnowledgeListVectorStoresData = {
115572
+ export type EventsListTypesData = {
115573
+ body?: never;
115574
+ path?: never;
115575
+ query?: never;
115576
+ url: '/events/v1/types';
115577
+ };
115578
+ export type EventsListTypesErrors = {
115579
+ /**
115580
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115581
+ */
115582
+ 401: EventsEventsProblem;
115583
+ /**
115584
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115585
+ */
115586
+ 503: EventsEventsProblem;
115587
+ };
115588
+ export type EventsListTypesError = EventsListTypesErrors[keyof EventsListTypesErrors];
115589
+ export type EventsListTypesResponses = {
115590
+ /**
115591
+ * The tenant event types, one entry per type and schema version.
115592
+ */
115593
+ 200: EventsEventTypePage;
115594
+ };
115595
+ export type EventsListTypesResponse = EventsListTypesResponses[keyof EventsListTypesResponses];
115596
+ export type EventsListSubscriptionsData = {
114210
115597
  body?: never;
114211
115598
  path?: never;
114212
115599
  query?: {
114213
115600
  /**
114214
- * active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.
114215
- */
114216
- status?: 'active' | 'deleting';
114217
- /**
114218
- * Resource ID.
114219
- */
114220
- after?: string;
114221
- /**
114222
- * Resource ID.
114223
- */
114224
- before?: string;
114225
- /**
114226
- * Page size.
115601
+ * Maximum subscriptions to return, from 1 to 100; defaults to 50.
114227
115602
  */
114228
115603
  limit?: number;
114229
- /**
114230
- * Order by creation time; defaults to desc for stores/files and asc by index for segments.
114231
- */
114232
- order?: 'asc' | 'desc';
114233
115604
  };
114234
- url: '/knowledge/v1/vector_stores';
115605
+ url: '/events/v1/subscriptions';
114235
115606
  };
114236
- export type KnowledgeListVectorStoresErrors = {
115607
+ export type EventsListSubscriptionsErrors = {
114237
115608
  /**
114238
- * INVALID_PARAMS, LIMIT_EXCEEDED
115609
+ * UNSUPPORTED_FILTER_DIALECT means a filter used a form other than exact and prefix; INVALID_PARAMS means a field, type, filter name, count, date or query value is not accepted, and the message names it. Correct the request; retrying it unchanged fails again.
114239
115610
  */
114240
- 400: KnowledgeKnowledgeError;
115611
+ 400: EventsEventsProblem;
114241
115612
  /**
114242
- * UNAUTHENTICATED; gateway errors can omit details or return code=null.
115613
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114243
115614
  */
114244
- 401: KnowledgeKnowledgeError;
115615
+ 401: EventsEventsProblem;
114245
115616
  /**
114246
- * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
115617
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
114247
115618
  */
114248
- 404: KnowledgeKnowledgeError;
115619
+ 503: EventsEventsProblem;
115620
+ };
115621
+ export type EventsListSubscriptionsError = EventsListSubscriptionsErrors[keyof EventsListSubscriptionsErrors];
115622
+ export type EventsListSubscriptionsResponses = {
114249
115623
  /**
114250
- * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
115624
+ * Your live subscriptions.
114251
115625
  */
114252
- 409: KnowledgeKnowledgeError;
115626
+ 200: EventsEventSubscriptionPage;
115627
+ };
115628
+ export type EventsListSubscriptionsResponse = EventsListSubscriptionsResponses[keyof EventsListSubscriptionsResponses];
115629
+ export type EventsCreateSubscriptionData = {
114253
115630
  /**
114254
- * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
115631
+ * What to subscribe to and how long the subscription lasts.
114255
115632
  */
114256
- 413: KnowledgeKnowledgeError;
115633
+ body: EventsCreateEventSubscriptionInput;
115634
+ path?: never;
115635
+ query?: never;
115636
+ url: '/events/v1/subscriptions';
115637
+ };
115638
+ export type EventsCreateSubscriptionErrors = {
114257
115639
  /**
114258
- * RATE_LIMITED
115640
+ * UNSUPPORTED_FILTER_DIALECT means a filter used a form other than exact and prefix; INVALID_PARAMS means a field, type, filter name, count, date or query value is not accepted, and the message names it. Correct the request; retrying it unchanged fails again.
114259
115641
  */
114260
- 429: KnowledgeKnowledgeError;
115642
+ 400: EventsEventsProblem;
114261
115643
  /**
114262
- * Internal error; code may be absent or null.
115644
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114263
115645
  */
114264
- 500: KnowledgeTransportError;
115646
+ 401: EventsEventsProblem;
114265
115647
  /**
114266
- * NOT_IMPLEMENTED
115648
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
114267
115649
  */
114268
- 501: KnowledgeKnowledgeError;
115650
+ 503: EventsEventsProblem;
115651
+ };
115652
+ export type EventsCreateSubscriptionError = EventsCreateSubscriptionErrors[keyof EventsCreateSubscriptionErrors];
115653
+ export type EventsCreateSubscriptionResponses = {
114269
115654
  /**
114270
- * PROVIDER_UNAVAILABLE
115655
+ * The new subscription.
114271
115656
  */
114272
- 503: KnowledgeKnowledgeError;
115657
+ 201: EventsEventSubscription;
114273
115658
  };
114274
- export type KnowledgeListVectorStoresError = KnowledgeListVectorStoresErrors[keyof KnowledgeListVectorStoresErrors];
114275
- export type KnowledgeListVectorStoresResponses = {
115659
+ export type EventsCreateSubscriptionResponse = EventsCreateSubscriptionResponses[keyof EventsCreateSubscriptionResponses];
115660
+ export type EventsDeleteSubscriptionData = {
115661
+ body?: never;
115662
+ path: {
115663
+ /**
115664
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115665
+ */
115666
+ subscription_id: string;
115667
+ };
115668
+ query?: never;
115669
+ url: '/events/v1/subscriptions/{subscription_id}';
115670
+ };
115671
+ export type EventsDeleteSubscriptionErrors = {
114276
115672
  /**
114277
- * Success
115673
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114278
115674
  */
114279
- 200: KnowledgeNativeVectorStoreList;
115675
+ 401: EventsEventsProblem;
115676
+ /**
115677
+ * SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else's. List subscriptions to find an id you can reach.
115678
+ */
115679
+ 404: EventsEventsProblem;
115680
+ /**
115681
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115682
+ */
115683
+ 503: EventsEventsProblem;
114280
115684
  };
114281
- export type KnowledgeListVectorStoresResponse = KnowledgeListVectorStoresResponses[keyof KnowledgeListVectorStoresResponses];
114282
- export type KnowledgeCreateVectorStoreData = {
114283
- body: KnowledgeNativeCreateVectorStore;
114284
- path?: never;
115685
+ export type EventsDeleteSubscriptionError = EventsDeleteSubscriptionErrors[keyof EventsDeleteSubscriptionErrors];
115686
+ export type EventsDeleteSubscriptionResponses = {
115687
+ /**
115688
+ * The subscription is deleted; there is no body.
115689
+ */
115690
+ 204: void;
115691
+ };
115692
+ export type EventsDeleteSubscriptionResponse = EventsDeleteSubscriptionResponses[keyof EventsDeleteSubscriptionResponses];
115693
+ export type EventsRetrieveSubscriptionData = {
115694
+ body?: never;
115695
+ path: {
115696
+ /**
115697
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115698
+ */
115699
+ subscription_id: string;
115700
+ };
114285
115701
  query?: never;
115702
+ url: '/events/v1/subscriptions/{subscription_id}';
115703
+ };
115704
+ export type EventsRetrieveSubscriptionErrors = {
115705
+ /**
115706
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115707
+ */
115708
+ 401: EventsEventsProblem;
115709
+ /**
115710
+ * SUBSCRIPTION_NOT_FOUND means no live subscription with this id belongs to you; it was deleted, it expired, a once subscription fired, or it is someone else's. List subscriptions to find an id you can reach.
115711
+ */
115712
+ 404: EventsEventsProblem;
115713
+ /**
115714
+ * PROVIDER_UNAVAILABLE with retryable true means the event catalog or the inbox service cannot answer right now; wait a few seconds and repeat the same call.
115715
+ */
115716
+ 503: EventsEventsProblem;
115717
+ };
115718
+ export type EventsRetrieveSubscriptionError = EventsRetrieveSubscriptionErrors[keyof EventsRetrieveSubscriptionErrors];
115719
+ export type EventsRetrieveSubscriptionResponses = {
115720
+ /**
115721
+ * The subscription.
115722
+ */
115723
+ 200: EventsEventSubscription;
115724
+ };
115725
+ export type EventsRetrieveSubscriptionResponse = EventsRetrieveSubscriptionResponses[keyof EventsRetrieveSubscriptionResponses];
115726
+ export type KnowledgeListVectorStoresData = {
115727
+ body?: never;
115728
+ path?: never;
115729
+ query?: {
115730
+ /**
115731
+ * active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.
115732
+ */
115733
+ status?: 'active' | 'deleting';
115734
+ /**
115735
+ * Resource ID.
115736
+ */
115737
+ after?: string;
115738
+ /**
115739
+ * Resource ID.
115740
+ */
115741
+ before?: string;
115742
+ /**
115743
+ * Page size.
115744
+ */
115745
+ limit?: number;
115746
+ /**
115747
+ * Order by creation time; defaults to desc for stores/files and asc by index for segments.
115748
+ */
115749
+ order?: 'asc' | 'desc';
115750
+ };
114286
115751
  url: '/knowledge/v1/vector_stores';
114287
115752
  };
114288
- export type KnowledgeCreateVectorStoreErrors = {
115753
+ export type KnowledgeListVectorStoresErrors = {
115754
+ /**
115755
+ * INVALID_PARAMS, LIMIT_EXCEEDED
115756
+ */
115757
+ 400: KnowledgeKnowledgeError;
115758
+ /**
115759
+ * UNAUTHENTICATED; gateway errors can omit details or return code=null.
115760
+ */
115761
+ 401: KnowledgeKnowledgeError;
115762
+ /**
115763
+ * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
115764
+ */
115765
+ 404: KnowledgeKnowledgeError;
115766
+ /**
115767
+ * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
115768
+ */
115769
+ 409: KnowledgeKnowledgeError;
115770
+ /**
115771
+ * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
115772
+ */
115773
+ 413: KnowledgeKnowledgeError;
115774
+ /**
115775
+ * RATE_LIMITED
115776
+ */
115777
+ 429: KnowledgeKnowledgeError;
115778
+ /**
115779
+ * Internal error; code may be absent or null.
115780
+ */
115781
+ 500: KnowledgeTransportError;
115782
+ /**
115783
+ * NOT_IMPLEMENTED
115784
+ */
115785
+ 501: KnowledgeKnowledgeError;
115786
+ /**
115787
+ * PROVIDER_UNAVAILABLE
115788
+ */
115789
+ 503: KnowledgeKnowledgeError;
115790
+ };
115791
+ export type KnowledgeListVectorStoresError = KnowledgeListVectorStoresErrors[keyof KnowledgeListVectorStoresErrors];
115792
+ export type KnowledgeListVectorStoresResponses = {
115793
+ /**
115794
+ * Success
115795
+ */
115796
+ 200: KnowledgeNativeVectorStoreList;
115797
+ };
115798
+ export type KnowledgeListVectorStoresResponse = KnowledgeListVectorStoresResponses[keyof KnowledgeListVectorStoresResponses];
115799
+ export type KnowledgeCreateVectorStoreData = {
115800
+ body: KnowledgeNativeCreateVectorStore;
115801
+ path?: never;
115802
+ query?: never;
115803
+ url: '/knowledge/v1/vector_stores';
115804
+ };
115805
+ export type KnowledgeCreateVectorStoreErrors = {
114289
115806
  /**
114290
115807
  * INVALID_PARAMS, LIMIT_EXCEEDED
114291
115808
  */
@@ -119161,45 +120678,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
119161
120678
  */
119162
120679
  503: MediaMediaError;
119163
120680
  };
119164
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
119165
- export type MediaListUnderstandingsByLibraryResponses = {
120681
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
120682
+ export type MediaListUnderstandingsByLibraryResponses = {
120683
+ /**
120684
+ * Successful response.
120685
+ */
120686
+ 200: MediaUnderstandingPage;
120687
+ };
120688
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
120689
+ export type MediaListJobsData = {
120690
+ body?: never;
120691
+ path: {
120692
+ /**
120693
+ * Library ID returned by creation.
120694
+ */
120695
+ library_id: string;
120696
+ };
120697
+ query?: {
120698
+ /**
120699
+ * Filter jobs by their current status.
120700
+ */
120701
+ status?: MediaJobStatus;
120702
+ /**
120703
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
120704
+ */
120705
+ pipeline_run_id?: string;
120706
+ /**
120707
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
120708
+ */
120709
+ limit?: number;
120710
+ /**
120711
+ * Job id from the previous page’s next_cursor; omit for the first page.
120712
+ */
120713
+ cursor?: MediaJobId;
120714
+ };
120715
+ url: '/media/v1/libraries/{library_id}/jobs';
120716
+ };
120717
+ export type MediaListJobsErrors = {
120718
+ /**
120719
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120720
+ */
120721
+ 400: MediaMediaError;
120722
+ /**
120723
+ * Request failed; see the error code reference.
120724
+ */
120725
+ 402: MediaMediaError;
120726
+ /**
120727
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120728
+ */
120729
+ 403: MediaMediaError;
120730
+ /**
120731
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120732
+ */
120733
+ 404: MediaMediaError;
120734
+ /**
120735
+ * Request failed; see the error code reference.
120736
+ */
120737
+ 409: MediaMediaError;
120738
+ /**
120739
+ * The file exceeds an input limit; provide a smaller source file.
120740
+ */
120741
+ 413: MediaMediaError;
120742
+ /**
120743
+ * This media format is unsupported; provide a supported format.
120744
+ */
120745
+ 415: MediaMediaError;
120746
+ /**
120747
+ * Request failed; see the error code reference.
120748
+ */
120749
+ 422: MediaMediaError;
120750
+ /**
120751
+ * A rate limit was reached; wait before retrying.
120752
+ */
120753
+ 429: MediaMediaError;
120754
+ /**
120755
+ * The requested operation is unsupported; choose a supported method.
120756
+ */
120757
+ 501: MediaMediaError;
120758
+ /**
120759
+ * Request failed; see the error code reference.
120760
+ */
120761
+ 502: MediaMediaError;
120762
+ /**
120763
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120764
+ */
120765
+ 503: MediaMediaError;
120766
+ };
120767
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
120768
+ export type MediaListJobsResponses = {
120769
+ /**
120770
+ * Successful response.
120771
+ */
120772
+ 200: MediaJobPage;
120773
+ };
120774
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
120775
+ export type MediaCancelJobData = {
120776
+ body?: never;
120777
+ path: {
120778
+ /**
120779
+ * Library ID returned by creation.
120780
+ */
120781
+ library_id: string;
120782
+ /**
120783
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
120784
+ */
120785
+ job_id: string;
120786
+ };
120787
+ query?: never;
120788
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
120789
+ };
120790
+ export type MediaCancelJobErrors = {
120791
+ /**
120792
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120793
+ */
120794
+ 400: MediaMediaError;
120795
+ /**
120796
+ * Request failed; see the error code reference.
120797
+ */
120798
+ 402: MediaMediaError;
120799
+ /**
120800
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120801
+ */
120802
+ 403: MediaMediaError;
120803
+ /**
120804
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120805
+ */
120806
+ 404: MediaMediaError;
120807
+ /**
120808
+ * Request failed; see the error code reference.
120809
+ */
120810
+ 409: MediaMediaError;
120811
+ /**
120812
+ * The file exceeds an input limit; provide a smaller source file.
120813
+ */
120814
+ 413: MediaMediaError;
120815
+ /**
120816
+ * This media format is unsupported; provide a supported format.
120817
+ */
120818
+ 415: MediaMediaError;
120819
+ /**
120820
+ * Request failed; see the error code reference.
120821
+ */
120822
+ 422: MediaMediaError;
120823
+ /**
120824
+ * A rate limit was reached; wait before retrying.
120825
+ */
120826
+ 429: MediaMediaError;
120827
+ /**
120828
+ * The requested operation is unsupported; choose a supported method.
120829
+ */
120830
+ 501: MediaMediaError;
120831
+ /**
120832
+ * Request failed; see the error code reference.
120833
+ */
120834
+ 502: MediaMediaError;
120835
+ /**
120836
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120837
+ */
120838
+ 503: MediaMediaError;
120839
+ };
120840
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
120841
+ export type MediaCancelJobResponses = {
120842
+ /**
120843
+ * Successful response.
120844
+ */
120845
+ 200: MediaJob;
120846
+ };
120847
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
120848
+ export type MediaGetGenerationCapabilitiesData = {
120849
+ body?: never;
120850
+ path?: never;
120851
+ query?: never;
120852
+ url: '/media/v1/generation/capabilities';
120853
+ };
120854
+ export type MediaGetGenerationCapabilitiesErrors = {
120855
+ /**
120856
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
120857
+ */
120858
+ 400: MediaMediaError;
120859
+ /**
120860
+ * Request failed; see the error code reference.
120861
+ */
120862
+ 402: MediaMediaError;
120863
+ /**
120864
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120865
+ */
120866
+ 403: MediaMediaError;
120867
+ /**
120868
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
120869
+ */
120870
+ 404: MediaMediaError;
120871
+ /**
120872
+ * Request failed; see the error code reference.
120873
+ */
120874
+ 409: MediaMediaError;
120875
+ /**
120876
+ * The file exceeds an input limit; provide a smaller source file.
120877
+ */
120878
+ 413: MediaMediaError;
120879
+ /**
120880
+ * This media format is unsupported; provide a supported format.
120881
+ */
120882
+ 415: MediaMediaError;
120883
+ /**
120884
+ * Request failed; see the error code reference.
120885
+ */
120886
+ 422: MediaMediaError;
120887
+ /**
120888
+ * A rate limit was reached; wait before retrying.
120889
+ */
120890
+ 429: MediaMediaError;
120891
+ /**
120892
+ * The requested operation is unsupported; choose a supported method.
120893
+ */
120894
+ 501: MediaMediaError;
120895
+ /**
120896
+ * Request failed; see the error code reference.
120897
+ */
120898
+ 502: MediaMediaError;
120899
+ /**
120900
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120901
+ */
120902
+ 503: MediaMediaError;
120903
+ };
120904
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
120905
+ export type MediaGetGenerationCapabilitiesResponses = {
120906
+ /**
120907
+ * Successful response.
120908
+ */
120909
+ 200: MediaGenerationCapabilities;
120910
+ };
120911
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
120912
+ export type MediaAlignAssetData = {
120913
+ /**
120914
+ * 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.
120915
+ */
120916
+ body: {
120917
+ /**
120918
+ * 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.
120919
+ */
120920
+ reference_asset_id: string;
120921
+ /**
120922
+ * 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.
120923
+ */
120924
+ max_offset_seconds?: number;
120925
+ /**
120926
+ * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
120927
+ */
120928
+ idempotency_key?: string;
120929
+ };
120930
+ headers?: {
120931
+ /**
120932
+ * 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.
120933
+ */
120934
+ 'Idempotency-Key'?: string;
120935
+ };
120936
+ path: {
120937
+ /**
120938
+ * Library ID returned by creation.
120939
+ */
120940
+ library_id: string;
120941
+ /**
120942
+ * 32-character asset ID.
120943
+ */
120944
+ asset_id: string;
120945
+ };
120946
+ query?: never;
120947
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
120948
+ };
120949
+ export type MediaAlignAssetErrors = {
120950
+ /**
120951
+ * 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.
120952
+ */
120953
+ 400: MediaMediaError;
120954
+ /**
120955
+ * 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.
120956
+ */
120957
+ 402: MediaMediaError;
120958
+ /**
120959
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
120960
+ */
120961
+ 403: MediaMediaError;
120962
+ /**
120963
+ * 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.
120964
+ */
120965
+ 404: MediaMediaError;
120966
+ /**
120967
+ * 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.
120968
+ */
120969
+ 409: MediaMediaError;
120970
+ /**
120971
+ * The file exceeds an input limit; provide a smaller source file.
120972
+ */
120973
+ 413: MediaMediaError;
120974
+ /**
120975
+ * This media format is unsupported; provide a supported format.
120976
+ */
120977
+ 415: MediaMediaError;
120978
+ /**
120979
+ * 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.
120980
+ */
120981
+ 422: MediaMediaError;
120982
+ /**
120983
+ * 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.
120984
+ */
120985
+ 429: MediaMediaError;
120986
+ /**
120987
+ * The requested operation is unsupported; choose a supported method.
120988
+ */
120989
+ 501: MediaMediaError;
120990
+ /**
120991
+ * Request failed; see the error code reference.
120992
+ */
120993
+ 502: MediaMediaError;
120994
+ /**
120995
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
120996
+ */
120997
+ 503: MediaMediaError;
120998
+ };
120999
+ export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
121000
+ export type MediaAlignAssetResponses = {
121001
+ /**
121002
+ * 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.
121003
+ */
121004
+ 202: MediaJob;
121005
+ };
121006
+ export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
121007
+ export type MediaGetHlsRenditionsData = {
121008
+ body?: never;
121009
+ path: {
121010
+ /**
121011
+ * Library ID returned by creation.
121012
+ */
121013
+ library_id: string;
121014
+ /**
121015
+ * 32-character asset ID.
121016
+ */
121017
+ asset_id: string;
121018
+ };
121019
+ query?: never;
121020
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
121021
+ };
121022
+ export type MediaGetHlsRenditionsErrors = {
121023
+ /**
121024
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121025
+ */
121026
+ 400: MediaMediaError;
121027
+ /**
121028
+ * Request failed; see the error code reference.
121029
+ */
121030
+ 402: MediaMediaError;
121031
+ /**
121032
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121033
+ */
121034
+ 403: MediaMediaError;
121035
+ /**
121036
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121037
+ */
121038
+ 404: MediaMediaError;
121039
+ /**
121040
+ * Request failed; see the error code reference.
121041
+ */
121042
+ 409: MediaMediaError;
121043
+ /**
121044
+ * The file exceeds an input limit; provide a smaller source file.
121045
+ */
121046
+ 413: MediaMediaError;
121047
+ /**
121048
+ * This media format is unsupported; provide a supported format.
121049
+ */
121050
+ 415: MediaMediaError;
121051
+ /**
121052
+ * Request failed; see the error code reference.
121053
+ */
121054
+ 422: MediaMediaError;
121055
+ /**
121056
+ * A rate limit was reached; wait before retrying.
121057
+ */
121058
+ 429: MediaMediaError;
121059
+ /**
121060
+ * The requested operation is unsupported; choose a supported method.
121061
+ */
121062
+ 501: MediaMediaError;
121063
+ /**
121064
+ * Request failed; see the error code reference.
121065
+ */
121066
+ 502: MediaMediaError;
121067
+ /**
121068
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121069
+ */
121070
+ 503: MediaMediaError;
121071
+ };
121072
+ export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
121073
+ export type MediaGetHlsRenditionsResponses = {
121074
+ /**
121075
+ * Successful response.
121076
+ */
121077
+ 200: MediaHlsLadder;
121078
+ };
121079
+ export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
121080
+ export type MediaRequestHlsRenditionsData = {
121081
+ /**
121082
+ * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
121083
+ */
121084
+ body: {
121085
+ /**
121086
+ * 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.
121087
+ */
121088
+ heights?: Array<480 | 720 | 1080>;
121089
+ };
121090
+ path: {
121091
+ /**
121092
+ * Library ID returned by creation.
121093
+ */
121094
+ library_id: string;
121095
+ /**
121096
+ * 32-character asset ID.
121097
+ */
121098
+ asset_id: string;
121099
+ };
121100
+ query?: never;
121101
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
121102
+ };
121103
+ export type MediaRequestHlsRenditionsErrors = {
121104
+ /**
121105
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121106
+ */
121107
+ 400: MediaMediaError;
121108
+ /**
121109
+ * Request failed; see the error code reference.
121110
+ */
121111
+ 402: MediaMediaError;
121112
+ /**
121113
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121114
+ */
121115
+ 403: MediaMediaError;
121116
+ /**
121117
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121118
+ */
121119
+ 404: MediaMediaError;
121120
+ /**
121121
+ * Request failed; see the error code reference.
121122
+ */
121123
+ 409: MediaMediaError;
121124
+ /**
121125
+ * The file exceeds an input limit; provide a smaller source file.
121126
+ */
121127
+ 413: MediaMediaError;
121128
+ /**
121129
+ * This media format is unsupported; provide a supported format.
121130
+ */
121131
+ 415: MediaMediaError;
121132
+ /**
121133
+ * Request failed; see the error code reference.
121134
+ */
121135
+ 422: MediaMediaError;
121136
+ /**
121137
+ * A rate limit was reached; wait before retrying.
121138
+ */
121139
+ 429: MediaMediaError;
121140
+ /**
121141
+ * The requested operation is unsupported; choose a supported method.
121142
+ */
121143
+ 501: MediaMediaError;
121144
+ /**
121145
+ * Request failed; see the error code reference.
121146
+ */
121147
+ 502: MediaMediaError;
121148
+ /**
121149
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121150
+ */
121151
+ 503: MediaMediaError;
121152
+ };
121153
+ export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
121154
+ export type MediaRequestHlsRenditionsResponses = {
119166
121155
  /**
119167
121156
  * Successful response.
119168
121157
  */
119169
- 200: MediaUnderstandingPage;
121158
+ 202: MediaHlsLadder;
119170
121159
  };
119171
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
119172
- export type MediaListJobsData = {
119173
- body?: never;
119174
- path: {
121160
+ export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
121161
+ export type MediaCreateVoiceData = {
121162
+ /**
121163
+ * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
121164
+ */
121165
+ body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
121166
+ headers?: {
119175
121167
  /**
119176
- * Library ID returned by creation.
121168
+ * 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.
119177
121169
  */
119178
- library_id: string;
121170
+ 'Idempotency-Key'?: string;
119179
121171
  };
119180
- query?: {
119181
- /**
119182
- * Filter jobs by their current status.
119183
- */
119184
- status?: MediaJobStatus;
119185
- /**
119186
- * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
119187
- */
119188
- pipeline_run_id?: string;
119189
- /**
119190
- * Maximum entries in this page, from 1 through 100; defaults to 100.
119191
- */
119192
- limit?: number;
121172
+ path: {
119193
121173
  /**
119194
- * Job id from the previous page’s next_cursor; omit for the first page.
121174
+ * Library ID returned by creation.
119195
121175
  */
119196
- cursor?: MediaJobId;
121176
+ library_id: string;
119197
121177
  };
119198
- url: '/media/v1/libraries/{library_id}/jobs';
121178
+ query?: never;
121179
+ url: '/media/v1/libraries/{library_id}/voices';
119199
121180
  };
119200
- export type MediaListJobsErrors = {
121181
+ export type MediaCreateVoiceErrors = {
119201
121182
  /**
119202
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121183
+ * Request failed; see the error code reference.
119203
121184
  */
119204
121185
  400: MediaMediaError;
119205
121186
  /**
@@ -119207,11 +121188,11 @@ export type MediaListJobsErrors = {
119207
121188
  */
119208
121189
  402: MediaMediaError;
119209
121190
  /**
119210
- * This credential has read-only access to the library; use a write-capable binding for mutations.
121191
+ * Request failed; see the error code reference.
119211
121192
  */
119212
121193
  403: MediaMediaError;
119213
121194
  /**
119214
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121195
+ * Request failed; see the error code reference.
119215
121196
  */
119216
121197
  404: MediaMediaError;
119217
121198
  /**
@@ -119219,11 +121200,11 @@ export type MediaListJobsErrors = {
119219
121200
  */
119220
121201
  409: MediaMediaError;
119221
121202
  /**
119222
- * The file exceeds an input limit; provide a smaller source file.
121203
+ * Request failed; see the error code reference.
119223
121204
  */
119224
121205
  413: MediaMediaError;
119225
121206
  /**
119226
- * This media format is unsupported; provide a supported format.
121207
+ * Request failed; see the error code reference.
119227
121208
  */
119228
121209
  415: MediaMediaError;
119229
121210
  /**
@@ -119231,11 +121212,11 @@ export type MediaListJobsErrors = {
119231
121212
  */
119232
121213
  422: MediaMediaError;
119233
121214
  /**
119234
- * A rate limit was reached; wait before retrying.
121215
+ * Request failed; see the error code reference.
119235
121216
  */
119236
121217
  429: MediaMediaError;
119237
121218
  /**
119238
- * The requested operation is unsupported; choose a supported method.
121219
+ * Request failed; see the error code reference.
119239
121220
  */
119240
121221
  501: MediaMediaError;
119241
121222
  /**
@@ -119243,36 +121224,58 @@ export type MediaListJobsErrors = {
119243
121224
  */
119244
121225
  502: MediaMediaError;
119245
121226
  /**
119246
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121227
+ * Request failed; see the error code reference.
119247
121228
  */
119248
121229
  503: MediaMediaError;
119249
121230
  };
119250
- export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
119251
- export type MediaListJobsResponses = {
121231
+ export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
121232
+ export type MediaCreateVoiceResponses = {
119252
121233
  /**
119253
121234
  * Successful response.
119254
121235
  */
119255
- 200: MediaJobPage;
121236
+ 202: MediaJob;
119256
121237
  };
119257
- export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
119258
- export type MediaCancelJobData = {
119259
- body?: never;
121238
+ export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
121239
+ export type MediaDesignVoiceData = {
121240
+ /**
121241
+ * One voice-design run: what the voice should sound like and the line the previews speak.
121242
+ */
121243
+ body: {
121244
+ /**
121245
+ * 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.
121246
+ */
121247
+ description: string;
121248
+ /**
121249
+ * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
121250
+ */
121251
+ preview_text: string;
121252
+ /**
121253
+ * Language the previews speak: zh or en only.
121254
+ */
121255
+ language: 'zh' | 'en';
121256
+ /**
121257
+ * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
121258
+ */
121259
+ count?: number;
121260
+ };
121261
+ headers?: {
121262
+ /**
121263
+ * 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.
121264
+ */
121265
+ 'Idempotency-Key'?: string;
121266
+ };
119260
121267
  path: {
119261
121268
  /**
119262
121269
  * Library ID returned by creation.
119263
121270
  */
119264
121271
  library_id: string;
119265
- /**
119266
- * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
119267
- */
119268
- job_id: string;
119269
121272
  };
119270
121273
  query?: never;
119271
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
121274
+ url: '/media/v1/libraries/{library_id}/voices/designs';
119272
121275
  };
119273
- export type MediaCancelJobErrors = {
121276
+ export type MediaDesignVoiceErrors = {
119274
121277
  /**
119275
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121278
+ * Request failed; see the error code reference.
119276
121279
  */
119277
121280
  400: MediaMediaError;
119278
121281
  /**
@@ -119280,11 +121283,11 @@ export type MediaCancelJobErrors = {
119280
121283
  */
119281
121284
  402: MediaMediaError;
119282
121285
  /**
119283
- * This credential has read-only access to the library; use a write-capable binding for mutations.
121286
+ * Request failed; see the error code reference.
119284
121287
  */
119285
121288
  403: MediaMediaError;
119286
121289
  /**
119287
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121290
+ * Request failed; see the error code reference.
119288
121291
  */
119289
121292
  404: MediaMediaError;
119290
121293
  /**
@@ -119292,11 +121295,11 @@ export type MediaCancelJobErrors = {
119292
121295
  */
119293
121296
  409: MediaMediaError;
119294
121297
  /**
119295
- * The file exceeds an input limit; provide a smaller source file.
121298
+ * Request failed; see the error code reference.
119296
121299
  */
119297
121300
  413: MediaMediaError;
119298
121301
  /**
119299
- * This media format is unsupported; provide a supported format.
121302
+ * Request failed; see the error code reference.
119300
121303
  */
119301
121304
  415: MediaMediaError;
119302
121305
  /**
@@ -119304,11 +121307,11 @@ export type MediaCancelJobErrors = {
119304
121307
  */
119305
121308
  422: MediaMediaError;
119306
121309
  /**
119307
- * A rate limit was reached; wait before retrying.
121310
+ * Request failed; see the error code reference.
119308
121311
  */
119309
121312
  429: MediaMediaError;
119310
121313
  /**
119311
- * The requested operation is unsupported; choose a supported method.
121314
+ * Request failed; see the error code reference.
119312
121315
  */
119313
121316
  501: MediaMediaError;
119314
121317
  /**
@@ -119316,25 +121319,51 @@ export type MediaCancelJobErrors = {
119316
121319
  */
119317
121320
  502: MediaMediaError;
119318
121321
  /**
119319
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121322
+ * Request failed; see the error code reference.
119320
121323
  */
119321
121324
  503: MediaMediaError;
119322
121325
  };
119323
- export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
119324
- export type MediaCancelJobResponses = {
121326
+ export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
121327
+ export type MediaDesignVoiceResponses = {
119325
121328
  /**
119326
121329
  * Successful response.
119327
121330
  */
119328
- 200: MediaJob;
121331
+ 202: MediaJob;
119329
121332
  };
119330
- export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
119331
- export type MediaGetGenerationCapabilitiesData = {
121333
+ export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121334
+ export type MediaListWorksData = {
119332
121335
  body?: never;
119333
- path?: never;
119334
- query?: never;
119335
- url: '/media/v1/generation/capabilities';
121336
+ path: {
121337
+ /**
121338
+ * Library ID returned by creation.
121339
+ */
121340
+ library_id: string;
121341
+ };
121342
+ query?: {
121343
+ /**
121344
+ * Only works of this kind: gallery, article, product_listing or blocks.
121345
+ */
121346
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
121347
+ /**
121348
+ * Only works of this series.
121349
+ */
121350
+ series?: string;
121351
+ /**
121352
+ * Only works whose title contains this text, at most 100 characters.
121353
+ */
121354
+ q?: string;
121355
+ /**
121356
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
121357
+ */
121358
+ limit?: number;
121359
+ /**
121360
+ * Cursor from the previous next_cursor.
121361
+ */
121362
+ cursor?: string;
121363
+ };
121364
+ url: '/media/v1/libraries/{library_id}/works';
119336
121365
  };
119337
- export type MediaGetGenerationCapabilitiesErrors = {
121366
+ export type MediaListWorksErrors = {
119338
121367
  /**
119339
121368
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119340
121369
  */
@@ -119384,58 +121413,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
119384
121413
  */
119385
121414
  503: MediaMediaError;
119386
121415
  };
119387
- export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
119388
- export type MediaGetGenerationCapabilitiesResponses = {
121416
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
121417
+ export type MediaListWorksResponses = {
119389
121418
  /**
119390
121419
  * Successful response.
119391
121420
  */
119392
- 200: MediaGenerationCapabilities;
121421
+ 200: MediaWorkPage;
119393
121422
  };
119394
- export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
119395
- export type MediaAlignAssetData = {
121423
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
121424
+ export type MediaCreateWorkData = {
119396
121425
  /**
119397
- * 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.
121426
+ * A new work: its kind and its whole body, with an optional series and custom fields.
119398
121427
  */
119399
121428
  body: {
119400
121429
  /**
119401
- * 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.
121430
+ * The work’s kind; it decides which body fields are accepted.
119402
121431
  */
119403
- reference_asset_id: string;
121432
+ kind: MediaWorkKind;
119404
121433
  /**
119405
- * 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.
121434
+ * 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.
119406
121435
  */
119407
- max_offset_seconds?: number;
121436
+ body: MediaWorkBody;
119408
121437
  /**
119409
- * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
121438
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
119410
121439
  */
119411
- idempotency_key?: string;
119412
- };
119413
- headers?: {
121440
+ series?: string;
119414
121441
  /**
119415
- * 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.
121442
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
119416
121443
  */
119417
- 'Idempotency-Key'?: string;
121444
+ custom?: MediaWorkCustom;
119418
121445
  };
119419
121446
  path: {
119420
121447
  /**
119421
121448
  * Library ID returned by creation.
119422
121449
  */
119423
121450
  library_id: string;
119424
- /**
119425
- * 32-character asset ID.
119426
- */
119427
- asset_id: string;
119428
121451
  };
119429
121452
  query?: never;
119430
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
121453
+ url: '/media/v1/libraries/{library_id}/works';
119431
121454
  };
119432
- export type MediaAlignAssetErrors = {
121455
+ export type MediaCreateWorkErrors = {
119433
121456
  /**
119434
- * 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.
121457
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119435
121458
  */
119436
121459
  400: MediaMediaError;
119437
121460
  /**
119438
- * 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.
121461
+ * Request failed; see the error code reference.
119439
121462
  */
119440
121463
  402: MediaMediaError;
119441
121464
  /**
@@ -119443,11 +121466,11 @@ export type MediaAlignAssetErrors = {
119443
121466
  */
119444
121467
  403: MediaMediaError;
119445
121468
  /**
119446
- * 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.
121469
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119447
121470
  */
119448
121471
  404: MediaMediaError;
119449
121472
  /**
119450
- * 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.
121473
+ * Request failed; see the error code reference.
119451
121474
  */
119452
121475
  409: MediaMediaError;
119453
121476
  /**
@@ -119459,11 +121482,11 @@ export type MediaAlignAssetErrors = {
119459
121482
  */
119460
121483
  415: MediaMediaError;
119461
121484
  /**
119462
- * 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.
121485
+ * Request failed; see the error code reference.
119463
121486
  */
119464
121487
  422: MediaMediaError;
119465
121488
  /**
119466
- * 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.
121489
+ * A rate limit was reached; wait before retrying.
119467
121490
  */
119468
121491
  429: MediaMediaError;
119469
121492
  /**
@@ -119479,15 +121502,15 @@ export type MediaAlignAssetErrors = {
119479
121502
  */
119480
121503
  503: MediaMediaError;
119481
121504
  };
119482
- export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
119483
- export type MediaAlignAssetResponses = {
121505
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
121506
+ export type MediaCreateWorkResponses = {
119484
121507
  /**
119485
- * 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.
121508
+ * Successful response.
119486
121509
  */
119487
- 202: MediaJob;
121510
+ 200: MediaWork;
119488
121511
  };
119489
- export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
119490
- export type MediaGetHlsRenditionsData = {
121512
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
121513
+ export type MediaDeleteWorkData = {
119491
121514
  body?: never;
119492
121515
  path: {
119493
121516
  /**
@@ -119495,14 +121518,14 @@ export type MediaGetHlsRenditionsData = {
119495
121518
  */
119496
121519
  library_id: string;
119497
121520
  /**
119498
- * 32-character asset ID.
121521
+ * Work id (wrk_…) returned by creation or listing.
119499
121522
  */
119500
- asset_id: string;
121523
+ work_id: string;
119501
121524
  };
119502
121525
  query?: never;
119503
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
121526
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119504
121527
  };
119505
- export type MediaGetHlsRenditionsErrors = {
121528
+ export type MediaDeleteWorkErrors = {
119506
121529
  /**
119507
121530
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119508
121531
  */
@@ -119552,38 +121575,35 @@ export type MediaGetHlsRenditionsErrors = {
119552
121575
  */
119553
121576
  503: MediaMediaError;
119554
121577
  };
119555
- export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
119556
- export type MediaGetHlsRenditionsResponses = {
121578
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
121579
+ export type MediaDeleteWorkResponses = {
119557
121580
  /**
119558
121581
  * Successful response.
119559
121582
  */
119560
- 200: MediaHlsLadder;
121583
+ 200: MediaDeletedWork;
119561
121584
  };
119562
- export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
119563
- export type MediaRequestHlsRenditionsData = {
119564
- /**
119565
- * Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
119566
- */
119567
- body: {
119568
- /**
119569
- * 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.
119570
- */
119571
- heights?: Array<480 | 720 | 1080>;
119572
- };
121585
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
121586
+ export type MediaGetWorkData = {
121587
+ body?: never;
119573
121588
  path: {
119574
121589
  /**
119575
121590
  * Library ID returned by creation.
119576
121591
  */
119577
121592
  library_id: string;
119578
121593
  /**
119579
- * 32-character asset ID.
121594
+ * Work id (wrk_…) returned by creation or listing.
119580
121595
  */
119581
- asset_id: string;
121596
+ work_id: string;
119582
121597
  };
119583
- query?: never;
119584
- url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
121598
+ query?: {
121599
+ /**
121600
+ * assets returns every referenced asset with its URLs and size.
121601
+ */
121602
+ expand?: string;
121603
+ };
121604
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119585
121605
  };
119586
- export type MediaRequestHlsRenditionsErrors = {
121606
+ export type MediaGetWorkErrors = {
119587
121607
  /**
119588
121608
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119589
121609
  */
@@ -119633,37 +121653,52 @@ export type MediaRequestHlsRenditionsErrors = {
119633
121653
  */
119634
121654
  503: MediaMediaError;
119635
121655
  };
119636
- export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
119637
- export type MediaRequestHlsRenditionsResponses = {
121656
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
121657
+ export type MediaGetWorkResponses = {
119638
121658
  /**
119639
121659
  * Successful response.
119640
121660
  */
119641
- 202: MediaHlsLadder;
121661
+ 200: MediaWork;
119642
121662
  };
119643
- export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
119644
- export type MediaCreateVoiceData = {
121663
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
121664
+ export type MediaUpdateWorkData = {
119645
121665
  /**
119646
- * Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
121666
+ * Changes to a work. Send only what changes.
119647
121667
  */
119648
- body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
119649
- headers?: {
121668
+ body: {
119650
121669
  /**
119651
- * 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.
121670
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
119652
121671
  */
119653
- 'Idempotency-Key'?: string;
121672
+ body?: MediaWorkBody;
121673
+ /**
121674
+ * A new series, or null to clear it.
121675
+ */
121676
+ series?: string | null;
121677
+ /**
121678
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
121679
+ */
121680
+ custom?: MediaWorkCustom;
121681
+ /**
121682
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
121683
+ */
121684
+ if_revision?: number;
119654
121685
  };
119655
121686
  path: {
119656
121687
  /**
119657
121688
  * Library ID returned by creation.
119658
121689
  */
119659
121690
  library_id: string;
121691
+ /**
121692
+ * Work id (wrk_…) returned by creation or listing.
121693
+ */
121694
+ work_id: string;
119660
121695
  };
119661
121696
  query?: never;
119662
- url: '/media/v1/libraries/{library_id}/voices';
121697
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
119663
121698
  };
119664
- export type MediaCreateVoiceErrors = {
121699
+ export type MediaUpdateWorkErrors = {
119665
121700
  /**
119666
- * Request failed; see the error code reference.
121701
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119667
121702
  */
119668
121703
  400: MediaMediaError;
119669
121704
  /**
@@ -119671,11 +121706,11 @@ export type MediaCreateVoiceErrors = {
119671
121706
  */
119672
121707
  402: MediaMediaError;
119673
121708
  /**
119674
- * Request failed; see the error code reference.
121709
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119675
121710
  */
119676
121711
  403: MediaMediaError;
119677
121712
  /**
119678
- * Request failed; see the error code reference.
121713
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119679
121714
  */
119680
121715
  404: MediaMediaError;
119681
121716
  /**
@@ -119683,11 +121718,11 @@ export type MediaCreateVoiceErrors = {
119683
121718
  */
119684
121719
  409: MediaMediaError;
119685
121720
  /**
119686
- * Request failed; see the error code reference.
121721
+ * The file exceeds an input limit; provide a smaller source file.
119687
121722
  */
119688
121723
  413: MediaMediaError;
119689
121724
  /**
119690
- * Request failed; see the error code reference.
121725
+ * This media format is unsupported; provide a supported format.
119691
121726
  */
119692
121727
  415: MediaMediaError;
119693
121728
  /**
@@ -119695,11 +121730,11 @@ export type MediaCreateVoiceErrors = {
119695
121730
  */
119696
121731
  422: MediaMediaError;
119697
121732
  /**
119698
- * Request failed; see the error code reference.
121733
+ * A rate limit was reached; wait before retrying.
119699
121734
  */
119700
121735
  429: MediaMediaError;
119701
121736
  /**
119702
- * Request failed; see the error code reference.
121737
+ * The requested operation is unsupported; choose a supported method.
119703
121738
  */
119704
121739
  501: MediaMediaError;
119705
121740
  /**
@@ -119707,58 +121742,45 @@ export type MediaCreateVoiceErrors = {
119707
121742
  */
119708
121743
  502: MediaMediaError;
119709
121744
  /**
119710
- * Request failed; see the error code reference.
121745
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119711
121746
  */
119712
121747
  503: MediaMediaError;
119713
121748
  };
119714
- export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
119715
- export type MediaCreateVoiceResponses = {
121749
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
121750
+ export type MediaUpdateWorkResponses = {
119716
121751
  /**
119717
121752
  * Successful response.
119718
121753
  */
119719
- 202: MediaJob;
121754
+ 200: MediaWork;
119720
121755
  };
119721
- export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
119722
- export type MediaDesignVoiceData = {
119723
- /**
119724
- * One voice-design run: what the voice should sound like and the line the previews speak.
119725
- */
119726
- body: {
119727
- /**
119728
- * 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.
119729
- */
119730
- description: string;
119731
- /**
119732
- * Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
119733
- */
119734
- preview_text: string;
121756
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
121757
+ export type MediaListAssetWorksData = {
121758
+ body?: never;
121759
+ path: {
119735
121760
  /**
119736
- * Language the previews speak: zh or en only.
121761
+ * Library ID returned by creation.
119737
121762
  */
119738
- language: 'zh' | 'en';
121763
+ library_id: string;
119739
121764
  /**
119740
- * How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
121765
+ * 32-character asset ID.
119741
121766
  */
119742
- count?: number;
121767
+ asset_id: string;
119743
121768
  };
119744
- headers?: {
121769
+ query?: {
119745
121770
  /**
119746
- * 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.
121771
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
119747
121772
  */
119748
- 'Idempotency-Key'?: string;
119749
- };
119750
- path: {
121773
+ limit?: number;
119751
121774
  /**
119752
- * Library ID returned by creation.
121775
+ * Cursor from the previous next_cursor.
119753
121776
  */
119754
- library_id: string;
121777
+ cursor?: string;
119755
121778
  };
119756
- query?: never;
119757
- url: '/media/v1/libraries/{library_id}/voices/designs';
121779
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
119758
121780
  };
119759
- export type MediaDesignVoiceErrors = {
121781
+ export type MediaListAssetWorksErrors = {
119760
121782
  /**
119761
- * Request failed; see the error code reference.
121783
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
119762
121784
  */
119763
121785
  400: MediaMediaError;
119764
121786
  /**
@@ -119766,11 +121788,11 @@ export type MediaDesignVoiceErrors = {
119766
121788
  */
119767
121789
  402: MediaMediaError;
119768
121790
  /**
119769
- * Request failed; see the error code reference.
121791
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
119770
121792
  */
119771
121793
  403: MediaMediaError;
119772
121794
  /**
119773
- * Request failed; see the error code reference.
121795
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
119774
121796
  */
119775
121797
  404: MediaMediaError;
119776
121798
  /**
@@ -119778,11 +121800,11 @@ export type MediaDesignVoiceErrors = {
119778
121800
  */
119779
121801
  409: MediaMediaError;
119780
121802
  /**
119781
- * Request failed; see the error code reference.
121803
+ * The file exceeds an input limit; provide a smaller source file.
119782
121804
  */
119783
121805
  413: MediaMediaError;
119784
121806
  /**
119785
- * Request failed; see the error code reference.
121807
+ * This media format is unsupported; provide a supported format.
119786
121808
  */
119787
121809
  415: MediaMediaError;
119788
121810
  /**
@@ -119790,11 +121812,11 @@ export type MediaDesignVoiceErrors = {
119790
121812
  */
119791
121813
  422: MediaMediaError;
119792
121814
  /**
119793
- * Request failed; see the error code reference.
121815
+ * A rate limit was reached; wait before retrying.
119794
121816
  */
119795
121817
  429: MediaMediaError;
119796
121818
  /**
119797
- * Request failed; see the error code reference.
121819
+ * The requested operation is unsupported; choose a supported method.
119798
121820
  */
119799
121821
  501: MediaMediaError;
119800
121822
  /**
@@ -119802,18 +121824,18 @@ export type MediaDesignVoiceErrors = {
119802
121824
  */
119803
121825
  502: MediaMediaError;
119804
121826
  /**
119805
- * Request failed; see the error code reference.
121827
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
119806
121828
  */
119807
121829
  503: MediaMediaError;
119808
121830
  };
119809
- export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
119810
- export type MediaDesignVoiceResponses = {
121831
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
121832
+ export type MediaListAssetWorksResponses = {
119811
121833
  /**
119812
121834
  * Successful response.
119813
121835
  */
119814
- 202: MediaJob;
121836
+ 200: MediaWorkPage;
119815
121837
  };
119816
- export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121838
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
119817
121839
  export type OntologyListTypesData = {
119818
121840
  body?: never;
119819
121841
  path?: never;