@deepraxis/sdk 0.1.1-dev.6b385c0 → 0.1.1-dev.6c28f93

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.
@@ -14880,6 +14880,63 @@ export type DevopsProject = {
14880
14880
  [key: string]: string;
14881
14881
  };
14882
14882
  };
14883
+ /**
14884
+ * A patch to a project; only the fields named in updateMask are written.
14885
+ */
14886
+ export type DevopsProjectUpdate = {
14887
+ /**
14888
+ * The new values. settings is merged into the current settings, so name only the settings to change.
14889
+ */
14890
+ project: {
14891
+ /**
14892
+ * New kebab-case name, unique within the organization.
14893
+ */
14894
+ name?: string;
14895
+ /**
14896
+ * New free-text description.
14897
+ */
14898
+ description?: string;
14899
+ /**
14900
+ * New labels, replacing the current ones.
14901
+ */
14902
+ labels?: {
14903
+ [key: string]: string;
14904
+ };
14905
+ /**
14906
+ * Delivery settings to merge into the current ones; absent keys keep their value.
14907
+ */
14908
+ settings?: {
14909
+ /**
14910
+ * New release schedule, or null to stop scheduled releases.
14911
+ */
14912
+ releaseSchedule?: null | DevopsReleaseSchedule;
14913
+ /**
14914
+ * New observation window in minutes for production promotions.
14915
+ */
14916
+ observationWindowMinutes?: number;
14917
+ /**
14918
+ * Whether merging promotes to the first environment by itself.
14919
+ */
14920
+ autoDeployOnMerge?: boolean;
14921
+ /**
14922
+ * Whether a promotion may bypass upstream verification.
14923
+ */
14924
+ allowSkipUpstream?: boolean;
14925
+ /**
14926
+ * Whether the merge gate is a required check on the git host.
14927
+ */
14928
+ requireGate?: boolean;
14929
+ /**
14930
+ * Who publishes this project: mise (the default when absent) keeps the Mise pipeline; devops hands releases to the DevOps pipeline once the merge is done.
14931
+ */
14932
+ executor?: 'mise' | 'devops';
14933
+ };
14934
+ };
14935
+ /**
14936
+ * Which project fields to write, by name: name, description, labels, settings. Omit it to write every field the project object carries.
14937
+ */
14938
+ updateMask?: Array<string>;
14939
+ };
14883
14940
  /**
14884
14941
  * What to release: either a commit as it stands, or a set of picks applied onto a release already in production. The two shapes are exclusive.
14885
14942
  */
@@ -15262,6 +15319,90 @@ export type DevopsEnvironmentList = {
15262
15319
  */
15263
15320
  items: Array<DevopsEnvironment>;
15264
15321
  };
15322
+ /**
15323
+ * A patch to an environment; only the fields named in updateMask are written.
15324
+ */
15325
+ export type DevopsEnvironmentUpdate = {
15326
+ /**
15327
+ * The new values for the environment fields to change.
15328
+ */
15329
+ environment: {
15330
+ /**
15331
+ * New display name, unique within the project.
15332
+ */
15333
+ name?: string;
15334
+ /**
15335
+ * New position in the promotion sequence, from 1 to the number of environments.
15336
+ */
15337
+ order?: number;
15338
+ /**
15339
+ * True makes later promotions into this environment wait in awaiting_approval until approved; false lets them proceed directly.
15340
+ */
15341
+ requireApproval?: boolean;
15342
+ /**
15343
+ * Minutes a promotion into this environment stays under observation.
15344
+ */
15345
+ observeMinutes?: number;
15346
+ /**
15347
+ * Whether a failure here blocks promotion into the environments after it.
15348
+ */
15349
+ blocksLater?: boolean;
15350
+ /**
15351
+ * Suffix such as -develop that this environment adds to site hostnames, or null for none.
15352
+ */
15353
+ domainSuffix?: string | null;
15354
+ };
15355
+ /**
15356
+ * Which environment fields to write, by name: name, order, requireApproval, observeMinutes, blocksLater, domainSuffix. Omit it to write every field the environment object carries.
15357
+ */
15358
+ updateMask?: Array<string>;
15359
+ };
15360
+ /**
15361
+ * One environment a release can be promoted into, and where its promotion queue stands.
15362
+ */
15363
+ export type DevopsEnvironment = {
15364
+ /**
15365
+ * Environment identifier used when creating a promotion or a flag environment write.
15366
+ */
15367
+ id: string;
15368
+ /**
15369
+ * The resource type of this answer, always environment.
15370
+ */
15371
+ object: 'environment';
15372
+ /**
15373
+ * RFC 3339 UTC time the environment was created.
15374
+ */
15375
+ createTime: string;
15376
+ /**
15377
+ * RFC 3339 UTC time the environment or its approval requirement last changed.
15378
+ */
15379
+ updateTime: string;
15380
+ /**
15381
+ * Canonical Console link for the project this environment belongs to.
15382
+ */
15383
+ viewerUrl: string;
15384
+ /**
15385
+ * The project this environment belongs to, from the project list.
15386
+ */
15387
+ project: string;
15388
+ /**
15389
+ * Display name of the environment, such as develop or production; a project chooses its own names.
15390
+ */
15391
+ name: string;
15392
+ /**
15393
+ * What kind of environment this is, which decides how its failures are treated and how the Console presents it.
15394
+ */
15395
+ tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
15396
+ /**
15397
+ * Position in the promotion sequence, starting at 1 and contiguous; the environment one lower must have verified a release before it may be promoted here.
15398
+ */
15399
+ order: number;
15400
+ /**
15401
+ * Whether a promotion into this environment waits for an approval before it deploys; true is what puts a promotion in awaiting_approval.
15402
+ */
15403
+ requireApproval: boolean;
15404
+ queue: DevopsEnvironmentQueue;
15405
+ };
15265
15406
  /**
15266
15407
  * Where an environment stands, one entry per target that has been deployed to. A target nothing has deployed to has no checkpoint yet.
15267
15408
  */
@@ -15654,6 +15795,165 @@ export type DevopsTofuLockInfo = {
15654
15795
  Path?: string;
15655
15796
  [key: string]: unknown;
15656
15797
  };
15798
+ /**
15799
+ * The change to open: what kind of work it is, the slug that names its branch, a title, and whether it carries a flag.
15800
+ */
15801
+ export type DevopsChangeCreate = {
15802
+ /**
15803
+ * What the work is, in commitlint vocabulary; together with slug it forms the change id <type>/<slug>.
15804
+ */
15805
+ type: 'feat' | 'fix' | 'perf' | 'refactor' | 'docs' | 'test' | 'build' | 'ci' | 'chore' | 'revert';
15806
+ /**
15807
+ * Lower-case letters, digits and hyphens, 2 to 60 characters; it becomes the branch name after the type and the key of the change's flag.
15808
+ */
15809
+ slug: string;
15810
+ /**
15811
+ * One line saying what the change is for, shown wherever the change is listed and used as the flag's name.
15812
+ */
15813
+ title: string;
15814
+ /**
15815
+ * Ticket references the change belongs to, as a magic word or a #number; omit it when there is none.
15816
+ */
15817
+ tickets?: Array<string>;
15818
+ /**
15819
+ * True to create a release flag keyed by the slug; omitted means true for feat and false for every other type.
15820
+ */
15821
+ withFlag?: boolean;
15822
+ /**
15823
+ * True for an urgent fix that may take the patch path with a recorded authorization to skip develop; omitted means false.
15824
+ */
15825
+ urgent?: boolean;
15826
+ /**
15827
+ * RFC 3339 UTC deadline by which the flag's observation must be decided; only used when the change creates a flag.
15828
+ */
15829
+ observeUntil?: string;
15830
+ /**
15831
+ * Caller-chosen key that makes a retry answer the change the first call made instead of creating another.
15832
+ */
15833
+ requestId?: string;
15834
+ };
15835
+ /**
15836
+ * One change: a piece of work carried from a branch through its pull requests and environments, with its derived stage.
15837
+ */
15838
+ export type DevopsChange = {
15839
+ /**
15840
+ * The change's id, which is its branch name <type>/<slug>; unique within the project and percent-encoded in paths.
15841
+ */
15842
+ id: string;
15843
+ /**
15844
+ * The resource type of this answer, always change.
15845
+ */
15846
+ object: 'change';
15847
+ /**
15848
+ * RFC 3339 UTC time the change was opened; the change list is ordered by it, newest first.
15849
+ */
15850
+ createTime: string;
15851
+ /**
15852
+ * RFC 3339 UTC time the change's own fields last changed.
15853
+ */
15854
+ updateTime: string;
15855
+ /**
15856
+ * Canonical Console link for this change.
15857
+ */
15858
+ viewerUrl: string;
15859
+ /**
15860
+ * The project this change belongs to, from the project list.
15861
+ */
15862
+ project: string;
15863
+ /**
15864
+ * The first half of the id, listed so readers need not split it.
15865
+ */
15866
+ type: string;
15867
+ /**
15868
+ * The second half of the id; also the key of the change's flag.
15869
+ */
15870
+ slug: string;
15871
+ /**
15872
+ * One line saying what the change is for.
15873
+ */
15874
+ title: string;
15875
+ /**
15876
+ * Ticket references the change belongs to.
15877
+ */
15878
+ tickets: Array<string>;
15879
+ /**
15880
+ * Whether the change carries a flag that is rolled out in each environment on its own.
15881
+ */
15882
+ withFlag: boolean;
15883
+ owner: DevopsActor;
15884
+ /**
15885
+ * True for an urgent fix that may take the patch path.
15886
+ */
15887
+ urgent: boolean;
15888
+ /**
15889
+ * The branch that was cut; null when the project has no connected repository.
15890
+ */
15891
+ branch: string | null;
15892
+ /**
15893
+ * The pull requests whose head branch is this change's id, one per slice.
15894
+ */
15895
+ pullRequests: Array<DevopsChangePullRequestRef>;
15896
+ /**
15897
+ * The change's flag id, readable with the flag retrieve call; null when it has no flag.
15898
+ */
15899
+ flag: string | null;
15900
+ /**
15901
+ * The workspace that has the branch checked out; null when none does.
15902
+ */
15903
+ workspace: string | null;
15904
+ /**
15905
+ * Whether the next merged pull request is the last slice; until it is true the change cannot roll out or finish.
15906
+ */
15907
+ lastSlice: boolean;
15908
+ /**
15909
+ * True once the change was abandoned.
15910
+ */
15911
+ abandoned: boolean;
15912
+ stage: DevopsChangeStageDetail;
15913
+ /**
15914
+ * Set when this change is a suspect of a failed verification that no later success has replaced; null otherwise.
15915
+ */
15916
+ suspectedIn?: DevopsChangeSuspectedIn | null;
15917
+ /**
15918
+ * One cell per environment of the project.
15919
+ */
15920
+ cells: Array<DevopsChangeCell>;
15921
+ };
15922
+ /**
15923
+ * One page of a project's changes, newest first.
15924
+ */
15925
+ export type DevopsChangePage = {
15926
+ /**
15927
+ * The changes on this page, each with its derived stage and per-environment cells.
15928
+ */
15929
+ items: Array<DevopsChange>;
15930
+ /**
15931
+ * How many changes the project and filter match across every page; returned on the first page only.
15932
+ */
15933
+ totalSize?: number;
15934
+ /**
15935
+ * Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished.
15936
+ */
15937
+ nextPageToken: string;
15938
+ };
15939
+ /**
15940
+ * The reason a change is being abandoned.
15941
+ */
15942
+ export type DevopsChangeAbandonRequest = {
15943
+ /**
15944
+ * Why the change is abandoned, stored with it as the attribution of the act.
15945
+ */
15946
+ reason: string;
15947
+ };
15948
+ /**
15949
+ * Whether the pull request being merged is the change's last slice.
15950
+ */
15951
+ export type DevopsChangeMarkLastSliceRequest = {
15952
+ /**
15953
+ * True when no more pull requests will follow; false keeps the change from reaching rolling out or done.
15954
+ */
15955
+ lastSlice: boolean;
15956
+ };
15657
15957
  export type KnowledgeNativeVectorStore = {
15658
15958
  /**
15659
15959
  * Resource ID.
@@ -16628,6 +16928,10 @@ export type MediaAsset = {
16628
16928
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
16629
16929
  */
16630
16930
  provenance?: MediaProvenance;
16931
+ /**
16932
+ * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
16933
+ */
16934
+ viewer_url?: string;
16631
16935
  };
16632
16936
  /**
16633
16937
  * Receipt confirming that the asset was deleted.
@@ -16756,15 +17060,15 @@ export type MediaFolders = {
16756
17060
  counts_complete: boolean;
16757
17061
  };
16758
17062
  /**
16759
- * Asynchronous batch job with successful and failed item counts.
17063
+ * An asynchronous job in a library. A generation job produces new media (image, video or speech) and reports its outputs, failures, usage and, for each produced asset, a viewer_url; a batch job changes existing assets and reports item counts.
16760
17064
  */
16761
17065
  export type MediaJob = {
16762
17066
  /**
16763
- * Generated batch identifier: job_ followed by 32 lowercase hexadecimal characters.
17067
+ * Job identifier: job_ followed by 32 lowercase hexadecimal characters. Poll it with jobs.retrieve.
16764
17068
  */
16765
17069
  id: MediaJobId;
16766
17070
  /**
16767
- * Identifier of the library in which the batch operates.
17071
+ * Identifier of the library the job runs in; the produced assets land here.
16768
17072
  */
16769
17073
  library_id: MediaLibraryId;
16770
17074
  /**
@@ -16772,7 +17076,7 @@ export type MediaJob = {
16772
17076
  */
16773
17077
  action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
16774
17078
  /**
16775
- * Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
17079
+ * Where the job is. A generation job moves queued, then in_progress, then ends as completed (every output succeeded), failed (no output succeeded) or canceled (stopped by a caller). Keep polling until it is completed, failed or canceled; do not stop at queued. Batch jobs and generation jobs written earlier use running, completed_with_errors and cancelled for the same states, and a job some of whose outputs succeeded answers completed with those outputs marked failed in failures.
16776
17080
  */
16777
17081
  status: MediaJobStatus;
16778
17082
  /**
@@ -16796,15 +17100,15 @@ export type MediaJob = {
16796
17100
  */
16797
17101
  queue_reason?: 'concurrency' | 'provider_throttled';
16798
17102
  /**
16799
- * Number of distinct assets selected when the job was created.
17103
+ * Generation job: number of outputs requested (images or videos; text segments for speech). Batch job: number of distinct assets selected when the job was created.
16800
17104
  */
16801
17105
  total: number;
16802
17106
  /**
16803
- * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
17107
+ * Number of outputs or items successfully processed; failed ones are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
16804
17108
  */
16805
17109
  done: number;
16806
17110
  /**
16807
- * Number of items that could not be processed successfully.
17111
+ * Number of outputs or items that could not be produced or processed.
16808
17112
  */
16809
17113
  failed: number;
16810
17114
  /**
@@ -16833,23 +17137,23 @@ export type MediaJob = {
16833
17137
  model_request_id?: string;
16834
17138
  }>;
16835
17139
  /**
16836
- * Generation intent used by this job; v1 supports video.generate.
17140
+ * Generation intent recorded on the earliest video jobs; newer generation jobs describe themselves with type and operation instead.
16837
17141
  */
16838
17142
  intent?: string;
16839
17143
  /**
16840
- * Video-generation model used for the outputs.
17144
+ * Model that produced the outputs of a generation job; omitted for batch jobs.
16841
17145
  */
16842
17146
  model?: string;
16843
17147
  /**
16844
- * Per-video results in index order; every successful output is already a library asset.
17148
+ * Per-output results of a generation job, in index order: one entry per requested image or video, and one per text segment for speech. Every successful output is already a library asset, and its viewer_url opens it in the Console.
16845
17149
  */
16846
17150
  outputs?: Array<{
16847
17151
  /**
16848
- * Zero-based position of this video in the requested count.
17152
+ * Zero-based position of this output in the requested count.
16849
17153
  */
16850
17154
  index: number;
16851
17155
  /**
16852
- * State of this requested video output.
17156
+ * State of this requested output.
16853
17157
  */
16854
17158
  status: MediaGenerationOutputStatus;
16855
17159
  /**
@@ -16857,7 +17161,7 @@ export type MediaJob = {
16857
17161
  */
16858
17162
  preview_url?: string;
16859
17163
  /**
16860
- * Seed for this video, when returned; it may be absent.
17164
+ * Seed for this output, when the model returned one; it may be absent.
16861
17165
  */
16862
17166
  seed?: number | null;
16863
17167
  /**
@@ -16868,35 +17172,43 @@ export type MediaJob = {
16868
17172
  * Library asset identifier for this output once the library has stored it.
16869
17173
  */
16870
17174
  asset_id?: MediaAssetId;
17175
+ /**
17176
+ * Console page that shows this output in the media library, present once asset_id is. Give this link to the person; the asset_id alone does not open anywhere. Example: https://console.deepraxis.com/media/lib_example?asset_id=9dfa312ef9bc4b00816339b598b1152c.
17177
+ */
17178
+ viewer_url?: string;
16871
17179
  }>;
16872
17180
  /**
16873
- * Generation charge recorded for the job.
17181
+ * What this job has been charged, as US dollars in a decimal string with six decimals, for example 0.042300. It is the sum of what the model calls cost, so it can be partial while the job is in_progress and is final once the status is completed or failed. Tell the person this amount. Omitted when the job was not charged: it failed, was refused or was canceled before a paid call finished. An omitted usage is not zero.
16874
17182
  */
16875
17183
  usage?: {
16876
17184
  /**
16877
- * Decimal amount in the currency named by currency; this is not a floating-point value.
17185
+ * US dollars as a decimal string with six decimals, for example 0.042300; never a floating-point number.
16878
17186
  */
16879
17187
  amount: string;
16880
17188
  /**
16881
- * Currency code for amount.
17189
+ * Currency code for amount; USD.
16882
17190
  */
16883
17191
  currency: string;
16884
17192
  };
16885
17193
  /**
16886
- * Time the batch job was created, in UTC.
17194
+ * Time the job was created, in UTC.
16887
17195
  */
16888
17196
  created_at: MediaIsoTimestamp;
16889
17197
  /**
16890
17198
  * Time the job reached a terminal status, or null while queued or running.
16891
17199
  */
16892
17200
  finished_at: MediaIsoTimestamp | null;
17201
+ /**
17202
+ * Automation run (its root run) that started this job. Omitted when the job was not started by a pipeline. Filter jobs by it with the pipeline_run_id query parameter.
17203
+ */
17204
+ pipeline_run_id?: string;
16893
17205
  };
16894
17206
  /**
16895
17207
  * Operation applied independently to each selected asset; item failures do not undo successful items.
16896
17208
  */
16897
17209
  export type MediaBatchAction = {
16898
17210
  /**
16899
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
17211
+ * What the job does. A generation job (an image, video or speech request, or an edit; type says which) always answers generate here. A batch job answers its batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
16900
17212
  */
16901
17213
  action: 'tag' | 'untag';
16902
17214
  /**
@@ -18526,7 +18838,6 @@ export type StudioWorkCreateInput = {
18526
18838
  */
18527
18839
  slug?: string;
18528
18840
  goal: StudioGoal;
18529
- brief?: StudioBriefInput;
18530
18841
  /**
18531
18842
  * Shared reference libraries to attach at creation, on top of the work's own library, which is always created with it; a library owned by another organization is refused rather than attached.
18532
18843
  */
@@ -18550,7 +18861,7 @@ export type StudioWorkCreateInput = {
18550
18861
  request_id?: string;
18551
18862
  };
18552
18863
  /**
18553
- * One work: a piece that can be delivered on its own, together with the goal it serves, the brief it came from, its cover, its drafts, the reference library of its own setting, and the libraries it draws on.
18864
+ * One work: a piece that can be delivered on its own, together with the goal it serves, its cover, its drafts, the reference library of its own setting, and the libraries it draws on.
18554
18865
  */
18555
18866
  export type StudioWork = {
18556
18867
  /**
@@ -18586,7 +18897,6 @@ export type StudioWork = {
18586
18897
  * Revision of the goal message alone; a draft derived from the message records the value it was built on and turns stale when this moves past it.
18587
18898
  */
18588
18899
  message_revision?: number;
18589
- brief: StudioBrief;
18590
18900
  /**
18591
18901
  * Reference libraries attached to this work, the work's own library first; their entries are what the context pack draws on while a unit is written.
18592
18902
  */
@@ -18734,56 +19044,17 @@ export type StudioWorkWriteResult = {
18734
19044
  next?: Array<StudioTodo>;
18735
19045
  };
18736
19046
  /**
18737
- * A change to the original brief: new material appended, points added, corrected or dropped.
18738
- */
18739
- export type StudioBriefUpdateInput = {
18740
- /**
18741
- * Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged.
18742
- */
18743
- expected_revision?: number;
18744
- /**
18745
- * Text to append to the stored brief, added after what is already there and never replacing it.
18746
- */
18747
- text?: string;
18748
- /**
18749
- * Source files to keep with the brief, added to the ones already attached.
18750
- */
18751
- attachments?: Array<string>;
18752
- /**
18753
- * New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid).
18754
- */
18755
- add_points?: Array<string | StudioBriefPointInput>;
18756
- /**
18757
- * Existing points to reword, each naming the key it keeps and the text that replaces it.
18758
- */
18759
- edit_points?: Array<StudioBriefPointEdit>;
18760
- /**
18761
- * Keys of points to drop; a dropped key is never reused, so later points keep their own keys.
18762
- */
18763
- remove_points?: Array<string>;
18764
- };
18765
- /**
18766
- * The updated brief with the checks it now fails and the next items of work, so the caller continues without re-reading.
18767
- */
18768
- export type StudioBriefWriteResult = {
18769
- value: StudioBrief;
18770
- /**
18771
- * Deterministic checks run against what was just written, such as whether every brief point is claimed by a unit.
18772
- */
18773
- checks?: Array<StudioCheckResult>;
18774
- /**
18775
- * The first few outstanding items now, which after a brief change often includes unplaced points.
18776
- */
18777
- next?: Array<StudioTodo>;
18778
- };
18779
- /**
18780
- * The draft to create inside a work: the genre it is written in, and what it starts from.
19047
+ * The draft to create inside a work: the genre it is written in, what it starts from, and its own brief. A draft derived from another one starts with an empty brief: the source's points and length are not its requirement.
18781
19048
  */
18782
19049
  export type StudioDraftCreateInput = {
18783
19050
  /**
18784
19051
  * Genre key the draft is written in, taken from the genre list; it decides the unit kinds, the properties and the checks.
18785
19052
  */
18786
19053
  genre: string;
19054
+ /**
19055
+ * Short name of the draft inside the work, used in every later path in place of its id; omit it and the genre gives one (novel, xiaohongshu, a numbered one when taken). Lowercase letters, digits and hyphens.
19056
+ */
19057
+ key?: string;
18787
19058
  /**
18788
19059
  * Page title of the new draft; omit it and one is derived from the genre and the work title.
18789
19060
  */
@@ -18801,6 +19072,7 @@ export type StudioDraftCreateInput = {
18801
19072
  */
18802
19073
  outline?: Array<StudioOutlineInput>;
18803
19074
  derived_from?: StudioDraftSourceInput;
19075
+ brief?: StudioBriefInput;
18804
19076
  /**
18805
19077
  * Initial values for the genre properties, keyed by property key; a value the genre does not define is refused rather than stored.
18806
19078
  */
@@ -18880,6 +19152,53 @@ export type StudioDraftWriteResult = {
18880
19152
  */
18881
19153
  next?: Array<StudioTodo>;
18882
19154
  };
19155
+ /**
19156
+ * A change to one draft's brief: new material appended, the constraints replaced, points added, corrected or dropped.
19157
+ */
19158
+ export type StudioBriefUpdateInput = {
19159
+ /**
19160
+ * Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged.
19161
+ */
19162
+ expected_revision?: number;
19163
+ /**
19164
+ * Text to append to the stored brief, added after what is already there and never replacing it.
19165
+ */
19166
+ text?: string;
19167
+ /**
19168
+ * The draft's constraints as one text, replacing what is there; pass an empty string to clear them.
19169
+ */
19170
+ constraints?: string;
19171
+ /**
19172
+ * Source files to keep with the brief, added to the ones already attached.
19173
+ */
19174
+ attachments?: Array<string>;
19175
+ /**
19176
+ * New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid).
19177
+ */
19178
+ add_points?: Array<string | StudioBriefPointInput>;
19179
+ /**
19180
+ * Existing points to reword, each naming the key it keeps and the text that replaces it.
19181
+ */
19182
+ edit_points?: Array<StudioBriefPointEdit>;
19183
+ /**
19184
+ * Keys of points to drop; a dropped key is never reused, so later points keep their own keys.
19185
+ */
19186
+ remove_points?: Array<string>;
19187
+ };
19188
+ /**
19189
+ * The updated brief with the checks it now fails and the next items of work, so the caller continues without re-reading.
19190
+ */
19191
+ export type StudioBriefWriteResult = {
19192
+ value: StudioBrief;
19193
+ /**
19194
+ * Deterministic checks run against what was just written, such as whether every brief point is claimed by a unit.
19195
+ */
19196
+ checks?: Array<StudioCheckResult>;
19197
+ /**
19198
+ * The first few outstanding items now, which after a brief change often includes unplaced points.
19199
+ */
19200
+ next?: Array<StudioTodo>;
19201
+ };
18883
19202
  /**
18884
19203
  * The draft structure as one Markdown page, together with the unit list it was rendered from.
18885
19204
  */
@@ -18893,6 +19212,125 @@ export type StudioOutlineResult = {
18893
19212
  */
18894
19213
  units: Array<StudioUnit>;
18895
19214
  };
19215
+ /**
19216
+ * The foreshadows of one draft.
19217
+ */
19218
+ export type StudioForeshadowList = {
19219
+ /**
19220
+ * Every foreshadow planted in this draft, open or paid off.
19221
+ */
19222
+ items: Array<StudioForeshadow>;
19223
+ };
19224
+ /**
19225
+ * Where a thread is planted and where it is paid off.
19226
+ */
19227
+ export type StudioForeshadowUpsertInput = {
19228
+ /**
19229
+ * Unit that plants the thread, by number such as 1 or by unt_ identifier; it must belong to this draft.
19230
+ */
19231
+ setup: string;
19232
+ /**
19233
+ * Unit that pays it off, by number or identifier, in this draft; leave it out or null while it is still open.
19234
+ */
19235
+ payoff?: string | null;
19236
+ /**
19237
+ * What was planted, in a sentence.
19238
+ */
19239
+ note?: string;
19240
+ };
19241
+ /**
19242
+ * A thread planted in one unit and paid off in another.
19243
+ */
19244
+ export type StudioForeshadow = {
19245
+ /**
19246
+ * Your name for the thread, unique in the work.
19247
+ */
19248
+ key: string;
19249
+ /**
19250
+ * Unit that plants it, by identifier.
19251
+ */
19252
+ setup: string;
19253
+ /**
19254
+ * Unit that pays it off, by identifier, or null while the thread is still open.
19255
+ */
19256
+ payoff: string | null;
19257
+ /**
19258
+ * What was planted, in a sentence, so a later session knows what the payoff must answer.
19259
+ */
19260
+ note: string;
19261
+ };
19262
+ /**
19263
+ * The answer a successful delete returns: a flag rather than the row, because the resource no longer exists to read back.
19264
+ */
19265
+ export type StudioDeleted = {
19266
+ /**
19267
+ * Always true, which is what tells a caller the deletion landed rather than that the resource was already missing.
19268
+ */
19269
+ deleted: boolean;
19270
+ };
19271
+ /**
19272
+ * One change to record.
19273
+ */
19274
+ export type StudioProgressionCreateInput = {
19275
+ /**
19276
+ * Entry that changes, by name, alias or ent_ identifier; it must be in a library this work mounts.
19277
+ */
19278
+ entry: string;
19279
+ /**
19280
+ * Unit from which the change is true, by number such as 3 or by unt_ identifier.
19281
+ */
19282
+ unit: string;
19283
+ /**
19284
+ * What changes, in a sentence a writer can respect.
19285
+ */
19286
+ change: string;
19287
+ };
19288
+ /**
19289
+ * A change to a setting entry that is true from one unit on.
19290
+ */
19291
+ export type StudioProgression = {
19292
+ /**
19293
+ * Progression identifier, used to delete it.
19294
+ */
19295
+ id: string;
19296
+ /**
19297
+ * Resource kind marker, always studio.progression.
19298
+ */
19299
+ object: string;
19300
+ /**
19301
+ * Work the change is recorded in.
19302
+ */
19303
+ work: string;
19304
+ /**
19305
+ * Entry that changes, by identifier.
19306
+ */
19307
+ entry: string;
19308
+ /**
19309
+ * Unit from which the change is true, by identifier.
19310
+ */
19311
+ unit: string;
19312
+ /**
19313
+ * What changes, in a sentence.
19314
+ */
19315
+ change: string;
19316
+ /**
19317
+ * When it was recorded, in RFC 3339 UTC.
19318
+ */
19319
+ create_time: string;
19320
+ /**
19321
+ * When it last changed, in RFC 3339 UTC.
19322
+ */
19323
+ update_time: string;
19324
+ };
19325
+ /**
19326
+ * The setting changes of a work.
19327
+ */
19328
+ export type StudioProgressionList = {
19329
+ /**
19330
+ * The progressions, in the order they were recorded.
19331
+ */
19332
+ items: Array<StudioProgression>;
19333
+ };
18896
19334
  /**
18897
19335
  * What is outstanding in one draft, computed from the data rather than remembered.
18898
19336
  */
@@ -19316,15 +19754,6 @@ export type StudioCodexUpdateInput = {
19316
19754
  description?: string;
19317
19755
  labels?: StudioLabels;
19318
19756
  };
19319
- /**
19320
- * The answer a successful delete returns: a flag rather than the row, because the resource no longer exists to read back.
19321
- */
19322
- export type StudioDeleted = {
19323
- /**
19324
- * Always true, which is what tells a caller the deletion landed rather than that the resource was already missing.
19325
- */
19326
- deleted: boolean;
19327
- };
19328
19757
  /**
19329
19758
  * The reference entry to add: what it is, what the text calls it, and what a writer should know about it.
19330
19759
  */
@@ -19368,7 +19797,7 @@ export type StudioEntryCreateInput = {
19368
19797
  */
19369
19798
  notes?: string;
19370
19799
  /**
19371
- * When this entry happens in the story, such as 2037 or 民国二十四年冬; at most 40 characters, and an empty string records no time. It is shown beside the entry and reaches the writer with it.
19800
+ * When this entry happens in the story, such as 2037, 1931 年 4 月 or 第 3 天; at most 40 characters, and an empty string records no time. The 脉络 timeline orders entries by the first and last number in it, so a time without a digit (民国二十四年冬) sits in 未定时间. It is shown beside the entry and reaches the writer with it.
19372
19801
  */
19373
19802
  time?: string;
19374
19803
  /**
@@ -19376,7 +19805,7 @@ export type StudioEntryCreateInput = {
19376
19805
  */
19377
19806
  tracking?: 'always' | 'when_mentioned' | 'never';
19378
19807
  /**
19379
- * Entries this one relates to at creation, each naming the target and the label that reads from this entry to it.
19808
+ * Entries this one relates to at creation, each naming the target and the label that reads from this entry to it. Between two events the cause holds the relation to its effect (label such as 导致); 参与 marks a participant.
19380
19809
  */
19381
19810
  relations?: Array<StudioEntryRelationInput>;
19382
19811
  /**
@@ -19455,7 +19884,7 @@ export type StudioEntry = {
19455
19884
  */
19456
19885
  tracking: 'always' | 'when_mentioned' | 'never';
19457
19886
  /**
19458
- * Other entries this one relates to, each with the label that names the relation, such as a workplace or a rival.
19887
+ * Other entries this one relates to, each with the label that reads from this entry to the other, such as a workplace or a rival. Between two event entries a relation is causal and is held by the cause: put { entry: <the effect>, label: 导致 } on the cause, and the 脉络 timeline draws the arrow from cause to effect. From an event to a person, place or item, or with the label 参与, it names a participant. The context pack shows each event's causes, effects and participants.
19459
19888
  */
19460
19889
  relations: Array<StudioEntryRelation>;
19461
19890
  /**
@@ -30746,6 +31175,19 @@ export type DevopsProjectSettings = {
30746
31175
  */
30747
31176
  requireGate: boolean;
30748
31177
  };
31178
+ /**
31179
+ * When the project cuts releases by itself, in a five-field cron and the zone it is read in.
31180
+ */
31181
+ export type DevopsReleaseSchedule = {
31182
+ /**
31183
+ * Five-field cron expression, read in timeZone; it decides the release's start, not how long the release takes.
31184
+ */
31185
+ cron: string;
31186
+ /**
31187
+ * IANA zone the cron is read in, so a schedule does not move when the clocks do.
31188
+ */
31189
+ timeZone: string;
31190
+ };
30749
31191
  /**
30750
31192
  * One commit inside a release, so a reader can see what is about to ship without leaving this answer.
30751
31193
  */
@@ -31103,50 +31545,21 @@ export type DevopsRolloutCheckpoint = {
31103
31545
  after?: string;
31104
31546
  };
31105
31547
  /**
31106
- * One environment a release can be promoted into, and where its promotion queue stands.
31548
+ * The environment's promotion queue. An environment runs one promotion at a time, so a second create waits here instead of failing.
31107
31549
  */
31108
- export type DevopsEnvironment = {
31109
- /**
31110
- * Environment identifier used when creating a promotion or a flag environment write.
31111
- */
31112
- id: string;
31113
- /**
31114
- * The resource type of this answer, always environment.
31115
- */
31116
- object: 'environment';
31117
- /**
31118
- * RFC 3339 UTC time the environment was created.
31119
- */
31120
- createTime: string;
31121
- /**
31122
- * RFC 3339 UTC time the environment or its approval requirement last changed.
31123
- */
31124
- updateTime: string;
31125
- /**
31126
- * Canonical Console link for the project this environment belongs to.
31127
- */
31128
- viewerUrl: string;
31129
- /**
31130
- * The project this environment belongs to, from the project list.
31131
- */
31132
- project: string;
31133
- /**
31134
- * Display name of the environment, such as develop or production; a project chooses its own names.
31135
- */
31136
- name: string;
31550
+ export type DevopsEnvironmentQueue = {
31137
31551
  /**
31138
- * What kind of environment this is, which decides how its failures are treated and how the Console presents it.
31552
+ * Whether the environment is running a promotion right now; busy means a create will be queued behind the active one.
31139
31553
  */
31140
- tier: 'production' | 'staging' | 'testing' | 'development' | 'other';
31554
+ state: 'idle' | 'busy';
31141
31555
  /**
31142
- * Position in the promotion sequence, starting at 1 and contiguous; the environment one lower must have verified a release before it may be promoted here.
31556
+ * The promotion holding the queue, present only while state is busy; read it to see what the environment is doing.
31143
31557
  */
31144
- order: number;
31558
+ active?: string;
31145
31559
  /**
31146
- * Whether a promotion into this environment waits for an approval before it deploys; true is what puts a promotion in awaiting_approval.
31560
+ * How many promotions are queued behind the active one; they run in the order they were created.
31147
31561
  */
31148
- requireApproval: boolean;
31149
- queue: DevopsEnvironmentQueue;
31562
+ waiting: number;
31150
31563
  };
31151
31564
  /**
31152
31565
  * Where one target of one environment currently stands — the release deployed to it and how far behind the default branch that is.
@@ -31447,6 +31860,115 @@ export type DevopsRolloutHistoryEntry = {
31447
31860
  */
31448
31861
  reason?: string;
31449
31862
  };
31863
+ /**
31864
+ * One pull request of a change (a slice), read from the pull request projection rather than copied.
31865
+ */
31866
+ export type DevopsChangePullRequestRef = {
31867
+ /**
31868
+ * The pull request identifier, used to read the pull request itself.
31869
+ */
31870
+ id: string;
31871
+ /**
31872
+ * The pull request number on the git host; slice order follows it.
31873
+ */
31874
+ number: number;
31875
+ /**
31876
+ * The pull request's state on the git host.
31877
+ */
31878
+ state: 'open' | 'closed' | 'merged';
31879
+ /**
31880
+ * True while the pull request is a draft and cannot be merged.
31881
+ */
31882
+ draft: boolean;
31883
+ /**
31884
+ * True once it was merged; equal to state merged.
31885
+ */
31886
+ merged: boolean;
31887
+ /**
31888
+ * The commit that merged it into main; null before it is merged.
31889
+ */
31890
+ mergeCommit: string | null;
31891
+ /**
31892
+ * The pull request title as it stands on the git host.
31893
+ */
31894
+ title: string;
31895
+ /**
31896
+ * RFC 3339 UTC time the pull request last changed.
31897
+ */
31898
+ updateTime: string;
31899
+ };
31900
+ /**
31901
+ * Where a change stands, derived from facts: the stage, the environment it sits in when that matters, and a qualifier.
31902
+ */
31903
+ export type DevopsChangeStageDetail = {
31904
+ /**
31905
+ * The change's position; with several pull requests it is the slice furthest behind.
31906
+ */
31907
+ stage: 'developing' | 'reviewing' | 'merged' | 'deployed' | 'rolling_out' | 'done' | 'abandoned' | 'rolled_back';
31908
+ /**
31909
+ * The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one.
31910
+ */
31911
+ environment?: string;
31912
+ /**
31913
+ * A qualifier inside the stage: paused means the rollout was turned back to zero, verification_failed means the version deployed but its verification failed; other words may appear and should be shown as they are.
31914
+ */
31915
+ sub?: string;
31916
+ };
31917
+ /**
31918
+ * Why a change is suspected: it is among the suspects of the newest promotion in an environment whose verification failed.
31919
+ */
31920
+ export type DevopsChangeSuspectedIn = {
31921
+ /**
31922
+ * The promotion whose verification failed, from a promotion read.
31923
+ */
31924
+ promotion: string;
31925
+ /**
31926
+ * The release that promotion carried.
31927
+ */
31928
+ release: string;
31929
+ /**
31930
+ * The environment where verification failed.
31931
+ */
31932
+ environment: string;
31933
+ /**
31934
+ * The test runs that failed verification.
31935
+ */
31936
+ runs: Array<string>;
31937
+ };
31938
+ /**
31939
+ * What a change looks like in one environment: whether it is deployed there, the version it rode, and its flag.
31940
+ */
31941
+ export type DevopsChangeCell = {
31942
+ /**
31943
+ * The environment this cell describes, from the project's environment list.
31944
+ */
31945
+ environment: string;
31946
+ /**
31947
+ * True once a promotion carrying this change succeeded in the environment.
31948
+ */
31949
+ deployed: boolean;
31950
+ /**
31951
+ * The release the change rode into this environment; absent when it was not deployed there.
31952
+ */
31953
+ version?: string;
31954
+ /**
31955
+ * The change's flag in this environment; present only for a change that has a flag. Every environment has its own copy.
31956
+ */
31957
+ flag?: {
31958
+ /**
31959
+ * Whether the flag is on in this environment.
31960
+ */
31961
+ on: boolean;
31962
+ /**
31963
+ * The share of traffic served while on, 0 to 100; absent while on means the internal organization only.
31964
+ */
31965
+ percent?: number;
31966
+ /**
31967
+ * True when the rollout was paused and turned back to zero.
31968
+ */
31969
+ paused?: boolean;
31970
+ };
31971
+ };
31450
31972
  /**
31451
31973
  * Counts of files still attached to the store or batch, grouped by ingestion status.
31452
31974
  */
@@ -31906,6 +32428,10 @@ export type MediaProvenance = {
31906
32428
  * Prompt submitted for this operation, when the operation used one. Omitted for operations without a prompt, such as a plain edit.
31907
32429
  */
31908
32430
  prompt?: string;
32431
+ /**
32432
+ * The generation parameters this asset was made with, recorded from the normalised request the job ran. Its kind says which parameters follow. Omitted on assets written before parameters were recorded; absent never means a default was used.
32433
+ */
32434
+ parameters?: MediaGenerationParameters;
31909
32435
  /**
31910
32436
  * Assets this result was generated or edited from, each with the role it played. Empty when the operation used no reference asset.
31911
32437
  */
@@ -31915,7 +32441,7 @@ export type MediaProvenance = {
31915
32441
  */
31916
32442
  model: string;
31917
32443
  /**
31918
- * Charge recorded for this operation, when pricing data is stored. Omitted when the operation was free or its cost was not recorded.
32444
+ * The part of the generation job’s charge that belongs to this asset, as US dollars in a decimal string with six decimals. A job that produced several outputs from one model call shares that charge between them. Omitted on assets the platform did not charge for and on assets whose charge was not recorded.
31919
32445
  */
31920
32446
  cost?: {
31921
32447
  /**
@@ -32306,6 +32832,10 @@ export type MediaSearchAsset = {
32306
32832
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
32307
32833
  */
32308
32834
  provenance?: MediaProvenance;
32835
+ /**
32836
+ * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
32837
+ */
32838
+ viewer_url?: string;
32309
32839
  };
32310
32840
  /**
32311
32841
  * A matching asset with its ranking score and supporting matches.
@@ -32346,7 +32876,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
32346
32876
  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';
32347
32877
  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' | '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';
32348
32878
  /**
32349
- * State of a requested video output.
32879
+ * State of a requested generation output.
32350
32880
  */
32351
32881
  export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
32352
32882
  /**
@@ -32923,7 +33453,7 @@ export type StudioPlatformLimits = {
32923
33453
  image_formats?: Array<'jpeg' | 'png' | 'webp' | 'gif'>;
32924
33454
  };
32925
33455
  /**
32926
- * What this work is for: who reads it, what that reader should get or do, the one message it carries, and the limits it is written under.
33456
+ * What this work is for: who reads it, what that reader should get or do, and the one message it carries. Limits such as a length belong to a draft's brief, not to the goal; a goal with constraints or any other unknown field answers INVALID_PARAMS.
32927
33457
  */
32928
33458
  export type StudioGoal = {
32929
33459
  /**
@@ -32938,27 +33468,6 @@ export type StudioGoal = {
32938
33468
  * The single message the piece carries, one sentence; changing it turns every draft derived from the message stale.
32939
33469
  */
32940
33470
  message: string;
32941
- /**
32942
- * Length, forbidden wording, deadline and any other bound the writing must respect, as one text with one bound per line; carried into the context pack. A list or any other non-string answers INVALID_PARAMS.
32943
- */
32944
- constraints: string;
32945
- };
32946
- /**
32947
- * The original requirement as it arrives with a new work: the person's text, any attached source files, and the points split from it.
32948
- */
32949
- export type StudioBriefInput = {
32950
- /**
32951
- * The requirement in the person's own words, stored unchanged and handed to the writer in the context pack.
32952
- */
32953
- text?: string;
32954
- /**
32955
- * Source files to keep with the brief, referenced by file identifiers from the file service.
32956
- */
32957
- attachments?: Array<string>;
32958
- /**
32959
- * Requirements split out of the text, one string per point; splitting is the caller's job because software cannot read intent.
32960
- */
32961
- points?: Array<string>;
32962
33471
  };
32963
33472
  /**
32964
33473
  * Caller-chosen key and value pairs kept on a resource; the keys are the caller's own names and no platform meaning is attached to them.
@@ -32966,27 +33475,6 @@ export type StudioBriefInput = {
32966
33475
  export type StudioLabels = {
32967
33476
  [key: string]: string;
32968
33477
  };
32969
- /**
32970
- * The original requirement kept as it was given: the person's own text, the files they attached, and the points split out of it so the software can check that each one landed.
32971
- */
32972
- export type StudioBrief = {
32973
- /**
32974
- * The requirement exactly as the person gave it, never rewritten by software; it is handed to the writer in the context pack.
32975
- */
32976
- text?: string;
32977
- /**
32978
- * Files the person attached as source material, referenced by their file identifiers.
32979
- */
32980
- attachments?: Array<string>;
32981
- /**
32982
- * Requirements split out of the brief, each with a stable key. A unit point no unit claims is reported as unplaced; a work point (a constraint on the whole piece) is never claimed and is checked in review instead.
32983
- */
32984
- points?: Array<StudioBriefPoint>;
32985
- /**
32986
- * Brief revision, independent of the work and of every draft; pass it as expected_revision when changing the brief.
32987
- */
32988
- revision?: number;
32989
- };
32990
33478
  /**
32991
33479
  * The work this one was created from, recorded at the moment of the copy, or null when the work was started from scratch. The copy is a snapshot rather than a link: after creation the two works are independent, and changing one never reaches the other.
32992
33480
  */
@@ -33271,36 +33759,6 @@ export type StudioCheckResult = {
33271
33759
  */
33272
33760
  hard: boolean;
33273
33761
  };
33274
- /**
33275
- * A new brief point with its scope.
33276
- */
33277
- export type StudioBriefPointInput = {
33278
- /**
33279
- * The requirement itself.
33280
- */
33281
- text: string;
33282
- /**
33283
- * unit (the default) is a requirement that must land in some unit: a plot beat, a selling point, a fact the piece has to state; a unit claims it and the coverage check follows it. work is a constraint on the whole piece that no single unit can claim: the period, the voice, the point of view, the cast, words to avoid; it is handed to every context pack and listed among the review's semantic questions, and it is left out of the coverage check.
33284
- */
33285
- scope?: 'unit' | 'work';
33286
- };
33287
- /**
33288
- * One brief point to reword, keeping its key so units that already claimed it stay attached.
33289
- */
33290
- export type StudioBriefPointEdit = {
33291
- /**
33292
- * Key of the point to reword, taken from the brief as it currently reads.
33293
- */
33294
- key: string;
33295
- /**
33296
- * Text that replaces the current point, usually a more specific version of the same requirement.
33297
- */
33298
- text: string;
33299
- /**
33300
- * Move the point to the other scope; leave it out to keep the scope it has.
33301
- */
33302
- scope?: 'unit' | 'work';
33303
- };
33304
33762
  /**
33305
33763
  * One unit of an outline handed in by the caller, with its children nested inside it.
33306
33764
  */
@@ -33347,6 +33805,27 @@ export type StudioDraftSourceInput = {
33347
33805
  */
33348
33806
  draft?: string;
33349
33807
  };
33808
+ /**
33809
+ * The requirement as it arrives with a new draft: the person's text, any attached source files, the constraints and the points split from it.
33810
+ */
33811
+ export type StudioBriefInput = {
33812
+ /**
33813
+ * The requirement in the person's own words, stored unchanged and handed to the writer in the context pack.
33814
+ */
33815
+ text?: string;
33816
+ /**
33817
+ * Source files to keep with the brief, referenced by file identifiers from the file service.
33818
+ */
33819
+ attachments?: Array<string>;
33820
+ /**
33821
+ * Limits this draft is written under, one per line, such as a length (3000 字以内) or banned wording; the length check reads it.
33822
+ */
33823
+ constraints?: string;
33824
+ /**
33825
+ * Requirements split out of the text, one string per point; splitting is the caller's job because software cannot read intent.
33826
+ */
33827
+ points?: Array<string>;
33828
+ };
33350
33829
  /**
33351
33830
  * One draft of a work: a way of delivering it in one genre, carrying the properties that genre asks for and the revisions the writes inside it compare against.
33352
33831
  */
@@ -33379,6 +33858,7 @@ export type StudioDraft = {
33379
33858
  * In-work key of this draft, such as novel or xiaohongshu; it is the value the draft path segment takes.
33380
33859
  */
33381
33860
  key: string;
33861
+ brief: StudioBrief;
33382
33862
  /**
33383
33863
  * Genre this draft was created with, which decides the kinds, properties, checks and writing rules it obeys.
33384
33864
  */
@@ -33431,6 +33911,61 @@ export type StudioDraft = {
33431
33911
  */
33432
33912
  upstream_pending: boolean;
33433
33913
  };
33914
+ /**
33915
+ * A new brief point with its scope.
33916
+ */
33917
+ export type StudioBriefPointInput = {
33918
+ /**
33919
+ * The requirement itself.
33920
+ */
33921
+ text: string;
33922
+ /**
33923
+ * unit (the default) is a requirement that must land in some unit: a plot beat, a selling point, a fact the piece has to state; a unit claims it and the coverage check follows it. work is a constraint on the whole piece that no single unit can claim: the period, the voice, the point of view, the cast, words to avoid; it is handed to every context pack and listed among the review's semantic questions, and it is left out of the coverage check.
33924
+ */
33925
+ scope?: 'unit' | 'work';
33926
+ };
33927
+ /**
33928
+ * One brief point to reword, keeping its key so units that already claimed it stay attached.
33929
+ */
33930
+ export type StudioBriefPointEdit = {
33931
+ /**
33932
+ * Key of the point to reword, taken from the brief as it currently reads.
33933
+ */
33934
+ key: string;
33935
+ /**
33936
+ * Text that replaces the current point, usually a more specific version of the same requirement.
33937
+ */
33938
+ text: string;
33939
+ /**
33940
+ * Move the point to the other scope; leave it out to keep the scope it has.
33941
+ */
33942
+ scope?: 'unit' | 'work';
33943
+ };
33944
+ /**
33945
+ * The requirement of one draft kept as it was given: the person's own text, the files they attached, the points split out of it so the software can check that each one landed, and the constraints the draft is written under.
33946
+ */
33947
+ export type StudioBrief = {
33948
+ /**
33949
+ * The requirement exactly as the person gave it, never rewritten by software; it is handed to the writer in the context pack.
33950
+ */
33951
+ text?: string;
33952
+ /**
33953
+ * Files the person attached as source material, referenced by their file identifiers.
33954
+ */
33955
+ attachments?: Array<string>;
33956
+ /**
33957
+ * Requirements split out of the brief, each with a stable key. A unit point no unit claims is reported as unplaced; a work point (a constraint on the whole piece) is never claimed and is checked in review instead.
33958
+ */
33959
+ points?: Array<StudioBriefPoint>;
33960
+ /**
33961
+ * Limits this draft is written under, one per line: a length such as 3000 字以内 or 2000 字左右, banned wording, a deadline. The length check reads the length here and it replaces the genre's range; the context pack carries the text.
33962
+ */
33963
+ constraints?: string;
33964
+ /**
33965
+ * Brief revision, independent of the draft's own revision; pass it as expected_revision when changing the brief.
33966
+ */
33967
+ revision?: number;
33968
+ };
33434
33969
  /**
33435
33970
  * One requirement point of the brief and the units that claim it.
33436
33971
  */
@@ -33556,13 +34091,13 @@ export type StudioContextSectionSpan = {
33556
34091
  /**
33557
34092
  * Which part of the pack this is; the sections are assembled in a fixed order so the stable parts come first.
33558
34093
  */
33559
- section: 'genre' | 'goal' | 'brief' | 'style' | 'source' | 'reference' | 'previous' | 'unit';
34094
+ section: 'genre' | 'goal' | 'brief' | 'style' | 'source' | 'reference' | 'timeline' | 'previous' | 'unit';
33560
34095
  /**
33561
34096
  * Estimated tokens this section used, by the fixed estimator rather than a model tokenizer, so the same input always measures the same.
33562
34097
  */
33563
34098
  tokens: number;
33564
34099
  /**
33565
- * Whether this section was cut to fit the budget; only the reference and previous sections are ever truncated, and the genre, brief and unit sections always arrive whole.
34100
+ * Whether this section was cut to fit the budget; only the reference, timeline and previous sections are ever truncated, and the genre, brief and unit sections always arrive whole.
33566
34101
  */
33567
34102
  truncated: boolean;
33568
34103
  };
@@ -38296,19 +38831,6 @@ export type DevopsMirrorState = {
38296
38831
  */
38297
38832
  error?: string;
38298
38833
  };
38299
- /**
38300
- * When the project cuts releases by itself, in a five-field cron and the zone it is read in.
38301
- */
38302
- export type DevopsReleaseSchedule = {
38303
- /**
38304
- * Five-field cron expression, read in timeZone; it decides the release's start, not how long the release takes.
38305
- */
38306
- cron: string;
38307
- /**
38308
- * IANA zone the cron is read in, so a schedule does not move when the clocks do.
38309
- */
38310
- timeZone: string;
38311
- };
38312
38834
  /**
38313
38835
  * One target's render result inside a release.
38314
38836
  */
@@ -38487,23 +39009,6 @@ export type DevopsRolloutJob = {
38487
39009
  skipMessage?: string;
38488
39010
  jobRun?: DevopsJobRun;
38489
39011
  };
38490
- /**
38491
- * The environment's promotion queue. An environment runs one promotion at a time, so a second create waits here instead of failing.
38492
- */
38493
- export type DevopsEnvironmentQueue = {
38494
- /**
38495
- * Whether the environment is running a promotion right now; busy means a create will be queued behind the active one.
38496
- */
38497
- state: 'idle' | 'busy';
38498
- /**
38499
- * The promotion holding the queue, present only while state is busy; read it to see what the environment is doing.
38500
- */
38501
- active?: string;
38502
- /**
38503
- * How many promotions are queued behind the active one; they run in the order they were created.
38504
- */
38505
- waiting: number;
38506
- };
38507
39012
  /**
38508
39013
  * Where a target's artifact goes and what credential that takes; the type decides which of the remaining fields are present.
38509
39014
  */
@@ -38685,6 +39190,80 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
38685
39190
  * Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
38686
39191
  */
38687
39192
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
39193
+ /**
39194
+ * What a generation or edit was asked for, as a closed set keyed by kind: speech, image, video or edit.
39195
+ */
39196
+ export type MediaGenerationParameters = {
39197
+ /**
39198
+ * Discriminator: speech marks these as speech generation parameters.
39199
+ */
39200
+ kind: 'speech';
39201
+ /**
39202
+ * Voice the recording was spoken with: the voice named in the request, or the model’s default voice when the request named none; a voice material id when a cloned voice was used.
39203
+ */
39204
+ voice: string;
39205
+ /**
39206
+ * Speaking speed passed to the provider unchanged. Omitted when the request set none and the provider default applied.
39207
+ */
39208
+ speed?: number;
39209
+ /**
39210
+ * Audio format the recording was delivered in, such as mp3, pcm or opus.
39211
+ */
39212
+ response_format?: string;
39213
+ } | {
39214
+ /**
39215
+ * Discriminator: image marks these as image generation parameters.
39216
+ */
39217
+ kind: 'image';
39218
+ /**
39219
+ * Width-to-height ratio of the requested size, reduced to lowest terms such as 16:9. Omitted when the request named no size.
39220
+ */
39221
+ aspect_ratio?: string;
39222
+ /**
39223
+ * Number of images the request asked for; each became its own asset.
39224
+ */
39225
+ n: number;
39226
+ /**
39227
+ * Whether the results were committed as plain images or as stickers with transparent backgrounds.
39228
+ */
39229
+ output: 'image' | 'sticker';
39230
+ } | {
39231
+ /**
39232
+ * Discriminator: video marks these as video generation parameters.
39233
+ */
39234
+ kind: 'video';
39235
+ /**
39236
+ * What the video was anchored to: text only, a first frame image, or a first and last frame.
39237
+ */
39238
+ mode: 'text' | 'image' | 'first_last';
39239
+ /**
39240
+ * Requested clip length in seconds. Omitted when the request named none and the model default applied.
39241
+ */
39242
+ duration_seconds?: number;
39243
+ /**
39244
+ * Requested output resolution. Omitted when the request named none and the model default applied.
39245
+ */
39246
+ resolution?: string;
39247
+ /**
39248
+ * Width-to-height ratio of the video, such as 16:9, as the job ran it.
39249
+ */
39250
+ aspect_ratio?: string;
39251
+ } | {
39252
+ /**
39253
+ * Discriminator: edit marks these as edit generation parameters.
39254
+ */
39255
+ kind: 'edit';
39256
+ /**
39257
+ * Edit operation applied to the parent asset, such as variations or inpaint.
39258
+ */
39259
+ operation: string;
39260
+ /**
39261
+ * The operation’s own non-text settings by name, such as strength for variations. Omitted when the operation has none.
39262
+ */
39263
+ options?: {
39264
+ [key: string]: string | number | boolean;
39265
+ };
39266
+ };
38688
39267
  export type MediaTranscriptCorrection = {
38689
39268
  /**
38690
39269
  * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
@@ -38806,7 +39385,7 @@ export type MediaSemanticMatch = {
38806
39385
  */
38807
39386
  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' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
38808
39387
  /**
38809
- * One model Praxis offers for a kind of generation, with what it costs.
39388
+ * One model Praxis offers for a kind of generation, with what it costs. A video model also carries the modes it can be driven in and the durations, aspect ratios and resolutions the platform model catalogue has registered for it (modes, duration_seconds, aspect_ratios, resolutions); those four are present on every video model of types.video and on no other type, and a list they carry empty means the platform has not registered that option yet — read them before requesting rather than assuming a value.
38810
39389
  */
38811
39390
  export type MediaGenerationCapabilityModel = {
38812
39391
  /**
@@ -38837,6 +39416,22 @@ export type MediaGenerationCapabilityModel = {
38837
39416
  * Speech models the platform publishes voices for only: every voice this model accepts. Pass an id from here back as voice on a speech request; a voice that is neither one of these nor a voice material of the library is refused with INVALID_PARAMS before any job is created. Absent when the platform publishes no voice list for the model.
38838
39417
  */
38839
39418
  voices?: Array<MediaSpeechVoice>;
39419
+ /**
39420
+ * Video models only: how this model can be driven. text generates from the prompt alone; image also accepts a first frame; first_last accepts a first and a last frame. Read this before requesting video: send mode image or first_last with the frames only for a model that lists it, and send mode text for a model that lists text alone. The list comes from the platform model catalogue, so a mode absent here is a mode this model does not take.
39421
+ */
39422
+ modes?: Array<'text' | 'image' | 'first_last'>;
39423
+ /**
39424
+ * Video models only: the durations in seconds the platform has registered for this model, ascending. Read it before requesting and pass one of these as duration_seconds; an empty list means the platform has not registered durations for the model yet, so omit duration_seconds and the model’s own default applies. It is never a substituted default: an empty list is not a claim that any duration works.
39425
+ */
39426
+ duration_seconds?: Array<number>;
39427
+ /**
39428
+ * Video models only: the aspect ratios the platform has registered for this model, such as 16:9, 9:16 or 1:1. Read it before requesting and pass one of these as aspect_ratio; an empty list means the platform has not registered ratios for the model yet, so omit aspect_ratio and the default_aspect_ratio of this answer applies.
39429
+ */
39430
+ aspect_ratios?: Array<string>;
39431
+ /**
39432
+ * Video models only: the quality or resolution names the platform has registered for this model, such as 720p or 1080p. Read it before requesting and pass one of these as resolution; an empty list means the platform has not registered resolutions for the model yet, so omit resolution and the model’s own default applies.
39433
+ */
39434
+ resolutions?: Array<string>;
38840
39435
  };
38841
39436
  /**
38842
39437
  * Auto-resume enabled flag for paused sandboxes. Default false.
@@ -38942,23 +39537,6 @@ export type StudioSecondRange = {
38942
39537
  */
38943
39538
  max?: number;
38944
39539
  };
38945
- /**
38946
- * One requirement taken out of the brief, kept under a stable key so units can claim it and the coverage check can follow it.
38947
- */
38948
- export type StudioBriefPoint = {
38949
- /**
38950
- * Stable key of the point inside this work, assigned in order as p1, p2 and so on; keys are never reused after a point is dropped.
38951
- */
38952
- key: string;
38953
- /**
38954
- * The requirement itself, short enough to be claimed by one unit and specific enough to be checked.
38955
- */
38956
- text: string;
38957
- /**
38958
- * unit (the default) is a requirement that must land in some unit: a plot beat, a selling point, a fact the piece has to state; a unit claims it and the coverage check follows it. work is a constraint on the whole piece that no single unit can claim: the period, the voice, the point of view, the cast, words to avoid; it is handed to every context pack and listed among the review's semantic questions, and it is left out of the coverage check.
38959
- */
38960
- scope?: 'unit' | 'work';
38961
- };
38962
39540
  /**
38963
39541
  * What a draft was derived from, kept with the revision it was built on so staleness can be decided without guessing.
38964
39542
  */
@@ -39064,6 +39642,23 @@ export type StudioBlock = {
39064
39642
  */
39065
39643
  level?: number;
39066
39644
  };
39645
+ /**
39646
+ * One requirement taken out of the brief, kept under a stable key so units can claim it and the coverage check can follow it.
39647
+ */
39648
+ export type StudioBriefPoint = {
39649
+ /**
39650
+ * Stable key of the point inside this draft, assigned in order as p1, p2 and so on, so an outline in the same drafts create call can claim p1 and p2; keys are never reused after a point is dropped. Claiming a key the draft does not have answers BRIEF_POINT_NOT_FOUND.
39651
+ */
39652
+ key: string;
39653
+ /**
39654
+ * The requirement itself, short enough to be claimed by one unit and specific enough to be checked.
39655
+ */
39656
+ text: string;
39657
+ /**
39658
+ * unit (the default) is a requirement that must land in some unit: a plot beat, a selling point, a fact the piece has to state; a unit claims it and the coverage check follows it. work is a constraint on the whole piece that no single unit can claim: the period, the voice, the point of view, the cast, words to avoid; it is handed to every context pack and listed among the review's semantic questions, and it is left out of the coverage check.
39659
+ */
39660
+ scope?: 'unit' | 'work';
39661
+ };
39067
39662
  /**
39068
39663
  * One reference entry to tie to a unit, with the role it plays in this genre.
39069
39664
  */
@@ -41306,6 +41901,10 @@ export type MediaAssetWritable = {
41306
41901
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
41307
41902
  */
41308
41903
  provenance?: MediaProvenance;
41904
+ /**
41905
+ * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
41906
+ */
41907
+ viewer_url?: string;
41309
41908
  };
41310
41909
  /**
41311
41910
  * Understanding results in this page, ordered by creation time ascending.
@@ -41819,6 +42418,10 @@ export type MediaSearchAssetWritable = {
41819
42418
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
41820
42419
  */
41821
42420
  provenance?: MediaProvenance;
42421
+ /**
42422
+ * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
42423
+ */
42424
+ viewer_url?: string;
41822
42425
  };
41823
42426
  /**
41824
42427
  * A matching asset with its ranking score and supporting matches.
@@ -41971,6 +42574,10 @@ export type DevopsTargetPath = string;
41971
42574
  * The ID of the lock this call holds, exactly as OpenTofu received it from the lock call. Required while a lock is held; a missing or different ID answers 409 LOCK_CONFLICT.
41972
42575
  */
41973
42576
  export type DevopsLockId = string;
42577
+ /**
42578
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
42579
+ */
42580
+ export type DevopsChangeIdPath = string;
41974
42581
  /**
41975
42582
  * A type name from types.list, with its dots preserved — a display label is not accepted.
41976
42583
  */
@@ -42055,6 +42662,10 @@ export type StudioExpandWork = Array<'status' | 'drafts' | 'outline' | 'unit'>;
42055
42662
  * Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
42056
42663
  */
42057
42664
  export type StudioDraftPath = string;
42665
+ /**
42666
+ * Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow.
42667
+ */
42668
+ export type StudioForeshadowKey = string;
42058
42669
  /**
42059
42670
  * Unit being addressed, written as its in-work number such as 12, as #12, or as its unt_ identifier; the number never changes when the unit is moved.
42060
42671
  */
@@ -42321,10 +42932,6 @@ export type ApplyAgentVersionResponses = {
42321
42932
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
42322
42933
  */
42323
42934
  subagent_model?: string | null;
42324
- /**
42325
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
42326
- */
42327
- image_model?: string | null;
42328
42935
  /**
42329
42936
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
42330
42937
  */
@@ -43538,10 +44145,6 @@ export type UnarchiveAgentResponses = {
43538
44145
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
43539
44146
  */
43540
44147
  subagent_model?: string | null;
43541
- /**
43542
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
43543
- */
43544
- image_model?: string | null;
43545
44148
  /**
43546
44149
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
43547
44150
  */
@@ -59753,6 +60356,155 @@ export type GetObservedProcessOutputResponses = {
59753
60356
  };
59754
60357
  };
59755
60358
  export type GetObservedProcessOutputResponse = GetObservedProcessOutputResponses[keyof GetObservedProcessOutputResponses];
60359
+ export type StartSandboxTaskData = {
60360
+ body: {
60361
+ /**
60362
+ * The shell command to run. It is handed to the sandbox's daemon in an environment variable, never in argv, so it stays out of the machine's process list; at most 64 KiB of UTF-8.
60363
+ */
60364
+ command: string;
60365
+ /**
60366
+ * Absolute working directory inside the sandbox. Omit to run where the daemon starts; a relative path is rejected rather than resolved against a home directory you did not choose.
60367
+ */
60368
+ cwd?: string;
60369
+ /**
60370
+ * How long the task may run, in seconds; omit for 7200, the ceiling is 86400 (a day). The pushing credential lives 30 minutes past this, so the daemon can still deliver a task that ran to its limit.
60371
+ */
60372
+ maxLifetimeSecs?: number;
60373
+ /**
60374
+ * Up to eight extra files to ship alongside the task's own output, for example a structured events log the task appends to. Each gets its own stream, read with name on sandboxes.tasks.log.
60375
+ */
60376
+ files?: Array<{
60377
+ /**
60378
+ * Stream name this file is pushed under, 1 to 32 characters of a-z, 0-9 or a hyphen. output is reserved for the task's own stdout and stderr; read either with sandboxes.tasks.log.
60379
+ */
60380
+ name: string;
60381
+ /**
60382
+ * Absolute path of the file inside the sandbox. It is read as the task runs; a file the task has not created yet is delivered empty rather than refused.
60383
+ */
60384
+ path: string;
60385
+ }>;
60386
+ };
60387
+ path: {
60388
+ /**
60389
+ * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
60390
+ */
60391
+ sandboxID: string;
60392
+ };
60393
+ query?: never;
60394
+ url: '/sandbox/v1/sandboxes/{sandboxID}/tasks';
60395
+ };
60396
+ export type StartSandboxTaskErrors = {
60397
+ /**
60398
+ * INVALID_PARAMS: command missing or over 64 KiB, cwd not absolute, more than eight files, a duplicate or reserved file name, or maxLifetimeSecs outside 1–86400.
60399
+ */
60400
+ 400: unknown;
60401
+ /**
60402
+ * Authentication required
60403
+ */
60404
+ 401: unknown;
60405
+ /**
60406
+ * Sandbox absent or belonging to another organization
60407
+ */
60408
+ 404: unknown;
60409
+ /**
60410
+ * PROVIDER_UNSUPPORTED: this machine's praxis-envd cannot ship a task log, or the environment stores no task logs. Use commands.run, or a full sandbox.
60411
+ */
60412
+ 501: unknown;
60413
+ /**
60414
+ * PROVIDER_FAILED: the daemon refused the start; its own message carries the reason (a missing working directory, for instance).
60415
+ */
60416
+ 502: unknown;
60417
+ };
60418
+ export type StartSandboxTaskResponses = {
60419
+ /**
60420
+ * The task started; its log is read with sandboxes.tasks.log
60421
+ */
60422
+ 201: {
60423
+ /**
60424
+ * Task identifier, opaque and not the sandbox id. It is the address of the pushed log: pass it to sandboxes.tasks.log, and it stays valid after the sandbox is deleted.
60425
+ */
60426
+ taskId: string;
60427
+ /**
60428
+ * The sandbox the task runs on, in the same internal spelling the request used.
60429
+ */
60430
+ instanceId: string;
60431
+ /**
60432
+ * When the task started, in Unix milliseconds. Compare against log timestamps; it is not the sandbox's creation time.
60433
+ */
60434
+ startedAt: number;
60435
+ };
60436
+ };
60437
+ export type StartSandboxTaskResponse = StartSandboxTaskResponses[keyof StartSandboxTaskResponses];
60438
+ export type GetSandboxTaskLogData = {
60439
+ body?: never;
60440
+ path: {
60441
+ /**
60442
+ * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
60443
+ */
60444
+ sandboxID: string;
60445
+ /**
60446
+ * Task id returned by sandboxes.tasks.start; a task id is opaque and is not the sandbox id.
60447
+ */
60448
+ taskID: string;
60449
+ };
60450
+ query?: {
60451
+ /**
60452
+ * Which stream to read: output is the task's own stdout and stderr and is the default; any other value must be one of the file names passed to sandboxes.tasks.start. 1 to 32 characters of a-z, 0-9 or a hyphen.
60453
+ */
60454
+ name?: string;
60455
+ /**
60456
+ * First byte of the range, counted from the start of the stream. Omit to start at 0; resume with the previous answer's nextOffset.
60457
+ */
60458
+ offset?: number;
60459
+ /**
60460
+ * How many bytes to return, at most 4 MiB; omit for 1 MiB. A smaller limit follows a running task with less data per call.
60461
+ */
60462
+ limit?: number;
60463
+ };
60464
+ url: '/sandbox/v1/sandboxes/{sandboxID}/tasks/{taskID}/log';
60465
+ };
60466
+ export type GetSandboxTaskLogErrors = {
60467
+ /**
60468
+ * INVALID_PARAMS: name is not a legal stream name, or offset, limit or taskID is not a non-negative whole number, or limit exceeds 4 MiB.
60469
+ */
60470
+ 400: unknown;
60471
+ /**
60472
+ * Authentication required
60473
+ */
60474
+ 401: unknown;
60475
+ /**
60476
+ * NOT_FOUND: no such task for a sandbox you own. The sandbox's own absence is not an error while its log remains; a stream belonging to another organization answers the same, so the two are indistinguishable.
60477
+ */
60478
+ 404: unknown;
60479
+ };
60480
+ export type GetSandboxTaskLogResponses = {
60481
+ /**
60482
+ * The requested range, and where to continue
60483
+ */
60484
+ 200: {
60485
+ /**
60486
+ * The requested bytes decoded as UTF-8, backing up to a whole character when the range would split one. Concatenate successive pages; a page never ends mid-character.
60487
+ */
60488
+ text: string;
60489
+ /**
60490
+ * Byte offset to pass as offset on the next call. It advances past what text delivered, so repeating a page is not needed; when done is true it equals size.
60491
+ */
60492
+ nextOffset: number;
60493
+ /**
60494
+ * True once the task's final marker exists and the whole stream has been read. Only then are exitCode and size the task's outcome; false means more may still arrive, not that the task failed.
60495
+ */
60496
+ done: boolean;
60497
+ /**
60498
+ * The task's exit status, from the final marker: 0 for success, non-zero for failure, null while the task has not finished. It is how the task ended, not how one page was read.
60499
+ */
60500
+ exitCode: number | null;
60501
+ /**
60502
+ * Total bytes the stream will hold, from the final marker; null while the task runs and the total is not yet known. It is the bound for offset, and equals nextOffset when done.
60503
+ */
60504
+ size: number | null;
60505
+ };
60506
+ };
60507
+ export type GetSandboxTaskLogResponse = GetSandboxTaskLogResponses[keyof GetSandboxTaskLogResponses];
59756
60508
  export type DeleteSandboxV1SandboxesBySandboxIdData = {
59757
60509
  body?: never;
59758
60510
  path: {
@@ -61025,10 +61777,6 @@ export type AgentsListResponses = {
61025
61777
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
61026
61778
  */
61027
61779
  subagent_model?: string | null;
61028
- /**
61029
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
61030
- */
61031
- image_model?: string | null;
61032
61780
  /**
61033
61781
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
61034
61782
  */
@@ -61565,7 +62313,7 @@ export type AgentsCreateData = {
61565
62313
  */
61566
62314
  subagent_model?: string | null;
61567
62315
  /**
61568
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
62316
+ * Retired (the imagine tool no longer exists): accepted and ignored, never stored. Image generation goes through the media library and the manage-media skill. /agent/v1 only.
61569
62317
  */
61570
62318
  image_model?: string | null;
61571
62319
  /**
@@ -62165,10 +62913,6 @@ export type AgentsCreateResponses = {
62165
62913
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
62166
62914
  */
62167
62915
  subagent_model?: string | null;
62168
- /**
62169
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
62170
- */
62171
- image_model?: string | null;
62172
62916
  /**
62173
62917
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
62174
62918
  */
@@ -62793,10 +63537,6 @@ export type AgentsRetrieveResponses = {
62793
63537
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
62794
63538
  */
62795
63539
  subagent_model?: string | null;
62796
- /**
62797
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
62798
- */
62799
- image_model?: string | null;
62800
63540
  /**
62801
63541
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
62802
63542
  */
@@ -63342,7 +64082,7 @@ export type AgentsUpdateData = {
63342
64082
  */
63343
64083
  subagent_model?: string | null;
63344
64084
  /**
63345
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
64085
+ * Retired (the imagine tool no longer exists): accepted and ignored, never stored. Image generation goes through the media library and the manage-media skill. /agent/v1 only.
63346
64086
  */
63347
64087
  image_model?: string | null;
63348
64088
  /**
@@ -63955,10 +64695,6 @@ export type AgentsUpdateResponses = {
63955
64695
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
63956
64696
  */
63957
64697
  subagent_model?: string | null;
63958
- /**
63959
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
63960
- */
63961
- image_model?: string | null;
63962
64698
  /**
63963
64699
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
63964
64700
  */
@@ -64569,10 +65305,6 @@ export type AgentsArchiveResponses = {
64569
65305
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
64570
65306
  */
64571
65307
  subagent_model?: string | null;
64572
- /**
64573
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
64574
- */
64575
- image_model?: string | null;
64576
65308
  /**
64577
65309
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
64578
65310
  */
@@ -65201,10 +65933,6 @@ export type AgentsVersionsListResponses = {
65201
65933
  * Praxis extension: default subagent model ID, pinned in the agent revision. Call model overrides this; otherwise it overrides the roster member model or the parent model for built-ins. Null clears the default. /agent/v1 only.
65202
65934
  */
65203
65935
  subagent_model?: string | null;
65204
- /**
65205
- * Model used by the imagine image tool; defaults to gpt-image-2 when unset. Only models that can generate images are accepted. Omit to preserve; null clears the configured model. /agent/v1 only.
65206
- */
65207
- image_model?: string | null;
65208
65936
  /**
65209
65937
  * Praxis extension: inline subagent definitions stored in the configuration revision, separately from the multiagent roster. Omit to preserve; null clears. Names must be unique. Configuration storage only; runtime activation is not implemented. /agent/v1 only.
65210
65938
  */
@@ -81873,6 +82601,54 @@ export type DevopsProjectsGetResponses = {
81873
82601
  200: DevopsProject;
81874
82602
  };
81875
82603
  export type DevopsProjectsGetResponse = DevopsProjectsGetResponses[keyof DevopsProjectsGetResponses];
82604
+ export type DevopsProjectsUpdateData = {
82605
+ /**
82606
+ * A patch whose project object holds only the fields to change, plus the update mask naming them.
82607
+ */
82608
+ body: DevopsProjectUpdate;
82609
+ path: {
82610
+ /**
82611
+ * The project identifier returned by the project list, not the project's display name or its repository name.
82612
+ */
82613
+ id: string;
82614
+ };
82615
+ query?: never;
82616
+ url: '/devops/v1/projects/{id}';
82617
+ };
82618
+ export type DevopsProjectsUpdateErrors = {
82619
+ /**
82620
+ * 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.
82621
+ */
82622
+ 400: DevopsDevOpsError;
82623
+ /**
82624
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
82625
+ */
82626
+ 401: DevopsDevOpsError;
82627
+ /**
82628
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
82629
+ */
82630
+ 403: DevopsDevOpsError;
82631
+ /**
82632
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
82633
+ */
82634
+ 404: DevopsDevOpsError;
82635
+ /**
82636
+ * PROJECT_NAME_TAKEN means another project in this organization already uses that name; choose a different one.
82637
+ */
82638
+ 409: DevopsDevOpsError;
82639
+ /**
82640
+ * 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.
82641
+ */
82642
+ 500: DevopsDevOpsError;
82643
+ };
82644
+ export type DevopsProjectsUpdateError = DevopsProjectsUpdateErrors[keyof DevopsProjectsUpdateErrors];
82645
+ export type DevopsProjectsUpdateResponses = {
82646
+ /**
82647
+ * The project after the patch, with its update time advanced.
82648
+ */
82649
+ 200: DevopsProject;
82650
+ };
82651
+ export type DevopsProjectsUpdateResponse = DevopsProjectsUpdateResponses[keyof DevopsProjectsUpdateResponses];
81876
82652
  export type DevopsReleasesListData = {
81877
82653
  body?: never;
81878
82654
  path: {
@@ -82482,8 +83258,11 @@ export type DevopsEnvironmentsListResponses = {
82482
83258
  200: DevopsEnvironmentList;
82483
83259
  };
82484
83260
  export type DevopsEnvironmentsListResponse = DevopsEnvironmentsListResponses[keyof DevopsEnvironmentsListResponses];
82485
- export type DevopsEnvironmentsCheckpointsListData = {
82486
- body?: never;
83261
+ export type DevopsEnvironmentsUpdateData = {
83262
+ /**
83263
+ * A patch whose environment object holds only the fields to change, plus the update mask naming them.
83264
+ */
83265
+ body: DevopsEnvironmentUpdate;
82487
83266
  path: {
82488
83267
  /**
82489
83268
  * The environment identifier from a project's environment list; the tier or the display name is not an address.
@@ -82491,55 +83270,9 @@ export type DevopsEnvironmentsCheckpointsListData = {
82491
83270
  id: string;
82492
83271
  };
82493
83272
  query?: never;
82494
- url: '/devops/v1/environments/{id}/checkpoints';
82495
- };
82496
- export type DevopsEnvironmentsCheckpointsListErrors = {
82497
- /**
82498
- * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
82499
- */
82500
- 401: DevopsDevOpsError;
82501
- /**
82502
- * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
82503
- */
82504
- 403: DevopsDevOpsError;
82505
- /**
82506
- * ENVIRONMENT_NOT_FOUND means no environment with that id exists in this organization, or it belongs to another project; list the project's environments and use an id from that answer.
82507
- */
82508
- 404: DevopsDevOpsError;
82509
- /**
82510
- * 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.
82511
- */
82512
- 500: DevopsDevOpsError;
83273
+ url: '/devops/v1/environments/{id}';
82513
83274
  };
82514
- export type DevopsEnvironmentsCheckpointsListError = DevopsEnvironmentsCheckpointsListErrors[keyof DevopsEnvironmentsCheckpointsListErrors];
82515
- export type DevopsEnvironmentsCheckpointsListResponses = {
82516
- /**
82517
- * The environment's checkpoints, one per target that has been deployed to.
82518
- */
82519
- 200: DevopsCheckpointList;
82520
- };
82521
- export type DevopsEnvironmentsCheckpointsListResponse = DevopsEnvironmentsCheckpointsListResponses[keyof DevopsEnvironmentsCheckpointsListResponses];
82522
- export type DevopsTargetsListData = {
82523
- body?: never;
82524
- path: {
82525
- /**
82526
- * Identifies the project whose data you are reading, from the project list or create answer.
82527
- */
82528
- project: string;
82529
- };
82530
- query?: {
82531
- /**
82532
- * How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
82533
- */
82534
- pageSize?: number;
82535
- /**
82536
- * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
82537
- */
82538
- pageToken?: string;
82539
- };
82540
- url: '/devops/v1/projects/{project}/targets';
82541
- };
82542
- export type DevopsTargetsListErrors = {
83275
+ export type DevopsEnvironmentsUpdateErrors = {
82543
83276
  /**
82544
83277
  * 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.
82545
83278
  */
@@ -82553,7 +83286,7 @@ export type DevopsTargetsListErrors = {
82553
83286
  */
82554
83287
  403: DevopsDevOpsError;
82555
83288
  /**
82556
- * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
83289
+ * ENVIRONMENT_NOT_FOUND means no environment with that id exists in this organization, or it belongs to another project; list the project's environments and use an id from that answer.
82557
83290
  */
82558
83291
  404: DevopsDevOpsError;
82559
83292
  /**
@@ -82561,30 +83294,26 @@ export type DevopsTargetsListErrors = {
82561
83294
  */
82562
83295
  500: DevopsDevOpsError;
82563
83296
  };
82564
- export type DevopsTargetsListError = DevopsTargetsListErrors[keyof DevopsTargetsListErrors];
82565
- export type DevopsTargetsListResponses = {
83297
+ export type DevopsEnvironmentsUpdateError = DevopsEnvironmentsUpdateErrors[keyof DevopsEnvironmentsUpdateErrors];
83298
+ export type DevopsEnvironmentsUpdateResponses = {
82566
83299
  /**
82567
- * One page of the project's deployable targets, ordered by path.
83300
+ * The environment after the patch, with its queue state.
82568
83301
  */
82569
- 200: DevopsTargetPage;
83302
+ 200: DevopsEnvironment;
82570
83303
  };
82571
- export type DevopsTargetsListResponse = DevopsTargetsListResponses[keyof DevopsTargetsListResponses];
82572
- export type DevopsTargetsRefreshData = {
82573
- body?: DevopsTargetRefreshRequest;
83304
+ export type DevopsEnvironmentsUpdateResponse = DevopsEnvironmentsUpdateResponses[keyof DevopsEnvironmentsUpdateResponses];
83305
+ export type DevopsEnvironmentsCheckpointsListData = {
83306
+ body?: never;
82574
83307
  path: {
82575
83308
  /**
82576
- * Identifies the project whose data you are reading, from the project list or create answer.
83309
+ * The environment identifier from a project's environment list; the tier or the display name is not an address.
82577
83310
  */
82578
- project: string;
83311
+ id: string;
82579
83312
  };
82580
83313
  query?: never;
82581
- url: '/devops/v1/projects/{project}/targets:refresh';
83314
+ url: '/devops/v1/environments/{id}/checkpoints';
82582
83315
  };
82583
- export type DevopsTargetsRefreshErrors = {
82584
- /**
82585
- * 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.
82586
- */
82587
- 400: DevopsDevOpsError;
83316
+ export type DevopsEnvironmentsCheckpointsListErrors = {
82588
83317
  /**
82589
83318
  * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
82590
83319
  */
@@ -82594,27 +83323,23 @@ export type DevopsTargetsRefreshErrors = {
82594
83323
  */
82595
83324
  403: DevopsDevOpsError;
82596
83325
  /**
82597
- * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
83326
+ * ENVIRONMENT_NOT_FOUND means no environment with that id exists in this organization, or it belongs to another project; list the project's environments and use an id from that answer.
82598
83327
  */
82599
83328
  404: DevopsDevOpsError;
82600
83329
  /**
82601
83330
  * 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.
82602
83331
  */
82603
83332
  500: DevopsDevOpsError;
82604
- /**
82605
- * SOURCE_NOT_CONFIGURED means the project has no repository binding, so there is no code to read; bind a repository to the project first. GITHUB_UNAVAILABLE and GITHUB_RATE_LIMITED mean the git host could not be read right now, which is transient — retry after a delay rather than changing the request.
82606
- */
82607
- 503: DevopsDevOpsError;
82608
83333
  };
82609
- export type DevopsTargetsRefreshError = DevopsTargetsRefreshErrors[keyof DevopsTargetsRefreshErrors];
82610
- export type DevopsTargetsRefreshResponses = {
83334
+ export type DevopsEnvironmentsCheckpointsListError = DevopsEnvironmentsCheckpointsListErrors[keyof DevopsEnvironmentsCheckpointsListErrors];
83335
+ export type DevopsEnvironmentsCheckpointsListResponses = {
82611
83336
  /**
82612
- * The catalog read at that commit: its targets, their dependencies and any cycles.
83337
+ * The environment's checkpoints, one per target that has been deployed to.
82613
83338
  */
82614
- 200: DevopsTargetCatalog;
83339
+ 200: DevopsCheckpointList;
82615
83340
  };
82616
- export type DevopsTargetsRefreshResponse = DevopsTargetsRefreshResponses[keyof DevopsTargetsRefreshResponses];
82617
- export type DevopsFlagsListData = {
83341
+ export type DevopsEnvironmentsCheckpointsListResponse = DevopsEnvironmentsCheckpointsListResponses[keyof DevopsEnvironmentsCheckpointsListResponses];
83342
+ export type DevopsTargetsListData = {
82618
83343
  body?: never;
82619
83344
  path: {
82620
83345
  /**
@@ -82631,14 +83356,109 @@ export type DevopsFlagsListData = {
82631
83356
  * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
82632
83357
  */
82633
83358
  pageToken?: string;
82634
- /**
82635
- * Exactly one filter term is accepted: lifecycle=archived lists the archived flags, which are hidden by default. Any other field, operator or value is refused with INVALID_ARGUMENT rather than ignored.
82636
- */
82637
- filter?: string;
82638
83359
  };
82639
- url: '/devops/v1/projects/{project}/flags';
83360
+ url: '/devops/v1/projects/{project}/targets';
82640
83361
  };
82641
- export type DevopsFlagsListErrors = {
83362
+ export type DevopsTargetsListErrors = {
83363
+ /**
83364
+ * 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.
83365
+ */
83366
+ 400: DevopsDevOpsError;
83367
+ /**
83368
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83369
+ */
83370
+ 401: DevopsDevOpsError;
83371
+ /**
83372
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
83373
+ */
83374
+ 403: DevopsDevOpsError;
83375
+ /**
83376
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
83377
+ */
83378
+ 404: DevopsDevOpsError;
83379
+ /**
83380
+ * 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.
83381
+ */
83382
+ 500: DevopsDevOpsError;
83383
+ };
83384
+ export type DevopsTargetsListError = DevopsTargetsListErrors[keyof DevopsTargetsListErrors];
83385
+ export type DevopsTargetsListResponses = {
83386
+ /**
83387
+ * One page of the project's deployable targets, ordered by path.
83388
+ */
83389
+ 200: DevopsTargetPage;
83390
+ };
83391
+ export type DevopsTargetsListResponse = DevopsTargetsListResponses[keyof DevopsTargetsListResponses];
83392
+ export type DevopsTargetsRefreshData = {
83393
+ body?: DevopsTargetRefreshRequest;
83394
+ path: {
83395
+ /**
83396
+ * Identifies the project whose data you are reading, from the project list or create answer.
83397
+ */
83398
+ project: string;
83399
+ };
83400
+ query?: never;
83401
+ url: '/devops/v1/projects/{project}/targets:refresh';
83402
+ };
83403
+ export type DevopsTargetsRefreshErrors = {
83404
+ /**
83405
+ * 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.
83406
+ */
83407
+ 400: DevopsDevOpsError;
83408
+ /**
83409
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83410
+ */
83411
+ 401: DevopsDevOpsError;
83412
+ /**
83413
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
83414
+ */
83415
+ 403: DevopsDevOpsError;
83416
+ /**
83417
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
83418
+ */
83419
+ 404: DevopsDevOpsError;
83420
+ /**
83421
+ * 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.
83422
+ */
83423
+ 500: DevopsDevOpsError;
83424
+ /**
83425
+ * SOURCE_NOT_CONFIGURED means the project has no repository binding, so there is no code to read; bind a repository to the project first. GITHUB_UNAVAILABLE and GITHUB_RATE_LIMITED mean the git host could not be read right now, which is transient — retry after a delay rather than changing the request.
83426
+ */
83427
+ 503: DevopsDevOpsError;
83428
+ };
83429
+ export type DevopsTargetsRefreshError = DevopsTargetsRefreshErrors[keyof DevopsTargetsRefreshErrors];
83430
+ export type DevopsTargetsRefreshResponses = {
83431
+ /**
83432
+ * The catalog read at that commit: its targets, their dependencies and any cycles.
83433
+ */
83434
+ 200: DevopsTargetCatalog;
83435
+ };
83436
+ export type DevopsTargetsRefreshResponse = DevopsTargetsRefreshResponses[keyof DevopsTargetsRefreshResponses];
83437
+ export type DevopsFlagsListData = {
83438
+ body?: never;
83439
+ path: {
83440
+ /**
83441
+ * Identifies the project whose data you are reading, from the project list or create answer.
83442
+ */
83443
+ project: string;
83444
+ };
83445
+ query?: {
83446
+ /**
83447
+ * How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
83448
+ */
83449
+ pageSize?: number;
83450
+ /**
83451
+ * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
83452
+ */
83453
+ pageToken?: string;
83454
+ /**
83455
+ * Exactly one filter term is accepted: lifecycle=archived lists the archived flags, which are hidden by default. Any other field, operator or value is refused with INVALID_ARGUMENT rather than ignored.
83456
+ */
83457
+ filter?: string;
83458
+ };
83459
+ url: '/devops/v1/projects/{project}/flags';
83460
+ };
83461
+ export type DevopsFlagsListErrors = {
82642
83462
  /**
82643
83463
  * 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.
82644
83464
  */
@@ -83384,6 +84204,224 @@ export type DevopsTofuStateLockResponses = {
83384
84204
  200: DevopsTofuLockInfo;
83385
84205
  };
83386
84206
  export type DevopsTofuStateLockResponse = DevopsTofuStateLockResponses[keyof DevopsTofuStateLockResponses];
84207
+ export type DevopsChangesListData = {
84208
+ body?: never;
84209
+ path: {
84210
+ /**
84211
+ * Identifies the project whose data you are reading, from the project list or create answer.
84212
+ */
84213
+ project: string;
84214
+ };
84215
+ query?: {
84216
+ /**
84217
+ * How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
84218
+ */
84219
+ pageSize?: number;
84220
+ /**
84221
+ * The cursor from the previous page's nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
84222
+ */
84223
+ pageToken?: string;
84224
+ /**
84225
+ * JSON object with any of stage (array of stages), type (array of change types), owner (the requester's actor id) and ended (boolean). A stage or type that is not in the vocabulary is refused with INVALID_ARGUMENT rather than ignored.
84226
+ */
84227
+ filter?: string;
84228
+ };
84229
+ url: '/devops/v1/projects/{project}/changes';
84230
+ };
84231
+ export type DevopsChangesListErrors = {
84232
+ /**
84233
+ * 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.
84234
+ */
84235
+ 400: DevopsDevOpsError;
84236
+ /**
84237
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
84238
+ */
84239
+ 401: DevopsDevOpsError;
84240
+ /**
84241
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
84242
+ */
84243
+ 403: DevopsDevOpsError;
84244
+ /**
84245
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
84246
+ */
84247
+ 404: DevopsDevOpsError;
84248
+ /**
84249
+ * 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.
84250
+ */
84251
+ 500: DevopsDevOpsError;
84252
+ };
84253
+ export type DevopsChangesListError = DevopsChangesListErrors[keyof DevopsChangesListErrors];
84254
+ export type DevopsChangesListResponses = {
84255
+ /**
84256
+ * One page of the project's changes, newest first, narrowed by the filter.
84257
+ */
84258
+ 200: DevopsChangePage;
84259
+ };
84260
+ export type DevopsChangesListResponse = DevopsChangesListResponses[keyof DevopsChangesListResponses];
84261
+ export type DevopsChangesCreateData = {
84262
+ body: DevopsChangeCreate;
84263
+ path: {
84264
+ /**
84265
+ * Identifies the project whose data you are reading, from the project list or create answer.
84266
+ */
84267
+ project: string;
84268
+ };
84269
+ query?: never;
84270
+ url: '/devops/v1/projects/{project}/changes';
84271
+ };
84272
+ export type DevopsChangesCreateErrors = {
84273
+ /**
84274
+ * CHANGE_TYPE_INVALID means type is not one of the ten change types; CHANGE_SLUG_INVALID means slug is not lower-case letters, digits and hyphens of 2 to 60 characters. Nothing was created; correct the named field and send it again.
84275
+ */
84276
+ 400: DevopsDevOpsError;
84277
+ /**
84278
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
84279
+ */
84280
+ 401: DevopsDevOpsError;
84281
+ /**
84282
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
84283
+ */
84284
+ 403: DevopsDevOpsError;
84285
+ /**
84286
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
84287
+ */
84288
+ 404: DevopsDevOpsError;
84289
+ /**
84290
+ * CHANGE_SLUG_TAKEN means another change in this project already uses that slug under a different type, so the branch name is taken; read the change it names, or choose a different slug. Nothing was created.
84291
+ */
84292
+ 409: DevopsDevOpsError;
84293
+ /**
84294
+ * 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.
84295
+ */
84296
+ 500: DevopsDevOpsError;
84297
+ };
84298
+ export type DevopsChangesCreateError = DevopsChangesCreateErrors[keyof DevopsChangesCreateErrors];
84299
+ export type DevopsChangesCreateResponses = {
84300
+ /**
84301
+ * The created change, or the existing one when the same type and slug were already created, with its derived stage and one cell per environment.
84302
+ */
84303
+ 200: DevopsChange;
84304
+ };
84305
+ export type DevopsChangesCreateResponse = DevopsChangesCreateResponses[keyof DevopsChangesCreateResponses];
84306
+ export type DevopsChangesGetData = {
84307
+ body?: never;
84308
+ path: {
84309
+ /**
84310
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
84311
+ */
84312
+ id: string;
84313
+ };
84314
+ query?: never;
84315
+ url: '/devops/v1/changes/{id}';
84316
+ };
84317
+ export type DevopsChangesGetErrors = {
84318
+ /**
84319
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
84320
+ */
84321
+ 401: DevopsDevOpsError;
84322
+ /**
84323
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
84324
+ */
84325
+ 403: DevopsDevOpsError;
84326
+ /**
84327
+ * CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
84328
+ */
84329
+ 404: DevopsDevOpsError;
84330
+ /**
84331
+ * 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.
84332
+ */
84333
+ 500: DevopsDevOpsError;
84334
+ };
84335
+ export type DevopsChangesGetError = DevopsChangesGetErrors[keyof DevopsChangesGetErrors];
84336
+ export type DevopsChangesGetResponses = {
84337
+ /**
84338
+ * The addressed change with its pull requests, flag and per-environment cells.
84339
+ */
84340
+ 200: DevopsChange;
84341
+ };
84342
+ export type DevopsChangesGetResponse = DevopsChangesGetResponses[keyof DevopsChangesGetResponses];
84343
+ export type DevopsChangesAbandonData = {
84344
+ body: DevopsChangeAbandonRequest;
84345
+ path: {
84346
+ /**
84347
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
84348
+ */
84349
+ id: string;
84350
+ };
84351
+ query?: never;
84352
+ url: '/devops/v1/changes/{id}:abandon';
84353
+ };
84354
+ export type DevopsChangesAbandonErrors = {
84355
+ /**
84356
+ * INVALID_ARGUMENT means reason is missing or empty, or the change is already abandoned; read the change to see its stage before deciding again.
84357
+ */
84358
+ 400: DevopsDevOpsError;
84359
+ /**
84360
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
84361
+ */
84362
+ 401: DevopsDevOpsError;
84363
+ /**
84364
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
84365
+ */
84366
+ 403: DevopsDevOpsError;
84367
+ /**
84368
+ * CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
84369
+ */
84370
+ 404: DevopsDevOpsError;
84371
+ /**
84372
+ * 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.
84373
+ */
84374
+ 500: DevopsDevOpsError;
84375
+ };
84376
+ export type DevopsChangesAbandonError = DevopsChangesAbandonErrors[keyof DevopsChangesAbandonErrors];
84377
+ export type DevopsChangesAbandonResponses = {
84378
+ /**
84379
+ * The change after it was abandoned, with stage abandoned.
84380
+ */
84381
+ 200: DevopsChange;
84382
+ };
84383
+ export type DevopsChangesAbandonResponse = DevopsChangesAbandonResponses[keyof DevopsChangesAbandonResponses];
84384
+ export type DevopsChangesMarkLastSliceData = {
84385
+ body: DevopsChangeMarkLastSliceRequest;
84386
+ path: {
84387
+ /**
84388
+ * The change's id, which is its branch name <type>/<slug> from a change list or create answer; the slash must be percent-encoded, so feat/run-page-v2 is sent as feat%2Frun-page-v2.
84389
+ */
84390
+ id: string;
84391
+ };
84392
+ query?: never;
84393
+ url: '/devops/v1/changes/{id}:markLastSlice';
84394
+ };
84395
+ export type DevopsChangesMarkLastSliceErrors = {
84396
+ /**
84397
+ * 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.
84398
+ */
84399
+ 400: DevopsDevOpsError;
84400
+ /**
84401
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
84402
+ */
84403
+ 401: DevopsDevOpsError;
84404
+ /**
84405
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
84406
+ */
84407
+ 403: DevopsDevOpsError;
84408
+ /**
84409
+ * CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
84410
+ */
84411
+ 404: DevopsDevOpsError;
84412
+ /**
84413
+ * 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.
84414
+ */
84415
+ 500: DevopsDevOpsError;
84416
+ };
84417
+ export type DevopsChangesMarkLastSliceError = DevopsChangesMarkLastSliceErrors[keyof DevopsChangesMarkLastSliceErrors];
84418
+ export type DevopsChangesMarkLastSliceResponses = {
84419
+ /**
84420
+ * The change with lastSlice updated and its stage re-derived.
84421
+ */
84422
+ 200: DevopsChange;
84423
+ };
84424
+ export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
83387
84425
  export type KnowledgeListVectorStoresData = {
83388
84426
  body?: never;
83389
84427
  path?: never;
@@ -87338,9 +88376,9 @@ export type MediaGenerateImageData = {
87338
88376
  */
87339
88377
  n?: number;
87340
88378
  /**
87341
- * Requested pixel size written as width x height. The chosen model is validated against it and an unsupported size is rejected with INVALID_PARAMS.
88379
+ * Requested pixel size written as width x height. The platform image models accept 1024x1024 (square, the default), 1024x1536 (portrait) and 1536x1024 (landscape); any other size is rejected with INVALID_PARAMS before anything is charged.
87342
88380
  */
87343
- size?: string;
88381
+ size?: '1024x1024' | '1024x1536' | '1536x1024';
87344
88382
  /**
87345
88383
  * Background handling; defaults to auto. Whether transparency is honoured depends on the model.
87346
88384
  */
@@ -87972,6 +89010,10 @@ export type MediaListJobsData = {
87972
89010
  * Filter jobs by their current status.
87973
89011
  */
87974
89012
  status?: MediaJobStatus;
89013
+ /**
89014
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
89015
+ */
89016
+ pipeline_run_id?: string;
87975
89017
  /**
87976
89018
  * Maximum entries in this page, from 1 through 100; defaults to 100.
87977
89019
  */
@@ -91041,7 +92083,7 @@ export type StudioWorksListResponses = {
91041
92083
  export type StudioWorksListResponse = StudioWorksListResponses[keyof StudioWorksListResponses];
91042
92084
  export type StudioWorksCreateData = {
91043
92085
  /**
91044
- * The work to create: its title, the goal it serves, and the original brief as the person gave it.
92086
+ * The work to create: its title and the goal it serves.
91045
92087
  */
91046
92088
  body: StudioWorkCreateInput;
91047
92089
  path?: never;
@@ -91073,7 +92115,7 @@ export type StudioWorksCreateErrors = {
91073
92115
  export type StudioWorksCreateError = StudioWorksCreateErrors[keyof StudioWorksCreateErrors];
91074
92116
  export type StudioWorksCreateResponses = {
91075
92117
  /**
91076
- * The new work with its goal, brief and empty draft list; keep its slug for every later call.
92118
+ * The new work with its goal and empty draft list; keep its slug for every later call.
91077
92119
  */
91078
92120
  201: StudioWork;
91079
92121
  };
@@ -91205,50 +92247,6 @@ export type StudioWorksUpdateResponses = {
91205
92247
  200: StudioWorkWriteResult;
91206
92248
  };
91207
92249
  export type StudioWorksUpdateResponse = StudioWorksUpdateResponses[keyof StudioWorksUpdateResponses];
91208
- export type StudioWorksUpdateBriefData = {
91209
- /**
91210
- * The brief change: new text or points to add, points to edit, and points to drop.
91211
- */
91212
- body: StudioBriefUpdateInput;
91213
- path: {
91214
- /**
91215
- * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
91216
- */
91217
- work: string;
91218
- };
91219
- query?: never;
91220
- url: '/studio/v1/works/{work}/brief';
91221
- };
91222
- export type StudioWorksUpdateBriefErrors = {
91223
- /**
91224
- * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
91225
- */
91226
- 400: StudioStudioError;
91227
- /**
91228
- * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
91229
- */
91230
- 401: StudioStudioError;
91231
- /**
91232
- * WORK_NOT_FOUND or BRIEF_POINT_NOT_FOUND means the work is not reachable or the named brief point no longer exists; re-read the work and use the point keys it currently carries.
91233
- */
91234
- 404: StudioStudioError;
91235
- /**
91236
- * REVISION_CONFLICT means the resource changed since the expected_revision you sent, so nothing was written; re-read it, merge the other change into yours and repeat the call with the revision you just read.
91237
- */
91238
- 409: StudioStudioError;
91239
- /**
91240
- * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
91241
- */
91242
- 500: StudioStudioError;
91243
- };
91244
- export type StudioWorksUpdateBriefError = StudioWorksUpdateBriefErrors[keyof StudioWorksUpdateBriefErrors];
91245
- export type StudioWorksUpdateBriefResponses = {
91246
- /**
91247
- * The updated brief together with its checks and the next todos.
91248
- */
91249
- 200: StudioBriefWriteResult;
91250
- };
91251
- export type StudioWorksUpdateBriefResponse = StudioWorksUpdateBriefResponses[keyof StudioWorksUpdateBriefResponses];
91252
92250
  export type StudioDraftsListData = {
91253
92251
  body?: never;
91254
92252
  path: {
@@ -91424,6 +92422,54 @@ export type StudioDraftsUpdateResponses = {
91424
92422
  200: StudioDraftWriteResult;
91425
92423
  };
91426
92424
  export type StudioDraftsUpdateResponse = StudioDraftsUpdateResponses[keyof StudioDraftsUpdateResponses];
92425
+ export type StudioDraftsUpdateBriefData = {
92426
+ /**
92427
+ * The brief change: new text or points to add, points to edit, and points to drop.
92428
+ */
92429
+ body: StudioBriefUpdateInput;
92430
+ path: {
92431
+ /**
92432
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92433
+ */
92434
+ work: string;
92435
+ /**
92436
+ * Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
92437
+ */
92438
+ draft: string;
92439
+ };
92440
+ query?: never;
92441
+ url: '/studio/v1/works/{work}/drafts/{draft}/brief';
92442
+ };
92443
+ export type StudioDraftsUpdateBriefErrors = {
92444
+ /**
92445
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92446
+ */
92447
+ 400: StudioStudioError;
92448
+ /**
92449
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92450
+ */
92451
+ 401: StudioStudioError;
92452
+ /**
92453
+ * WORK_NOT_FOUND, DRAFT_NOT_FOUND or BRIEF_POINT_NOT_FOUND means the work or draft is not reachable or the named brief point no longer exists; re-read the draft and use the point keys its brief currently carries.
92454
+ */
92455
+ 404: StudioStudioError;
92456
+ /**
92457
+ * REVISION_CONFLICT means the resource changed since the expected_revision you sent, so nothing was written; re-read it, merge the other change into yours and repeat the call with the revision you just read.
92458
+ */
92459
+ 409: StudioStudioError;
92460
+ /**
92461
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92462
+ */
92463
+ 500: StudioStudioError;
92464
+ };
92465
+ export type StudioDraftsUpdateBriefError = StudioDraftsUpdateBriefErrors[keyof StudioDraftsUpdateBriefErrors];
92466
+ export type StudioDraftsUpdateBriefResponses = {
92467
+ /**
92468
+ * The updated brief together with its checks and the next todos.
92469
+ */
92470
+ 200: StudioBriefWriteResult;
92471
+ };
92472
+ export type StudioDraftsUpdateBriefResponse = StudioDraftsUpdateBriefResponses[keyof StudioDraftsUpdateBriefResponses];
91427
92473
  export type StudioDraftsOutlineData = {
91428
92474
  body?: never;
91429
92475
  path: {
@@ -91465,6 +92511,263 @@ export type StudioDraftsOutlineResponses = {
91465
92511
  200: StudioOutlineResult;
91466
92512
  };
91467
92513
  export type StudioDraftsOutlineResponse = StudioDraftsOutlineResponses[keyof StudioDraftsOutlineResponses];
92514
+ export type StudioForeshadowsListData = {
92515
+ body?: never;
92516
+ path: {
92517
+ /**
92518
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92519
+ */
92520
+ work: string;
92521
+ /**
92522
+ * Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
92523
+ */
92524
+ draft: string;
92525
+ };
92526
+ query?: never;
92527
+ url: '/studio/v1/works/{work}/drafts/{draft}/foreshadows';
92528
+ };
92529
+ export type StudioForeshadowsListErrors = {
92530
+ /**
92531
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92532
+ */
92533
+ 400: StudioStudioError;
92534
+ /**
92535
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92536
+ */
92537
+ 401: StudioStudioError;
92538
+ /**
92539
+ * WORK_NOT_FOUND or DRAFT_NOT_FOUND means the work or the draft inside it is not reachable; use the slug and the draft key from the lists, or resolve a loose name first. A draft renamed earlier still answers under its previous key.
92540
+ */
92541
+ 404: StudioStudioError;
92542
+ /**
92543
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92544
+ */
92545
+ 500: StudioStudioError;
92546
+ };
92547
+ export type StudioForeshadowsListError = StudioForeshadowsListErrors[keyof StudioForeshadowsListErrors];
92548
+ export type StudioForeshadowsListResponses = {
92549
+ /**
92550
+ * The draft's foreshadows.
92551
+ */
92552
+ 200: StudioForeshadowList;
92553
+ };
92554
+ export type StudioForeshadowsListResponse = StudioForeshadowsListResponses[keyof StudioForeshadowsListResponses];
92555
+ export type StudioForeshadowsDeleteData = {
92556
+ body?: never;
92557
+ path: {
92558
+ /**
92559
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92560
+ */
92561
+ work: string;
92562
+ /**
92563
+ * Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
92564
+ */
92565
+ draft: string;
92566
+ /**
92567
+ * Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow.
92568
+ */
92569
+ key: string;
92570
+ };
92571
+ query?: never;
92572
+ url: '/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}';
92573
+ };
92574
+ export type StudioForeshadowsDeleteErrors = {
92575
+ /**
92576
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92577
+ */
92578
+ 400: StudioStudioError;
92579
+ /**
92580
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92581
+ */
92582
+ 401: StudioStudioError;
92583
+ /**
92584
+ * WORK_NOT_FOUND or DRAFT_NOT_FOUND means the work or the draft inside it is not reachable; use the slug and the draft key from the lists, or resolve a loose name first. A draft renamed earlier still answers under its previous key.
92585
+ */
92586
+ 404: StudioStudioError;
92587
+ /**
92588
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92589
+ */
92590
+ 500: StudioStudioError;
92591
+ };
92592
+ export type StudioForeshadowsDeleteError = StudioForeshadowsDeleteErrors[keyof StudioForeshadowsDeleteErrors];
92593
+ export type StudioForeshadowsDeleteResponses = {
92594
+ /**
92595
+ * The foreshadow is gone.
92596
+ */
92597
+ 200: StudioDeleted;
92598
+ };
92599
+ export type StudioForeshadowsDeleteResponse = StudioForeshadowsDeleteResponses[keyof StudioForeshadowsDeleteResponses];
92600
+ export type StudioForeshadowsUpsertData = {
92601
+ /**
92602
+ * Where the thread is planted, where it is paid off, and what it is.
92603
+ */
92604
+ body: StudioForeshadowUpsertInput;
92605
+ path: {
92606
+ /**
92607
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92608
+ */
92609
+ work: string;
92610
+ /**
92611
+ * Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
92612
+ */
92613
+ draft: string;
92614
+ /**
92615
+ * Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow.
92616
+ */
92617
+ key: string;
92618
+ };
92619
+ query?: never;
92620
+ url: '/studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}';
92621
+ };
92622
+ export type StudioForeshadowsUpsertErrors = {
92623
+ /**
92624
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92625
+ */
92626
+ 400: StudioStudioError;
92627
+ /**
92628
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92629
+ */
92630
+ 401: StudioStudioError;
92631
+ /**
92632
+ * WORK_NOT_FOUND, DRAFT_NOT_FOUND or UNIT_NOT_FOUND means one address in the path names nothing reachable; use the numbers and keys from the outline rather than a remembered one, since a unit that was deleted never returns.
92633
+ */
92634
+ 404: StudioStudioError;
92635
+ /**
92636
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92637
+ */
92638
+ 500: StudioStudioError;
92639
+ };
92640
+ export type StudioForeshadowsUpsertError = StudioForeshadowsUpsertErrors[keyof StudioForeshadowsUpsertErrors];
92641
+ export type StudioForeshadowsUpsertResponses = {
92642
+ /**
92643
+ * The foreshadow as stored.
92644
+ */
92645
+ 200: StudioForeshadow;
92646
+ };
92647
+ export type StudioForeshadowsUpsertResponse = StudioForeshadowsUpsertResponses[keyof StudioForeshadowsUpsertResponses];
92648
+ export type StudioProgressionsListData = {
92649
+ body?: never;
92650
+ path: {
92651
+ /**
92652
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92653
+ */
92654
+ work: string;
92655
+ };
92656
+ query?: {
92657
+ /**
92658
+ * Only the changes of this entry, by name, alias or ent_ identifier.
92659
+ */
92660
+ entry?: string;
92661
+ };
92662
+ url: '/studio/v1/works/{work}/progressions';
92663
+ };
92664
+ export type StudioProgressionsListErrors = {
92665
+ /**
92666
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92667
+ */
92668
+ 400: StudioStudioError;
92669
+ /**
92670
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92671
+ */
92672
+ 401: StudioStudioError;
92673
+ /**
92674
+ * WORK_NOT_FOUND, UNIT_NOT_FOUND, ENTRY_NOT_FOUND or PROGRESSION_NOT_FOUND means the work, the unit number, the entry (it must be in a library this work mounts) or the progression is not reachable; read the outline and the library for the names that exist.
92675
+ */
92676
+ 404: StudioStudioError;
92677
+ /**
92678
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92679
+ */
92680
+ 500: StudioStudioError;
92681
+ };
92682
+ export type StudioProgressionsListError = StudioProgressionsListErrors[keyof StudioProgressionsListErrors];
92683
+ export type StudioProgressionsListResponses = {
92684
+ /**
92685
+ * The progressions, in the order they were recorded.
92686
+ */
92687
+ 200: StudioProgressionList;
92688
+ };
92689
+ export type StudioProgressionsListResponse = StudioProgressionsListResponses[keyof StudioProgressionsListResponses];
92690
+ export type StudioProgressionsCreateData = {
92691
+ /**
92692
+ * The entry, the unit where the change happens, and the change in a sentence.
92693
+ */
92694
+ body: StudioProgressionCreateInput;
92695
+ path: {
92696
+ /**
92697
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92698
+ */
92699
+ work: string;
92700
+ };
92701
+ query?: never;
92702
+ url: '/studio/v1/works/{work}/progressions';
92703
+ };
92704
+ export type StudioProgressionsCreateErrors = {
92705
+ /**
92706
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92707
+ */
92708
+ 400: StudioStudioError;
92709
+ /**
92710
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92711
+ */
92712
+ 401: StudioStudioError;
92713
+ /**
92714
+ * WORK_NOT_FOUND, UNIT_NOT_FOUND, ENTRY_NOT_FOUND or PROGRESSION_NOT_FOUND means the work, the unit number, the entry (it must be in a library this work mounts) or the progression is not reachable; read the outline and the library for the names that exist.
92715
+ */
92716
+ 404: StudioStudioError;
92717
+ /**
92718
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92719
+ */
92720
+ 500: StudioStudioError;
92721
+ };
92722
+ export type StudioProgressionsCreateError = StudioProgressionsCreateErrors[keyof StudioProgressionsCreateErrors];
92723
+ export type StudioProgressionsCreateResponses = {
92724
+ /**
92725
+ * The progression as stored, with the entry and unit resolved to identifiers.
92726
+ */
92727
+ 201: StudioProgression;
92728
+ };
92729
+ export type StudioProgressionsCreateResponse = StudioProgressionsCreateResponses[keyof StudioProgressionsCreateResponses];
92730
+ export type StudioProgressionsDeleteData = {
92731
+ body?: never;
92732
+ path: {
92733
+ /**
92734
+ * The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.
92735
+ */
92736
+ work: string;
92737
+ /**
92738
+ * The progression to delete, by its identifier from the list.
92739
+ */
92740
+ id: string;
92741
+ };
92742
+ query?: never;
92743
+ url: '/studio/v1/works/{work}/progressions/{id}';
92744
+ };
92745
+ export type StudioProgressionsDeleteErrors = {
92746
+ /**
92747
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
92748
+ */
92749
+ 400: StudioStudioError;
92750
+ /**
92751
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
92752
+ */
92753
+ 401: StudioStudioError;
92754
+ /**
92755
+ * WORK_NOT_FOUND, UNIT_NOT_FOUND, ENTRY_NOT_FOUND or PROGRESSION_NOT_FOUND means the work, the unit number, the entry (it must be in a library this work mounts) or the progression is not reachable; read the outline and the library for the names that exist.
92756
+ */
92757
+ 404: StudioStudioError;
92758
+ /**
92759
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
92760
+ */
92761
+ 500: StudioStudioError;
92762
+ };
92763
+ export type StudioProgressionsDeleteError = StudioProgressionsDeleteErrors[keyof StudioProgressionsDeleteErrors];
92764
+ export type StudioProgressionsDeleteResponses = {
92765
+ /**
92766
+ * The progression is gone.
92767
+ */
92768
+ 200: StudioDeleted;
92769
+ };
92770
+ export type StudioProgressionsDeleteResponse = StudioProgressionsDeleteResponses[keyof StudioProgressionsDeleteResponses];
91468
92771
  export type StudioDraftsStatusData = {
91469
92772
  body?: never;
91470
92773
  path: {
@@ -92022,7 +93325,7 @@ export type StudioUnitsContextData = {
92022
93325
  };
92023
93326
  query?: {
92024
93327
  /**
92025
- * Token budget the pack must fit into; the reference and previous sections are cut to fit it while the genre, brief and unit sections always arrive whole. Omit it to use the service default.
93328
+ * Token budget the pack must fit into; the reference, timeline and previous sections are cut to fit it while the genre, brief and unit sections always arrive whole. Omit it to use the service default.
92026
93329
  */
92027
93330
  budget_tokens?: number;
92028
93331
  };