@deepraxis/sdk 0.1.1-dev.b478c75 → 0.1.1-dev.b4c63c2

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.
@@ -15610,6 +15610,50 @@ export type DevopsProgressiveRolloutReason = {
15610
15610
  */
15611
15611
  reason: string;
15612
15612
  };
15613
+ /**
15614
+ * An OpenTofu state document. Praxis stores it as written and reads only serial and lineage; every other member passes through untouched.
15615
+ */
15616
+ export type DevopsTofuState = {
15617
+ /**
15618
+ * The state format version OpenTofu wrote.
15619
+ */
15620
+ version?: number;
15621
+ /**
15622
+ * Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale.
15623
+ */
15624
+ serial: number;
15625
+ /**
15626
+ * Identifies one state history; it does not change across writes.
15627
+ */
15628
+ lineage: string;
15629
+ [key: string]: unknown;
15630
+ };
15631
+ /**
15632
+ * The lock info OpenTofu sends and reads back. Only ID is required; the rest tells the next caller who holds the lock.
15633
+ */
15634
+ export type DevopsTofuLockInfo = {
15635
+ /**
15636
+ * Identifies the lock; every write and the unlock must carry it.
15637
+ */
15638
+ ID: string;
15639
+ /**
15640
+ * What the holder is doing, such as OperationTypeApply.
15641
+ */
15642
+ Operation?: string;
15643
+ /**
15644
+ * The holder, user@host, shown to the caller that finds the lock held.
15645
+ */
15646
+ Who?: string;
15647
+ /**
15648
+ * When the holder took the lock, RFC 3339.
15649
+ */
15650
+ Created?: string;
15651
+ /**
15652
+ * Where the holder keeps its working state, informational.
15653
+ */
15654
+ Path?: string;
15655
+ [key: string]: unknown;
15656
+ };
15613
15657
  export type KnowledgeNativeVectorStore = {
15614
15658
  /**
15615
15659
  * Resource ID.
@@ -17229,106 +17273,6 @@ export type MediaEditOperation = {
17229
17273
  */
17230
17274
  voice: string;
17231
17275
  };
17232
- export type MediaVoiceConsent = {
17233
- /**
17234
- * Identifier of the voice material, equal to the id of the library asset that carries it; use it as `voice` when synthesising speech with it.
17235
- */
17236
- id: string;
17237
- /**
17238
- * Object type, always media.voice_consent for a consent and media.voice for a voice material.
17239
- */
17240
- object: 'media.voice_consent';
17241
- /**
17242
- * Recording of the statement the speaker read, as the platform file identifier it was uploaded as.
17243
- */
17244
- file_id: string;
17245
- /**
17246
- * Name of the person who gave the authorisation, recorded as written on the statement.
17247
- */
17248
- speaker_name: string;
17249
- /**
17250
- * Language of the speaker and the recordings, in BCP-47 form; a clone’s language must equal its consent’s.
17251
- */
17252
- language: string;
17253
- /**
17254
- * Time the material was created, in UTC.
17255
- */
17256
- created_at: MediaIsoTimestamp;
17257
- };
17258
- /**
17259
- * A page of voice materials in a library.
17260
- */
17261
- export type MediaVoicePage = {
17262
- /**
17263
- * Voice materials in this page, newest first.
17264
- */
17265
- data: Array<MediaVoice>;
17266
- /**
17267
- * Cursor for the next page, or null when there are no more voices.
17268
- */
17269
- next_cursor: string | null;
17270
- };
17271
- export type MediaVoice = {
17272
- /**
17273
- * Identifier of the voice material, equal to the id of the library asset that carries it; use it as `voice` when synthesising speech with it.
17274
- */
17275
- id: MediaAssetId;
17276
- /**
17277
- * Object type, always media.voice_consent for a consent and media.voice for a voice material.
17278
- */
17279
- object: 'media.voice';
17280
- /**
17281
- * Library the material belongs to; a voice is usable only inside the library that owns it.
17282
- */
17283
- library_id: MediaLibraryId;
17284
- /**
17285
- * Display name shown wherever a voice is chosen.
17286
- */
17287
- name: string;
17288
- /**
17289
- * Language of the speaker and the recordings, in BCP-47 form; a clone’s language must equal its consent’s.
17290
- */
17291
- language: string;
17292
- /**
17293
- * Key-value labels attached to the material, replaced as a whole by an asset update.
17294
- */
17295
- labels: {
17296
- [key: string]: string;
17297
- };
17298
- /**
17299
- * Free-text note about the voice, omitted when none was given.
17300
- */
17301
- description?: string;
17302
- /**
17303
- * Recordings the clone was made from, in the order they were given; the first is the one cloned and the one a later re-clone uses.
17304
- */
17305
- samples: Array<string>;
17306
- /**
17307
- * Consent that authorises this clone, from creating a consent in the same library.
17308
- */
17309
- consent_id: string;
17310
- /**
17311
- * Recording that previews the voice. Omitted: this release stores no preview recording, so an absent preview is not a failed clone — read providers instead.
17312
- */
17313
- preview_file_id?: string;
17314
- /**
17315
- * One entry per supplier holding this voice, each with that supplier’s state. Empty until the clone reaches a supplier, and empty after a clone that was refused.
17316
- */
17317
- providers: Array<{
17318
- /**
17319
- * Identifier of the supplier that holds this voice; one entry per supplier, so a voice cloned at two suppliers answers twice.
17320
- */
17321
- provider: string;
17322
- /**
17323
- * State of this voice at this supplier: training while the clone is still being learned, ready when it can be spoken with, failed when the clone was refused, and expired or reclaimed when the supplier dropped it and Router will clone it again on the next use.
17324
- */
17325
- state: MediaVoiceState;
17326
- }>;
17327
- /**
17328
- * Time the material was created, in UTC.
17329
- */
17330
- created_at: MediaIsoTimestamp;
17331
- };
17332
17276
  export type MediaFailureSummary = {
17333
17277
  /**
17334
17278
  * Number of current failed understanding entries, excluding deleted assets and superseded versions.
@@ -17952,6 +17896,10 @@ export type SandboxSandbox = {
17952
17896
  * Base domain where the sandbox traffic is accessible
17953
17897
  */
17954
17898
  domain?: string;
17899
+ /**
17900
+ * What kind of machine this sandbox is, so you can decide whether to drive it as a computer without knowing which vendor placed it. full: a complete environment that runs files, commands, terminals and background processes through the data plane — drive it as a computer. light: a light machine without that. none: a single-use box that is reachable but must not be driven as a computer.
17901
+ */
17902
+ machine?: 'light' | 'full' | 'none';
17955
17903
  };
17956
17904
  /**
17957
17905
  * State of the sandbox
@@ -17994,6 +17942,10 @@ export type SandboxListedSandbox = {
17994
17942
  metadata?: SandboxSandboxMetadata;
17995
17943
  state: SandboxSandboxState;
17996
17944
  envdVersion: SandboxEnvdVersion;
17945
+ /**
17946
+ * What kind of machine this sandbox is, so you can decide whether to drive it as a computer without knowing which vendor placed it. full: a complete environment that runs files, commands, terminals and background processes through the data plane — drive it as a computer. light: a light machine without that. none: a single-use box that is reachable but must not be driven as a computer.
17947
+ */
17948
+ machine?: 'light' | 'full' | 'none';
17997
17949
  /**
17998
17950
  * Volumes mounted into the sandbox.
17999
17951
  */
@@ -18832,6 +18784,10 @@ export type StudioDraftCreateInput = {
18832
18784
  * Genre key the draft is written in, taken from the genre list; it decides the unit kinds, the properties and the checks.
18833
18785
  */
18834
18786
  genre: string;
18787
+ /**
18788
+ * 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.
18789
+ */
18790
+ key?: string;
18835
18791
  /**
18836
18792
  * Page title of the new draft; omit it and one is derived from the genre and the work title.
18837
18793
  */
@@ -20157,11 +20113,11 @@ export type StudioReviewCreateInput = {
20157
20113
  note?: string;
20158
20114
  };
20159
20115
  /**
20160
- * One round of blind review as the sender sees it: the frozen draft revision, the panel as anonymous seats, what came back, and the round decision. Reviewers appear only by label, and the notes written to the review centre are not part of this shape.
20116
+ * One round of blind review as the sender sees it: the frozen draft revision, its seats as anonymous labels, what came back, and the round decision. Reviewers appear only by label, and the notes written to the review centre are not part of this shape.
20161
20117
  */
20162
20118
  export type StudioReview = {
20163
20119
  /**
20164
- * Round identifier, the value the review path segment takes; it stays the same when the round is appealed.
20120
+ * Round identifier, the value the review path segment takes.
20165
20121
  */
20166
20122
  id: string;
20167
20123
  /**
@@ -20209,7 +20165,7 @@ export type StudioReview = {
20209
20165
  */
20210
20166
  status: 'reviewing' | 'decided' | 'cancelled' | 'failed';
20211
20167
  /**
20212
- * The panel of this round, one entry per reviewer: the label the sender sees, the kind, the tag it was drawn on and how far that reviewer is.
20168
+ * The panel of this round, one entry per reviewer on the roster whose kind the round asks: the label the sender sees, the kind and how far that reviewer is. The order is the roster order, so the labels are stable for a given roster.
20213
20169
  */
20214
20170
  seats: Array<StudioReviewSeat>;
20215
20171
  /**
@@ -20225,20 +20181,12 @@ export type StudioReview = {
20225
20181
  */
20226
20182
  decision: 'pass' | 'pass_after_revision' | 're_review' | 'reject';
20227
20183
  screening: StudioScreeningTally;
20228
- /**
20229
- * True once this round has been appealed; each round takes at most one appeal.
20230
- */
20231
- appealed: boolean;
20232
20184
  /**
20233
20185
  * Assignment record of this round, present only when view=audit was asked and the caller is an organization administrator. It names the reviewers and carries what the sender must not see, so never forward it to the sender.
20234
20186
  */
20235
20187
  audit?: {
20236
20188
  /**
20237
- * Draw seed the panel was picked with, recorded so the same panel can be reproduced when the draw is questioned.
20238
- */
20239
- seed: number;
20240
- /**
20241
- * Seats as assigned, one entry per reviewer with its label, the agent that reviewed, its kind and the tag it was drawn on.
20189
+ * Seats as assigned, one entry per reviewer with its label, the agent that reviewed and its kind.
20242
20190
  */
20243
20191
  assignments: Array<StudioReviewerAssignment>;
20244
20192
  /**
@@ -20265,22 +20213,9 @@ export type StudioReviewPage = {
20265
20213
  next_page_token?: string;
20266
20214
  };
20267
20215
  /**
20268
- * Why a decided round is being appealed.
20269
- */
20270
- export type StudioReviewAppealInput = {
20271
- /**
20272
- * Reason for the appeal, recorded for the review centre; it does not reach the reviewers and cannot name which reviewer to draw.
20273
- */
20274
- reason: string;
20275
- };
20276
- /**
20277
- * How one work is reviewed: the seats that make up its panel, how many rounds it may take, and the revision these settings are at. The panel holds conditions, so the centre decides which reviewer fills each seat.
20216
+ * How one work is reviewed: how many rounds it may take and the revision these settings are at. Who reviews is not a setting but the work's reviewer roster, and every round asks the whole roster.
20278
20217
  */
20279
20218
  export type StudioReviewSettings = {
20280
- /**
20281
- * Seats every round of this work is drawn against, each naming a kind, a tag and how many reviewers are drawn for it.
20282
- */
20283
- seats: Array<StudioReviewerSeat>;
20284
20219
  /**
20285
20220
  * Most rounds this work may take, counting the first one; sending another round after that answers REVIEW_ROUND_LIMIT until a person raises this number.
20286
20221
  */
@@ -20291,28 +20226,24 @@ export type StudioReviewSettings = {
20291
20226
  revision: number;
20292
20227
  };
20293
20228
  /**
20294
- * The change to a work's review panel, carrying the revision it was read at.
20229
+ * The change to a work's review settings, carrying the revision it was read at.
20295
20230
  */
20296
20231
  export type StudioReviewSettingsUpdateInput = {
20297
20232
  /**
20298
20233
  * Revision the settings read returned; a mismatch means somebody else changed the panel in between and this call is refused, so read the settings again and repeat with the new revision.
20299
20234
  */
20300
20235
  expected_revision: number;
20301
- /**
20302
- * Seats the panel should have from now on, replacing the current seats whole; leave the field out to keep the current panel.
20303
- */
20304
- seats?: Array<StudioReviewerSeat>;
20305
20236
  /**
20306
20237
  * Most rounds the work may take from now on, counting the first; leave the field out to keep the current limit. Rounds already sent are not undone by raising or lowering it.
20307
20238
  */
20308
20239
  max_rounds?: number;
20309
20240
  };
20310
20241
  /**
20311
- * One page of reviewers with the cursor that fetches the next page.
20242
+ * One page of this work's reviewers with the cursor that fetches the next page.
20312
20243
  */
20313
20244
  export type StudioReviewerPage = {
20314
20245
  /**
20315
- * Reviewers of this organization on this page, with their kinds, tags and active state.
20246
+ * Reviewers on this page, in the order they were added, which is the order a round labels them in.
20316
20247
  */
20317
20248
  items: Array<StudioReviewer>;
20318
20249
  /**
@@ -20321,16 +20252,20 @@ export type StudioReviewerPage = {
20321
20252
  next_page_token?: string;
20322
20253
  };
20323
20254
  /**
20324
- * The change to one reviewer: whether the draw may still pick it.
20255
+ * The reviewer to add to a work's roster.
20325
20256
  */
20326
- export type StudioReviewerUpdateInput = {
20257
+ export type StudioReviewerCreateInput = {
20258
+ /**
20259
+ * Service agent of this organization to add, by the agent_ id /v1/agents returns for it; the agent must exist in this organization and be a service agent, or the call answers REVIEWER_NOT_SERVICE_AGENT.
20260
+ */
20261
+ agent: string;
20327
20262
  /**
20328
- * Set false to take this reviewer out of the draw for rounds sent from now on, true to put it back; rounds already sent keep the reviewers they drew.
20263
+ * Kind this reviewer reviews as on this roster: expert writes a scored report, audience fills a screening card.
20329
20264
  */
20330
- active: boolean;
20265
+ kind: 'expert' | 'audience';
20331
20266
  };
20332
20267
  /**
20333
- * One reviewer of this organization's library: a service agent registered with a kind, tags and a model family, which the draw may pick for a matching seat.
20268
+ * One reviewer on a work's roster: an agent of this organization that reviews every round of this work of its kind. Its display name comes from the agent, so it is what a person sees; the round itself only ever shows the sender a label.
20334
20269
  */
20335
20270
  export type StudioReviewer = {
20336
20271
  /**
@@ -20342,29 +20277,26 @@ export type StudioReviewer = {
20342
20277
  */
20343
20278
  object: string;
20344
20279
  /**
20345
- * Kind of reviewer this agent is, which decides what a round asks it for.
20346
- */
20347
- kind: 'expert' | 'audience';
20348
- /**
20349
- * Display name of the reviewer, such as 宝妈, shown where a person reads the round; it is not the identity the round keeps hidden.
20350
- */
20351
- name: string;
20352
- /**
20353
- * Tags this reviewer matches, which decide the seats it can fill; a seat with a tag no reviewer carries cannot be drawn.
20280
+ * Identifier of the work this roster belongs to; a reviewer is on one work's roster and has no address outside it.
20354
20281
  */
20355
- tags: Array<string>;
20282
+ work: string;
20356
20283
  /**
20357
- * Model family this reviewer runs, such as qwen, kimi or deepseek; the draw leaves out reviewers of the same family as the model that wrote the draft.
20284
+ * Kind this reviewer reviews as on this roster, which decides which rounds ask it and what it is asked for.
20358
20285
  */
20359
- model_family: string;
20286
+ kind: 'expert' | 'audience';
20360
20287
  /**
20361
- * Preset this reviewer was created from, by its key such as audience.mom or expert.editor; null for a reviewer the organization set up itself.
20288
+ * Display name of the reviewer agent, such as 宝妈, shown where a person reads the roster. An agent that no longer exists still has a row, and its identifier is shown in place of a name.
20362
20289
  */
20363
- preset: string;
20290
+ name: string;
20291
+ };
20292
+ /**
20293
+ * The change to one reviewer on a work's roster.
20294
+ */
20295
+ export type StudioReviewerUpdateInput = {
20364
20296
  /**
20365
- * Whether the draw may pick this reviewer; false keeps it in the library but leaves it out of every round sent from now on.
20297
+ * Kind this reviewer reviews as from now on; rounds already sent keep the kind they were sent with.
20366
20298
  */
20367
- active: boolean;
20299
+ kind: 'expert' | 'audience';
20368
20300
  };
20369
20301
  export type VaultVaultPage = {
20370
20302
  /**
@@ -32506,30 +32438,26 @@ export type MediaSpeechCreateInput = {
32506
32438
  */
32507
32439
  input: string;
32508
32440
  /**
32509
- * Voice to speak with: either a platform voice name, or the id of a voice material of this library (voice_id from voice creation or listing). Naming a voice material speaks with that cloned voice, and the first synthesis after the material is created clones it on demand if the supplier does not hold it yet; a recording that is not a voice material of this library is passed to the provider as a platform voice name, and its own verdict comes back.
32441
+ * Voice to synthesize with. Omit it to use the model’s default voice. The available values are the ids in the types.speech list of GET /media/v1/generation/capabilities, beside the voices of the model you are using, plus a voice material id of this same library. A voice that is neither is refused with INVALID_PARAMS before any job is created, so a wrong name costs nothing — read the capabilities first instead of guessing. Example ids for the platform speech model: zh_female_vv_uranus_bigtts (the default), zh_female_wenroumama_uranus_bigtts (a gentle female voice), zh_male_m191_uranus_bigtts. OpenAI voice names such as alloy are not valid here.
32510
32442
  */
32511
- voice: string;
32443
+ voice?: string;
32512
32444
  /**
32513
- * Emotion and style guidance for the synthesized speech; refused as OPERATION_NOT_SUPPORTED because the speech lane has no equivalent field.
32445
+ * Emotion and style guidance for the synthesized speech.
32514
32446
  */
32515
32447
  instructions?: string;
32516
32448
  /**
32517
- * Speaking-rate multiplier; the provider’s own span decides, and a value outside it is refused by the provider.
32449
+ * Speaking-rate multiplier; 1 is the model default.
32518
32450
  */
32519
32451
  speed?: number;
32520
32452
  /**
32521
- * Audio encoding of the synthesized speech; defaults to mp3. A text long enough to need several segments accepts mp3 or pcm only, because those concatenate head to tail.
32453
+ * Audio encoding of the synthesized speech.
32522
32454
  */
32523
32455
  response_format?: 'mp3' | 'wav' | 'opus' | 'aac' | 'flac' | 'pcm';
32524
32456
  /**
32525
- * Spoken language; refused as OPERATION_NOT_SUPPORTED because the voice decides it.
32457
+ * Language of the text, when the voice supports several.
32526
32458
  */
32527
32459
  language?: string;
32528
32460
  };
32529
- /**
32530
- * State of one voice at one supplier.
32531
- */
32532
- export type MediaVoiceState = 'training' | 'ready' | 'failed' | 'expired' | 'reclaimed';
32533
32461
  export type MediaFailureGroup = {
32534
32462
  /**
32535
32463
  * Failure reason code. Unknown codes are retryable.
@@ -33015,7 +32943,7 @@ export type StudioGoal = {
33015
32943
  */
33016
32944
  message: string;
33017
32945
  /**
33018
- * Length, forbidden wording, deadline and any other bound the writing must respect, carried into the context pack.
32946
+ * 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.
33019
32947
  */
33020
32948
  constraints: string;
33021
32949
  };
@@ -33180,6 +33108,18 @@ export type StudioWorkSummary = {
33180
33108
  * Console address of the work, safe to show to the person who asked for it.
33181
33109
  */
33182
33110
  viewer_url: string;
33111
+ /**
33112
+ * Cover file of the work, the file_ id a cover image was uploaded as, or null when the work has none.
33113
+ */
33114
+ cover: string | null;
33115
+ /**
33116
+ * The work's one-sentence message, so a list can show it without reading each work.
33117
+ */
33118
+ message: string;
33119
+ /**
33120
+ * Number of entries in the work's own reference libraries.
33121
+ */
33122
+ entry_count: number;
33183
33123
  };
33184
33124
  /**
33185
33125
  * One near match offered for a reference that resolved to nothing.
@@ -33922,25 +33862,21 @@ export type StudioActor = {
33922
33862
  label?: string;
33923
33863
  };
33924
33864
  /**
33925
- * One seat of a round as the sender sees it: who to show it as, what was asked for, and how far that reviewer is.
33865
+ * One seat of a round as the sender sees it: the label to show it as and how far that reviewer is.
33926
33866
  */
33927
33867
  export type StudioReviewSeat = {
33928
33868
  /**
33929
- * Anonymised label of this reviewer inside the round, A, B, C and so on in draw order; reports and screening cards name the seat by this label, and it never carries the reviewer identity.
33869
+ * Anonymised label of this reviewer inside the round, A, B, C and so on in roster order; reports and screening cards name the seat by this label, and it never carries the reviewer identity.
33930
33870
  */
33931
33871
  label: string;
33932
33872
  /**
33933
- * Kind of reviewer drawn for this seat.
33873
+ * Kind this seat reviews as, taken from the work's reviewer roster.
33934
33874
  */
33935
33875
  kind: 'expert' | 'audience';
33936
- /**
33937
- * Tag this seat was drawn on, matching the work settings; it says what sort of reader or specialist this seat is, such as 宝妈 or 出版编辑.
33938
- */
33939
- tag: string;
33940
33876
  /**
33941
33877
  * How far this seat is.
33942
33878
  */
33943
- state: 'waiting' | 'answered' | 'replaced';
33879
+ state: 'waiting' | 'answered' | 'failed';
33944
33880
  };
33945
33881
  /**
33946
33882
  * One expert reviewer's report as the sender sees it: the scores, the verdict and the notes on units. The confidential part of the report is not in this shape.
@@ -34057,17 +33993,13 @@ export type StudioReviewerAssignment = {
34057
33993
  */
34058
33994
  label: string;
34059
33995
  /**
34060
- * Reviewer agent that took this seat, the value the reviewer list returns.
33996
+ * Reviewer agent that took this seat, the value this work's reviewer list returns.
34061
33997
  */
34062
33998
  agent: string;
34063
33999
  /**
34064
- * Kind of reviewer this seat was drawn as.
34000
+ * Kind this seat reviewed as.
34065
34001
  */
34066
34002
  kind: 'expert' | 'audience';
34067
- /**
34068
- * Tag this seat was drawn on.
34069
- */
34070
- tag: string;
34071
34003
  };
34072
34004
  /**
34073
34005
  * The confidential part of one expert report, written to the review centre and deliberately not shown to the sender.
@@ -34095,23 +34027,6 @@ export type StudioReviewSessionRef = {
34095
34027
  */
34096
34028
  session: string;
34097
34029
  };
34098
- /**
34099
- * One seat condition of a work's review panel: which kind of reviewer, on which tag, and how many. Which reviewer fills it is decided by the draw, not here.
34100
- */
34101
- export type StudioReviewerSeat = {
34102
- /**
34103
- * Kind of reviewer this seat asks for.
34104
- */
34105
- kind: 'expert' | 'audience';
34106
- /**
34107
- * Tag a reviewer must carry to fill this seat, such as 宝妈 or 出版编辑; it should be one the reviewer list shows, or the seat cannot be filled.
34108
- */
34109
- tag: string;
34110
- /**
34111
- * How many reviewers this seat asks for; the round cannot start until this many are drawn, so a work whose seats ask for more than the library holds answers REVIEWER_POOL_EMPTY.
34112
- */
34113
- count: number;
34114
- };
34115
34030
  export type VaultVaultEvent = {
34116
34031
  /**
34117
34032
  * Unique identifier of this recorded audit event.
@@ -38918,6 +38833,14 @@ export type MediaGenerationCapabilityModel = {
38918
38833
  * What Praxis charges for this model on this type, or null when the catalogue carries no rate for it. Null is not free: it means no price is published, and the actual charge is recorded on the Job when it runs.
38919
38834
  */
38920
38835
  price?: MediaGenerationCapabilityPrice | null;
38836
+ /**
38837
+ * Speech models the platform publishes voices for only: the voice a speech request of this model uses when it omits voice. Absent when the platform publishes no voice list for the model, in which case voice is required.
38838
+ */
38839
+ default_voice?: string;
38840
+ /**
38841
+ * 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.
38842
+ */
38843
+ voices?: Array<MediaSpeechVoice>;
38921
38844
  };
38922
38845
  /**
38923
38846
  * Auto-resume enabled flag for paused sandboxes. Default false.
@@ -40366,6 +40289,31 @@ export type MediaGenerationCapabilityPrice = {
40366
40289
  [key: string]: string;
40367
40290
  };
40368
40291
  };
40292
+ /**
40293
+ * One voice a speech model accepts, with the words a caller needs to choose it. Cloning a voice from recordings is not available yet, so these platform voices are the only ones a speech request may name besides the library’s own voice materials.
40294
+ */
40295
+ export type MediaSpeechVoice = {
40296
+ /**
40297
+ * Voice identifier, passed back unchanged as voice on a speech request.
40298
+ */
40299
+ id: string;
40300
+ /**
40301
+ * Name to show a person, such as 云舟 2.0.
40302
+ */
40303
+ name: string;
40304
+ /**
40305
+ * Voice gender, for picking a voice by description ("a gentle female voice") rather than by identifier.
40306
+ */
40307
+ gender: 'female' | 'male';
40308
+ /**
40309
+ * Language or language pair the voice speaks, for example 中文 or 中英双语.
40310
+ */
40311
+ language: string;
40312
+ /**
40313
+ * How the voice sounds, for example 柔和甜润 or 阳光正气; the shortest way to match a described tone to a real voice.
40314
+ */
40315
+ style: string;
40316
+ };
40369
40317
  export type SandboxSandboxIamToken = {
40370
40318
  /**
40371
40319
  * Audience of the workload token, stored exactly as provided.
@@ -42015,6 +41963,18 @@ export type DevopsFlagEnvironmentPath = string;
42015
41963
  * The progressive rollout identifier returned by the progressive rollout create answer.
42016
41964
  */
42017
41965
  export type DevopsProgressiveRolloutIdPath = string;
41966
+ /**
41967
+ * Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list.
41968
+ */
41969
+ export type DevopsEnvironmentPath = string;
41970
+ /**
41971
+ * The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology.
41972
+ */
41973
+ export type DevopsTargetPath = string;
41974
+ /**
41975
+ * 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.
41976
+ */
41977
+ export type DevopsLockId = string;
42018
41978
  /**
42019
41979
  * A type name from types.list, with its dots preserved — a display label is not accepted.
42020
41980
  */
@@ -42132,7 +42092,7 @@ export type StudioThemePath = string;
42132
42092
  */
42133
42093
  export type StudioRenditionPath = string;
42134
42094
  /**
42135
- * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed.
42095
+ * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list.
42136
42096
  */
42137
42097
  export type StudioReviewPath = string;
42138
42098
  /**
@@ -42140,11 +42100,7 @@ export type StudioReviewPath = string;
42140
42100
  */
42141
42101
  export type StudioReviewView = 'full' | 'audit';
42142
42102
  /**
42143
- * Reviewer kind to filter by: expert draws reviewers that write a scored report, audience draws reviewers that fill a screening card. Omit it to list both kinds together.
42144
- */
42145
- export type StudioReviewerKind = 'expert' | 'audience';
42146
- /**
42147
- * Reviewer being addressed, by the agent value the reviewer list returns for it; a reviewer is an agent of this organization's reviewer library, so it has no other address.
42103
+ * Reviewer being addressed, by the agent value this work's reviewer list returns for it; a reviewer is a member of one work's roster, so it has no address outside that work.
42148
42104
  */
42149
42105
  export type StudioReviewerPath = string;
42150
42106
  export type ApplyAgentVersionData = {
@@ -46295,7 +46251,11 @@ export type ComputersRetrieveResponses = {
46295
46251
  */
46296
46252
  archived_at: string | null;
46297
46253
  /**
46298
- * How the computer is backed: a virtual file store or a real sandbox.
46254
+ * Kind of machine backing this computer: light is the lightweight computer, full is a full sandbox with programs, background processes and media.
46255
+ */
46256
+ machine: 'light' | 'full';
46257
+ /**
46258
+ * Deprecated: use machine instead (light = virtual, full = sandbox). Kept for compatibility.
46299
46259
  */
46300
46260
  implementation: 'virtual' | 'sandbox';
46301
46261
  /**
@@ -83170,6 +83130,264 @@ export type DevopsProgressiveRolloutsRollbackResponses = {
83170
83130
  200: DevopsProgressiveRollout;
83171
83131
  };
83172
83132
  export type DevopsProgressiveRolloutsRollbackResponse = DevopsProgressiveRolloutsRollbackResponses[keyof DevopsProgressiveRolloutsRollbackResponses];
83133
+ export type DevopsTofuStateDeleteData = {
83134
+ body?: never;
83135
+ path: {
83136
+ /**
83137
+ * Identifies the project whose data you are reading, from the project list or create answer.
83138
+ */
83139
+ project: string;
83140
+ /**
83141
+ * Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list.
83142
+ */
83143
+ environment: string;
83144
+ /**
83145
+ * The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology.
83146
+ */
83147
+ target: string;
83148
+ };
83149
+ query?: {
83150
+ /**
83151
+ * 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.
83152
+ */
83153
+ ID?: string;
83154
+ };
83155
+ url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state';
83156
+ };
83157
+ export type DevopsTofuStateDeleteErrors = {
83158
+ /**
83159
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83160
+ */
83161
+ 401: DevopsDevOpsError;
83162
+ /**
83163
+ * NOT_FOUND means the project or environment does not exist for this organization, or, on a read, that the target has no state yet. Nothing is revealed about another organization's projects. OpenTofu reads a missing state as empty.
83164
+ */
83165
+ 404: DevopsDevOpsError;
83166
+ /**
83167
+ * LOCK_CONFLICT means the state is locked by another holder or the ID names a lock that is not held; STALE_SERIAL means the write is older than the stored state of the same lineage. Nothing changed; re-run the deploy so OpenTofu takes the lock and reads the current state.
83168
+ */
83169
+ 409: DevopsDevOpsError;
83170
+ /**
83171
+ * 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.
83172
+ */
83173
+ 500: DevopsDevOpsError;
83174
+ };
83175
+ export type DevopsTofuStateDeleteError = DevopsTofuStateDeleteErrors[keyof DevopsTofuStateDeleteErrors];
83176
+ export type DevopsTofuStateDeleteResponses = {
83177
+ /**
83178
+ * The current state is gone; the kept versions remain.
83179
+ */
83180
+ 200: unknown;
83181
+ };
83182
+ export type DevopsTofuStateGetData = {
83183
+ body?: never;
83184
+ path: {
83185
+ /**
83186
+ * Identifies the project whose data you are reading, from the project list or create answer.
83187
+ */
83188
+ project: string;
83189
+ /**
83190
+ * Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list.
83191
+ */
83192
+ environment: string;
83193
+ /**
83194
+ * The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology.
83195
+ */
83196
+ target: string;
83197
+ };
83198
+ query?: never;
83199
+ url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state';
83200
+ };
83201
+ export type DevopsTofuStateGetErrors = {
83202
+ /**
83203
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83204
+ */
83205
+ 401: DevopsDevOpsError;
83206
+ /**
83207
+ * NOT_FOUND means the project or environment does not exist for this organization, or, on a read, that the target has no state yet. Nothing is revealed about another organization's projects. OpenTofu reads a missing state as empty.
83208
+ */
83209
+ 404: DevopsDevOpsError;
83210
+ /**
83211
+ * 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.
83212
+ */
83213
+ 500: DevopsDevOpsError;
83214
+ };
83215
+ export type DevopsTofuStateGetError = DevopsTofuStateGetErrors[keyof DevopsTofuStateGetErrors];
83216
+ export type DevopsTofuStateGetResponses = {
83217
+ /**
83218
+ * The current state document, byte for byte as the last write stored it.
83219
+ */
83220
+ 200: DevopsTofuState;
83221
+ };
83222
+ export type DevopsTofuStateGetResponse = DevopsTofuStateGetResponses[keyof DevopsTofuStateGetResponses];
83223
+ export type DevopsTofuStateWriteData = {
83224
+ /**
83225
+ * The OpenTofu state document; its serial and lineage fields are required.
83226
+ */
83227
+ body: DevopsTofuState;
83228
+ path: {
83229
+ /**
83230
+ * Identifies the project whose data you are reading, from the project list or create answer.
83231
+ */
83232
+ project: string;
83233
+ /**
83234
+ * Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list.
83235
+ */
83236
+ environment: string;
83237
+ /**
83238
+ * The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology.
83239
+ */
83240
+ target: string;
83241
+ };
83242
+ query?: {
83243
+ /**
83244
+ * 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.
83245
+ */
83246
+ ID?: string;
83247
+ };
83248
+ url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state';
83249
+ };
83250
+ export type DevopsTofuStateWriteErrors = {
83251
+ /**
83252
+ * 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.
83253
+ */
83254
+ 400: DevopsDevOpsError;
83255
+ /**
83256
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83257
+ */
83258
+ 401: DevopsDevOpsError;
83259
+ /**
83260
+ * NOT_FOUND means the project or environment does not exist for this organization, or, on a read, that the target has no state yet. Nothing is revealed about another organization's projects. OpenTofu reads a missing state as empty.
83261
+ */
83262
+ 404: DevopsDevOpsError;
83263
+ /**
83264
+ * LOCK_CONFLICT means the state is locked by another holder or the ID names a lock that is not held; STALE_SERIAL means the write is older than the stored state of the same lineage. Nothing changed; re-run the deploy so OpenTofu takes the lock and reads the current state.
83265
+ */
83266
+ 409: DevopsDevOpsError;
83267
+ /**
83268
+ * PAYLOAD_TOO_LARGE means the state document is over 1 MiB; split the target's resources so each state stays smaller. Nothing was stored.
83269
+ */
83270
+ 413: DevopsDevOpsError;
83271
+ /**
83272
+ * 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.
83273
+ */
83274
+ 500: DevopsDevOpsError;
83275
+ };
83276
+ export type DevopsTofuStateWriteError = DevopsTofuStateWriteErrors[keyof DevopsTofuStateWriteErrors];
83277
+ export type DevopsTofuStateWriteResponses = {
83278
+ /**
83279
+ * The state was stored and a version of it was kept.
83280
+ */
83281
+ 200: unknown;
83282
+ };
83283
+ export type DevopsTofuStateUnlockData = {
83284
+ /**
83285
+ * The lock info OpenTofu sends; only ID is read.
83286
+ */
83287
+ body?: DevopsTofuLockInfo;
83288
+ path: {
83289
+ /**
83290
+ * Identifies the project whose data you are reading, from the project list or create answer.
83291
+ */
83292
+ project: string;
83293
+ /**
83294
+ * Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list.
83295
+ */
83296
+ environment: string;
83297
+ /**
83298
+ * The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology.
83299
+ */
83300
+ target: string;
83301
+ };
83302
+ query?: {
83303
+ /**
83304
+ * 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.
83305
+ */
83306
+ ID?: string;
83307
+ };
83308
+ url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock';
83309
+ };
83310
+ export type DevopsTofuStateUnlockErrors = {
83311
+ /**
83312
+ * 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.
83313
+ */
83314
+ 400: DevopsDevOpsError;
83315
+ /**
83316
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83317
+ */
83318
+ 401: DevopsDevOpsError;
83319
+ /**
83320
+ * NOT_FOUND means the project or environment does not exist for this organization, or, on a read, that the target has no state yet. Nothing is revealed about another organization's projects. OpenTofu reads a missing state as empty.
83321
+ */
83322
+ 404: DevopsDevOpsError;
83323
+ /**
83324
+ * LOCK_CONFLICT means the state is locked by another holder or the ID names a lock that is not held; STALE_SERIAL means the write is older than the stored state of the same lineage. Nothing changed; re-run the deploy so OpenTofu takes the lock and reads the current state.
83325
+ */
83326
+ 409: DevopsDevOpsError;
83327
+ /**
83328
+ * 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.
83329
+ */
83330
+ 500: DevopsDevOpsError;
83331
+ };
83332
+ export type DevopsTofuStateUnlockError = DevopsTofuStateUnlockErrors[keyof DevopsTofuStateUnlockErrors];
83333
+ export type DevopsTofuStateUnlockResponses = {
83334
+ /**
83335
+ * The lock is released, or was not held.
83336
+ */
83337
+ 200: unknown;
83338
+ };
83339
+ export type DevopsTofuStateLockData = {
83340
+ /**
83341
+ * The lock info OpenTofu sends; ID is required and Who names the holder.
83342
+ */
83343
+ body: DevopsTofuLockInfo;
83344
+ path: {
83345
+ /**
83346
+ * Identifies the project whose data you are reading, from the project list or create answer.
83347
+ */
83348
+ project: string;
83349
+ /**
83350
+ * Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list.
83351
+ */
83352
+ environment: string;
83353
+ /**
83354
+ * The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology.
83355
+ */
83356
+ target: string;
83357
+ };
83358
+ query?: never;
83359
+ url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock';
83360
+ };
83361
+ export type DevopsTofuStateLockErrors = {
83362
+ /**
83363
+ * 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.
83364
+ */
83365
+ 400: DevopsDevOpsError;
83366
+ /**
83367
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
83368
+ */
83369
+ 401: DevopsDevOpsError;
83370
+ /**
83371
+ * NOT_FOUND means the project or environment does not exist for this organization, or, on a read, that the target has no state yet. Nothing is revealed about another organization's projects. OpenTofu reads a missing state as empty.
83372
+ */
83373
+ 404: DevopsDevOpsError;
83374
+ /**
83375
+ * LOCKED means another holder has the lock; the body is that holder's lock info. Nothing changed.
83376
+ */
83377
+ 423: DevopsTofuLockInfo;
83378
+ /**
83379
+ * 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.
83380
+ */
83381
+ 500: DevopsDevOpsError;
83382
+ };
83383
+ export type DevopsTofuStateLockError = DevopsTofuStateLockErrors[keyof DevopsTofuStateLockErrors];
83384
+ export type DevopsTofuStateLockResponses = {
83385
+ /**
83386
+ * The lock is yours; the answer repeats the lock info.
83387
+ */
83388
+ 200: DevopsTofuLockInfo;
83389
+ };
83390
+ export type DevopsTofuStateLockResponse = DevopsTofuStateLockResponses[keyof DevopsTofuStateLockResponses];
83173
83391
  export type KnowledgeListVectorStoresData = {
83174
83392
  body?: never;
83175
83393
  path?: never;
@@ -87497,23 +87715,23 @@ export type MediaCreateSpeechData = {
87497
87715
  */
87498
87716
  input: string;
87499
87717
  /**
87500
- * Voice to speak with: either a platform voice name, or the id of a voice material of this library (voice_id from voice creation or listing). Naming a voice material speaks with that cloned voice, and the first synthesis after the material is created clones it on demand if the supplier does not hold it yet; a recording that is not a voice material of this library is passed to the provider as a platform voice name, and its own verdict comes back.
87718
+ * Voice to synthesize with. Omit it to use the model’s default voice. The available values are the ids in the types.speech list of GET /media/v1/generation/capabilities, beside the voices of the model you are using, plus a voice material id of this same library. A voice that is neither is refused with INVALID_PARAMS before any job is created, so a wrong name costs nothing — read the capabilities first instead of guessing. Example ids for the platform speech model: zh_female_vv_uranus_bigtts (the default), zh_female_wenroumama_uranus_bigtts (a gentle female voice), zh_male_m191_uranus_bigtts. OpenAI voice names such as alloy are not valid here.
87501
87719
  */
87502
- voice: string;
87720
+ voice?: string;
87503
87721
  /**
87504
- * Emotion and style guidance for the synthesized speech; refused as OPERATION_NOT_SUPPORTED because the speech lane has no equivalent field.
87722
+ * Emotion and style guidance for the synthesized speech.
87505
87723
  */
87506
87724
  instructions?: string;
87507
87725
  /**
87508
- * Speaking-rate multiplier; the provider’s own span decides, and a value outside it is refused by the provider.
87726
+ * Speaking-rate multiplier; 1 is the model default.
87509
87727
  */
87510
87728
  speed?: number;
87511
87729
  /**
87512
- * Audio encoding of the synthesized speech; defaults to mp3. A text long enough to need several segments accepts mp3 or pcm only, because those concatenate head to tail.
87730
+ * Audio encoding of the synthesized speech.
87513
87731
  */
87514
87732
  response_format?: 'mp3' | 'wav' | 'opus' | 'aac' | 'flac' | 'pcm';
87515
87733
  /**
87516
- * Spoken language; refused as OPERATION_NOT_SUPPORTED because the voice decides it.
87734
+ * Language of the text, when the voice supports several.
87517
87735
  */
87518
87736
  language?: string;
87519
87737
  };
@@ -87534,7 +87752,7 @@ export type MediaCreateSpeechData = {
87534
87752
  };
87535
87753
  export type MediaCreateSpeechErrors = {
87536
87754
  /**
87537
- * OPERATION_NOT_SUPPORTED: instructions or language was sent, or a response_format other than mp3 or pcm was named for a text long enough to need several segments. INVALID_PARAMS: input or voice is missing, input has no speakable text, voice is blank, speed is not a number, or the text needs more than 50 segments. Correct the reported field, or split a very long text into several requests.
87755
+ * OPERATION_NOT_SUPPORTED: instructions or language was sent, a response_format other than mp3 or pcm was named for a text long enough to need several segments. INVALID_PARAMS: input or voice is missing, input has no speakable text, voice is blank, speed is not a number, or the text needs more than 50 segments. Correct the reported field, or split a very long text into several requests.
87538
87756
  */
87539
87757
  400: MediaMediaError;
87540
87758
  /**
@@ -87590,428 +87808,6 @@ export type MediaCreateSpeechResponses = {
87590
87808
  202: MediaJob;
87591
87809
  };
87592
87810
  export type MediaCreateSpeechResponse = MediaCreateSpeechResponses[keyof MediaCreateSpeechResponses];
87593
- export type MediaCreateVoiceConsentData = {
87594
- /**
87595
- * Record a speaker’s authorisation to clone their voice into this library. The statement the speaker read must already be uploaded as a recording; the answer is the consent id the voice creation carries.
87596
- */
87597
- body: {
87598
- /**
87599
- * Platform file identifier beginning with file- of the recording the statement was read into. It must be a recording the file service can type (mp3, wav, ogg, m4a, aac or pcm); a document pasted here is refused with INVALID_PARAMS, because a consent that looked valid here would only fail at the clone. The file must belong to this organization.
87600
- */
87601
- file_id: string;
87602
- /**
87603
- * Name of the person who gave the authorisation, recorded as written on the statement and shown wherever the consent is cited.
87604
- */
87605
- speaker_name: string;
87606
- /**
87607
- * Language tag in BCP-47 form, such as zh-CN or en-US.
87608
- */
87609
- language: string;
87610
- };
87611
- path: {
87612
- /**
87613
- * Library ID returned by creation.
87614
- */
87615
- library_id: string;
87616
- };
87617
- query?: never;
87618
- url: '/media/v1/libraries/{library_id}/voice_consents';
87619
- };
87620
- export type MediaCreateVoiceConsentErrors = {
87621
- /**
87622
- * INVALID_PARAMS: file_id, speaker_name or language is missing, or the file named by file_id is not a recording the file service can type — a consent recorded into a document would authorise a clone of nothing, so it is refused here instead of at the clone. Upload the statement as mp3, wav, ogg, m4a, aac or pcm and send its file_id.
87623
- */
87624
- 400: MediaMediaError;
87625
- /**
87626
- * Request failed; see the error code reference.
87627
- */
87628
- 402: MediaMediaError;
87629
- /**
87630
- * BINDING_READ_ONLY: this credential binds the library read-only, so no consent can be recorded; use a write-capable binding.
87631
- */
87632
- 403: MediaMediaError;
87633
- /**
87634
- * FETCH_FAILED: the file named by file_id does not exist in this organization; upload the recording first and use the file identifier the upload returned. LIBRARY_NOT_FOUND: the addressed library was not found or belongs to another organization; verify the identifier with libraries, or address the organization default library as default.
87635
- */
87636
- 404: MediaMediaError;
87637
- /**
87638
- * Request failed; see the error code reference.
87639
- */
87640
- 409: MediaMediaError;
87641
- /**
87642
- * The file exceeds an input limit; provide a smaller source file.
87643
- */
87644
- 413: MediaMediaError;
87645
- /**
87646
- * This media format is unsupported; provide a supported format.
87647
- */
87648
- 415: MediaMediaError;
87649
- /**
87650
- * Request failed; see the error code reference.
87651
- */
87652
- 422: MediaMediaError;
87653
- /**
87654
- * A rate limit was reached; wait before retrying.
87655
- */
87656
- 429: MediaMediaError;
87657
- /**
87658
- * The requested operation is unsupported; choose a supported method.
87659
- */
87660
- 501: MediaMediaError;
87661
- /**
87662
- * Request failed; see the error code reference.
87663
- */
87664
- 502: MediaMediaError;
87665
- /**
87666
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
87667
- */
87668
- 503: MediaMediaError;
87669
- };
87670
- export type MediaCreateVoiceConsentError = MediaCreateVoiceConsentErrors[keyof MediaCreateVoiceConsentErrors];
87671
- export type MediaCreateVoiceConsentResponses = {
87672
- /**
87673
- * Successful response.
87674
- */
87675
- 200: MediaVoiceConsent;
87676
- };
87677
- export type MediaCreateVoiceConsentResponse = MediaCreateVoiceConsentResponses[keyof MediaCreateVoiceConsentResponses];
87678
- export type MediaListVoicesData = {
87679
- body?: never;
87680
- path: {
87681
- /**
87682
- * Library ID returned by creation.
87683
- */
87684
- library_id: string;
87685
- };
87686
- query?: {
87687
- /**
87688
- * Cursor from the previous next_cursor.
87689
- */
87690
- cursor?: string;
87691
- /**
87692
- * Maximum voices in this page, from 1 through 200; defaults to 50. Continue with the next_cursor from the previous response and keep the same library.
87693
- */
87694
- limit?: number;
87695
- };
87696
- url: '/media/v1/libraries/{library_id}/voices';
87697
- };
87698
- export type MediaListVoicesErrors = {
87699
- /**
87700
- * INVALID_PARAMS: cursor is not a cursor this collection issued, or limit is outside 1 through 200. Continue with the next_cursor from the previous response and keep the same library.
87701
- */
87702
- 400: MediaMediaError;
87703
- /**
87704
- * Request failed; see the error code reference.
87705
- */
87706
- 402: MediaMediaError;
87707
- /**
87708
- * This credential has read-only access to the library; use a write-capable binding for mutations.
87709
- */
87710
- 403: MediaMediaError;
87711
- /**
87712
- * LIBRARY_NOT_FOUND: the addressed library was not found or belongs to another organization; verify the identifier with libraries, or address the organization default library as default.
87713
- */
87714
- 404: MediaMediaError;
87715
- /**
87716
- * Request failed; see the error code reference.
87717
- */
87718
- 409: MediaMediaError;
87719
- /**
87720
- * The file exceeds an input limit; provide a smaller source file.
87721
- */
87722
- 413: MediaMediaError;
87723
- /**
87724
- * This media format is unsupported; provide a supported format.
87725
- */
87726
- 415: MediaMediaError;
87727
- /**
87728
- * Request failed; see the error code reference.
87729
- */
87730
- 422: MediaMediaError;
87731
- /**
87732
- * A rate limit was reached; wait before retrying.
87733
- */
87734
- 429: MediaMediaError;
87735
- /**
87736
- * The requested operation is unsupported; choose a supported method.
87737
- */
87738
- 501: MediaMediaError;
87739
- /**
87740
- * Request failed; see the error code reference.
87741
- */
87742
- 502: MediaMediaError;
87743
- /**
87744
- * CAPACITY or UPSTREAM_FAILED: the library is temporarily unavailable and nothing was changed by this request. Retry with backoff; a page that already answered is still valid, so continue from its next_cursor rather than starting again.
87745
- */
87746
- 503: MediaMediaError;
87747
- };
87748
- export type MediaListVoicesError = MediaListVoicesErrors[keyof MediaListVoicesErrors];
87749
- export type MediaListVoicesResponses = {
87750
- /**
87751
- * Successful response.
87752
- */
87753
- 200: MediaVoicePage;
87754
- };
87755
- export type MediaListVoicesResponse = MediaListVoicesResponses[keyof MediaListVoicesResponses];
87756
- export type MediaCreateVoiceData = {
87757
- /**
87758
- * Clone a voice from recordings of a consenting speaker and keep it as a voice material of this library. The response is 202 with a queued Job; the material is listed and readable from the moment this call answers, and the clone runs asynchronously.
87759
- */
87760
- body: {
87761
- /**
87762
- * Display name of the voice material, shown wherever a voice is chosen; it may be changed later through the asset update.
87763
- */
87764
- name: string;
87765
- /**
87766
- * Recordings the clone is made from, in order. The first is the one cloned and decides the material’s stored audio format; each must be a recording the file service holds for this organization, and a sample that is not audio is refused before a job exists and before anything is charged.
87767
- */
87768
- samples: Array<string>;
87769
- /**
87770
- * Consent identifier beginning with vcn_, from creating a consent in this same library. A consent authorises one library and one language only: an id recorded elsewhere is answered as CONSENT_REQUIRED rather than as a foreign resource.
87771
- */
87772
- consent_id: string;
87773
- /**
87774
- * Language tag in BCP-47 form, such as zh-CN or en-US.
87775
- */
87776
- language: string;
87777
- /**
87778
- * Key-value labels for finding the material in a listing, at most 16 keys of at most 128 characters each; they travel onto usage events.
87779
- */
87780
- labels?: {
87781
- [key: string]: string;
87782
- };
87783
- /**
87784
- * Free-text note about the voice, such as its tone or intended use.
87785
- */
87786
- description?: string;
87787
- /**
87788
- * Folder the voice material is filed under; omitted files it at the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
87789
- */
87790
- asset_folder?: string;
87791
- /**
87792
- * Stable key so a retried request reuses the same clone instead of cloning and charging twice; reusing it with different content is rejected.
87793
- */
87794
- idempotency_key?: string;
87795
- };
87796
- headers?: {
87797
- /**
87798
- * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
87799
- */
87800
- 'Idempotency-Key'?: string;
87801
- };
87802
- path: {
87803
- /**
87804
- * Library ID returned by creation.
87805
- */
87806
- library_id: string;
87807
- };
87808
- query?: never;
87809
- url: '/media/v1/libraries/{library_id}/voices';
87810
- };
87811
- export type MediaCreateVoiceErrors = {
87812
- /**
87813
- * INVALID_PARAMS: name, samples, consent_id or language is missing, a sample names a file that is not a recording of a format the clone lane accepts (mp3, wav, ogg, m4a, aac or pcm), or Idempotency-Key was reused with different content. Nothing was cloned and nothing was charged. Correct the reported field and resubmit.
87814
- */
87815
- 400: MediaMediaError;
87816
- /**
87817
- * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this clone; top up and resubmit. Nothing was cloned and nothing was charged for this request.
87818
- */
87819
- 402: MediaMediaError;
87820
- /**
87821
- * CONSENT_REQUIRED: consent_id is missing, names a consent of another library, or names a language that differs from the request’s — consent_id alone is not enough, the consent must belong to this library and match the language. Record a consent in this library and send its id, or correct language. BINDING_READ_ONLY: this credential binds the library read-only, so no voice can be created; use a write-capable binding.
87822
- */
87823
- 403: MediaMediaError;
87824
- /**
87825
- * ASSET_NOT_FOUND: a sample names a file that is missing, deleted or belongs to another organization; LIBRARY_NOT_FOUND: the addressed library was not found or belongs to another organization. Verify the identifiers with libraries and file uploads, or address the organization default library as default.
87826
- */
87827
- 404: MediaMediaError;
87828
- /**
87829
- * JOB_INVALID_STATE: the clone job cannot start from its current state; start a new job rather than resuming this one.
87830
- */
87831
- 409: MediaMediaError;
87832
- /**
87833
- * The file exceeds an input limit; provide a smaller source file.
87834
- */
87835
- 413: MediaMediaError;
87836
- /**
87837
- * This media format is unsupported; provide a supported format.
87838
- */
87839
- 415: MediaMediaError;
87840
- /**
87841
- * CONTENT_REJECTED: the supplier refused the recordings under its content policy; use other recordings of the same speaker. Nothing was stored and nothing was charged for this request.
87842
- */
87843
- 422: MediaMediaError;
87844
- /**
87845
- * RATE_LIMITED: this library already has its maximum of five queued or running generation jobs, or the supplier is throttling the clone lane; Retry-After gives the seconds to wait before retrying.
87846
- */
87847
- 429: MediaMediaError;
87848
- /**
87849
- * The requested operation is unsupported; choose a supported method.
87850
- */
87851
- 501: MediaMediaError;
87852
- /**
87853
- * Request failed; see the error code reference.
87854
- */
87855
- 502: MediaMediaError;
87856
- /**
87857
- * CAPACITY or UPSTREAM_FAILED: the platform cannot start the clone right now, or the supplier is temporarily unavailable; nothing was cloned and nothing was charged. Retry with backoff. A voice the supplier is still learning is not a failure of this call: it answers 202 and reports training on providers[].state while the Job keeps polling.
87858
- */
87859
- 503: MediaMediaError;
87860
- };
87861
- export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
87862
- export type MediaCreateVoiceResponses = {
87863
- /**
87864
- * The clone job is queued and the voice material is already listed. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the material with voices.get and look at providers[].state: training while the supplier is still learning it, ready when it can be spoken with, and failed with the Job holding the reason. Speak with it by naming its id as voice at audio/speech.
87865
- */
87866
- 202: MediaJob;
87867
- };
87868
- export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
87869
- export type MediaDeleteVoiceData = {
87870
- body?: never;
87871
- path: {
87872
- /**
87873
- * Library ID returned by creation.
87874
- */
87875
- library_id: string;
87876
- /**
87877
- * Voice material identifier returned by voice creation or listing; it is the id of the library asset that carries the voice.
87878
- */
87879
- voice_id: string;
87880
- };
87881
- query?: never;
87882
- url: '/media/v1/libraries/{library_id}/voices/{voice_id}';
87883
- };
87884
- export type MediaDeleteVoiceErrors = {
87885
- /**
87886
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
87887
- */
87888
- 400: MediaMediaError;
87889
- /**
87890
- * Request failed; see the error code reference.
87891
- */
87892
- 402: MediaMediaError;
87893
- /**
87894
- * BINDING_READ_ONLY: this credential binds the library read-only, so no voice can be deleted; use a write-capable binding.
87895
- */
87896
- 403: MediaMediaError;
87897
- /**
87898
- * ASSET_NOT_FOUND: the voice id names no material of this library, the material is deleted, or it belongs to another library; verify the identifier with voices.list. A tombstone and an id that never was a voice are answered the same way, never as a hint that the voice exists elsewhere. LIBRARY_NOT_FOUND: the addressed library was not found or belongs to another organization.
87899
- */
87900
- 404: MediaMediaError;
87901
- /**
87902
- * Request failed; see the error code reference.
87903
- */
87904
- 409: MediaMediaError;
87905
- /**
87906
- * The file exceeds an input limit; provide a smaller source file.
87907
- */
87908
- 413: MediaMediaError;
87909
- /**
87910
- * This media format is unsupported; provide a supported format.
87911
- */
87912
- 415: MediaMediaError;
87913
- /**
87914
- * Request failed; see the error code reference.
87915
- */
87916
- 422: MediaMediaError;
87917
- /**
87918
- * A rate limit was reached; wait before retrying.
87919
- */
87920
- 429: MediaMediaError;
87921
- /**
87922
- * The requested operation is unsupported; choose a supported method.
87923
- */
87924
- 501: MediaMediaError;
87925
- /**
87926
- * Request failed; see the error code reference.
87927
- */
87928
- 502: MediaMediaError;
87929
- /**
87930
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
87931
- */
87932
- 503: MediaMediaError;
87933
- };
87934
- export type MediaDeleteVoiceError = MediaDeleteVoiceErrors[keyof MediaDeleteVoiceErrors];
87935
- export type MediaDeleteVoiceResponses = {
87936
- /**
87937
- * Successful response.
87938
- */
87939
- 200: MediaDeleted;
87940
- };
87941
- export type MediaDeleteVoiceResponse = MediaDeleteVoiceResponses[keyof MediaDeleteVoiceResponses];
87942
- export type MediaGetVoiceData = {
87943
- body?: never;
87944
- path: {
87945
- /**
87946
- * Library ID returned by creation.
87947
- */
87948
- library_id: string;
87949
- /**
87950
- * Voice material identifier returned by voice creation or listing; it is the id of the library asset that carries the voice.
87951
- */
87952
- voice_id: string;
87953
- };
87954
- query?: never;
87955
- url: '/media/v1/libraries/{library_id}/voices/{voice_id}';
87956
- };
87957
- export type MediaGetVoiceErrors = {
87958
- /**
87959
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
87960
- */
87961
- 400: MediaMediaError;
87962
- /**
87963
- * Request failed; see the error code reference.
87964
- */
87965
- 402: MediaMediaError;
87966
- /**
87967
- * This credential has read-only access to the library; use a write-capable binding for mutations.
87968
- */
87969
- 403: MediaMediaError;
87970
- /**
87971
- * ASSET_NOT_FOUND: the voice id names no material of this library, the material is deleted, or it belongs to another library; verify the identifier with voices.list. A tombstone and an id that never was a voice are answered the same way, never as a hint that the voice exists elsewhere. LIBRARY_NOT_FOUND: the addressed library was not found or belongs to another organization.
87972
- */
87973
- 404: MediaMediaError;
87974
- /**
87975
- * Request failed; see the error code reference.
87976
- */
87977
- 409: MediaMediaError;
87978
- /**
87979
- * The file exceeds an input limit; provide a smaller source file.
87980
- */
87981
- 413: MediaMediaError;
87982
- /**
87983
- * This media format is unsupported; provide a supported format.
87984
- */
87985
- 415: MediaMediaError;
87986
- /**
87987
- * Request failed; see the error code reference.
87988
- */
87989
- 422: MediaMediaError;
87990
- /**
87991
- * A rate limit was reached; wait before retrying.
87992
- */
87993
- 429: MediaMediaError;
87994
- /**
87995
- * The requested operation is unsupported; choose a supported method.
87996
- */
87997
- 501: MediaMediaError;
87998
- /**
87999
- * Request failed; see the error code reference.
88000
- */
88001
- 502: MediaMediaError;
88002
- /**
88003
- * CAPACITY or UPSTREAM_FAILED: the library is temporarily unavailable and nothing was changed by this request. Retry with backoff; a page that already answered is still valid, so continue from its next_cursor rather than starting again.
88004
- */
88005
- 503: MediaMediaError;
88006
- };
88007
- export type MediaGetVoiceError = MediaGetVoiceErrors[keyof MediaGetVoiceErrors];
88008
- export type MediaGetVoiceResponses = {
88009
- /**
88010
- * Successful response.
88011
- */
88012
- 200: MediaVoice;
88013
- };
88014
- export type MediaGetVoiceResponse = MediaGetVoiceResponses[keyof MediaGetVoiceResponses];
88015
87811
  export type MediaUnderstandingFailureSummaryData = {
88016
87812
  body?: never;
88017
87813
  path: {
@@ -93644,7 +93440,7 @@ export type StudioWorksReviewsCreateErrors = {
93644
93440
  */
93645
93441
  404: StudioStudioError;
93646
93442
  /**
93647
- * DRAFT_NOT_READY means the draft still has units without a body or fails a hard check, so finish it and send again. REVIEW_IN_PROGRESS means this draft already has a round running, so read that round or cancel it before sending another. REVIEW_ROUND_LIMIT means the work has used its max_rounds, so a person raises the limit in the review settings. REVIEWER_POOL_EMPTY means the reviewer library cannot fill the seats under these conditions, so a person registers reviewers or puts retired ones back.
93443
+ * DRAFT_NOT_READY means the draft still has units without a body or fails a hard check, so finish it and send again. REVIEW_IN_PROGRESS means this draft already has a round running, so read that round or cancel it before sending another. REVIEW_ROUND_LIMIT means the work has used its max_rounds, so a person raises the limit in the review settings. NO_REVIEWERS means this work's reviewer roster has nobody of the kind this round asks, so a person adds a reviewer to the work before sending it again.
93648
93444
  */
93649
93445
  409: StudioStudioError;
93650
93446
  /**
@@ -93655,7 +93451,7 @@ export type StudioWorksReviewsCreateErrors = {
93655
93451
  export type StudioWorksReviewsCreateError = StudioWorksReviewsCreateErrors[keyof StudioWorksReviewsCreateErrors];
93656
93452
  export type StudioWorksReviewsCreateResponses = {
93657
93453
  /**
93658
- * The new round in status reviewing, with its seats drawn and the reviewers asked; keep its id to read the round and to send the next one.
93454
+ * The new round in status reviewing, with the roster asked in and its seats fixed; keep its id to read the round and to send the next one.
93659
93455
  */
93660
93456
  201: StudioReview;
93661
93457
  };
@@ -93668,7 +93464,7 @@ export type StudioWorksReviewsRetrieveData = {
93668
93464
  */
93669
93465
  work: string;
93670
93466
  /**
93671
- * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed.
93467
+ * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list.
93672
93468
  */
93673
93469
  review: string;
93674
93470
  };
@@ -93706,54 +93502,6 @@ export type StudioWorksReviewsRetrieveResponses = {
93706
93502
  200: StudioReview;
93707
93503
  };
93708
93504
  export type StudioWorksReviewsRetrieveResponse = StudioWorksReviewsRetrieveResponses[keyof StudioWorksReviewsRetrieveResponses];
93709
- export type StudioWorksReviewsAppealData = {
93710
- /**
93711
- * Why the outcome is being appealed, written for the review centre to read.
93712
- */
93713
- body: StudioReviewAppealInput;
93714
- path: {
93715
- /**
93716
- * 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.
93717
- */
93718
- work: string;
93719
- /**
93720
- * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed.
93721
- */
93722
- review: string;
93723
- };
93724
- query?: never;
93725
- url: '/studio/v1/works/{work}/reviews/{review}:appeal';
93726
- };
93727
- export type StudioWorksReviewsAppealErrors = {
93728
- /**
93729
- * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
93730
- */
93731
- 400: StudioStudioError;
93732
- /**
93733
- * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
93734
- */
93735
- 401: StudioStudioError;
93736
- /**
93737
- * REVIEW_NOT_FOUND or WORK_NOT_FOUND means the round or its work is not reachable; use the rv_ identifier from the round list and the work slug, since a round of another organization answers the same way.
93738
- */
93739
- 404: StudioStudioError;
93740
- /**
93741
- * REVIEW_ALREADY_APPEALED means this round was already appealed once; every round takes at most one appeal, so read the round with the extra seat instead of appealing again, or send the next round with revision_of.
93742
- */
93743
- 409: StudioStudioError;
93744
- /**
93745
- * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
93746
- */
93747
- 500: StudioStudioError;
93748
- };
93749
- export type StudioWorksReviewsAppealError = StudioWorksReviewsAppealErrors[keyof StudioWorksReviewsAppealErrors];
93750
- export type StudioWorksReviewsAppealResponses = {
93751
- /**
93752
- * The same round with the extra seat added and status back to reviewing.
93753
- */
93754
- 200: StudioReview;
93755
- };
93756
- export type StudioWorksReviewsAppealResponse = StudioWorksReviewsAppealResponses[keyof StudioWorksReviewsAppealResponses];
93757
93505
  export type StudioWorksReviewsCancelData = {
93758
93506
  body?: never;
93759
93507
  path: {
@@ -93762,7 +93510,7 @@ export type StudioWorksReviewsCancelData = {
93762
93510
  */
93763
93511
  work: string;
93764
93512
  /**
93765
- * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list; the identifier stays the same when the round is appealed.
93513
+ * Blind review round being addressed, by its rv_ identifier from the send answer or from the round list.
93766
93514
  */
93767
93515
  review: string;
93768
93516
  };
@@ -93779,7 +93527,7 @@ export type StudioWorksReviewsCancelErrors = {
93779
93527
  */
93780
93528
  401: StudioStudioError;
93781
93529
  /**
93782
- * PERMISSION_DENIED means the caller is not a person of this organization: changing the review panel and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93530
+ * PERMISSION_DENIED means the caller is not a person of this organization: the reviewer roster, the review settings and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93783
93531
  */
93784
93532
  403: StudioStudioError;
93785
93533
  /**
@@ -93835,14 +93583,14 @@ export type StudioWorksReviewSettingsRetrieveErrors = {
93835
93583
  export type StudioWorksReviewSettingsRetrieveError = StudioWorksReviewSettingsRetrieveErrors[keyof StudioWorksReviewSettingsRetrieveErrors];
93836
93584
  export type StudioWorksReviewSettingsRetrieveResponses = {
93837
93585
  /**
93838
- * The work's review settings with their seats, maximum rounds and current revision.
93586
+ * The work's review settings with its maximum rounds and current revision.
93839
93587
  */
93840
93588
  200: StudioReviewSettings;
93841
93589
  };
93842
93590
  export type StudioWorksReviewSettingsRetrieveResponse = StudioWorksReviewSettingsRetrieveResponses[keyof StudioWorksReviewSettingsRetrieveResponses];
93843
93591
  export type StudioWorksReviewSettingsUpdateData = {
93844
93592
  /**
93845
- * The settings to change: the seats, the maximum rounds, and the revision the current settings were read at.
93593
+ * The settings to change: the maximum rounds, and the revision the current settings were read at.
93846
93594
  */
93847
93595
  body: StudioReviewSettingsUpdateInput;
93848
93596
  path: {
@@ -93864,7 +93612,7 @@ export type StudioWorksReviewSettingsUpdateErrors = {
93864
93612
  */
93865
93613
  401: StudioStudioError;
93866
93614
  /**
93867
- * PERMISSION_DENIED means the caller is not a person of this organization: changing the review panel and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93615
+ * PERMISSION_DENIED means the caller is not a person of this organization: the reviewer roster, the review settings and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93868
93616
  */
93869
93617
  403: StudioStudioError;
93870
93618
  /**
@@ -93888,14 +93636,15 @@ export type StudioWorksReviewSettingsUpdateResponses = {
93888
93636
  200: StudioReviewSettings;
93889
93637
  };
93890
93638
  export type StudioWorksReviewSettingsUpdateResponse = StudioWorksReviewSettingsUpdateResponses[keyof StudioWorksReviewSettingsUpdateResponses];
93891
- export type StudioReviewersListData = {
93639
+ export type StudioWorksReviewersListData = {
93892
93640
  body?: never;
93893
- path?: never;
93894
- query?: {
93641
+ path: {
93895
93642
  /**
93896
- * Reviewer kind to filter by: expert draws reviewers that write a scored report, audience draws reviewers that fill a screening card. Omit it to list both kinds together.
93643
+ * 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.
93897
93644
  */
93898
- kind?: 'expert' | 'audience';
93645
+ work: string;
93646
+ };
93647
+ query?: {
93899
93648
  /**
93900
93649
  * How many items this page returns, 1 to 100; omitted uses the service default. Treat the answer as one page, not the whole set, and keep following next_page_token while it is present.
93901
93650
  */
@@ -93905,9 +93654,9 @@ export type StudioReviewersListData = {
93905
93654
  */
93906
93655
  page_token?: string;
93907
93656
  };
93908
- url: '/studio/v1/reviewers';
93657
+ url: '/studio/v1/works/{work}/reviewers';
93909
93658
  };
93910
- export type StudioReviewersListErrors = {
93659
+ export type StudioWorksReviewersListErrors = {
93911
93660
  /**
93912
93661
  * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
93913
93662
  */
@@ -93916,34 +93665,135 @@ export type StudioReviewersListErrors = {
93916
93665
  * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
93917
93666
  */
93918
93667
  401: StudioStudioError;
93668
+ /**
93669
+ * WORK_NOT_FOUND means no work in this organization matches that slug or identifier; use the value from the work list, or resolve a loose name first.
93670
+ */
93671
+ 404: StudioStudioError;
93919
93672
  /**
93920
93673
  * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
93921
93674
  */
93922
93675
  500: StudioStudioError;
93923
93676
  };
93924
- export type StudioReviewersListError = StudioReviewersListErrors[keyof StudioReviewersListErrors];
93925
- export type StudioReviewersListResponses = {
93677
+ export type StudioWorksReviewersListError = StudioWorksReviewersListErrors[keyof StudioWorksReviewersListErrors];
93678
+ export type StudioWorksReviewersListResponses = {
93926
93679
  /**
93927
- * One page of reviewers with their kinds, tags and active state, and the cursor for the next page.
93680
+ * One page of this work's reviewers with their kinds and display names, and the cursor for the next page.
93928
93681
  */
93929
93682
  200: StudioReviewerPage;
93930
93683
  };
93931
- export type StudioReviewersListResponse = StudioReviewersListResponses[keyof StudioReviewersListResponses];
93932
- export type StudioReviewersUpdateData = {
93684
+ export type StudioWorksReviewersListResponse = StudioWorksReviewersListResponses[keyof StudioWorksReviewersListResponses];
93685
+ export type StudioWorksReviewersCreateData = {
93933
93686
  /**
93934
- * The reviewer's new state in the draw.
93687
+ * The reviewer to add: the agent and the kind it reviews as on this roster.
93688
+ */
93689
+ body: StudioReviewerCreateInput;
93690
+ path: {
93691
+ /**
93692
+ * 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.
93693
+ */
93694
+ work: string;
93695
+ };
93696
+ query?: never;
93697
+ url: '/studio/v1/works/{work}/reviewers';
93698
+ };
93699
+ export type StudioWorksReviewersCreateErrors = {
93700
+ /**
93701
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
93702
+ */
93703
+ 400: StudioStudioError;
93704
+ /**
93705
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
93706
+ */
93707
+ 401: StudioStudioError;
93708
+ /**
93709
+ * PERMISSION_DENIED means the caller is not a person of this organization: the reviewer roster, the review settings and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93710
+ */
93711
+ 403: StudioStudioError;
93712
+ /**
93713
+ * WORK_NOT_FOUND means no work in this organization matches that slug or identifier; use the value from the work list, or resolve a loose name first.
93714
+ */
93715
+ 404: StudioStudioError;
93716
+ /**
93717
+ * REVIEWER_NOT_SERVICE_AGENT means that agent is not a service agent of this organization, so it cannot review; add one of the organization's service agents instead. REVIEWER_ALREADY_ADDED means the agent is already on this work's roster, so change its kind with the update operation rather than adding it again.
93718
+ */
93719
+ 409: StudioStudioError;
93720
+ /**
93721
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
93722
+ */
93723
+ 500: StudioStudioError;
93724
+ };
93725
+ export type StudioWorksReviewersCreateError = StudioWorksReviewersCreateErrors[keyof StudioWorksReviewersCreateErrors];
93726
+ export type StudioWorksReviewersCreateResponses = {
93727
+ /**
93728
+ * The reviewer as it now stands on the roster, with its display name.
93729
+ */
93730
+ 201: StudioReviewer;
93731
+ };
93732
+ export type StudioWorksReviewersCreateResponse = StudioWorksReviewersCreateResponses[keyof StudioWorksReviewersCreateResponses];
93733
+ export type StudioWorksReviewersDeleteData = {
93734
+ body?: never;
93735
+ path: {
93736
+ /**
93737
+ * 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.
93738
+ */
93739
+ work: string;
93740
+ /**
93741
+ * Reviewer being addressed, by the agent value this work's reviewer list returns for it; a reviewer is a member of one work's roster, so it has no address outside that work.
93742
+ */
93743
+ agent: string;
93744
+ };
93745
+ query?: never;
93746
+ url: '/studio/v1/works/{work}/reviewers/{agent}';
93747
+ };
93748
+ export type StudioWorksReviewersDeleteErrors = {
93749
+ /**
93750
+ * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
93751
+ */
93752
+ 400: StudioStudioError;
93753
+ /**
93754
+ * The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
93755
+ */
93756
+ 401: StudioStudioError;
93757
+ /**
93758
+ * PERMISSION_DENIED means the caller is not a person of this organization: the reviewer roster, the review settings and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93759
+ */
93760
+ 403: StudioStudioError;
93761
+ /**
93762
+ * REVIEWER_NOT_FOUND means that agent is not on this work's reviewer roster; read the work's reviewer list and pass one of the agent values it returns, since another work's reviewer answers the same way.
93763
+ */
93764
+ 404: StudioStudioError;
93765
+ /**
93766
+ * INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
93767
+ */
93768
+ 500: StudioStudioError;
93769
+ };
93770
+ export type StudioWorksReviewersDeleteError = StudioWorksReviewersDeleteErrors[keyof StudioWorksReviewersDeleteErrors];
93771
+ export type StudioWorksReviewersDeleteResponses = {
93772
+ /**
93773
+ * The reviewer is off the roster; rounds already sent are unchanged.
93774
+ */
93775
+ 200: StudioDeleted;
93776
+ };
93777
+ export type StudioWorksReviewersDeleteResponse = StudioWorksReviewersDeleteResponses[keyof StudioWorksReviewersDeleteResponses];
93778
+ export type StudioWorksReviewersUpdateData = {
93779
+ /**
93780
+ * The kind this reviewer should review as from now on.
93935
93781
  */
93936
93782
  body: StudioReviewerUpdateInput;
93937
93783
  path: {
93938
93784
  /**
93939
- * Reviewer being addressed, by the agent value the reviewer list returns for it; a reviewer is an agent of this organization's reviewer library, so it has no other address.
93785
+ * 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.
93786
+ */
93787
+ work: string;
93788
+ /**
93789
+ * Reviewer being addressed, by the agent value this work's reviewer list returns for it; a reviewer is a member of one work's roster, so it has no address outside that work.
93940
93790
  */
93941
93791
  agent: string;
93942
93792
  };
93943
93793
  query?: never;
93944
- url: '/studio/v1/reviewers/{agent}';
93794
+ url: '/studio/v1/works/{work}/reviewers/{agent}';
93945
93795
  };
93946
- export type StudioReviewersUpdateErrors = {
93796
+ export type StudioWorksReviewersUpdateErrors = {
93947
93797
  /**
93948
93798
  * INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
93949
93799
  */
@@ -93953,11 +93803,11 @@ export type StudioReviewersUpdateErrors = {
93953
93803
  */
93954
93804
  401: StudioStudioError;
93955
93805
  /**
93956
- * PERMISSION_DENIED means the caller is not a person of this organization: changing the review panel and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93806
+ * PERMISSION_DENIED means the caller is not a person of this organization: the reviewer roster, the review settings and cancelling a round are the owner's decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call.
93957
93807
  */
93958
93808
  403: StudioStudioError;
93959
93809
  /**
93960
- * REVIEWER_NOT_FOUND means no reviewer of this organization has that agent value; read the reviewer list and pass one of the values it returns, since a reviewer of another organization answers the same way.
93810
+ * REVIEWER_NOT_FOUND means that agent is not on this work's reviewer roster; read the work's reviewer list and pass one of the agent values it returns, since another work's reviewer answers the same way.
93961
93811
  */
93962
93812
  404: StudioStudioError;
93963
93813
  /**
@@ -93965,14 +93815,14 @@ export type StudioReviewersUpdateErrors = {
93965
93815
  */
93966
93816
  500: StudioStudioError;
93967
93817
  };
93968
- export type StudioReviewersUpdateError = StudioReviewersUpdateErrors[keyof StudioReviewersUpdateErrors];
93969
- export type StudioReviewersUpdateResponses = {
93818
+ export type StudioWorksReviewersUpdateError = StudioWorksReviewersUpdateErrors[keyof StudioWorksReviewersUpdateErrors];
93819
+ export type StudioWorksReviewersUpdateResponses = {
93970
93820
  /**
93971
- * The reviewer with its new active state; the rest of its entry is unchanged.
93821
+ * The reviewer with its new kind; the rest of its entry is unchanged.
93972
93822
  */
93973
93823
  200: StudioReviewer;
93974
93824
  };
93975
- export type StudioReviewersUpdateResponse = StudioReviewersUpdateResponses[keyof StudioReviewersUpdateResponses];
93825
+ export type StudioWorksReviewersUpdateResponse = StudioWorksReviewersUpdateResponses[keyof StudioWorksReviewersUpdateResponses];
93976
93826
  export type VaultListVaultsData = {
93977
93827
  body?: never;
93978
93828
  path?: never;