@deepraxis/sdk 0.1.1-dev.441fd40 → 0.1.1-dev.44bea19
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 +37 -1
- package/README.md +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +84 -5
- package/dist/generated/sdk.gen.js +235 -4
- package/dist/generated/types.gen.d.ts +2196 -309
- package/dist/helpers/browser-actions.d.ts +84 -0
- package/dist/helpers/browser-actions.js +141 -0
- package/dist/helpers/browser-connect.d.ts +14 -2
- package/dist/helpers/browser-connect.js +156 -4
- package/dist/helpers/browser-decisions.d.ts +15 -0
- package/dist/helpers/browser-decisions.js +14 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +20 -11
- package/dist/operations.generated.d.ts +355 -10
- package/dist/operations.generated.js +465 -10
- package/dist/resources.generated.d.ts +52 -0
- package/dist/resources.generated.js +21 -0
- package/package.json +1 -1
|
@@ -534,7 +534,7 @@ export type BrowserError = {
|
|
|
534
534
|
statusCode: number;
|
|
535
535
|
error: string;
|
|
536
536
|
message: string;
|
|
537
|
-
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN';
|
|
537
|
+
code: 'INVALID_PARAMS' | 'PERMISSION_DENIED' | 'NOT_IMPLEMENTED' | 'INTERNAL' | 'UNAUTHENTICATED' | 'CONNECT_SIGNATURE_INVALID' | 'SESSION_NOT_FOUND' | 'SESSION_ENDED' | 'SESSION_INVALID_STATE' | 'CONTEXT_NOT_FOUND' | 'CONTEXT_LOCKED' | 'HANDOFF_NOT_PENDING' | 'CONCURRENCY_LIMIT' | 'RATE_LIMITED' | 'INSUFFICIENT_BALANCE' | 'QUOTA_EXHAUSTED' | 'ACCOUNT_SUSPENDED' | 'PROVIDER_UNSUPPORTED' | 'PROVIDER_CAPACITY' | 'PROVIDER_FAILED' | 'SERVICE_UNAVAILABLE' | 'PARENT_NOT_FOUND' | 'INVALID_FILTER' | 'INVALID_PAGE_TOKEN' | 'ACTION_TAB_NOT_FOUND' | 'ACTION_NO_TAB' | 'ACTION_REF_STALE' | 'ACTION_FAILED' | 'ACTION_TIMEOUT' | 'ACTION_RESULT_TOO_LARGE';
|
|
538
538
|
};
|
|
539
539
|
export type BrowserSession = {
|
|
540
540
|
/**
|
|
@@ -12969,6 +12969,32 @@ export type CutMixAnalysis = {
|
|
|
12969
12969
|
*/
|
|
12970
12970
|
duration: number;
|
|
12971
12971
|
}>;
|
|
12972
|
+
/**
|
|
12973
|
+
* Where the music swells in a pause between sentences — the voice pauses for at most 3 seconds and the music rises 4 dB or more above its level under the speech on either side. That is a duck letting go between sentences and is heard as pumping; give the duck a longer hold, or use the default occupancy duck under continuous narration.
|
|
12974
|
+
*/
|
|
12975
|
+
music_swells?: Array<{
|
|
12976
|
+
/**
|
|
12977
|
+
* Interval start, in seconds relative to the measured range.
|
|
12978
|
+
*/
|
|
12979
|
+
start: number;
|
|
12980
|
+
/**
|
|
12981
|
+
* Interval length in whole seconds.
|
|
12982
|
+
*/
|
|
12983
|
+
duration: number;
|
|
12984
|
+
}>;
|
|
12985
|
+
/**
|
|
12986
|
+
* The music bed against the voice, as one move to make. Music should sit about 18 LU under the voice (15–24 is fine); a bed too loud for the voice is what makes a duck pump, because the music is pulled down hard under every sentence and springs back in every pause. Null when the range lacks either a voice or a music role.
|
|
12987
|
+
*/
|
|
12988
|
+
music_balance?: {
|
|
12989
|
+
/**
|
|
12990
|
+
* How many LU the music's integrated loudness sits under the voice's.
|
|
12991
|
+
*/
|
|
12992
|
+
music_below_voice_lu: number;
|
|
12993
|
+
/**
|
|
12994
|
+
* The dB to change the music track's volume by to sit 18 LU under the voice (negative lowers it); 0 when it already sits 15–24 LU under.
|
|
12995
|
+
*/
|
|
12996
|
+
adjust_music_db: number;
|
|
12997
|
+
} | null;
|
|
12972
12998
|
};
|
|
12973
12999
|
};
|
|
12974
13000
|
/**
|
|
@@ -12988,7 +13014,7 @@ export type CutAnalysisInput = {
|
|
|
12988
13014
|
*/
|
|
12989
13015
|
from?: number;
|
|
12990
13016
|
/**
|
|
12991
|
-
* Range end for kind mix, in seconds on the project clock, exclusive. A range longer than 120 seconds is refused; request several ranges instead.
|
|
13017
|
+
* Range end for kind mix, in seconds on the project clock, exclusive. An end up to 0.05 s past the timeline's end (a rounded duration) is read as the end; further past is refused. A range longer than 120 seconds is refused; request several ranges instead.
|
|
12992
13018
|
*/
|
|
12993
13019
|
to?: number;
|
|
12994
13020
|
/**
|
|
@@ -13141,9 +13167,9 @@ export type CutExport = {
|
|
|
13141
13167
|
*/
|
|
13142
13168
|
output: CutExportOutput;
|
|
13143
13169
|
/**
|
|
13144
|
-
*
|
|
13170
|
+
* Library the finished video is imported into. Present only when the request named a binding or a folder; an export that named neither is delivered as a file and has no target.
|
|
13145
13171
|
*/
|
|
13146
|
-
target
|
|
13172
|
+
target?: {
|
|
13147
13173
|
/**
|
|
13148
13174
|
* Project binding alias chosen for the output.
|
|
13149
13175
|
*/
|
|
@@ -13229,7 +13255,28 @@ export type CutExport = {
|
|
|
13229
13255
|
*/
|
|
13230
13256
|
poster_at?: number;
|
|
13231
13257
|
/**
|
|
13232
|
-
*
|
|
13258
|
+
* The finished video as a file. Present once the export is done, and kept even when the export was also imported into a library, where the file itself is then deleted and only its identity remains.
|
|
13259
|
+
*/
|
|
13260
|
+
file?: {
|
|
13261
|
+
/**
|
|
13262
|
+
* File id in the file service.
|
|
13263
|
+
*/
|
|
13264
|
+
id: string;
|
|
13265
|
+
/**
|
|
13266
|
+
* File name the export was uploaded under; the frozen display name with an .mp4 suffix.
|
|
13267
|
+
*/
|
|
13268
|
+
name: string;
|
|
13269
|
+
/**
|
|
13270
|
+
* Size of the finished video in bytes, as written by the renderer.
|
|
13271
|
+
*/
|
|
13272
|
+
bytes: number;
|
|
13273
|
+
/**
|
|
13274
|
+
* Short-lived reading link, valid one hour, minted on every read and never stored. Present only on a done export that was not imported: an imported export's file was deleted, so there is nothing to link to.
|
|
13275
|
+
*/
|
|
13276
|
+
url?: string;
|
|
13277
|
+
};
|
|
13278
|
+
/**
|
|
13279
|
+
* Output media reference, present only when the export was imported (the request named a binding or a folder).
|
|
13233
13280
|
*/
|
|
13234
13281
|
asset?: CutMediaRef;
|
|
13235
13282
|
/**
|
|
@@ -13284,7 +13331,7 @@ export type CutExport = {
|
|
|
13284
13331
|
*/
|
|
13285
13332
|
export type CutExportInput = {
|
|
13286
13333
|
/**
|
|
13287
|
-
* Optional destination path within the bound media library; omitted uses its default folder.
|
|
13334
|
+
* Optional destination path within the bound media library; omitted uses its default folder. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only: read file.url to download it.
|
|
13288
13335
|
*/
|
|
13289
13336
|
folder?: string;
|
|
13290
13337
|
/**
|
|
@@ -13296,7 +13343,7 @@ export type CutExportInput = {
|
|
|
13296
13343
|
*/
|
|
13297
13344
|
output?: CutExportOutput;
|
|
13298
13345
|
/**
|
|
13299
|
-
* Writable binding name used as the export destination; omission uses default_upload.
|
|
13346
|
+
* Writable binding name used as the export destination; omission uses default_upload. Naming a binding or a folder also imports the finished video into that media library as an asset. Omit both and the export is a file only; read file.url to download it.
|
|
13300
13347
|
*/
|
|
13301
13348
|
binding?: string;
|
|
13302
13349
|
revision?: CutRevision;
|
|
@@ -15281,7 +15328,7 @@ export type MediaLibrary = {
|
|
|
15281
15328
|
};
|
|
15282
15329
|
export type MediaMediaError = {
|
|
15283
15330
|
error: {
|
|
15284
|
-
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
|
|
15331
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
15285
15332
|
message: string;
|
|
15286
15333
|
details: string | null;
|
|
15287
15334
|
};
|
|
@@ -15364,6 +15411,10 @@ export type MediaPurgedLibrary = {
|
|
|
15364
15411
|
*/
|
|
15365
15412
|
purged: true;
|
|
15366
15413
|
};
|
|
15414
|
+
/**
|
|
15415
|
+
* What this asset is as a reusable material, as opposed to resource_type (its stored file category). Omitted on assets stored before this field existed and on raw assets that are not materials.
|
|
15416
|
+
*/
|
|
15417
|
+
export type MediaMaterialType = 'image' | 'video' | 'audio' | 'voice' | 'sticker' | 'font' | 'text_style' | 'text_template' | 'animation_preset' | 'lut' | 'transition_map';
|
|
15367
15418
|
/**
|
|
15368
15419
|
* Assets in this page, ordered by creation time descending.
|
|
15369
15420
|
*/
|
|
@@ -15614,6 +15665,34 @@ export type MediaAsset = {
|
|
|
15614
15665
|
*/
|
|
15615
15666
|
model: string;
|
|
15616
15667
|
};
|
|
15668
|
+
/**
|
|
15669
|
+
* What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
|
|
15670
|
+
*/
|
|
15671
|
+
material_type?: MediaMaterialType;
|
|
15672
|
+
/**
|
|
15673
|
+
* What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
|
|
15674
|
+
*/
|
|
15675
|
+
audio_role?: MediaAudioRole;
|
|
15676
|
+
/**
|
|
15677
|
+
* True when an image asset contains animation, such as an animated GIF or animated WebP. Omitted for assets that are not animated images.
|
|
15678
|
+
*/
|
|
15679
|
+
animated?: true;
|
|
15680
|
+
/**
|
|
15681
|
+
* Asset this one was edited from; null when it was generated or uploaded rather than edited. Use assets.lineage for the whole tree.
|
|
15682
|
+
*/
|
|
15683
|
+
derived_from?: MediaAssetId | null;
|
|
15684
|
+
/**
|
|
15685
|
+
* Asset at the root of this asset’s edit tree; equals asset_id when this asset is itself a root. Omitted on assets stored before this field existed.
|
|
15686
|
+
*/
|
|
15687
|
+
root_id?: MediaAssetId;
|
|
15688
|
+
/**
|
|
15689
|
+
* True when the bytes carry an AI-generated content label and this asset was produced by a model. False for uploaded and imported assets.
|
|
15690
|
+
*/
|
|
15691
|
+
ai_generated?: boolean;
|
|
15692
|
+
/**
|
|
15693
|
+
* How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
|
|
15694
|
+
*/
|
|
15695
|
+
provenance?: MediaProvenance;
|
|
15617
15696
|
};
|
|
15618
15697
|
/**
|
|
15619
15698
|
* Receipt confirming that the asset was deleted.
|
|
@@ -15761,6 +15840,17 @@ export type MediaJob = {
|
|
|
15761
15840
|
* Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
|
|
15762
15841
|
*/
|
|
15763
15842
|
status: MediaJobStatus;
|
|
15843
|
+
type?: MediaGenerationType;
|
|
15844
|
+
operation?: MediaGenerationOperation;
|
|
15845
|
+
source_asset_id?: MediaAssetId;
|
|
15846
|
+
/**
|
|
15847
|
+
* Fraction of this job already processed, from 0 to 1. Poll the job or read its done and total counts to observe progress; do not treat this value as a percentage.
|
|
15848
|
+
*/
|
|
15849
|
+
progress?: number;
|
|
15850
|
+
/**
|
|
15851
|
+
* Why a queued generation job has not started yet. queue_reason is omitted once the job starts.
|
|
15852
|
+
*/
|
|
15853
|
+
queue_reason?: 'concurrency' | 'provider_throttled';
|
|
15764
15854
|
/**
|
|
15765
15855
|
* Number of distinct assets selected when the job was created.
|
|
15766
15856
|
*/
|
|
@@ -15940,6 +16030,27 @@ export type MediaDeliveryToken = {
|
|
|
15940
16030
|
*/
|
|
15941
16031
|
expires_at: string;
|
|
15942
16032
|
};
|
|
16033
|
+
/**
|
|
16034
|
+
* Identifier of a library belonging to the caller.
|
|
16035
|
+
*/
|
|
16036
|
+
export type MediaLibraryId = string;
|
|
16037
|
+
/**
|
|
16038
|
+
* The edit tree containing one asset: the root it descends from, the asset asked about, and every step between them, including deleted assets.
|
|
16039
|
+
*/
|
|
16040
|
+
export type MediaLineageTree = {
|
|
16041
|
+
/**
|
|
16042
|
+
* Asset at the root of this tree, the original the rest were edited from; equals focus_id when the asset is itself a root.
|
|
16043
|
+
*/
|
|
16044
|
+
root_id: MediaAssetId;
|
|
16045
|
+
/**
|
|
16046
|
+
* Asset this tree was requested for.
|
|
16047
|
+
*/
|
|
16048
|
+
focus_id: MediaAssetId;
|
|
16049
|
+
/**
|
|
16050
|
+
* Every asset in the tree, including the root and the focused asset; deleted assets are included so the tree stays connected.
|
|
16051
|
+
*/
|
|
16052
|
+
nodes: Array<MediaLineageNode>;
|
|
16053
|
+
};
|
|
15943
16054
|
export type MediaFailureSummary = {
|
|
15944
16055
|
/**
|
|
15945
16056
|
* Number of current failed understanding entries, excluding deleted assets and superseded versions.
|
|
@@ -16217,6 +16328,23 @@ export type OntologyUpdateNodeInput = {
|
|
|
16217
16328
|
*/
|
|
16218
16329
|
description?: string;
|
|
16219
16330
|
};
|
|
16331
|
+
/**
|
|
16332
|
+
* The subgraph around one node, bounded by the request's depth and limit. It is not a page, so it carries no cursor; truncated says whether there was more.
|
|
16333
|
+
*/
|
|
16334
|
+
export type OntologyNeighborhood = {
|
|
16335
|
+
/**
|
|
16336
|
+
* The nodes in BFS order — the start node first, then each hop ordered by node id, so the same request against the same graph returns the same sequence. A node you may reach but not read appears as a restricted entry.
|
|
16337
|
+
*/
|
|
16338
|
+
nodes: Array<OntologyNode | OntologyRestrictedNode>;
|
|
16339
|
+
/**
|
|
16340
|
+
* The relations whose both ends are in nodes, ordered by relation id. A relation touching a node you may not read is withheld, so this list never reveals content nodes.retrieve would withhold.
|
|
16341
|
+
*/
|
|
16342
|
+
relations: Array<OntologyRelation>;
|
|
16343
|
+
/**
|
|
16344
|
+
* True when the node limit stopped the walk before it reached its depth, so nodes is a sample rather than the whole neighborhood; raise limit or lower depth for a complete answer within the bounds.
|
|
16345
|
+
*/
|
|
16346
|
+
truncated: boolean;
|
|
16347
|
+
};
|
|
16220
16348
|
/**
|
|
16221
16349
|
* The survivor the merged node folds into.
|
|
16222
16350
|
*/
|
|
@@ -18413,6 +18541,198 @@ export type StudioThemeUpdateInput = {
|
|
|
18413
18541
|
footer?: string;
|
|
18414
18542
|
card?: StudioCardSettings;
|
|
18415
18543
|
};
|
|
18544
|
+
/**
|
|
18545
|
+
* The rendition to create from the draft in the path.
|
|
18546
|
+
*/
|
|
18547
|
+
export type StudioRenditionCreateInput = {
|
|
18548
|
+
/**
|
|
18549
|
+
* Versioned platform key from the platform list. Export platforms today are markdown@1, docx@1 and xiaohongshu@1; a platform that only publishes to an account answers PLATFORM_NOT_AVAILABLE.
|
|
18550
|
+
*/
|
|
18551
|
+
platform: string;
|
|
18552
|
+
/**
|
|
18553
|
+
* Theme to render with, a thm_ identifier or a built-in key from the theme list; omit it to use the platform default.
|
|
18554
|
+
*/
|
|
18555
|
+
theme?: string;
|
|
18556
|
+
settings?: StudioRenditionSettings;
|
|
18557
|
+
/**
|
|
18558
|
+
* Whether to render in the same call. True returns a rendition that is already rendered, invalid or failed; false or omitted returns it pending, to be rendered by the render operation.
|
|
18559
|
+
*/
|
|
18560
|
+
render?: boolean;
|
|
18561
|
+
/**
|
|
18562
|
+
* Caller-chosen key that makes a repeated create return the first rendition instead of making another; use a new value for each distinct rendition.
|
|
18563
|
+
*/
|
|
18564
|
+
request_id?: string;
|
|
18565
|
+
};
|
|
18566
|
+
/**
|
|
18567
|
+
* The form of one draft for one platform: how it was rendered, what the render found, the parts and files it produced, and its export or publish state. Render state and publish state are separate: a rendition is rendered first and then exported.
|
|
18568
|
+
*/
|
|
18569
|
+
export type StudioRendition = {
|
|
18570
|
+
/**
|
|
18571
|
+
* Rendition identifier, the value the rendition path segment takes.
|
|
18572
|
+
*/
|
|
18573
|
+
id: string;
|
|
18574
|
+
/**
|
|
18575
|
+
* Resource kind marker, always studio.rendition for this shape.
|
|
18576
|
+
*/
|
|
18577
|
+
object: string;
|
|
18578
|
+
/**
|
|
18579
|
+
* Creation time in RFC 3339 UTC.
|
|
18580
|
+
*/
|
|
18581
|
+
create_time?: string;
|
|
18582
|
+
/**
|
|
18583
|
+
* Time of the last change to this rendition in RFC 3339 UTC.
|
|
18584
|
+
*/
|
|
18585
|
+
update_time?: string;
|
|
18586
|
+
/**
|
|
18587
|
+
* Console address of this rendition, which opens the work page on it.
|
|
18588
|
+
*/
|
|
18589
|
+
viewer_url?: string;
|
|
18590
|
+
/**
|
|
18591
|
+
* Identifier of the work this rendition belongs to.
|
|
18592
|
+
*/
|
|
18593
|
+
work: string;
|
|
18594
|
+
/**
|
|
18595
|
+
* Identifier of the draft this rendition is built from.
|
|
18596
|
+
*/
|
|
18597
|
+
draft: string;
|
|
18598
|
+
/**
|
|
18599
|
+
* Versioned platform key the rendition is for, such as xiaohongshu@1, docx@1 or markdown@1.
|
|
18600
|
+
*/
|
|
18601
|
+
platform: string;
|
|
18602
|
+
/**
|
|
18603
|
+
* File format the platform receives, decided by the platform.
|
|
18604
|
+
*/
|
|
18605
|
+
format: 'markdown' | 'text' | 'docx' | 'inline_html' | 'card_png' | 'post_text' | 'thread' | 'lexical_html' | 'epub' | 'video_meta';
|
|
18606
|
+
/**
|
|
18607
|
+
* Theme the rendition uses, a thm_ identifier or a built-in theme key; null means the platform default.
|
|
18608
|
+
*/
|
|
18609
|
+
theme?: string | null;
|
|
18610
|
+
settings?: StudioRenditionSettings;
|
|
18611
|
+
/**
|
|
18612
|
+
* Content revision of the draft this rendition was last rendered from; compared with the draft to derive stale.
|
|
18613
|
+
*/
|
|
18614
|
+
source_revision: number;
|
|
18615
|
+
/**
|
|
18616
|
+
* True when the draft has changed past source_revision. A stale rendition cannot be exported (RENDITION_STALE); call the render operation to rebuild it.
|
|
18617
|
+
*/
|
|
18618
|
+
stale: boolean;
|
|
18619
|
+
/**
|
|
18620
|
+
* Where the render stands.
|
|
18621
|
+
*/
|
|
18622
|
+
render_state: 'pending' | 'rendering' | 'rendered' | 'invalid' | 'failed';
|
|
18623
|
+
/**
|
|
18624
|
+
* Findings of the last render, errors and warnings; empty when there are none.
|
|
18625
|
+
*/
|
|
18626
|
+
issues: Array<StudioValidationIssue>;
|
|
18627
|
+
/**
|
|
18628
|
+
* The parts of the rendition in order: card pages and a final copy part for a card rendition. Empty before the first successful render.
|
|
18629
|
+
*/
|
|
18630
|
+
parts: Array<StudioRenditionPart>;
|
|
18631
|
+
/**
|
|
18632
|
+
* Identifiers of the whole-rendition files, such as the DOCX, or the ZIP a card rendition gains when exported. Use the content operation to download one.
|
|
18633
|
+
*/
|
|
18634
|
+
files: Array<string>;
|
|
18635
|
+
/**
|
|
18636
|
+
* Source images already uploaded to a platform, keyed by file identifier; empty for an export.
|
|
18637
|
+
*/
|
|
18638
|
+
assets?: {
|
|
18639
|
+
[key: string]: {
|
|
18640
|
+
/**
|
|
18641
|
+
* Media identifier or address on the platform.
|
|
18642
|
+
*/
|
|
18643
|
+
remote?: string;
|
|
18644
|
+
/**
|
|
18645
|
+
* Kind of media on the platform, such as image.
|
|
18646
|
+
*/
|
|
18647
|
+
kind?: string;
|
|
18648
|
+
/**
|
|
18649
|
+
* Upload time in RFC 3339 UTC.
|
|
18650
|
+
*/
|
|
18651
|
+
upload_time?: string;
|
|
18652
|
+
};
|
|
18653
|
+
};
|
|
18654
|
+
/**
|
|
18655
|
+
* How closely the Console preview matches what the platform shows.
|
|
18656
|
+
*/
|
|
18657
|
+
preview_fidelity?: 'exact' | 'approximate' | 'none';
|
|
18658
|
+
/**
|
|
18659
|
+
* Export and publish state, kept apart from the render state.
|
|
18660
|
+
*/
|
|
18661
|
+
publish: {
|
|
18662
|
+
/**
|
|
18663
|
+
* How this platform receives the rendition.
|
|
18664
|
+
*/
|
|
18665
|
+
method: 'api' | 'draft_box' | 'export';
|
|
18666
|
+
/**
|
|
18667
|
+
* Where export or publishing stands; every rendition starts at none and an export ends at exported.
|
|
18668
|
+
*/
|
|
18669
|
+
state: 'none' | 'scheduled' | 'exporting' | 'exported' | 'drafting' | 'drafted' | 'publishing' | 'published' | 'partial' | 'failed' | 'blocked_auth' | 'cancelled';
|
|
18670
|
+
/**
|
|
18671
|
+
* Channel account used for publishing; null for an export.
|
|
18672
|
+
*/
|
|
18673
|
+
channel?: string | null;
|
|
18674
|
+
/**
|
|
18675
|
+
* Scheduled publish time in RFC 3339 UTC; null for an export.
|
|
18676
|
+
*/
|
|
18677
|
+
scheduled_time?: string | null;
|
|
18678
|
+
/**
|
|
18679
|
+
* Time until which a running render or export holds the rendition; a second render or export before then answers REVISION_CONFLICT.
|
|
18680
|
+
*/
|
|
18681
|
+
lease_until?: string | null;
|
|
18682
|
+
/**
|
|
18683
|
+
* When the export or publish finished in RFC 3339 UTC; null until then.
|
|
18684
|
+
*/
|
|
18685
|
+
publish_time?: string | null;
|
|
18686
|
+
/**
|
|
18687
|
+
* Who ran the export or publish; null until then.
|
|
18688
|
+
*/
|
|
18689
|
+
by?: StudioActor;
|
|
18690
|
+
/**
|
|
18691
|
+
* Findings of the checks run before publishing, such as channel authorization.
|
|
18692
|
+
*/
|
|
18693
|
+
preflight?: Array<StudioValidationIssue>;
|
|
18694
|
+
};
|
|
18695
|
+
};
|
|
18696
|
+
/**
|
|
18697
|
+
* One page of renditions with the cursor that fetches the next page.
|
|
18698
|
+
*/
|
|
18699
|
+
export type StudioRenditionPage = {
|
|
18700
|
+
/**
|
|
18701
|
+
* Renditions on this page.
|
|
18702
|
+
*/
|
|
18703
|
+
items: Array<StudioRendition>;
|
|
18704
|
+
/**
|
|
18705
|
+
* Cursor for the next page, empty when this was the last one; pass it back as page_token unchanged.
|
|
18706
|
+
*/
|
|
18707
|
+
next_page_token?: string;
|
|
18708
|
+
};
|
|
18709
|
+
/**
|
|
18710
|
+
* The change to one rendition: the fields named by the update mask.
|
|
18711
|
+
*/
|
|
18712
|
+
export type StudioRenditionUpdateInput = {
|
|
18713
|
+
/**
|
|
18714
|
+
* Field paths this call changes: theme, settings or both; a field left out keeps its value.
|
|
18715
|
+
*/
|
|
18716
|
+
update_mask: Array<string>;
|
|
18717
|
+
/**
|
|
18718
|
+
* New theme, a thm_ identifier or a built-in key, used when theme is named in the update mask; render again to apply it.
|
|
18719
|
+
*/
|
|
18720
|
+
theme?: string;
|
|
18721
|
+
settings?: StudioRenditionSettings;
|
|
18722
|
+
};
|
|
18723
|
+
/**
|
|
18724
|
+
* A signed, short-lived download address for one file of a rendition.
|
|
18725
|
+
*/
|
|
18726
|
+
export type StudioRenditionContentUrl = {
|
|
18727
|
+
/**
|
|
18728
|
+
* Signed URL that downloads the file with a plain GET and no further credentials; treat it as a secret.
|
|
18729
|
+
*/
|
|
18730
|
+
url: string;
|
|
18731
|
+
/**
|
|
18732
|
+
* Time the URL stops working in RFC 3339 UTC; call the content operation again for a new one.
|
|
18733
|
+
*/
|
|
18734
|
+
expire_time: string;
|
|
18735
|
+
};
|
|
18416
18736
|
export type VaultVaultPage = {
|
|
18417
18737
|
/**
|
|
18418
18738
|
* Vaults in this page, ordered newest first.
|
|
@@ -29147,10 +29467,6 @@ export type MediaMediaModels = {
|
|
|
29147
29467
|
*/
|
|
29148
29468
|
readonly audio: string;
|
|
29149
29469
|
};
|
|
29150
|
-
/**
|
|
29151
|
-
* Identifier of a library belonging to the caller.
|
|
29152
|
-
*/
|
|
29153
|
-
export type MediaLibraryId = string;
|
|
29154
29470
|
/**
|
|
29155
29471
|
* Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
|
|
29156
29472
|
*/
|
|
@@ -29386,6 +29702,69 @@ export type MediaStoryboard = {
|
|
|
29386
29702
|
*/
|
|
29387
29703
|
tile_height: number;
|
|
29388
29704
|
};
|
|
29705
|
+
/**
|
|
29706
|
+
* What an audio asset is used for when material_type is audio. Music, effects and speech all use the same audio material type; this field separates them.
|
|
29707
|
+
*/
|
|
29708
|
+
export type MediaAudioRole = 'voice' | 'music' | 'sfx';
|
|
29709
|
+
/**
|
|
29710
|
+
* How this asset was generated or edited, recorded when the asset came from a generation or edit operation. Omitted on uploaded, imported and legacy assets.
|
|
29711
|
+
*/
|
|
29712
|
+
export type MediaProvenance = {
|
|
29713
|
+
/**
|
|
29714
|
+
* Generation or edit job that produced this asset; read it with assets and jobs to follow the operation.
|
|
29715
|
+
*/
|
|
29716
|
+
job_id: MediaJobId;
|
|
29717
|
+
/**
|
|
29718
|
+
* The generation or edit operation that produced this asset.
|
|
29719
|
+
*/
|
|
29720
|
+
operation: MediaGenerationOperation;
|
|
29721
|
+
/**
|
|
29722
|
+
* Prompt submitted for this operation, when the operation used one. Omitted for operations without a prompt, such as a plain edit.
|
|
29723
|
+
*/
|
|
29724
|
+
prompt?: string;
|
|
29725
|
+
/**
|
|
29726
|
+
* Assets this result was generated or edited from, each with the role it played. Empty when the operation used no reference asset.
|
|
29727
|
+
*/
|
|
29728
|
+
references: Array<MediaAssetReference>;
|
|
29729
|
+
/**
|
|
29730
|
+
* Model that performed the operation, as the model identifier Router reports.
|
|
29731
|
+
*/
|
|
29732
|
+
model: string;
|
|
29733
|
+
/**
|
|
29734
|
+
* Charge recorded for this operation, when pricing data is stored. Omitted when the operation was free or its cost was not recorded.
|
|
29735
|
+
*/
|
|
29736
|
+
cost?: {
|
|
29737
|
+
/**
|
|
29738
|
+
* Decimal amount charged for this operation, in the currency named by currency; a string, not a floating-point number.
|
|
29739
|
+
*/
|
|
29740
|
+
amount: string;
|
|
29741
|
+
/**
|
|
29742
|
+
* Currency code for amount.
|
|
29743
|
+
*/
|
|
29744
|
+
currency: string;
|
|
29745
|
+
};
|
|
29746
|
+
/**
|
|
29747
|
+
* Who started the operation this asset came from.
|
|
29748
|
+
*/
|
|
29749
|
+
actor: {
|
|
29750
|
+
/**
|
|
29751
|
+
* Whether the operation was started by a signed-in person or by an agent.
|
|
29752
|
+
*/
|
|
29753
|
+
kind: 'user' | 'agent';
|
|
29754
|
+
/**
|
|
29755
|
+
* Identifier of the person or agent that started the operation; pair it with kind to interpret it.
|
|
29756
|
+
*/
|
|
29757
|
+
id: string;
|
|
29758
|
+
/**
|
|
29759
|
+
* Session the operation was started from, when it came from a session. Omitted for operations started outside a session.
|
|
29760
|
+
*/
|
|
29761
|
+
session_id?: string;
|
|
29762
|
+
};
|
|
29763
|
+
/**
|
|
29764
|
+
* Automation run that performed the operation, when it came from a pipeline. Omitted when no pipeline was involved.
|
|
29765
|
+
*/
|
|
29766
|
+
pipeline_run_id?: string;
|
|
29767
|
+
};
|
|
29389
29768
|
/**
|
|
29390
29769
|
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
29391
29770
|
*/
|
|
@@ -29723,6 +30102,34 @@ export type MediaSearchAsset = {
|
|
|
29723
30102
|
*/
|
|
29724
30103
|
model: string;
|
|
29725
30104
|
};
|
|
30105
|
+
/**
|
|
30106
|
+
* What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
|
|
30107
|
+
*/
|
|
30108
|
+
material_type?: MediaMaterialType;
|
|
30109
|
+
/**
|
|
30110
|
+
* What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
|
|
30111
|
+
*/
|
|
30112
|
+
audio_role?: MediaAudioRole;
|
|
30113
|
+
/**
|
|
30114
|
+
* True when an image asset contains animation, such as an animated GIF or animated WebP. Omitted for assets that are not animated images.
|
|
30115
|
+
*/
|
|
30116
|
+
animated?: true;
|
|
30117
|
+
/**
|
|
30118
|
+
* Asset this one was edited from; null when it was generated or uploaded rather than edited. Use assets.lineage for the whole tree.
|
|
30119
|
+
*/
|
|
30120
|
+
derived_from?: MediaAssetId | null;
|
|
30121
|
+
/**
|
|
30122
|
+
* Asset at the root of this asset’s edit tree; equals asset_id when this asset is itself a root. Omitted on assets stored before this field existed.
|
|
30123
|
+
*/
|
|
30124
|
+
root_id?: MediaAssetId;
|
|
30125
|
+
/**
|
|
30126
|
+
* True when the bytes carry an AI-generated content label and this asset was produced by a model. False for uploaded and imported assets.
|
|
30127
|
+
*/
|
|
30128
|
+
ai_generated?: boolean;
|
|
30129
|
+
/**
|
|
30130
|
+
* How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
|
|
30131
|
+
*/
|
|
30132
|
+
provenance?: MediaProvenance;
|
|
29726
30133
|
};
|
|
29727
30134
|
/**
|
|
29728
30135
|
* A matching asset with its ranking score and supporting matches.
|
|
@@ -29744,8 +30151,24 @@ export type MediaSemanticHit = {
|
|
|
29744
30151
|
* Supporting content or metadata matches contributing to this asset’s hit.
|
|
29745
30152
|
*/
|
|
29746
30153
|
matches: Array<MediaSemanticMatch>;
|
|
30154
|
+
/**
|
|
30155
|
+
* How many other assets in this library matched as the same footage (the same file, or another export of the same Cut project) and were folded into this hit.
|
|
30156
|
+
*/
|
|
30157
|
+
similar_count?: number;
|
|
30158
|
+
/**
|
|
30159
|
+
* Asset ids folded into this hit, up to 10.
|
|
30160
|
+
*/
|
|
30161
|
+
similar_asset_ids?: Array<string>;
|
|
29747
30162
|
};
|
|
29748
|
-
|
|
30163
|
+
/**
|
|
30164
|
+
* Category of media a generation request produces.
|
|
30165
|
+
*/
|
|
30166
|
+
export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'sound_effect' | 'voice';
|
|
30167
|
+
/**
|
|
30168
|
+
* How this version of the asset came to exist: the generation or edit operation that produced it. generate and clone stand alone; the remaining values are editing operations.
|
|
30169
|
+
*/
|
|
30170
|
+
export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
|
|
30171
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
29749
30172
|
/**
|
|
29750
30173
|
* State of a requested video output.
|
|
29751
30174
|
*/
|
|
@@ -29793,6 +30216,35 @@ export type MediaMediaEvent = {
|
|
|
29793
30216
|
[key: string]: unknown;
|
|
29794
30217
|
};
|
|
29795
30218
|
};
|
|
30219
|
+
/**
|
|
30220
|
+
* One asset in the edit tree, with the step that produced it.
|
|
30221
|
+
*/
|
|
30222
|
+
export type MediaLineageNode = {
|
|
30223
|
+
/**
|
|
30224
|
+
* Asset this step of the edit tree produced; deleted assets are still listed so the tree stays connected.
|
|
30225
|
+
*/
|
|
30226
|
+
asset_id: MediaAssetId;
|
|
30227
|
+
/**
|
|
30228
|
+
* Asset this one was edited from; null for the root of the tree.
|
|
30229
|
+
*/
|
|
30230
|
+
parent_id: MediaAssetId | null;
|
|
30231
|
+
/**
|
|
30232
|
+
* The edit or generation operation that produced this asset; null when the asset has no recorded operation.
|
|
30233
|
+
*/
|
|
30234
|
+
operation: MediaGenerationOperation | null;
|
|
30235
|
+
/**
|
|
30236
|
+
* Prompt submitted for this operation, when the operation used one.
|
|
30237
|
+
*/
|
|
30238
|
+
prompt?: string;
|
|
30239
|
+
/**
|
|
30240
|
+
* Time this asset was created, in UTC.
|
|
30241
|
+
*/
|
|
30242
|
+
created_at: MediaIsoTimestamp;
|
|
30243
|
+
/**
|
|
30244
|
+
* True when this asset has been deleted; deleted assets remain in the tree so earlier steps stay reachable.
|
|
30245
|
+
*/
|
|
30246
|
+
deleted: boolean;
|
|
30247
|
+
};
|
|
29796
30248
|
export type MediaFailureGroup = {
|
|
29797
30249
|
/**
|
|
29798
30250
|
* Failure reason code. Unknown codes are retryable.
|
|
@@ -30362,6 +30814,11 @@ export type StudioDraftSummary = {
|
|
|
30362
30814
|
* Draft structure and property revision; pass it as expected_revision when changing the draft itself rather than a unit.
|
|
30363
30815
|
*/
|
|
30364
30816
|
revision: number;
|
|
30817
|
+
/**
|
|
30818
|
+
* Content revision of the draft; a draft derived from this one is stale once this passes its derivedFrom.revision.
|
|
30819
|
+
*/
|
|
30820
|
+
contentRevision: number;
|
|
30821
|
+
derivedFrom?: StudioDraftSource;
|
|
30365
30822
|
lastRendition?: StudioLastRendition;
|
|
30366
30823
|
};
|
|
30367
30824
|
/**
|
|
@@ -30396,6 +30853,10 @@ export type StudioWorkSummary = {
|
|
|
30396
30853
|
* Work this one was adapted from, or null when it was written from scratch; an adaptation keeps a link back to its source.
|
|
30397
30854
|
*/
|
|
30398
30855
|
adaptedFrom?: string;
|
|
30856
|
+
/**
|
|
30857
|
+
* Work revision as of the list projection; the list may trail a write by a few seconds, so read the work itself before using it as expected_revision.
|
|
30858
|
+
*/
|
|
30859
|
+
revision: number;
|
|
30399
30860
|
/**
|
|
30400
30861
|
* Last change time in RFC 3339 UTC, used to order the list newest first.
|
|
30401
30862
|
*/
|
|
@@ -30442,6 +30903,10 @@ export type StudioTodo = {
|
|
|
30442
30903
|
* The item in words, written to be shown to a person as is.
|
|
30443
30904
|
*/
|
|
30444
30905
|
text: string;
|
|
30906
|
+
/**
|
|
30907
|
+
* For a check_failed item, the key of the failing check, so a program can act on it without parsing the text; a unit that already has an item for it gets no separate check item.
|
|
30908
|
+
*/
|
|
30909
|
+
check?: string;
|
|
30445
30910
|
/**
|
|
30446
30911
|
* Suggested next call for this item, offered as guidance rather than a fixed script.
|
|
30447
30912
|
*/
|
|
@@ -30968,6 +31433,141 @@ export type StudioCardSettings = {
|
|
|
30968
31433
|
*/
|
|
30969
31434
|
fonts: Array<string>;
|
|
30970
31435
|
};
|
|
31436
|
+
/**
|
|
31437
|
+
* Per-rendition settings; each platform reads only the settings that apply to it and ignores the rest.
|
|
31438
|
+
*/
|
|
31439
|
+
export type StudioRenditionSettings = {
|
|
31440
|
+
/**
|
|
31441
|
+
* Whether external links become footnotes at the end of the article, for platforms that do not allow links in the text.
|
|
31442
|
+
*/
|
|
31443
|
+
footnote_links?: boolean;
|
|
31444
|
+
/**
|
|
31445
|
+
* How the posts of a thread are numbered.
|
|
31446
|
+
*/
|
|
31447
|
+
thread_numbering?: 'none' | 'n/' | 'n/m';
|
|
31448
|
+
/**
|
|
31449
|
+
* How a card rendition arranges its text cards and photos.
|
|
31450
|
+
*/
|
|
31451
|
+
cards?: {
|
|
31452
|
+
/**
|
|
31453
|
+
* Order of text cards and photos.
|
|
31454
|
+
*/
|
|
31455
|
+
layout: 'text_then_photos' | 'interleave' | 'photos_only';
|
|
31456
|
+
/**
|
|
31457
|
+
* Name of the draft property whose image becomes the cover card.
|
|
31458
|
+
*/
|
|
31459
|
+
cover_from_prop?: string;
|
|
31460
|
+
};
|
|
31461
|
+
/**
|
|
31462
|
+
* For a book format, the chapters to include.
|
|
31463
|
+
*/
|
|
31464
|
+
chapter_range?: {
|
|
31465
|
+
/**
|
|
31466
|
+
* First chapter number to include.
|
|
31467
|
+
*/
|
|
31468
|
+
from: number;
|
|
31469
|
+
/**
|
|
31470
|
+
* Last chapter number to include.
|
|
31471
|
+
*/
|
|
31472
|
+
to: number;
|
|
31473
|
+
};
|
|
31474
|
+
};
|
|
31475
|
+
/**
|
|
31476
|
+
* One finding of a render or a check: how serious it is, a stable code, and where it is.
|
|
31477
|
+
*/
|
|
31478
|
+
export type StudioValidationIssue = {
|
|
31479
|
+
/**
|
|
31480
|
+
* Whether the finding blocks export.
|
|
31481
|
+
*/
|
|
31482
|
+
severity: 'error' | 'warning';
|
|
31483
|
+
/**
|
|
31484
|
+
* Stable machine code such as draft_empty, heading_missing or render_unavailable; branch on this value, never on the message text.
|
|
31485
|
+
*/
|
|
31486
|
+
code: string;
|
|
31487
|
+
/**
|
|
31488
|
+
* Human-readable explanation of what was found, written to be shown as is.
|
|
31489
|
+
*/
|
|
31490
|
+
message: string;
|
|
31491
|
+
/**
|
|
31492
|
+
* Identifier of the unit the finding is about, when it is about one unit.
|
|
31493
|
+
*/
|
|
31494
|
+
unit?: string;
|
|
31495
|
+
/**
|
|
31496
|
+
* Identifier of the block inside that unit the finding is about, when it is about one block.
|
|
31497
|
+
*/
|
|
31498
|
+
block?: string;
|
|
31499
|
+
/**
|
|
31500
|
+
* A suggested repair when the check knows one.
|
|
31501
|
+
*/
|
|
31502
|
+
suggestion?: string;
|
|
31503
|
+
};
|
|
31504
|
+
/**
|
|
31505
|
+
* One part of a rendition: a card page, a thread post or a chapter, with the files rendered for it and, once published, where it landed.
|
|
31506
|
+
*/
|
|
31507
|
+
export type StudioRenditionPart = {
|
|
31508
|
+
/**
|
|
31509
|
+
* Position of this part in the rendition; pass it as the part query of the content operation.
|
|
31510
|
+
*/
|
|
31511
|
+
index: number;
|
|
31512
|
+
/**
|
|
31513
|
+
* Identifiers of the units this part was built from.
|
|
31514
|
+
*/
|
|
31515
|
+
units: Array<string>;
|
|
31516
|
+
/**
|
|
31517
|
+
* Text of this part when it carries text, such as the copy part of a card rendition, whose text starts with the note title.
|
|
31518
|
+
*/
|
|
31519
|
+
text?: string;
|
|
31520
|
+
/**
|
|
31521
|
+
* Identifiers of the files rendered for this part, such as one card PNG of 1080 by 1440 pixels; empty for a text-only part.
|
|
31522
|
+
*/
|
|
31523
|
+
files: Array<string>;
|
|
31524
|
+
/**
|
|
31525
|
+
* Identifier of the post on the platform, present only after the part was published to an account; always null for an export.
|
|
31526
|
+
*/
|
|
31527
|
+
remote_id?: string | null;
|
|
31528
|
+
/**
|
|
31529
|
+
* Link of the post on the platform, present only after the part was published to an account; always null for an export.
|
|
31530
|
+
*/
|
|
31531
|
+
remote_url?: string | null;
|
|
31532
|
+
/**
|
|
31533
|
+
* Where this part is in publishing; an exported part stays pending because nothing was sent to an account.
|
|
31534
|
+
*/
|
|
31535
|
+
publish_state: 'pending' | 'sending' | 'sent' | 'failed' | 'uncertain';
|
|
31536
|
+
/**
|
|
31537
|
+
* Why this part failed, present only when publish_state is failed.
|
|
31538
|
+
*/
|
|
31539
|
+
error?: {
|
|
31540
|
+
/**
|
|
31541
|
+
* Stable machine code of the failure.
|
|
31542
|
+
*/
|
|
31543
|
+
code: string;
|
|
31544
|
+
/**
|
|
31545
|
+
* Human-readable explanation of the failure.
|
|
31546
|
+
*/
|
|
31547
|
+
message: string;
|
|
31548
|
+
};
|
|
31549
|
+
/**
|
|
31550
|
+
* Hash of the content of this part, used to recognise a part that was already sent.
|
|
31551
|
+
*/
|
|
31552
|
+
content_hash?: string;
|
|
31553
|
+
};
|
|
31554
|
+
/**
|
|
31555
|
+
* Who made a change, so a person and an agent appear the same way in the record.
|
|
31556
|
+
*/
|
|
31557
|
+
export type StudioActor = {
|
|
31558
|
+
/**
|
|
31559
|
+
* Whether the change came from a person, an agent or the platform itself; an agent session through the API is recorded as an agent.
|
|
31560
|
+
*/
|
|
31561
|
+
kind?: 'user' | 'agent' | 'system';
|
|
31562
|
+
/**
|
|
31563
|
+
* Identifier of that actor, such as a user identifier or an agent session identifier.
|
|
31564
|
+
*/
|
|
31565
|
+
id?: string;
|
|
31566
|
+
/**
|
|
31567
|
+
* Display name of the actor when one is known, shown beside the change.
|
|
31568
|
+
*/
|
|
31569
|
+
label?: string;
|
|
31570
|
+
};
|
|
30971
31571
|
export type VaultVaultEvent = {
|
|
30972
31572
|
/**
|
|
30973
31573
|
* Unique identifier of this recorded audit event.
|
|
@@ -35309,6 +35909,14 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
|
|
|
35309
35909
|
* Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
|
|
35310
35910
|
*/
|
|
35311
35911
|
export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
|
|
35912
|
+
export type MediaAssetReference = {
|
|
35913
|
+
asset_id: MediaAssetId;
|
|
35914
|
+
role: MediaRefRole;
|
|
35915
|
+
/**
|
|
35916
|
+
* How strongly the reference asset influenced the result, from 0 to 1 on the Stability scale. Omitted when the model treats every reference equally.
|
|
35917
|
+
*/
|
|
35918
|
+
strength?: number;
|
|
35919
|
+
};
|
|
35312
35920
|
export type MediaTranscriptCorrection = {
|
|
35313
35921
|
/**
|
|
35314
35922
|
* Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
|
|
@@ -35546,6 +36154,23 @@ export type StudioBriefPoint = {
|
|
|
35546
36154
|
*/
|
|
35547
36155
|
text: string;
|
|
35548
36156
|
};
|
|
36157
|
+
/**
|
|
36158
|
+
* What a draft was derived from, kept with the revision it was built on so staleness can be decided without guessing.
|
|
36159
|
+
*/
|
|
36160
|
+
export type StudioDraftSource = {
|
|
36161
|
+
/**
|
|
36162
|
+
* What the draft was derived from: the goal message of the work, or another draft of the same work.
|
|
36163
|
+
*/
|
|
36164
|
+
kind: 'message' | 'draft';
|
|
36165
|
+
/**
|
|
36166
|
+
* Identifier of the source draft, present only when the kind is draft.
|
|
36167
|
+
*/
|
|
36168
|
+
draft?: string;
|
|
36169
|
+
/**
|
|
36170
|
+
* Source revision this draft was built on; when the source moves past it, stale becomes true until a rebase confirms the catch-up.
|
|
36171
|
+
*/
|
|
36172
|
+
revision: number;
|
|
36173
|
+
};
|
|
35549
36174
|
/**
|
|
35550
36175
|
* The most recent rendition of a draft, so a list can say at a glance that a piece was already published somewhere.
|
|
35551
36176
|
*/
|
|
@@ -35601,23 +36226,6 @@ export type StudioUnitLink = {
|
|
|
35601
36226
|
*/
|
|
35602
36227
|
role?: string;
|
|
35603
36228
|
};
|
|
35604
|
-
/**
|
|
35605
|
-
* Who made a change, so a person and an agent appear the same way in the record.
|
|
35606
|
-
*/
|
|
35607
|
-
export type StudioActor = {
|
|
35608
|
-
/**
|
|
35609
|
-
* Whether the change came from a person, an agent or the platform itself; an agent session through the API is recorded as an agent.
|
|
35610
|
-
*/
|
|
35611
|
-
kind?: 'user' | 'agent' | 'system';
|
|
35612
|
-
/**
|
|
35613
|
-
* Identifier of that actor, such as a user identifier or an agent session identifier.
|
|
35614
|
-
*/
|
|
35615
|
-
id?: string;
|
|
35616
|
-
/**
|
|
35617
|
-
* Display name of the actor when one is known, shown beside the change.
|
|
35618
|
-
*/
|
|
35619
|
-
label?: string;
|
|
35620
|
-
};
|
|
35621
36229
|
/**
|
|
35622
36230
|
* One piece of a unit body: a paragraph, a heading, an image or another element, with the identifier that survives a Markdown round trip.
|
|
35623
36231
|
*/
|
|
@@ -35651,23 +36259,6 @@ export type StudioBlock = {
|
|
|
35651
36259
|
*/
|
|
35652
36260
|
level?: number;
|
|
35653
36261
|
};
|
|
35654
|
-
/**
|
|
35655
|
-
* What a draft was derived from, kept with the revision it was built on so staleness can be decided without guessing.
|
|
35656
|
-
*/
|
|
35657
|
-
export type StudioDraftSource = {
|
|
35658
|
-
/**
|
|
35659
|
-
* What the draft was derived from: the goal message of the work, or another draft of the same work.
|
|
35660
|
-
*/
|
|
35661
|
-
kind: 'message' | 'draft';
|
|
35662
|
-
/**
|
|
35663
|
-
* Identifier of the source draft, present only when the kind is draft.
|
|
35664
|
-
*/
|
|
35665
|
-
draft?: string;
|
|
35666
|
-
/**
|
|
35667
|
-
* Source revision this draft was built on; when the source moves past it, stale becomes true until a rebase confirms the catch-up.
|
|
35668
|
-
*/
|
|
35669
|
-
revision: number;
|
|
35670
|
-
};
|
|
35671
36262
|
/**
|
|
35672
36263
|
* One reference entry to tie to a unit, with the role it plays in this genre.
|
|
35673
36264
|
*/
|
|
@@ -36666,6 +37257,10 @@ export type KnowledgeStaticChunking = {
|
|
|
36666
37257
|
chunk_overlap_tokens: number;
|
|
36667
37258
|
};
|
|
36668
37259
|
};
|
|
37260
|
+
/**
|
|
37261
|
+
* What a reference asset contributes to the generated or edited result.
|
|
37262
|
+
*/
|
|
37263
|
+
export type MediaRefRole = 'edit_target' | 'style' | 'structure' | 'subject';
|
|
36669
37264
|
export type MediaTranscriptEdit = {
|
|
36670
37265
|
/**
|
|
36671
37266
|
* Original literal text replaced by this accepted edit.
|
|
@@ -37645,6 +38240,34 @@ export type MediaAssetWritable = {
|
|
|
37645
38240
|
*/
|
|
37646
38241
|
model: string;
|
|
37647
38242
|
};
|
|
38243
|
+
/**
|
|
38244
|
+
* What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
|
|
38245
|
+
*/
|
|
38246
|
+
material_type?: MediaMaterialType;
|
|
38247
|
+
/**
|
|
38248
|
+
* What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
|
|
38249
|
+
*/
|
|
38250
|
+
audio_role?: MediaAudioRole;
|
|
38251
|
+
/**
|
|
38252
|
+
* True when an image asset contains animation, such as an animated GIF or animated WebP. Omitted for assets that are not animated images.
|
|
38253
|
+
*/
|
|
38254
|
+
animated?: true;
|
|
38255
|
+
/**
|
|
38256
|
+
* Asset this one was edited from; null when it was generated or uploaded rather than edited. Use assets.lineage for the whole tree.
|
|
38257
|
+
*/
|
|
38258
|
+
derived_from?: MediaAssetId | null;
|
|
38259
|
+
/**
|
|
38260
|
+
* Asset at the root of this asset’s edit tree; equals asset_id when this asset is itself a root. Omitted on assets stored before this field existed.
|
|
38261
|
+
*/
|
|
38262
|
+
root_id?: MediaAssetId;
|
|
38263
|
+
/**
|
|
38264
|
+
* True when the bytes carry an AI-generated content label and this asset was produced by a model. False for uploaded and imported assets.
|
|
38265
|
+
*/
|
|
38266
|
+
ai_generated?: boolean;
|
|
38267
|
+
/**
|
|
38268
|
+
* How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
|
|
38269
|
+
*/
|
|
38270
|
+
provenance?: MediaProvenance;
|
|
37648
38271
|
};
|
|
37649
38272
|
/**
|
|
37650
38273
|
* Understanding results in this page, ordered by creation time ascending.
|
|
@@ -38271,6 +38894,34 @@ export type MediaSearchAssetWritable = {
|
|
|
38271
38894
|
*/
|
|
38272
38895
|
model: string;
|
|
38273
38896
|
};
|
|
38897
|
+
/**
|
|
38898
|
+
* What this asset is as a reusable material, independent of resource_type. Omitted on assets stored before this field existed and on raw assets that are not materials.
|
|
38899
|
+
*/
|
|
38900
|
+
material_type?: MediaMaterialType;
|
|
38901
|
+
/**
|
|
38902
|
+
* What an audio asset is used for when material_type is audio: voice, music or sfx. Omitted for assets that are not audio materials.
|
|
38903
|
+
*/
|
|
38904
|
+
audio_role?: MediaAudioRole;
|
|
38905
|
+
/**
|
|
38906
|
+
* True when an image asset contains animation, such as an animated GIF or animated WebP. Omitted for assets that are not animated images.
|
|
38907
|
+
*/
|
|
38908
|
+
animated?: true;
|
|
38909
|
+
/**
|
|
38910
|
+
* Asset this one was edited from; null when it was generated or uploaded rather than edited. Use assets.lineage for the whole tree.
|
|
38911
|
+
*/
|
|
38912
|
+
derived_from?: MediaAssetId | null;
|
|
38913
|
+
/**
|
|
38914
|
+
* Asset at the root of this asset’s edit tree; equals asset_id when this asset is itself a root. Omitted on assets stored before this field existed.
|
|
38915
|
+
*/
|
|
38916
|
+
root_id?: MediaAssetId;
|
|
38917
|
+
/**
|
|
38918
|
+
* True when the bytes carry an AI-generated content label and this asset was produced by a model. False for uploaded and imported assets.
|
|
38919
|
+
*/
|
|
38920
|
+
ai_generated?: boolean;
|
|
38921
|
+
/**
|
|
38922
|
+
* How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
|
|
38923
|
+
*/
|
|
38924
|
+
provenance?: MediaProvenance;
|
|
38274
38925
|
};
|
|
38275
38926
|
/**
|
|
38276
38927
|
* A matching asset with its ranking score and supporting matches.
|
|
@@ -38292,6 +38943,14 @@ export type MediaSemanticHitWritable = {
|
|
|
38292
38943
|
* Supporting content or metadata matches contributing to this asset’s hit.
|
|
38293
38944
|
*/
|
|
38294
38945
|
matches: Array<MediaSemanticMatch>;
|
|
38946
|
+
/**
|
|
38947
|
+
* How many other assets in this library matched as the same footage (the same file, or another export of the same Cut project) and were folded into this hit.
|
|
38948
|
+
*/
|
|
38949
|
+
similar_count?: number;
|
|
38950
|
+
/**
|
|
38951
|
+
* Asset ids folded into this hit, up to 10.
|
|
38952
|
+
*/
|
|
38953
|
+
similar_asset_ids?: Array<string>;
|
|
38295
38954
|
};
|
|
38296
38955
|
export type AgentManaged34Writable = {
|
|
38297
38956
|
[key: string]: unknown;
|
|
@@ -38475,6 +39134,10 @@ export type StudioTemplatePath = string;
|
|
|
38475
39134
|
* Theme being addressed: a saved one by its thm_ identifier, or a built-in one by its key; the identifier is what the theme list returns for an organization's own theme.
|
|
38476
39135
|
*/
|
|
38477
39136
|
export type StudioThemePath = string;
|
|
39137
|
+
/**
|
|
39138
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
39139
|
+
*/
|
|
39140
|
+
export type StudioRenditionPath = string;
|
|
38478
39141
|
export type ApplyAgentVersionData = {
|
|
38479
39142
|
body?: never;
|
|
38480
39143
|
path: {
|
|
@@ -47752,13 +48415,17 @@ export type BrowserListSessionsErrors = {
|
|
|
47752
48415
|
*/
|
|
47753
48416
|
403: BrowserError;
|
|
47754
48417
|
/**
|
|
47755
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48418
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
47756
48419
|
*/
|
|
47757
48420
|
404: BrowserError;
|
|
47758
48421
|
/**
|
|
47759
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48422
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
47760
48423
|
*/
|
|
47761
48424
|
409: BrowserError;
|
|
48425
|
+
/**
|
|
48426
|
+
* ACTION_RESULT_TOO_LARGE
|
|
48427
|
+
*/
|
|
48428
|
+
413: BrowserError;
|
|
47762
48429
|
/**
|
|
47763
48430
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
47764
48431
|
*/
|
|
@@ -47779,6 +48446,10 @@ export type BrowserListSessionsErrors = {
|
|
|
47779
48446
|
* SERVICE_UNAVAILABLE
|
|
47780
48447
|
*/
|
|
47781
48448
|
503: BrowserError;
|
|
48449
|
+
/**
|
|
48450
|
+
* ACTION_TIMEOUT
|
|
48451
|
+
*/
|
|
48452
|
+
504: BrowserError;
|
|
47782
48453
|
};
|
|
47783
48454
|
export type BrowserListSessionsError = BrowserListSessionsErrors[keyof BrowserListSessionsErrors];
|
|
47784
48455
|
export type BrowserListSessionsResponses = {
|
|
@@ -47821,13 +48492,17 @@ export type BrowserCreateSessionErrors = {
|
|
|
47821
48492
|
*/
|
|
47822
48493
|
403: BrowserError;
|
|
47823
48494
|
/**
|
|
47824
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48495
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
47825
48496
|
*/
|
|
47826
48497
|
404: BrowserError;
|
|
47827
48498
|
/**
|
|
47828
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48499
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
47829
48500
|
*/
|
|
47830
48501
|
409: BrowserError;
|
|
48502
|
+
/**
|
|
48503
|
+
* ACTION_RESULT_TOO_LARGE
|
|
48504
|
+
*/
|
|
48505
|
+
413: BrowserError;
|
|
47831
48506
|
/**
|
|
47832
48507
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
47833
48508
|
*/
|
|
@@ -47848,6 +48523,10 @@ export type BrowserCreateSessionErrors = {
|
|
|
47848
48523
|
* SERVICE_UNAVAILABLE
|
|
47849
48524
|
*/
|
|
47850
48525
|
503: BrowserError;
|
|
48526
|
+
/**
|
|
48527
|
+
* ACTION_TIMEOUT
|
|
48528
|
+
*/
|
|
48529
|
+
504: BrowserError;
|
|
47851
48530
|
};
|
|
47852
48531
|
export type BrowserCreateSessionError = BrowserCreateSessionErrors[keyof BrowserCreateSessionErrors];
|
|
47853
48532
|
export type BrowserCreateSessionResponses = {
|
|
@@ -47891,13 +48570,17 @@ export type BrowserGetSessionErrors = {
|
|
|
47891
48570
|
*/
|
|
47892
48571
|
403: BrowserError;
|
|
47893
48572
|
/**
|
|
47894
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48573
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
47895
48574
|
*/
|
|
47896
48575
|
404: BrowserError;
|
|
47897
48576
|
/**
|
|
47898
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48577
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
47899
48578
|
*/
|
|
47900
48579
|
409: BrowserError;
|
|
48580
|
+
/**
|
|
48581
|
+
* ACTION_RESULT_TOO_LARGE
|
|
48582
|
+
*/
|
|
48583
|
+
413: BrowserError;
|
|
47901
48584
|
/**
|
|
47902
48585
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
47903
48586
|
*/
|
|
@@ -47918,6 +48601,10 @@ export type BrowserGetSessionErrors = {
|
|
|
47918
48601
|
* SERVICE_UNAVAILABLE
|
|
47919
48602
|
*/
|
|
47920
48603
|
503: BrowserError;
|
|
48604
|
+
/**
|
|
48605
|
+
* ACTION_TIMEOUT
|
|
48606
|
+
*/
|
|
48607
|
+
504: BrowserError;
|
|
47921
48608
|
};
|
|
47922
48609
|
export type BrowserGetSessionError = BrowserGetSessionErrors[keyof BrowserGetSessionErrors];
|
|
47923
48610
|
export type BrowserGetSessionResponses = {
|
|
@@ -47961,78 +48648,17 @@ export type BrowserCloseSessionErrors = {
|
|
|
47961
48648
|
*/
|
|
47962
48649
|
403: BrowserError;
|
|
47963
48650
|
/**
|
|
47964
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48651
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
47965
48652
|
*/
|
|
47966
48653
|
404: BrowserError;
|
|
47967
48654
|
/**
|
|
47968
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48655
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
47969
48656
|
*/
|
|
47970
48657
|
409: BrowserError;
|
|
47971
48658
|
/**
|
|
47972
|
-
*
|
|
47973
|
-
*/
|
|
47974
|
-
429: BrowserError;
|
|
47975
|
-
/**
|
|
47976
|
-
* INTERNAL
|
|
47977
|
-
*/
|
|
47978
|
-
500: BrowserError;
|
|
47979
|
-
/**
|
|
47980
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
47981
|
-
*/
|
|
47982
|
-
501: BrowserError;
|
|
47983
|
-
/**
|
|
47984
|
-
* PROVIDER_FAILED
|
|
48659
|
+
* ACTION_RESULT_TOO_LARGE
|
|
47985
48660
|
*/
|
|
47986
|
-
|
|
47987
|
-
/**
|
|
47988
|
-
* SERVICE_UNAVAILABLE
|
|
47989
|
-
*/
|
|
47990
|
-
503: BrowserError;
|
|
47991
|
-
};
|
|
47992
|
-
export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
|
|
47993
|
-
export type BrowserCloseSessionResponses = {
|
|
47994
|
-
/**
|
|
47995
|
-
* 请求成功。
|
|
47996
|
-
*/
|
|
47997
|
-
200: BrowserSession;
|
|
47998
|
-
};
|
|
47999
|
-
export type BrowserCloseSessionResponse = BrowserCloseSessionResponses[keyof BrowserCloseSessionResponses];
|
|
48000
|
-
export type BrowserGetDebugData = {
|
|
48001
|
-
body?: never;
|
|
48002
|
-
path: {
|
|
48003
|
-
/**
|
|
48004
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
48005
|
-
*/
|
|
48006
|
-
sessionId: string;
|
|
48007
|
-
};
|
|
48008
|
-
query?: never;
|
|
48009
|
-
url: '/browser/v1/sessions/{sessionId}/debug';
|
|
48010
|
-
};
|
|
48011
|
-
export type BrowserGetDebugErrors = {
|
|
48012
|
-
/**
|
|
48013
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
48014
|
-
*/
|
|
48015
|
-
400: BrowserError;
|
|
48016
|
-
/**
|
|
48017
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
48018
|
-
*/
|
|
48019
|
-
401: BrowserError;
|
|
48020
|
-
/**
|
|
48021
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
48022
|
-
*/
|
|
48023
|
-
402: BrowserError;
|
|
48024
|
-
/**
|
|
48025
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
48026
|
-
*/
|
|
48027
|
-
403: BrowserError;
|
|
48028
|
-
/**
|
|
48029
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48030
|
-
*/
|
|
48031
|
-
404: BrowserError;
|
|
48032
|
-
/**
|
|
48033
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48034
|
-
*/
|
|
48035
|
-
409: BrowserError;
|
|
48661
|
+
413: BrowserError;
|
|
48036
48662
|
/**
|
|
48037
48663
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48038
48664
|
*/
|
|
@@ -48053,6 +48679,83 @@ export type BrowserGetDebugErrors = {
|
|
|
48053
48679
|
* SERVICE_UNAVAILABLE
|
|
48054
48680
|
*/
|
|
48055
48681
|
503: BrowserError;
|
|
48682
|
+
/**
|
|
48683
|
+
* ACTION_TIMEOUT
|
|
48684
|
+
*/
|
|
48685
|
+
504: BrowserError;
|
|
48686
|
+
};
|
|
48687
|
+
export type BrowserCloseSessionError = BrowserCloseSessionErrors[keyof BrowserCloseSessionErrors];
|
|
48688
|
+
export type BrowserCloseSessionResponses = {
|
|
48689
|
+
/**
|
|
48690
|
+
* 请求成功。
|
|
48691
|
+
*/
|
|
48692
|
+
200: BrowserSession;
|
|
48693
|
+
};
|
|
48694
|
+
export type BrowserCloseSessionResponse = BrowserCloseSessionResponses[keyof BrowserCloseSessionResponses];
|
|
48695
|
+
export type BrowserGetDebugData = {
|
|
48696
|
+
body?: never;
|
|
48697
|
+
path: {
|
|
48698
|
+
/**
|
|
48699
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
48700
|
+
*/
|
|
48701
|
+
sessionId: string;
|
|
48702
|
+
};
|
|
48703
|
+
query?: never;
|
|
48704
|
+
url: '/browser/v1/sessions/{sessionId}/debug';
|
|
48705
|
+
};
|
|
48706
|
+
export type BrowserGetDebugErrors = {
|
|
48707
|
+
/**
|
|
48708
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
48709
|
+
*/
|
|
48710
|
+
400: BrowserError;
|
|
48711
|
+
/**
|
|
48712
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
48713
|
+
*/
|
|
48714
|
+
401: BrowserError;
|
|
48715
|
+
/**
|
|
48716
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
48717
|
+
*/
|
|
48718
|
+
402: BrowserError;
|
|
48719
|
+
/**
|
|
48720
|
+
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
48721
|
+
*/
|
|
48722
|
+
403: BrowserError;
|
|
48723
|
+
/**
|
|
48724
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48725
|
+
*/
|
|
48726
|
+
404: BrowserError;
|
|
48727
|
+
/**
|
|
48728
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48729
|
+
*/
|
|
48730
|
+
409: BrowserError;
|
|
48731
|
+
/**
|
|
48732
|
+
* ACTION_RESULT_TOO_LARGE
|
|
48733
|
+
*/
|
|
48734
|
+
413: BrowserError;
|
|
48735
|
+
/**
|
|
48736
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48737
|
+
*/
|
|
48738
|
+
429: BrowserError;
|
|
48739
|
+
/**
|
|
48740
|
+
* INTERNAL
|
|
48741
|
+
*/
|
|
48742
|
+
500: BrowserError;
|
|
48743
|
+
/**
|
|
48744
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
48745
|
+
*/
|
|
48746
|
+
501: BrowserError;
|
|
48747
|
+
/**
|
|
48748
|
+
* PROVIDER_FAILED
|
|
48749
|
+
*/
|
|
48750
|
+
502: BrowserError;
|
|
48751
|
+
/**
|
|
48752
|
+
* SERVICE_UNAVAILABLE
|
|
48753
|
+
*/
|
|
48754
|
+
503: BrowserError;
|
|
48755
|
+
/**
|
|
48756
|
+
* ACTION_TIMEOUT
|
|
48757
|
+
*/
|
|
48758
|
+
504: BrowserError;
|
|
48056
48759
|
};
|
|
48057
48760
|
export type BrowserGetDebugError = BrowserGetDebugErrors[keyof BrowserGetDebugErrors];
|
|
48058
48761
|
export type BrowserGetDebugResponses = {
|
|
@@ -48104,13 +48807,17 @@ export type BrowserListEventsErrors = {
|
|
|
48104
48807
|
*/
|
|
48105
48808
|
403: BrowserError;
|
|
48106
48809
|
/**
|
|
48107
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48810
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48108
48811
|
*/
|
|
48109
48812
|
404: BrowserError;
|
|
48110
48813
|
/**
|
|
48111
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48814
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48112
48815
|
*/
|
|
48113
48816
|
409: BrowserError;
|
|
48817
|
+
/**
|
|
48818
|
+
* ACTION_RESULT_TOO_LARGE
|
|
48819
|
+
*/
|
|
48820
|
+
413: BrowserError;
|
|
48114
48821
|
/**
|
|
48115
48822
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48116
48823
|
*/
|
|
@@ -48131,6 +48838,10 @@ export type BrowserListEventsErrors = {
|
|
|
48131
48838
|
* SERVICE_UNAVAILABLE
|
|
48132
48839
|
*/
|
|
48133
48840
|
503: BrowserError;
|
|
48841
|
+
/**
|
|
48842
|
+
* ACTION_TIMEOUT
|
|
48843
|
+
*/
|
|
48844
|
+
504: BrowserError;
|
|
48134
48845
|
};
|
|
48135
48846
|
export type BrowserListEventsError = BrowserListEventsErrors[keyof BrowserListEventsErrors];
|
|
48136
48847
|
export type BrowserListEventsResponses = {
|
|
@@ -48149,6 +48860,311 @@ export type BrowserListEventsResponses = {
|
|
|
48149
48860
|
};
|
|
48150
48861
|
};
|
|
48151
48862
|
export type BrowserListEventsResponse = BrowserListEventsResponses[keyof BrowserListEventsResponses];
|
|
48863
|
+
export type BrowserRunPageActionData = {
|
|
48864
|
+
body: {
|
|
48865
|
+
/**
|
|
48866
|
+
* 动作类型,固定为 open。
|
|
48867
|
+
*/
|
|
48868
|
+
type: 'open';
|
|
48869
|
+
/**
|
|
48870
|
+
* 要打开的 http 或 https 地址,最多 2048 个字符。
|
|
48871
|
+
*/
|
|
48872
|
+
url: string;
|
|
48873
|
+
/**
|
|
48874
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48875
|
+
*/
|
|
48876
|
+
tab?: string;
|
|
48877
|
+
/**
|
|
48878
|
+
* 为 true 时在新标签页打开,否则在当前标签页打开。
|
|
48879
|
+
*/
|
|
48880
|
+
newTab?: boolean;
|
|
48881
|
+
} | {
|
|
48882
|
+
/**
|
|
48883
|
+
* 动作类型,固定为 tabs.list。
|
|
48884
|
+
*/
|
|
48885
|
+
type: 'tabs.list';
|
|
48886
|
+
} | {
|
|
48887
|
+
/**
|
|
48888
|
+
* 动作类型,固定为 snapshot。
|
|
48889
|
+
*/
|
|
48890
|
+
type: 'snapshot';
|
|
48891
|
+
/**
|
|
48892
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48893
|
+
*/
|
|
48894
|
+
tab?: string;
|
|
48895
|
+
} | {
|
|
48896
|
+
/**
|
|
48897
|
+
* 动作类型,固定为 click。
|
|
48898
|
+
*/
|
|
48899
|
+
type: 'click';
|
|
48900
|
+
/**
|
|
48901
|
+
* 最近一次快照里要点击的元素的 ref,形如 e12;页面跳转后失效。
|
|
48902
|
+
*/
|
|
48903
|
+
ref: string;
|
|
48904
|
+
/**
|
|
48905
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48906
|
+
*/
|
|
48907
|
+
tab?: string;
|
|
48908
|
+
} | {
|
|
48909
|
+
/**
|
|
48910
|
+
* 动作类型,固定为 fill。
|
|
48911
|
+
*/
|
|
48912
|
+
type: 'fill';
|
|
48913
|
+
/**
|
|
48914
|
+
* 最近一次快照里要填写的输入元素的 ref,形如 e12;页面跳转后失效。
|
|
48915
|
+
*/
|
|
48916
|
+
ref: string;
|
|
48917
|
+
/**
|
|
48918
|
+
* 要填入的文本,会替换输入框原有内容;最多 100000 个字符,可为空字符串。
|
|
48919
|
+
*/
|
|
48920
|
+
text: string;
|
|
48921
|
+
/**
|
|
48922
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48923
|
+
*/
|
|
48924
|
+
tab?: string;
|
|
48925
|
+
} | {
|
|
48926
|
+
/**
|
|
48927
|
+
* 动作类型,固定为 press。
|
|
48928
|
+
*/
|
|
48929
|
+
type: 'press';
|
|
48930
|
+
/**
|
|
48931
|
+
* 要按下的键:Enter、Tab、Escape、Backspace、Delete、方向键、Home、End、PageUp、PageDown、Space 或单个可打印字符。
|
|
48932
|
+
*/
|
|
48933
|
+
key: string;
|
|
48934
|
+
/**
|
|
48935
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48936
|
+
*/
|
|
48937
|
+
tab?: string;
|
|
48938
|
+
} | {
|
|
48939
|
+
/**
|
|
48940
|
+
* 动作类型,固定为 scroll。
|
|
48941
|
+
*/
|
|
48942
|
+
type: 'scroll';
|
|
48943
|
+
/**
|
|
48944
|
+
* 滚动方向:up 向上,down 向下。
|
|
48945
|
+
*/
|
|
48946
|
+
direction: 'up' | 'down';
|
|
48947
|
+
/**
|
|
48948
|
+
* 滚动的像素数,默认 800,最多 10000。
|
|
48949
|
+
*/
|
|
48950
|
+
pixels?: number;
|
|
48951
|
+
/**
|
|
48952
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48953
|
+
*/
|
|
48954
|
+
tab?: string;
|
|
48955
|
+
} | {
|
|
48956
|
+
/**
|
|
48957
|
+
* 动作类型,固定为 screenshot。
|
|
48958
|
+
*/
|
|
48959
|
+
type: 'screenshot';
|
|
48960
|
+
/**
|
|
48961
|
+
* 为 true 时截取整页,否则只截当前视口。
|
|
48962
|
+
*/
|
|
48963
|
+
fullPage?: boolean;
|
|
48964
|
+
/**
|
|
48965
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48966
|
+
*/
|
|
48967
|
+
tab?: string;
|
|
48968
|
+
} | {
|
|
48969
|
+
/**
|
|
48970
|
+
* 动作类型,固定为 evaluate。
|
|
48971
|
+
*/
|
|
48972
|
+
type: 'evaluate';
|
|
48973
|
+
/**
|
|
48974
|
+
* 在页面里执行的 JavaScript 表达式,结果按 JSON 返回;最多 20000 个字符。
|
|
48975
|
+
*/
|
|
48976
|
+
expression: string;
|
|
48977
|
+
/**
|
|
48978
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48979
|
+
*/
|
|
48980
|
+
tab?: string;
|
|
48981
|
+
} | {
|
|
48982
|
+
/**
|
|
48983
|
+
* 动作类型:后退、前进或刷新当前页。
|
|
48984
|
+
*/
|
|
48985
|
+
type: 'back' | 'forward' | 'reload';
|
|
48986
|
+
/**
|
|
48987
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
48988
|
+
*/
|
|
48989
|
+
tab?: string;
|
|
48990
|
+
};
|
|
48991
|
+
path: {
|
|
48992
|
+
/**
|
|
48993
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
48994
|
+
*/
|
|
48995
|
+
sessionId: string;
|
|
48996
|
+
};
|
|
48997
|
+
query?: never;
|
|
48998
|
+
url: '/browser/v1/sessions/{sessionId}/actions';
|
|
48999
|
+
};
|
|
49000
|
+
export type BrowserRunPageActionErrors = {
|
|
49001
|
+
/**
|
|
49002
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
49003
|
+
*/
|
|
49004
|
+
400: BrowserError;
|
|
49005
|
+
/**
|
|
49006
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
49007
|
+
*/
|
|
49008
|
+
401: BrowserError;
|
|
49009
|
+
/**
|
|
49010
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
49011
|
+
*/
|
|
49012
|
+
402: BrowserError;
|
|
49013
|
+
/**
|
|
49014
|
+
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
49015
|
+
*/
|
|
49016
|
+
403: BrowserError;
|
|
49017
|
+
/**
|
|
49018
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
49019
|
+
*/
|
|
49020
|
+
404: BrowserError;
|
|
49021
|
+
/**
|
|
49022
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
49023
|
+
*/
|
|
49024
|
+
409: BrowserError;
|
|
49025
|
+
/**
|
|
49026
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49027
|
+
*/
|
|
49028
|
+
413: BrowserError;
|
|
49029
|
+
/**
|
|
49030
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
49031
|
+
*/
|
|
49032
|
+
429: BrowserError;
|
|
49033
|
+
/**
|
|
49034
|
+
* INTERNAL
|
|
49035
|
+
*/
|
|
49036
|
+
500: BrowserError;
|
|
49037
|
+
/**
|
|
49038
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
49039
|
+
*/
|
|
49040
|
+
501: BrowserError;
|
|
49041
|
+
/**
|
|
49042
|
+
* PROVIDER_FAILED
|
|
49043
|
+
*/
|
|
49044
|
+
502: BrowserError;
|
|
49045
|
+
/**
|
|
49046
|
+
* SERVICE_UNAVAILABLE
|
|
49047
|
+
*/
|
|
49048
|
+
503: BrowserError;
|
|
49049
|
+
/**
|
|
49050
|
+
* ACTION_TIMEOUT
|
|
49051
|
+
*/
|
|
49052
|
+
504: BrowserError;
|
|
49053
|
+
};
|
|
49054
|
+
export type BrowserRunPageActionError = BrowserRunPageActionErrors[keyof BrowserRunPageActionErrors];
|
|
49055
|
+
export type BrowserRunPageActionResponses = {
|
|
49056
|
+
/**
|
|
49057
|
+
* 请求成功。
|
|
49058
|
+
*/
|
|
49059
|
+
200: {
|
|
49060
|
+
/**
|
|
49061
|
+
* 这次执行的动作类型,与请求的 type 相同。
|
|
49062
|
+
*/
|
|
49063
|
+
type: 'open' | 'click' | 'fill' | 'press' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
49064
|
+
/**
|
|
49065
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
49066
|
+
*/
|
|
49067
|
+
tab: string;
|
|
49068
|
+
/**
|
|
49069
|
+
* 动作完成后该标签页的地址。
|
|
49070
|
+
*/
|
|
49071
|
+
url: string;
|
|
49072
|
+
/**
|
|
49073
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
49074
|
+
*/
|
|
49075
|
+
title: string;
|
|
49076
|
+
} | {
|
|
49077
|
+
/**
|
|
49078
|
+
* 动作类型,固定为 tabs.list。
|
|
49079
|
+
*/
|
|
49080
|
+
type: 'tabs.list';
|
|
49081
|
+
/**
|
|
49082
|
+
* 会话里所有打开的标签页。
|
|
49083
|
+
*/
|
|
49084
|
+
tabs: Array<{
|
|
49085
|
+
/**
|
|
49086
|
+
* 标签页 ID,可在动作的 tab 里使用。
|
|
49087
|
+
*/
|
|
49088
|
+
id: string;
|
|
49089
|
+
/**
|
|
49090
|
+
* 标签页当前地址。
|
|
49091
|
+
*/
|
|
49092
|
+
url: string;
|
|
49093
|
+
/**
|
|
49094
|
+
* 标签页当前标题。
|
|
49095
|
+
*/
|
|
49096
|
+
title: string;
|
|
49097
|
+
/**
|
|
49098
|
+
* 是否为当前标签页,省略 tab 的动作作用于它。
|
|
49099
|
+
*/
|
|
49100
|
+
active: boolean;
|
|
49101
|
+
}>;
|
|
49102
|
+
} | {
|
|
49103
|
+
/**
|
|
49104
|
+
* 动作类型,固定为 snapshot。
|
|
49105
|
+
*/
|
|
49106
|
+
type: 'snapshot';
|
|
49107
|
+
/**
|
|
49108
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
49109
|
+
*/
|
|
49110
|
+
tab: string;
|
|
49111
|
+
/**
|
|
49112
|
+
* 动作完成后该标签页的地址。
|
|
49113
|
+
*/
|
|
49114
|
+
url: string;
|
|
49115
|
+
/**
|
|
49116
|
+
* 动作完成后该标签页的标题,页面没有标题时为空字符串。
|
|
49117
|
+
*/
|
|
49118
|
+
title: string;
|
|
49119
|
+
/**
|
|
49120
|
+
* 页面的 ARIA 快照文本,每行一个元素,可操作的元素带 [ref=eN]。
|
|
49121
|
+
*/
|
|
49122
|
+
snapshot: string;
|
|
49123
|
+
/**
|
|
49124
|
+
* 这份快照里分配出去的 ref 个数。
|
|
49125
|
+
*/
|
|
49126
|
+
refs: number;
|
|
49127
|
+
/**
|
|
49128
|
+
* 快照超过 200000 个字符被截断时为 true。
|
|
49129
|
+
*/
|
|
49130
|
+
truncated: boolean;
|
|
49131
|
+
} | {
|
|
49132
|
+
/**
|
|
49133
|
+
* 动作类型,固定为 screenshot。
|
|
49134
|
+
*/
|
|
49135
|
+
type: 'screenshot';
|
|
49136
|
+
/**
|
|
49137
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
49138
|
+
*/
|
|
49139
|
+
tab: string;
|
|
49140
|
+
/**
|
|
49141
|
+
* 图片格式,固定为 image/png。
|
|
49142
|
+
*/
|
|
49143
|
+
mediaType: 'image/png';
|
|
49144
|
+
/**
|
|
49145
|
+
* PNG 图片的 base64 编码;解码后最多 5 MiB。
|
|
49146
|
+
*/
|
|
49147
|
+
data: string;
|
|
49148
|
+
/**
|
|
49149
|
+
* 图片 base64 解码后的字节数。
|
|
49150
|
+
*/
|
|
49151
|
+
bytes: number;
|
|
49152
|
+
} | {
|
|
49153
|
+
/**
|
|
49154
|
+
* 动作类型,固定为 evaluate。
|
|
49155
|
+
*/
|
|
49156
|
+
type: 'evaluate';
|
|
49157
|
+
/**
|
|
49158
|
+
* 动作作用的标签页 ID,可在后续动作的 tab 里使用。
|
|
49159
|
+
*/
|
|
49160
|
+
tab: string;
|
|
49161
|
+
/**
|
|
49162
|
+
* 表达式的结果,按 JSON 返回;序列化后最多 64000 个字符。
|
|
49163
|
+
*/
|
|
49164
|
+
value: unknown;
|
|
49165
|
+
};
|
|
49166
|
+
};
|
|
49167
|
+
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
48152
49168
|
export type BrowserRequestHandoffData = {
|
|
48153
49169
|
body: {
|
|
48154
49170
|
/**
|
|
@@ -48187,13 +49203,17 @@ export type BrowserRequestHandoffErrors = {
|
|
|
48187
49203
|
*/
|
|
48188
49204
|
403: BrowserError;
|
|
48189
49205
|
/**
|
|
48190
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49206
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48191
49207
|
*/
|
|
48192
49208
|
404: BrowserError;
|
|
48193
49209
|
/**
|
|
48194
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49210
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48195
49211
|
*/
|
|
48196
49212
|
409: BrowserError;
|
|
49213
|
+
/**
|
|
49214
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49215
|
+
*/
|
|
49216
|
+
413: BrowserError;
|
|
48197
49217
|
/**
|
|
48198
49218
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48199
49219
|
*/
|
|
@@ -48214,6 +49234,10 @@ export type BrowserRequestHandoffErrors = {
|
|
|
48214
49234
|
* SERVICE_UNAVAILABLE
|
|
48215
49235
|
*/
|
|
48216
49236
|
503: BrowserError;
|
|
49237
|
+
/**
|
|
49238
|
+
* ACTION_TIMEOUT
|
|
49239
|
+
*/
|
|
49240
|
+
504: BrowserError;
|
|
48217
49241
|
};
|
|
48218
49242
|
export type BrowserRequestHandoffError = BrowserRequestHandoffErrors[keyof BrowserRequestHandoffErrors];
|
|
48219
49243
|
export type BrowserRequestHandoffResponses = {
|
|
@@ -48252,13 +49276,17 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
48252
49276
|
*/
|
|
48253
49277
|
403: BrowserError;
|
|
48254
49278
|
/**
|
|
48255
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49279
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48256
49280
|
*/
|
|
48257
49281
|
404: BrowserError;
|
|
48258
49282
|
/**
|
|
48259
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49283
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48260
49284
|
*/
|
|
48261
49285
|
409: BrowserError;
|
|
49286
|
+
/**
|
|
49287
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49288
|
+
*/
|
|
49289
|
+
413: BrowserError;
|
|
48262
49290
|
/**
|
|
48263
49291
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48264
49292
|
*/
|
|
@@ -48279,6 +49307,10 @@ export type BrowserCompleteHandoffErrors = {
|
|
|
48279
49307
|
* SERVICE_UNAVAILABLE
|
|
48280
49308
|
*/
|
|
48281
49309
|
503: BrowserError;
|
|
49310
|
+
/**
|
|
49311
|
+
* ACTION_TIMEOUT
|
|
49312
|
+
*/
|
|
49313
|
+
504: BrowserError;
|
|
48282
49314
|
};
|
|
48283
49315
|
export type BrowserCompleteHandoffError = BrowserCompleteHandoffErrors[keyof BrowserCompleteHandoffErrors];
|
|
48284
49316
|
export type BrowserCompleteHandoffResponses = {
|
|
@@ -48322,13 +49354,17 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
48322
49354
|
*/
|
|
48323
49355
|
403: BrowserError;
|
|
48324
49356
|
/**
|
|
48325
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49357
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48326
49358
|
*/
|
|
48327
49359
|
404: BrowserError;
|
|
48328
49360
|
/**
|
|
48329
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49361
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48330
49362
|
*/
|
|
48331
49363
|
409: BrowserError;
|
|
49364
|
+
/**
|
|
49365
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49366
|
+
*/
|
|
49367
|
+
413: BrowserError;
|
|
48332
49368
|
/**
|
|
48333
49369
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48334
49370
|
*/
|
|
@@ -48349,6 +49385,10 @@ export type BrowserViewerHeartbeatErrors = {
|
|
|
48349
49385
|
* SERVICE_UNAVAILABLE
|
|
48350
49386
|
*/
|
|
48351
49387
|
503: BrowserError;
|
|
49388
|
+
/**
|
|
49389
|
+
* ACTION_TIMEOUT
|
|
49390
|
+
*/
|
|
49391
|
+
504: BrowserError;
|
|
48352
49392
|
};
|
|
48353
49393
|
export type BrowserViewerHeartbeatError = BrowserViewerHeartbeatErrors[keyof BrowserViewerHeartbeatErrors];
|
|
48354
49394
|
export type BrowserViewerHeartbeatResponses = {
|
|
@@ -48400,13 +49440,17 @@ export type BrowserListContextsErrors = {
|
|
|
48400
49440
|
*/
|
|
48401
49441
|
403: BrowserError;
|
|
48402
49442
|
/**
|
|
48403
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49443
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48404
49444
|
*/
|
|
48405
49445
|
404: BrowserError;
|
|
48406
49446
|
/**
|
|
48407
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49447
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48408
49448
|
*/
|
|
48409
49449
|
409: BrowserError;
|
|
49450
|
+
/**
|
|
49451
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49452
|
+
*/
|
|
49453
|
+
413: BrowserError;
|
|
48410
49454
|
/**
|
|
48411
49455
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48412
49456
|
*/
|
|
@@ -48427,6 +49471,10 @@ export type BrowserListContextsErrors = {
|
|
|
48427
49471
|
* SERVICE_UNAVAILABLE
|
|
48428
49472
|
*/
|
|
48429
49473
|
503: BrowserError;
|
|
49474
|
+
/**
|
|
49475
|
+
* ACTION_TIMEOUT
|
|
49476
|
+
*/
|
|
49477
|
+
504: BrowserError;
|
|
48430
49478
|
};
|
|
48431
49479
|
export type BrowserListContextsError = BrowserListContextsErrors[keyof BrowserListContextsErrors];
|
|
48432
49480
|
export type BrowserListContextsResponses = {
|
|
@@ -48484,13 +49532,17 @@ export type BrowserCreateContextErrors = {
|
|
|
48484
49532
|
*/
|
|
48485
49533
|
403: BrowserError;
|
|
48486
49534
|
/**
|
|
48487
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49535
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48488
49536
|
*/
|
|
48489
49537
|
404: BrowserError;
|
|
48490
49538
|
/**
|
|
48491
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49539
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48492
49540
|
*/
|
|
48493
49541
|
409: BrowserError;
|
|
49542
|
+
/**
|
|
49543
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49544
|
+
*/
|
|
49545
|
+
413: BrowserError;
|
|
48494
49546
|
/**
|
|
48495
49547
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48496
49548
|
*/
|
|
@@ -48511,6 +49563,10 @@ export type BrowserCreateContextErrors = {
|
|
|
48511
49563
|
* SERVICE_UNAVAILABLE
|
|
48512
49564
|
*/
|
|
48513
49565
|
503: BrowserError;
|
|
49566
|
+
/**
|
|
49567
|
+
* ACTION_TIMEOUT
|
|
49568
|
+
*/
|
|
49569
|
+
504: BrowserError;
|
|
48514
49570
|
};
|
|
48515
49571
|
export type BrowserCreateContextError = BrowserCreateContextErrors[keyof BrowserCreateContextErrors];
|
|
48516
49572
|
export type BrowserCreateContextResponses = {
|
|
@@ -48549,13 +49605,17 @@ export type BrowserDeleteContextErrors = {
|
|
|
48549
49605
|
*/
|
|
48550
49606
|
403: BrowserError;
|
|
48551
49607
|
/**
|
|
48552
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49608
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48553
49609
|
*/
|
|
48554
49610
|
404: BrowserError;
|
|
48555
49611
|
/**
|
|
48556
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49612
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48557
49613
|
*/
|
|
48558
49614
|
409: BrowserError;
|
|
49615
|
+
/**
|
|
49616
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49617
|
+
*/
|
|
49618
|
+
413: BrowserError;
|
|
48559
49619
|
/**
|
|
48560
49620
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48561
49621
|
*/
|
|
@@ -48576,6 +49636,10 @@ export type BrowserDeleteContextErrors = {
|
|
|
48576
49636
|
* SERVICE_UNAVAILABLE
|
|
48577
49637
|
*/
|
|
48578
49638
|
503: BrowserError;
|
|
49639
|
+
/**
|
|
49640
|
+
* ACTION_TIMEOUT
|
|
49641
|
+
*/
|
|
49642
|
+
504: BrowserError;
|
|
48579
49643
|
};
|
|
48580
49644
|
export type BrowserDeleteContextError = BrowserDeleteContextErrors[keyof BrowserDeleteContextErrors];
|
|
48581
49645
|
export type BrowserDeleteContextResponses = {
|
|
@@ -48619,89 +49683,206 @@ export type BrowserGetContextErrors = {
|
|
|
48619
49683
|
*/
|
|
48620
49684
|
403: BrowserError;
|
|
48621
49685
|
/**
|
|
48622
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49686
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
49687
|
+
*/
|
|
49688
|
+
404: BrowserError;
|
|
49689
|
+
/**
|
|
49690
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
49691
|
+
*/
|
|
49692
|
+
409: BrowserError;
|
|
49693
|
+
/**
|
|
49694
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49695
|
+
*/
|
|
49696
|
+
413: BrowserError;
|
|
49697
|
+
/**
|
|
49698
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
49699
|
+
*/
|
|
49700
|
+
429: BrowserError;
|
|
49701
|
+
/**
|
|
49702
|
+
* INTERNAL
|
|
49703
|
+
*/
|
|
49704
|
+
500: BrowserError;
|
|
49705
|
+
/**
|
|
49706
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
49707
|
+
*/
|
|
49708
|
+
501: BrowserError;
|
|
49709
|
+
/**
|
|
49710
|
+
* PROVIDER_FAILED
|
|
49711
|
+
*/
|
|
49712
|
+
502: BrowserError;
|
|
49713
|
+
/**
|
|
49714
|
+
* SERVICE_UNAVAILABLE
|
|
49715
|
+
*/
|
|
49716
|
+
503: BrowserError;
|
|
49717
|
+
/**
|
|
49718
|
+
* ACTION_TIMEOUT
|
|
49719
|
+
*/
|
|
49720
|
+
504: BrowserError;
|
|
49721
|
+
};
|
|
49722
|
+
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
49723
|
+
export type BrowserGetContextResponses = {
|
|
49724
|
+
/**
|
|
49725
|
+
* 请求成功。
|
|
49726
|
+
*/
|
|
49727
|
+
200: BrowserContext;
|
|
49728
|
+
};
|
|
49729
|
+
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
49730
|
+
export type BrowserUpdateContextData = {
|
|
49731
|
+
body: {
|
|
49732
|
+
/**
|
|
49733
|
+
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
49734
|
+
*/
|
|
49735
|
+
name?: '' | unknown;
|
|
49736
|
+
/**
|
|
49737
|
+
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
49738
|
+
*/
|
|
49739
|
+
labels?: {
|
|
49740
|
+
[key: string]: string;
|
|
49741
|
+
};
|
|
49742
|
+
};
|
|
49743
|
+
path: {
|
|
49744
|
+
/**
|
|
49745
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
49746
|
+
*/
|
|
49747
|
+
contextId: string;
|
|
49748
|
+
};
|
|
49749
|
+
query?: never;
|
|
49750
|
+
url: '/browser/v1/contexts/{contextId}';
|
|
49751
|
+
};
|
|
49752
|
+
export type BrowserUpdateContextErrors = {
|
|
49753
|
+
/**
|
|
49754
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
49755
|
+
*/
|
|
49756
|
+
400: BrowserError;
|
|
49757
|
+
/**
|
|
49758
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
49759
|
+
*/
|
|
49760
|
+
401: BrowserError;
|
|
49761
|
+
/**
|
|
49762
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
49763
|
+
*/
|
|
49764
|
+
402: BrowserError;
|
|
49765
|
+
/**
|
|
49766
|
+
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
49767
|
+
*/
|
|
49768
|
+
403: BrowserError;
|
|
49769
|
+
/**
|
|
49770
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
49771
|
+
*/
|
|
49772
|
+
404: BrowserError;
|
|
49773
|
+
/**
|
|
49774
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
49775
|
+
*/
|
|
49776
|
+
409: BrowserError;
|
|
49777
|
+
/**
|
|
49778
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49779
|
+
*/
|
|
49780
|
+
413: BrowserError;
|
|
49781
|
+
/**
|
|
49782
|
+
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
49783
|
+
*/
|
|
49784
|
+
429: BrowserError;
|
|
49785
|
+
/**
|
|
49786
|
+
* INTERNAL
|
|
49787
|
+
*/
|
|
49788
|
+
500: BrowserError;
|
|
49789
|
+
/**
|
|
49790
|
+
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
49791
|
+
*/
|
|
49792
|
+
501: BrowserError;
|
|
49793
|
+
/**
|
|
49794
|
+
* PROVIDER_FAILED
|
|
49795
|
+
*/
|
|
49796
|
+
502: BrowserError;
|
|
49797
|
+
/**
|
|
49798
|
+
* SERVICE_UNAVAILABLE
|
|
49799
|
+
*/
|
|
49800
|
+
503: BrowserError;
|
|
49801
|
+
/**
|
|
49802
|
+
* ACTION_TIMEOUT
|
|
49803
|
+
*/
|
|
49804
|
+
504: BrowserError;
|
|
49805
|
+
};
|
|
49806
|
+
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
49807
|
+
export type BrowserUpdateContextResponses = {
|
|
49808
|
+
/**
|
|
49809
|
+
* 请求成功。
|
|
49810
|
+
*/
|
|
49811
|
+
200: BrowserContext;
|
|
49812
|
+
};
|
|
49813
|
+
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
49814
|
+
export type BrowserConnectData = {
|
|
49815
|
+
body?: never;
|
|
49816
|
+
path?: never;
|
|
49817
|
+
query?: {
|
|
49818
|
+
/**
|
|
49819
|
+
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
49820
|
+
*/
|
|
49821
|
+
session?: string;
|
|
49822
|
+
/**
|
|
49823
|
+
* 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
|
|
49824
|
+
*/
|
|
49825
|
+
name?: string;
|
|
49826
|
+
/**
|
|
49827
|
+
* connectUrl 自带凭证;必须同时带 session。
|
|
49828
|
+
*/
|
|
49829
|
+
signingKey?: string;
|
|
49830
|
+
/**
|
|
49831
|
+
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
49832
|
+
*/
|
|
49833
|
+
context?: string;
|
|
49834
|
+
/**
|
|
49835
|
+
* 关闭时保存登录态。
|
|
49836
|
+
*/
|
|
49837
|
+
persist?: boolean;
|
|
49838
|
+
/**
|
|
49839
|
+
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
49840
|
+
*/
|
|
49841
|
+
timeout?: number;
|
|
49842
|
+
/**
|
|
49843
|
+
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
49844
|
+
*/
|
|
49845
|
+
idle?: number;
|
|
49846
|
+
/**
|
|
49847
|
+
* JSON 编码的字符串标签对象。
|
|
49848
|
+
*/
|
|
49849
|
+
labels?: string;
|
|
49850
|
+
/**
|
|
49851
|
+
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
49852
|
+
*/
|
|
49853
|
+
viewport?: string;
|
|
49854
|
+
};
|
|
49855
|
+
url: '/browser/v1/connect';
|
|
49856
|
+
};
|
|
49857
|
+
export type BrowserConnectErrors = {
|
|
49858
|
+
/**
|
|
49859
|
+
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
49860
|
+
*/
|
|
49861
|
+
400: BrowserError;
|
|
49862
|
+
/**
|
|
49863
|
+
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
49864
|
+
*/
|
|
49865
|
+
401: BrowserError;
|
|
49866
|
+
/**
|
|
49867
|
+
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
49868
|
+
*/
|
|
49869
|
+
402: BrowserError;
|
|
49870
|
+
/**
|
|
49871
|
+
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
49872
|
+
*/
|
|
49873
|
+
403: BrowserError;
|
|
49874
|
+
/**
|
|
49875
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48623
49876
|
*/
|
|
48624
49877
|
404: BrowserError;
|
|
48625
49878
|
/**
|
|
48626
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49879
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48627
49880
|
*/
|
|
48628
49881
|
409: BrowserError;
|
|
48629
49882
|
/**
|
|
48630
|
-
*
|
|
49883
|
+
* ACTION_RESULT_TOO_LARGE
|
|
48631
49884
|
*/
|
|
48632
|
-
|
|
48633
|
-
/**
|
|
48634
|
-
* INTERNAL
|
|
48635
|
-
*/
|
|
48636
|
-
500: BrowserError;
|
|
48637
|
-
/**
|
|
48638
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
48639
|
-
*/
|
|
48640
|
-
501: BrowserError;
|
|
48641
|
-
/**
|
|
48642
|
-
* PROVIDER_FAILED
|
|
48643
|
-
*/
|
|
48644
|
-
502: BrowserError;
|
|
48645
|
-
/**
|
|
48646
|
-
* SERVICE_UNAVAILABLE
|
|
48647
|
-
*/
|
|
48648
|
-
503: BrowserError;
|
|
48649
|
-
};
|
|
48650
|
-
export type BrowserGetContextError = BrowserGetContextErrors[keyof BrowserGetContextErrors];
|
|
48651
|
-
export type BrowserGetContextResponses = {
|
|
48652
|
-
/**
|
|
48653
|
-
* 请求成功。
|
|
48654
|
-
*/
|
|
48655
|
-
200: BrowserContext;
|
|
48656
|
-
};
|
|
48657
|
-
export type BrowserGetContextResponse = BrowserGetContextResponses[keyof BrowserGetContextResponses];
|
|
48658
|
-
export type BrowserUpdateContextData = {
|
|
48659
|
-
body: {
|
|
48660
|
-
/**
|
|
48661
|
-
* 登录态名称;非空时为 1–128 个 ASCII 字母、数字或 . _ : -,在当前账户内唯一;空字符串表示不设名称或清除名称。
|
|
48662
|
-
*/
|
|
48663
|
-
name?: '' | unknown;
|
|
48664
|
-
/**
|
|
48665
|
-
* 自定义字符串标签;最多 32 项,键最多 128 个 UTF-8 字节,值最多 1024 个 UTF-8 字节。 更新时整体替换;空对象清除标签,省略则保留。
|
|
48666
|
-
*/
|
|
48667
|
-
labels?: {
|
|
48668
|
-
[key: string]: string;
|
|
48669
|
-
};
|
|
48670
|
-
};
|
|
48671
|
-
path: {
|
|
48672
|
-
/**
|
|
48673
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
48674
|
-
*/
|
|
48675
|
-
contextId: string;
|
|
48676
|
-
};
|
|
48677
|
-
query?: never;
|
|
48678
|
-
url: '/browser/v1/contexts/{contextId}';
|
|
48679
|
-
};
|
|
48680
|
-
export type BrowserUpdateContextErrors = {
|
|
48681
|
-
/**
|
|
48682
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
48683
|
-
*/
|
|
48684
|
-
400: BrowserError;
|
|
48685
|
-
/**
|
|
48686
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
48687
|
-
*/
|
|
48688
|
-
401: BrowserError;
|
|
48689
|
-
/**
|
|
48690
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
48691
|
-
*/
|
|
48692
|
-
402: BrowserError;
|
|
48693
|
-
/**
|
|
48694
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
48695
|
-
*/
|
|
48696
|
-
403: BrowserError;
|
|
48697
|
-
/**
|
|
48698
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48699
|
-
*/
|
|
48700
|
-
404: BrowserError;
|
|
48701
|
-
/**
|
|
48702
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48703
|
-
*/
|
|
48704
|
-
409: BrowserError;
|
|
49885
|
+
413: BrowserError;
|
|
48705
49886
|
/**
|
|
48706
49887
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48707
49888
|
*/
|
|
@@ -48722,103 +49903,10 @@ export type BrowserUpdateContextErrors = {
|
|
|
48722
49903
|
* SERVICE_UNAVAILABLE
|
|
48723
49904
|
*/
|
|
48724
49905
|
503: BrowserError;
|
|
48725
|
-
};
|
|
48726
|
-
export type BrowserUpdateContextError = BrowserUpdateContextErrors[keyof BrowserUpdateContextErrors];
|
|
48727
|
-
export type BrowserUpdateContextResponses = {
|
|
48728
49906
|
/**
|
|
48729
|
-
*
|
|
49907
|
+
* ACTION_TIMEOUT
|
|
48730
49908
|
*/
|
|
48731
|
-
|
|
48732
|
-
};
|
|
48733
|
-
export type BrowserUpdateContextResponse = BrowserUpdateContextResponses[keyof BrowserUpdateContextResponses];
|
|
48734
|
-
export type BrowserConnectData = {
|
|
48735
|
-
body?: never;
|
|
48736
|
-
path?: never;
|
|
48737
|
-
query?: {
|
|
48738
|
-
/**
|
|
48739
|
-
* 浏览器会话 ID;使用创建或列出会话返回的 id,以 bss_ 开头。
|
|
48740
|
-
*/
|
|
48741
|
-
session?: string;
|
|
48742
|
-
/**
|
|
48743
|
-
* 会话名称;1–128 个 ASCII 字母、数字或 . _ : -,可用于筛选会话。
|
|
48744
|
-
*/
|
|
48745
|
-
name?: string;
|
|
48746
|
-
/**
|
|
48747
|
-
* connectUrl 自带凭证;必须同时带 session。
|
|
48748
|
-
*/
|
|
48749
|
-
signingKey?: string;
|
|
48750
|
-
/**
|
|
48751
|
-
* 登录态 ID;使用创建或列出登录态返回的 id,以 bsc_ 开头。
|
|
48752
|
-
*/
|
|
48753
|
-
context?: string;
|
|
48754
|
-
/**
|
|
48755
|
-
* 关闭时保存登录态。
|
|
48756
|
-
*/
|
|
48757
|
-
persist?: boolean;
|
|
48758
|
-
/**
|
|
48759
|
-
* 新会话最长寿命,单位为秒,可含小数;连接已有会话时忽略。
|
|
48760
|
-
*/
|
|
48761
|
-
timeout?: number;
|
|
48762
|
-
/**
|
|
48763
|
-
* 新会话无人连接或观看后的释放等待时长,单位为毫秒;允许 0 或小数,连接已有会话时忽略。
|
|
48764
|
-
*/
|
|
48765
|
-
idle?: number;
|
|
48766
|
-
/**
|
|
48767
|
-
* JSON 编码的字符串标签对象。
|
|
48768
|
-
*/
|
|
48769
|
-
labels?: string;
|
|
48770
|
-
/**
|
|
48771
|
-
* JSON 编码的视口,例如 {"width":1280,"height":800}。
|
|
48772
|
-
*/
|
|
48773
|
-
viewport?: string;
|
|
48774
|
-
};
|
|
48775
|
-
url: '/browser/v1/connect';
|
|
48776
|
-
};
|
|
48777
|
-
export type BrowserConnectErrors = {
|
|
48778
|
-
/**
|
|
48779
|
-
* INVALID_PARAMS / INVALID_FILTER / INVALID_PAGE_TOKEN
|
|
48780
|
-
*/
|
|
48781
|
-
400: BrowserError;
|
|
48782
|
-
/**
|
|
48783
|
-
* UNAUTHENTICATED / CONNECT_SIGNATURE_INVALID
|
|
48784
|
-
*/
|
|
48785
|
-
401: BrowserError;
|
|
48786
|
-
/**
|
|
48787
|
-
* INSUFFICIENT_BALANCE / QUOTA_EXHAUSTED
|
|
48788
|
-
*/
|
|
48789
|
-
402: BrowserError;
|
|
48790
|
-
/**
|
|
48791
|
-
* PERMISSION_DENIED / ACCOUNT_SUSPENDED
|
|
48792
|
-
*/
|
|
48793
|
-
403: BrowserError;
|
|
48794
|
-
/**
|
|
48795
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
48796
|
-
*/
|
|
48797
|
-
404: BrowserError;
|
|
48798
|
-
/**
|
|
48799
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
48800
|
-
*/
|
|
48801
|
-
409: BrowserError;
|
|
48802
|
-
/**
|
|
48803
|
-
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48804
|
-
*/
|
|
48805
|
-
429: BrowserError;
|
|
48806
|
-
/**
|
|
48807
|
-
* INTERNAL
|
|
48808
|
-
*/
|
|
48809
|
-
500: BrowserError;
|
|
48810
|
-
/**
|
|
48811
|
-
* NOT_IMPLEMENTED / PROVIDER_UNSUPPORTED
|
|
48812
|
-
*/
|
|
48813
|
-
501: BrowserError;
|
|
48814
|
-
/**
|
|
48815
|
-
* PROVIDER_FAILED
|
|
48816
|
-
*/
|
|
48817
|
-
502: BrowserError;
|
|
48818
|
-
/**
|
|
48819
|
-
* SERVICE_UNAVAILABLE
|
|
48820
|
-
*/
|
|
48821
|
-
503: BrowserError;
|
|
49909
|
+
504: BrowserError;
|
|
48822
49910
|
};
|
|
48823
49911
|
export type BrowserConnectError = BrowserConnectErrors[keyof BrowserConnectErrors];
|
|
48824
49912
|
export type BrowserLiveViewData = {
|
|
@@ -48859,13 +49947,17 @@ export type BrowserLiveViewErrors = {
|
|
|
48859
49947
|
*/
|
|
48860
49948
|
403: BrowserError;
|
|
48861
49949
|
/**
|
|
48862
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
49950
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48863
49951
|
*/
|
|
48864
49952
|
404: BrowserError;
|
|
48865
49953
|
/**
|
|
48866
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
49954
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48867
49955
|
*/
|
|
48868
49956
|
409: BrowserError;
|
|
49957
|
+
/**
|
|
49958
|
+
* ACTION_RESULT_TOO_LARGE
|
|
49959
|
+
*/
|
|
49960
|
+
413: BrowserError;
|
|
48869
49961
|
/**
|
|
48870
49962
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48871
49963
|
*/
|
|
@@ -48886,6 +49978,10 @@ export type BrowserLiveViewErrors = {
|
|
|
48886
49978
|
* SERVICE_UNAVAILABLE
|
|
48887
49979
|
*/
|
|
48888
49980
|
503: BrowserError;
|
|
49981
|
+
/**
|
|
49982
|
+
* ACTION_TIMEOUT
|
|
49983
|
+
*/
|
|
49984
|
+
504: BrowserError;
|
|
48889
49985
|
};
|
|
48890
49986
|
export type BrowserLiveViewError = BrowserLiveViewErrors[keyof BrowserLiveViewErrors];
|
|
48891
49987
|
export type BrowserStreamSessionData = {
|
|
@@ -48917,13 +50013,17 @@ export type BrowserStreamSessionErrors = {
|
|
|
48917
50013
|
*/
|
|
48918
50014
|
403: BrowserError;
|
|
48919
50015
|
/**
|
|
48920
|
-
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND
|
|
50016
|
+
* SESSION_NOT_FOUND / CONTEXT_NOT_FOUND / PARENT_NOT_FOUND / ACTION_TAB_NOT_FOUND
|
|
48921
50017
|
*/
|
|
48922
50018
|
404: BrowserError;
|
|
48923
50019
|
/**
|
|
48924
|
-
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING
|
|
50020
|
+
* SESSION_ENDED / SESSION_INVALID_STATE / CONTEXT_LOCKED / HANDOFF_NOT_PENDING / ACTION_NO_TAB / ACTION_REF_STALE / ACTION_FAILED
|
|
48925
50021
|
*/
|
|
48926
50022
|
409: BrowserError;
|
|
50023
|
+
/**
|
|
50024
|
+
* ACTION_RESULT_TOO_LARGE
|
|
50025
|
+
*/
|
|
50026
|
+
413: BrowserError;
|
|
48927
50027
|
/**
|
|
48928
50028
|
* CONCURRENCY_LIMIT / RATE_LIMITED / PROVIDER_CAPACITY
|
|
48929
50029
|
*/
|
|
@@ -48944,6 +50044,10 @@ export type BrowserStreamSessionErrors = {
|
|
|
48944
50044
|
* SERVICE_UNAVAILABLE
|
|
48945
50045
|
*/
|
|
48946
50046
|
503: BrowserError;
|
|
50047
|
+
/**
|
|
50048
|
+
* ACTION_TIMEOUT
|
|
50049
|
+
*/
|
|
50050
|
+
504: BrowserError;
|
|
48947
50051
|
};
|
|
48948
50052
|
export type BrowserStreamSessionError = BrowserStreamSessionErrors[keyof BrowserStreamSessionErrors];
|
|
48949
50053
|
export type BrowserStreamSessionResponses = {
|
|
@@ -78982,6 +80086,10 @@ export type MediaListLibrariesErrors = {
|
|
|
78982
80086
|
* Request failed; see the error code reference.
|
|
78983
80087
|
*/
|
|
78984
80088
|
400: MediaMediaError;
|
|
80089
|
+
/**
|
|
80090
|
+
* Request failed; see the error code reference.
|
|
80091
|
+
*/
|
|
80092
|
+
402: MediaMediaError;
|
|
78985
80093
|
/**
|
|
78986
80094
|
* Request failed; see the error code reference.
|
|
78987
80095
|
*/
|
|
@@ -79077,6 +80185,10 @@ export type MediaCreateLibraryErrors = {
|
|
|
79077
80185
|
* Request failed; see the error code reference.
|
|
79078
80186
|
*/
|
|
79079
80187
|
400: MediaMediaError;
|
|
80188
|
+
/**
|
|
80189
|
+
* Request failed; see the error code reference.
|
|
80190
|
+
*/
|
|
80191
|
+
402: MediaMediaError;
|
|
79080
80192
|
/**
|
|
79081
80193
|
* Request failed; see the error code reference.
|
|
79082
80194
|
*/
|
|
@@ -79155,6 +80267,10 @@ export type MediaCreateFrameUrlsErrors = {
|
|
|
79155
80267
|
* INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
|
|
79156
80268
|
*/
|
|
79157
80269
|
400: MediaMediaError;
|
|
80270
|
+
/**
|
|
80271
|
+
* Request failed; see the error code reference.
|
|
80272
|
+
*/
|
|
80273
|
+
402: MediaMediaError;
|
|
79158
80274
|
/**
|
|
79159
80275
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
79160
80276
|
*/
|
|
@@ -79220,6 +80336,10 @@ export type MediaDeleteLibraryErrors = {
|
|
|
79220
80336
|
* Request failed; see the error code reference.
|
|
79221
80337
|
*/
|
|
79222
80338
|
400: MediaMediaError;
|
|
80339
|
+
/**
|
|
80340
|
+
* Request failed; see the error code reference.
|
|
80341
|
+
*/
|
|
80342
|
+
402: MediaMediaError;
|
|
79223
80343
|
/**
|
|
79224
80344
|
* Request failed; see the error code reference.
|
|
79225
80345
|
*/
|
|
@@ -79285,6 +80405,10 @@ export type MediaGetLibraryErrors = {
|
|
|
79285
80405
|
* Request failed; see the error code reference.
|
|
79286
80406
|
*/
|
|
79287
80407
|
400: MediaMediaError;
|
|
80408
|
+
/**
|
|
80409
|
+
* Request failed; see the error code reference.
|
|
80410
|
+
*/
|
|
80411
|
+
402: MediaMediaError;
|
|
79288
80412
|
/**
|
|
79289
80413
|
* Request failed; see the error code reference.
|
|
79290
80414
|
*/
|
|
@@ -79389,6 +80513,10 @@ export type MediaUpdateLibraryErrors = {
|
|
|
79389
80513
|
* Request failed; see the error code reference.
|
|
79390
80514
|
*/
|
|
79391
80515
|
400: MediaMediaError;
|
|
80516
|
+
/**
|
|
80517
|
+
* Request failed; see the error code reference.
|
|
80518
|
+
*/
|
|
80519
|
+
402: MediaMediaError;
|
|
79392
80520
|
/**
|
|
79393
80521
|
* Request failed; see the error code reference.
|
|
79394
80522
|
*/
|
|
@@ -79454,6 +80582,10 @@ export type MediaRestoreLibraryErrors = {
|
|
|
79454
80582
|
* Request failed; see the error code reference.
|
|
79455
80583
|
*/
|
|
79456
80584
|
400: MediaMediaError;
|
|
80585
|
+
/**
|
|
80586
|
+
* Request failed; see the error code reference.
|
|
80587
|
+
*/
|
|
80588
|
+
402: MediaMediaError;
|
|
79457
80589
|
/**
|
|
79458
80590
|
* Request failed; see the error code reference.
|
|
79459
80591
|
*/
|
|
@@ -79519,6 +80651,10 @@ export type MediaPurgeLibraryErrors = {
|
|
|
79519
80651
|
* Request failed; see the error code reference.
|
|
79520
80652
|
*/
|
|
79521
80653
|
400: MediaMediaError;
|
|
80654
|
+
/**
|
|
80655
|
+
* Request failed; see the error code reference.
|
|
80656
|
+
*/
|
|
80657
|
+
402: MediaMediaError;
|
|
79522
80658
|
/**
|
|
79523
80659
|
* Request failed; see the error code reference.
|
|
79524
80660
|
*/
|
|
@@ -79585,6 +80721,10 @@ export type MediaListAssetsData = {
|
|
|
79585
80721
|
* image, video (including audio), raw; auto is accepted by Upload actions only, and listing with auto returns 400.
|
|
79586
80722
|
*/
|
|
79587
80723
|
resource_type?: 'image' | 'video' | 'raw';
|
|
80724
|
+
/**
|
|
80725
|
+
* Filter assets to one kind of material, independent of the stored resource_type. Omit to list every material type. Assets stored before this field existed match no material_type filter.
|
|
80726
|
+
*/
|
|
80727
|
+
material_type?: MediaMaterialType;
|
|
79588
80728
|
/**
|
|
79589
80729
|
* Cursor from the previous next_cursor.
|
|
79590
80730
|
*/
|
|
@@ -79601,6 +80741,10 @@ export type MediaListAssetsErrors = {
|
|
|
79601
80741
|
* Request failed; see the error code reference.
|
|
79602
80742
|
*/
|
|
79603
80743
|
400: MediaMediaError;
|
|
80744
|
+
/**
|
|
80745
|
+
* Request failed; see the error code reference.
|
|
80746
|
+
*/
|
|
80747
|
+
402: MediaMediaError;
|
|
79604
80748
|
/**
|
|
79605
80749
|
* Request failed; see the error code reference.
|
|
79606
80750
|
*/
|
|
@@ -79742,6 +80886,10 @@ export type MediaUploadAssetErrors = {
|
|
|
79742
80886
|
* Request failed; see the error code reference.
|
|
79743
80887
|
*/
|
|
79744
80888
|
400: MediaMediaError;
|
|
80889
|
+
/**
|
|
80890
|
+
* Request failed; see the error code reference.
|
|
80891
|
+
*/
|
|
80892
|
+
402: MediaMediaError;
|
|
79745
80893
|
/**
|
|
79746
80894
|
* Request failed; see the error code reference.
|
|
79747
80895
|
*/
|
|
@@ -79873,6 +81021,10 @@ export type MediaImportAssetErrors = {
|
|
|
79873
81021
|
* Request failed; see the error code reference.
|
|
79874
81022
|
*/
|
|
79875
81023
|
400: MediaMediaError;
|
|
81024
|
+
/**
|
|
81025
|
+
* Request failed; see the error code reference.
|
|
81026
|
+
*/
|
|
81027
|
+
402: MediaMediaError;
|
|
79876
81028
|
/**
|
|
79877
81029
|
* Request failed; see the error code reference.
|
|
79878
81030
|
*/
|
|
@@ -79942,6 +81094,10 @@ export type MediaDeleteAssetErrors = {
|
|
|
79942
81094
|
* Request failed; see the error code reference.
|
|
79943
81095
|
*/
|
|
79944
81096
|
400: MediaMediaError;
|
|
81097
|
+
/**
|
|
81098
|
+
* Request failed; see the error code reference.
|
|
81099
|
+
*/
|
|
81100
|
+
402: MediaMediaError;
|
|
79945
81101
|
/**
|
|
79946
81102
|
* Request failed; see the error code reference.
|
|
79947
81103
|
*/
|
|
@@ -80011,6 +81167,10 @@ export type MediaGetAssetErrors = {
|
|
|
80011
81167
|
* Request failed; see the error code reference.
|
|
80012
81168
|
*/
|
|
80013
81169
|
400: MediaMediaError;
|
|
81170
|
+
/**
|
|
81171
|
+
* Request failed; see the error code reference.
|
|
81172
|
+
*/
|
|
81173
|
+
402: MediaMediaError;
|
|
80014
81174
|
/**
|
|
80015
81175
|
* Request failed; see the error code reference.
|
|
80016
81176
|
*/
|
|
@@ -80102,6 +81262,10 @@ export type MediaUpdateAssetErrors = {
|
|
|
80102
81262
|
* Request failed; see the error code reference.
|
|
80103
81263
|
*/
|
|
80104
81264
|
400: MediaMediaError;
|
|
81265
|
+
/**
|
|
81266
|
+
* Request failed; see the error code reference.
|
|
81267
|
+
*/
|
|
81268
|
+
402: MediaMediaError;
|
|
80105
81269
|
/**
|
|
80106
81270
|
* Request failed; see the error code reference.
|
|
80107
81271
|
*/
|
|
@@ -80179,6 +81343,10 @@ export type MediaReprocessAssetErrors = {
|
|
|
80179
81343
|
* Request failed; see the error code reference.
|
|
80180
81344
|
*/
|
|
80181
81345
|
400: MediaMediaError;
|
|
81346
|
+
/**
|
|
81347
|
+
* Request failed; see the error code reference.
|
|
81348
|
+
*/
|
|
81349
|
+
402: MediaMediaError;
|
|
80182
81350
|
/**
|
|
80183
81351
|
* Request failed; see the error code reference.
|
|
80184
81352
|
*/
|
|
@@ -80265,6 +81433,10 @@ export type MediaListUnderstandingsErrors = {
|
|
|
80265
81433
|
* Request failed; see the error code reference.
|
|
80266
81434
|
*/
|
|
80267
81435
|
400: MediaMediaError;
|
|
81436
|
+
/**
|
|
81437
|
+
* Request failed; see the error code reference.
|
|
81438
|
+
*/
|
|
81439
|
+
402: MediaMediaError;
|
|
80268
81440
|
/**
|
|
80269
81441
|
* Request failed; see the error code reference.
|
|
80270
81442
|
*/
|
|
@@ -80360,6 +81532,10 @@ export type MediaExpressionSearchErrors = {
|
|
|
80360
81532
|
* Request failed; see the error code reference.
|
|
80361
81533
|
*/
|
|
80362
81534
|
400: MediaMediaError;
|
|
81535
|
+
/**
|
|
81536
|
+
* Request failed; see the error code reference.
|
|
81537
|
+
*/
|
|
81538
|
+
402: MediaMediaError;
|
|
80363
81539
|
/**
|
|
80364
81540
|
* Request failed; see the error code reference.
|
|
80365
81541
|
*/
|
|
@@ -80451,6 +81627,10 @@ export type MediaVisualSearchErrors = {
|
|
|
80451
81627
|
* Request failed; see the error code reference.
|
|
80452
81628
|
*/
|
|
80453
81629
|
400: MediaMediaError;
|
|
81630
|
+
/**
|
|
81631
|
+
* Request failed; see the error code reference.
|
|
81632
|
+
*/
|
|
81633
|
+
402: MediaMediaError;
|
|
80454
81634
|
/**
|
|
80455
81635
|
* Request failed; see the error code reference.
|
|
80456
81636
|
*/
|
|
@@ -80514,13 +81694,17 @@ export type MediaSemanticSearchData = {
|
|
|
80514
81694
|
*/
|
|
80515
81695
|
filter?: string;
|
|
80516
81696
|
/**
|
|
80517
|
-
* Maximum search hits, from 1 to 50; defaults to 20.
|
|
81697
|
+
* Maximum search hits, from 1 to 50; defaults to 20. top_k takes effect and bounds how many distinct hits come back, counting collapsed duplicates as one hit.
|
|
80518
81698
|
*/
|
|
80519
81699
|
top_k?: number;
|
|
80520
81700
|
/**
|
|
80521
81701
|
* Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid.
|
|
80522
81702
|
*/
|
|
80523
81703
|
mode?: 'hybrid' | 'semantic';
|
|
81704
|
+
/**
|
|
81705
|
+
* Filter results to one kind of material, independent of the Cloudinary-face resource_type inside filter. Omit to search every material type.
|
|
81706
|
+
*/
|
|
81707
|
+
material_type?: MediaMaterialType;
|
|
80524
81708
|
};
|
|
80525
81709
|
path: {
|
|
80526
81710
|
/**
|
|
@@ -80536,6 +81720,10 @@ export type MediaSemanticSearchErrors = {
|
|
|
80536
81720
|
* Request failed; see the error code reference.
|
|
80537
81721
|
*/
|
|
80538
81722
|
400: MediaMediaError;
|
|
81723
|
+
/**
|
|
81724
|
+
* Request failed; see the error code reference.
|
|
81725
|
+
*/
|
|
81726
|
+
402: MediaMediaError;
|
|
80539
81727
|
/**
|
|
80540
81728
|
* Request failed; see the error code reference.
|
|
80541
81729
|
*/
|
|
@@ -80599,13 +81787,17 @@ export type MediaSearchData = {
|
|
|
80599
81787
|
*/
|
|
80600
81788
|
filter?: string;
|
|
80601
81789
|
/**
|
|
80602
|
-
* Maximum search hits, from 1 to 50; defaults to 20.
|
|
81790
|
+
* Maximum search hits, from 1 to 50; defaults to 20. top_k takes effect and bounds how many distinct hits come back, counting collapsed duplicates as one hit.
|
|
80603
81791
|
*/
|
|
80604
81792
|
top_k?: number;
|
|
80605
81793
|
/**
|
|
80606
81794
|
* Ranking mode: hybrid combines semantic and keyword matches; semantic uses vector similarity only. Defaults to hybrid.
|
|
80607
81795
|
*/
|
|
80608
81796
|
mode?: 'hybrid' | 'semantic';
|
|
81797
|
+
/**
|
|
81798
|
+
* Filter results to one kind of material, independent of the Cloudinary-face resource_type inside filter. Omit to search every material type.
|
|
81799
|
+
*/
|
|
81800
|
+
material_type?: MediaMaterialType;
|
|
80609
81801
|
};
|
|
80610
81802
|
path: {
|
|
80611
81803
|
/**
|
|
@@ -80621,6 +81813,10 @@ export type MediaSearchErrors = {
|
|
|
80621
81813
|
* Request failed; see the error code reference.
|
|
80622
81814
|
*/
|
|
80623
81815
|
400: MediaMediaError;
|
|
81816
|
+
/**
|
|
81817
|
+
* Request failed; see the error code reference.
|
|
81818
|
+
*/
|
|
81819
|
+
402: MediaMediaError;
|
|
80624
81820
|
/**
|
|
80625
81821
|
* Request failed; see the error code reference.
|
|
80626
81822
|
*/
|
|
@@ -80691,6 +81887,10 @@ export type MediaListFoldersErrors = {
|
|
|
80691
81887
|
* Request failed; see the error code reference.
|
|
80692
81888
|
*/
|
|
80693
81889
|
400: MediaMediaError;
|
|
81890
|
+
/**
|
|
81891
|
+
* Request failed; see the error code reference.
|
|
81892
|
+
*/
|
|
81893
|
+
402: MediaMediaError;
|
|
80694
81894
|
/**
|
|
80695
81895
|
* Request failed; see the error code reference.
|
|
80696
81896
|
*/
|
|
@@ -80768,6 +81968,10 @@ export type MediaCreateBatchErrors = {
|
|
|
80768
81968
|
* Request failed; see the error code reference.
|
|
80769
81969
|
*/
|
|
80770
81970
|
400: MediaMediaError;
|
|
81971
|
+
/**
|
|
81972
|
+
* Request failed; see the error code reference.
|
|
81973
|
+
*/
|
|
81974
|
+
402: MediaMediaError;
|
|
80771
81975
|
/**
|
|
80772
81976
|
* Request failed; see the error code reference.
|
|
80773
81977
|
*/
|
|
@@ -80837,6 +82041,10 @@ export type MediaGetBatchErrors = {
|
|
|
80837
82041
|
* Request failed; see the error code reference.
|
|
80838
82042
|
*/
|
|
80839
82043
|
400: MediaMediaError;
|
|
82044
|
+
/**
|
|
82045
|
+
* Request failed; see the error code reference.
|
|
82046
|
+
*/
|
|
82047
|
+
402: MediaMediaError;
|
|
80840
82048
|
/**
|
|
80841
82049
|
* Request failed; see the error code reference.
|
|
80842
82050
|
*/
|
|
@@ -80914,6 +82122,10 @@ export type MediaBatchAssetsErrors = {
|
|
|
80914
82122
|
* Request failed; see the error code reference.
|
|
80915
82123
|
*/
|
|
80916
82124
|
400: MediaMediaError;
|
|
82125
|
+
/**
|
|
82126
|
+
* Request failed; see the error code reference.
|
|
82127
|
+
*/
|
|
82128
|
+
402: MediaMediaError;
|
|
80917
82129
|
/**
|
|
80918
82130
|
* Request failed; see the error code reference.
|
|
80919
82131
|
*/
|
|
@@ -80983,6 +82195,10 @@ export type MediaGetJobErrors = {
|
|
|
80983
82195
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
80984
82196
|
*/
|
|
80985
82197
|
400: MediaMediaError;
|
|
82198
|
+
/**
|
|
82199
|
+
* Request failed; see the error code reference.
|
|
82200
|
+
*/
|
|
82201
|
+
402: MediaMediaError;
|
|
80986
82202
|
/**
|
|
80987
82203
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
80988
82204
|
*/
|
|
@@ -81065,6 +82281,10 @@ export type MediaListEventsErrors = {
|
|
|
81065
82281
|
* Request failed; see the error code reference.
|
|
81066
82282
|
*/
|
|
81067
82283
|
400: MediaMediaError;
|
|
82284
|
+
/**
|
|
82285
|
+
* Request failed; see the error code reference.
|
|
82286
|
+
*/
|
|
82287
|
+
402: MediaMediaError;
|
|
81068
82288
|
/**
|
|
81069
82289
|
* Request failed; see the error code reference.
|
|
81070
82290
|
*/
|
|
@@ -81142,6 +82362,10 @@ export type MediaCreateDeliveryTokenErrors = {
|
|
|
81142
82362
|
* Request failed; see the error code reference.
|
|
81143
82363
|
*/
|
|
81144
82364
|
400: MediaMediaError;
|
|
82365
|
+
/**
|
|
82366
|
+
* Request failed; see the error code reference.
|
|
82367
|
+
*/
|
|
82368
|
+
402: MediaMediaError;
|
|
81145
82369
|
/**
|
|
81146
82370
|
* Request failed; see the error code reference.
|
|
81147
82371
|
*/
|
|
@@ -81191,6 +82415,215 @@ export type MediaCreateDeliveryTokenResponses = {
|
|
|
81191
82415
|
200: MediaDeliveryToken;
|
|
81192
82416
|
};
|
|
81193
82417
|
export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
|
|
82418
|
+
export type MediaGetDefaultLibraryData = {
|
|
82419
|
+
body?: never;
|
|
82420
|
+
path?: never;
|
|
82421
|
+
query?: never;
|
|
82422
|
+
url: '/media/v1/libraries/default';
|
|
82423
|
+
};
|
|
82424
|
+
export type MediaGetDefaultLibraryErrors = {
|
|
82425
|
+
/**
|
|
82426
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
82427
|
+
*/
|
|
82428
|
+
400: MediaMediaError;
|
|
82429
|
+
/**
|
|
82430
|
+
* Request failed; see the error code reference.
|
|
82431
|
+
*/
|
|
82432
|
+
402: MediaMediaError;
|
|
82433
|
+
/**
|
|
82434
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
82435
|
+
*/
|
|
82436
|
+
403: MediaMediaError;
|
|
82437
|
+
/**
|
|
82438
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
82439
|
+
*/
|
|
82440
|
+
404: MediaMediaError;
|
|
82441
|
+
/**
|
|
82442
|
+
* Request failed; see the error code reference.
|
|
82443
|
+
*/
|
|
82444
|
+
409: MediaMediaError;
|
|
82445
|
+
/**
|
|
82446
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
82447
|
+
*/
|
|
82448
|
+
413: MediaMediaError;
|
|
82449
|
+
/**
|
|
82450
|
+
* This media format is unsupported; provide a supported format.
|
|
82451
|
+
*/
|
|
82452
|
+
415: MediaMediaError;
|
|
82453
|
+
/**
|
|
82454
|
+
* Request failed; see the error code reference.
|
|
82455
|
+
*/
|
|
82456
|
+
422: MediaMediaError;
|
|
82457
|
+
/**
|
|
82458
|
+
* A rate limit was reached; wait before retrying.
|
|
82459
|
+
*/
|
|
82460
|
+
429: MediaMediaError;
|
|
82461
|
+
/**
|
|
82462
|
+
* The requested operation is unsupported; choose a supported method.
|
|
82463
|
+
*/
|
|
82464
|
+
501: MediaMediaError;
|
|
82465
|
+
/**
|
|
82466
|
+
* Request failed; see the error code reference.
|
|
82467
|
+
*/
|
|
82468
|
+
502: MediaMediaError;
|
|
82469
|
+
/**
|
|
82470
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
82471
|
+
*/
|
|
82472
|
+
503: MediaMediaError;
|
|
82473
|
+
};
|
|
82474
|
+
export type MediaGetDefaultLibraryError = MediaGetDefaultLibraryErrors[keyof MediaGetDefaultLibraryErrors];
|
|
82475
|
+
export type MediaGetDefaultLibraryResponses = {
|
|
82476
|
+
/**
|
|
82477
|
+
* Successful response.
|
|
82478
|
+
*/
|
|
82479
|
+
200: MediaLibrary;
|
|
82480
|
+
};
|
|
82481
|
+
export type MediaGetDefaultLibraryResponse = MediaGetDefaultLibraryResponses[keyof MediaGetDefaultLibraryResponses];
|
|
82482
|
+
export type MediaSetDefaultLibraryData = {
|
|
82483
|
+
/**
|
|
82484
|
+
* Points the organization’s default library at an existing library (ADR-093).
|
|
82485
|
+
*/
|
|
82486
|
+
body: {
|
|
82487
|
+
/**
|
|
82488
|
+
* Library to make this organization’s default, from library creation or listing. The library must be active and belong to the organization.
|
|
82489
|
+
*/
|
|
82490
|
+
library_id: MediaLibraryId;
|
|
82491
|
+
};
|
|
82492
|
+
path?: never;
|
|
82493
|
+
query?: never;
|
|
82494
|
+
url: '/media/v1/libraries/default';
|
|
82495
|
+
};
|
|
82496
|
+
export type MediaSetDefaultLibraryErrors = {
|
|
82497
|
+
/**
|
|
82498
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
82499
|
+
*/
|
|
82500
|
+
400: MediaMediaError;
|
|
82501
|
+
/**
|
|
82502
|
+
* Request failed; see the error code reference.
|
|
82503
|
+
*/
|
|
82504
|
+
402: MediaMediaError;
|
|
82505
|
+
/**
|
|
82506
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
82507
|
+
*/
|
|
82508
|
+
403: MediaMediaError;
|
|
82509
|
+
/**
|
|
82510
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
82511
|
+
*/
|
|
82512
|
+
404: MediaMediaError;
|
|
82513
|
+
/**
|
|
82514
|
+
* Request failed; see the error code reference.
|
|
82515
|
+
*/
|
|
82516
|
+
409: MediaMediaError;
|
|
82517
|
+
/**
|
|
82518
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
82519
|
+
*/
|
|
82520
|
+
413: MediaMediaError;
|
|
82521
|
+
/**
|
|
82522
|
+
* This media format is unsupported; provide a supported format.
|
|
82523
|
+
*/
|
|
82524
|
+
415: MediaMediaError;
|
|
82525
|
+
/**
|
|
82526
|
+
* Request failed; see the error code reference.
|
|
82527
|
+
*/
|
|
82528
|
+
422: MediaMediaError;
|
|
82529
|
+
/**
|
|
82530
|
+
* A rate limit was reached; wait before retrying.
|
|
82531
|
+
*/
|
|
82532
|
+
429: MediaMediaError;
|
|
82533
|
+
/**
|
|
82534
|
+
* The requested operation is unsupported; choose a supported method.
|
|
82535
|
+
*/
|
|
82536
|
+
501: MediaMediaError;
|
|
82537
|
+
/**
|
|
82538
|
+
* Request failed; see the error code reference.
|
|
82539
|
+
*/
|
|
82540
|
+
502: MediaMediaError;
|
|
82541
|
+
/**
|
|
82542
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
82543
|
+
*/
|
|
82544
|
+
503: MediaMediaError;
|
|
82545
|
+
};
|
|
82546
|
+
export type MediaSetDefaultLibraryError = MediaSetDefaultLibraryErrors[keyof MediaSetDefaultLibraryErrors];
|
|
82547
|
+
export type MediaSetDefaultLibraryResponses = {
|
|
82548
|
+
/**
|
|
82549
|
+
* Successful response.
|
|
82550
|
+
*/
|
|
82551
|
+
200: MediaLibrary;
|
|
82552
|
+
};
|
|
82553
|
+
export type MediaSetDefaultLibraryResponse = MediaSetDefaultLibraryResponses[keyof MediaSetDefaultLibraryResponses];
|
|
82554
|
+
export type MediaGetAssetLineageData = {
|
|
82555
|
+
body?: never;
|
|
82556
|
+
path: {
|
|
82557
|
+
/**
|
|
82558
|
+
* Library ID returned by creation.
|
|
82559
|
+
*/
|
|
82560
|
+
library_id: string;
|
|
82561
|
+
/**
|
|
82562
|
+
* 32-character asset ID.
|
|
82563
|
+
*/
|
|
82564
|
+
asset_id: string;
|
|
82565
|
+
};
|
|
82566
|
+
query?: never;
|
|
82567
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/lineage';
|
|
82568
|
+
};
|
|
82569
|
+
export type MediaGetAssetLineageErrors = {
|
|
82570
|
+
/**
|
|
82571
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
82572
|
+
*/
|
|
82573
|
+
400: MediaMediaError;
|
|
82574
|
+
/**
|
|
82575
|
+
* Request failed; see the error code reference.
|
|
82576
|
+
*/
|
|
82577
|
+
402: MediaMediaError;
|
|
82578
|
+
/**
|
|
82579
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
82580
|
+
*/
|
|
82581
|
+
403: MediaMediaError;
|
|
82582
|
+
/**
|
|
82583
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
82584
|
+
*/
|
|
82585
|
+
404: MediaMediaError;
|
|
82586
|
+
/**
|
|
82587
|
+
* Request failed; see the error code reference.
|
|
82588
|
+
*/
|
|
82589
|
+
409: MediaMediaError;
|
|
82590
|
+
/**
|
|
82591
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
82592
|
+
*/
|
|
82593
|
+
413: MediaMediaError;
|
|
82594
|
+
/**
|
|
82595
|
+
* This media format is unsupported; provide a supported format.
|
|
82596
|
+
*/
|
|
82597
|
+
415: MediaMediaError;
|
|
82598
|
+
/**
|
|
82599
|
+
* Request failed; see the error code reference.
|
|
82600
|
+
*/
|
|
82601
|
+
422: MediaMediaError;
|
|
82602
|
+
/**
|
|
82603
|
+
* A rate limit was reached; wait before retrying.
|
|
82604
|
+
*/
|
|
82605
|
+
429: MediaMediaError;
|
|
82606
|
+
/**
|
|
82607
|
+
* The requested operation is unsupported; choose a supported method.
|
|
82608
|
+
*/
|
|
82609
|
+
501: MediaMediaError;
|
|
82610
|
+
/**
|
|
82611
|
+
* Request failed; see the error code reference.
|
|
82612
|
+
*/
|
|
82613
|
+
502: MediaMediaError;
|
|
82614
|
+
/**
|
|
82615
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
82616
|
+
*/
|
|
82617
|
+
503: MediaMediaError;
|
|
82618
|
+
};
|
|
82619
|
+
export type MediaGetAssetLineageError = MediaGetAssetLineageErrors[keyof MediaGetAssetLineageErrors];
|
|
82620
|
+
export type MediaGetAssetLineageResponses = {
|
|
82621
|
+
/**
|
|
82622
|
+
* Successful response.
|
|
82623
|
+
*/
|
|
82624
|
+
200: MediaLineageTree;
|
|
82625
|
+
};
|
|
82626
|
+
export type MediaGetAssetLineageResponse = MediaGetAssetLineageResponses[keyof MediaGetAssetLineageResponses];
|
|
81194
82627
|
export type MediaUnderstandingFailureSummaryData = {
|
|
81195
82628
|
body?: never;
|
|
81196
82629
|
path: {
|
|
@@ -81207,6 +82640,10 @@ export type MediaUnderstandingFailureSummaryErrors = {
|
|
|
81207
82640
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81208
82641
|
*/
|
|
81209
82642
|
400: MediaMediaError;
|
|
82643
|
+
/**
|
|
82644
|
+
* Request failed; see the error code reference.
|
|
82645
|
+
*/
|
|
82646
|
+
402: MediaMediaError;
|
|
81210
82647
|
/**
|
|
81211
82648
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81212
82649
|
*/
|
|
@@ -81289,6 +82726,10 @@ export type MediaListUnderstandingsByLibraryErrors = {
|
|
|
81289
82726
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81290
82727
|
*/
|
|
81291
82728
|
400: MediaMediaError;
|
|
82729
|
+
/**
|
|
82730
|
+
* Request failed; see the error code reference.
|
|
82731
|
+
*/
|
|
82732
|
+
402: MediaMediaError;
|
|
81292
82733
|
/**
|
|
81293
82734
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81294
82735
|
*/
|
|
@@ -81408,6 +82849,10 @@ export type MediaCreateGenerationErrors = {
|
|
|
81408
82849
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81409
82850
|
*/
|
|
81410
82851
|
400: MediaMediaError;
|
|
82852
|
+
/**
|
|
82853
|
+
* Request failed; see the error code reference.
|
|
82854
|
+
*/
|
|
82855
|
+
402: MediaMediaError;
|
|
81411
82856
|
/**
|
|
81412
82857
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81413
82858
|
*/
|
|
@@ -81486,6 +82931,10 @@ export type MediaListJobsErrors = {
|
|
|
81486
82931
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81487
82932
|
*/
|
|
81488
82933
|
400: MediaMediaError;
|
|
82934
|
+
/**
|
|
82935
|
+
* Request failed; see the error code reference.
|
|
82936
|
+
*/
|
|
82937
|
+
402: MediaMediaError;
|
|
81489
82938
|
/**
|
|
81490
82939
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81491
82940
|
*/
|
|
@@ -81555,6 +83004,10 @@ export type MediaCancelJobErrors = {
|
|
|
81555
83004
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81556
83005
|
*/
|
|
81557
83006
|
400: MediaMediaError;
|
|
83007
|
+
/**
|
|
83008
|
+
* Request failed; see the error code reference.
|
|
83009
|
+
*/
|
|
83010
|
+
402: MediaMediaError;
|
|
81558
83011
|
/**
|
|
81559
83012
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81560
83013
|
*/
|
|
@@ -81648,6 +83101,10 @@ export type MediaSaveGenerationOutputErrors = {
|
|
|
81648
83101
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81649
83102
|
*/
|
|
81650
83103
|
400: MediaMediaError;
|
|
83104
|
+
/**
|
|
83105
|
+
* Request failed; see the error code reference.
|
|
83106
|
+
*/
|
|
83107
|
+
402: MediaMediaError;
|
|
81651
83108
|
/**
|
|
81652
83109
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81653
83110
|
*/
|
|
@@ -81708,6 +83165,10 @@ export type MediaGetGenerationCapabilitiesErrors = {
|
|
|
81708
83165
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
81709
83166
|
*/
|
|
81710
83167
|
400: MediaMediaError;
|
|
83168
|
+
/**
|
|
83169
|
+
* Request failed; see the error code reference.
|
|
83170
|
+
*/
|
|
83171
|
+
402: MediaMediaError;
|
|
81711
83172
|
/**
|
|
81712
83173
|
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
81713
83174
|
*/
|
|
@@ -82054,6 +83515,68 @@ export type OntologyUpdateNodeResponses = {
|
|
|
82054
83515
|
200: OntologyNode;
|
|
82055
83516
|
};
|
|
82056
83517
|
export type OntologyUpdateNodeResponse = OntologyUpdateNodeResponses[keyof OntologyUpdateNodeResponses];
|
|
83518
|
+
export type OntologyNeighborhoodData = {
|
|
83519
|
+
body?: never;
|
|
83520
|
+
path: {
|
|
83521
|
+
/**
|
|
83522
|
+
* Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
|
|
83523
|
+
*/
|
|
83524
|
+
node_id: string;
|
|
83525
|
+
};
|
|
83526
|
+
query?: {
|
|
83527
|
+
/**
|
|
83528
|
+
* How many hops from the given node to walk, 1 to 3; defaults to 1. A value outside that range is refused 400 rather than clamped, so the answer is never a smaller graph than the one asked for.
|
|
83529
|
+
*/
|
|
83530
|
+
depth?: number;
|
|
83531
|
+
/**
|
|
83532
|
+
* Maximum nodes to return, 1 to 500; defaults to 200. When the walk reaches this many nodes it stops and reports truncated true, so treat a truncated answer as a sample of the neighborhood rather than all of it. This bound is not the list routes' page size, and there is no cursor to resume from.
|
|
83533
|
+
*/
|
|
83534
|
+
limit?: number;
|
|
83535
|
+
/**
|
|
83536
|
+
* Which way to follow relations from each node walked; out follows relations the node is the source of, in follows those it is the target of, both follows either. Defaults to both. Relations between two returned nodes are included whichever direction brought the second node in.
|
|
83537
|
+
*/
|
|
83538
|
+
direction?: 'out' | 'in' | 'both';
|
|
83539
|
+
/**
|
|
83540
|
+
* ISO 8601 timestamp; walk the graph as it was then — a node recorded later is absent and a relation invalidated since still counts. Omit to read current state.
|
|
83541
|
+
*/
|
|
83542
|
+
as_of?: string;
|
|
83543
|
+
/**
|
|
83544
|
+
* Set true to walk relations whose invalid_at has passed, which is how a fact that stopped being true stays reachable. Omit or false to walk currently valid relations only.
|
|
83545
|
+
*/
|
|
83546
|
+
include_invalid?: boolean;
|
|
83547
|
+
};
|
|
83548
|
+
url: '/ontology/v1/nodes/{node_id}/neighborhood';
|
|
83549
|
+
};
|
|
83550
|
+
export type OntologyNeighborhoodErrors = {
|
|
83551
|
+
/**
|
|
83552
|
+
* INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
|
|
83553
|
+
*/
|
|
83554
|
+
400: OntologyOntologyError;
|
|
83555
|
+
/**
|
|
83556
|
+
* The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
|
|
83557
|
+
*/
|
|
83558
|
+
401: OntologyOntologyError;
|
|
83559
|
+
/**
|
|
83560
|
+
* The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
|
|
83561
|
+
*/
|
|
83562
|
+
403: OntologyOntologyError;
|
|
83563
|
+
/**
|
|
83564
|
+
* ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
|
|
83565
|
+
*/
|
|
83566
|
+
404: OntologyOntologyError;
|
|
83567
|
+
/**
|
|
83568
|
+
* INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
|
|
83569
|
+
*/
|
|
83570
|
+
500: OntologyOntologyError;
|
|
83571
|
+
};
|
|
83572
|
+
export type OntologyNeighborhoodError = OntologyNeighborhoodErrors[keyof OntologyNeighborhoodErrors];
|
|
83573
|
+
export type OntologyNeighborhoodResponses = {
|
|
83574
|
+
/**
|
|
83575
|
+
* The neighborhood in BFS order — the start node first, then each hop ordered by node id — with truncated true when the limit cut it short.
|
|
83576
|
+
*/
|
|
83577
|
+
200: OntologyNeighborhood;
|
|
83578
|
+
};
|
|
83579
|
+
export type OntologyNeighborhoodResponse = OntologyNeighborhoodResponses[keyof OntologyNeighborhoodResponses];
|
|
82057
83580
|
export type OntologyMergeNodeData = {
|
|
82058
83581
|
/**
|
|
82059
83582
|
* The node the merged one folds into.
|
|
@@ -86449,6 +87972,370 @@ export type StudioThemesUpdateResponses = {
|
|
|
86449
87972
|
200: StudioTheme;
|
|
86450
87973
|
};
|
|
86451
87974
|
export type StudioThemesUpdateResponse = StudioThemesUpdateResponses[keyof StudioThemesUpdateResponses];
|
|
87975
|
+
export type StudioRenditionsCreateData = {
|
|
87976
|
+
/**
|
|
87977
|
+
* The rendition to create: its platform, and optionally a theme, settings, whether to render at once and a request id.
|
|
87978
|
+
*/
|
|
87979
|
+
body: StudioRenditionCreateInput;
|
|
87980
|
+
path: {
|
|
87981
|
+
/**
|
|
87982
|
+
* 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.
|
|
87983
|
+
*/
|
|
87984
|
+
work: string;
|
|
87985
|
+
/**
|
|
87986
|
+
* Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
|
|
87987
|
+
*/
|
|
87988
|
+
draft: string;
|
|
87989
|
+
};
|
|
87990
|
+
query?: never;
|
|
87991
|
+
url: '/studio/v1/works/{work}/drafts/{draft}/renditions';
|
|
87992
|
+
};
|
|
87993
|
+
export type StudioRenditionsCreateErrors = {
|
|
87994
|
+
/**
|
|
87995
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed; correct the named field and repeat the call. PLATFORM_NOT_AVAILABLE means the platform cannot be used yet, for example publishing to an account: choose an export platform such as markdown@1, docx@1 or xiaohongshu@1, or export the rendition instead of publishing it.
|
|
87996
|
+
*/
|
|
87997
|
+
400: StudioStudioError;
|
|
87998
|
+
/**
|
|
87999
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88000
|
+
*/
|
|
88001
|
+
401: StudioStudioError;
|
|
88002
|
+
/**
|
|
88003
|
+
* WORK_NOT_FOUND, DRAFT_NOT_FOUND, PLATFORM_NOT_FOUND or THEME_NOT_FOUND means the work, the draft, the platform key or the theme is not reachable; use the slug and draft key from the lists, a versioned platform key from the platform list and a theme from the theme list.
|
|
88004
|
+
*/
|
|
88005
|
+
404: StudioStudioError;
|
|
88006
|
+
/**
|
|
88007
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88008
|
+
*/
|
|
88009
|
+
500: StudioStudioError;
|
|
88010
|
+
};
|
|
88011
|
+
export type StudioRenditionsCreateError = StudioRenditionsCreateErrors[keyof StudioRenditionsCreateErrors];
|
|
88012
|
+
export type StudioRenditionsCreateResponses = {
|
|
88013
|
+
/**
|
|
88014
|
+
* The new rendition. With render true it already carries render_state, issues, parts and files; otherwise render_state is pending.
|
|
88015
|
+
*/
|
|
88016
|
+
201: StudioRendition;
|
|
88017
|
+
};
|
|
88018
|
+
export type StudioRenditionsCreateResponse = StudioRenditionsCreateResponses[keyof StudioRenditionsCreateResponses];
|
|
88019
|
+
export type StudioRenditionsListData = {
|
|
88020
|
+
body?: never;
|
|
88021
|
+
path: {
|
|
88022
|
+
/**
|
|
88023
|
+
* 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.
|
|
88024
|
+
*/
|
|
88025
|
+
work: string;
|
|
88026
|
+
};
|
|
88027
|
+
query?: {
|
|
88028
|
+
/**
|
|
88029
|
+
* Draft key such as novel or its drf_ identifier; when given, only the renditions of that draft are returned. Omit it to list the renditions of every draft in the work.
|
|
88030
|
+
*/
|
|
88031
|
+
draft?: string;
|
|
88032
|
+
/**
|
|
88033
|
+
* 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.
|
|
88034
|
+
*/
|
|
88035
|
+
page_size?: number;
|
|
88036
|
+
/**
|
|
88037
|
+
* 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.
|
|
88038
|
+
*/
|
|
88039
|
+
page_token?: string;
|
|
88040
|
+
};
|
|
88041
|
+
url: '/studio/v1/works/{work}/renditions';
|
|
88042
|
+
};
|
|
88043
|
+
export type StudioRenditionsListErrors = {
|
|
88044
|
+
/**
|
|
88045
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
|
|
88046
|
+
*/
|
|
88047
|
+
400: StudioStudioError;
|
|
88048
|
+
/**
|
|
88049
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88050
|
+
*/
|
|
88051
|
+
401: StudioStudioError;
|
|
88052
|
+
/**
|
|
88053
|
+
* WORK_NOT_FOUND or DRAFT_NOT_FOUND means the work or the draft inside it is not reachable; use the slug and the draft key from the lists, or resolve a loose name first. A draft renamed earlier still answers under its previous key.
|
|
88054
|
+
*/
|
|
88055
|
+
404: StudioStudioError;
|
|
88056
|
+
/**
|
|
88057
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88058
|
+
*/
|
|
88059
|
+
500: StudioStudioError;
|
|
88060
|
+
};
|
|
88061
|
+
export type StudioRenditionsListError = StudioRenditionsListErrors[keyof StudioRenditionsListErrors];
|
|
88062
|
+
export type StudioRenditionsListResponses = {
|
|
88063
|
+
/**
|
|
88064
|
+
* One page of renditions and the cursor for the next page.
|
|
88065
|
+
*/
|
|
88066
|
+
200: StudioRenditionPage;
|
|
88067
|
+
};
|
|
88068
|
+
export type StudioRenditionsListResponse = StudioRenditionsListResponses[keyof StudioRenditionsListResponses];
|
|
88069
|
+
export type StudioRenditionsDeleteData = {
|
|
88070
|
+
body?: never;
|
|
88071
|
+
path: {
|
|
88072
|
+
/**
|
|
88073
|
+
* 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.
|
|
88074
|
+
*/
|
|
88075
|
+
work: string;
|
|
88076
|
+
/**
|
|
88077
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
88078
|
+
*/
|
|
88079
|
+
rendition: string;
|
|
88080
|
+
};
|
|
88081
|
+
query?: never;
|
|
88082
|
+
url: '/studio/v1/works/{work}/renditions/{rendition}';
|
|
88083
|
+
};
|
|
88084
|
+
export type StudioRenditionsDeleteErrors = {
|
|
88085
|
+
/**
|
|
88086
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
|
|
88087
|
+
*/
|
|
88088
|
+
400: StudioStudioError;
|
|
88089
|
+
/**
|
|
88090
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88091
|
+
*/
|
|
88092
|
+
401: StudioStudioError;
|
|
88093
|
+
/**
|
|
88094
|
+
* RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
|
|
88095
|
+
*/
|
|
88096
|
+
404: StudioStudioError;
|
|
88097
|
+
/**
|
|
88098
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88099
|
+
*/
|
|
88100
|
+
500: StudioStudioError;
|
|
88101
|
+
};
|
|
88102
|
+
export type StudioRenditionsDeleteError = StudioRenditionsDeleteErrors[keyof StudioRenditionsDeleteErrors];
|
|
88103
|
+
export type StudioRenditionsDeleteResponses = {
|
|
88104
|
+
/**
|
|
88105
|
+
* Confirmation that the rendition was deleted.
|
|
88106
|
+
*/
|
|
88107
|
+
200: StudioDeleted;
|
|
88108
|
+
};
|
|
88109
|
+
export type StudioRenditionsDeleteResponse = StudioRenditionsDeleteResponses[keyof StudioRenditionsDeleteResponses];
|
|
88110
|
+
export type StudioRenditionsGetData = {
|
|
88111
|
+
body?: never;
|
|
88112
|
+
path: {
|
|
88113
|
+
/**
|
|
88114
|
+
* 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.
|
|
88115
|
+
*/
|
|
88116
|
+
work: string;
|
|
88117
|
+
/**
|
|
88118
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
88119
|
+
*/
|
|
88120
|
+
rendition: string;
|
|
88121
|
+
};
|
|
88122
|
+
query?: never;
|
|
88123
|
+
url: '/studio/v1/works/{work}/renditions/{rendition}';
|
|
88124
|
+
};
|
|
88125
|
+
export type StudioRenditionsGetErrors = {
|
|
88126
|
+
/**
|
|
88127
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
|
|
88128
|
+
*/
|
|
88129
|
+
400: StudioStudioError;
|
|
88130
|
+
/**
|
|
88131
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88132
|
+
*/
|
|
88133
|
+
401: StudioStudioError;
|
|
88134
|
+
/**
|
|
88135
|
+
* RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
|
|
88136
|
+
*/
|
|
88137
|
+
404: StudioStudioError;
|
|
88138
|
+
/**
|
|
88139
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88140
|
+
*/
|
|
88141
|
+
500: StudioStudioError;
|
|
88142
|
+
};
|
|
88143
|
+
export type StudioRenditionsGetError = StudioRenditionsGetErrors[keyof StudioRenditionsGetErrors];
|
|
88144
|
+
export type StudioRenditionsGetResponses = {
|
|
88145
|
+
/**
|
|
88146
|
+
* The rendition with its render state, issues, parts, files and publish state.
|
|
88147
|
+
*/
|
|
88148
|
+
200: StudioRendition;
|
|
88149
|
+
};
|
|
88150
|
+
export type StudioRenditionsGetResponse = StudioRenditionsGetResponses[keyof StudioRenditionsGetResponses];
|
|
88151
|
+
export type StudioRenditionsUpdateData = {
|
|
88152
|
+
/**
|
|
88153
|
+
* The fields to change, with the update mask that names them.
|
|
88154
|
+
*/
|
|
88155
|
+
body: StudioRenditionUpdateInput;
|
|
88156
|
+
path: {
|
|
88157
|
+
/**
|
|
88158
|
+
* 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.
|
|
88159
|
+
*/
|
|
88160
|
+
work: string;
|
|
88161
|
+
/**
|
|
88162
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
88163
|
+
*/
|
|
88164
|
+
rendition: string;
|
|
88165
|
+
};
|
|
88166
|
+
query?: never;
|
|
88167
|
+
url: '/studio/v1/works/{work}/renditions/{rendition}';
|
|
88168
|
+
};
|
|
88169
|
+
export type StudioRenditionsUpdateErrors = {
|
|
88170
|
+
/**
|
|
88171
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
|
|
88172
|
+
*/
|
|
88173
|
+
400: StudioStudioError;
|
|
88174
|
+
/**
|
|
88175
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88176
|
+
*/
|
|
88177
|
+
401: StudioStudioError;
|
|
88178
|
+
/**
|
|
88179
|
+
* RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
|
|
88180
|
+
*/
|
|
88181
|
+
404: StudioStudioError;
|
|
88182
|
+
/**
|
|
88183
|
+
* RENDITION_PUBLISH_LOCKED means this rendition's export or publish has started and its parts are frozen, so it cannot change; create a new rendition for the new content.
|
|
88184
|
+
*/
|
|
88185
|
+
409: StudioStudioError;
|
|
88186
|
+
/**
|
|
88187
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88188
|
+
*/
|
|
88189
|
+
500: StudioStudioError;
|
|
88190
|
+
};
|
|
88191
|
+
export type StudioRenditionsUpdateError = StudioRenditionsUpdateErrors[keyof StudioRenditionsUpdateErrors];
|
|
88192
|
+
export type StudioRenditionsUpdateResponses = {
|
|
88193
|
+
/**
|
|
88194
|
+
* The updated rendition.
|
|
88195
|
+
*/
|
|
88196
|
+
200: StudioRendition;
|
|
88197
|
+
};
|
|
88198
|
+
export type StudioRenditionsUpdateResponse = StudioRenditionsUpdateResponses[keyof StudioRenditionsUpdateResponses];
|
|
88199
|
+
export type StudioRenditionsRenderData = {
|
|
88200
|
+
body?: never;
|
|
88201
|
+
path: {
|
|
88202
|
+
/**
|
|
88203
|
+
* 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.
|
|
88204
|
+
*/
|
|
88205
|
+
work: string;
|
|
88206
|
+
/**
|
|
88207
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
88208
|
+
*/
|
|
88209
|
+
rendition: string;
|
|
88210
|
+
};
|
|
88211
|
+
query?: never;
|
|
88212
|
+
url: '/studio/v1/works/{work}/renditions/{rendition}:render';
|
|
88213
|
+
};
|
|
88214
|
+
export type StudioRenditionsRenderErrors = {
|
|
88215
|
+
/**
|
|
88216
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
|
|
88217
|
+
*/
|
|
88218
|
+
400: StudioStudioError;
|
|
88219
|
+
/**
|
|
88220
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88221
|
+
*/
|
|
88222
|
+
401: StudioStudioError;
|
|
88223
|
+
/**
|
|
88224
|
+
* RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
|
|
88225
|
+
*/
|
|
88226
|
+
404: StudioStudioError;
|
|
88227
|
+
/**
|
|
88228
|
+
* REVISION_CONFLICT means this rendition is already being rendered or exported, so nothing was changed; wait a few seconds and repeat the call. RENDITION_PUBLISH_LOCKED means its export has started and its parts are frozen; create a new rendition for new content.
|
|
88229
|
+
*/
|
|
88230
|
+
409: StudioStudioError;
|
|
88231
|
+
/**
|
|
88232
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88233
|
+
*/
|
|
88234
|
+
500: StudioStudioError;
|
|
88235
|
+
};
|
|
88236
|
+
export type StudioRenditionsRenderError = StudioRenditionsRenderErrors[keyof StudioRenditionsRenderErrors];
|
|
88237
|
+
export type StudioRenditionsRenderResponses = {
|
|
88238
|
+
/**
|
|
88239
|
+
* The rendition after rendering, with its render_state, issues, parts and files.
|
|
88240
|
+
*/
|
|
88241
|
+
200: StudioRendition;
|
|
88242
|
+
};
|
|
88243
|
+
export type StudioRenditionsRenderResponse = StudioRenditionsRenderResponses[keyof StudioRenditionsRenderResponses];
|
|
88244
|
+
export type StudioRenditionsPublishData = {
|
|
88245
|
+
body?: never;
|
|
88246
|
+
path: {
|
|
88247
|
+
/**
|
|
88248
|
+
* 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.
|
|
88249
|
+
*/
|
|
88250
|
+
work: string;
|
|
88251
|
+
/**
|
|
88252
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
88253
|
+
*/
|
|
88254
|
+
rendition: string;
|
|
88255
|
+
};
|
|
88256
|
+
query?: never;
|
|
88257
|
+
url: '/studio/v1/works/{work}/renditions/{rendition}:publish';
|
|
88258
|
+
};
|
|
88259
|
+
export type StudioRenditionsPublishErrors = {
|
|
88260
|
+
/**
|
|
88261
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed; correct the named field and repeat the call. PLATFORM_NOT_AVAILABLE means the platform cannot be used yet, for example publishing to an account: choose an export platform such as markdown@1, docx@1 or xiaohongshu@1, or export the rendition instead of publishing it.
|
|
88262
|
+
*/
|
|
88263
|
+
400: StudioStudioError;
|
|
88264
|
+
/**
|
|
88265
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88266
|
+
*/
|
|
88267
|
+
401: StudioStudioError;
|
|
88268
|
+
/**
|
|
88269
|
+
* RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
|
|
88270
|
+
*/
|
|
88271
|
+
404: StudioStudioError;
|
|
88272
|
+
/**
|
|
88273
|
+
* RENDITION_NOT_RENDERED means the rendition has not finished rendering, so call the render operation first. RENDITION_STALE means the draft changed after the last render, so render again before exporting. RENDITION_INVALID means the render found error-level issues, so fix what the issues list and render again. RENDITION_PUBLISH_LOCKED means the export already started. REVISION_CONFLICT means it is being rendered or exported right now: wait a few seconds and repeat the call.
|
|
88274
|
+
*/
|
|
88275
|
+
409: StudioStudioError;
|
|
88276
|
+
/**
|
|
88277
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88278
|
+
*/
|
|
88279
|
+
500: StudioStudioError;
|
|
88280
|
+
};
|
|
88281
|
+
export type StudioRenditionsPublishError = StudioRenditionsPublishErrors[keyof StudioRenditionsPublishErrors];
|
|
88282
|
+
export type StudioRenditionsPublishResponses = {
|
|
88283
|
+
/**
|
|
88284
|
+
* The rendition after the export, with publish.state exported and the produced files.
|
|
88285
|
+
*/
|
|
88286
|
+
200: StudioRendition;
|
|
88287
|
+
};
|
|
88288
|
+
export type StudioRenditionsPublishResponse = StudioRenditionsPublishResponses[keyof StudioRenditionsPublishResponses];
|
|
88289
|
+
export type StudioRenditionsContentUrlData = {
|
|
88290
|
+
body?: never;
|
|
88291
|
+
path: {
|
|
88292
|
+
/**
|
|
88293
|
+
* 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.
|
|
88294
|
+
*/
|
|
88295
|
+
work: string;
|
|
88296
|
+
/**
|
|
88297
|
+
* Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.
|
|
88298
|
+
*/
|
|
88299
|
+
rendition: string;
|
|
88300
|
+
};
|
|
88301
|
+
query?: {
|
|
88302
|
+
/**
|
|
88303
|
+
* Index of the part to download, the index value of an entry in the rendition's parts list; omit it to get the rendition's own first file.
|
|
88304
|
+
*/
|
|
88305
|
+
part?: number;
|
|
88306
|
+
};
|
|
88307
|
+
url: '/studio/v1/works/{work}/renditions/{rendition}/content';
|
|
88308
|
+
};
|
|
88309
|
+
export type StudioRenditionsContentUrlErrors = {
|
|
88310
|
+
/**
|
|
88311
|
+
* INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
|
|
88312
|
+
*/
|
|
88313
|
+
400: StudioStudioError;
|
|
88314
|
+
/**
|
|
88315
|
+
* The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
|
|
88316
|
+
*/
|
|
88317
|
+
401: StudioStudioError;
|
|
88318
|
+
/**
|
|
88319
|
+
* RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
|
|
88320
|
+
*/
|
|
88321
|
+
404: StudioStudioError;
|
|
88322
|
+
/**
|
|
88323
|
+
* RENDITION_NOT_RENDERED means the rendition or the requested part has no produced file yet; call the render operation, check render_state, and ask again once it is rendered.
|
|
88324
|
+
*/
|
|
88325
|
+
409: StudioStudioError;
|
|
88326
|
+
/**
|
|
88327
|
+
* INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.
|
|
88328
|
+
*/
|
|
88329
|
+
500: StudioStudioError;
|
|
88330
|
+
};
|
|
88331
|
+
export type StudioRenditionsContentUrlError = StudioRenditionsContentUrlErrors[keyof StudioRenditionsContentUrlErrors];
|
|
88332
|
+
export type StudioRenditionsContentUrlResponses = {
|
|
88333
|
+
/**
|
|
88334
|
+
* The signed download URL and the time it stops working.
|
|
88335
|
+
*/
|
|
88336
|
+
200: StudioRenditionContentUrl;
|
|
88337
|
+
};
|
|
88338
|
+
export type StudioRenditionsContentUrlResponse = StudioRenditionsContentUrlResponses[keyof StudioRenditionsContentUrlResponses];
|
|
86452
88339
|
export type VaultListVaultsData = {
|
|
86453
88340
|
body?: never;
|
|
86454
88341
|
path?: never;
|