@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
|
@@ -11892,6 +11892,260 @@ export const operations = [
|
|
|
11892
11892
|
],
|
|
11893
11893
|
"query": []
|
|
11894
11894
|
},
|
|
11895
|
+
{
|
|
11896
|
+
"resource": "devops.projects.environments.targets",
|
|
11897
|
+
"method": "deleteState",
|
|
11898
|
+
"summary": "Delete a target's OpenTofu state",
|
|
11899
|
+
"description": "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.",
|
|
11900
|
+
"http": "DELETE",
|
|
11901
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
11902
|
+
"streaming": "no",
|
|
11903
|
+
"pagination": false,
|
|
11904
|
+
"pathParams": [
|
|
11905
|
+
{
|
|
11906
|
+
"name": "project",
|
|
11907
|
+
"sdkName": "project",
|
|
11908
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
11909
|
+
},
|
|
11910
|
+
{
|
|
11911
|
+
"name": "environment",
|
|
11912
|
+
"sdkName": "environment",
|
|
11913
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
11914
|
+
},
|
|
11915
|
+
{
|
|
11916
|
+
"name": "target",
|
|
11917
|
+
"sdkName": "target",
|
|
11918
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
11919
|
+
}
|
|
11920
|
+
],
|
|
11921
|
+
"query": [
|
|
11922
|
+
{
|
|
11923
|
+
"name": "ID",
|
|
11924
|
+
"type": "string",
|
|
11925
|
+
"required": false,
|
|
11926
|
+
"description": "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."
|
|
11927
|
+
}
|
|
11928
|
+
]
|
|
11929
|
+
},
|
|
11930
|
+
{
|
|
11931
|
+
"resource": "devops.projects.environments.targets",
|
|
11932
|
+
"method": "retrieveState",
|
|
11933
|
+
"summary": "Read a target's OpenTofu state",
|
|
11934
|
+
"description": "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.",
|
|
11935
|
+
"http": "GET",
|
|
11936
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
11937
|
+
"streaming": "no",
|
|
11938
|
+
"pagination": false,
|
|
11939
|
+
"pathParams": [
|
|
11940
|
+
{
|
|
11941
|
+
"name": "project",
|
|
11942
|
+
"sdkName": "project",
|
|
11943
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
11944
|
+
},
|
|
11945
|
+
{
|
|
11946
|
+
"name": "environment",
|
|
11947
|
+
"sdkName": "environment",
|
|
11948
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
11949
|
+
},
|
|
11950
|
+
{
|
|
11951
|
+
"name": "target",
|
|
11952
|
+
"sdkName": "target",
|
|
11953
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
11954
|
+
}
|
|
11955
|
+
],
|
|
11956
|
+
"query": []
|
|
11957
|
+
},
|
|
11958
|
+
{
|
|
11959
|
+
"resource": "devops.projects.environments.targets.state",
|
|
11960
|
+
"method": "create",
|
|
11961
|
+
"summary": "Write a target's OpenTofu state",
|
|
11962
|
+
"description": "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.",
|
|
11963
|
+
"http": "POST",
|
|
11964
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state",
|
|
11965
|
+
"streaming": "no",
|
|
11966
|
+
"pagination": false,
|
|
11967
|
+
"pathParams": [
|
|
11968
|
+
{
|
|
11969
|
+
"name": "project",
|
|
11970
|
+
"sdkName": "project",
|
|
11971
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
11972
|
+
},
|
|
11973
|
+
{
|
|
11974
|
+
"name": "environment",
|
|
11975
|
+
"sdkName": "environment",
|
|
11976
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
11977
|
+
},
|
|
11978
|
+
{
|
|
11979
|
+
"name": "target",
|
|
11980
|
+
"sdkName": "target",
|
|
11981
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
11982
|
+
}
|
|
11983
|
+
],
|
|
11984
|
+
"query": [
|
|
11985
|
+
{
|
|
11986
|
+
"name": "ID",
|
|
11987
|
+
"type": "string",
|
|
11988
|
+
"required": false,
|
|
11989
|
+
"description": "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."
|
|
11990
|
+
}
|
|
11991
|
+
],
|
|
11992
|
+
"body": {
|
|
11993
|
+
"required": true,
|
|
11994
|
+
"fields": [
|
|
11995
|
+
{
|
|
11996
|
+
"name": "version",
|
|
11997
|
+
"type": "integer",
|
|
11998
|
+
"required": false,
|
|
11999
|
+
"description": "The state format version OpenTofu wrote."
|
|
12000
|
+
},
|
|
12001
|
+
{
|
|
12002
|
+
"name": "serial",
|
|
12003
|
+
"type": "integer",
|
|
12004
|
+
"required": true,
|
|
12005
|
+
"description": "Increases with every state change; a write lower than the stored serial of the same lineage is refused as stale."
|
|
12006
|
+
},
|
|
12007
|
+
{
|
|
12008
|
+
"name": "lineage",
|
|
12009
|
+
"type": "string",
|
|
12010
|
+
"required": true,
|
|
12011
|
+
"description": "Identifies one state history; it does not change across writes."
|
|
12012
|
+
}
|
|
12013
|
+
]
|
|
12014
|
+
}
|
|
12015
|
+
},
|
|
12016
|
+
{
|
|
12017
|
+
"resource": "devops.projects.environments.targets.state",
|
|
12018
|
+
"method": "deleteLock",
|
|
12019
|
+
"summary": "Unlock a target's OpenTofu state",
|
|
12020
|
+
"description": "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.",
|
|
12021
|
+
"http": "DELETE",
|
|
12022
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
|
|
12023
|
+
"streaming": "no",
|
|
12024
|
+
"pagination": false,
|
|
12025
|
+
"pathParams": [
|
|
12026
|
+
{
|
|
12027
|
+
"name": "project",
|
|
12028
|
+
"sdkName": "project",
|
|
12029
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
12030
|
+
},
|
|
12031
|
+
{
|
|
12032
|
+
"name": "environment",
|
|
12033
|
+
"sdkName": "environment",
|
|
12034
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
12035
|
+
},
|
|
12036
|
+
{
|
|
12037
|
+
"name": "target",
|
|
12038
|
+
"sdkName": "target",
|
|
12039
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
12040
|
+
}
|
|
12041
|
+
],
|
|
12042
|
+
"query": [
|
|
12043
|
+
{
|
|
12044
|
+
"name": "ID",
|
|
12045
|
+
"type": "string",
|
|
12046
|
+
"required": false,
|
|
12047
|
+
"description": "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."
|
|
12048
|
+
}
|
|
12049
|
+
],
|
|
12050
|
+
"body": {
|
|
12051
|
+
"required": false,
|
|
12052
|
+
"fields": [
|
|
12053
|
+
{
|
|
12054
|
+
"name": "ID",
|
|
12055
|
+
"type": "string",
|
|
12056
|
+
"required": true,
|
|
12057
|
+
"description": "Identifies the lock; every write and the unlock must carry it."
|
|
12058
|
+
},
|
|
12059
|
+
{
|
|
12060
|
+
"name": "Operation",
|
|
12061
|
+
"type": "string",
|
|
12062
|
+
"required": false,
|
|
12063
|
+
"description": "What the holder is doing, such as OperationTypeApply."
|
|
12064
|
+
},
|
|
12065
|
+
{
|
|
12066
|
+
"name": "Who",
|
|
12067
|
+
"type": "string",
|
|
12068
|
+
"required": false,
|
|
12069
|
+
"description": "The holder, user@host, shown to the caller that finds the lock held."
|
|
12070
|
+
},
|
|
12071
|
+
{
|
|
12072
|
+
"name": "Created",
|
|
12073
|
+
"type": "string",
|
|
12074
|
+
"required": false,
|
|
12075
|
+
"description": "When the holder took the lock, RFC 3339."
|
|
12076
|
+
},
|
|
12077
|
+
{
|
|
12078
|
+
"name": "Path",
|
|
12079
|
+
"type": "string",
|
|
12080
|
+
"required": false,
|
|
12081
|
+
"description": "Where the holder keeps its working state, informational."
|
|
12082
|
+
}
|
|
12083
|
+
]
|
|
12084
|
+
}
|
|
12085
|
+
},
|
|
12086
|
+
{
|
|
12087
|
+
"resource": "devops.projects.environments.targets.state.lock",
|
|
12088
|
+
"method": "create",
|
|
12089
|
+
"summary": "Lock a target's OpenTofu state",
|
|
12090
|
+
"description": "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.",
|
|
12091
|
+
"http": "POST",
|
|
12092
|
+
"path": "/devops/v1/projects/{project}/environments/{environment}/targets/{target}/state/lock",
|
|
12093
|
+
"streaming": "no",
|
|
12094
|
+
"pagination": false,
|
|
12095
|
+
"pathParams": [
|
|
12096
|
+
{
|
|
12097
|
+
"name": "project",
|
|
12098
|
+
"sdkName": "project",
|
|
12099
|
+
"description": "Identifies the project whose data you are reading, from the project list or create answer."
|
|
12100
|
+
},
|
|
12101
|
+
{
|
|
12102
|
+
"name": "environment",
|
|
12103
|
+
"sdkName": "environment",
|
|
12104
|
+
"description": "Identifies the DevOps environment (dve_…) whose deploy state you address, from the project's environment list."
|
|
12105
|
+
},
|
|
12106
|
+
{
|
|
12107
|
+
"name": "target",
|
|
12108
|
+
"sdkName": "target",
|
|
12109
|
+
"description": "The deploy target's repository path, URL-encoded as one segment: services/ontology is written services%2Fontology."
|
|
12110
|
+
}
|
|
12111
|
+
],
|
|
12112
|
+
"query": [],
|
|
12113
|
+
"body": {
|
|
12114
|
+
"required": true,
|
|
12115
|
+
"fields": [
|
|
12116
|
+
{
|
|
12117
|
+
"name": "ID",
|
|
12118
|
+
"type": "string",
|
|
12119
|
+
"required": true,
|
|
12120
|
+
"description": "Identifies the lock; every write and the unlock must carry it."
|
|
12121
|
+
},
|
|
12122
|
+
{
|
|
12123
|
+
"name": "Operation",
|
|
12124
|
+
"type": "string",
|
|
12125
|
+
"required": false,
|
|
12126
|
+
"description": "What the holder is doing, such as OperationTypeApply."
|
|
12127
|
+
},
|
|
12128
|
+
{
|
|
12129
|
+
"name": "Who",
|
|
12130
|
+
"type": "string",
|
|
12131
|
+
"required": false,
|
|
12132
|
+
"description": "The holder, user@host, shown to the caller that finds the lock held."
|
|
12133
|
+
},
|
|
12134
|
+
{
|
|
12135
|
+
"name": "Created",
|
|
12136
|
+
"type": "string",
|
|
12137
|
+
"required": false,
|
|
12138
|
+
"description": "When the holder took the lock, RFC 3339."
|
|
12139
|
+
},
|
|
12140
|
+
{
|
|
12141
|
+
"name": "Path",
|
|
12142
|
+
"type": "string",
|
|
12143
|
+
"required": false,
|
|
12144
|
+
"description": "Where the holder keeps its working state, informational."
|
|
12145
|
+
}
|
|
12146
|
+
]
|
|
12147
|
+
}
|
|
12148
|
+
},
|
|
11895
12149
|
{
|
|
11896
12150
|
"resource": "devops.projects.flags",
|
|
11897
12151
|
"method": "list",
|
|
@@ -14430,7 +14684,7 @@ export const operations = [
|
|
|
14430
14684
|
"resource": "media.generation.capabilities",
|
|
14431
14685
|
"method": "list",
|
|
14432
14686
|
"summary": "Get generation capabilities",
|
|
14433
|
-
"description": "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
|
|
14687
|
+
"description": "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.",
|
|
14434
14688
|
"http": "GET",
|
|
14435
14689
|
"path": "/media/v1/generation/capabilities",
|
|
14436
14690
|
"streaming": "no",
|
|
@@ -15296,7 +15550,7 @@ export const operations = [
|
|
|
15296
15550
|
"resource": "media.speech",
|
|
15297
15551
|
"method": "create",
|
|
15298
15552
|
"summary": "Create speech",
|
|
15299
|
-
"description": "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
|
|
15553
|
+
"description": "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.",
|
|
15300
15554
|
"http": "POST",
|
|
15301
15555
|
"path": "/media/v1/libraries/{library_id}/audio/speech",
|
|
15302
15556
|
"streaming": "no",
|
|
@@ -15321,20 +15575,20 @@ export const operations = [
|
|
|
15321
15575
|
{
|
|
15322
15576
|
"name": "voice",
|
|
15323
15577
|
"type": "string",
|
|
15324
|
-
"required":
|
|
15325
|
-
"description": "Voice to
|
|
15578
|
+
"required": false,
|
|
15579
|
+
"description": "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."
|
|
15326
15580
|
},
|
|
15327
15581
|
{
|
|
15328
15582
|
"name": "instructions",
|
|
15329
15583
|
"type": "string",
|
|
15330
15584
|
"required": false,
|
|
15331
|
-
"description": "Emotion and style guidance for the synthesized speech
|
|
15585
|
+
"description": "Emotion and style guidance for the synthesized speech."
|
|
15332
15586
|
},
|
|
15333
15587
|
{
|
|
15334
15588
|
"name": "speed",
|
|
15335
15589
|
"type": "number",
|
|
15336
15590
|
"required": false,
|
|
15337
|
-
"description": "Speaking-rate multiplier;
|
|
15591
|
+
"description": "Speaking-rate multiplier; 1 is the model default."
|
|
15338
15592
|
},
|
|
15339
15593
|
{
|
|
15340
15594
|
"name": "response_format",
|
|
@@ -15348,13 +15602,13 @@ export const operations = [
|
|
|
15348
15602
|
"pcm"
|
|
15349
15603
|
],
|
|
15350
15604
|
"required": false,
|
|
15351
|
-
"description": "Audio encoding of the synthesized speech
|
|
15605
|
+
"description": "Audio encoding of the synthesized speech."
|
|
15352
15606
|
},
|
|
15353
15607
|
{
|
|
15354
15608
|
"name": "language",
|
|
15355
15609
|
"type": "string",
|
|
15356
15610
|
"required": false,
|
|
15357
|
-
"description": "
|
|
15611
|
+
"description": "Language of the text, when the voice supports several."
|
|
15358
15612
|
}
|
|
15359
15613
|
]
|
|
15360
15614
|
}
|
|
@@ -16196,241 +16450,51 @@ export const operations = [
|
|
|
16196
16450
|
"gif"
|
|
16197
16451
|
],
|
|
16198
16452
|
"required": false,
|
|
16199
|
-
"description": "Container of the produced video; defaults to mp4. gif is refused with OPERATION_NOT_SUPPORTED because this release has no GIF encoding for the lane."
|
|
16200
|
-
},
|
|
16201
|
-
{
|
|
16202
|
-
"name": "n",
|
|
16203
|
-
"type": "integer",
|
|
16204
|
-
"required": false,
|
|
16205
|
-
"description": "Videos to generate in one job, from 1 to 4; defaults to 1. Each produced video is charged separately."
|
|
16206
|
-
},
|
|
16207
|
-
{
|
|
16208
|
-
"name": "seed",
|
|
16209
|
-
"type": "integer",
|
|
16210
|
-
"required": false,
|
|
16211
|
-
"description": "Seed for reproducible sampling; omit it to let the model choose one."
|
|
16212
|
-
},
|
|
16213
|
-
{
|
|
16214
|
-
"name": "model",
|
|
16215
|
-
"type": "string",
|
|
16216
|
-
"required": false,
|
|
16217
|
-
"description": "Model with video-generation capability; omit it to use the library default video model."
|
|
16218
|
-
},
|
|
16219
|
-
{
|
|
16220
|
-
"name": "asset_folder",
|
|
16221
|
-
"type": "string",
|
|
16222
|
-
"required": false,
|
|
16223
|
-
"description": "Folder the produced asset is filed under; defaults to 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."
|
|
16224
|
-
},
|
|
16225
|
-
{
|
|
16226
|
-
"name": "understanding",
|
|
16227
|
-
"type": "string",
|
|
16228
|
-
"enum": [
|
|
16229
|
-
"auto",
|
|
16230
|
-
"skip"
|
|
16231
|
-
],
|
|
16232
|
-
"required": false,
|
|
16233
|
-
"description": "Understanding behavior for the produced asset; defaults to auto."
|
|
16234
|
-
},
|
|
16235
|
-
{
|
|
16236
|
-
"name": "idempotency_key",
|
|
16237
|
-
"type": "string",
|
|
16238
|
-
"required": false,
|
|
16239
|
-
"description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
|
|
16240
|
-
}
|
|
16241
|
-
]
|
|
16242
|
-
}
|
|
16243
|
-
},
|
|
16244
|
-
{
|
|
16245
|
-
"resource": "media.libraries.voiceConsents",
|
|
16246
|
-
"method": "create",
|
|
16247
|
-
"summary": "Create voice consent",
|
|
16248
|
-
"description": "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\"}.",
|
|
16249
|
-
"http": "POST",
|
|
16250
|
-
"path": "/media/v1/libraries/{library_id}/voice_consents",
|
|
16251
|
-
"streaming": "no",
|
|
16252
|
-
"pagination": false,
|
|
16253
|
-
"pathParams": [
|
|
16254
|
-
{
|
|
16255
|
-
"name": "library_id",
|
|
16256
|
-
"sdkName": "library_id",
|
|
16257
|
-
"description": "Library ID returned by creation."
|
|
16258
|
-
}
|
|
16259
|
-
],
|
|
16260
|
-
"query": [],
|
|
16261
|
-
"body": {
|
|
16262
|
-
"required": true,
|
|
16263
|
-
"fields": [
|
|
16264
|
-
{
|
|
16265
|
-
"name": "file_id",
|
|
16266
|
-
"type": "string",
|
|
16267
|
-
"required": true,
|
|
16268
|
-
"description": "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."
|
|
16269
|
-
},
|
|
16270
|
-
{
|
|
16271
|
-
"name": "speaker_name",
|
|
16272
|
-
"type": "string",
|
|
16273
|
-
"required": true,
|
|
16274
|
-
"description": "Name of the person who gave the authorisation, recorded as written on the statement and shown wherever the consent is cited."
|
|
16275
|
-
},
|
|
16276
|
-
{
|
|
16277
|
-
"name": "language",
|
|
16278
|
-
"type": "string",
|
|
16279
|
-
"required": true,
|
|
16280
|
-
"description": "Language tag in BCP-47 form, such as zh-CN or en-US."
|
|
16281
|
-
}
|
|
16282
|
-
]
|
|
16283
|
-
}
|
|
16284
|
-
},
|
|
16285
|
-
{
|
|
16286
|
-
"resource": "media.libraries.voices",
|
|
16287
|
-
"method": "list",
|
|
16288
|
-
"summary": "List voices",
|
|
16289
|
-
"description": "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.",
|
|
16290
|
-
"http": "GET",
|
|
16291
|
-
"path": "/media/v1/libraries/{library_id}/voices",
|
|
16292
|
-
"streaming": "no",
|
|
16293
|
-
"pagination": true,
|
|
16294
|
-
"pathParams": [
|
|
16295
|
-
{
|
|
16296
|
-
"name": "library_id",
|
|
16297
|
-
"sdkName": "library_id",
|
|
16298
|
-
"description": "Library ID returned by creation."
|
|
16299
|
-
}
|
|
16300
|
-
],
|
|
16301
|
-
"query": [
|
|
16302
|
-
{
|
|
16303
|
-
"name": "cursor",
|
|
16304
|
-
"type": "string",
|
|
16305
|
-
"required": false,
|
|
16306
|
-
"description": "Cursor from the previous next_cursor."
|
|
16307
|
-
},
|
|
16308
|
-
{
|
|
16309
|
-
"name": "limit",
|
|
16310
|
-
"type": "integer",
|
|
16311
|
-
"required": false,
|
|
16312
|
-
"description": "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."
|
|
16313
|
-
}
|
|
16314
|
-
]
|
|
16315
|
-
},
|
|
16316
|
-
{
|
|
16317
|
-
"resource": "media.libraries.voices",
|
|
16318
|
-
"method": "create",
|
|
16319
|
-
"summary": "Create voice",
|
|
16320
|
-
"description": "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\"}.",
|
|
16321
|
-
"http": "POST",
|
|
16322
|
-
"path": "/media/v1/libraries/{library_id}/voices",
|
|
16323
|
-
"streaming": "no",
|
|
16324
|
-
"pagination": false,
|
|
16325
|
-
"pathParams": [
|
|
16326
|
-
{
|
|
16327
|
-
"name": "library_id",
|
|
16328
|
-
"sdkName": "library_id",
|
|
16329
|
-
"description": "Library ID returned by creation."
|
|
16330
|
-
}
|
|
16331
|
-
],
|
|
16332
|
-
"query": [],
|
|
16333
|
-
"body": {
|
|
16334
|
-
"required": true,
|
|
16335
|
-
"fields": [
|
|
16336
|
-
{
|
|
16337
|
-
"name": "name",
|
|
16338
|
-
"type": "string",
|
|
16339
|
-
"required": true,
|
|
16340
|
-
"description": "Display name of the voice material, shown wherever a voice is chosen; it may be changed later through the asset update."
|
|
16341
|
-
},
|
|
16342
|
-
{
|
|
16343
|
-
"name": "samples",
|
|
16344
|
-
"type": "array",
|
|
16345
|
-
"itemType": "string",
|
|
16346
|
-
"required": true,
|
|
16347
|
-
"description": "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."
|
|
16348
|
-
},
|
|
16349
|
-
{
|
|
16350
|
-
"name": "consent_id",
|
|
16351
|
-
"type": "string",
|
|
16352
|
-
"required": true,
|
|
16353
|
-
"description": "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."
|
|
16453
|
+
"description": "Container of the produced video; defaults to mp4. gif is refused with OPERATION_NOT_SUPPORTED because this release has no GIF encoding for the lane."
|
|
16354
16454
|
},
|
|
16355
16455
|
{
|
|
16356
|
-
"name": "
|
|
16357
|
-
"type": "
|
|
16358
|
-
"required":
|
|
16359
|
-
"description": "
|
|
16456
|
+
"name": "n",
|
|
16457
|
+
"type": "integer",
|
|
16458
|
+
"required": false,
|
|
16459
|
+
"description": "Videos to generate in one job, from 1 to 4; defaults to 1. Each produced video is charged separately."
|
|
16360
16460
|
},
|
|
16361
16461
|
{
|
|
16362
|
-
"name": "
|
|
16363
|
-
"type": "
|
|
16462
|
+
"name": "seed",
|
|
16463
|
+
"type": "integer",
|
|
16364
16464
|
"required": false,
|
|
16365
|
-
"description": "
|
|
16465
|
+
"description": "Seed for reproducible sampling; omit it to let the model choose one."
|
|
16366
16466
|
},
|
|
16367
16467
|
{
|
|
16368
|
-
"name": "
|
|
16468
|
+
"name": "model",
|
|
16369
16469
|
"type": "string",
|
|
16370
16470
|
"required": false,
|
|
16371
|
-
"description": "
|
|
16471
|
+
"description": "Model with video-generation capability; omit it to use the library default video model."
|
|
16372
16472
|
},
|
|
16373
16473
|
{
|
|
16374
16474
|
"name": "asset_folder",
|
|
16375
16475
|
"type": "string",
|
|
16376
16476
|
"required": false,
|
|
16377
|
-
"description": "Folder the
|
|
16477
|
+
"description": "Folder the produced asset is filed under; defaults to 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."
|
|
16478
|
+
},
|
|
16479
|
+
{
|
|
16480
|
+
"name": "understanding",
|
|
16481
|
+
"type": "string",
|
|
16482
|
+
"enum": [
|
|
16483
|
+
"auto",
|
|
16484
|
+
"skip"
|
|
16485
|
+
],
|
|
16486
|
+
"required": false,
|
|
16487
|
+
"description": "Understanding behavior for the produced asset; defaults to auto."
|
|
16378
16488
|
},
|
|
16379
16489
|
{
|
|
16380
16490
|
"name": "idempotency_key",
|
|
16381
16491
|
"type": "string",
|
|
16382
16492
|
"required": false,
|
|
16383
|
-
"description": "Stable key so a retried request reuses the same
|
|
16493
|
+
"description": "Stable key so a retried request reuses the same job instead of generating and charging again; reusing it with different content is rejected."
|
|
16384
16494
|
}
|
|
16385
16495
|
]
|
|
16386
16496
|
}
|
|
16387
16497
|
},
|
|
16388
|
-
{
|
|
16389
|
-
"resource": "media.libraries.voices",
|
|
16390
|
-
"method": "delete",
|
|
16391
|
-
"summary": "Delete voice",
|
|
16392
|
-
"description": "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.",
|
|
16393
|
-
"http": "DELETE",
|
|
16394
|
-
"path": "/media/v1/libraries/{library_id}/voices/{voice_id}",
|
|
16395
|
-
"streaming": "no",
|
|
16396
|
-
"pagination": false,
|
|
16397
|
-
"pathParams": [
|
|
16398
|
-
{
|
|
16399
|
-
"name": "library_id",
|
|
16400
|
-
"sdkName": "library_id",
|
|
16401
|
-
"description": "Library ID returned by creation."
|
|
16402
|
-
},
|
|
16403
|
-
{
|
|
16404
|
-
"name": "voice_id",
|
|
16405
|
-
"sdkName": "voice_id",
|
|
16406
|
-
"description": "Voice material identifier returned by voice creation or listing; it is the id of the library asset that carries the voice."
|
|
16407
|
-
}
|
|
16408
|
-
],
|
|
16409
|
-
"query": []
|
|
16410
|
-
},
|
|
16411
|
-
{
|
|
16412
|
-
"resource": "media.libraries.voices",
|
|
16413
|
-
"method": "retrieve",
|
|
16414
|
-
"summary": "Get voice",
|
|
16415
|
-
"description": "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.",
|
|
16416
|
-
"http": "GET",
|
|
16417
|
-
"path": "/media/v1/libraries/{library_id}/voices/{voice_id}",
|
|
16418
|
-
"streaming": "no",
|
|
16419
|
-
"pagination": false,
|
|
16420
|
-
"pathParams": [
|
|
16421
|
-
{
|
|
16422
|
-
"name": "library_id",
|
|
16423
|
-
"sdkName": "library_id",
|
|
16424
|
-
"description": "Library ID returned by creation."
|
|
16425
|
-
},
|
|
16426
|
-
{
|
|
16427
|
-
"name": "voice_id",
|
|
16428
|
-
"sdkName": "voice_id",
|
|
16429
|
-
"description": "Voice material identifier returned by voice creation or listing; it is the id of the library asset that carries the voice."
|
|
16430
|
-
}
|
|
16431
|
-
],
|
|
16432
|
-
"query": []
|
|
16433
|
-
},
|
|
16434
16498
|
{
|
|
16435
16499
|
"resource": "meta.docs",
|
|
16436
16500
|
"method": "search",
|
|
@@ -22345,70 +22409,6 @@ export const operations = [
|
|
|
22345
22409
|
],
|
|
22346
22410
|
"query": []
|
|
22347
22411
|
},
|
|
22348
|
-
{
|
|
22349
|
-
"resource": "studio.reviewers",
|
|
22350
|
-
"method": "list",
|
|
22351
|
-
"summary": "List the reviewers of the organization",
|
|
22352
|
-
"description": "List the reviewers this organization can draw on: one entry per reviewer agent, with its kind, its display name, the tags it matches seats on, the model family it runs and whether it is active. Pass kind to see only expert or only audience reviewers. Read it before setting a work's seats, so the seat conditions match reviewers that exist, and after REVIEWER_POOL_EMPTY to see which reviewers are missing or inactive. Entries are the organization's own reviewer agents; a reviewer of another organization is never listed. The answer is one page; keep following next_page_token while it is present.",
|
|
22353
|
-
"http": "GET",
|
|
22354
|
-
"path": "/studio/v1/reviewers",
|
|
22355
|
-
"streaming": "no",
|
|
22356
|
-
"pagination": false,
|
|
22357
|
-
"pathParams": [],
|
|
22358
|
-
"query": [
|
|
22359
|
-
{
|
|
22360
|
-
"name": "kind",
|
|
22361
|
-
"type": "string",
|
|
22362
|
-
"enum": [
|
|
22363
|
-
"expert",
|
|
22364
|
-
"audience"
|
|
22365
|
-
],
|
|
22366
|
-
"required": false,
|
|
22367
|
-
"description": "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."
|
|
22368
|
-
},
|
|
22369
|
-
{
|
|
22370
|
-
"name": "page_size",
|
|
22371
|
-
"type": "integer",
|
|
22372
|
-
"required": false,
|
|
22373
|
-
"description": "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."
|
|
22374
|
-
},
|
|
22375
|
-
{
|
|
22376
|
-
"name": "page_token",
|
|
22377
|
-
"type": "string",
|
|
22378
|
-
"required": false,
|
|
22379
|
-
"description": "Cursor from the previous answer's next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset."
|
|
22380
|
-
}
|
|
22381
|
-
]
|
|
22382
|
-
},
|
|
22383
|
-
{
|
|
22384
|
-
"resource": "studio.reviewers",
|
|
22385
|
-
"method": "update",
|
|
22386
|
-
"summary": "Activate or retire a reviewer",
|
|
22387
|
-
"description": "Take one reviewer in or out of the draw: active false keeps it in the library but stops it being drawn for future seats, and active true puts it back. Use it when a reviewer should stop judging, for example when its answers are consistently unusable, and set it back once that is dealt with. A round already sent is not affected, because its assignments were made when it was sent. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. The reviewer is addressed by the agent value the reviewer list returns; an unknown one answers REVIEWER_NOT_FOUND, which is also the answer for a reviewer of another organization.",
|
|
22388
|
-
"http": "PATCH",
|
|
22389
|
-
"path": "/studio/v1/reviewers/{agent}",
|
|
22390
|
-
"streaming": "no",
|
|
22391
|
-
"pagination": false,
|
|
22392
|
-
"pathParams": [
|
|
22393
|
-
{
|
|
22394
|
-
"name": "agent",
|
|
22395
|
-
"sdkName": "agent",
|
|
22396
|
-
"description": "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."
|
|
22397
|
-
}
|
|
22398
|
-
],
|
|
22399
|
-
"query": [],
|
|
22400
|
-
"body": {
|
|
22401
|
-
"required": true,
|
|
22402
|
-
"fields": [
|
|
22403
|
-
{
|
|
22404
|
-
"name": "active",
|
|
22405
|
-
"type": "boolean",
|
|
22406
|
-
"required": true,
|
|
22407
|
-
"description": "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."
|
|
22408
|
-
}
|
|
22409
|
-
]
|
|
22410
|
-
}
|
|
22411
|
-
},
|
|
22412
22412
|
{
|
|
22413
22413
|
"resource": "studio.styles",
|
|
22414
22414
|
"method": "list",
|
|
@@ -23279,6 +23279,12 @@ export const operations = [
|
|
|
23279
23279
|
"required": true,
|
|
23280
23280
|
"description": "Genre key the draft is written in, taken from the genre list; it decides the unit kinds, the properties and the checks."
|
|
23281
23281
|
},
|
|
23282
|
+
{
|
|
23283
|
+
"name": "key",
|
|
23284
|
+
"type": "string",
|
|
23285
|
+
"required": false,
|
|
23286
|
+
"description": "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."
|
|
23287
|
+
},
|
|
23282
23288
|
{
|
|
23283
23289
|
"name": "title",
|
|
23284
23290
|
"type": "string",
|
|
@@ -24017,7 +24023,7 @@ export const operations = [
|
|
|
24017
24023
|
"resource": "studio.works.reviewSettings",
|
|
24018
24024
|
"method": "retrieve",
|
|
24019
24025
|
"summary": "Read the review settings of a work",
|
|
24020
|
-
"description": "Read how this work is reviewed: the
|
|
24026
|
+
"description": "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.",
|
|
24021
24027
|
"http": "GET",
|
|
24022
24028
|
"path": "/studio/v1/works/{work}/review-settings",
|
|
24023
24029
|
"streaming": "no",
|
|
@@ -24034,8 +24040,8 @@ export const operations = [
|
|
|
24034
24040
|
{
|
|
24035
24041
|
"resource": "studio.works.reviewSettings",
|
|
24036
24042
|
"method": "update",
|
|
24037
|
-
"summary": "Change
|
|
24038
|
-
"description": "Change
|
|
24043
|
+
"summary": "Change how many rounds a work may take",
|
|
24044
|
+
"description": "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.",
|
|
24039
24045
|
"http": "PATCH",
|
|
24040
24046
|
"path": "/studio/v1/works/{work}/review-settings",
|
|
24041
24047
|
"streaming": "no",
|
|
@@ -24057,13 +24063,6 @@ export const operations = [
|
|
|
24057
24063
|
"required": true,
|
|
24058
24064
|
"description": "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."
|
|
24059
24065
|
},
|
|
24060
|
-
{
|
|
24061
|
-
"name": "seats",
|
|
24062
|
-
"type": "array",
|
|
24063
|
-
"itemType": "object",
|
|
24064
|
-
"required": false,
|
|
24065
|
-
"description": "Seats the panel should have from now on, replacing the current seats whole; leave the field out to keep the current panel."
|
|
24066
|
-
},
|
|
24067
24066
|
{
|
|
24068
24067
|
"name": "max_rounds",
|
|
24069
24068
|
"type": "number",
|
|
@@ -24073,11 +24072,142 @@ export const operations = [
|
|
|
24073
24072
|
]
|
|
24074
24073
|
}
|
|
24075
24074
|
},
|
|
24075
|
+
{
|
|
24076
|
+
"resource": "studio.works.reviewers",
|
|
24077
|
+
"method": "list",
|
|
24078
|
+
"summary": "List the reviewers of a work",
|
|
24079
|
+
"description": "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.",
|
|
24080
|
+
"http": "GET",
|
|
24081
|
+
"path": "/studio/v1/works/{work}/reviewers",
|
|
24082
|
+
"streaming": "no",
|
|
24083
|
+
"pagination": false,
|
|
24084
|
+
"pathParams": [
|
|
24085
|
+
{
|
|
24086
|
+
"name": "work",
|
|
24087
|
+
"sdkName": "work",
|
|
24088
|
+
"description": "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."
|
|
24089
|
+
}
|
|
24090
|
+
],
|
|
24091
|
+
"query": [
|
|
24092
|
+
{
|
|
24093
|
+
"name": "page_size",
|
|
24094
|
+
"type": "integer",
|
|
24095
|
+
"required": false,
|
|
24096
|
+
"description": "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."
|
|
24097
|
+
},
|
|
24098
|
+
{
|
|
24099
|
+
"name": "page_token",
|
|
24100
|
+
"type": "string",
|
|
24101
|
+
"required": false,
|
|
24102
|
+
"description": "Cursor from the previous answer's next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset."
|
|
24103
|
+
}
|
|
24104
|
+
]
|
|
24105
|
+
},
|
|
24106
|
+
{
|
|
24107
|
+
"resource": "studio.works.reviewers",
|
|
24108
|
+
"method": "create",
|
|
24109
|
+
"summary": "Add a reviewer to a work",
|
|
24110
|
+
"description": "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.",
|
|
24111
|
+
"http": "POST",
|
|
24112
|
+
"path": "/studio/v1/works/{work}/reviewers",
|
|
24113
|
+
"streaming": "no",
|
|
24114
|
+
"pagination": false,
|
|
24115
|
+
"pathParams": [
|
|
24116
|
+
{
|
|
24117
|
+
"name": "work",
|
|
24118
|
+
"sdkName": "work",
|
|
24119
|
+
"description": "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."
|
|
24120
|
+
}
|
|
24121
|
+
],
|
|
24122
|
+
"query": [],
|
|
24123
|
+
"body": {
|
|
24124
|
+
"required": true,
|
|
24125
|
+
"fields": [
|
|
24126
|
+
{
|
|
24127
|
+
"name": "agent",
|
|
24128
|
+
"type": "string",
|
|
24129
|
+
"required": true,
|
|
24130
|
+
"description": "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."
|
|
24131
|
+
},
|
|
24132
|
+
{
|
|
24133
|
+
"name": "kind",
|
|
24134
|
+
"type": "string",
|
|
24135
|
+
"enum": [
|
|
24136
|
+
"expert",
|
|
24137
|
+
"audience"
|
|
24138
|
+
],
|
|
24139
|
+
"required": true,
|
|
24140
|
+
"description": "Kind this reviewer reviews as on this roster: expert writes a scored report, audience fills a screening card."
|
|
24141
|
+
}
|
|
24142
|
+
]
|
|
24143
|
+
}
|
|
24144
|
+
},
|
|
24145
|
+
{
|
|
24146
|
+
"resource": "studio.works.reviewers",
|
|
24147
|
+
"method": "delete",
|
|
24148
|
+
"summary": "Remove a reviewer from a work",
|
|
24149
|
+
"description": "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.",
|
|
24150
|
+
"http": "DELETE",
|
|
24151
|
+
"path": "/studio/v1/works/{work}/reviewers/{agent}",
|
|
24152
|
+
"streaming": "no",
|
|
24153
|
+
"pagination": false,
|
|
24154
|
+
"pathParams": [
|
|
24155
|
+
{
|
|
24156
|
+
"name": "work",
|
|
24157
|
+
"sdkName": "work",
|
|
24158
|
+
"description": "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."
|
|
24159
|
+
},
|
|
24160
|
+
{
|
|
24161
|
+
"name": "agent",
|
|
24162
|
+
"sdkName": "agent",
|
|
24163
|
+
"description": "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."
|
|
24164
|
+
}
|
|
24165
|
+
],
|
|
24166
|
+
"query": []
|
|
24167
|
+
},
|
|
24168
|
+
{
|
|
24169
|
+
"resource": "studio.works.reviewers",
|
|
24170
|
+
"method": "update",
|
|
24171
|
+
"summary": "Change a reviewer's kind",
|
|
24172
|
+
"description": "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.",
|
|
24173
|
+
"http": "PATCH",
|
|
24174
|
+
"path": "/studio/v1/works/{work}/reviewers/{agent}",
|
|
24175
|
+
"streaming": "no",
|
|
24176
|
+
"pagination": false,
|
|
24177
|
+
"pathParams": [
|
|
24178
|
+
{
|
|
24179
|
+
"name": "work",
|
|
24180
|
+
"sdkName": "work",
|
|
24181
|
+
"description": "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."
|
|
24182
|
+
},
|
|
24183
|
+
{
|
|
24184
|
+
"name": "agent",
|
|
24185
|
+
"sdkName": "agent",
|
|
24186
|
+
"description": "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."
|
|
24187
|
+
}
|
|
24188
|
+
],
|
|
24189
|
+
"query": [],
|
|
24190
|
+
"body": {
|
|
24191
|
+
"required": true,
|
|
24192
|
+
"fields": [
|
|
24193
|
+
{
|
|
24194
|
+
"name": "kind",
|
|
24195
|
+
"type": "string",
|
|
24196
|
+
"enum": [
|
|
24197
|
+
"expert",
|
|
24198
|
+
"audience"
|
|
24199
|
+
],
|
|
24200
|
+
"required": true,
|
|
24201
|
+
"description": "Kind this reviewer reviews as from now on; rounds already sent keep the kind they were sent with."
|
|
24202
|
+
}
|
|
24203
|
+
]
|
|
24204
|
+
}
|
|
24205
|
+
},
|
|
24076
24206
|
{
|
|
24077
24207
|
"resource": "studio.works.reviews",
|
|
24078
24208
|
"method": "list",
|
|
24079
24209
|
"summary": "List the blind review rounds of a work",
|
|
24080
|
-
"description": "List the review rounds of one work, newest round first, each with its draft, round number, status
|
|
24210
|
+
"description": "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.",
|
|
24081
24211
|
"http": "GET",
|
|
24082
24212
|
"path": "/studio/v1/works/{work}/reviews",
|
|
24083
24213
|
"streaming": "no",
|
|
@@ -24114,7 +24244,7 @@ export const operations = [
|
|
|
24114
24244
|
"resource": "studio.works.reviews",
|
|
24115
24245
|
"method": "create",
|
|
24116
24246
|
"summary": "Send a draft to blind review",
|
|
24117
|
-
"description": "Send one draft of this work to the blind review centre, which freezes the draft's content revision as it is now
|
|
24247
|
+
"description": "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.",
|
|
24118
24248
|
"http": "POST",
|
|
24119
24249
|
"path": "/studio/v1/works/{work}/reviews",
|
|
24120
24250
|
"streaming": "no",
|
|
@@ -24166,7 +24296,7 @@ export const operations = [
|
|
|
24166
24296
|
"resource": "studio.works.reviews",
|
|
24167
24297
|
"method": "retrieve",
|
|
24168
24298
|
"summary": "Read one blind review round",
|
|
24169
|
-
"description": "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
|
|
24299
|
+
"description": "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.",
|
|
24170
24300
|
"http": "GET",
|
|
24171
24301
|
"path": "/studio/v1/works/{work}/reviews/{review}",
|
|
24172
24302
|
"streaming": "no",
|
|
@@ -24180,7 +24310,7 @@ export const operations = [
|
|
|
24180
24310
|
{
|
|
24181
24311
|
"name": "review",
|
|
24182
24312
|
"sdkName": "review",
|
|
24183
|
-
"description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list
|
|
24313
|
+
"description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list."
|
|
24184
24314
|
}
|
|
24185
24315
|
],
|
|
24186
24316
|
"query": [
|
|
@@ -24196,40 +24326,6 @@ export const operations = [
|
|
|
24196
24326
|
}
|
|
24197
24327
|
]
|
|
24198
24328
|
},
|
|
24199
|
-
{
|
|
24200
|
-
"resource": "studio.works.reviews",
|
|
24201
|
-
"method": "appeal",
|
|
24202
|
-
"summary": "Appeal a decided review round",
|
|
24203
|
-
"description": "Appeal the outcome of a round: the centre draws one more reviewer of the same kind and puts that reviewer's answer beside the existing ones, without telling them the earlier outcome. Use it once, when the sender disagrees with the decision; the reason is recorded for the review centre, and the sender cannot choose the new reviewer. The round goes back to status reviewing and its id stays the same, so read it again afterwards. Each round can be appealed once: a second call for the same round answers REVIEW_ALREADY_APPEALED. Only a decided round can be appealed, so a round that is still reviewing or was cancelled answers REVIEW_IN_PROGRESS or stays cancelled. The extra reviewer's session is billed like any other reviewer session.",
|
|
24204
|
-
"http": "POST",
|
|
24205
|
-
"path": "/studio/v1/works/{work}/reviews/{review}:appeal",
|
|
24206
|
-
"streaming": "no",
|
|
24207
|
-
"pagination": false,
|
|
24208
|
-
"pathParams": [
|
|
24209
|
-
{
|
|
24210
|
-
"name": "work",
|
|
24211
|
-
"sdkName": "work",
|
|
24212
|
-
"description": "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."
|
|
24213
|
-
},
|
|
24214
|
-
{
|
|
24215
|
-
"name": "review",
|
|
24216
|
-
"sdkName": "review",
|
|
24217
|
-
"description": "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."
|
|
24218
|
-
}
|
|
24219
|
-
],
|
|
24220
|
-
"query": [],
|
|
24221
|
-
"body": {
|
|
24222
|
-
"required": true,
|
|
24223
|
-
"fields": [
|
|
24224
|
-
{
|
|
24225
|
-
"name": "reason",
|
|
24226
|
-
"type": "string",
|
|
24227
|
-
"required": true,
|
|
24228
|
-
"description": "Reason for the appeal, recorded for the review centre; it does not reach the reviewers and cannot name which reviewer to draw."
|
|
24229
|
-
}
|
|
24230
|
-
]
|
|
24231
|
-
}
|
|
24232
|
-
},
|
|
24233
24329
|
{
|
|
24234
24330
|
"resource": "studio.works.reviews",
|
|
24235
24331
|
"method": "cancel",
|
|
@@ -24248,7 +24344,7 @@ export const operations = [
|
|
|
24248
24344
|
{
|
|
24249
24345
|
"name": "review",
|
|
24250
24346
|
"sdkName": "review",
|
|
24251
|
-
"description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list
|
|
24347
|
+
"description": "Blind review round being addressed, by its rv_ identifier from the send answer or from the round list."
|
|
24252
24348
|
}
|
|
24253
24349
|
],
|
|
24254
24350
|
"query": []
|
|
@@ -25204,7 +25300,7 @@ export const operations = [
|
|
|
25204
25300
|
"name": "filter",
|
|
25205
25301
|
"type": "string",
|
|
25206
25302
|
"required": false,
|
|
25207
|
-
"description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, author, mentions, milestone, type, kind, assignee-kind, in and sort; write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
|
|
25303
|
+
"description": "Search qualifier subset: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort (owner:<subject>|none|*|me and no:owner match the single ticket owner; assignee: matches the GitHub-compatible assignees); write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS. Passed unchanged to the service."
|
|
25208
25304
|
}
|
|
25209
25305
|
]
|
|
25210
25306
|
},
|