@deepraxis/sdk 0.2.0-dev.2ba4359 → 0.2.0-dev.2d035b3

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.
@@ -4680,17 +4680,29 @@ export type BrowserStreamMessage = {
4680
4680
  */
4681
4681
  nextCursor: string | null;
4682
4682
  };
4683
+ /**
4684
+ * The tab in front: the newest one the browser opened, the one a client or a page action last brought to the front, or the fallback tab after the front one closed. null when the session has no tab.
4685
+ */
4686
+ activePageId?: string | null;
4683
4687
  };
4684
4688
  } | {
4685
4689
  event: 'session';
4686
4690
  data: BrowserSession;
4687
4691
  } | {
4688
4692
  event: 'pages';
4689
- data: BrowserSessionLiveUrls;
4693
+ data: BrowserSessionLiveUrls & {
4694
+ /**
4695
+ * The tab in front, sent with every pages message and whenever the front tab moves even if the tab list did not. A viewer shows this tab and never infers its own; null when the session has no tab.
4696
+ */
4697
+ activePageId?: string | null;
4698
+ };
4690
4699
  } | {
4691
4700
  event: 'action';
4692
4701
  data: {
4693
- kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed';
4702
+ /**
4703
+ * page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
4704
+ */
4705
+ kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
4694
4706
  pageId?: string;
4695
4707
  url?: string;
4696
4708
  x?: number;
@@ -12211,6 +12223,19 @@ export type AutomationDefinition = {
12211
12223
  */
12212
12224
  updated_at: string;
12213
12225
  };
12226
+ /**
12227
+ * The draft written on creation, in the shape a read returns: source is required and revision may be omitted.
12228
+ */
12229
+ export type AutomationDraftCreateInput = {
12230
+ /**
12231
+ * Draft source: TypeScript for scripts, YAML for workflows.
12232
+ */
12233
+ source: string;
12234
+ /**
12235
+ * A new definition has no earlier draft, so revision has no meaning here and is ignored; it lets a draft that was read be written back as is.
12236
+ */
12237
+ revision?: string;
12238
+ };
12214
12239
  export type AutomationDefinitionDetail = {
12215
12240
  draft: AutomationDraft;
12216
12241
  /**
@@ -12288,6 +12313,19 @@ export type AutomationDefinitionDetail = {
12288
12313
  */
12289
12314
  updated_at: string;
12290
12315
  };
12316
+ /**
12317
+ * The draft written on update, in the shape a read returns: revision is the concurrency token, and omitting source changes only metadata.
12318
+ */
12319
+ export type AutomationDraftUpdateInput = {
12320
+ /**
12321
+ * The new draft source; omit it to keep the draft source and change only metadata.
12322
+ */
12323
+ source?: string;
12324
+ /**
12325
+ * Concurrency token of the draft: the draft.revision a read returned, which must equal the current draft revision (a mismatch returns 412); the If-Match header is its deprecated alias.
12326
+ */
12327
+ revision?: string;
12328
+ };
12291
12329
  export type AutomationVersion = {
12292
12330
  /**
12293
12331
  * Version id, prefixed scv_ for scripts and wfv_ for workflows.
@@ -12968,7 +13006,9 @@ export type AutomationWait = {
12968
13006
  */
12969
13007
  kind: 'event' | 'timer' | 'child';
12970
13008
  /**
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.
13009
+ * Deprecated, read status, which holds the same value. Wait point state. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13010
+ *
13011
+ * @deprecated
12972
13012
  */
12973
13013
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
12974
13014
  /**
@@ -13008,6 +13048,10 @@ export type AutomationWait = {
13008
13048
  * Time the wait point was resolved (RFC 3339 UTC), or null if still open.
13009
13049
  */
13010
13050
  resolved_at: null | string;
13051
+ /**
13052
+ * Wait point status. open is still waiting; resolved was satisfied; expired passed its expires_at; cancelled was cancelled and can no longer be satisfied.
13053
+ */
13054
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
13011
13055
  };
13012
13056
  /**
13013
13057
  * Record of one call made during a script run (an action, platform API, script or workflow), ordered by seq.
@@ -13252,7 +13296,7 @@ export type AutomationRunEvent = {
13252
13296
  */
13253
13297
  id: string;
13254
13298
  /**
13255
- * Event source, of the form /automation/v1/runs/{id}.
13299
+ * Event source, of the form /automation/v1/runs/{run_id}.
13256
13300
  */
13257
13301
  source: string;
13258
13302
  /**
@@ -13282,7 +13326,7 @@ export type AutomationRunEvent = {
13282
13326
  */
13283
13327
  id: string;
13284
13328
  /**
13285
- * Event source, of the form /automation/v1/runs/{id}.
13329
+ * Event source, of the form /automation/v1/runs/{run_id}.
13286
13330
  */
13287
13331
  source: string;
13288
13332
  /**
@@ -13312,7 +13356,7 @@ export type AutomationRunEvent = {
13312
13356
  */
13313
13357
  id: string;
13314
13358
  /**
13315
- * Event source, of the form /automation/v1/runs/{id}.
13359
+ * Event source, of the form /automation/v1/runs/{run_id}.
13316
13360
  */
13317
13361
  source: string;
13318
13362
  /**
@@ -13342,7 +13386,7 @@ export type AutomationRunEvent = {
13342
13386
  */
13343
13387
  id: string;
13344
13388
  /**
13345
- * Event source, of the form /automation/v1/runs/{id}.
13389
+ * Event source, of the form /automation/v1/runs/{run_id}.
13346
13390
  */
13347
13391
  source: string;
13348
13392
  /**
@@ -13372,7 +13416,7 @@ export type AutomationRunEvent = {
13372
13416
  */
13373
13417
  id: string;
13374
13418
  /**
13375
- * Event source, of the form /automation/v1/runs/{id}.
13419
+ * Event source, of the form /automation/v1/runs/{run_id}.
13376
13420
  */
13377
13421
  source: string;
13378
13422
  /**
@@ -13469,7 +13513,7 @@ export type AutomationTrigger = {
13469
13513
  */
13470
13514
  input_mode: 'body' | 'envelope';
13471
13515
  /**
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.
13516
+ * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{trigger_id}/… path.
13473
13517
  */
13474
13518
  url_hint: string;
13475
13519
  } | null;
@@ -13481,6 +13525,11 @@ export type AutomationTrigger = {
13481
13525
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13482
13526
  */
13483
13527
  owner: string;
13528
+ /**
13529
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13530
+ *
13531
+ * @deprecated
13532
+ */
13484
13533
  state: AutomationTriggerState;
13485
13534
  /**
13486
13535
  * Origin of the trigger. api was created through the API and can be changed and deleted; definition was generated from the schedule in a workflow YAML and can only be paused or resumed, changes return 409 TRIGGER_MANAGED.
@@ -13533,9 +13582,13 @@ export type AutomationTrigger = {
13533
13582
  */
13534
13583
  etag: string;
13535
13584
  /**
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.
13585
+ * Returned only by GET /triggers/{trigger_id}, omitted from lists. Attributed charges over the preceding 30 days for this trigger's runs and descendants. Runs themselves are free; these are actual charges for capabilities such as models and search called during runs, attributed by call. Unrated usage is included later. Aggregation failure or timeout (1.5 seconds) returns null while details still return 200.
13537
13586
  */
13538
13587
  usage_30d?: AutomationAttributedUsage | null;
13588
+ /**
13589
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13590
+ */
13591
+ status: AutomationTriggerState;
13539
13592
  };
13540
13593
  export type AutomationTriggerCreateResult = {
13541
13594
  /**
@@ -13589,7 +13642,7 @@ export type AutomationTriggerCreateResult = {
13589
13642
  */
13590
13643
  input_mode: 'body' | 'envelope';
13591
13644
  /**
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.
13645
+ * Masked webhook address with an ellipsis replacing the secret token; it cannot be invoked. Newly created triggers use a full public URL; historical records may contain a relative /automation/v1/hooks/{trigger_id}/… path.
13593
13646
  */
13594
13647
  url_hint: string;
13595
13648
  } | null;
@@ -13601,6 +13654,11 @@ export type AutomationTriggerCreateResult = {
13601
13654
  * Tenant that owns the trigger, injected by the gateway; treat it as an opaque string.
13602
13655
  */
13603
13656
  owner: string;
13657
+ /**
13658
+ * Deprecated, read status, which holds the same value. Trigger state: enabled, paused or expired.
13659
+ *
13660
+ * @deprecated
13661
+ */
13604
13662
  state: AutomationTriggerState;
13605
13663
  /**
13606
13664
  * Origin of the trigger. api was created through the API and can be changed and deleted; definition was generated from the schedule in a workflow YAML and can only be paused or resumed, changes return 409 TRIGGER_MANAGED.
@@ -13653,13 +13711,19 @@ export type AutomationTriggerCreateResult = {
13653
13711
  */
13654
13712
  etag: string;
13655
13713
  /**
13656
- * Always null in a create response; the 30-day usage is only returned by GET /triggers/{id}.
13714
+ * Always null in a create response; the 30-day usage is only returned by GET /triggers/{trigger_id}.
13657
13715
  */
13658
13716
  usage_30d?: AutomationAttributedUsage | null;
13659
13717
  /**
13660
13718
  * Returned only on webhook creation or rotation.
13661
13719
  */
13662
13720
  webhook_url?: string;
13721
+ /**
13722
+ * Trigger status: enabled fires on schedule or request; paused does not fire; expired is final and no longer fires.
13723
+ *
13724
+ * @deprecated
13725
+ */
13726
+ status: AutomationTriggerState;
13663
13727
  };
13664
13728
  /**
13665
13729
  * A duration: an ISO 8601 string such as PT5M, or an object with days, hours, minutes, seconds and milliseconds. It must convert to a whole number of milliseconds between 60000 and 31622400000 (1 minute to 366 days).
@@ -14391,6 +14455,95 @@ export type CanvasLibraryVersionPage = {
14391
14455
  */
14392
14456
  next_cursor: string | null;
14393
14457
  };
14458
+ /**
14459
+ * Everything needed to fill one step of a canvas process; a read of the document that stores nothing.
14460
+ */
14461
+ export type CanvasProcessStepBrief = {
14462
+ version: CanvasVersion;
14463
+ /**
14464
+ * The process this step belongs to.
14465
+ */
14466
+ process: {
14467
+ /**
14468
+ * Node id of the process frame or instance.
14469
+ */
14470
+ id: string;
14471
+ /**
14472
+ * Process name from its metadata.
14473
+ */
14474
+ name: string;
14475
+ };
14476
+ /**
14477
+ * The step and what is asked of it.
14478
+ */
14479
+ step: {
14480
+ /**
14481
+ * Step key within the process.
14482
+ */
14483
+ step: string;
14484
+ /**
14485
+ * Node id of the step frame; inside an instance it is a path such as inst/frame.
14486
+ */
14487
+ node_id: string;
14488
+ /**
14489
+ * Step title shown on the block.
14490
+ */
14491
+ title: string;
14492
+ /**
14493
+ * Derived from the document; filled means at least one output points at the step (an each step with expected needs that many), ready means unfilled with every needed step filled, waiting means otherwise; the state never blocks a write.
14494
+ */
14495
+ state: 'waiting' | 'ready' | 'filled';
14496
+ /**
14497
+ * For an each step, how many outputs the filler decided on; omitted when none was set.
14498
+ */
14499
+ expected?: number;
14500
+ /**
14501
+ * The requirement as stored in metadata.requirement; output says what to produce, rules are instructions where a skill:name entry names a skill to follow, and needs, back and each carry when and by text for you to read, never evaluated.
14502
+ */
14503
+ requirement: {
14504
+ [key: string]: unknown;
14505
+ };
14506
+ };
14507
+ /**
14508
+ * This production's linked materials for the step, resolved; dangling links are dropped.
14509
+ */
14510
+ materials: Array<CanvasProcessElement>;
14511
+ /**
14512
+ * The process's shared context elements, such as the series bible, resolved.
14513
+ */
14514
+ shared: Array<CanvasProcessElement>;
14515
+ /**
14516
+ * One entry per step in needs, in needs order, with that step's current outputs.
14517
+ */
14518
+ upstream: Array<{
14519
+ /**
14520
+ * Key of the upstream step.
14521
+ */
14522
+ step: string;
14523
+ /**
14524
+ * Title of the upstream step.
14525
+ */
14526
+ title: string;
14527
+ /**
14528
+ * Derived state of the upstream step; filled means it has its outputs, ready means unfilled with its own needs filled, waiting means otherwise.
14529
+ */
14530
+ state: 'waiting' | 'ready' | 'filled';
14531
+ /**
14532
+ * Outputs of the upstream step, resolved.
14533
+ */
14534
+ outputs: Array<CanvasProcessElement>;
14535
+ }>;
14536
+ /**
14537
+ * Elements that already answer this step through metadata.output; check them before adding more.
14538
+ */
14539
+ outputs: Array<CanvasProcessElement>;
14540
+ /**
14541
+ * Problems found in the whole process, such as dangling-material, dangling-shared, orphan-output, duplicate-step, unknown-step, needs-cycle and invalid-requirement; each has a kind plus the step or node it names.
14542
+ */
14543
+ issues: Array<{
14544
+ [key: string]: unknown;
14545
+ }>;
14546
+ };
14394
14547
  export type CanvasLibraryPage = {
14395
14548
  /**
14396
14549
  * Libraries on this page, most recently published first.
@@ -20136,6 +20289,10 @@ export type DevopsPullRequest = {
20136
20289
  * The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
20137
20290
  */
20138
20291
  mergeableState: string;
20292
+ /**
20293
+ * Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
20294
+ */
20295
+ notify?: string;
20139
20296
  /**
20140
20297
  * The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
20141
20298
  */
@@ -20241,6 +20398,31 @@ export type DevopsPullRequest = {
20241
20398
  */
20242
20399
  runs?: Array<string>;
20243
20400
  };
20401
+ /**
20402
+ * The exception to record: which head, which checks, and whose written authorization.
20403
+ */
20404
+ export type DevopsPullRequestOverrideGateRequest = {
20405
+ /**
20406
+ * The pull request's current head commit, from the pull request's head.sha; any other commit is refused with HEAD_MOVED.
20407
+ */
20408
+ headSha: string;
20409
+ /**
20410
+ * The gate checks the exception covers, at least one; a name that is not a gate check is refused with INVALID_ARGUMENT.
20411
+ */
20412
+ checks: Array<string>;
20413
+ /**
20414
+ * The ticket the Vice President's authorization is written on, as #<number> or its URL.
20415
+ */
20416
+ ticket: string;
20417
+ /**
20418
+ * Why the check is let through at this head, in one sentence a later reader can audit.
20419
+ */
20420
+ reason: string;
20421
+ /**
20422
+ * The Vice President who authorized it, as agent:<id> or human:<id>; must hold an active assignment to the workforce job whose code is vice-president.
20423
+ */
20424
+ authorizedBy: string;
20425
+ };
20244
20426
  /**
20245
20427
  * How to land the pull request. Every field is optional: an empty object merges now with GitHub's default shape.
20246
20428
  */
@@ -20812,6 +20994,102 @@ export type DevopsUnitTransitionPage = {
20812
20994
  */
20813
20995
  nextPageToken: string;
20814
20996
  };
20997
+ /**
20998
+ * The tenant event types.
20999
+ */
21000
+ export type EventsEventTypePage = {
21001
+ /**
21002
+ * One entry per type and schema version.
21003
+ */
21004
+ data: Array<EventsEventType>;
21005
+ /**
21006
+ * Always null today; the list is one page.
21007
+ */
21008
+ next_cursor: string | null;
21009
+ /**
21010
+ * Always false today; the list is one page.
21011
+ */
21012
+ has_more: boolean;
21013
+ };
21014
+ /**
21015
+ * What to subscribe to. The organization and the sink come from your credential and are not fields.
21016
+ */
21017
+ export type EventsCreateEventSubscriptionInput = {
21018
+ /**
21019
+ * The tenant event types to hear about, from events.types.list; an event of any one of them can match.
21020
+ */
21021
+ types: Array<string>;
21022
+ /**
21023
+ * Conditions that must all hold for an event to match; omit or leave empty to match every event of the types.
21024
+ */
21025
+ filters?: Array<EventsEventSubscriptionFilter>;
21026
+ /**
21027
+ * 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.
21028
+ */
21029
+ sink?: string;
21030
+ /**
21031
+ * True (the default) ends the subscription after the first letter; false keeps it until expires_at, at most 30 letters an hour.
21032
+ */
21033
+ once?: boolean;
21034
+ /**
21035
+ * When the subscription ends, RFC 3339. Defaults to 7 days from now; at most 30 days from now.
21036
+ */
21037
+ expires_at?: string;
21038
+ };
21039
+ /**
21040
+ * One event subscription.
21041
+ */
21042
+ export type EventsEventSubscription = {
21043
+ /**
21044
+ * The subscription id, esub_...; use it to retrieve or delete it.
21045
+ */
21046
+ id: string;
21047
+ /**
21048
+ * The tenant event types it listens to.
21049
+ */
21050
+ types: Array<string>;
21051
+ /**
21052
+ * The conditions that must all hold; empty means every event of the types.
21053
+ */
21054
+ filters: Array<EventsEventSubscriptionFilter>;
21055
+ /**
21056
+ * The inbox address the letters go to, agent:<id> or human:<id>.
21057
+ */
21058
+ sink: string;
21059
+ /**
21060
+ * Whether the subscription ends after its first letter.
21061
+ */
21062
+ once: boolean;
21063
+ /**
21064
+ * When the subscription ends and stops matching, RFC 3339.
21065
+ */
21066
+ expires_at: string;
21067
+ /**
21068
+ * When the subscription was created, RFC 3339.
21069
+ */
21070
+ created_at: string;
21071
+ /**
21072
+ * The address that created it, agent:<id> or human:<id>; only that caller can see it.
21073
+ */
21074
+ created_by: string;
21075
+ };
21076
+ /**
21077
+ * Your live subscriptions.
21078
+ */
21079
+ export type EventsEventSubscriptionPage = {
21080
+ /**
21081
+ * The subscriptions, at most limit.
21082
+ */
21083
+ data: Array<EventsEventSubscription>;
21084
+ /**
21085
+ * Always null today; the list is one page.
21086
+ */
21087
+ next_cursor: string | null;
21088
+ /**
21089
+ * Always false today; the list is one page.
21090
+ */
21091
+ has_more: boolean;
21092
+ };
20815
21093
  export type KnowledgeNativeVectorStore = {
20816
21094
  /**
20817
21095
  * Resource ID.
@@ -21437,7 +21715,7 @@ export type MediaLibrary = {
21437
21715
  };
21438
21716
  export type MediaMediaError = {
21439
21717
  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';
21718
+ 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
21719
  message: string;
21442
21720
  details: string | null;
21443
21721
  };
@@ -22966,6 +23244,107 @@ export type MediaVoiceDesignCreateInput = {
22966
23244
  */
22967
23245
  description?: string;
22968
23246
  };
23247
+ /**
23248
+ * 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.
23249
+ */
23250
+ export type MediaWork = {
23251
+ /**
23252
+ * Always work.
23253
+ */
23254
+ object: 'work';
23255
+ /**
23256
+ * Work id (wrk_…).
23257
+ */
23258
+ id: string;
23259
+ /**
23260
+ * Library the work belongs to.
23261
+ */
23262
+ library_id: MediaLibraryId;
23263
+ /**
23264
+ * The work’s kind.
23265
+ */
23266
+ kind: MediaWorkKind;
23267
+ /**
23268
+ * The title, copied from body.title.
23269
+ */
23270
+ title: string;
23271
+ /**
23272
+ * Groups the platform versions of one story; null when unset.
23273
+ */
23274
+ series: string | null;
23275
+ /**
23276
+ * The kind’s body as stored.
23277
+ */
23278
+ body: MediaWorkBody;
23279
+ /**
23280
+ * Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
23281
+ */
23282
+ custom: MediaWorkCustom;
23283
+ /**
23284
+ * Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
23285
+ */
23286
+ missing: Array<string>;
23287
+ /**
23288
+ * Bumped by every change; send it back as if_revision to update only an unchanged work.
23289
+ */
23290
+ revision: number;
23291
+ /**
23292
+ * Who created the work: human:<user id>, agent:<agent id> or system.
23293
+ */
23294
+ created_by: string;
23295
+ /**
23296
+ * When the work was created.
23297
+ */
23298
+ created_at: MediaIsoTimestamp;
23299
+ /**
23300
+ * When the work last changed.
23301
+ */
23302
+ updated_at: MediaIsoTimestamp;
23303
+ /**
23304
+ * Only with expand=assets: every live referenced asset by id, with its URLs and size.
23305
+ */
23306
+ assets?: {
23307
+ [key: string]: MediaWorkAsset;
23308
+ };
23309
+ };
23310
+ /**
23311
+ * Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
23312
+ */
23313
+ export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
23314
+ export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
23315
+ export type MediaWorkCustom = {
23316
+ [key: string]: unknown;
23317
+ };
23318
+ /**
23319
+ * A page of work summaries.
23320
+ */
23321
+ export type MediaWorkPage = {
23322
+ /**
23323
+ * Works in this page, most recently changed first.
23324
+ */
23325
+ data: Array<MediaWorkSummary>;
23326
+ /**
23327
+ * Cursor for the next page, or null when there are no more works.
23328
+ */
23329
+ next_cursor: string | null;
23330
+ };
23331
+ /**
23332
+ * The answer to deleting a work.
23333
+ */
23334
+ export type MediaDeletedWork = {
23335
+ /**
23336
+ * Id of the deleted work.
23337
+ */
23338
+ id: string;
23339
+ /**
23340
+ * Always work.
23341
+ */
23342
+ object: 'work';
23343
+ /**
23344
+ * Always true: the work is deleted; every asset it named is unchanged.
23345
+ */
23346
+ deleted: true;
23347
+ };
22969
23348
  /**
22970
23349
  * One page of type registrations; types are few enough that this face returns them in a single page.
22971
23350
  */
@@ -36865,7 +37244,7 @@ export type AutomationDraft = {
36865
37244
  */
36866
37245
  source: string;
36867
37246
  /**
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.
37247
+ * Draft revision tag (ETag); send it back unchanged as draft.revision when updating the draft or publishing, and a mismatch returns 412.
36869
37248
  */
36870
37249
  revision: string;
36871
37250
  /**
@@ -37392,6 +37771,60 @@ export type CanvasLibraryVersion = {
37392
37771
  */
37393
37772
  removed: Array<CanvasComponentRef>;
37394
37773
  };
37774
+ /**
37775
+ * One canvas element resolved for a brief; which fields besides kind and node_id are present depends on kind.
37776
+ */
37777
+ export type CanvasProcessElement = {
37778
+ /**
37779
+ * What the element is; text carries content, image carries file_id, embed carries ref, other carries type, and html carries only its name because its source is large.
37780
+ */
37781
+ kind: 'text' | 'image' | 'html' | 'embed' | 'other';
37782
+ /**
37783
+ * Node id of the element on this canvas; use it with nodes.list to read the full node.
37784
+ */
37785
+ node_id: string;
37786
+ /**
37787
+ * The node's name, when it has one.
37788
+ */
37789
+ name?: string;
37790
+ /**
37791
+ * Text of a text node.
37792
+ */
37793
+ content?: string;
37794
+ /**
37795
+ * Platform file id of an image fill; read the picture through the file domain.
37796
+ */
37797
+ file_id?: string;
37798
+ /**
37799
+ * Reference of an embed node's platform object; read the object from its own domain, as the canvas stores no copy of it.
37800
+ */
37801
+ ref?: {
37802
+ /**
37803
+ * Object type such as media-asset or media-work.
37804
+ */
37805
+ object: string;
37806
+ /**
37807
+ * Object id inside its domain.
37808
+ */
37809
+ id: string;
37810
+ /**
37811
+ * Optional position inside the object, such as a timestamp or page.
37812
+ */
37813
+ anchor?: string;
37814
+ };
37815
+ /**
37816
+ * How an embed node is drawn on the canvas, one of card, embed or inline.
37817
+ */
37818
+ appearance?: string;
37819
+ /**
37820
+ * Node type of an element that is none of the other kinds.
37821
+ */
37822
+ type?: string;
37823
+ /**
37824
+ * For an output of an each step, which item it answers, such as a section name.
37825
+ */
37826
+ item?: string;
37827
+ };
37395
37828
  export type CanvasLibrarySummary = {
37396
37829
  /**
37397
37830
  * The library's canvas id; use it as canvas_id in library_versions and publish.
@@ -39258,7 +39691,7 @@ export type DevopsReleaseSchedule = {
39258
39691
  */
39259
39692
  export type DevopsGatePolicy = {
39260
39693
  /**
39261
- * How the merge gate's tests check reads on this project. evidence requires per-case test evidence: the check fails and names the command the author runs on the pushed head while a required case has no passing evidence. off does not gate tests: the check reports skipped, saying so, and no evidence is read. Absent means off, so a project that never wrote it keeps merging without test evidence until it is set to evidence.
39694
+ * How the merge gate's tests check reads on this project. evidence requires per-case test evidence: the check fails and names the command the author runs on the pushed head while a required case has no passing evidence. off does not gate tests: the check reports not_run with mode off, saying so, is not counted, and no evidence is read. Absent means off, so a project that never wrote it keeps merging without test evidence until it is set to evidence.
39262
39695
  */
39263
39696
  tests?: 'evidence' | 'off';
39264
39697
  /**
@@ -39274,7 +39707,7 @@ export type DevopsGatePolicy = {
39274
39707
  */
39275
39708
  mode: 'enforce' | 'evaluate' | 'off';
39276
39709
  /**
39277
- * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking.
39710
+ * What an unavailable check does: fail-closed blocks the gate, fail-open shows it without blocking. Every check defaults to fail-closed.
39278
39711
  */
39279
39712
  whenUnavailable: 'fail-closed' | 'fail-open';
39280
39713
  /**
@@ -39284,10 +39717,6 @@ export type DevopsGatePolicy = {
39284
39717
  [key: string]: unknown;
39285
39718
  };
39286
39719
  }>;
39287
- /**
39288
- * Subjects allowed to bypass the gate, as agent:<id> or human:<id>.
39289
- */
39290
- bypass?: Array<string>;
39291
39720
  };
39292
39721
  /**
39293
39722
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
@@ -40100,7 +40529,7 @@ export type DevopsChangeCell = {
40100
40529
  */
40101
40530
  export type DevopsMergeGate = {
40102
40531
  /**
40103
- * The gate's verdict: failed as soon as one check failed, pending while one is still undecided, passed only when every check passed or was skipped.
40532
+ * The gate's verdict, fail-closed: failed as soon as one counted check failed, could not be evaluated (unavailable) or applies and produced no answer (not_run); pending while a counted check is still waiting; passed only when every counted check passed or does not apply (not_applicable). A check with no answer never passes; the one exception is a recorded override (overrideGate).
40104
40533
  */
40105
40534
  state: 'pending' | 'passed' | 'failed';
40106
40535
  /**
@@ -40116,9 +40545,38 @@ export type DevopsMergeGate = {
40116
40545
  */
40117
40546
  name: 'exposure-declared' | 'flag-registered' | 'flag-paired-scenarios' | 'removal-ticket' | 'tests' | 'lockfile' | 'exposure-judged' | 'owner-approved' | 'repo-lint';
40118
40547
  /**
40119
- * The check's verdict: skipped means the check does not apply to this exposure kind, and pending means its evidence has not arrived yet — which is never treated as passing.
40548
+ * The check's verdict; not_applicable means the check does not apply to this change and passes, while not_run means it applies and produced no answer, which never passes when counted.
40120
40549
  */
40121
- result: 'passed' | 'failed' | 'skipped' | 'pending';
40550
+ result: 'passed' | 'failed' | 'not_applicable' | 'not_run' | 'pending' | 'unavailable';
40551
+ /**
40552
+ * How the project's gate policy counts this check; enforce when absent. off on a shown check means it is reported and not counted.
40553
+ */
40554
+ mode?: 'enforce' | 'evaluate' | 'off';
40555
+ /**
40556
+ * Whether this check moves the gate's state; false for evaluate and off checks and for a check a recorded override let through. Absent means counted.
40557
+ */
40558
+ counted?: boolean;
40559
+ /**
40560
+ * Why a check has no answer; infrastructure means the platform failed (the build machine did not come up, its records could not be read, no result within the bound), not the change, so the next step is rerunGate, not an edit.
40561
+ */
40562
+ cause?: 'infrastructure';
40563
+ /**
40564
+ * Present when a recorded override let this check through at this head: the check keeps its real result and stops counting.
40565
+ */
40566
+ overriddenBy?: {
40567
+ /**
40568
+ * The override id (gov_…) overrideGate recorded.
40569
+ */
40570
+ override: string;
40571
+ /**
40572
+ * The Vice President who authorized it, as agent:<id> or human:<id>.
40573
+ */
40574
+ authorizedBy: string;
40575
+ /**
40576
+ * The ticket the authorization is written on.
40577
+ */
40578
+ ticket: string;
40579
+ };
40122
40580
  /**
40123
40581
  * What to do about a failed or pending check, or the gatekeeper's reason for a judgement; absent when the check simply passed.
40124
40582
  */
@@ -40492,6 +40950,71 @@ export type DevopsCleanupEntry = {
40492
40950
  */
40493
40951
  error: string | null;
40494
40952
  };
40953
+ /**
40954
+ * One tenant event type at one schema version.
40955
+ */
40956
+ export type EventsEventType = {
40957
+ /**
40958
+ * The event type name, for example automation.run.finished; pass it in the types of subscriptions.create.
40959
+ */
40960
+ type: string;
40961
+ /**
40962
+ * 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.
40963
+ */
40964
+ schemaversion: number;
40965
+ /**
40966
+ * What the event means and when it is published.
40967
+ */
40968
+ description?: string;
40969
+ /**
40970
+ * JSON Schema of the event's data, the body of the letter a subscription writes.
40971
+ */
40972
+ data_schema: {
40973
+ [key: string]: unknown;
40974
+ };
40975
+ /**
40976
+ * The names a filter of this type may use, always subject and actor, plus data.<field> for each top-level field of data_schema.
40977
+ */
40978
+ filterable: Array<string>;
40979
+ };
40980
+ /**
40981
+ * An RFC 9457 problem; every non-2xx response of this face has this shape.
40982
+ */
40983
+ export type EventsEventsProblem = {
40984
+ /**
40985
+ * The HTTP status of the response.
40986
+ */
40987
+ status: number;
40988
+ /**
40989
+ * Machine-readable failure, such as INVALID_PARAMS, UNSUPPORTED_FILTER_DIALECT, SUBSCRIPTION_NOT_FOUND or PROVIDER_UNAVAILABLE.
40990
+ */
40991
+ code: string;
40992
+ /**
40993
+ * Human-readable reason; it names the offending field and what to do.
40994
+ */
40995
+ message: string;
40996
+ /**
40997
+ * True when repeating the same call can succeed, as for PROVIDER_UNAVAILABLE; false when the request itself must change.
40998
+ */
40999
+ retryable?: boolean;
41000
+ };
41001
+ /**
41002
+ * 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>.
41003
+ */
41004
+ export type EventsEventSubscriptionFilter = {
41005
+ /**
41006
+ * The attribute equals the value, for example { subject: "runs/run_1" } or { "data.status": "faulted" }.
41007
+ */
41008
+ exact?: {
41009
+ [key: string]: string;
41010
+ };
41011
+ /**
41012
+ * The attribute starts with the value, for example { subject: "runs/" }.
41013
+ */
41014
+ prefix?: {
41015
+ [key: string]: string;
41016
+ };
41017
+ };
40495
41018
  /**
40496
41019
  * Counts of files still attached to the store or batch, grouped by ingestion status.
40497
41020
  */
@@ -41554,7 +42077,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
41554
42077
  * Edit operations: the change this step applied to its parent asset.
41555
42078
  */
41556
42079
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
41557
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
42080
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
41558
42081
  /**
41559
42082
  * State of a requested generation output.
41560
42083
  */
@@ -41900,6 +42423,192 @@ export type MediaHlsRendition = {
41900
42423
  state: MediaHlsRenditionState;
41901
42424
  };
41902
42425
  export type MediaVoiceConsentId = string;
42426
+ /**
42427
+ * One referenced asset as expand=assets returns it: enough to draw it without another call.
42428
+ */
42429
+ export type MediaWorkAsset = {
42430
+ /**
42431
+ * The asset’s material type, such as image or video.
42432
+ */
42433
+ type: MediaMaterialType;
42434
+ /**
42435
+ * Short-lived delivery URL of the asset.
42436
+ */
42437
+ url: string;
42438
+ /**
42439
+ * Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
42440
+ */
42441
+ thumbnail_url: string;
42442
+ /**
42443
+ * Width in pixels when known.
42444
+ */
42445
+ width?: number;
42446
+ /**
42447
+ * Height in pixels when known.
42448
+ */
42449
+ height?: number;
42450
+ /**
42451
+ * The asset’s display name.
42452
+ */
42453
+ display_name: string;
42454
+ };
42455
+ /**
42456
+ * Body of a gallery (图文). Order is the order of items.
42457
+ */
42458
+ export type MediaGalleryBody = {
42459
+ /**
42460
+ * Title, 1 to 100 characters.
42461
+ */
42462
+ title: string;
42463
+ /**
42464
+ * Body text, at most 10000 characters.
42465
+ */
42466
+ text?: string;
42467
+ /**
42468
+ * Topics without the # sign, at most 30 of up to 40 characters.
42469
+ */
42470
+ topics?: Array<string>;
42471
+ /**
42472
+ * Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
42473
+ */
42474
+ cover?: string;
42475
+ /**
42476
+ * Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
42477
+ */
42478
+ items: Array<MediaGalleryItem>;
42479
+ /**
42480
+ * Display style; defaults to xiaohongshu in the Console.
42481
+ */
42482
+ style?: MediaWorkStyle;
42483
+ };
42484
+ /**
42485
+ * Body of an article (长文). Inline images live in the Markdown as ![alt](asset:<asset_id>) and sit where they are written.
42486
+ */
42487
+ export type MediaArticleBody = {
42488
+ /**
42489
+ * Title, 1 to 200 characters.
42490
+ */
42491
+ title: string;
42492
+ /**
42493
+ * Optional summary or digest, at most 500 characters.
42494
+ */
42495
+ summary?: string;
42496
+ /**
42497
+ * Optional author name, at most 60 characters.
42498
+ */
42499
+ author?: string;
42500
+ /**
42501
+ * The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
42502
+ */
42503
+ body: string;
42504
+ /**
42505
+ * Optional cover: an image or sticker asset of this library.
42506
+ */
42507
+ cover?: string;
42508
+ /**
42509
+ * Display style; defaults to wechat_mp in the Console.
42510
+ */
42511
+ style?: MediaWorkStyle;
42512
+ };
42513
+ /**
42514
+ * Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
42515
+ */
42516
+ export type MediaProductListingBody = {
42517
+ /**
42518
+ * Listing title, 1 to 200 characters.
42519
+ */
42520
+ title: string;
42521
+ /**
42522
+ * Selling points in order, at most 10 of up to 100 characters.
42523
+ */
42524
+ selling_points?: Array<string>;
42525
+ /**
42526
+ * Parameter rows in order, at most 50.
42527
+ */
42528
+ attributes?: Array<MediaListingAttribute>;
42529
+ /**
42530
+ * Main images in order, 1 to 20 image or sticker assets of this library.
42531
+ */
42532
+ main: Array<string>;
42533
+ /**
42534
+ * Detail images in order, at most 100 image or sticker assets of this library.
42535
+ */
42536
+ detail?: Array<string>;
42537
+ /**
42538
+ * SKUs in order, at most 200.
42539
+ */
42540
+ skus?: Array<MediaListingSku>;
42541
+ /**
42542
+ * Optional product element (material_type product) this listing shows.
42543
+ */
42544
+ product?: string;
42545
+ /**
42546
+ * Display style; defaults to generic in the Console.
42547
+ */
42548
+ style?: MediaWorkStyle;
42549
+ };
42550
+ /**
42551
+ * 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.
42552
+ */
42553
+ export type MediaBlocksBody = {
42554
+ /**
42555
+ * The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
42556
+ */
42557
+ title: string;
42558
+ /**
42559
+ * Optional Editor.js save time in milliseconds, kept as sent.
42560
+ */
42561
+ time?: number;
42562
+ /**
42563
+ * The blocks in order, 1 to 500.
42564
+ */
42565
+ blocks: Array<MediaEditorBlock>;
42566
+ /**
42567
+ * Optional Editor.js version string, kept as sent.
42568
+ */
42569
+ version?: string;
42570
+ };
42571
+ /**
42572
+ * One work in a list.
42573
+ */
42574
+ export type MediaWorkSummary = {
42575
+ /**
42576
+ * Always work.
42577
+ */
42578
+ object: 'work';
42579
+ /**
42580
+ * Work id (wrk_…).
42581
+ */
42582
+ id: string;
42583
+ /**
42584
+ * The work’s kind.
42585
+ */
42586
+ kind: MediaWorkKind;
42587
+ /**
42588
+ * The work’s title.
42589
+ */
42590
+ title: string;
42591
+ /**
42592
+ * The work’s series, or null.
42593
+ */
42594
+ series: string | null;
42595
+ /**
42596
+ * Short-lived URL of the cover picture, or null when it is missing.
42597
+ */
42598
+ cover_url: string | null;
42599
+ /**
42600
+ * How many distinct assets the body orders, cover and product element excluded.
42601
+ */
42602
+ item_count: number;
42603
+ /**
42604
+ * How many referenced assets have been deleted since.
42605
+ */
42606
+ missing_count: number;
42607
+ /**
42608
+ * When the work last changed.
42609
+ */
42610
+ updated_at: MediaIsoTimestamp;
42611
+ };
41903
42612
  /**
41904
42613
  * A kind of entity the graph accepts, for example a file or a customer.
41905
42614
  */
@@ -48884,7 +49593,7 @@ export type MediaSemanticMatch = {
48884
49593
  /**
48885
49594
  * Type of change recorded for a library, asset, processing task, search index or batch.
48886
49595
  */
48887
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
49596
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
48888
49597
  /**
48889
49598
  * One picture an element names, with the word the caller uses for that view.
48890
49599
  */
@@ -48980,6 +49689,75 @@ export type MediaGenerationCapabilityModel = {
48980
49689
  * Readiness of one rung or of the ladder it is part of.
48981
49690
  */
48982
49691
  export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
49692
+ /**
49693
+ * One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
49694
+ */
49695
+ export type MediaGalleryItem = {
49696
+ /**
49697
+ * An image, sticker or video asset of this library; its position in items is its position in the gallery.
49698
+ */
49699
+ asset_id: string;
49700
+ /**
49701
+ * Optional caption for this picture, at most 1000 characters.
49702
+ */
49703
+ caption?: string;
49704
+ } | {
49705
+ /**
49706
+ * A text segment shown between pictures, at most 1000 characters.
49707
+ */
49708
+ text: string;
49709
+ };
49710
+ /**
49711
+ * Which platform look the Console draws the work in; a display hint, never a platform check.
49712
+ */
49713
+ export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
49714
+ /**
49715
+ * One parameter row of a listing.
49716
+ */
49717
+ export type MediaListingAttribute = {
49718
+ /**
49719
+ * Parameter name such as 容量, at most 40 characters.
49720
+ */
49721
+ name: string;
49722
+ /**
49723
+ * Parameter value such as 500ml, at most 200 characters.
49724
+ */
49725
+ value: string;
49726
+ };
49727
+ /**
49728
+ * One SKU of a listing.
49729
+ */
49730
+ export type MediaListingSku = {
49731
+ /**
49732
+ * The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
49733
+ */
49734
+ spec: {
49735
+ [key: string]: string;
49736
+ };
49737
+ /**
49738
+ * Optional picture of this SKU: an image or sticker asset of this library.
49739
+ */
49740
+ asset_id?: string;
49741
+ };
49742
+ /**
49743
+ * 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.
49744
+ */
49745
+ export type MediaEditorBlock = {
49746
+ /**
49747
+ * Block id, 1–64 letters, digits, _ or -, unique in the body.
49748
+ */
49749
+ id: string;
49750
+ /**
49751
+ * The official Editor.js block type.
49752
+ */
49753
+ type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
49754
+ /**
49755
+ * The block’s data in that type’s Editor.js shape.
49756
+ */
49757
+ data: {
49758
+ [key: string]: unknown;
49759
+ };
49760
+ };
48983
49761
  /**
48984
49762
  * Auto-resume enabled flag for paused sandboxes. Default false.
48985
49763
  */
@@ -50931,7 +51709,7 @@ export type PraxisSdkSsePostModelV1Messages = {
50931
51709
  };
50932
51710
  export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
50933
51711
  export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
50934
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
51712
+ export type PraxisSdkSseGetAutomationV1RunsRunIdEvents = ({
50935
51713
  /**
50936
51714
  * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data.
50937
51715
  */
@@ -50964,7 +51742,7 @@ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
50964
51742
  [key: string]: unknown;
50965
51743
  };
50966
51744
  };
50967
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
51745
+ export type PraxisSdkSseGetAutomationV1RunsRunIdLogs = ({
50968
51746
  /**
50969
51747
  * SSE event name: log, one log line is carried in data.
50970
51748
  */
@@ -52600,6 +53378,10 @@ export type DevopsWorkspaceStagePath = DevopsWorkspaceStage;
52600
53378
  * 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.
52601
53379
  */
52602
53380
  export type DevopsUnitIdPath = string;
53381
+ /**
53382
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
53383
+ */
53384
+ export type EventsSubscriptionId = string;
52603
53385
  /**
52604
53386
  * A type name from types.list, with its dots preserved — a display label is not accepted.
52605
53387
  */
@@ -70213,6 +70995,78 @@ export type BrowserRunPageActionData = {
70213
70995
  * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
70214
70996
  */
70215
70997
  tab?: string;
70998
+ } | {
70999
+ /**
71000
+ * 动作类型,固定为 route。
71001
+ */
71002
+ type: 'route';
71003
+ /**
71004
+ * 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
71005
+ */
71006
+ url: string;
71007
+ /**
71008
+ * 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
71009
+ */
71010
+ method?: string;
71011
+ /**
71012
+ * 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
71013
+ */
71014
+ tab?: string;
71015
+ /**
71016
+ * 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
71017
+ */
71018
+ response: {
71019
+ /**
71020
+ * 直接返回给定响应。
71021
+ */
71022
+ kind: 'fulfill';
71023
+ /**
71024
+ * 返回的 HTTP 状态码,100 到 599。
71025
+ */
71026
+ status: number;
71027
+ /**
71028
+ * 返回的响应头,名 → 值;最多 100 项。
71029
+ */
71030
+ headers?: {
71031
+ [key: string]: string;
71032
+ };
71033
+ /**
71034
+ * 返回的响应体,最多 1000000 个字符。
71035
+ */
71036
+ body?: string;
71037
+ } | {
71038
+ /**
71039
+ * 让请求失败,页面看到一次网络错误。
71040
+ */
71041
+ kind: 'abort';
71042
+ /**
71043
+ * Playwright 的错误码;省略为 failed。
71044
+ */
71045
+ error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
71046
+ } | {
71047
+ /**
71048
+ * 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
71049
+ */
71050
+ kind: 'delay';
71051
+ /**
71052
+ * 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
71053
+ */
71054
+ ms: number;
71055
+ };
71056
+ } | {
71057
+ /**
71058
+ * 动作类型,固定为 unroute。
71059
+ */
71060
+ type: 'unroute';
71061
+ /**
71062
+ * route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
71063
+ */
71064
+ routeId: string;
71065
+ } | {
71066
+ /**
71067
+ * 动作类型,固定为 routes。
71068
+ */
71069
+ type: 'routes';
70216
71070
  } | {
70217
71071
  /**
70218
71072
  * 动作类型:后退、前进或刷新当前页。
@@ -70431,6 +71285,60 @@ export type BrowserRunPageActionResponses = {
70431
71285
  * 已设置的 cookie 的域。
70432
71286
  */
70433
71287
  domain: string;
71288
+ } | {
71289
+ /**
71290
+ * 动作类型,固定为 route。
71291
+ */
71292
+ type: 'route';
71293
+ /**
71294
+ * 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
71295
+ */
71296
+ routeId: string;
71297
+ } | {
71298
+ /**
71299
+ * 动作类型,固定为 unroute。
71300
+ */
71301
+ type: 'unroute';
71302
+ /**
71303
+ * 请求移除的规则 ID。
71304
+ */
71305
+ routeId: string;
71306
+ /**
71307
+ * 是否真的移除了一条规则;ID 不存在时为 false。
71308
+ */
71309
+ removed: boolean;
71310
+ } | {
71311
+ /**
71312
+ * 动作类型,固定为 routes。
71313
+ */
71314
+ type: 'routes';
71315
+ /**
71316
+ * 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
71317
+ */
71318
+ routes: Array<{
71319
+ /**
71320
+ * 规则 ID,注册时由服务端生成并返回。
71321
+ */
71322
+ routeId: string;
71323
+ /**
71324
+ * 规则匹配的地址模式。
71325
+ */
71326
+ url: string;
71327
+ /**
71328
+ * 规则限定的 HTTP 方法;不限定时省略。
71329
+ */
71330
+ method?: string;
71331
+ /**
71332
+ * 规则只作用的标签页;作用于整个会话时省略。
71333
+ */
71334
+ tab?: string;
71335
+ /**
71336
+ * 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
71337
+ */
71338
+ response: {
71339
+ [key: string]: unknown;
71340
+ };
71341
+ }>;
70434
71342
  };
70435
71343
  };
70436
71344
  export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
@@ -78830,10 +79738,10 @@ export type ListOrganizationCostsData = {
78830
79738
  */
78831
79739
  time_zone?: string;
78832
79740
  /**
78833
- * 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).
79741
+ * 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.
78834
79742
  *
78835
79743
  */
78836
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79744
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
78837
79745
  /**
78838
79746
  * Opaque cursor from the previous page's next_page.
78839
79747
  */
@@ -78900,6 +79808,22 @@ export type ListOrganizationCostsResponses = {
78900
79808
  * Display name of the resource; falls back to ResourceId when no name is known.
78901
79809
  */
78902
79810
  ResourceName?: string;
79811
+ /**
79812
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79813
+ */
79814
+ SessionId?: string | null;
79815
+ /**
79816
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79817
+ */
79818
+ AgentId?: string | null;
79819
+ /**
79820
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79821
+ */
79822
+ ApiKeyId?: string | null;
79823
+ /**
79824
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79825
+ */
79826
+ RunId?: string | null;
78903
79827
  /**
78904
79828
  * Amount in BillingCurrency: US dollars for USD, decimal string, 6 decimals.
78905
79829
  */
@@ -78948,10 +79872,10 @@ export type ListOrganizationUsageData = {
78948
79872
  */
78949
79873
  time_zone?: string;
78950
79874
  /**
78951
- * 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).
79875
+ * 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.
78952
79876
  *
78953
79877
  */
78954
- group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit'>;
79878
+ group_by?: Array<'ServiceName' | 'ServiceCategory' | 'ResourceId' | 'ConsumedUnit' | 'SessionId' | 'AgentId' | 'ApiKeyId' | 'RunId'>;
78955
79879
  /**
78956
79880
  * Opaque cursor from the previous page's next_page.
78957
79881
  */
@@ -79018,6 +79942,22 @@ export type ListOrganizationUsageResponses = {
79018
79942
  * Display name of the resource; falls back to ResourceId when no name is known.
79019
79943
  */
79020
79944
  ResourceName?: string;
79945
+ /**
79946
+ * The session the usage belongs to. Present when SessionId is grouped by; null for a call no session made.
79947
+ */
79948
+ SessionId?: string | null;
79949
+ /**
79950
+ * The agent that made the call. Present when AgentId is grouped by; null when the caller is not a session's agent.
79951
+ */
79952
+ AgentId?: string | null;
79953
+ /**
79954
+ * The API key the call was made with. Present when ApiKeyId is grouped by; null for session, run and binding callers.
79955
+ */
79956
+ ApiKeyId?: string | null;
79957
+ /**
79958
+ * The automation run the usage belongs to. Present when RunId is grouped by; null when no automation run made the call.
79959
+ */
79960
+ RunId?: string | null;
79021
79961
  /**
79022
79962
  * Exact decimal string in ConsumedUnit.
79023
79963
  */
@@ -79134,6 +80074,22 @@ export type ListOrganizationEventsResponses = {
79134
80074
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79135
80075
  */
79136
80076
  request_id: string | null;
80077
+ /**
80078
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80079
+ */
80080
+ session_id: string | null;
80081
+ /**
80082
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80083
+ */
80084
+ agent_id: string | null;
80085
+ /**
80086
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80087
+ */
80088
+ api_key_id: string | null;
80089
+ /**
80090
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80091
+ */
80092
+ run_id: string | null;
79137
80093
  /**
79138
80094
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79139
80095
  */
@@ -79255,6 +80211,22 @@ export type GetOrganizationEventResponses = {
79255
80211
  * X-Request-Id of the API call that produced the usage; null for usage that does not come from a request.
79256
80212
  */
79257
80213
  request_id: string | null;
80214
+ /**
80215
+ * The session the usage belongs to (sesn_…, public form); null for a call no session made.
80216
+ */
80217
+ session_id: string | null;
80218
+ /**
80219
+ * The agent that made the call (agent_…); null when the caller is not a session's agent.
80220
+ */
80221
+ agent_id: string | null;
80222
+ /**
80223
+ * The API key the call was made with (key_…); null for session, run and binding callers.
80224
+ */
80225
+ api_key_id: string | null;
80226
+ /**
80227
+ * The automation run the usage belongs to (run_…); null when no automation run made the call.
80228
+ */
80229
+ run_id: string | null;
79258
80230
  /**
79259
80231
  * How the usage was charged: settlement state, any shortfall, and why nothing was charged.
79260
80232
  */
@@ -79533,9 +80505,9 @@ export type ListOrganizationNotificationLettersResponses = {
79533
80505
  */
79534
80506
  thread: string;
79535
80507
  /**
79536
- * 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.
80508
+ * 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.
79537
80509
  */
79538
- kind: 'notice' | 'mention' | 'decision';
80510
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79539
80511
  /**
79540
80512
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79541
80513
  */
@@ -79722,7 +80694,7 @@ export type GetOrganizationNotificationLetterResponses = {
79722
80694
  /**
79723
80695
  * The letter's kind (ADR-193 §2, #4107).
79724
80696
  */
79725
- kind: 'notice' | 'mention' | 'decision';
80697
+ kind: 'notice' | 'mention' | 'decision' | 'event';
79726
80698
  /**
79727
80699
  * Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
79728
80700
  */
@@ -79815,7 +80787,7 @@ export type ReadAllOrganizationNotificationLettersData = {
79815
80787
  /**
79816
80788
  * Only letters of this kind; omit for all kinds.
79817
80789
  */
79818
- kind?: 'notice' | 'mention' | 'decision';
80790
+ kind?: 'notice' | 'mention' | 'decision' | 'event';
79819
80791
  };
79820
80792
  path?: never;
79821
80793
  query?: never;
@@ -82055,6 +83027,117 @@ export type GetByodPairingResponses = {
82055
83027
  };
82056
83028
  };
82057
83029
  export type GetByodPairingResponse = GetByodPairingResponses[keyof GetByodPairingResponses];
83030
+ export type GetByodPairingStatusData = {
83031
+ body?: never;
83032
+ path: {
83033
+ /**
83034
+ * The 8-character pairing code returned by createByodPairing. An unknown, spent or expired code answers 404.
83035
+ */
83036
+ code: string;
83037
+ };
83038
+ query?: never;
83039
+ url: '/sandbox/v1/byod/pairings/{code}/status';
83040
+ };
83041
+ export type GetByodPairingStatusErrors = {
83042
+ /**
83043
+ * Authentication required: supply an organization API key that carries a tenant.
83044
+ */
83045
+ 401: unknown;
83046
+ /**
83047
+ * NOT_FOUND: no such pairing for this organization. The code is unknown or belongs to another organization; the two are indistinguishable.
83048
+ */
83049
+ 404: unknown;
83050
+ /**
83051
+ * SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry.
83052
+ */
83053
+ 503: unknown;
83054
+ };
83055
+ export type GetByodPairingStatusResponses = {
83056
+ /**
83057
+ * One pairing of the organization.
83058
+ */
83059
+ 200: {
83060
+ /**
83061
+ * The 8-character pairing code that was asked about.
83062
+ */
83063
+ code: string;
83064
+ /**
83065
+ * When the code stops working, as an ISO-8601 timestamp.
83066
+ */
83067
+ expires_at: string;
83068
+ /**
83069
+ * The device this code registered, or null while no phone has claimed it (or when that device was disconnected since).
83070
+ */
83071
+ claimed_device: {
83072
+ /**
83073
+ * Resource type; always "byod_device".
83074
+ */
83075
+ object: 'byod_device';
83076
+ /**
83077
+ * 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.
83078
+ */
83079
+ id: string;
83080
+ /**
83081
+ * The device's platform, which decides the use faces it answers. A desktop (macos, linux) pairs like a phone; windows is not supported yet.
83082
+ */
83083
+ platform: 'android' | 'macos' | 'linux';
83084
+ /**
83085
+ * Display name of the device, 1 to 64 characters. Change it with updateByodDevice; it is not an identifier.
83086
+ */
83087
+ name: string;
83088
+ /**
83089
+ * Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none.
83090
+ */
83091
+ model: string;
83092
+ /**
83093
+ * Operating-system version the app reported, such as 16; empty when the app sent none. Not the device's model.
83094
+ */
83095
+ os_version: string;
83096
+ /**
83097
+ * 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.
83098
+ */
83099
+ online: boolean;
83100
+ /**
83101
+ * When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects.
83102
+ */
83103
+ last_seen_at: string | null;
83104
+ /**
83105
+ * When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first.
83106
+ */
83107
+ created_at: string;
83108
+ /**
83109
+ * 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).
83110
+ */
83111
+ capabilities: Array<'display' | 'agent'>;
83112
+ /**
83113
+ * 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.
83114
+ */
83115
+ agent_dirs: Array<string>;
83116
+ /**
83117
+ * 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.
83118
+ */
83119
+ agent_bindings: Array<{
83120
+ /**
83121
+ * The absolute directory the desktop bound to an agent with praxis agent connect.
83122
+ */
83123
+ dir: string;
83124
+ /**
83125
+ * The agent the directory is bound to: its identity number or its agent id.
83126
+ */
83127
+ agent: string;
83128
+ }>;
83129
+ /**
83130
+ * 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.
83131
+ */
83132
+ envd_version: string | null;
83133
+ /**
83134
+ * 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.
83135
+ */
83136
+ allow_bypass: boolean;
83137
+ } | null;
83138
+ };
83139
+ };
83140
+ export type GetByodPairingStatusResponse = GetByodPairingStatusResponses[keyof GetByodPairingStatusResponses];
82058
83141
  export type ClaimByodPairingData = {
82059
83142
  /**
82060
83143
  * What the phone's app knows about itself when it claims the pairing.
@@ -97675,14 +98758,14 @@ export type AutomationActionsGetData = {
97675
98758
  /**
97676
98759
  * 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.
97677
98760
  */
97678
- ns: string;
98761
+ namespace: string;
97679
98762
  /**
97680
98763
  * 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}.
97681
98764
  */
97682
98765
  name: string;
97683
98766
  };
97684
98767
  query?: never;
97685
- url: '/automation/v1/actions/{ns}/{name}';
98768
+ url: '/automation/v1/actions/{namespace}/{name}';
97686
98769
  };
97687
98770
  export type AutomationActionsGetErrors = {
97688
98771
  /**
@@ -97805,7 +98888,7 @@ export type AutomationActionsUpdateData = {
97805
98888
  /**
97806
98889
  * 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.
97807
98890
  */
97808
- ns: string;
98891
+ namespace: string;
97809
98892
  /**
97810
98893
  * 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}.
97811
98894
  */
@@ -97817,7 +98900,7 @@ export type AutomationActionsUpdateData = {
97817
98900
  */
97818
98901
  dry_run?: boolean;
97819
98902
  };
97820
- url: '/automation/v1/actions/{ns}/{name}';
98903
+ url: '/automation/v1/actions/{namespace}/{name}';
97821
98904
  };
97822
98905
  export type AutomationActionsUpdateErrors = {
97823
98906
  /**
@@ -97868,7 +98951,7 @@ export type AutomationActionsRevisionsData = {
97868
98951
  /**
97869
98952
  * 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.
97870
98953
  */
97871
- ns: string;
98954
+ namespace: string;
97872
98955
  /**
97873
98956
  * 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}.
97874
98957
  */
@@ -97888,7 +98971,7 @@ export type AutomationActionsRevisionsData = {
97888
98971
  */
97889
98972
  expand?: 'source';
97890
98973
  };
97891
- url: '/automation/v1/actions/{ns}/{name}/revisions';
98974
+ url: '/automation/v1/actions/{namespace}/{name}/revisions';
97892
98975
  };
97893
98976
  export type AutomationActionsRevisionsErrors = {
97894
98977
  /**
@@ -97927,7 +99010,7 @@ export type AutomationActionsRevisionData = {
97927
99010
  /**
97928
99011
  * 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.
97929
99012
  */
97930
- ns: string;
99013
+ namespace: string;
97931
99014
  /**
97932
99015
  * 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}.
97933
99016
  */
@@ -97938,7 +99021,7 @@ export type AutomationActionsRevisionData = {
97938
99021
  revision: string;
97939
99022
  };
97940
99023
  query?: never;
97941
- url: '/automation/v1/actions/{ns}/{name}/revisions/{revision}';
99024
+ url: '/automation/v1/actions/{namespace}/{name}/revisions/{revision}';
97942
99025
  };
97943
99026
  export type AutomationActionsRevisionErrors = {
97944
99027
  /**
@@ -97988,14 +99071,14 @@ export type AutomationActionsRollbackData = {
97988
99071
  /**
97989
99072
  * 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.
97990
99073
  */
97991
- ns: string;
99074
+ namespace: string;
97992
99075
  /**
97993
99076
  * 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}.
97994
99077
  */
97995
99078
  name: string;
97996
99079
  };
97997
99080
  query?: never;
97998
- url: '/automation/v1/actions/{ns}/{name}/rollback';
99081
+ url: '/automation/v1/actions/{namespace}/{name}/rollback';
97999
99082
  };
98000
99083
  export type AutomationActionsRollbackErrors = {
98001
99084
  /**
@@ -98049,7 +99132,7 @@ export type AutomationActionsInvocationsData = {
98049
99132
  /**
98050
99133
  * 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.
98051
99134
  */
98052
- ns: string;
99135
+ namespace: string;
98053
99136
  /**
98054
99137
  * 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}.
98055
99138
  */
@@ -98085,7 +99168,7 @@ export type AutomationActionsInvocationsData = {
98085
99168
  */
98086
99169
  'created_at[gte]'?: string;
98087
99170
  };
98088
- url: '/automation/v1/actions/{ns}/{name}/invocations';
99171
+ url: '/automation/v1/actions/{namespace}/{name}/invocations';
98089
99172
  };
98090
99173
  export type AutomationActionsInvocationsErrors = {
98091
99174
  /**
@@ -98124,7 +99207,7 @@ export type AutomationActionsDependentsData = {
98124
99207
  /**
98125
99208
  * 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.
98126
99209
  */
98127
- ns: string;
99210
+ namespace: string;
98128
99211
  /**
98129
99212
  * 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}.
98130
99213
  */
@@ -98140,7 +99223,7 @@ export type AutomationActionsDependentsData = {
98140
99223
  */
98141
99224
  cursor?: string;
98142
99225
  };
98143
- url: '/automation/v1/actions/{ns}/{name}/dependents';
99226
+ url: '/automation/v1/actions/{namespace}/{name}/dependents';
98144
99227
  };
98145
99228
  export type AutomationActionsDependentsErrors = {
98146
99229
  /**
@@ -98179,14 +99262,14 @@ export type AutomationActionsArchiveData = {
98179
99262
  /**
98180
99263
  * 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.
98181
99264
  */
98182
- ns: string;
99265
+ namespace: string;
98183
99266
  /**
98184
99267
  * 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}.
98185
99268
  */
98186
99269
  name: string;
98187
99270
  };
98188
99271
  query?: never;
98189
- url: '/automation/v1/actions/{ns}/{name}/archive';
99272
+ url: '/automation/v1/actions/{namespace}/{name}/archive';
98190
99273
  };
98191
99274
  export type AutomationActionsArchiveErrors = {
98192
99275
  /**
@@ -98220,14 +99303,14 @@ export type AutomationActionsRestoreData = {
98220
99303
  /**
98221
99304
  * 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.
98222
99305
  */
98223
- ns: string;
99306
+ namespace: string;
98224
99307
  /**
98225
99308
  * 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}.
98226
99309
  */
98227
99310
  name: string;
98228
99311
  };
98229
99312
  query?: never;
98230
- url: '/automation/v1/actions/{ns}/{name}/restore';
99313
+ url: '/automation/v1/actions/{namespace}/{name}/restore';
98231
99314
  };
98232
99315
  export type AutomationActionsRestoreErrors = {
98233
99316
  /**
@@ -98342,9 +99425,9 @@ export type AutomationScriptsCreateData = {
98342
99425
  */
98343
99426
  description?: string;
98344
99427
  /**
98345
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99428
+ * 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 }.
98346
99429
  */
98347
- draft?: string;
99430
+ draft?: AutomationDraftCreateInput | string;
98348
99431
  /**
98349
99432
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
98350
99433
  */
@@ -98399,14 +99482,14 @@ export type AutomationScriptsGetData = {
98399
99482
  /**
98400
99483
  * 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.
98401
99484
  */
98402
- ns: string;
99485
+ namespace: string;
98403
99486
  /**
98404
99487
  * 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}.
98405
99488
  */
98406
99489
  name: string;
98407
99490
  };
98408
99491
  query?: never;
98409
- url: '/automation/v1/scripts/{ns}/{name}';
99492
+ url: '/automation/v1/scripts/{namespace}/{name}';
98410
99493
  };
98411
99494
  export type AutomationScriptsGetErrors = {
98412
99495
  /**
@@ -98443,28 +99526,30 @@ export type AutomationScriptsPatchData = {
98443
99526
  [key: string]: string;
98444
99527
  };
98445
99528
  /**
98446
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
99529
+ * 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.
98447
99530
  */
98448
- draft?: string;
99531
+ draft?: AutomationDraftUpdateInput | string;
98449
99532
  };
98450
- headers: {
99533
+ headers?: {
98451
99534
  /**
98452
- * 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.
99535
+ * 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.
99536
+ *
99537
+ * @deprecated
98453
99538
  */
98454
- 'If-Match': string;
99539
+ 'If-Match'?: string;
98455
99540
  };
98456
99541
  path: {
98457
99542
  /**
98458
99543
  * 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.
98459
99544
  */
98460
- ns: string;
99545
+ namespace: string;
98461
99546
  /**
98462
99547
  * 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}.
98463
99548
  */
98464
99549
  name: string;
98465
99550
  };
98466
99551
  query?: never;
98467
- url: '/automation/v1/scripts/{ns}/{name}';
99552
+ url: '/automation/v1/scripts/{namespace}/{name}';
98468
99553
  };
98469
99554
  export type AutomationScriptsPatchErrors = {
98470
99555
  /**
@@ -98506,14 +99591,14 @@ export type AutomationScriptsArchiveData = {
98506
99591
  /**
98507
99592
  * 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.
98508
99593
  */
98509
- ns: string;
99594
+ namespace: string;
98510
99595
  /**
98511
99596
  * 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}.
98512
99597
  */
98513
99598
  name: string;
98514
99599
  };
98515
99600
  query?: never;
98516
- url: '/automation/v1/scripts/{ns}/{name}/archive';
99601
+ url: '/automation/v1/scripts/{namespace}/{name}/archive';
98517
99602
  };
98518
99603
  export type AutomationScriptsArchiveErrors = {
98519
99604
  /**
@@ -98551,14 +99636,14 @@ export type AutomationScriptsRestoreData = {
98551
99636
  /**
98552
99637
  * 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.
98553
99638
  */
98554
- ns: string;
99639
+ namespace: string;
98555
99640
  /**
98556
99641
  * 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}.
98557
99642
  */
98558
99643
  name: string;
98559
99644
  };
98560
99645
  query?: never;
98561
- url: '/automation/v1/scripts/{ns}/{name}/restore';
99646
+ url: '/automation/v1/scripts/{namespace}/{name}/restore';
98562
99647
  };
98563
99648
  export type AutomationScriptsRestoreErrors = {
98564
99649
  /**
@@ -98596,7 +99681,7 @@ export type AutomationScriptsVersionsData = {
98596
99681
  /**
98597
99682
  * 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.
98598
99683
  */
98599
- ns: string;
99684
+ namespace: string;
98600
99685
  /**
98601
99686
  * 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}.
98602
99687
  */
@@ -98616,7 +99701,7 @@ export type AutomationScriptsVersionsData = {
98616
99701
  */
98617
99702
  expand?: 'source';
98618
99703
  };
98619
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99704
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98620
99705
  };
98621
99706
  export type AutomationScriptsVersionsErrors = {
98622
99707
  /**
@@ -98656,13 +99741,24 @@ export type AutomationScriptsPublishData = {
98656
99741
  */
98657
99742
  version: string;
98658
99743
  /**
98659
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
99744
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
99745
+ *
99746
+ * @deprecated
98660
99747
  */
98661
- expected_draft_revision: string;
99748
+ expected_draft_revision?: string;
98662
99749
  /**
98663
99750
  * 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.
98664
99751
  */
98665
99752
  tag?: string;
99753
+ /**
99754
+ * 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.
99755
+ */
99756
+ draft?: {
99757
+ /**
99758
+ * 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.
99759
+ */
99760
+ revision: string;
99761
+ };
98666
99762
  } | {
98667
99763
  /**
98668
99764
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -98691,14 +99787,14 @@ export type AutomationScriptsPublishData = {
98691
99787
  /**
98692
99788
  * 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.
98693
99789
  */
98694
- ns: string;
99790
+ namespace: string;
98695
99791
  /**
98696
99792
  * 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}.
98697
99793
  */
98698
99794
  name: string;
98699
99795
  };
98700
99796
  query?: never;
98701
- url: '/automation/v1/scripts/{ns}/{name}/versions';
99797
+ url: '/automation/v1/scripts/{namespace}/{name}/versions';
98702
99798
  };
98703
99799
  export type AutomationScriptsPublishErrors = {
98704
99800
  /**
@@ -98753,7 +99849,7 @@ export type AutomationScriptsVersionData = {
98753
99849
  /**
98754
99850
  * 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.
98755
99851
  */
98756
- ns: string;
99852
+ namespace: string;
98757
99853
  /**
98758
99854
  * 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}.
98759
99855
  */
@@ -98764,7 +99860,7 @@ export type AutomationScriptsVersionData = {
98764
99860
  version: string;
98765
99861
  };
98766
99862
  query?: never;
98767
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}';
99863
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}';
98768
99864
  };
98769
99865
  export type AutomationScriptsVersionErrors = {
98770
99866
  /**
@@ -98800,7 +99896,7 @@ export type AutomationScriptsDeprecateData = {
98800
99896
  /**
98801
99897
  * 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.
98802
99898
  */
98803
- ns: string;
99899
+ namespace: string;
98804
99900
  /**
98805
99901
  * 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}.
98806
99902
  */
@@ -98811,7 +99907,7 @@ export type AutomationScriptsDeprecateData = {
98811
99907
  version: string;
98812
99908
  };
98813
99909
  query?: never;
98814
- url: '/automation/v1/scripts/{ns}/{name}/versions/{version}/deprecate';
99910
+ url: '/automation/v1/scripts/{namespace}/{name}/versions/{version}/deprecate';
98815
99911
  };
98816
99912
  export type AutomationScriptsDeprecateErrors = {
98817
99913
  /**
@@ -98854,14 +99950,14 @@ export type AutomationScriptsDistTagsData = {
98854
99950
  /**
98855
99951
  * 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.
98856
99952
  */
98857
- ns: string;
99953
+ namespace: string;
98858
99954
  /**
98859
99955
  * 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}.
98860
99956
  */
98861
99957
  name: string;
98862
99958
  };
98863
99959
  query?: never;
98864
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags';
99960
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags';
98865
99961
  };
98866
99962
  export type AutomationScriptsDistTagsErrors = {
98867
99963
  /**
@@ -98893,7 +99989,7 @@ export type AutomationScriptsDeleteDistTagData = {
98893
99989
  /**
98894
99990
  * 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.
98895
99991
  */
98896
- ns: string;
99992
+ namespace: string;
98897
99993
  /**
98898
99994
  * 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}.
98899
99995
  */
@@ -98904,7 +100000,7 @@ export type AutomationScriptsDeleteDistTagData = {
98904
100000
  tag: string;
98905
100001
  };
98906
100002
  query?: never;
98907
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
100003
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98908
100004
  };
98909
100005
  export type AutomationScriptsDeleteDistTagErrors = {
98910
100006
  /**
@@ -98954,7 +100050,7 @@ export type AutomationScriptsSetDistTagData = {
98954
100050
  /**
98955
100051
  * 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.
98956
100052
  */
98957
- ns: string;
100053
+ namespace: string;
98958
100054
  /**
98959
100055
  * 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}.
98960
100056
  */
@@ -98965,7 +100061,7 @@ export type AutomationScriptsSetDistTagData = {
98965
100061
  tag: string;
98966
100062
  };
98967
100063
  query?: never;
98968
- url: '/automation/v1/scripts/{ns}/{name}/dist-tags/{tag}';
100064
+ url: '/automation/v1/scripts/{namespace}/{name}/dist-tags/{tag}';
98969
100065
  };
98970
100066
  export type AutomationScriptsSetDistTagErrors = {
98971
100067
  /**
@@ -99092,9 +100188,9 @@ export type AutomationWorkflowsCreateData = {
99092
100188
  */
99093
100189
  description?: string;
99094
100190
  /**
99095
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100191
+ * 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 }.
99096
100192
  */
99097
- draft?: string;
100193
+ draft?: AutomationDraftCreateInput | string;
99098
100194
  /**
99099
100195
  * At most 50 labels; keys contain 1–40 characters and values at most 500 characters.
99100
100196
  */
@@ -99149,14 +100245,14 @@ export type AutomationWorkflowsGetData = {
99149
100245
  /**
99150
100246
  * Namespace, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}. praxis is reserved for built-in Actions.
99151
100247
  */
99152
- ns: string;
100248
+ namespace: string;
99153
100249
  /**
99154
100250
  * Name, folded to lowercase; matches [a-z0-9][a-z0-9._-]{0,63} for existing references, including historical dotted names; new names must match [a-z0-9][a-z0-9_-]{0,63}.
99155
100251
  */
99156
100252
  name: string;
99157
100253
  };
99158
100254
  query?: never;
99159
- url: '/automation/v1/workflows/{ns}/{name}';
100255
+ url: '/automation/v1/workflows/{namespace}/{name}';
99160
100256
  };
99161
100257
  export type AutomationWorkflowsGetErrors = {
99162
100258
  /**
@@ -99193,28 +100289,30 @@ export type AutomationWorkflowsPatchData = {
99193
100289
  [key: string]: string;
99194
100290
  };
99195
100291
  /**
99196
- * Editable source: TypeScript for scripts, YAML for workflows. Defaults to an empty string on creation.
100292
+ * 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.
99197
100293
  */
99198
- draft?: string;
100294
+ draft?: AutomationDraftUpdateInput | string;
99199
100295
  };
99200
- headers: {
100296
+ headers?: {
99201
100297
  /**
99202
- * 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.
100298
+ * 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.
100299
+ *
100300
+ * @deprecated
99203
100301
  */
99204
- 'If-Match': string;
100302
+ 'If-Match'?: string;
99205
100303
  };
99206
100304
  path: {
99207
100305
  /**
99208
100306
  * 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.
99209
100307
  */
99210
- ns: string;
100308
+ namespace: string;
99211
100309
  /**
99212
100310
  * 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}.
99213
100311
  */
99214
100312
  name: string;
99215
100313
  };
99216
100314
  query?: never;
99217
- url: '/automation/v1/workflows/{ns}/{name}';
100315
+ url: '/automation/v1/workflows/{namespace}/{name}';
99218
100316
  };
99219
100317
  export type AutomationWorkflowsPatchErrors = {
99220
100318
  /**
@@ -99256,14 +100354,14 @@ export type AutomationWorkflowsArchiveData = {
99256
100354
  /**
99257
100355
  * 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.
99258
100356
  */
99259
- ns: string;
100357
+ namespace: string;
99260
100358
  /**
99261
100359
  * 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}.
99262
100360
  */
99263
100361
  name: string;
99264
100362
  };
99265
100363
  query?: never;
99266
- url: '/automation/v1/workflows/{ns}/{name}/archive';
100364
+ url: '/automation/v1/workflows/{namespace}/{name}/archive';
99267
100365
  };
99268
100366
  export type AutomationWorkflowsArchiveErrors = {
99269
100367
  /**
@@ -99301,14 +100399,14 @@ export type AutomationWorkflowsRestoreData = {
99301
100399
  /**
99302
100400
  * 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.
99303
100401
  */
99304
- ns: string;
100402
+ namespace: string;
99305
100403
  /**
99306
100404
  * 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}.
99307
100405
  */
99308
100406
  name: string;
99309
100407
  };
99310
100408
  query?: never;
99311
- url: '/automation/v1/workflows/{ns}/{name}/restore';
100409
+ url: '/automation/v1/workflows/{namespace}/{name}/restore';
99312
100410
  };
99313
100411
  export type AutomationWorkflowsRestoreErrors = {
99314
100412
  /**
@@ -99346,7 +100444,7 @@ export type AutomationWorkflowsVersionsData = {
99346
100444
  /**
99347
100445
  * 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.
99348
100446
  */
99349
- ns: string;
100447
+ namespace: string;
99350
100448
  /**
99351
100449
  * 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}.
99352
100450
  */
@@ -99366,7 +100464,7 @@ export type AutomationWorkflowsVersionsData = {
99366
100464
  */
99367
100465
  expand?: 'source';
99368
100466
  };
99369
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100467
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99370
100468
  };
99371
100469
  export type AutomationWorkflowsVersionsErrors = {
99372
100470
  /**
@@ -99406,13 +100504,24 @@ export type AutomationWorkflowsPublishData = {
99406
100504
  */
99407
100505
  version: string;
99408
100506
  /**
99409
- * Draft revision to publish, matching the current draft; alternative to publishing from_run.
100507
+ * Deprecated alias of draft.revision. Draft revision to publish, matching the current draft; a different value together with draft.revision returns 400.
100508
+ *
100509
+ * @deprecated
99410
100510
  */
99411
- expected_draft_revision: string;
100511
+ expected_draft_revision?: string;
99412
100512
  /**
99413
100513
  * 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.
99414
100514
  */
99415
100515
  tag?: string;
100516
+ /**
100517
+ * 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.
100518
+ */
100519
+ draft?: {
100520
+ /**
100521
+ * 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.
100522
+ */
100523
+ revision: string;
100524
+ };
99416
100525
  } | {
99417
100526
  /**
99418
100527
  * An exact canonical semantic version, such as 1.2.0 or 1.3.0-beta.1, not a range.
@@ -99441,14 +100550,14 @@ export type AutomationWorkflowsPublishData = {
99441
100550
  /**
99442
100551
  * 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.
99443
100552
  */
99444
- ns: string;
100553
+ namespace: string;
99445
100554
  /**
99446
100555
  * 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}.
99447
100556
  */
99448
100557
  name: string;
99449
100558
  };
99450
100559
  query?: never;
99451
- url: '/automation/v1/workflows/{ns}/{name}/versions';
100560
+ url: '/automation/v1/workflows/{namespace}/{name}/versions';
99452
100561
  };
99453
100562
  export type AutomationWorkflowsPublishErrors = {
99454
100563
  /**
@@ -99511,7 +100620,7 @@ export type AutomationWorkflowsVersionData = {
99511
100620
  /**
99512
100621
  * 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.
99513
100622
  */
99514
- ns: string;
100623
+ namespace: string;
99515
100624
  /**
99516
100625
  * 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}.
99517
100626
  */
@@ -99522,7 +100631,7 @@ export type AutomationWorkflowsVersionData = {
99522
100631
  version: string;
99523
100632
  };
99524
100633
  query?: never;
99525
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}';
100634
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}';
99526
100635
  };
99527
100636
  export type AutomationWorkflowsVersionErrors = {
99528
100637
  /**
@@ -99558,7 +100667,7 @@ export type AutomationWorkflowsDeprecateData = {
99558
100667
  /**
99559
100668
  * 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.
99560
100669
  */
99561
- ns: string;
100670
+ namespace: string;
99562
100671
  /**
99563
100672
  * 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}.
99564
100673
  */
@@ -99569,7 +100678,7 @@ export type AutomationWorkflowsDeprecateData = {
99569
100678
  version: string;
99570
100679
  };
99571
100680
  query?: never;
99572
- url: '/automation/v1/workflows/{ns}/{name}/versions/{version}/deprecate';
100681
+ url: '/automation/v1/workflows/{namespace}/{name}/versions/{version}/deprecate';
99573
100682
  };
99574
100683
  export type AutomationWorkflowsDeprecateErrors = {
99575
100684
  /**
@@ -99612,14 +100721,14 @@ export type AutomationWorkflowsDistTagsData = {
99612
100721
  /**
99613
100722
  * 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.
99614
100723
  */
99615
- ns: string;
100724
+ namespace: string;
99616
100725
  /**
99617
100726
  * 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}.
99618
100727
  */
99619
100728
  name: string;
99620
100729
  };
99621
100730
  query?: never;
99622
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags';
100731
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags';
99623
100732
  };
99624
100733
  export type AutomationWorkflowsDistTagsErrors = {
99625
100734
  /**
@@ -99651,7 +100760,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
99651
100760
  /**
99652
100761
  * 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.
99653
100762
  */
99654
- ns: string;
100763
+ namespace: string;
99655
100764
  /**
99656
100765
  * 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}.
99657
100766
  */
@@ -99662,7 +100771,7 @@ export type AutomationWorkflowsDeleteDistTagData = {
99662
100771
  tag: string;
99663
100772
  };
99664
100773
  query?: never;
99665
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100774
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
99666
100775
  };
99667
100776
  export type AutomationWorkflowsDeleteDistTagErrors = {
99668
100777
  /**
@@ -99712,7 +100821,7 @@ export type AutomationWorkflowsSetDistTagData = {
99712
100821
  /**
99713
100822
  * 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.
99714
100823
  */
99715
- ns: string;
100824
+ namespace: string;
99716
100825
  /**
99717
100826
  * 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}.
99718
100827
  */
@@ -99723,7 +100832,7 @@ export type AutomationWorkflowsSetDistTagData = {
99723
100832
  tag: string;
99724
100833
  };
99725
100834
  query?: never;
99726
- url: '/automation/v1/workflows/{ns}/{name}/dist-tags/{tag}';
100835
+ url: '/automation/v1/workflows/{namespace}/{name}/dist-tags/{tag}';
99727
100836
  };
99728
100837
  export type AutomationWorkflowsSetDistTagErrors = {
99729
100838
  /**
@@ -100138,7 +101247,7 @@ export type AutomationRunsGetData = {
100138
101247
  /**
100139
101248
  * Run ID (run_).
100140
101249
  */
100141
- id: string;
101250
+ run_id: string;
100142
101251
  };
100143
101252
  query?: {
100144
101253
  /**
@@ -100150,7 +101259,7 @@ export type AutomationRunsGetData = {
100150
101259
  */
100151
101260
  wait?: number;
100152
101261
  };
100153
- url: '/automation/v1/runs/{id}';
101262
+ url: '/automation/v1/runs/{run_id}';
100154
101263
  };
100155
101264
  export type AutomationRunsGetErrors = {
100156
101265
  /**
@@ -100185,10 +101294,10 @@ export type AutomationRunsCancelData = {
100185
101294
  /**
100186
101295
  * Run ID (run_).
100187
101296
  */
100188
- id: string;
101297
+ run_id: string;
100189
101298
  };
100190
101299
  query?: never;
100191
- url: '/automation/v1/runs/{id}/cancel';
101300
+ url: '/automation/v1/runs/{run_id}/cancel';
100192
101301
  };
100193
101302
  export type AutomationRunsCancelErrors = {
100194
101303
  /**
@@ -100233,10 +101342,10 @@ export type AutomationRunsRerunData = {
100233
101342
  /**
100234
101343
  * Run ID (run_).
100235
101344
  */
100236
- id: string;
101345
+ run_id: string;
100237
101346
  };
100238
101347
  query?: never;
100239
- url: '/automation/v1/runs/{id}/rerun';
101348
+ url: '/automation/v1/runs/{run_id}/rerun';
100240
101349
  };
100241
101350
  export type AutomationRunsRerunErrors = {
100242
101351
  /**
@@ -100288,10 +101397,10 @@ export type AutomationRunsSuspendData = {
100288
101397
  /**
100289
101398
  * Run ID (run_).
100290
101399
  */
100291
- id: string;
101400
+ run_id: string;
100292
101401
  };
100293
101402
  query?: never;
100294
- url: '/automation/v1/runs/{id}/suspend';
101403
+ url: '/automation/v1/runs/{run_id}/suspend';
100295
101404
  };
100296
101405
  export type AutomationRunsSuspendErrors = {
100297
101406
  /**
@@ -100326,10 +101435,10 @@ export type AutomationRunsResumeData = {
100326
101435
  /**
100327
101436
  * Run ID (run_).
100328
101437
  */
100329
- id: string;
101438
+ run_id: string;
100330
101439
  };
100331
101440
  query?: never;
100332
- url: '/automation/v1/runs/{id}/resume';
101441
+ url: '/automation/v1/runs/{run_id}/resume';
100333
101442
  };
100334
101443
  export type AutomationRunsResumeErrors = {
100335
101444
  /**
@@ -100364,7 +101473,7 @@ export type AutomationRunsWaitsData = {
100364
101473
  /**
100365
101474
  * Run ID (run_).
100366
101475
  */
100367
- id: string;
101476
+ run_id: string;
100368
101477
  };
100369
101478
  query?: {
100370
101479
  /**
@@ -100376,7 +101485,7 @@ export type AutomationRunsWaitsData = {
100376
101485
  */
100377
101486
  cursor?: string;
100378
101487
  };
100379
- url: '/automation/v1/runs/{id}/waits';
101488
+ url: '/automation/v1/runs/{run_id}/waits';
100380
101489
  };
100381
101490
  export type AutomationRunsWaitsErrors = {
100382
101491
  /**
@@ -100415,7 +101524,7 @@ export type AutomationRunsCallsData = {
100415
101524
  /**
100416
101525
  * Run ID (run_).
100417
101526
  */
100418
- id: string;
101527
+ run_id: string;
100419
101528
  };
100420
101529
  query?: {
100421
101530
  /**
@@ -100427,7 +101536,7 @@ export type AutomationRunsCallsData = {
100427
101536
  */
100428
101537
  cursor?: string;
100429
101538
  };
100430
- url: '/automation/v1/runs/{id}/calls';
101539
+ url: '/automation/v1/runs/{run_id}/calls';
100431
101540
  };
100432
101541
  export type AutomationRunsCallsErrors = {
100433
101542
  /**
@@ -100466,7 +101575,7 @@ export type AutomationRunsArtifactsData = {
100466
101575
  /**
100467
101576
  * Run ID (run_).
100468
101577
  */
100469
- id: string;
101578
+ run_id: string;
100470
101579
  };
100471
101580
  query?: {
100472
101581
  /**
@@ -100478,7 +101587,7 @@ export type AutomationRunsArtifactsData = {
100478
101587
  */
100479
101588
  cursor?: string;
100480
101589
  };
100481
- url: '/automation/v1/runs/{id}/artifacts';
101590
+ url: '/automation/v1/runs/{run_id}/artifacts';
100482
101591
  };
100483
101592
  export type AutomationRunsArtifactsErrors = {
100484
101593
  /**
@@ -100526,14 +101635,14 @@ export type AutomationRunsCompleteWaitData = {
100526
101635
  /**
100527
101636
  * Run ID (run_).
100528
101637
  */
100529
- id: string;
101638
+ run_id: string;
100530
101639
  /**
100531
101640
  * Wait ID (wait_) belonging to this run.
100532
101641
  */
100533
101642
  wait_id: string;
100534
101643
  };
100535
101644
  query?: never;
100536
- url: '/automation/v1/runs/{id}/waits/{wait_id}/complete';
101645
+ url: '/automation/v1/runs/{run_id}/waits/{wait_id}/complete';
100537
101646
  };
100538
101647
  export type AutomationRunsCompleteWaitErrors = {
100539
101648
  /**
@@ -100584,6 +101693,8 @@ export type AutomationRunsCompleteWaitResponses = {
100584
101693
  kind: 'event' | 'timer' | 'child';
100585
101694
  /**
100586
101695
  * 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.
101696
+ *
101697
+ * @deprecated
100587
101698
  */
100588
101699
  state: 'cancelled' | 'open' | 'resolved' | 'expired';
100589
101700
  /**
@@ -100627,6 +101738,10 @@ export type AutomationRunsCompleteWaitResponses = {
100627
101738
  * true when this was a repeated submission with the same id and payload, so the original result is returned instead of processing it again.
100628
101739
  */
100629
101740
  replayed: boolean;
101741
+ /**
101742
+ * 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.
101743
+ */
101744
+ status: 'cancelled' | 'open' | 'resolved' | 'expired';
100630
101745
  };
100631
101746
  };
100632
101747
  export type AutomationRunsCompleteWaitResponse = AutomationRunsCompleteWaitResponses[keyof AutomationRunsCompleteWaitResponses];
@@ -100636,7 +101751,7 @@ export type AutomationRunsTasksData = {
100636
101751
  /**
100637
101752
  * Run ID (run_).
100638
101753
  */
100639
- id: string;
101754
+ run_id: string;
100640
101755
  };
100641
101756
  query?: {
100642
101757
  /**
@@ -100656,7 +101771,7 @@ export type AutomationRunsTasksData = {
100656
101771
  */
100657
101772
  group_by?: 'reference';
100658
101773
  };
100659
- url: '/automation/v1/runs/{id}/tasks';
101774
+ url: '/automation/v1/runs/{run_id}/tasks';
100660
101775
  };
100661
101776
  export type AutomationRunsTasksErrors = {
100662
101777
  /**
@@ -100705,7 +101820,7 @@ export type AutomationRunsEventsData = {
100705
101820
  /**
100706
101821
  * Run ID (run_).
100707
101822
  */
100708
- id: string;
101823
+ run_id: string;
100709
101824
  };
100710
101825
  query?: {
100711
101826
  /**
@@ -100717,7 +101832,7 @@ export type AutomationRunsEventsData = {
100717
101832
  */
100718
101833
  cursor?: string;
100719
101834
  };
100720
- url: '/automation/v1/runs/{id}/events';
101835
+ url: '/automation/v1/runs/{run_id}/events';
100721
101836
  };
100722
101837
  export type AutomationRunsEventsErrors = {
100723
101838
  /**
@@ -100766,7 +101881,7 @@ export type AutomationRunsLogsData = {
100766
101881
  /**
100767
101882
  * Run ID (run_).
100768
101883
  */
100769
- id: string;
101884
+ run_id: string;
100770
101885
  };
100771
101886
  query?: {
100772
101887
  /**
@@ -100778,7 +101893,7 @@ export type AutomationRunsLogsData = {
100778
101893
  */
100779
101894
  cursor?: string;
100780
101895
  };
100781
- url: '/automation/v1/runs/{id}/logs';
101896
+ url: '/automation/v1/runs/{run_id}/logs';
100782
101897
  };
100783
101898
  export type AutomationRunsLogsErrors = {
100784
101899
  /**
@@ -100817,10 +101932,10 @@ export type AutomationRunsSourceData = {
100817
101932
  /**
100818
101933
  * Run ID (run_).
100819
101934
  */
100820
- id: string;
101935
+ run_id: string;
100821
101936
  };
100822
101937
  query?: never;
100823
- url: '/automation/v1/runs/{id}/source';
101938
+ url: '/automation/v1/runs/{run_id}/source';
100824
101939
  };
100825
101940
  export type AutomationRunsSourceErrors = {
100826
101941
  /**
@@ -100875,7 +101990,9 @@ export type AutomationTriggersListData = {
100875
101990
  */
100876
101991
  kind?: Array<'schedule' | 'webhook'>;
100877
101992
  /**
100878
- * Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101993
+ * Deprecated, use status. Trigger state: enabled, paused or expired; omit for all. Separate multiple values with commas to match any value.
101994
+ *
101995
+ * @deprecated
100879
101996
  */
100880
101997
  state?: Array<AutomationTriggerState>;
100881
101998
  /**
@@ -100892,6 +102009,10 @@ export type AutomationTriggersListData = {
100892
102009
  * Inclusive creation-time upper bound, as an ISO 8601 timestamp with timezone.
100893
102010
  */
100894
102011
  'created_at[lte]'?: string;
102012
+ /**
102013
+ * 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.
102014
+ */
102015
+ status?: Array<AutomationTriggerState>;
100895
102016
  };
100896
102017
  url: '/automation/v1/triggers';
100897
102018
  };
@@ -101057,10 +102178,10 @@ export type AutomationTriggersDeleteData = {
101057
102178
  /**
101058
102179
  * Trigger ID (trg_).
101059
102180
  */
101060
- id: string;
102181
+ trigger_id: string;
101061
102182
  };
101062
102183
  query?: never;
101063
- url: '/automation/v1/triggers/{id}';
102184
+ url: '/automation/v1/triggers/{trigger_id}';
101064
102185
  };
101065
102186
  export type AutomationTriggersDeleteErrors = {
101066
102187
  /**
@@ -101094,10 +102215,10 @@ export type AutomationTriggersGetData = {
101094
102215
  /**
101095
102216
  * Trigger ID (trg_).
101096
102217
  */
101097
- id: string;
102218
+ trigger_id: string;
101098
102219
  };
101099
102220
  query?: never;
101100
- url: '/automation/v1/triggers/{id}';
102221
+ url: '/automation/v1/triggers/{trigger_id}';
101101
102222
  };
101102
102223
  export type AutomationTriggersGetErrors = {
101103
102224
  /**
@@ -101205,10 +102326,10 @@ export type AutomationTriggersPatchData = {
101205
102326
  /**
101206
102327
  * Trigger ID (trg_).
101207
102328
  */
101208
- id: string;
102329
+ trigger_id: string;
101209
102330
  };
101210
102331
  query?: never;
101211
- url: '/automation/v1/triggers/{id}';
102332
+ url: '/automation/v1/triggers/{trigger_id}';
101212
102333
  };
101213
102334
  export type AutomationTriggersPatchErrors = {
101214
102335
  /**
@@ -101261,10 +102382,10 @@ export type AutomationTriggersPauseData = {
101261
102382
  /**
101262
102383
  * Trigger ID (trg_).
101263
102384
  */
101264
- id: string;
102385
+ trigger_id: string;
101265
102386
  };
101266
102387
  query?: never;
101267
- url: '/automation/v1/triggers/{id}/pause';
102388
+ url: '/automation/v1/triggers/{trigger_id}/pause';
101268
102389
  };
101269
102390
  export type AutomationTriggersPauseErrors = {
101270
102391
  /**
@@ -101298,10 +102419,10 @@ export type AutomationTriggersResumeData = {
101298
102419
  /**
101299
102420
  * Trigger ID (trg_).
101300
102421
  */
101301
- id: string;
102422
+ trigger_id: string;
101302
102423
  };
101303
102424
  query?: never;
101304
- url: '/automation/v1/triggers/{id}/resume';
102425
+ url: '/automation/v1/triggers/{trigger_id}/resume';
101305
102426
  };
101306
102427
  export type AutomationTriggersResumeErrors = {
101307
102428
  /**
@@ -101345,10 +102466,10 @@ export type AutomationTriggersFireData = {
101345
102466
  /**
101346
102467
  * Trigger ID (trg_).
101347
102468
  */
101348
- id: string;
102469
+ trigger_id: string;
101349
102470
  };
101350
102471
  query?: never;
101351
- url: '/automation/v1/triggers/{id}/fire';
102472
+ url: '/automation/v1/triggers/{trigger_id}/fire';
101352
102473
  };
101353
102474
  export type AutomationTriggersFireErrors = {
101354
102475
  /**
@@ -101391,10 +102512,10 @@ export type AutomationTriggersRotateWebhookData = {
101391
102512
  /**
101392
102513
  * Trigger ID (trg_).
101393
102514
  */
101394
- id: string;
102515
+ trigger_id: string;
101395
102516
  };
101396
102517
  query?: never;
101397
- url: '/automation/v1/triggers/{id}/rotate-webhook';
102518
+ url: '/automation/v1/triggers/{trigger_id}/rotate-webhook';
101398
102519
  };
101399
102520
  export type AutomationTriggersRotateWebhookErrors = {
101400
102521
  /**
@@ -101424,7 +102545,7 @@ export type AutomationTriggersFiringsData = {
101424
102545
  /**
101425
102546
  * Trigger ID (trg_).
101426
102547
  */
101427
- id: string;
102548
+ trigger_id: string;
101428
102549
  };
101429
102550
  query?: {
101430
102551
  /**
@@ -101444,7 +102565,7 @@ export type AutomationTriggersFiringsData = {
101444
102565
  */
101445
102566
  run_id?: string;
101446
102567
  };
101447
- url: '/automation/v1/triggers/{id}/firings';
102568
+ url: '/automation/v1/triggers/{trigger_id}/firings';
101448
102569
  };
101449
102570
  export type AutomationTriggersFiringsErrors = {
101450
102571
  /**
@@ -101650,10 +102771,10 @@ export type AutomationHumanTasksGetData = {
101650
102771
  /**
101651
102772
  * Human task ID (htask_), from the list or the run's waits.
101652
102773
  */
101653
- id: string;
102774
+ task_id: string;
101654
102775
  };
101655
102776
  query?: never;
101656
- url: '/automation/v1/human-tasks/{id}';
102777
+ url: '/automation/v1/human-tasks/{task_id}';
101657
102778
  };
101658
102779
  export type AutomationHumanTasksGetErrors = {
101659
102780
  /**
@@ -101689,10 +102810,10 @@ export type AutomationHumanTasksRespondData = {
101689
102810
  /**
101690
102811
  * Human task ID (htask_).
101691
102812
  */
101692
- id: string;
102813
+ task_id: string;
101693
102814
  };
101694
102815
  query?: never;
101695
- url: '/automation/v1/human-tasks/{id}/respond';
102816
+ url: '/automation/v1/human-tasks/{task_id}/respond';
101696
102817
  };
101697
102818
  export type AutomationHumanTasksRespondErrors = {
101698
102819
  /**
@@ -101747,10 +102868,10 @@ export type AutomationHumanTasksCancelData = {
101747
102868
  /**
101748
102869
  * Human task ID (htask_).
101749
102870
  */
101750
- id: string;
102871
+ task_id: string;
101751
102872
  };
101752
102873
  query?: never;
101753
- url: '/automation/v1/human-tasks/{id}/cancel';
102874
+ url: '/automation/v1/human-tasks/{task_id}/cancel';
101754
102875
  };
101755
102876
  export type AutomationHumanTasksCancelErrors = {
101756
102877
  /**
@@ -101793,10 +102914,10 @@ export type AutomationHumanTasksDelegateData = {
101793
102914
  /**
101794
102915
  * Human task ID (htask_).
101795
102916
  */
101796
- id: string;
102917
+ task_id: string;
101797
102918
  };
101798
102919
  query?: never;
101799
- url: '/automation/v1/human-tasks/{id}/delegate';
102920
+ url: '/automation/v1/human-tasks/{task_id}/delegate';
101800
102921
  };
101801
102922
  export type AutomationHumanTasksDelegateErrors = {
101802
102923
  /**
@@ -101837,14 +102958,14 @@ export type AutomationScriptsVaultsListData = {
101837
102958
  /**
101838
102959
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101839
102960
  */
101840
- ns: string;
102961
+ namespace: string;
101841
102962
  /**
101842
102963
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101843
102964
  */
101844
102965
  name: string;
101845
102966
  };
101846
102967
  query?: never;
101847
- url: '/automation/v1/scripts/{ns}/{name}/vaults';
102968
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults';
101848
102969
  };
101849
102970
  export type AutomationScriptsVaultsListErrors = {
101850
102971
  /**
@@ -101910,7 +103031,7 @@ export type AutomationScriptsVaultsDeleteData = {
101910
103031
  /**
101911
103032
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101912
103033
  */
101913
- ns: string;
103034
+ namespace: string;
101914
103035
  /**
101915
103036
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101916
103037
  */
@@ -101921,7 +103042,7 @@ export type AutomationScriptsVaultsDeleteData = {
101921
103042
  alias: string;
101922
103043
  };
101923
103044
  query?: never;
101924
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
103045
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101925
103046
  };
101926
103047
  export type AutomationScriptsVaultsDeleteErrors = {
101927
103048
  /**
@@ -101956,7 +103077,7 @@ export type AutomationScriptsVaultsSetData = {
101956
103077
  /**
101957
103078
  * Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
101958
103079
  */
101959
- ns: string;
103080
+ namespace: string;
101960
103081
  /**
101961
103082
  * Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
101962
103083
  */
@@ -101967,7 +103088,7 @@ export type AutomationScriptsVaultsSetData = {
101967
103088
  alias: string;
101968
103089
  };
101969
103090
  query?: never;
101970
- url: '/automation/v1/scripts/{ns}/{name}/vaults/{alias}';
103091
+ url: '/automation/v1/scripts/{namespace}/{name}/vaults/{alias}';
101971
103092
  };
101972
103093
  export type AutomationScriptsVaultsSetErrors = {
101973
103094
  /**
@@ -102037,14 +103158,14 @@ export type AutomationWorkflowsVaultsListData = {
102037
103158
  /**
102038
103159
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102039
103160
  */
102040
- ns: string;
103161
+ namespace: string;
102041
103162
  /**
102042
103163
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102043
103164
  */
102044
103165
  name: string;
102045
103166
  };
102046
103167
  query?: never;
102047
- url: '/automation/v1/workflows/{ns}/{name}/vaults';
103168
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults';
102048
103169
  };
102049
103170
  export type AutomationWorkflowsVaultsListErrors = {
102050
103171
  /**
@@ -102110,7 +103231,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
102110
103231
  /**
102111
103232
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102112
103233
  */
102113
- ns: string;
103234
+ namespace: string;
102114
103235
  /**
102115
103236
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102116
103237
  */
@@ -102121,7 +103242,7 @@ export type AutomationWorkflowsVaultsDeleteData = {
102121
103242
  alias: string;
102122
103243
  };
102123
103244
  query?: never;
102124
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103245
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
102125
103246
  };
102126
103247
  export type AutomationWorkflowsVaultsDeleteErrors = {
102127
103248
  /**
@@ -102156,7 +103277,7 @@ export type AutomationWorkflowsVaultsSetData = {
102156
103277
  /**
102157
103278
  * Namespace from automation.workflows.list or create; identifies the saved workflow, independently of versions.
102158
103279
  */
102159
- ns: string;
103280
+ namespace: string;
102160
103281
  /**
102161
103282
  * Resource name from automation.workflows.list or create; combine with ns to identify the saved workflow.
102162
103283
  */
@@ -102167,7 +103288,7 @@ export type AutomationWorkflowsVaultsSetData = {
102167
103288
  alias: string;
102168
103289
  };
102169
103290
  query?: never;
102170
- url: '/automation/v1/workflows/{ns}/{name}/vaults/{alias}';
103291
+ url: '/automation/v1/workflows/{namespace}/{name}/vaults/{alias}';
102171
103292
  };
102172
103293
  export type AutomationWorkflowsVaultsSetErrors = {
102173
103294
  /**
@@ -103014,6 +104135,60 @@ export type CanvasListLibraryVersionsResponses = {
103014
104135
  200: CanvasLibraryVersionPage;
103015
104136
  };
103016
104137
  export type CanvasListLibraryVersionsResponse = CanvasListLibraryVersionsResponses[keyof CanvasListLibraryVersionsResponses];
104138
+ export type CanvasRetrieveProcessStepBriefData = {
104139
+ body?: never;
104140
+ path: {
104141
+ /**
104142
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
104143
+ */
104144
+ canvas_id: string;
104145
+ /**
104146
+ * Node id of the process frame, or of the ref instance that is one production of a library process; the outputs of a production point at this id.
104147
+ */
104148
+ process_id: string;
104149
+ /**
104150
+ * Step key from the requirement block, such as 1 or 9a; not the node id of the step frame.
104151
+ */
104152
+ step_id: string;
104153
+ };
104154
+ query?: {
104155
+ /**
104156
+ * Decimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND.
104157
+ */
104158
+ version?: string;
104159
+ };
104160
+ url: '/canvas/v1/canvases/{canvas_id}/processes/{process_id}/steps/{step_id}/brief';
104161
+ };
104162
+ export type CanvasRetrieveProcessStepBriefErrors = {
104163
+ /**
104164
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
104165
+ */
104166
+ 400: CanvasCanvasError;
104167
+ /**
104168
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
104169
+ */
104170
+ 401: CanvasCanvasError;
104171
+ /**
104172
+ * The API key lacks permission for this operation; use a key with the required canvas access in the owning organization.
104173
+ */
104174
+ 403: CanvasCanvasError;
104175
+ /**
104176
+ * CANVAS_NOT_FOUND means the canvas is missing or belongs to another organization. NODE_NOT_FOUND means process_id is not a process on this canvas or step is not one of its step keys; read the process with nodes.list to see its requirement blocks.
104177
+ */
104178
+ 404: CanvasCanvasError;
104179
+ /**
104180
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
104181
+ */
104182
+ 500: CanvasCanvasError;
104183
+ };
104184
+ export type CanvasRetrieveProcessStepBriefError = CanvasRetrieveProcessStepBriefErrors[keyof CanvasRetrieveProcessStepBriefErrors];
104185
+ export type CanvasRetrieveProcessStepBriefResponses = {
104186
+ /**
104187
+ * The step brief at the requested canvas version.
104188
+ */
104189
+ 200: CanvasProcessStepBrief;
104190
+ };
104191
+ export type CanvasRetrieveProcessStepBriefResponse = CanvasRetrieveProcessStepBriefResponses[keyof CanvasRetrieveProcessStepBriefResponses];
103017
104192
  export type CanvasListLibrariesData = {
103018
104193
  body?: never;
103019
104194
  path?: never;
@@ -113368,6 +114543,10 @@ export type DevopsPullRequestsRerunGateErrors = {
113368
114543
  * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
113369
114544
  */
113370
114545
  404: DevopsDevOpsError;
114546
+ /**
114547
+ * GATE_RERUN_LIMITED: this head's checks were already restarted 3 times in the last hour, or another rerun of this head is restarting them right now; the message says which.
114548
+ */
114549
+ 429: DevopsDevOpsError;
113371
114550
  /**
113372
114551
  * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
113373
114552
  */
@@ -113381,6 +114560,51 @@ export type DevopsPullRequestsRerunGateResponses = {
113381
114560
  200: DevopsPullRequest;
113382
114561
  };
113383
114562
  export type DevopsPullRequestsRerunGateResponse = DevopsPullRequestsRerunGateResponses[keyof DevopsPullRequestsRerunGateResponses];
114563
+ export type DevopsPullRequestsOverrideGateData = {
114564
+ body: DevopsPullRequestOverrideGateRequest;
114565
+ path: {
114566
+ /**
114567
+ * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
114568
+ */
114569
+ id: string;
114570
+ };
114571
+ query?: never;
114572
+ url: '/devops/v1/pull-requests/{id}:overrideGate';
114573
+ };
114574
+ export type DevopsPullRequestsOverrideGateErrors = {
114575
+ /**
114576
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
114577
+ */
114578
+ 400: DevopsDevOpsError;
114579
+ /**
114580
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
114581
+ */
114582
+ 401: DevopsDevOpsError;
114583
+ /**
114584
+ * GATE_OVERRIDE_NOT_AUTHORIZED when authorizedBy holds no active assignment to the vice-president job (or the workforce positions could not be read), or the caller's key lacks the permission.
114585
+ */
114586
+ 403: DevopsDevOpsError;
114587
+ /**
114588
+ * PULL_REQUEST_NOT_FOUND means no pull request with that id is visible to this organization — one of another organization is never readable; list the project's pull requests and use an id from that answer.
114589
+ */
114590
+ 404: DevopsDevOpsError;
114591
+ /**
114592
+ * HEAD_MOVED when headSha is not the pull request's current head, or PULL_REQUEST_NOT_OPEN when the pull request is merged or closed.
114593
+ */
114594
+ 409: DevopsDevOpsError;
114595
+ /**
114596
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
114597
+ */
114598
+ 500: DevopsDevOpsError;
114599
+ };
114600
+ export type DevopsPullRequestsOverrideGateError = DevopsPullRequestsOverrideGateErrors[keyof DevopsPullRequestsOverrideGateErrors];
114601
+ export type DevopsPullRequestsOverrideGateResponses = {
114602
+ /**
114603
+ * The pull request with the gate decided again under the override: the covered checks show their real result with counted false and overriddenBy.
114604
+ */
114605
+ 200: DevopsPullRequest;
114606
+ };
114607
+ export type DevopsPullRequestsOverrideGateResponse = DevopsPullRequestsOverrideGateResponses[keyof DevopsPullRequestsOverrideGateResponses];
113384
114608
  export type DevopsPullRequestsMergeData = {
113385
114609
  body?: DevopsPullRequestMergeRequest;
113386
114610
  path: {
@@ -114646,143 +115870,188 @@ export type DevopsUnitsTransitionsListResponses = {
114646
115870
  200: DevopsUnitTransitionPage;
114647
115871
  };
114648
115872
  export type DevopsUnitsTransitionsListResponse = DevopsUnitsTransitionsListResponses[keyof DevopsUnitsTransitionsListResponses];
114649
- export type KnowledgeListVectorStoresData = {
115873
+ export type EventsListTypesData = {
115874
+ body?: never;
115875
+ path?: never;
115876
+ query?: never;
115877
+ url: '/events/v1/types';
115878
+ };
115879
+ export type EventsListTypesErrors = {
115880
+ /**
115881
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
115882
+ */
115883
+ 401: EventsEventsProblem;
115884
+ /**
115885
+ * 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.
115886
+ */
115887
+ 503: EventsEventsProblem;
115888
+ };
115889
+ export type EventsListTypesError = EventsListTypesErrors[keyof EventsListTypesErrors];
115890
+ export type EventsListTypesResponses = {
115891
+ /**
115892
+ * The tenant event types, one entry per type and schema version.
115893
+ */
115894
+ 200: EventsEventTypePage;
115895
+ };
115896
+ export type EventsListTypesResponse = EventsListTypesResponses[keyof EventsListTypesResponses];
115897
+ export type EventsListSubscriptionsData = {
114650
115898
  body?: never;
114651
115899
  path?: never;
114652
115900
  query?: {
114653
115901
  /**
114654
- * active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.
114655
- */
114656
- status?: 'active' | 'deleting';
114657
- /**
114658
- * Resource ID.
114659
- */
114660
- after?: string;
114661
- /**
114662
- * Resource ID.
114663
- */
114664
- before?: string;
114665
- /**
114666
- * Page size.
115902
+ * Maximum subscriptions to return, from 1 to 100; defaults to 50.
114667
115903
  */
114668
115904
  limit?: number;
114669
- /**
114670
- * Order by creation time; defaults to desc for stores/files and asc by index for segments.
114671
- */
114672
- order?: 'asc' | 'desc';
114673
115905
  };
114674
- url: '/knowledge/v1/vector_stores';
115906
+ url: '/events/v1/subscriptions';
114675
115907
  };
114676
- export type KnowledgeListVectorStoresErrors = {
115908
+ export type EventsListSubscriptionsErrors = {
114677
115909
  /**
114678
- * INVALID_PARAMS, LIMIT_EXCEEDED
115910
+ * 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.
114679
115911
  */
114680
- 400: KnowledgeKnowledgeError;
115912
+ 400: EventsEventsProblem;
114681
115913
  /**
114682
- * UNAUTHENTICATED; gateway errors can omit details or return code=null.
115914
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114683
115915
  */
114684
- 401: KnowledgeKnowledgeError;
115916
+ 401: EventsEventsProblem;
114685
115917
  /**
114686
- * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
114687
- */
114688
- 404: KnowledgeKnowledgeError;
114689
- /**
114690
- * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
115918
+ * 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.
114691
115919
  */
114692
- 409: KnowledgeKnowledgeError;
115920
+ 503: EventsEventsProblem;
115921
+ };
115922
+ export type EventsListSubscriptionsError = EventsListSubscriptionsErrors[keyof EventsListSubscriptionsErrors];
115923
+ export type EventsListSubscriptionsResponses = {
114693
115924
  /**
114694
- * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
115925
+ * Your live subscriptions.
114695
115926
  */
114696
- 413: KnowledgeKnowledgeError;
115927
+ 200: EventsEventSubscriptionPage;
115928
+ };
115929
+ export type EventsListSubscriptionsResponse = EventsListSubscriptionsResponses[keyof EventsListSubscriptionsResponses];
115930
+ export type EventsCreateSubscriptionData = {
114697
115931
  /**
114698
- * RATE_LIMITED
115932
+ * What to subscribe to and how long the subscription lasts.
114699
115933
  */
114700
- 429: KnowledgeKnowledgeError;
115934
+ body: EventsCreateEventSubscriptionInput;
115935
+ path?: never;
115936
+ query?: never;
115937
+ url: '/events/v1/subscriptions';
115938
+ };
115939
+ export type EventsCreateSubscriptionErrors = {
114701
115940
  /**
114702
- * Internal error; code may be absent or null.
115941
+ * 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.
114703
115942
  */
114704
- 500: KnowledgeTransportError;
115943
+ 400: EventsEventsProblem;
114705
115944
  /**
114706
- * NOT_IMPLEMENTED
115945
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114707
115946
  */
114708
- 501: KnowledgeKnowledgeError;
115947
+ 401: EventsEventsProblem;
114709
115948
  /**
114710
- * PROVIDER_UNAVAILABLE
115949
+ * 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.
114711
115950
  */
114712
- 503: KnowledgeKnowledgeError;
115951
+ 503: EventsEventsProblem;
114713
115952
  };
114714
- export type KnowledgeListVectorStoresError = KnowledgeListVectorStoresErrors[keyof KnowledgeListVectorStoresErrors];
114715
- export type KnowledgeListVectorStoresResponses = {
115953
+ export type EventsCreateSubscriptionError = EventsCreateSubscriptionErrors[keyof EventsCreateSubscriptionErrors];
115954
+ export type EventsCreateSubscriptionResponses = {
114716
115955
  /**
114717
- * Success
115956
+ * The new subscription.
114718
115957
  */
114719
- 200: KnowledgeNativeVectorStoreList;
115958
+ 201: EventsEventSubscription;
114720
115959
  };
114721
- export type KnowledgeListVectorStoresResponse = KnowledgeListVectorStoresResponses[keyof KnowledgeListVectorStoresResponses];
114722
- export type KnowledgeCreateVectorStoreData = {
114723
- body: KnowledgeNativeCreateVectorStore;
114724
- path?: never;
115960
+ export type EventsCreateSubscriptionResponse = EventsCreateSubscriptionResponses[keyof EventsCreateSubscriptionResponses];
115961
+ export type EventsDeleteSubscriptionData = {
115962
+ body?: never;
115963
+ path: {
115964
+ /**
115965
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115966
+ */
115967
+ subscription_id: string;
115968
+ };
114725
115969
  query?: never;
114726
- url: '/knowledge/v1/vector_stores';
115970
+ url: '/events/v1/subscriptions/{subscription_id}';
114727
115971
  };
114728
- export type KnowledgeCreateVectorStoreErrors = {
115972
+ export type EventsDeleteSubscriptionErrors = {
114729
115973
  /**
114730
- * INVALID_PARAMS, LIMIT_EXCEEDED
115974
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114731
115975
  */
114732
- 400: KnowledgeKnowledgeError;
115976
+ 401: EventsEventsProblem;
114733
115977
  /**
114734
- * UNAUTHENTICATED; gateway errors can omit details or return code=null.
115978
+ * 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.
114735
115979
  */
114736
- 401: KnowledgeKnowledgeError;
115980
+ 404: EventsEventsProblem;
114737
115981
  /**
114738
- * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
114739
- */
114740
- 404: KnowledgeKnowledgeError;
114741
- /**
114742
- * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
115982
+ * 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.
114743
115983
  */
114744
- 409: KnowledgeKnowledgeError;
115984
+ 503: EventsEventsProblem;
115985
+ };
115986
+ export type EventsDeleteSubscriptionError = EventsDeleteSubscriptionErrors[keyof EventsDeleteSubscriptionErrors];
115987
+ export type EventsDeleteSubscriptionResponses = {
114745
115988
  /**
114746
- * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
115989
+ * The subscription is deleted; there is no body.
114747
115990
  */
114748
- 413: KnowledgeKnowledgeError;
115991
+ 204: void;
115992
+ };
115993
+ export type EventsDeleteSubscriptionResponse = EventsDeleteSubscriptionResponses[keyof EventsDeleteSubscriptionResponses];
115994
+ export type EventsRetrieveSubscriptionData = {
115995
+ body?: never;
115996
+ path: {
115997
+ /**
115998
+ * Subscription id returned by subscriptions.create or subscriptions.list, in the form esub_ followed by letters and digits.
115999
+ */
116000
+ subscription_id: string;
116001
+ };
116002
+ query?: never;
116003
+ url: '/events/v1/subscriptions/{subscription_id}';
116004
+ };
116005
+ export type EventsRetrieveSubscriptionErrors = {
114749
116006
  /**
114750
- * RATE_LIMITED
116007
+ * UNAUTHENTICATED means the credential is missing or invalid; send a valid Praxis credential of your organization.
114751
116008
  */
114752
- 429: KnowledgeKnowledgeError;
116009
+ 401: EventsEventsProblem;
114753
116010
  /**
114754
- * Internal error; code may be absent or null.
116011
+ * 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.
114755
116012
  */
114756
- 500: KnowledgeTransportError;
116013
+ 404: EventsEventsProblem;
114757
116014
  /**
114758
- * NOT_IMPLEMENTED
116015
+ * 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.
114759
116016
  */
114760
- 501: KnowledgeKnowledgeError;
114761
- /**
114762
- * PROVIDER_UNAVAILABLE
114763
- */
114764
- 503: KnowledgeKnowledgeError;
116017
+ 503: EventsEventsProblem;
114765
116018
  };
114766
- export type KnowledgeCreateVectorStoreError = KnowledgeCreateVectorStoreErrors[keyof KnowledgeCreateVectorStoreErrors];
114767
- export type KnowledgeCreateVectorStoreResponses = {
116019
+ export type EventsRetrieveSubscriptionError = EventsRetrieveSubscriptionErrors[keyof EventsRetrieveSubscriptionErrors];
116020
+ export type EventsRetrieveSubscriptionResponses = {
114768
116021
  /**
114769
- * Success
116022
+ * The subscription.
114770
116023
  */
114771
- 200: KnowledgeNativeVectorStore;
116024
+ 200: EventsEventSubscription;
114772
116025
  };
114773
- export type KnowledgeCreateVectorStoreResponse = KnowledgeCreateVectorStoreResponses[keyof KnowledgeCreateVectorStoreResponses];
114774
- export type KnowledgeDeleteVectorStoreData = {
116026
+ export type EventsRetrieveSubscriptionResponse = EventsRetrieveSubscriptionResponses[keyof EventsRetrieveSubscriptionResponses];
116027
+ export type KnowledgeListVectorStoresData = {
114775
116028
  body?: never;
114776
- path: {
116029
+ path?: never;
116030
+ query?: {
116031
+ /**
116032
+ * active selects active stores; deleting selects soft-deleted stores awaiting purge. Omission excludes soft-deleted stores.
116033
+ */
116034
+ status?: 'active' | 'deleting';
114777
116035
  /**
114778
116036
  * Resource ID.
114779
116037
  */
114780
- vector_store_id: string;
116038
+ after?: string;
116039
+ /**
116040
+ * Resource ID.
116041
+ */
116042
+ before?: string;
116043
+ /**
116044
+ * Page size.
116045
+ */
116046
+ limit?: number;
116047
+ /**
116048
+ * Order by creation time; defaults to desc for stores/files and asc by index for segments.
116049
+ */
116050
+ order?: 'asc' | 'desc';
114781
116051
  };
114782
- query?: never;
114783
- url: '/knowledge/v1/vector_stores/{vector_store_id}';
116052
+ url: '/knowledge/v1/vector_stores';
114784
116053
  };
114785
- export type KnowledgeDeleteVectorStoreErrors = {
116054
+ export type KnowledgeListVectorStoresErrors = {
114786
116055
  /**
114787
116056
  * INVALID_PARAMS, LIMIT_EXCEEDED
114788
116057
  */
@@ -114820,35 +116089,21 @@ export type KnowledgeDeleteVectorStoreErrors = {
114820
116089
  */
114821
116090
  503: KnowledgeKnowledgeError;
114822
116091
  };
114823
- export type KnowledgeDeleteVectorStoreError = KnowledgeDeleteVectorStoreErrors[keyof KnowledgeDeleteVectorStoreErrors];
114824
- export type KnowledgeDeleteVectorStoreResponses = {
116092
+ export type KnowledgeListVectorStoresError = KnowledgeListVectorStoresErrors[keyof KnowledgeListVectorStoresErrors];
116093
+ export type KnowledgeListVectorStoresResponses = {
114825
116094
  /**
114826
116095
  * Success
114827
116096
  */
114828
- 200: KnowledgeNativeVectorStore;
116097
+ 200: KnowledgeNativeVectorStoreList;
114829
116098
  };
114830
- export type KnowledgeDeleteVectorStoreResponse = KnowledgeDeleteVectorStoreResponses[keyof KnowledgeDeleteVectorStoreResponses];
114831
- export type KnowledgeRetrieveVectorStoreData = {
114832
- body?: never;
114833
- path: {
114834
- /**
114835
- * Resource ID.
114836
- */
114837
- vector_store_id: string;
114838
- };
114839
- query?: {
114840
- /**
114841
- * Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.
114842
- */
114843
- expand?: Array<'files'>;
114844
- /**
114845
- * Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.
114846
- */
114847
- 'expand[]'?: Array<'files'>;
114848
- };
114849
- url: '/knowledge/v1/vector_stores/{vector_store_id}';
116099
+ export type KnowledgeListVectorStoresResponse = KnowledgeListVectorStoresResponses[keyof KnowledgeListVectorStoresResponses];
116100
+ export type KnowledgeCreateVectorStoreData = {
116101
+ body: KnowledgeNativeCreateVectorStore;
116102
+ path?: never;
116103
+ query?: never;
116104
+ url: '/knowledge/v1/vector_stores';
114850
116105
  };
114851
- export type KnowledgeRetrieveVectorStoreErrors = {
116106
+ export type KnowledgeCreateVectorStoreErrors = {
114852
116107
  /**
114853
116108
  * INVALID_PARAMS, LIMIT_EXCEEDED
114854
116109
  */
@@ -114886,16 +116141,16 @@ export type KnowledgeRetrieveVectorStoreErrors = {
114886
116141
  */
114887
116142
  503: KnowledgeKnowledgeError;
114888
116143
  };
114889
- export type KnowledgeRetrieveVectorStoreError = KnowledgeRetrieveVectorStoreErrors[keyof KnowledgeRetrieveVectorStoreErrors];
114890
- export type KnowledgeRetrieveVectorStoreResponses = {
116144
+ export type KnowledgeCreateVectorStoreError = KnowledgeCreateVectorStoreErrors[keyof KnowledgeCreateVectorStoreErrors];
116145
+ export type KnowledgeCreateVectorStoreResponses = {
114891
116146
  /**
114892
116147
  * Success
114893
116148
  */
114894
- 200: KnowledgeNativeExpandedVectorStore;
116149
+ 200: KnowledgeNativeVectorStore;
114895
116150
  };
114896
- export type KnowledgeRetrieveVectorStoreResponse = KnowledgeRetrieveVectorStoreResponses[keyof KnowledgeRetrieveVectorStoreResponses];
114897
- export type KnowledgeUpdateVectorStoreData = {
114898
- body: KnowledgeNativeUpdateVectorStore;
116151
+ export type KnowledgeCreateVectorStoreResponse = KnowledgeCreateVectorStoreResponses[keyof KnowledgeCreateVectorStoreResponses];
116152
+ export type KnowledgeDeleteVectorStoreData = {
116153
+ body?: never;
114899
116154
  path: {
114900
116155
  /**
114901
116156
  * Resource ID.
@@ -114905,7 +116160,7 @@ export type KnowledgeUpdateVectorStoreData = {
114905
116160
  query?: never;
114906
116161
  url: '/knowledge/v1/vector_stores/{vector_store_id}';
114907
116162
  };
114908
- export type KnowledgeUpdateVectorStoreErrors = {
116163
+ export type KnowledgeDeleteVectorStoreErrors = {
114909
116164
  /**
114910
116165
  * INVALID_PARAMS, LIMIT_EXCEEDED
114911
116166
  */
@@ -114943,72 +116198,15 @@ export type KnowledgeUpdateVectorStoreErrors = {
114943
116198
  */
114944
116199
  503: KnowledgeKnowledgeError;
114945
116200
  };
114946
- export type KnowledgeUpdateVectorStoreError = KnowledgeUpdateVectorStoreErrors[keyof KnowledgeUpdateVectorStoreErrors];
114947
- export type KnowledgeUpdateVectorStoreResponses = {
116201
+ export type KnowledgeDeleteVectorStoreError = KnowledgeDeleteVectorStoreErrors[keyof KnowledgeDeleteVectorStoreErrors];
116202
+ export type KnowledgeDeleteVectorStoreResponses = {
114948
116203
  /**
114949
116204
  * Success
114950
116205
  */
114951
116206
  200: KnowledgeNativeVectorStore;
114952
116207
  };
114953
- export type KnowledgeUpdateVectorStoreResponse = KnowledgeUpdateVectorStoreResponses[keyof KnowledgeUpdateVectorStoreResponses];
114954
- export type KnowledgeSearchVectorStoreData = {
114955
- body: KnowledgeNativeSearchInput;
114956
- path: {
114957
- /**
114958
- * Resource ID.
114959
- */
114960
- vector_store_id: string;
114961
- };
114962
- query?: never;
114963
- url: '/knowledge/v1/vector_stores/{vector_store_id}/search';
114964
- };
114965
- export type KnowledgeSearchVectorStoreErrors = {
114966
- /**
114967
- * INVALID_PARAMS, LIMIT_EXCEEDED
114968
- */
114969
- 400: KnowledgeKnowledgeError;
114970
- /**
114971
- * UNAUTHENTICATED; gateway errors can omit details or return code=null.
114972
- */
114973
- 401: KnowledgeKnowledgeError;
114974
- /**
114975
- * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
114976
- */
114977
- 404: KnowledgeKnowledgeError;
114978
- /**
114979
- * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
114980
- */
114981
- 409: KnowledgeKnowledgeError;
114982
- /**
114983
- * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
114984
- */
114985
- 413: KnowledgeKnowledgeError;
114986
- /**
114987
- * RATE_LIMITED
114988
- */
114989
- 429: KnowledgeKnowledgeError;
114990
- /**
114991
- * Internal error; code may be absent or null.
114992
- */
114993
- 500: KnowledgeTransportError;
114994
- /**
114995
- * NOT_IMPLEMENTED
114996
- */
114997
- 501: KnowledgeKnowledgeError;
114998
- /**
114999
- * PROVIDER_UNAVAILABLE
115000
- */
115001
- 503: KnowledgeKnowledgeError;
115002
- };
115003
- export type KnowledgeSearchVectorStoreError = KnowledgeSearchVectorStoreErrors[keyof KnowledgeSearchVectorStoreErrors];
115004
- export type KnowledgeSearchVectorStoreResponses = {
115005
- /**
115006
- * Success
115007
- */
115008
- 200: KnowledgeNativeSearchPage;
115009
- };
115010
- export type KnowledgeSearchVectorStoreResponse = KnowledgeSearchVectorStoreResponses[keyof KnowledgeSearchVectorStoreResponses];
115011
- export type KnowledgeListFilesData = {
116208
+ export type KnowledgeDeleteVectorStoreResponse = KnowledgeDeleteVectorStoreResponses[keyof KnowledgeDeleteVectorStoreResponses];
116209
+ export type KnowledgeRetrieveVectorStoreData = {
115012
116210
  body?: never;
115013
116211
  path: {
115014
116212
  /**
@@ -115018,29 +116216,17 @@ export type KnowledgeListFilesData = {
115018
116216
  };
115019
116217
  query?: {
115020
116218
  /**
115021
- * Resource ID.
115022
- */
115023
- after?: string;
115024
- /**
115025
- * Resource ID.
115026
- */
115027
- before?: string;
115028
- /**
115029
- * Page size.
115030
- */
115031
- limit?: number;
115032
- /**
115033
- * Order by creation time; defaults to desc for stores/files and asc by index for segments.
116219
+ * Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.
115034
116220
  */
115035
- order?: 'asc' | 'desc';
116221
+ expand?: Array<'files'>;
115036
116222
  /**
115037
- * in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.
116223
+ * Praxis extension on both URLs: files includes the first file page. Unknown values are ignored.
115038
116224
  */
115039
- filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled';
116225
+ 'expand[]'?: Array<'files'>;
115040
116226
  };
115041
- url: '/knowledge/v1/vector_stores/{vector_store_id}/files';
116227
+ url: '/knowledge/v1/vector_stores/{vector_store_id}';
115042
116228
  };
115043
- export type KnowledgeListFilesErrors = {
116229
+ export type KnowledgeRetrieveVectorStoreErrors = {
115044
116230
  /**
115045
116231
  * INVALID_PARAMS, LIMIT_EXCEEDED
115046
116232
  */
@@ -115078,16 +116264,16 @@ export type KnowledgeListFilesErrors = {
115078
116264
  */
115079
116265
  503: KnowledgeKnowledgeError;
115080
116266
  };
115081
- export type KnowledgeListFilesError = KnowledgeListFilesErrors[keyof KnowledgeListFilesErrors];
115082
- export type KnowledgeListFilesResponses = {
116267
+ export type KnowledgeRetrieveVectorStoreError = KnowledgeRetrieveVectorStoreErrors[keyof KnowledgeRetrieveVectorStoreErrors];
116268
+ export type KnowledgeRetrieveVectorStoreResponses = {
115083
116269
  /**
115084
116270
  * Success
115085
116271
  */
115086
- 200: KnowledgeNativeVectorStoreFileList;
116272
+ 200: KnowledgeNativeExpandedVectorStore;
115087
116273
  };
115088
- export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
115089
- export type KnowledgeAttachFileData = {
115090
- body: KnowledgeNativeAttachFile;
116274
+ export type KnowledgeRetrieveVectorStoreResponse = KnowledgeRetrieveVectorStoreResponses[keyof KnowledgeRetrieveVectorStoreResponses];
116275
+ export type KnowledgeUpdateVectorStoreData = {
116276
+ body: KnowledgeNativeUpdateVectorStore;
115091
116277
  path: {
115092
116278
  /**
115093
116279
  * Resource ID.
@@ -115095,9 +116281,9 @@ export type KnowledgeAttachFileData = {
115095
116281
  vector_store_id: string;
115096
116282
  };
115097
116283
  query?: never;
115098
- url: '/knowledge/v1/vector_stores/{vector_store_id}/files';
116284
+ url: '/knowledge/v1/vector_stores/{vector_store_id}';
115099
116285
  };
115100
- export type KnowledgeAttachFileErrors = {
116286
+ export type KnowledgeUpdateVectorStoreErrors = {
115101
116287
  /**
115102
116288
  * INVALID_PARAMS, LIMIT_EXCEEDED
115103
116289
  */
@@ -115135,30 +116321,26 @@ export type KnowledgeAttachFileErrors = {
115135
116321
  */
115136
116322
  503: KnowledgeKnowledgeError;
115137
116323
  };
115138
- export type KnowledgeAttachFileError = KnowledgeAttachFileErrors[keyof KnowledgeAttachFileErrors];
115139
- export type KnowledgeAttachFileResponses = {
116324
+ export type KnowledgeUpdateVectorStoreError = KnowledgeUpdateVectorStoreErrors[keyof KnowledgeUpdateVectorStoreErrors];
116325
+ export type KnowledgeUpdateVectorStoreResponses = {
115140
116326
  /**
115141
116327
  * Success
115142
116328
  */
115143
- 200: KnowledgeNativeVectorStoreFile;
116329
+ 200: KnowledgeNativeVectorStore;
115144
116330
  };
115145
- export type KnowledgeAttachFileResponse = KnowledgeAttachFileResponses[keyof KnowledgeAttachFileResponses];
115146
- export type KnowledgeRemoveFileData = {
115147
- body?: never;
116331
+ export type KnowledgeUpdateVectorStoreResponse = KnowledgeUpdateVectorStoreResponses[keyof KnowledgeUpdateVectorStoreResponses];
116332
+ export type KnowledgeSearchVectorStoreData = {
116333
+ body: KnowledgeNativeSearchInput;
115148
116334
  path: {
115149
116335
  /**
115150
116336
  * Resource ID.
115151
116337
  */
115152
116338
  vector_store_id: string;
115153
- /**
115154
- * Resource ID.
115155
- */
115156
- file_id: string;
115157
116339
  };
115158
116340
  query?: never;
115159
- url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}';
116341
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/search';
115160
116342
  };
115161
- export type KnowledgeRemoveFileErrors = {
116343
+ export type KnowledgeSearchVectorStoreErrors = {
115162
116344
  /**
115163
116345
  * INVALID_PARAMS, LIMIT_EXCEEDED
115164
116346
  */
@@ -115196,30 +116378,47 @@ export type KnowledgeRemoveFileErrors = {
115196
116378
  */
115197
116379
  503: KnowledgeKnowledgeError;
115198
116380
  };
115199
- export type KnowledgeRemoveFileError = KnowledgeRemoveFileErrors[keyof KnowledgeRemoveFileErrors];
115200
- export type KnowledgeRemoveFileResponses = {
116381
+ export type KnowledgeSearchVectorStoreError = KnowledgeSearchVectorStoreErrors[keyof KnowledgeSearchVectorStoreErrors];
116382
+ export type KnowledgeSearchVectorStoreResponses = {
115201
116383
  /**
115202
116384
  * Success
115203
116385
  */
115204
- 200: KnowledgeRemovedFile;
116386
+ 200: KnowledgeNativeSearchPage;
115205
116387
  };
115206
- export type KnowledgeRemoveFileResponse = KnowledgeRemoveFileResponses[keyof KnowledgeRemoveFileResponses];
115207
- export type KnowledgeRetrieveFileData = {
116388
+ export type KnowledgeSearchVectorStoreResponse = KnowledgeSearchVectorStoreResponses[keyof KnowledgeSearchVectorStoreResponses];
116389
+ export type KnowledgeListFilesData = {
115208
116390
  body?: never;
115209
116391
  path: {
115210
116392
  /**
115211
116393
  * Resource ID.
115212
116394
  */
115213
116395
  vector_store_id: string;
116396
+ };
116397
+ query?: {
115214
116398
  /**
115215
116399
  * Resource ID.
115216
116400
  */
115217
- file_id: string;
116401
+ after?: string;
116402
+ /**
116403
+ * Resource ID.
116404
+ */
116405
+ before?: string;
116406
+ /**
116407
+ * Page size.
116408
+ */
116409
+ limit?: number;
116410
+ /**
116411
+ * Order by creation time; defaults to desc for stores/files and asc by index for segments.
116412
+ */
116413
+ order?: 'asc' | 'desc';
116414
+ /**
116415
+ * in_progress means ingestion is pending or running; completed means searchable; failed means ingestion failed; cancelled means ingestion was stopped by batch cancellation. Omit to include all statuses.
116416
+ */
116417
+ filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled';
115218
116418
  };
115219
- query?: never;
115220
- url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}';
116419
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/files';
115221
116420
  };
115222
- export type KnowledgeRetrieveFileErrors = {
116421
+ export type KnowledgeListFilesErrors = {
115223
116422
  /**
115224
116423
  * INVALID_PARAMS, LIMIT_EXCEEDED
115225
116424
  */
@@ -115257,30 +116456,26 @@ export type KnowledgeRetrieveFileErrors = {
115257
116456
  */
115258
116457
  503: KnowledgeKnowledgeError;
115259
116458
  };
115260
- export type KnowledgeRetrieveFileError = KnowledgeRetrieveFileErrors[keyof KnowledgeRetrieveFileErrors];
115261
- export type KnowledgeRetrieveFileResponses = {
116459
+ export type KnowledgeListFilesError = KnowledgeListFilesErrors[keyof KnowledgeListFilesErrors];
116460
+ export type KnowledgeListFilesResponses = {
115262
116461
  /**
115263
116462
  * Success
115264
116463
  */
115265
- 200: KnowledgeNativeVectorStoreFile;
116464
+ 200: KnowledgeNativeVectorStoreFileList;
115266
116465
  };
115267
- export type KnowledgeRetrieveFileResponse = KnowledgeRetrieveFileResponses[keyof KnowledgeRetrieveFileResponses];
115268
- export type KnowledgeUpdateFileData = {
115269
- body: KnowledgeUpdateFile;
116466
+ export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
116467
+ export type KnowledgeAttachFileData = {
116468
+ body: KnowledgeNativeAttachFile;
115270
116469
  path: {
115271
116470
  /**
115272
116471
  * Resource ID.
115273
116472
  */
115274
116473
  vector_store_id: string;
115275
- /**
115276
- * Resource ID.
115277
- */
115278
- file_id: string;
115279
116474
  };
115280
116475
  query?: never;
115281
- url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}';
116476
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/files';
115282
116477
  };
115283
- export type KnowledgeUpdateFileErrors = {
116478
+ export type KnowledgeAttachFileErrors = {
115284
116479
  /**
115285
116480
  * INVALID_PARAMS, LIMIT_EXCEEDED
115286
116481
  */
@@ -115318,15 +116513,15 @@ export type KnowledgeUpdateFileErrors = {
115318
116513
  */
115319
116514
  503: KnowledgeKnowledgeError;
115320
116515
  };
115321
- export type KnowledgeUpdateFileError = KnowledgeUpdateFileErrors[keyof KnowledgeUpdateFileErrors];
115322
- export type KnowledgeUpdateFileResponses = {
116516
+ export type KnowledgeAttachFileError = KnowledgeAttachFileErrors[keyof KnowledgeAttachFileErrors];
116517
+ export type KnowledgeAttachFileResponses = {
115323
116518
  /**
115324
116519
  * Success
115325
116520
  */
115326
116521
  200: KnowledgeNativeVectorStoreFile;
115327
116522
  };
115328
- export type KnowledgeUpdateFileResponse = KnowledgeUpdateFileResponses[keyof KnowledgeUpdateFileResponses];
115329
- export type KnowledgeRetrieveFileContentData = {
116523
+ export type KnowledgeAttachFileResponse = KnowledgeAttachFileResponses[keyof KnowledgeAttachFileResponses];
116524
+ export type KnowledgeRemoveFileData = {
115330
116525
  body?: never;
115331
116526
  path: {
115332
116527
  /**
@@ -115339,9 +116534,9 @@ export type KnowledgeRetrieveFileContentData = {
115339
116534
  file_id: string;
115340
116535
  };
115341
116536
  query?: never;
115342
- url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content';
116537
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}';
115343
116538
  };
115344
- export type KnowledgeRetrieveFileContentErrors = {
116539
+ export type KnowledgeRemoveFileErrors = {
115345
116540
  /**
115346
116541
  * INVALID_PARAMS, LIMIT_EXCEEDED
115347
116542
  */
@@ -115379,26 +116574,30 @@ export type KnowledgeRetrieveFileContentErrors = {
115379
116574
  */
115380
116575
  503: KnowledgeKnowledgeError;
115381
116576
  };
115382
- export type KnowledgeRetrieveFileContentError = KnowledgeRetrieveFileContentErrors[keyof KnowledgeRetrieveFileContentErrors];
115383
- export type KnowledgeRetrieveFileContentResponses = {
116577
+ export type KnowledgeRemoveFileError = KnowledgeRemoveFileErrors[keyof KnowledgeRemoveFileErrors];
116578
+ export type KnowledgeRemoveFileResponses = {
115384
116579
  /**
115385
116580
  * Success
115386
116581
  */
115387
- 200: KnowledgeFileContent;
116582
+ 200: KnowledgeRemovedFile;
115388
116583
  };
115389
- export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
115390
- export type KnowledgeCreateFileBatchData = {
115391
- body: KnowledgeNativeCreateBatch;
116584
+ export type KnowledgeRemoveFileResponse = KnowledgeRemoveFileResponses[keyof KnowledgeRemoveFileResponses];
116585
+ export type KnowledgeRetrieveFileData = {
116586
+ body?: never;
115392
116587
  path: {
115393
116588
  /**
115394
116589
  * Resource ID.
115395
116590
  */
115396
116591
  vector_store_id: string;
116592
+ /**
116593
+ * Resource ID.
116594
+ */
116595
+ file_id: string;
115397
116596
  };
115398
116597
  query?: never;
115399
- url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches';
116598
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}';
115400
116599
  };
115401
- export type KnowledgeCreateFileBatchErrors = {
116600
+ export type KnowledgeRetrieveFileErrors = {
115402
116601
  /**
115403
116602
  * INVALID_PARAMS, LIMIT_EXCEEDED
115404
116603
  */
@@ -115436,16 +116635,16 @@ export type KnowledgeCreateFileBatchErrors = {
115436
116635
  */
115437
116636
  503: KnowledgeKnowledgeError;
115438
116637
  };
115439
- export type KnowledgeCreateFileBatchError = KnowledgeCreateFileBatchErrors[keyof KnowledgeCreateFileBatchErrors];
115440
- export type KnowledgeCreateFileBatchResponses = {
116638
+ export type KnowledgeRetrieveFileError = KnowledgeRetrieveFileErrors[keyof KnowledgeRetrieveFileErrors];
116639
+ export type KnowledgeRetrieveFileResponses = {
115441
116640
  /**
115442
116641
  * Success
115443
116642
  */
115444
- 200: KnowledgeFileBatch;
116643
+ 200: KnowledgeNativeVectorStoreFile;
115445
116644
  };
115446
- export type KnowledgeCreateFileBatchResponse = KnowledgeCreateFileBatchResponses[keyof KnowledgeCreateFileBatchResponses];
115447
- export type KnowledgeRetrieveFileBatchData = {
115448
- body?: never;
116645
+ export type KnowledgeRetrieveFileResponse = KnowledgeRetrieveFileResponses[keyof KnowledgeRetrieveFileResponses];
116646
+ export type KnowledgeUpdateFileData = {
116647
+ body: KnowledgeUpdateFile;
115449
116648
  path: {
115450
116649
  /**
115451
116650
  * Resource ID.
@@ -115454,12 +116653,12 @@ export type KnowledgeRetrieveFileBatchData = {
115454
116653
  /**
115455
116654
  * Resource ID.
115456
116655
  */
115457
- batch_id: string;
116656
+ file_id: string;
115458
116657
  };
115459
116658
  query?: never;
115460
- url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}';
116659
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}';
115461
116660
  };
115462
- export type KnowledgeRetrieveFileBatchErrors = {
116661
+ export type KnowledgeUpdateFileErrors = {
115463
116662
  /**
115464
116663
  * INVALID_PARAMS, LIMIT_EXCEEDED
115465
116664
  */
@@ -115497,15 +116696,15 @@ export type KnowledgeRetrieveFileBatchErrors = {
115497
116696
  */
115498
116697
  503: KnowledgeKnowledgeError;
115499
116698
  };
115500
- export type KnowledgeRetrieveFileBatchError = KnowledgeRetrieveFileBatchErrors[keyof KnowledgeRetrieveFileBatchErrors];
115501
- export type KnowledgeRetrieveFileBatchResponses = {
116699
+ export type KnowledgeUpdateFileError = KnowledgeUpdateFileErrors[keyof KnowledgeUpdateFileErrors];
116700
+ export type KnowledgeUpdateFileResponses = {
115502
116701
  /**
115503
116702
  * Success
115504
116703
  */
115505
- 200: KnowledgeFileBatch;
116704
+ 200: KnowledgeNativeVectorStoreFile;
115506
116705
  };
115507
- export type KnowledgeRetrieveFileBatchResponse = KnowledgeRetrieveFileBatchResponses[keyof KnowledgeRetrieveFileBatchResponses];
115508
- export type KnowledgeCancelFileBatchData = {
116706
+ export type KnowledgeUpdateFileResponse = KnowledgeUpdateFileResponses[keyof KnowledgeUpdateFileResponses];
116707
+ export type KnowledgeRetrieveFileContentData = {
115509
116708
  body?: never;
115510
116709
  path: {
115511
116710
  /**
@@ -115515,12 +116714,191 @@ export type KnowledgeCancelFileBatchData = {
115515
116714
  /**
115516
116715
  * Resource ID.
115517
116716
  */
115518
- batch_id: string;
116717
+ file_id: string;
115519
116718
  };
115520
116719
  query?: never;
115521
- url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel';
116720
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/files/{file_id}/content';
115522
116721
  };
115523
- export type KnowledgeCancelFileBatchErrors = {
116722
+ export type KnowledgeRetrieveFileContentErrors = {
116723
+ /**
116724
+ * INVALID_PARAMS, LIMIT_EXCEEDED
116725
+ */
116726
+ 400: KnowledgeKnowledgeError;
116727
+ /**
116728
+ * UNAUTHENTICATED; gateway errors can omit details or return code=null.
116729
+ */
116730
+ 401: KnowledgeKnowledgeError;
116731
+ /**
116732
+ * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
116733
+ */
116734
+ 404: KnowledgeKnowledgeError;
116735
+ /**
116736
+ * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
116737
+ */
116738
+ 409: KnowledgeKnowledgeError;
116739
+ /**
116740
+ * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
116741
+ */
116742
+ 413: KnowledgeKnowledgeError;
116743
+ /**
116744
+ * RATE_LIMITED
116745
+ */
116746
+ 429: KnowledgeKnowledgeError;
116747
+ /**
116748
+ * Internal error; code may be absent or null.
116749
+ */
116750
+ 500: KnowledgeTransportError;
116751
+ /**
116752
+ * NOT_IMPLEMENTED
116753
+ */
116754
+ 501: KnowledgeKnowledgeError;
116755
+ /**
116756
+ * PROVIDER_UNAVAILABLE
116757
+ */
116758
+ 503: KnowledgeKnowledgeError;
116759
+ };
116760
+ export type KnowledgeRetrieveFileContentError = KnowledgeRetrieveFileContentErrors[keyof KnowledgeRetrieveFileContentErrors];
116761
+ export type KnowledgeRetrieveFileContentResponses = {
116762
+ /**
116763
+ * Success
116764
+ */
116765
+ 200: KnowledgeFileContent;
116766
+ };
116767
+ export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
116768
+ export type KnowledgeCreateFileBatchData = {
116769
+ body: KnowledgeNativeCreateBatch;
116770
+ path: {
116771
+ /**
116772
+ * Resource ID.
116773
+ */
116774
+ vector_store_id: string;
116775
+ };
116776
+ query?: never;
116777
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches';
116778
+ };
116779
+ export type KnowledgeCreateFileBatchErrors = {
116780
+ /**
116781
+ * INVALID_PARAMS, LIMIT_EXCEEDED
116782
+ */
116783
+ 400: KnowledgeKnowledgeError;
116784
+ /**
116785
+ * UNAUTHENTICATED; gateway errors can omit details or return code=null.
116786
+ */
116787
+ 401: KnowledgeKnowledgeError;
116788
+ /**
116789
+ * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
116790
+ */
116791
+ 404: KnowledgeKnowledgeError;
116792
+ /**
116793
+ * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
116794
+ */
116795
+ 409: KnowledgeKnowledgeError;
116796
+ /**
116797
+ * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
116798
+ */
116799
+ 413: KnowledgeKnowledgeError;
116800
+ /**
116801
+ * RATE_LIMITED
116802
+ */
116803
+ 429: KnowledgeKnowledgeError;
116804
+ /**
116805
+ * Internal error; code may be absent or null.
116806
+ */
116807
+ 500: KnowledgeTransportError;
116808
+ /**
116809
+ * NOT_IMPLEMENTED
116810
+ */
116811
+ 501: KnowledgeKnowledgeError;
116812
+ /**
116813
+ * PROVIDER_UNAVAILABLE
116814
+ */
116815
+ 503: KnowledgeKnowledgeError;
116816
+ };
116817
+ export type KnowledgeCreateFileBatchError = KnowledgeCreateFileBatchErrors[keyof KnowledgeCreateFileBatchErrors];
116818
+ export type KnowledgeCreateFileBatchResponses = {
116819
+ /**
116820
+ * Success
116821
+ */
116822
+ 200: KnowledgeFileBatch;
116823
+ };
116824
+ export type KnowledgeCreateFileBatchResponse = KnowledgeCreateFileBatchResponses[keyof KnowledgeCreateFileBatchResponses];
116825
+ export type KnowledgeRetrieveFileBatchData = {
116826
+ body?: never;
116827
+ path: {
116828
+ /**
116829
+ * Resource ID.
116830
+ */
116831
+ vector_store_id: string;
116832
+ /**
116833
+ * Resource ID.
116834
+ */
116835
+ batch_id: string;
116836
+ };
116837
+ query?: never;
116838
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}';
116839
+ };
116840
+ export type KnowledgeRetrieveFileBatchErrors = {
116841
+ /**
116842
+ * INVALID_PARAMS, LIMIT_EXCEEDED
116843
+ */
116844
+ 400: KnowledgeKnowledgeError;
116845
+ /**
116846
+ * UNAUTHENTICATED; gateway errors can omit details or return code=null.
116847
+ */
116848
+ 401: KnowledgeKnowledgeError;
116849
+ /**
116850
+ * VECTOR_STORE_NOT_FOUND, FILE_NOT_FOUND, FILE_NOT_IN_STORE, BATCH_NOT_FOUND, CHUNK_NOT_FOUND
116851
+ */
116852
+ 404: KnowledgeKnowledgeError;
116853
+ /**
116854
+ * VECTOR_STORE_INVALID_STATE, FILE_INVALID_STATE
116855
+ */
116856
+ 409: KnowledgeKnowledgeError;
116857
+ /**
116858
+ * PAYLOAD_TOO_LARGE; gateway errors can omit details or return code=null.
116859
+ */
116860
+ 413: KnowledgeKnowledgeError;
116861
+ /**
116862
+ * RATE_LIMITED
116863
+ */
116864
+ 429: KnowledgeKnowledgeError;
116865
+ /**
116866
+ * Internal error; code may be absent or null.
116867
+ */
116868
+ 500: KnowledgeTransportError;
116869
+ /**
116870
+ * NOT_IMPLEMENTED
116871
+ */
116872
+ 501: KnowledgeKnowledgeError;
116873
+ /**
116874
+ * PROVIDER_UNAVAILABLE
116875
+ */
116876
+ 503: KnowledgeKnowledgeError;
116877
+ };
116878
+ export type KnowledgeRetrieveFileBatchError = KnowledgeRetrieveFileBatchErrors[keyof KnowledgeRetrieveFileBatchErrors];
116879
+ export type KnowledgeRetrieveFileBatchResponses = {
116880
+ /**
116881
+ * Success
116882
+ */
116883
+ 200: KnowledgeFileBatch;
116884
+ };
116885
+ export type KnowledgeRetrieveFileBatchResponse = KnowledgeRetrieveFileBatchResponses[keyof KnowledgeRetrieveFileBatchResponses];
116886
+ export type KnowledgeCancelFileBatchData = {
116887
+ body?: never;
116888
+ path: {
116889
+ /**
116890
+ * Resource ID.
116891
+ */
116892
+ vector_store_id: string;
116893
+ /**
116894
+ * Resource ID.
116895
+ */
116896
+ batch_id: string;
116897
+ };
116898
+ query?: never;
116899
+ url: '/knowledge/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel';
116900
+ };
116901
+ export type KnowledgeCancelFileBatchErrors = {
115524
116902
  /**
115525
116903
  * INVALID_PARAMS, LIMIT_EXCEEDED
115526
116904
  */
@@ -120254,6 +121632,511 @@ export type MediaDesignVoiceResponses = {
120254
121632
  202: MediaJob;
120255
121633
  };
120256
121634
  export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
121635
+ export type MediaListWorksData = {
121636
+ body?: never;
121637
+ path: {
121638
+ /**
121639
+ * Library ID returned by creation.
121640
+ */
121641
+ library_id: string;
121642
+ };
121643
+ query?: {
121644
+ /**
121645
+ * Only works of this kind: gallery, article, product_listing or blocks.
121646
+ */
121647
+ kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
121648
+ /**
121649
+ * Only works of this series.
121650
+ */
121651
+ series?: string;
121652
+ /**
121653
+ * Only works whose title contains this text, at most 100 characters.
121654
+ */
121655
+ q?: string;
121656
+ /**
121657
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
121658
+ */
121659
+ limit?: number;
121660
+ /**
121661
+ * Cursor from the previous next_cursor.
121662
+ */
121663
+ cursor?: string;
121664
+ };
121665
+ url: '/media/v1/libraries/{library_id}/works';
121666
+ };
121667
+ export type MediaListWorksErrors = {
121668
+ /**
121669
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121670
+ */
121671
+ 400: MediaMediaError;
121672
+ /**
121673
+ * Request failed; see the error code reference.
121674
+ */
121675
+ 402: MediaMediaError;
121676
+ /**
121677
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121678
+ */
121679
+ 403: MediaMediaError;
121680
+ /**
121681
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121682
+ */
121683
+ 404: MediaMediaError;
121684
+ /**
121685
+ * Request failed; see the error code reference.
121686
+ */
121687
+ 409: MediaMediaError;
121688
+ /**
121689
+ * The file exceeds an input limit; provide a smaller source file.
121690
+ */
121691
+ 413: MediaMediaError;
121692
+ /**
121693
+ * This media format is unsupported; provide a supported format.
121694
+ */
121695
+ 415: MediaMediaError;
121696
+ /**
121697
+ * Request failed; see the error code reference.
121698
+ */
121699
+ 422: MediaMediaError;
121700
+ /**
121701
+ * A rate limit was reached; wait before retrying.
121702
+ */
121703
+ 429: MediaMediaError;
121704
+ /**
121705
+ * The requested operation is unsupported; choose a supported method.
121706
+ */
121707
+ 501: MediaMediaError;
121708
+ /**
121709
+ * Request failed; see the error code reference.
121710
+ */
121711
+ 502: MediaMediaError;
121712
+ /**
121713
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121714
+ */
121715
+ 503: MediaMediaError;
121716
+ };
121717
+ export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
121718
+ export type MediaListWorksResponses = {
121719
+ /**
121720
+ * Successful response.
121721
+ */
121722
+ 200: MediaWorkPage;
121723
+ };
121724
+ export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
121725
+ export type MediaCreateWorkData = {
121726
+ /**
121727
+ * A new work: its kind and its whole body, with an optional series and custom fields.
121728
+ */
121729
+ body: {
121730
+ /**
121731
+ * The work’s kind; it decides which body fields are accepted.
121732
+ */
121733
+ kind: MediaWorkKind;
121734
+ /**
121735
+ * 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.
121736
+ */
121737
+ body: MediaWorkBody;
121738
+ /**
121739
+ * Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
121740
+ */
121741
+ series?: string;
121742
+ /**
121743
+ * Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
121744
+ */
121745
+ custom?: MediaWorkCustom;
121746
+ };
121747
+ path: {
121748
+ /**
121749
+ * Library ID returned by creation.
121750
+ */
121751
+ library_id: string;
121752
+ };
121753
+ query?: never;
121754
+ url: '/media/v1/libraries/{library_id}/works';
121755
+ };
121756
+ export type MediaCreateWorkErrors = {
121757
+ /**
121758
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121759
+ */
121760
+ 400: MediaMediaError;
121761
+ /**
121762
+ * Request failed; see the error code reference.
121763
+ */
121764
+ 402: MediaMediaError;
121765
+ /**
121766
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121767
+ */
121768
+ 403: MediaMediaError;
121769
+ /**
121770
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121771
+ */
121772
+ 404: MediaMediaError;
121773
+ /**
121774
+ * Request failed; see the error code reference.
121775
+ */
121776
+ 409: MediaMediaError;
121777
+ /**
121778
+ * The file exceeds an input limit; provide a smaller source file.
121779
+ */
121780
+ 413: MediaMediaError;
121781
+ /**
121782
+ * This media format is unsupported; provide a supported format.
121783
+ */
121784
+ 415: MediaMediaError;
121785
+ /**
121786
+ * Request failed; see the error code reference.
121787
+ */
121788
+ 422: MediaMediaError;
121789
+ /**
121790
+ * A rate limit was reached; wait before retrying.
121791
+ */
121792
+ 429: MediaMediaError;
121793
+ /**
121794
+ * The requested operation is unsupported; choose a supported method.
121795
+ */
121796
+ 501: MediaMediaError;
121797
+ /**
121798
+ * Request failed; see the error code reference.
121799
+ */
121800
+ 502: MediaMediaError;
121801
+ /**
121802
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121803
+ */
121804
+ 503: MediaMediaError;
121805
+ };
121806
+ export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
121807
+ export type MediaCreateWorkResponses = {
121808
+ /**
121809
+ * Successful response.
121810
+ */
121811
+ 200: MediaWork;
121812
+ };
121813
+ export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
121814
+ export type MediaDeleteWorkData = {
121815
+ body?: never;
121816
+ path: {
121817
+ /**
121818
+ * Library ID returned by creation.
121819
+ */
121820
+ library_id: string;
121821
+ /**
121822
+ * Work id (wrk_…) returned by creation or listing.
121823
+ */
121824
+ work_id: string;
121825
+ };
121826
+ query?: never;
121827
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
121828
+ };
121829
+ export type MediaDeleteWorkErrors = {
121830
+ /**
121831
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121832
+ */
121833
+ 400: MediaMediaError;
121834
+ /**
121835
+ * Request failed; see the error code reference.
121836
+ */
121837
+ 402: MediaMediaError;
121838
+ /**
121839
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121840
+ */
121841
+ 403: MediaMediaError;
121842
+ /**
121843
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121844
+ */
121845
+ 404: MediaMediaError;
121846
+ /**
121847
+ * Request failed; see the error code reference.
121848
+ */
121849
+ 409: MediaMediaError;
121850
+ /**
121851
+ * The file exceeds an input limit; provide a smaller source file.
121852
+ */
121853
+ 413: MediaMediaError;
121854
+ /**
121855
+ * This media format is unsupported; provide a supported format.
121856
+ */
121857
+ 415: MediaMediaError;
121858
+ /**
121859
+ * Request failed; see the error code reference.
121860
+ */
121861
+ 422: MediaMediaError;
121862
+ /**
121863
+ * A rate limit was reached; wait before retrying.
121864
+ */
121865
+ 429: MediaMediaError;
121866
+ /**
121867
+ * The requested operation is unsupported; choose a supported method.
121868
+ */
121869
+ 501: MediaMediaError;
121870
+ /**
121871
+ * Request failed; see the error code reference.
121872
+ */
121873
+ 502: MediaMediaError;
121874
+ /**
121875
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121876
+ */
121877
+ 503: MediaMediaError;
121878
+ };
121879
+ export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
121880
+ export type MediaDeleteWorkResponses = {
121881
+ /**
121882
+ * Successful response.
121883
+ */
121884
+ 200: MediaDeletedWork;
121885
+ };
121886
+ export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
121887
+ export type MediaGetWorkData = {
121888
+ body?: never;
121889
+ path: {
121890
+ /**
121891
+ * Library ID returned by creation.
121892
+ */
121893
+ library_id: string;
121894
+ /**
121895
+ * Work id (wrk_…) returned by creation or listing.
121896
+ */
121897
+ work_id: string;
121898
+ };
121899
+ query?: {
121900
+ /**
121901
+ * assets returns every referenced asset with its URLs and size.
121902
+ */
121903
+ expand?: string;
121904
+ };
121905
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
121906
+ };
121907
+ export type MediaGetWorkErrors = {
121908
+ /**
121909
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
121910
+ */
121911
+ 400: MediaMediaError;
121912
+ /**
121913
+ * Request failed; see the error code reference.
121914
+ */
121915
+ 402: MediaMediaError;
121916
+ /**
121917
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
121918
+ */
121919
+ 403: MediaMediaError;
121920
+ /**
121921
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
121922
+ */
121923
+ 404: MediaMediaError;
121924
+ /**
121925
+ * Request failed; see the error code reference.
121926
+ */
121927
+ 409: MediaMediaError;
121928
+ /**
121929
+ * The file exceeds an input limit; provide a smaller source file.
121930
+ */
121931
+ 413: MediaMediaError;
121932
+ /**
121933
+ * This media format is unsupported; provide a supported format.
121934
+ */
121935
+ 415: MediaMediaError;
121936
+ /**
121937
+ * Request failed; see the error code reference.
121938
+ */
121939
+ 422: MediaMediaError;
121940
+ /**
121941
+ * A rate limit was reached; wait before retrying.
121942
+ */
121943
+ 429: MediaMediaError;
121944
+ /**
121945
+ * The requested operation is unsupported; choose a supported method.
121946
+ */
121947
+ 501: MediaMediaError;
121948
+ /**
121949
+ * Request failed; see the error code reference.
121950
+ */
121951
+ 502: MediaMediaError;
121952
+ /**
121953
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
121954
+ */
121955
+ 503: MediaMediaError;
121956
+ };
121957
+ export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
121958
+ export type MediaGetWorkResponses = {
121959
+ /**
121960
+ * Successful response.
121961
+ */
121962
+ 200: MediaWork;
121963
+ };
121964
+ export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
121965
+ export type MediaUpdateWorkData = {
121966
+ /**
121967
+ * Changes to a work. Send only what changes.
121968
+ */
121969
+ body: {
121970
+ /**
121971
+ * A whole new body for the same kind; it replaces the old one and is checked like a new one.
121972
+ */
121973
+ body?: MediaWorkBody;
121974
+ /**
121975
+ * A new series, or null to clear it.
121976
+ */
121977
+ series?: string | null;
121978
+ /**
121979
+ * A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
121980
+ */
121981
+ custom?: MediaWorkCustom;
121982
+ /**
121983
+ * Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
121984
+ */
121985
+ if_revision?: number;
121986
+ };
121987
+ path: {
121988
+ /**
121989
+ * Library ID returned by creation.
121990
+ */
121991
+ library_id: string;
121992
+ /**
121993
+ * Work id (wrk_…) returned by creation or listing.
121994
+ */
121995
+ work_id: string;
121996
+ };
121997
+ query?: never;
121998
+ url: '/media/v1/libraries/{library_id}/works/{work_id}';
121999
+ };
122000
+ export type MediaUpdateWorkErrors = {
122001
+ /**
122002
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
122003
+ */
122004
+ 400: MediaMediaError;
122005
+ /**
122006
+ * Request failed; see the error code reference.
122007
+ */
122008
+ 402: MediaMediaError;
122009
+ /**
122010
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
122011
+ */
122012
+ 403: MediaMediaError;
122013
+ /**
122014
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
122015
+ */
122016
+ 404: MediaMediaError;
122017
+ /**
122018
+ * Request failed; see the error code reference.
122019
+ */
122020
+ 409: MediaMediaError;
122021
+ /**
122022
+ * The file exceeds an input limit; provide a smaller source file.
122023
+ */
122024
+ 413: MediaMediaError;
122025
+ /**
122026
+ * This media format is unsupported; provide a supported format.
122027
+ */
122028
+ 415: MediaMediaError;
122029
+ /**
122030
+ * Request failed; see the error code reference.
122031
+ */
122032
+ 422: MediaMediaError;
122033
+ /**
122034
+ * A rate limit was reached; wait before retrying.
122035
+ */
122036
+ 429: MediaMediaError;
122037
+ /**
122038
+ * The requested operation is unsupported; choose a supported method.
122039
+ */
122040
+ 501: MediaMediaError;
122041
+ /**
122042
+ * Request failed; see the error code reference.
122043
+ */
122044
+ 502: MediaMediaError;
122045
+ /**
122046
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
122047
+ */
122048
+ 503: MediaMediaError;
122049
+ };
122050
+ export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
122051
+ export type MediaUpdateWorkResponses = {
122052
+ /**
122053
+ * Successful response.
122054
+ */
122055
+ 200: MediaWork;
122056
+ };
122057
+ export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
122058
+ export type MediaListAssetWorksData = {
122059
+ body?: never;
122060
+ path: {
122061
+ /**
122062
+ * Library ID returned by creation.
122063
+ */
122064
+ library_id: string;
122065
+ /**
122066
+ * 32-character asset ID.
122067
+ */
122068
+ asset_id: string;
122069
+ };
122070
+ query?: {
122071
+ /**
122072
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
122073
+ */
122074
+ limit?: number;
122075
+ /**
122076
+ * Cursor from the previous next_cursor.
122077
+ */
122078
+ cursor?: string;
122079
+ };
122080
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
122081
+ };
122082
+ export type MediaListAssetWorksErrors = {
122083
+ /**
122084
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
122085
+ */
122086
+ 400: MediaMediaError;
122087
+ /**
122088
+ * Request failed; see the error code reference.
122089
+ */
122090
+ 402: MediaMediaError;
122091
+ /**
122092
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
122093
+ */
122094
+ 403: MediaMediaError;
122095
+ /**
122096
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
122097
+ */
122098
+ 404: MediaMediaError;
122099
+ /**
122100
+ * Request failed; see the error code reference.
122101
+ */
122102
+ 409: MediaMediaError;
122103
+ /**
122104
+ * The file exceeds an input limit; provide a smaller source file.
122105
+ */
122106
+ 413: MediaMediaError;
122107
+ /**
122108
+ * This media format is unsupported; provide a supported format.
122109
+ */
122110
+ 415: MediaMediaError;
122111
+ /**
122112
+ * Request failed; see the error code reference.
122113
+ */
122114
+ 422: MediaMediaError;
122115
+ /**
122116
+ * A rate limit was reached; wait before retrying.
122117
+ */
122118
+ 429: MediaMediaError;
122119
+ /**
122120
+ * The requested operation is unsupported; choose a supported method.
122121
+ */
122122
+ 501: MediaMediaError;
122123
+ /**
122124
+ * Request failed; see the error code reference.
122125
+ */
122126
+ 502: MediaMediaError;
122127
+ /**
122128
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
122129
+ */
122130
+ 503: MediaMediaError;
122131
+ };
122132
+ export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
122133
+ export type MediaListAssetWorksResponses = {
122134
+ /**
122135
+ * Successful response.
122136
+ */
122137
+ 200: MediaWorkPage;
122138
+ };
122139
+ export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
120257
122140
  export type OntologyListTypesData = {
120258
122141
  body?: never;
120259
122142
  path?: never;