@deepraxis/sdk 0.1.1-dev.877a000 → 0.1.1-dev.8b570e7
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.
- package/METHODS.md +31 -10
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +71 -35
- package/dist/generated/sdk.gen.js +163 -63
- package/dist/generated/types.gen.d.ts +1105 -508
- package/dist/operations.generated.js +577 -218
- package/dist/resources.generated.d.ts +19 -6
- package/dist/resources.generated.js +18 -6
- package/package.json +1 -1
|
@@ -8063,6 +8063,88 @@ export const devopsProgressiveRolloutsRollback = (options) => (options.client ??
|
|
|
8063
8063
|
...options.headers
|
|
8064
8064
|
}
|
|
8065
8065
|
});
|
|
8066
|
+
/**
|
|
8067
|
+
* Delete a target's OpenTofu state
|
|
8068
|
+
*
|
|
8069
|
+
* Delete the current OpenTofu state of one deploy target, as OpenTofu does when a workspace is deleted. The kept versions of earlier writes stay. While a lock is held the call must carry its ID, otherwise it answers 409 LOCK_CONFLICT. Deleting a state that does not exist succeeds.
|
|
8070
|
+
*/
|
|
8071
|
+
export const devopsTofuStateDelete = (options) => (options.client ?? client).delete({
|
|
8072
|
+
security: [{
|
|
8073
|
+
key: 'devops-bearerAuth',
|
|
8074
|
+
scheme: 'bearer',
|
|
8075
|
+
type: 'http'
|
|
8076
|
+
}],
|
|
8077
|
+
url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state',
|
|
8078
|
+
...options
|
|
8079
|
+
});
|
|
8080
|
+
/**
|
|
8081
|
+
* Read a target's OpenTofu state
|
|
8082
|
+
*
|
|
8083
|
+
* Read the current OpenTofu state of one deploy target in one DevOps environment. This is the read half of the OpenTofu HTTP backend that `praxis devops deploy --engine tofu` configures: OpenTofu sends HTTP Basic with any username and a Praxis API key as the password, and the route accepts the ordinary Bearer key too. The answer is the state document exactly as the last write stored it. A target never deployed in this environment answers 404, which OpenTofu reads as an empty state.
|
|
8084
|
+
*/
|
|
8085
|
+
export const devopsTofuStateGet = (options) => (options.client ?? client).get({
|
|
8086
|
+
security: [{
|
|
8087
|
+
key: 'devops-bearerAuth',
|
|
8088
|
+
scheme: 'bearer',
|
|
8089
|
+
type: 'http'
|
|
8090
|
+
}],
|
|
8091
|
+
url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state',
|
|
8092
|
+
...options
|
|
8093
|
+
});
|
|
8094
|
+
/**
|
|
8095
|
+
* Write a target's OpenTofu state
|
|
8096
|
+
*
|
|
8097
|
+
* Store a new OpenTofu state for one deploy target. OpenTofu calls this after every apply, passing the lock ID it holds as ID. Each accepted write also keeps an immutable version of that state (the latest 50 per target are kept), so a rollout's state change can be audited. A state document is at most 1 MiB. A write whose serial is lower than the stored serial of the same lineage is a stale write and answers 409 STALE_SERIAL; re-run so OpenTofu reads the newer state first.
|
|
8098
|
+
*/
|
|
8099
|
+
export const devopsTofuStateWrite = (options) => (options.client ?? client).post({
|
|
8100
|
+
security: [{
|
|
8101
|
+
key: 'devops-bearerAuth',
|
|
8102
|
+
scheme: 'bearer',
|
|
8103
|
+
type: 'http'
|
|
8104
|
+
}],
|
|
8105
|
+
url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state',
|
|
8106
|
+
...options,
|
|
8107
|
+
headers: {
|
|
8108
|
+
'Content-Type': 'application/json',
|
|
8109
|
+
...options.headers
|
|
8110
|
+
}
|
|
8111
|
+
});
|
|
8112
|
+
/**
|
|
8113
|
+
* Unlock a target's OpenTofu state
|
|
8114
|
+
*
|
|
8115
|
+
* Release the lock on one target's state; this is the DELETE that `praxis devops deploy` configures as OpenTofu's unlock_method (the default UNLOCK verb on the state path works too). The lock ID is read from the lock info body, or from the ID query value. Releasing a lock that is not held succeeds; releasing it under a different ID answers 409 LOCK_CONFLICT.
|
|
8116
|
+
*/
|
|
8117
|
+
export const devopsTofuStateUnlock = (options) => (options.client ?? client).delete({
|
|
8118
|
+
security: [{
|
|
8119
|
+
key: 'devops-bearerAuth',
|
|
8120
|
+
scheme: 'bearer',
|
|
8121
|
+
type: 'http'
|
|
8122
|
+
}],
|
|
8123
|
+
url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock',
|
|
8124
|
+
...options,
|
|
8125
|
+
headers: {
|
|
8126
|
+
'Content-Type': 'application/json',
|
|
8127
|
+
...options.headers
|
|
8128
|
+
}
|
|
8129
|
+
});
|
|
8130
|
+
/**
|
|
8131
|
+
* Lock a target's OpenTofu state
|
|
8132
|
+
*
|
|
8133
|
+
* Take the lock on one target's state before OpenTofu plans or applies; this is the POST that `praxis devops deploy` configures as OpenTofu's lock_method (the default LOCK verb on the state path works too). Exactly one holder can hold the lock. A held lock answers 423 with the holder's lock info, which names who is deploying; wait for them or, if they are gone, release it with a force-unlock using the ID in that answer.
|
|
8134
|
+
*/
|
|
8135
|
+
export const devopsTofuStateLock = (options) => (options.client ?? client).post({
|
|
8136
|
+
security: [{
|
|
8137
|
+
key: 'devops-bearerAuth',
|
|
8138
|
+
scheme: 'bearer',
|
|
8139
|
+
type: 'http'
|
|
8140
|
+
}],
|
|
8141
|
+
url: '/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock',
|
|
8142
|
+
...options,
|
|
8143
|
+
headers: {
|
|
8144
|
+
'Content-Type': 'application/json',
|
|
8145
|
+
...options.headers
|
|
8146
|
+
}
|
|
8147
|
+
});
|
|
8066
8148
|
/**
|
|
8067
8149
|
* List knowledge bases
|
|
8068
8150
|
*
|
|
@@ -8932,7 +9014,7 @@ export const mediaEditAsset = (options) => (options.client ?? client).post({
|
|
|
8932
9014
|
/**
|
|
8933
9015
|
* Create speech
|
|
8934
9016
|
*
|
|
8935
|
-
* Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak and voice is
|
|
9017
|
+
* Synthesise speech from text and store the recording straight into the library. Use library_id from creation or listing; the path segment {library_id} also accepts the literal default, which resolves to the organization’s default library before the credential check, so an agent that has never listed a library can still synthesise. input is the text to speak. voice is optional and may be omitted, in which case the model’s default voice is used; when it is given it must be one of the voices of the model being used — read them from the types.speech list of GET /media/v1/generation/capabilities, which gives each voice an id, a name, a gender, a language and a style, or pass a voice material id of this same library — and a voice that is neither is refused with INVALID_PARAMS in the voice field before any job exists, so a wrong name is free to try but reading the capabilities first is free without trying. Do not use OpenAI voice names such as alloy or aura: they are not valid here. speed is passed to the provider unchanged, and instructions and language are refused with OPERATION_NOT_SUPPORTED in this release. Cloning a voice from recordings is not available yet. The provider caps one request at a short stretch of text, so a long input is cut into segments at paragraph and sentence boundaries and synthesised in order, then joined into the single recording the library receives: nothing is spoken twice and nothing is dropped. Because the segments are joined byte for byte, a multi-segment input accepts only response_format mp3 (the default) or pcm; opus is available for a single-segment input. A speech job has one result however many segments it took. Synthesis is billed by the model usage it consumes, at the same prices as the model API, and the job records the charge in usage; a request refused before it starts costs nothing. The response is 202 with a queued Job whose type is speech and whose operation is generate; poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed, then read the produced asset from the library — the recording carries material_type audio, audio_role voice, ai_generated true, and provenance naming this job, the text spoken and the model. Send Idempotency-Key, or idempotency_key in the body, to retry without synthesising and charging twice. Example: POST /media/v1/libraries/default/audio/speech with {"input":"A red kite above a calm sea at sunrise."}, or with {"input":"A red kite above a calm sea at sunrise.","voice":"zh_female_wenroumama_uranus_bigtts"} for a gentle female voice.
|
|
8936
9018
|
*/
|
|
8937
9019
|
export const mediaCreateSpeech = (options) => (options.client ?? client).post({
|
|
8938
9020
|
security: [{
|
|
@@ -9006,7 +9088,7 @@ export const mediaCancelJob = (options) => (options.client ?? client).post({
|
|
|
9006
9088
|
/**
|
|
9007
9089
|
* Get generation capabilities
|
|
9008
9090
|
*
|
|
9009
|
-
* Read what Praxis offers for each kind of generation — image, video and speech — before asking for one. Every type answers the models available for it, the model it uses when a request names none, and what each model costs per unit; the video fields beside
|
|
9091
|
+
* Read what Praxis offers for each kind of generation — image, video and speech — before asking for one, and read a speech model’s voices here before naming one. Every type answers the models available for it, the model it uses when a request names none, and what each model costs per unit; a speech model the platform publishes voices for also carries default_voice and voices there, each voice with an id, a name, a gender, a language and a style — so a request for "a gentle female voice" is answered by matching the style and gender rather than by guessing an identifier. Pass a voice id back verbatim as voice, or omit voice to take default_voice; a voice that is neither one of those nor a voice material of the library is refused with INVALID_PARAMS before any job is created. OpenAI voice names such as alloy and aura are not valid here. The video fields beside the types keep their original meaning (intents, default model, duration and aspect-ratio limits, per-library concurrency). The models come from the platform model catalogue, and an id listed here is accepted verbatim as the model field of that type’s generation request. A video model additionally carries the modes it can be driven in and the durations, aspect ratios and resolutions the catalogue has registered for it — modes, duration_seconds, aspect_ratios and resolutions — so read them before requesting video and choose a mode and a value this model lists; an empty list means the platform has not registered that option yet, and then omit the field rather than assume a value. price.amount is a decimal string with its currency; video models that charge by resolution also carry price.by_resolution, whose amount is then the cheapest tier. A model the catalogue cannot route right now is still listed, with available false, so a caller can show it as temporarily unavailable instead of hiding it. When the catalogue cannot be read the endpoint still answers: every type comes back with an empty models list and its real default_model, and the voices a speech model carries are absent rather than empty, because the voices come from the platform and not from the catalogue. Generation is charged per unit and every output is stored in the library.
|
|
9010
9092
|
*/
|
|
9011
9093
|
export const mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
|
|
9012
9094
|
security: [{
|
|
@@ -10472,7 +10554,7 @@ export const studioWorksList = (options) => (options?.client ?? client).get({
|
|
|
10472
10554
|
/**
|
|
10473
10555
|
* Create a work with its goal
|
|
10474
10556
|
*
|
|
10475
|
-
* Create a work: one deliverable piece plus everything around it. Pass the goal the writing serves
|
|
10557
|
+
* Create a work: one deliverable piece plus everything around it. Pass the goal the writing serves: the reader, what that reader should get or do, and the one-sentence message. The work holds the goal only; the requirement for one piece (the person's text, its points, a length, banned wording) belongs to that draft and is given with the drafts create call, so a novel's plot points and length never bind the promotion derived from it. A slug is derived from the title unless you pass one. The work starts with no drafts; create the first one with the drafts create call, because the genre decides the structure. A reference library belongs to the work and is created with it, so the setting written later stays this work's own; pass based_on to start from another work and have its setting and styles copied in as your own.
|
|
10476
10558
|
*/
|
|
10477
10559
|
export const studioWorksCreate = (options) => (options.client ?? client).post({
|
|
10478
10560
|
security: [{
|
|
@@ -10549,28 +10631,6 @@ export const studioWorksUpdate = (options) => (options.client ?? client).patch({
|
|
|
10549
10631
|
...options.headers
|
|
10550
10632
|
}
|
|
10551
10633
|
});
|
|
10552
|
-
/**
|
|
10553
|
-
* Add to or correct the original brief
|
|
10554
|
-
*
|
|
10555
|
-
* Extend the original brief: append text, attach files, add points taken from an outline, edit one point, or drop a point. Points are how the software checks that every requirement landed in a written unit, so split the person's outline into points here rather than burying them in prose. The brief carries its own revision, separate from the work and from each draft.
|
|
10556
|
-
*/
|
|
10557
|
-
export const studioWorksUpdateBrief = (options) => (options.client ?? client).patch({
|
|
10558
|
-
security: [{
|
|
10559
|
-
key: 'BearerAuth',
|
|
10560
|
-
scheme: 'bearer',
|
|
10561
|
-
type: 'http'
|
|
10562
|
-
}, {
|
|
10563
|
-
key: 'ApiKeyAuth',
|
|
10564
|
-
name: 'X-API-Key',
|
|
10565
|
-
type: 'apiKey'
|
|
10566
|
-
}],
|
|
10567
|
-
url: '/studio/v1/works/{work}/brief',
|
|
10568
|
-
...options,
|
|
10569
|
-
headers: {
|
|
10570
|
-
'Content-Type': 'application/json',
|
|
10571
|
-
...options.headers
|
|
10572
|
-
}
|
|
10573
|
-
});
|
|
10574
10634
|
/**
|
|
10575
10635
|
* List the drafts a work carries
|
|
10576
10636
|
*
|
|
@@ -10651,6 +10711,28 @@ export const studioDraftsUpdate = (options) => (options.client ?? client).patch(
|
|
|
10651
10711
|
...options.headers
|
|
10652
10712
|
}
|
|
10653
10713
|
});
|
|
10714
|
+
/**
|
|
10715
|
+
* Add to or correct a draft's brief
|
|
10716
|
+
*
|
|
10717
|
+
* Extend the brief of one draft: append text, attach files, replace its constraints, add points taken from an outline, edit one point, or drop a point. The brief belongs to the draft, not the work: the length and plot points of a novel do not bind the promotion derived from it. Points are how the software checks that every requirement landed in a written unit, so split the person's outline into points here rather than burying them in prose; the constraints (a length such as 3000 字以内, banned wording) are what the length check and the context pack read. The brief carries its own revision, separate from the draft's.
|
|
10718
|
+
*/
|
|
10719
|
+
export const studioDraftsUpdateBrief = (options) => (options.client ?? client).patch({
|
|
10720
|
+
security: [{
|
|
10721
|
+
key: 'BearerAuth',
|
|
10722
|
+
scheme: 'bearer',
|
|
10723
|
+
type: 'http'
|
|
10724
|
+
}, {
|
|
10725
|
+
key: 'ApiKeyAuth',
|
|
10726
|
+
name: 'X-API-Key',
|
|
10727
|
+
type: 'apiKey'
|
|
10728
|
+
}],
|
|
10729
|
+
url: '/studio/v1/works/{work}/drafts/{draft}/brief',
|
|
10730
|
+
...options,
|
|
10731
|
+
headers: {
|
|
10732
|
+
'Content-Type': 'application/json',
|
|
10733
|
+
...options.headers
|
|
10734
|
+
}
|
|
10735
|
+
});
|
|
10654
10736
|
/**
|
|
10655
10737
|
* Read the whole unit outline as Markdown
|
|
10656
10738
|
*
|
|
@@ -10916,7 +10998,7 @@ export const studioUnitsContext = (options) => (options.client ?? client).get({
|
|
|
10916
10998
|
/**
|
|
10917
10999
|
* List the reference libraries of this organization
|
|
10918
11000
|
*
|
|
10919
|
-
* List the reference libraries this API key organization owns, each with how many entries it holds, so you can choose the one a work draws on. Continue with next_page_token until the answer stops carrying one.
|
|
11001
|
+
* List the reference libraries this API key organization owns, each with how many entries it holds, so you can choose the one a work draws on. Continue with next_page_token until the answer stops carrying one. Pass work to read one work's own library alone; leave it out for every library the organization owns.
|
|
10920
11002
|
*/
|
|
10921
11003
|
export const studioCodexesList = (options) => (options?.client ?? client).get({
|
|
10922
11004
|
security: [{
|
|
@@ -10934,7 +11016,7 @@ export const studioCodexesList = (options) => (options?.client ?? client).get({
|
|
|
10934
11016
|
/**
|
|
10935
11017
|
* Create a reference library
|
|
10936
11018
|
*
|
|
10937
|
-
* Create a reference library: a
|
|
11019
|
+
* Create a reference library: a store of the people, places, products and facts a piece draws on. Attach it to a work with the work update call, and the entries it holds then reach the context packs of that work's units. A library made this way is shared across works, which suits brand facts several pieces mention; the library a work needs for its own setting is created with the work itself, and the work list call finds it by filtering on work.
|
|
10938
11020
|
*/
|
|
10939
11021
|
export const studioCodexesCreate = (options) => (options.client ?? client).post({
|
|
10940
11022
|
security: [{
|
|
@@ -11032,7 +11114,7 @@ export const studioEntriesList = (options) => (options.client ?? client).get({
|
|
|
11032
11114
|
/**
|
|
11033
11115
|
* Add an entry to a reference library
|
|
11034
11116
|
*
|
|
11035
|
-
* Add one entry: a character, a place, a product, a source of facts. Give it the type the genre uses, the name the text will mention, and the description
|
|
11117
|
+
* Add one entry: a character, a place, a product, a source of facts. Give it the type the genre uses, the name the text will mention, and the description, notes, facts and story time that should reach a writer when it is mentioned. Attach a picture gallery when the entry should be looked at as well as read. Aliases and excluded phrases keep detection honest, so a common word inside an idiom is not mistaken for the entry. A name already used in the library is refused.
|
|
11036
11118
|
*/
|
|
11037
11119
|
export const studioEntriesCreate = (options) => (options.client ?? client).post({
|
|
11038
11120
|
security: [{
|
|
@@ -11072,7 +11154,7 @@ export const studioEntriesDelete = (options) => (options.client ?? client).delet
|
|
|
11072
11154
|
/**
|
|
11073
11155
|
* Read one reference entry
|
|
11074
11156
|
*
|
|
11075
|
-
* Read one entry in full: its description, its fact ledger, its relations to other entries, its detection settings and its
|
|
11157
|
+
* Read one entry in full: its description, its notes, its fact ledger, its relations to other entries, its story time, its detection settings and its picture gallery. Read it before changing it, because an update replaces the fields it names rather than merging them. The entry is addressed by its name in this library, or by its ent_ identifier.
|
|
11076
11158
|
*/
|
|
11077
11159
|
export const studioEntriesGet = (options) => (options.client ?? client).get({
|
|
11078
11160
|
security: [{
|
|
@@ -11090,7 +11172,7 @@ export const studioEntriesGet = (options) => (options.client ?? client).get({
|
|
|
11090
11172
|
/**
|
|
11091
11173
|
* Change what a reference entry says
|
|
11092
11174
|
*
|
|
11093
|
-
* Change one entry: its type, its name, its aliases, its description, its facts, its notes, its tracking setting, its
|
|
11175
|
+
* Change one entry: its type, its name, its aliases, its description, its facts, its notes, its story time, its tracking setting, its picture gallery or its relations. Send update_mask naming exactly the fields you change, because a field the mask leaves out keeps its value while a list field the mask names is replaced whole. Renaming an entry changes what the text has to mention for detection to find it.
|
|
11094
11176
|
*/
|
|
11095
11177
|
export const studioEntriesUpdate = (options) => (options.client ?? client).patch({
|
|
11096
11178
|
security: [{
|
|
@@ -11130,7 +11212,7 @@ export const studioStylesList = (options) => (options?.client ?? client).get({
|
|
|
11130
11212
|
/**
|
|
11131
11213
|
* Create a writing style
|
|
11132
11214
|
*
|
|
11133
|
-
* Create a style: the voice a piece is written in, held as samples rather than as adjectives. Samples matter more than a description, so paste one to five paragraphs of writing the piece should sound like, and put the words to avoid into avoid so the banned-word check uses them. Attach a style to a work, or to one draft of it, and its samples then reach every context pack.
|
|
11215
|
+
* Create a style: the voice a piece is written in, held as samples rather than as adjectives. Samples matter more than a description, so paste one to five paragraphs of writing the piece should sound like, and put the words to avoid into avoid so the banned-word check uses them. A style belongs to the work you name in work, and a work may only attach its own styles, so create the style with the work it will be used in. Attach a style to a work, or to one draft of it, and its samples then reach every context pack.
|
|
11134
11216
|
*/
|
|
11135
11217
|
export const studioStylesCreate = (options) => (options.client ?? client).post({
|
|
11136
11218
|
security: [{
|
|
@@ -11188,7 +11270,7 @@ export const studioStylesGet = (options) => (options.client ?? client).get({
|
|
|
11188
11270
|
/**
|
|
11189
11271
|
* Change a writing style
|
|
11190
11272
|
*
|
|
11191
|
-
* Change a style: its name, its description, its samples, its use and avoid lists, or its glossary. Send update_mask naming exactly the fields you change; a list the mask names is replaced whole. Adding a term to the glossary or to avoid also changes what the deterministic checks flag, so a work that uses this style sees new findings on its next check.
|
|
11273
|
+
* Change a style: its name, its description, its samples, its picture samples, its use and avoid lists, or its glossary. Send update_mask naming exactly the fields you change; a list the mask names is replaced whole. Adding a term to the glossary or to avoid also changes what the deterministic checks flag, so a work that uses this style sees new findings on its next check.
|
|
11192
11274
|
*/
|
|
11193
11275
|
export const studioStylesUpdate = (options) => (options.client ?? client).patch({
|
|
11194
11276
|
security: [{
|
|
@@ -11536,7 +11618,7 @@ export const studioRenditionsContentUrl = (options) => (options.client ?? client
|
|
|
11536
11618
|
/**
|
|
11537
11619
|
* List the blind review rounds of a work
|
|
11538
11620
|
*
|
|
11539
|
-
* List the review rounds of one work, newest round first, each with its draft, round number, status
|
|
11621
|
+
* List the review rounds of one work, newest round first, each with its draft, round number, status and decision. Pass draft to see the rounds of one draft only. Use it to find the round to read, to answer or to cancel, and to see whether the draft already has a round running before sending another: a running round answers REVIEW_IN_PROGRESS. The answer is one page; keep following next_page_token while it is present. Rounds of other organizations are not listed and a work of another organization answers WORK_NOT_FOUND.
|
|
11540
11622
|
*/
|
|
11541
11623
|
export const studioWorksReviewsList = (options) => (options.client ?? client).get({
|
|
11542
11624
|
security: [{
|
|
@@ -11554,7 +11636,7 @@ export const studioWorksReviewsList = (options) => (options.client ?? client).ge
|
|
|
11554
11636
|
/**
|
|
11555
11637
|
* Send a draft to blind review
|
|
11556
11638
|
*
|
|
11557
|
-
* Send one draft of this work to the blind review centre, which freezes the draft's content revision as it is now
|
|
11639
|
+
* Send one draft of this work to the blind review centre, which freezes the draft's content revision as it is now and asks in every reviewer on the work's roster whose kind this round asks. Use it once the draft is written; the roster decides who reviews, and the sender only ever reads labels A, B, C, never the reviewer identities. Pass mode to narrow this round to expert reviewers, to audience reviewers or to both, which the settings do not decide. From the second round pass revision_of with the previous round's rv_ id and note with the change note that answers that round point by point. The answer is the new round in status reviewing; read it again with the review read until status becomes decided and then read decision, expert_reports and screening. Billing follows the reviewers' sessions, not the frame of this call. DRAFT_NOT_READY means the draft still has units without a body or fails a hard check, so finish it first; REVIEW_IN_PROGRESS means this draft already has a round running, so wait for it to decide or cancel it; REVIEW_ROUND_LIMIT means the work reached max_rounds and a person has to raise it in the review settings; NO_REVIEWERS means the work's reviewer roster has nobody of the kind this round asks, so a person adds one to the work.
|
|
11558
11640
|
*/
|
|
11559
11641
|
export const studioWorksReviewsCreate = (options) => (options.client ?? client).post({
|
|
11560
11642
|
security: [{
|
|
@@ -11576,7 +11658,7 @@ export const studioWorksReviewsCreate = (options) => (options.client ?? client).
|
|
|
11576
11658
|
/**
|
|
11577
11659
|
* Read one blind review round
|
|
11578
11660
|
*
|
|
11579
|
-
* Read one round in the sender's view: its status, the seats as labels A, B, C with the state of each, the expert reports that have come back, the screening cards, the round decision and the audience tally. Reviewers appear only as labels; who they are is never part of this answer. Call it after sending a round and repeat while status is reviewing, because reviewers answer asynchronously and a round that is not decided yet carries fewer reports. status decided gives decision and screening; cancelled means a person stopped the round; failed means it could not be completed, for example when
|
|
11661
|
+
* Read one round in the sender's view: its status, the seats as labels A, B, C with the state of each, the expert reports that have come back, the screening cards, the round decision and the audience tally. Reviewers appear only as labels; who they are is never part of this answer. Call it after sending a round and repeat while status is reviewing, because reviewers answer asynchronously and a round that is not decided yet carries fewer reports. status decided gives decision and screening; cancelled means a person stopped the round; failed means it could not be completed, for example when no reviewer on the roster answered at all. Pass view=audit to also get the assignment record, the confidential editor notes and the reviewer sessions; that block is filled only for an organization administrator, and anyone else reads the same round without it.
|
|
11580
11662
|
*/
|
|
11581
11663
|
export const studioWorksReviewsRetrieve = (options) => (options.client ?? client).get({
|
|
11582
11664
|
security: [{
|
|
@@ -11592,11 +11674,11 @@ export const studioWorksReviewsRetrieve = (options) => (options.client ?? client
|
|
|
11592
11674
|
...options
|
|
11593
11675
|
});
|
|
11594
11676
|
/**
|
|
11595
|
-
*
|
|
11677
|
+
* Cancel a running review round
|
|
11596
11678
|
*
|
|
11597
|
-
*
|
|
11679
|
+
* Cancel a round that is still reviewing, so its reviewers are no longer waited for and the draft can be sent again. Nothing that came back is deleted: the round stays readable with status cancelled and the reports it had. Use it when the draft changed so much that the running round is no longer about the current text, or when the round was sent by mistake; a person makes this call, and an agent calling it is refused with PERMISSION_DENIED. A round that already reached a decision answers REVIEW_IN_PROGRESS, because a decided round is answered by sending the next round with revision_of rather than by cancelling it. Reviewer sessions already started keep being billed.
|
|
11598
11680
|
*/
|
|
11599
|
-
export const
|
|
11681
|
+
export const studioWorksReviewsCancel = (options) => (options.client ?? client).post({
|
|
11600
11682
|
security: [{
|
|
11601
11683
|
key: 'BearerAuth',
|
|
11602
11684
|
scheme: 'bearer',
|
|
@@ -11606,19 +11688,15 @@ export const studioWorksReviewsAppeal = (options) => (options.client ?? client).
|
|
|
11606
11688
|
name: 'X-API-Key',
|
|
11607
11689
|
type: 'apiKey'
|
|
11608
11690
|
}],
|
|
11609
|
-
url: '/studio/v1/works/{work}/reviews/{review}:
|
|
11610
|
-
...options
|
|
11611
|
-
headers: {
|
|
11612
|
-
'Content-Type': 'application/json',
|
|
11613
|
-
...options.headers
|
|
11614
|
-
}
|
|
11691
|
+
url: '/studio/v1/works/{work}/reviews/{review}:cancel',
|
|
11692
|
+
...options
|
|
11615
11693
|
});
|
|
11616
11694
|
/**
|
|
11617
|
-
*
|
|
11695
|
+
* Read the review settings of a work
|
|
11618
11696
|
*
|
|
11619
|
-
*
|
|
11697
|
+
* Read how this work is reviewed: the most rounds it may take and the revision the settings are at. Who reviews is not here but on the work's reviewer roster, which every round asks whole, and read that with the reviewer list. Read this before sending a round, because a draft past its max_rounds answers REVIEW_ROUND_LIMIT, and before changing it, because the update carries the revision it returns as its precondition. Settings are not part of the work body: they are read and written here.
|
|
11620
11698
|
*/
|
|
11621
|
-
export const
|
|
11699
|
+
export const studioWorksReviewSettingsRetrieve = (options) => (options.client ?? client).get({
|
|
11622
11700
|
security: [{
|
|
11623
11701
|
key: 'BearerAuth',
|
|
11624
11702
|
scheme: 'bearer',
|
|
@@ -11628,15 +11706,15 @@ export const studioWorksReviewsCancel = (options) => (options.client ?? client).
|
|
|
11628
11706
|
name: 'X-API-Key',
|
|
11629
11707
|
type: 'apiKey'
|
|
11630
11708
|
}],
|
|
11631
|
-
url: '/studio/v1/works/{work}/
|
|
11709
|
+
url: '/studio/v1/works/{work}/review-settings',
|
|
11632
11710
|
...options
|
|
11633
11711
|
});
|
|
11634
11712
|
/**
|
|
11635
|
-
*
|
|
11713
|
+
* Change how many rounds a work may take
|
|
11636
11714
|
*
|
|
11637
|
-
*
|
|
11715
|
+
* Change how many rounds a work may take. Send expected_revision with the revision this settings read returned, so two writers cannot overwrite each other silently; a mismatch answers REVISION_CONFLICT and the settings are unchanged. A person makes this change: an agent calling it is refused with PERMISSION_DENIED. The settings are locked while a round of this work is reviewing, which answers REVIEW_IN_PROGRESS; change them after the round decides or is cancelled. Raising max_rounds is how a draft whose rounds are used up is sent again. The changed limit applies to rounds sent from now on and never rewrites a round already sent; who reviews is on the reviewer roster, not here.
|
|
11638
11716
|
*/
|
|
11639
|
-
export const
|
|
11717
|
+
export const studioWorksReviewSettingsUpdate = (options) => (options.client ?? client).patch({
|
|
11640
11718
|
security: [{
|
|
11641
11719
|
key: 'BearerAuth',
|
|
11642
11720
|
scheme: 'bearer',
|
|
@@ -11647,14 +11725,36 @@ export const studioWorksReviewSettingsRetrieve = (options) => (options.client ??
|
|
|
11647
11725
|
type: 'apiKey'
|
|
11648
11726
|
}],
|
|
11649
11727
|
url: '/studio/v1/works/{work}/review-settings',
|
|
11728
|
+
...options,
|
|
11729
|
+
headers: {
|
|
11730
|
+
'Content-Type': 'application/json',
|
|
11731
|
+
...options.headers
|
|
11732
|
+
}
|
|
11733
|
+
});
|
|
11734
|
+
/**
|
|
11735
|
+
* List the reviewers of a work
|
|
11736
|
+
*
|
|
11737
|
+
* List the reviewers on this work's roster: every time a round of this work is sent, every reviewer on the roster whose kind the round asks for takes part, one seat each, in the order they were added, and the sender reads them as A, B, C. Each entry gives the agent id as /v1/agents returns it (agent_…), its kind on this roster and the service agent's display name. Read it before sending a round, because a roster with nobody of the asked kind answers NO_REVIEWERS; read it after to see who has been judging. A reviewer of another work or another organization is never listed, and a work of another organization answers WORK_NOT_FOUND. The answer is one page; keep following next_page_token while it is present.
|
|
11738
|
+
*/
|
|
11739
|
+
export const studioWorksReviewersList = (options) => (options.client ?? client).get({
|
|
11740
|
+
security: [{
|
|
11741
|
+
key: 'BearerAuth',
|
|
11742
|
+
scheme: 'bearer',
|
|
11743
|
+
type: 'http'
|
|
11744
|
+
}, {
|
|
11745
|
+
key: 'ApiKeyAuth',
|
|
11746
|
+
name: 'X-API-Key',
|
|
11747
|
+
type: 'apiKey'
|
|
11748
|
+
}],
|
|
11749
|
+
url: '/studio/v1/works/{work}/reviewers',
|
|
11650
11750
|
...options
|
|
11651
11751
|
});
|
|
11652
11752
|
/**
|
|
11653
|
-
*
|
|
11753
|
+
* Add a reviewer to a work
|
|
11654
11754
|
*
|
|
11655
|
-
*
|
|
11755
|
+
* Put one of this organization's service agents on the work's reviewer roster, with the kind it reviews as: expert writes a scored report, audience fills a screening card. Every round sent from now on asks every roster member of that round's kind, so add only agents that should judge every round of this work. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. Pass the agent id as /v1/agents returns it (agent_…). The agent must be a service agent of this organization: anything else, including an absent id and another organization's agent, answers REVIEWER_NOT_SERVICE_AGENT. An agent already on the roster answers REVIEWER_ALREADY_ADDED; change its kind with the update operation instead.
|
|
11656
11756
|
*/
|
|
11657
|
-
export const
|
|
11757
|
+
export const studioWorksReviewersCreate = (options) => (options.client ?? client).post({
|
|
11658
11758
|
security: [{
|
|
11659
11759
|
key: 'BearerAuth',
|
|
11660
11760
|
scheme: 'bearer',
|
|
@@ -11664,7 +11764,7 @@ export const studioWorksReviewSettingsUpdate = (options) => (options.client ?? c
|
|
|
11664
11764
|
name: 'X-API-Key',
|
|
11665
11765
|
type: 'apiKey'
|
|
11666
11766
|
}],
|
|
11667
|
-
url: '/studio/v1/works/{work}/
|
|
11767
|
+
url: '/studio/v1/works/{work}/reviewers',
|
|
11668
11768
|
...options,
|
|
11669
11769
|
headers: {
|
|
11670
11770
|
'Content-Type': 'application/json',
|
|
@@ -11672,11 +11772,11 @@ export const studioWorksReviewSettingsUpdate = (options) => (options.client ?? c
|
|
|
11672
11772
|
}
|
|
11673
11773
|
});
|
|
11674
11774
|
/**
|
|
11675
|
-
*
|
|
11775
|
+
* Remove a reviewer from a work
|
|
11676
11776
|
*
|
|
11677
|
-
*
|
|
11777
|
+
* Take one agent off the work's reviewer roster, so rounds sent from now on no longer ask it. What it has already judged is kept: the rounds it took part in stay readable with their reports,. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. An agent that is not on this work's roster answers REVIEWER_NOT_FOUND.
|
|
11678
11778
|
*/
|
|
11679
|
-
export const
|
|
11779
|
+
export const studioWorksReviewersDelete = (options) => (options.client ?? client).delete({
|
|
11680
11780
|
security: [{
|
|
11681
11781
|
key: 'BearerAuth',
|
|
11682
11782
|
scheme: 'bearer',
|
|
@@ -11686,15 +11786,15 @@ export const studioReviewersList = (options) => (options?.client ?? client).get(
|
|
|
11686
11786
|
name: 'X-API-Key',
|
|
11687
11787
|
type: 'apiKey'
|
|
11688
11788
|
}],
|
|
11689
|
-
url: '/studio/v1/reviewers',
|
|
11789
|
+
url: '/studio/v1/works/{work}/reviewers/{agent}',
|
|
11690
11790
|
...options
|
|
11691
11791
|
});
|
|
11692
11792
|
/**
|
|
11693
|
-
*
|
|
11793
|
+
* Change a reviewer's kind
|
|
11694
11794
|
*
|
|
11695
|
-
*
|
|
11795
|
+
* Change the kind one roster member reviews as: expert or audience. Use it when a reviewer should judge a different way, rather than removing it and adding it back, because the roster position it holds decides its label and is kept. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. A round already sent is not affected, because its seats were fixed when it was sent. An agent that is not on this work's roster answers REVIEWER_NOT_FOUND, which is also the answer for another work's reviewer.
|
|
11696
11796
|
*/
|
|
11697
|
-
export const
|
|
11797
|
+
export const studioWorksReviewersUpdate = (options) => (options.client ?? client).patch({
|
|
11698
11798
|
security: [{
|
|
11699
11799
|
key: 'BearerAuth',
|
|
11700
11800
|
scheme: 'bearer',
|
|
@@ -11704,7 +11804,7 @@ export const studioReviewersUpdate = (options) => (options.client ?? client).pat
|
|
|
11704
11804
|
name: 'X-API-Key',
|
|
11705
11805
|
type: 'apiKey'
|
|
11706
11806
|
}],
|
|
11707
|
-
url: '/studio/v1/reviewers/{agent}',
|
|
11807
|
+
url: '/studio/v1/works/{work}/reviewers/{agent}',
|
|
11708
11808
|
...options,
|
|
11709
11809
|
headers: {
|
|
11710
11810
|
'Content-Type': 'application/json',
|