@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.
- package/METHODS.md +30 -24
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +57 -51
- package/dist/generated/sdk.gen.js +133 -111
- package/dist/generated/types.gen.d.ts +560 -710
- package/dist/operations.generated.js +430 -334
- package/dist/resources.generated.d.ts +18 -14
- package/dist/resources.generated.js +17 -14
- 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: [{
|
|
@@ -8947,84 +9029,6 @@ export const mediaCreateSpeech = (options) => (options.client ?? client).post({
|
|
|
8947
9029
|
...options.headers
|
|
8948
9030
|
}
|
|
8949
9031
|
});
|
|
8950
|
-
/**
|
|
8951
|
-
* Create voice consent
|
|
8952
|
-
*
|
|
8953
|
-
* Record a speaker’s authorisation to clone their voice into this 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. Upload the statement the speaker read as a recording first and send its file_id — the recording must be audio the file service can type (mp3, wav, ogg, m4a, aac or pcm), because a consent recorded into a document would look valid here and only fail at the clone; the file must belong to this organization, and a file_id that names nothing here answers FETCH_FAILED. speaker_name and language are required, and language is the BCP-47 tag the statement was read in. A consent is bound to this one library and to this one language, and a voice created from it must name the same language. Making a consent is free and starts no job. The answer is the consent itself; store its id, because a consent is never listed or read back — it is reached through the id the voice records. Example: POST /media/v1/libraries/default/voice_consents with {"file_id":"file-8c2a5f41d0b34e77","speaker_name":"李静","language":"zh-CN"}.
|
|
8954
|
-
*/
|
|
8955
|
-
export const mediaCreateVoiceConsent = (options) => (options.client ?? client).post({
|
|
8956
|
-
security: [{
|
|
8957
|
-
key: 'media-BearerAuth',
|
|
8958
|
-
scheme: 'bearer',
|
|
8959
|
-
type: 'http'
|
|
8960
|
-
}],
|
|
8961
|
-
url: '/media/v1/libraries/{library_id}/voice_consents',
|
|
8962
|
-
...options,
|
|
8963
|
-
headers: {
|
|
8964
|
-
'Content-Type': 'application/json',
|
|
8965
|
-
...options.headers
|
|
8966
|
-
}
|
|
8967
|
-
});
|
|
8968
|
-
/**
|
|
8969
|
-
* List voices
|
|
8970
|
-
*
|
|
8971
|
-
* List this library’s voice materials, newest first, to show what the library can speak in or to find an id to synthesise with. 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. Continue with next_cursor and keep the same library; limit is 1 through 200 and defaults to 50. A deleted voice stops appearing, and a material whose own record cannot be read is left out rather than failing the whole page. This collection takes no filter today, so a filter argument is refused with INVALID_FILTER rather than ignored. This is a read: it starts no clone and changes no material. Example: GET /media/v1/libraries/default/voices?limit=50.
|
|
8972
|
-
*/
|
|
8973
|
-
export const mediaListVoices = (options) => (options.client ?? client).get({
|
|
8974
|
-
security: [{
|
|
8975
|
-
key: 'media-BearerAuth',
|
|
8976
|
-
scheme: 'bearer',
|
|
8977
|
-
type: 'http'
|
|
8978
|
-
}],
|
|
8979
|
-
url: '/media/v1/libraries/{library_id}/voices',
|
|
8980
|
-
...options
|
|
8981
|
-
});
|
|
8982
|
-
/**
|
|
8983
|
-
* Create voice
|
|
8984
|
-
*
|
|
8985
|
-
* Clone a voice from recordings of a consenting speaker and keep it as a voice material of this 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. A voice is made in two steps: record the speaker’s consent first (voice_consents.create) and send its consent_id here. The consent must belong to this same library and name the same language as the request — a consent recorded elsewhere, a language that differs from the consent’s, or a missing consent_id is refused with CONSENT_REQUIRED, so a voice can never be cloned from an authorisation given in another library. samples lists the recordings to clone from, in order: the first one is cloned and decides the material’s stored audio format, and each must be a recording of a format the clone lane accepts (mp3, wav, ogg, m4a, aac or pcm); a sample that is not audio is refused with INVALID_PARAMS before a job exists and before anything is charged. name and language are required; labels, description and asset_folder are optional. Cloning is billed per successful clone, priced as the doubao-voice-clone-2.0 entry in the model catalogue, and a clone refused before it starts costs nothing. The response is 202 with a queued Job; the voice material is listed and readable from the moment this call answers, so poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until the job is completed or failed, then read providers[].state — training while the supplier is still learning the voice, ready when it can be spoken with, and failed with the job holding the reason. Speak with the material by naming its id as voice at audio/speech. Send Idempotency-Key, or idempotency_key in the body, to retry without cloning and charging twice. Example: POST /media/v1/libraries/default/voices with {"name":"店员小何","samples":["file-8c2a5f41d0b34e77"],"consent_id":"vcn_3f9a1c47e2b04d68","language":"zh-CN"}.
|
|
8986
|
-
*/
|
|
8987
|
-
export const mediaCreateVoice = (options) => (options.client ?? client).post({
|
|
8988
|
-
security: [{
|
|
8989
|
-
key: 'media-BearerAuth',
|
|
8990
|
-
scheme: 'bearer',
|
|
8991
|
-
type: 'http'
|
|
8992
|
-
}],
|
|
8993
|
-
url: '/media/v1/libraries/{library_id}/voices',
|
|
8994
|
-
...options,
|
|
8995
|
-
headers: {
|
|
8996
|
-
'Content-Type': 'application/json',
|
|
8997
|
-
...options.headers
|
|
8998
|
-
}
|
|
8999
|
-
});
|
|
9000
|
-
/**
|
|
9001
|
-
* Delete voice
|
|
9002
|
-
*
|
|
9003
|
-
* Delete one voice material from this library. Use library_id from creation or listing and voice_id from voice creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. Deletion makes the material unusable for synthesis and hides it from listing, and it is a tombstone rather than an erasure: an id that names no voice of this library is answered the same way a deleted one is, and there is no restore for a single asset. The recordings the clone was made from are files, not assets, so they are unaffected. The answer confirms the deletion. Example: DELETE /media/v1/libraries/default/voices/9dfa312ef9bc4b00816339b598b1152c.
|
|
9004
|
-
*/
|
|
9005
|
-
export const mediaDeleteVoice = (options) => (options.client ?? client).delete({
|
|
9006
|
-
security: [{
|
|
9007
|
-
key: 'media-BearerAuth',
|
|
9008
|
-
scheme: 'bearer',
|
|
9009
|
-
type: 'http'
|
|
9010
|
-
}],
|
|
9011
|
-
url: '/media/v1/libraries/{library_id}/voices/{voice_id}',
|
|
9012
|
-
...options
|
|
9013
|
-
});
|
|
9014
|
-
/**
|
|
9015
|
-
* Get voice
|
|
9016
|
-
*
|
|
9017
|
-
* Read one voice material of this library: its name, language, labels, the recordings it was cloned from, the consent that authorises it, and one entry per supplier holding it. Use library_id from creation or listing and voice_id from voice creation or listing; library_id also accepts the literal default, which resolves to the organization’s default library before the credential check. Read providers[].state to know whether the clone finished: ready means synthesis can use it now, training means the supplier is still learning it, and failed means the clone was refused with the reason on the Job that ran it. A voice of another library is not found here — an id that names no voice of this library answers ASSET_NOT_FOUND rather than a hint that it exists elsewhere — and a deleted material answers the same way. This is a read: it starts no clone. Example: GET /media/v1/libraries/default/voices/9dfa312ef9bc4b00816339b598b1152c.
|
|
9018
|
-
*/
|
|
9019
|
-
export const mediaGetVoice = (options) => (options.client ?? client).get({
|
|
9020
|
-
security: [{
|
|
9021
|
-
key: 'media-BearerAuth',
|
|
9022
|
-
scheme: 'bearer',
|
|
9023
|
-
type: 'http'
|
|
9024
|
-
}],
|
|
9025
|
-
url: '/media/v1/libraries/{library_id}/voices/{voice_id}',
|
|
9026
|
-
...options
|
|
9027
|
-
});
|
|
9028
9032
|
/**
|
|
9029
9033
|
* Summarize understanding failures
|
|
9030
9034
|
*
|
|
@@ -9084,7 +9088,7 @@ export const mediaCancelJob = (options) => (options.client ?? client).post({
|
|
|
9084
9088
|
/**
|
|
9085
9089
|
* Get generation capabilities
|
|
9086
9090
|
*
|
|
9087
|
-
* 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. 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.
|
|
9088
9092
|
*/
|
|
9089
9093
|
export const mediaGetGenerationCapabilities = (options) => (options?.client ?? client).get({
|
|
9090
9094
|
security: [{
|
|
@@ -11614,7 +11618,7 @@ export const studioRenditionsContentUrl = (options) => (options.client ?? client
|
|
|
11614
11618
|
/**
|
|
11615
11619
|
* List the blind review rounds of a work
|
|
11616
11620
|
*
|
|
11617
|
-
* 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.
|
|
11618
11622
|
*/
|
|
11619
11623
|
export const studioWorksReviewsList = (options) => (options.client ?? client).get({
|
|
11620
11624
|
security: [{
|
|
@@ -11632,7 +11636,7 @@ export const studioWorksReviewsList = (options) => (options.client ?? client).ge
|
|
|
11632
11636
|
/**
|
|
11633
11637
|
* Send a draft to blind review
|
|
11634
11638
|
*
|
|
11635
|
-
* 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.
|
|
11636
11640
|
*/
|
|
11637
11641
|
export const studioWorksReviewsCreate = (options) => (options.client ?? client).post({
|
|
11638
11642
|
security: [{
|
|
@@ -11654,7 +11658,7 @@ export const studioWorksReviewsCreate = (options) => (options.client ?? client).
|
|
|
11654
11658
|
/**
|
|
11655
11659
|
* Read one blind review round
|
|
11656
11660
|
*
|
|
11657
|
-
* 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.
|
|
11658
11662
|
*/
|
|
11659
11663
|
export const studioWorksReviewsRetrieve = (options) => (options.client ?? client).get({
|
|
11660
11664
|
security: [{
|
|
@@ -11670,11 +11674,11 @@ export const studioWorksReviewsRetrieve = (options) => (options.client ?? client
|
|
|
11670
11674
|
...options
|
|
11671
11675
|
});
|
|
11672
11676
|
/**
|
|
11673
|
-
*
|
|
11677
|
+
* Cancel a running review round
|
|
11674
11678
|
*
|
|
11675
|
-
*
|
|
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.
|
|
11676
11680
|
*/
|
|
11677
|
-
export const
|
|
11681
|
+
export const studioWorksReviewsCancel = (options) => (options.client ?? client).post({
|
|
11678
11682
|
security: [{
|
|
11679
11683
|
key: 'BearerAuth',
|
|
11680
11684
|
scheme: 'bearer',
|
|
@@ -11684,19 +11688,15 @@ export const studioWorksReviewsAppeal = (options) => (options.client ?? client).
|
|
|
11684
11688
|
name: 'X-API-Key',
|
|
11685
11689
|
type: 'apiKey'
|
|
11686
11690
|
}],
|
|
11687
|
-
url: '/studio/v1/works/{work}/reviews/{review}:
|
|
11688
|
-
...options
|
|
11689
|
-
headers: {
|
|
11690
|
-
'Content-Type': 'application/json',
|
|
11691
|
-
...options.headers
|
|
11692
|
-
}
|
|
11691
|
+
url: '/studio/v1/works/{work}/reviews/{review}:cancel',
|
|
11692
|
+
...options
|
|
11693
11693
|
});
|
|
11694
11694
|
/**
|
|
11695
|
-
*
|
|
11695
|
+
* Read the review settings of a work
|
|
11696
11696
|
*
|
|
11697
|
-
*
|
|
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.
|
|
11698
11698
|
*/
|
|
11699
|
-
export const
|
|
11699
|
+
export const studioWorksReviewSettingsRetrieve = (options) => (options.client ?? client).get({
|
|
11700
11700
|
security: [{
|
|
11701
11701
|
key: 'BearerAuth',
|
|
11702
11702
|
scheme: 'bearer',
|
|
@@ -11706,15 +11706,15 @@ export const studioWorksReviewsCancel = (options) => (options.client ?? client).
|
|
|
11706
11706
|
name: 'X-API-Key',
|
|
11707
11707
|
type: 'apiKey'
|
|
11708
11708
|
}],
|
|
11709
|
-
url: '/studio/v1/works/{work}/
|
|
11709
|
+
url: '/studio/v1/works/{work}/review-settings',
|
|
11710
11710
|
...options
|
|
11711
11711
|
});
|
|
11712
11712
|
/**
|
|
11713
|
-
*
|
|
11713
|
+
* Change how many rounds a work may take
|
|
11714
11714
|
*
|
|
11715
|
-
*
|
|
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.
|
|
11716
11716
|
*/
|
|
11717
|
-
export const
|
|
11717
|
+
export const studioWorksReviewSettingsUpdate = (options) => (options.client ?? client).patch({
|
|
11718
11718
|
security: [{
|
|
11719
11719
|
key: 'BearerAuth',
|
|
11720
11720
|
scheme: 'bearer',
|
|
@@ -11725,14 +11725,36 @@ export const studioWorksReviewSettingsRetrieve = (options) => (options.client ??
|
|
|
11725
11725
|
type: 'apiKey'
|
|
11726
11726
|
}],
|
|
11727
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',
|
|
11728
11750
|
...options
|
|
11729
11751
|
});
|
|
11730
11752
|
/**
|
|
11731
|
-
*
|
|
11753
|
+
* Add a reviewer to a work
|
|
11732
11754
|
*
|
|
11733
|
-
*
|
|
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.
|
|
11734
11756
|
*/
|
|
11735
|
-
export const
|
|
11757
|
+
export const studioWorksReviewersCreate = (options) => (options.client ?? client).post({
|
|
11736
11758
|
security: [{
|
|
11737
11759
|
key: 'BearerAuth',
|
|
11738
11760
|
scheme: 'bearer',
|
|
@@ -11742,7 +11764,7 @@ export const studioWorksReviewSettingsUpdate = (options) => (options.client ?? c
|
|
|
11742
11764
|
name: 'X-API-Key',
|
|
11743
11765
|
type: 'apiKey'
|
|
11744
11766
|
}],
|
|
11745
|
-
url: '/studio/v1/works/{work}/
|
|
11767
|
+
url: '/studio/v1/works/{work}/reviewers',
|
|
11746
11768
|
...options,
|
|
11747
11769
|
headers: {
|
|
11748
11770
|
'Content-Type': 'application/json',
|
|
@@ -11750,11 +11772,11 @@ export const studioWorksReviewSettingsUpdate = (options) => (options.client ?? c
|
|
|
11750
11772
|
}
|
|
11751
11773
|
});
|
|
11752
11774
|
/**
|
|
11753
|
-
*
|
|
11775
|
+
* Remove a reviewer from a work
|
|
11754
11776
|
*
|
|
11755
|
-
*
|
|
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.
|
|
11756
11778
|
*/
|
|
11757
|
-
export const
|
|
11779
|
+
export const studioWorksReviewersDelete = (options) => (options.client ?? client).delete({
|
|
11758
11780
|
security: [{
|
|
11759
11781
|
key: 'BearerAuth',
|
|
11760
11782
|
scheme: 'bearer',
|
|
@@ -11764,15 +11786,15 @@ export const studioReviewersList = (options) => (options?.client ?? client).get(
|
|
|
11764
11786
|
name: 'X-API-Key',
|
|
11765
11787
|
type: 'apiKey'
|
|
11766
11788
|
}],
|
|
11767
|
-
url: '/studio/v1/reviewers',
|
|
11789
|
+
url: '/studio/v1/works/{work}/reviewers/{agent}',
|
|
11768
11790
|
...options
|
|
11769
11791
|
});
|
|
11770
11792
|
/**
|
|
11771
|
-
*
|
|
11793
|
+
* Change a reviewer's kind
|
|
11772
11794
|
*
|
|
11773
|
-
*
|
|
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.
|
|
11774
11796
|
*/
|
|
11775
|
-
export const
|
|
11797
|
+
export const studioWorksReviewersUpdate = (options) => (options.client ?? client).patch({
|
|
11776
11798
|
security: [{
|
|
11777
11799
|
key: 'BearerAuth',
|
|
11778
11800
|
scheme: 'bearer',
|
|
@@ -11782,7 +11804,7 @@ export const studioReviewersUpdate = (options) => (options.client ?? client).pat
|
|
|
11782
11804
|
name: 'X-API-Key',
|
|
11783
11805
|
type: 'apiKey'
|
|
11784
11806
|
}],
|
|
11785
|
-
url: '/studio/v1/reviewers/{agent}',
|
|
11807
|
+
url: '/studio/v1/works/{work}/reviewers/{agent}',
|
|
11786
11808
|
...options,
|
|
11787
11809
|
headers: {
|
|
11788
11810
|
'Content-Type': 'application/json',
|