@deepraxis/sdk 0.2.0-dev.837a8c3 → 0.2.0-dev.855f099
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 +28 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +79 -7
- package/dist/generated/sdk.gen.js +214 -6
- package/dist/generated/types.gen.d.ts +1633 -199
- package/dist/helpers/browser-actions.d.ts +2 -0
- package/dist/helpers/browser-actions.js +2 -0
- package/dist/helpers/browser-connect.d.ts +10 -1
- package/dist/helpers/browser-connect.js +29 -6
- package/dist/helpers/browser-decisions.d.ts +2 -0
- package/dist/helpers/browser-decisions.js +7 -0
- package/dist/helpers/browser-documentation.d.ts +1 -1
- package/dist/helpers/browser-documentation.js +1 -0
- package/dist/operations.generated.js +448 -10
- package/dist/resources.generated.d.ts +84 -0
- package/dist/resources.generated.js +18 -0
- package/package.json +1 -1
|
@@ -4307,11 +4307,11 @@ export type BrowserSessionGetResult = {
|
|
|
4307
4307
|
*/
|
|
4308
4308
|
export type BrowserSessionLiveUrls = {
|
|
4309
4309
|
/**
|
|
4310
|
-
*
|
|
4310
|
+
* 与 debuggerUrl 相同:会话在 Console 的会话页地址。
|
|
4311
4311
|
*/
|
|
4312
4312
|
debuggerFullscreenUrl: string;
|
|
4313
4313
|
/**
|
|
4314
|
-
*
|
|
4314
|
+
* 会话在 Console 的会话页地址,发给人观看或接管。打开的人须登录 Console 且属于会话所在组织;会话创建者或在接管请求有效期内的组织成员可以点「接管」直接点击、拖动和输入,其他成员只读观看。地址不带凭证,不能嵌入 iframe。
|
|
4315
4315
|
*/
|
|
4316
4316
|
debuggerUrl: string;
|
|
4317
4317
|
/**
|
|
@@ -4339,11 +4339,11 @@ export type BrowserSessionLiveUrls = {
|
|
|
4339
4339
|
*/
|
|
4340
4340
|
faviconUrl: string;
|
|
4341
4341
|
/**
|
|
4342
|
-
*
|
|
4342
|
+
* 会话在 Console 的会话页地址,与会话级 debuggerUrl 相同。
|
|
4343
4343
|
*/
|
|
4344
4344
|
debuggerUrl: string;
|
|
4345
4345
|
/**
|
|
4346
|
-
*
|
|
4346
|
+
* 与该页 debuggerUrl 相同。
|
|
4347
4347
|
*/
|
|
4348
4348
|
debuggerFullscreenUrl: string;
|
|
4349
4349
|
}>;
|
|
@@ -4680,6 +4680,10 @@ export type BrowserStreamMessage = {
|
|
|
4680
4680
|
*/
|
|
4681
4681
|
nextCursor: string | null;
|
|
4682
4682
|
};
|
|
4683
|
+
/**
|
|
4684
|
+
* The tab in front: the newest one the browser opened or the one a client last brought to the front. null when unknown.
|
|
4685
|
+
*/
|
|
4686
|
+
activePageId?: string | null;
|
|
4683
4687
|
};
|
|
4684
4688
|
} | {
|
|
4685
4689
|
event: 'session';
|
|
@@ -4690,7 +4694,10 @@ export type BrowserStreamMessage = {
|
|
|
4690
4694
|
} | {
|
|
4691
4695
|
event: 'action';
|
|
4692
4696
|
data: {
|
|
4693
|
-
|
|
4697
|
+
/**
|
|
4698
|
+
* page_activated: a client brought pageId to the front. Tab changes (page_opened, page_closed, page_activated) are never thinned out; the other kinds are sent at most four times a second.
|
|
4699
|
+
*/
|
|
4700
|
+
kind: 'navigate' | 'click' | 'type' | 'scroll' | 'page_opened' | 'page_closed' | 'page_activated';
|
|
4694
4701
|
pageId?: string;
|
|
4695
4702
|
url?: string;
|
|
4696
4703
|
x?: number;
|
|
@@ -13839,7 +13846,7 @@ export type AutomationHumanTask = {
|
|
|
13839
13846
|
*/
|
|
13840
13847
|
initiator: {
|
|
13841
13848
|
/**
|
|
13842
|
-
* Initiator type: user, api_key, agent, run (a parent run) or
|
|
13849
|
+
* Initiator type: user, api_key, agent, run (a parent run), trigger or application.
|
|
13843
13850
|
*/
|
|
13844
13851
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
13845
13852
|
/**
|
|
@@ -20136,6 +20143,10 @@ export type DevopsPullRequest = {
|
|
|
20136
20143
|
* The mergeability word, an open set. A GitHub project keeps GitHub's own word verbatim (clean, dirty, blocked, behind, unstable and so on), unknown when GitHub has not said. A project whose code is on our own Git gets DevOps's reading of the head against the base: clean when nothing stands in the way, behind when the head adds nothing the base lacks, dirty when both sides changed the same path since they diverged, unknown when the comparison was capped.
|
|
20137
20144
|
*/
|
|
20138
20145
|
mergeableState: string;
|
|
20146
|
+
/**
|
|
20147
|
+
* Who this pull request's letters go to — the gate verdict, the merge, the deploy to each integration environment and an integration failure — as the description's praxis block names it with notify: agent:<id> or notify: human:<id>. Optional and never part of the gate: absent when the block names nobody or names something that is not an address. A pull request of a DevOps change that names nobody writes to the change's owner.
|
|
20148
|
+
*/
|
|
20149
|
+
notify?: string;
|
|
20139
20150
|
/**
|
|
20140
20151
|
* The exposure the description's praxis block declares, or null when the description declares none — which is itself a failed gate check. The kind decides which other checks apply: a flag adds its key and observe window, unwired and expand-contract add a reason, expand-contract also a phase, and direct is judged by a person.
|
|
20141
20152
|
*/
|
|
@@ -21437,7 +21448,7 @@ export type MediaLibrary = {
|
|
|
21437
21448
|
};
|
|
21438
21449
|
export type MediaMediaError = {
|
|
21439
21450
|
error: {
|
|
21440
|
-
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' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
21451
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
21441
21452
|
message: string;
|
|
21442
21453
|
details: string | null;
|
|
21443
21454
|
};
|
|
@@ -22966,6 +22977,107 @@ export type MediaVoiceDesignCreateInput = {
|
|
|
22966
22977
|
*/
|
|
22967
22978
|
description?: string;
|
|
22968
22979
|
};
|
|
22980
|
+
/**
|
|
22981
|
+
* A work: an object of the library above its assets that orders references to them and adds a title and text. It copies no file and changes no asset.
|
|
22982
|
+
*/
|
|
22983
|
+
export type MediaWork = {
|
|
22984
|
+
/**
|
|
22985
|
+
* Always work.
|
|
22986
|
+
*/
|
|
22987
|
+
object: 'work';
|
|
22988
|
+
/**
|
|
22989
|
+
* Work id (wrk_…).
|
|
22990
|
+
*/
|
|
22991
|
+
id: string;
|
|
22992
|
+
/**
|
|
22993
|
+
* Library the work belongs to.
|
|
22994
|
+
*/
|
|
22995
|
+
library_id: MediaLibraryId;
|
|
22996
|
+
/**
|
|
22997
|
+
* The work’s kind.
|
|
22998
|
+
*/
|
|
22999
|
+
kind: MediaWorkKind;
|
|
23000
|
+
/**
|
|
23001
|
+
* The title, copied from body.title.
|
|
23002
|
+
*/
|
|
23003
|
+
title: string;
|
|
23004
|
+
/**
|
|
23005
|
+
* Groups the platform versions of one story; null when unset.
|
|
23006
|
+
*/
|
|
23007
|
+
series: string | null;
|
|
23008
|
+
/**
|
|
23009
|
+
* The kind’s body as stored.
|
|
23010
|
+
*/
|
|
23011
|
+
body: MediaWorkBody;
|
|
23012
|
+
/**
|
|
23013
|
+
* Caller data such as source, published links and numbers; changed with a JSON Merge Patch.
|
|
23014
|
+
*/
|
|
23015
|
+
custom: MediaWorkCustom;
|
|
23016
|
+
/**
|
|
23017
|
+
* Asset ids the body names that have been deleted since; the body keeps them in place and the Console draws a placeholder there.
|
|
23018
|
+
*/
|
|
23019
|
+
missing: Array<string>;
|
|
23020
|
+
/**
|
|
23021
|
+
* Bumped by every change; send it back as if_revision to update only an unchanged work.
|
|
23022
|
+
*/
|
|
23023
|
+
revision: number;
|
|
23024
|
+
/**
|
|
23025
|
+
* Who created the work: human:<user id>, agent:<agent id> or system.
|
|
23026
|
+
*/
|
|
23027
|
+
created_by: string;
|
|
23028
|
+
/**
|
|
23029
|
+
* When the work was created.
|
|
23030
|
+
*/
|
|
23031
|
+
created_at: MediaIsoTimestamp;
|
|
23032
|
+
/**
|
|
23033
|
+
* When the work last changed.
|
|
23034
|
+
*/
|
|
23035
|
+
updated_at: MediaIsoTimestamp;
|
|
23036
|
+
/**
|
|
23037
|
+
* Only with expand=assets: every live referenced asset by id, with its URLs and size.
|
|
23038
|
+
*/
|
|
23039
|
+
assets?: {
|
|
23040
|
+
[key: string]: MediaWorkAsset;
|
|
23041
|
+
};
|
|
23042
|
+
};
|
|
23043
|
+
/**
|
|
23044
|
+
* Kind of work: gallery (图文), article (长文) or product_listing (商品图组). short_video is reserved.
|
|
23045
|
+
*/
|
|
23046
|
+
export type MediaWorkKind = 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
23047
|
+
export type MediaWorkBody = MediaGalleryBody | MediaArticleBody | MediaProductListingBody | MediaBlocksBody;
|
|
23048
|
+
export type MediaWorkCustom = {
|
|
23049
|
+
[key: string]: unknown;
|
|
23050
|
+
};
|
|
23051
|
+
/**
|
|
23052
|
+
* A page of work summaries.
|
|
23053
|
+
*/
|
|
23054
|
+
export type MediaWorkPage = {
|
|
23055
|
+
/**
|
|
23056
|
+
* Works in this page, most recently changed first.
|
|
23057
|
+
*/
|
|
23058
|
+
data: Array<MediaWorkSummary>;
|
|
23059
|
+
/**
|
|
23060
|
+
* Cursor for the next page, or null when there are no more works.
|
|
23061
|
+
*/
|
|
23062
|
+
next_cursor: string | null;
|
|
23063
|
+
};
|
|
23064
|
+
/**
|
|
23065
|
+
* The answer to deleting a work.
|
|
23066
|
+
*/
|
|
23067
|
+
export type MediaDeletedWork = {
|
|
23068
|
+
/**
|
|
23069
|
+
* Id of the deleted work.
|
|
23070
|
+
*/
|
|
23071
|
+
id: string;
|
|
23072
|
+
/**
|
|
23073
|
+
* Always work.
|
|
23074
|
+
*/
|
|
23075
|
+
object: 'work';
|
|
23076
|
+
/**
|
|
23077
|
+
* Always true: the work is deleted; every asset it named is unchanged.
|
|
23078
|
+
*/
|
|
23079
|
+
deleted: true;
|
|
23080
|
+
};
|
|
22969
23081
|
/**
|
|
22970
23082
|
* One page of type registrations; types are few enough that this face returns them in a single page.
|
|
22971
23083
|
*/
|
|
@@ -36818,11 +36930,11 @@ export type AutomationActionHost = 'builtin' | 'isolate' | 'sandbox';
|
|
|
36818
36930
|
*/
|
|
36819
36931
|
export type AutomationSubject = {
|
|
36820
36932
|
/**
|
|
36821
|
-
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger.
|
|
36933
|
+
* Principal type. user is a signed-in user; api_key is a platform API key; agent is an agent; run is an action performed by a run itself (for example a parent run); trigger is a trigger; application is an application.
|
|
36822
36934
|
*/
|
|
36823
36935
|
type: 'user' | 'api_key' | 'agent' | 'run' | 'trigger';
|
|
36824
36936
|
/**
|
|
36825
|
-
* Principal identifier whose meaning follows type: a user, API key, agent, run or
|
|
36937
|
+
* Principal identifier whose meaning follows type: a user, API key, agent, run, trigger or application id. Treat it as an opaque string.
|
|
36826
36938
|
*/
|
|
36827
36939
|
id: string;
|
|
36828
36940
|
};
|
|
@@ -41554,7 +41666,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
|
|
|
41554
41666
|
* Edit operations: the change this step applied to its parent asset.
|
|
41555
41667
|
*/
|
|
41556
41668
|
export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
|
|
41557
|
-
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' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
41669
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'WORK_NOT_FOUND' | 'REVISION_CONFLICT' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
|
|
41558
41670
|
/**
|
|
41559
41671
|
* State of a requested generation output.
|
|
41560
41672
|
*/
|
|
@@ -41900,6 +42012,192 @@ export type MediaHlsRendition = {
|
|
|
41900
42012
|
state: MediaHlsRenditionState;
|
|
41901
42013
|
};
|
|
41902
42014
|
export type MediaVoiceConsentId = string;
|
|
42015
|
+
/**
|
|
42016
|
+
* One referenced asset as expand=assets returns it: enough to draw it without another call.
|
|
42017
|
+
*/
|
|
42018
|
+
export type MediaWorkAsset = {
|
|
42019
|
+
/**
|
|
42020
|
+
* The asset’s material type, such as image or video.
|
|
42021
|
+
*/
|
|
42022
|
+
type: MediaMaterialType;
|
|
42023
|
+
/**
|
|
42024
|
+
* Short-lived delivery URL of the asset.
|
|
42025
|
+
*/
|
|
42026
|
+
url: string;
|
|
42027
|
+
/**
|
|
42028
|
+
* Short-lived URL of a small picture: the poster of a video, otherwise the asset itself.
|
|
42029
|
+
*/
|
|
42030
|
+
thumbnail_url: string;
|
|
42031
|
+
/**
|
|
42032
|
+
* Width in pixels when known.
|
|
42033
|
+
*/
|
|
42034
|
+
width?: number;
|
|
42035
|
+
/**
|
|
42036
|
+
* Height in pixels when known.
|
|
42037
|
+
*/
|
|
42038
|
+
height?: number;
|
|
42039
|
+
/**
|
|
42040
|
+
* The asset’s display name.
|
|
42041
|
+
*/
|
|
42042
|
+
display_name: string;
|
|
42043
|
+
};
|
|
42044
|
+
/**
|
|
42045
|
+
* Body of a gallery (图文). Order is the order of items.
|
|
42046
|
+
*/
|
|
42047
|
+
export type MediaGalleryBody = {
|
|
42048
|
+
/**
|
|
42049
|
+
* Title, 1 to 100 characters.
|
|
42050
|
+
*/
|
|
42051
|
+
title: string;
|
|
42052
|
+
/**
|
|
42053
|
+
* Body text, at most 10000 characters.
|
|
42054
|
+
*/
|
|
42055
|
+
text?: string;
|
|
42056
|
+
/**
|
|
42057
|
+
* Topics without the # sign, at most 30 of up to 40 characters.
|
|
42058
|
+
*/
|
|
42059
|
+
topics?: Array<string>;
|
|
42060
|
+
/**
|
|
42061
|
+
* Optional cover: an image or sticker asset of this library; without it the first picture is the cover.
|
|
42062
|
+
*/
|
|
42063
|
+
cover?: string;
|
|
42064
|
+
/**
|
|
42065
|
+
* Pictures, videos and text segments in order, 1 to 100 entries with at least one asset; each asset appears once.
|
|
42066
|
+
*/
|
|
42067
|
+
items: Array<MediaGalleryItem>;
|
|
42068
|
+
/**
|
|
42069
|
+
* Display style; defaults to xiaohongshu in the Console.
|
|
42070
|
+
*/
|
|
42071
|
+
style?: MediaWorkStyle;
|
|
42072
|
+
};
|
|
42073
|
+
/**
|
|
42074
|
+
* Body of an article (长文). Inline images live in the Markdown as  and sit where they are written.
|
|
42075
|
+
*/
|
|
42076
|
+
export type MediaArticleBody = {
|
|
42077
|
+
/**
|
|
42078
|
+
* Title, 1 to 200 characters.
|
|
42079
|
+
*/
|
|
42080
|
+
title: string;
|
|
42081
|
+
/**
|
|
42082
|
+
* Optional summary or digest, at most 500 characters.
|
|
42083
|
+
*/
|
|
42084
|
+
summary?: string;
|
|
42085
|
+
/**
|
|
42086
|
+
* Optional author name, at most 60 characters.
|
|
42087
|
+
*/
|
|
42088
|
+
author?: string;
|
|
42089
|
+
/**
|
|
42090
|
+
* The article in Markdown, 1 to 100000 characters; every asset:<asset_id> image must be an image or sticker of this library.
|
|
42091
|
+
*/
|
|
42092
|
+
body: string;
|
|
42093
|
+
/**
|
|
42094
|
+
* Optional cover: an image or sticker asset of this library.
|
|
42095
|
+
*/
|
|
42096
|
+
cover?: string;
|
|
42097
|
+
/**
|
|
42098
|
+
* Display style; defaults to wechat_mp in the Console.
|
|
42099
|
+
*/
|
|
42100
|
+
style?: MediaWorkStyle;
|
|
42101
|
+
};
|
|
42102
|
+
/**
|
|
42103
|
+
* Body of a product listing (商品图组). Images and copy only: price, stock and other business data are managed outside the library and are refused.
|
|
42104
|
+
*/
|
|
42105
|
+
export type MediaProductListingBody = {
|
|
42106
|
+
/**
|
|
42107
|
+
* Listing title, 1 to 200 characters.
|
|
42108
|
+
*/
|
|
42109
|
+
title: string;
|
|
42110
|
+
/**
|
|
42111
|
+
* Selling points in order, at most 10 of up to 100 characters.
|
|
42112
|
+
*/
|
|
42113
|
+
selling_points?: Array<string>;
|
|
42114
|
+
/**
|
|
42115
|
+
* Parameter rows in order, at most 50.
|
|
42116
|
+
*/
|
|
42117
|
+
attributes?: Array<MediaListingAttribute>;
|
|
42118
|
+
/**
|
|
42119
|
+
* Main images in order, 1 to 20 image or sticker assets of this library.
|
|
42120
|
+
*/
|
|
42121
|
+
main: Array<string>;
|
|
42122
|
+
/**
|
|
42123
|
+
* Detail images in order, at most 100 image or sticker assets of this library.
|
|
42124
|
+
*/
|
|
42125
|
+
detail?: Array<string>;
|
|
42126
|
+
/**
|
|
42127
|
+
* SKUs in order, at most 200.
|
|
42128
|
+
*/
|
|
42129
|
+
skus?: Array<MediaListingSku>;
|
|
42130
|
+
/**
|
|
42131
|
+
* Optional product element (material_type product) this listing shows.
|
|
42132
|
+
*/
|
|
42133
|
+
product?: string;
|
|
42134
|
+
/**
|
|
42135
|
+
* Display style; defaults to generic in the Console.
|
|
42136
|
+
*/
|
|
42137
|
+
style?: MediaWorkStyle;
|
|
42138
|
+
};
|
|
42139
|
+
/**
|
|
42140
|
+
* Body of a general work (通用作品): Editor.js saved data plus one field of ours, a required title. Business attributes go in the work’s custom, not in a block.
|
|
42141
|
+
*/
|
|
42142
|
+
export type MediaBlocksBody = {
|
|
42143
|
+
/**
|
|
42144
|
+
* The work’s title, 1 to 200 characters, written explicitly as in the other kinds; lists and sorting use it.
|
|
42145
|
+
*/
|
|
42146
|
+
title: string;
|
|
42147
|
+
/**
|
|
42148
|
+
* Optional Editor.js save time in milliseconds, kept as sent.
|
|
42149
|
+
*/
|
|
42150
|
+
time?: number;
|
|
42151
|
+
/**
|
|
42152
|
+
* The blocks in order, 1 to 500.
|
|
42153
|
+
*/
|
|
42154
|
+
blocks: Array<MediaEditorBlock>;
|
|
42155
|
+
/**
|
|
42156
|
+
* Optional Editor.js version string, kept as sent.
|
|
42157
|
+
*/
|
|
42158
|
+
version?: string;
|
|
42159
|
+
};
|
|
42160
|
+
/**
|
|
42161
|
+
* One work in a list.
|
|
42162
|
+
*/
|
|
42163
|
+
export type MediaWorkSummary = {
|
|
42164
|
+
/**
|
|
42165
|
+
* Always work.
|
|
42166
|
+
*/
|
|
42167
|
+
object: 'work';
|
|
42168
|
+
/**
|
|
42169
|
+
* Work id (wrk_…).
|
|
42170
|
+
*/
|
|
42171
|
+
id: string;
|
|
42172
|
+
/**
|
|
42173
|
+
* The work’s kind.
|
|
42174
|
+
*/
|
|
42175
|
+
kind: MediaWorkKind;
|
|
42176
|
+
/**
|
|
42177
|
+
* The work’s title.
|
|
42178
|
+
*/
|
|
42179
|
+
title: string;
|
|
42180
|
+
/**
|
|
42181
|
+
* The work’s series, or null.
|
|
42182
|
+
*/
|
|
42183
|
+
series: string | null;
|
|
42184
|
+
/**
|
|
42185
|
+
* Short-lived URL of the cover picture, or null when it is missing.
|
|
42186
|
+
*/
|
|
42187
|
+
cover_url: string | null;
|
|
42188
|
+
/**
|
|
42189
|
+
* How many distinct assets the body orders, cover and product element excluded.
|
|
42190
|
+
*/
|
|
42191
|
+
item_count: number;
|
|
42192
|
+
/**
|
|
42193
|
+
* How many referenced assets have been deleted since.
|
|
42194
|
+
*/
|
|
42195
|
+
missing_count: number;
|
|
42196
|
+
/**
|
|
42197
|
+
* When the work last changed.
|
|
42198
|
+
*/
|
|
42199
|
+
updated_at: MediaIsoTimestamp;
|
|
42200
|
+
};
|
|
41903
42201
|
/**
|
|
41904
42202
|
* A kind of entity the graph accepts, for example a file or a customer.
|
|
41905
42203
|
*/
|
|
@@ -48884,7 +49182,7 @@ export type MediaSemanticMatch = {
|
|
|
48884
49182
|
/**
|
|
48885
49183
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
48886
49184
|
*/
|
|
48887
|
-
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
49185
|
+
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'hls.requested' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled' | 'work.created' | 'work.updated' | 'work.deleted';
|
|
48888
49186
|
/**
|
|
48889
49187
|
* One picture an element names, with the word the caller uses for that view.
|
|
48890
49188
|
*/
|
|
@@ -48980,6 +49278,75 @@ export type MediaGenerationCapabilityModel = {
|
|
|
48980
49278
|
* Readiness of one rung or of the ladder it is part of.
|
|
48981
49279
|
*/
|
|
48982
49280
|
export type MediaHlsRenditionState = 'processing' | 'ready' | 'failed';
|
|
49281
|
+
/**
|
|
49282
|
+
* One position of a gallery: a picture or video of this library ({asset_id, caption?}) or a text segment between pictures ({text}).
|
|
49283
|
+
*/
|
|
49284
|
+
export type MediaGalleryItem = {
|
|
49285
|
+
/**
|
|
49286
|
+
* An image, sticker or video asset of this library; its position in items is its position in the gallery.
|
|
49287
|
+
*/
|
|
49288
|
+
asset_id: string;
|
|
49289
|
+
/**
|
|
49290
|
+
* Optional caption for this picture, at most 1000 characters.
|
|
49291
|
+
*/
|
|
49292
|
+
caption?: string;
|
|
49293
|
+
} | {
|
|
49294
|
+
/**
|
|
49295
|
+
* A text segment shown between pictures, at most 1000 characters.
|
|
49296
|
+
*/
|
|
49297
|
+
text: string;
|
|
49298
|
+
};
|
|
49299
|
+
/**
|
|
49300
|
+
* Which platform look the Console draws the work in; a display hint, never a platform check.
|
|
49301
|
+
*/
|
|
49302
|
+
export type MediaWorkStyle = 'xiaohongshu' | 'wechat_mp' | 'jike' | 'generic';
|
|
49303
|
+
/**
|
|
49304
|
+
* One parameter row of a listing.
|
|
49305
|
+
*/
|
|
49306
|
+
export type MediaListingAttribute = {
|
|
49307
|
+
/**
|
|
49308
|
+
* Parameter name such as 容量, at most 40 characters.
|
|
49309
|
+
*/
|
|
49310
|
+
name: string;
|
|
49311
|
+
/**
|
|
49312
|
+
* Parameter value such as 500ml, at most 200 characters.
|
|
49313
|
+
*/
|
|
49314
|
+
value: string;
|
|
49315
|
+
};
|
|
49316
|
+
/**
|
|
49317
|
+
* One SKU of a listing.
|
|
49318
|
+
*/
|
|
49319
|
+
export type MediaListingSku = {
|
|
49320
|
+
/**
|
|
49321
|
+
* The SKU’s value on each spec axis, such as {"颜色":"白"}; 1 to 5 axes; the keys are kept as written.
|
|
49322
|
+
*/
|
|
49323
|
+
spec: {
|
|
49324
|
+
[key: string]: string;
|
|
49325
|
+
};
|
|
49326
|
+
/**
|
|
49327
|
+
* Optional picture of this SKU: an image or sticker asset of this library.
|
|
49328
|
+
*/
|
|
49329
|
+
asset_id?: string;
|
|
49330
|
+
};
|
|
49331
|
+
/**
|
|
49332
|
+
* One Editor.js block, as Editor.js saves it. type is one of the official blocks: paragraph {text}, header {text, level 1–6}, list {style ordered|unordered|checklist, meta, items[{content, meta, items}]}, quote {text, caption, alignment left|center}, delimiter {}, image, table {withHeadings, stretched, content string[][]}, checklist {items[{text, checked}]}, warning {title, message}, embed {service, source, embed, width, height, caption}. The one departure from Editor.js: an image block is {asset_id, caption, withBorder, withBackground, stretched} and names an image or sticker asset of this library instead of file.url. Text keeps Editor.js inline HTML. Unknown types and fields are refused.
|
|
49333
|
+
*/
|
|
49334
|
+
export type MediaEditorBlock = {
|
|
49335
|
+
/**
|
|
49336
|
+
* Block id, 1–64 letters, digits, _ or -, unique in the body.
|
|
49337
|
+
*/
|
|
49338
|
+
id: string;
|
|
49339
|
+
/**
|
|
49340
|
+
* The official Editor.js block type.
|
|
49341
|
+
*/
|
|
49342
|
+
type: 'paragraph' | 'header' | 'list' | 'quote' | 'delimiter' | 'image' | 'table' | 'checklist' | 'warning' | 'embed';
|
|
49343
|
+
/**
|
|
49344
|
+
* The block’s data in that type’s Editor.js shape.
|
|
49345
|
+
*/
|
|
49346
|
+
data: {
|
|
49347
|
+
[key: string]: unknown;
|
|
49348
|
+
};
|
|
49349
|
+
};
|
|
48983
49350
|
/**
|
|
48984
49351
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
48985
49352
|
*/
|
|
@@ -70213,6 +70580,78 @@ export type BrowserRunPageActionData = {
|
|
|
70213
70580
|
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70214
70581
|
*/
|
|
70215
70582
|
tab?: string;
|
|
70583
|
+
} | {
|
|
70584
|
+
/**
|
|
70585
|
+
* 动作类型,固定为 route。
|
|
70586
|
+
*/
|
|
70587
|
+
type: 'route';
|
|
70588
|
+
/**
|
|
70589
|
+
* 要匹配的请求地址:glob(* 不跨 /,** 跨 /,** 匹配零段或更多路径段)或用 /…/ 包起来的正则;最多 2048 个字符,写错在注册时即返回 400 INVALID_PARAMS。
|
|
70590
|
+
*/
|
|
70591
|
+
url: string;
|
|
70592
|
+
/**
|
|
70593
|
+
* 只匹配这个 HTTP 方法(不区分大小写);省略则匹配所有方法。
|
|
70594
|
+
*/
|
|
70595
|
+
method?: string;
|
|
70596
|
+
/**
|
|
70597
|
+
* 标签页 ID,来自 tabs.list 或上一个动作的结果;省略时作用于当前标签页。
|
|
70598
|
+
*/
|
|
70599
|
+
tab?: string;
|
|
70600
|
+
/**
|
|
70601
|
+
* 命中后的处理方式,由 kind 选择:fulfill 直接返回给定响应,abort 让请求失败,delay 按原样转发但推迟给定的毫秒数。
|
|
70602
|
+
*/
|
|
70603
|
+
response: {
|
|
70604
|
+
/**
|
|
70605
|
+
* 直接返回给定响应。
|
|
70606
|
+
*/
|
|
70607
|
+
kind: 'fulfill';
|
|
70608
|
+
/**
|
|
70609
|
+
* 返回的 HTTP 状态码,100 到 599。
|
|
70610
|
+
*/
|
|
70611
|
+
status: number;
|
|
70612
|
+
/**
|
|
70613
|
+
* 返回的响应头,名 → 值;最多 100 项。
|
|
70614
|
+
*/
|
|
70615
|
+
headers?: {
|
|
70616
|
+
[key: string]: string;
|
|
70617
|
+
};
|
|
70618
|
+
/**
|
|
70619
|
+
* 返回的响应体,最多 1000000 个字符。
|
|
70620
|
+
*/
|
|
70621
|
+
body?: string;
|
|
70622
|
+
} | {
|
|
70623
|
+
/**
|
|
70624
|
+
* 让请求失败,页面看到一次网络错误。
|
|
70625
|
+
*/
|
|
70626
|
+
kind: 'abort';
|
|
70627
|
+
/**
|
|
70628
|
+
* Playwright 的错误码;省略为 failed。
|
|
70629
|
+
*/
|
|
70630
|
+
error?: 'aborted' | 'accessdenied' | 'addressunreachable' | 'blockedbyclient' | 'blockedbyresponse' | 'connectionaborted' | 'connectionclosed' | 'connectionfailed' | 'connectionrefused' | 'connectionreset' | 'internetdisconnected' | 'namenotresolved' | 'timedout' | 'failed';
|
|
70631
|
+
} | {
|
|
70632
|
+
/**
|
|
70633
|
+
* 按原样转发请求,但推迟给定毫秒数,用来观察页面的加载态。
|
|
70634
|
+
*/
|
|
70635
|
+
kind: 'delay';
|
|
70636
|
+
/**
|
|
70637
|
+
* 推迟的毫秒数,0 到 60000;超出返回 400 INVALID_PARAMS。
|
|
70638
|
+
*/
|
|
70639
|
+
ms: number;
|
|
70640
|
+
};
|
|
70641
|
+
} | {
|
|
70642
|
+
/**
|
|
70643
|
+
* 动作类型,固定为 unroute。
|
|
70644
|
+
*/
|
|
70645
|
+
type: 'unroute';
|
|
70646
|
+
/**
|
|
70647
|
+
* route 动作返回的规则 ID;不存在时 removed 为 false,不报错。
|
|
70648
|
+
*/
|
|
70649
|
+
routeId: string;
|
|
70650
|
+
} | {
|
|
70651
|
+
/**
|
|
70652
|
+
* 动作类型,固定为 routes。
|
|
70653
|
+
*/
|
|
70654
|
+
type: 'routes';
|
|
70216
70655
|
} | {
|
|
70217
70656
|
/**
|
|
70218
70657
|
* 动作类型:后退、前进或刷新当前页。
|
|
@@ -70431,6 +70870,60 @@ export type BrowserRunPageActionResponses = {
|
|
|
70431
70870
|
* 已设置的 cookie 的域。
|
|
70432
70871
|
*/
|
|
70433
70872
|
domain: string;
|
|
70873
|
+
} | {
|
|
70874
|
+
/**
|
|
70875
|
+
* 动作类型,固定为 route。
|
|
70876
|
+
*/
|
|
70877
|
+
type: 'route';
|
|
70878
|
+
/**
|
|
70879
|
+
* 新规则的 ID,后续 unroute 用它移除;规则的作用域是会话,会话结束时随之清除。
|
|
70880
|
+
*/
|
|
70881
|
+
routeId: string;
|
|
70882
|
+
} | {
|
|
70883
|
+
/**
|
|
70884
|
+
* 动作类型,固定为 unroute。
|
|
70885
|
+
*/
|
|
70886
|
+
type: 'unroute';
|
|
70887
|
+
/**
|
|
70888
|
+
* 请求移除的规则 ID。
|
|
70889
|
+
*/
|
|
70890
|
+
routeId: string;
|
|
70891
|
+
/**
|
|
70892
|
+
* 是否真的移除了一条规则;ID 不存在时为 false。
|
|
70893
|
+
*/
|
|
70894
|
+
removed: boolean;
|
|
70895
|
+
} | {
|
|
70896
|
+
/**
|
|
70897
|
+
* 动作类型,固定为 routes。
|
|
70898
|
+
*/
|
|
70899
|
+
type: 'routes';
|
|
70900
|
+
/**
|
|
70901
|
+
* 当前会话上的规则,按注册顺序;多条都匹配时后注册的优先。
|
|
70902
|
+
*/
|
|
70903
|
+
routes: Array<{
|
|
70904
|
+
/**
|
|
70905
|
+
* 规则 ID,注册时由服务端生成并返回。
|
|
70906
|
+
*/
|
|
70907
|
+
routeId: string;
|
|
70908
|
+
/**
|
|
70909
|
+
* 规则匹配的地址模式。
|
|
70910
|
+
*/
|
|
70911
|
+
url: string;
|
|
70912
|
+
/**
|
|
70913
|
+
* 规则限定的 HTTP 方法;不限定时省略。
|
|
70914
|
+
*/
|
|
70915
|
+
method?: string;
|
|
70916
|
+
/**
|
|
70917
|
+
* 规则只作用的标签页;作用于整个会话时省略。
|
|
70918
|
+
*/
|
|
70919
|
+
tab?: string;
|
|
70920
|
+
/**
|
|
70921
|
+
* 规则的处理方式:kind 为 fulfill、abort 或 delay,其余字段同注册时的 response。
|
|
70922
|
+
*/
|
|
70923
|
+
response: {
|
|
70924
|
+
[key: string]: unknown;
|
|
70925
|
+
};
|
|
70926
|
+
}>;
|
|
70434
70927
|
};
|
|
70435
70928
|
};
|
|
70436
70929
|
export type BrowserRunPageActionResponse = BrowserRunPageActionResponses[keyof BrowserRunPageActionResponses];
|
|
@@ -79463,11 +79956,19 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
79463
79956
|
path?: never;
|
|
79464
79957
|
query?: {
|
|
79465
79958
|
/**
|
|
79466
|
-
*
|
|
79959
|
+
* received (the default) lists the letters addressed to you; sent lists the letters you wrote, scheduled ones included, in the same row shape — a script or an agent finds its own alarm clocks there. A run credential's sent list is the letters automation wrote on behalf of the person it acts for.
|
|
79467
79960
|
*/
|
|
79468
|
-
|
|
79961
|
+
direction?: 'received' | 'sent';
|
|
79469
79962
|
/**
|
|
79470
|
-
*
|
|
79963
|
+
* Only unread letters, only read ones, or (direction=sent only) only letters written but not yet delivered, whose deliveredAt is null; omit for all. On a sent list, unread and read are the recipient's state.
|
|
79964
|
+
*/
|
|
79965
|
+
status?: 'unread' | 'read' | 'scheduled';
|
|
79966
|
+
/**
|
|
79967
|
+
* Only letters of this conversation, for received and sent alike; omit for all.
|
|
79968
|
+
*/
|
|
79969
|
+
thread?: string;
|
|
79970
|
+
/**
|
|
79971
|
+
* false (the default) hides archived letters; true lists only the archived ones. Archiving is the addressee's act, so it is ignored when direction=sent.
|
|
79471
79972
|
*/
|
|
79472
79973
|
archived?: boolean;
|
|
79473
79974
|
/**
|
|
@@ -79483,7 +79984,7 @@ export type ListOrganizationNotificationLettersData = {
|
|
|
79483
79984
|
};
|
|
79484
79985
|
export type ListOrganizationNotificationLettersErrors = {
|
|
79485
79986
|
/**
|
|
79486
|
-
* A bad `status`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79987
|
+
* A bad `direction`, `status` (scheduled needs direction=sent), `thread`, `archived` or `limit`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
79487
79988
|
*/
|
|
79488
79989
|
400: unknown;
|
|
79489
79990
|
/**
|
|
@@ -79583,6 +80084,80 @@ export type ListOrganizationNotificationLettersResponses = {
|
|
|
79583
80084
|
};
|
|
79584
80085
|
};
|
|
79585
80086
|
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
80087
|
+
export type CreateOrganizationNotificationLetterData = {
|
|
80088
|
+
body: {
|
|
80089
|
+
/**
|
|
80090
|
+
* The recipient's address: human:<user id> or agent:<agent id>, a member or an agent of this organization.
|
|
80091
|
+
*/
|
|
80092
|
+
to: string;
|
|
80093
|
+
/**
|
|
80094
|
+
* The whole letter, 1 to 16000 characters.
|
|
80095
|
+
*/
|
|
80096
|
+
body: string;
|
|
80097
|
+
/**
|
|
80098
|
+
* One sentence saying what the reader is asked to do or needs to know, at most 60 characters. Required when to is a person; refused, never cut, when longer.
|
|
80099
|
+
*/
|
|
80100
|
+
summary?: string;
|
|
80101
|
+
/**
|
|
80102
|
+
* The letter's kind; it decides the channels. Defaults to mention.
|
|
80103
|
+
*/
|
|
80104
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
80105
|
+
/**
|
|
80106
|
+
* The conversation the letter belongs to, free text; omit for none.
|
|
80107
|
+
*/
|
|
80108
|
+
thread?: string;
|
|
80109
|
+
/**
|
|
80110
|
+
* When to deliver it, ISO 8601, at most 366 days ahead. A past time or no value means now.
|
|
80111
|
+
*/
|
|
80112
|
+
deliver_at?: string;
|
|
80113
|
+
};
|
|
80114
|
+
path?: never;
|
|
80115
|
+
query?: never;
|
|
80116
|
+
url: '/organization/v1/notifications/letters';
|
|
80117
|
+
};
|
|
80118
|
+
export type CreateOrganizationNotificationLetterErrors = {
|
|
80119
|
+
/**
|
|
80120
|
+
* `to` is not an address, `body` is missing or too long, `summary` is missing for a person or longer than 60 characters, `kind` is unknown, or `deliver_at` is not an ISO 8601 time within 366 days (RFC 9457 problem).
|
|
80121
|
+
*/
|
|
80122
|
+
400: unknown;
|
|
80123
|
+
/**
|
|
80124
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80125
|
+
*/
|
|
80126
|
+
401: unknown;
|
|
80127
|
+
/**
|
|
80128
|
+
* `PERMISSION_DENIED`: sending a letter needs a person, an agent or an automation run identity; an organization API key or an application cannot send (RFC 9457 problem).
|
|
80129
|
+
*/
|
|
80130
|
+
403: unknown;
|
|
80131
|
+
/**
|
|
80132
|
+
* `SUBSCRIBER_NOT_FOUND`: the recipient is not a member or an agent of this organization (RFC 9457 problem).
|
|
80133
|
+
*/
|
|
80134
|
+
404: unknown;
|
|
80135
|
+
/**
|
|
80136
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80137
|
+
*/
|
|
80138
|
+
502: unknown;
|
|
80139
|
+
};
|
|
80140
|
+
export type CreateOrganizationNotificationLetterResponses = {
|
|
80141
|
+
/**
|
|
80142
|
+
* The letter is written; it is delivered at deliverAt.
|
|
80143
|
+
*/
|
|
80144
|
+
200: {
|
|
80145
|
+
/**
|
|
80146
|
+
* The letter that was written: its id and the time it is delivered.
|
|
80147
|
+
*/
|
|
80148
|
+
letter: {
|
|
80149
|
+
/**
|
|
80150
|
+
* The letter's id.
|
|
80151
|
+
*/
|
|
80152
|
+
id: string;
|
|
80153
|
+
/**
|
|
80154
|
+
* When it is delivered: now, or the time asked for.
|
|
80155
|
+
*/
|
|
80156
|
+
deliverAt: string;
|
|
80157
|
+
};
|
|
80158
|
+
};
|
|
80159
|
+
};
|
|
80160
|
+
export type CreateOrganizationNotificationLetterResponse = CreateOrganizationNotificationLetterResponses[keyof CreateOrganizationNotificationLetterResponses];
|
|
79586
80161
|
export type GetOrganizationNotificationLetterData = {
|
|
79587
80162
|
body?: never;
|
|
79588
80163
|
path: {
|
|
@@ -79806,6 +80381,360 @@ export type ArchiveOrganizationNotificationLetterResponses = {
|
|
|
79806
80381
|
};
|
|
79807
80382
|
};
|
|
79808
80383
|
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
80384
|
+
export type ListOrganizationNotificationMessagesData = {
|
|
80385
|
+
body?: never;
|
|
80386
|
+
path?: never;
|
|
80387
|
+
query?: {
|
|
80388
|
+
/**
|
|
80389
|
+
* 0 (the default) lists the inbox tab, 1 lists archived messages.
|
|
80390
|
+
*/
|
|
80391
|
+
archived?: '0' | '1';
|
|
80392
|
+
/**
|
|
80393
|
+
* Messages per page, 1 to 100; defaults to 20.
|
|
80394
|
+
*/
|
|
80395
|
+
limit?: number;
|
|
80396
|
+
/**
|
|
80397
|
+
* Opaque nextPageToken from the previous response; omit for the first page.
|
|
80398
|
+
*/
|
|
80399
|
+
page?: string;
|
|
80400
|
+
};
|
|
80401
|
+
url: '/organization/v1/notifications/messages';
|
|
80402
|
+
};
|
|
80403
|
+
export type ListOrganizationNotificationMessagesErrors = {
|
|
80404
|
+
/**
|
|
80405
|
+
* A bad `archived`, `limit` or `page`, or `INVALID_PARAMS` from the service for a cursor it did not issue (RFC 9457 problem).
|
|
80406
|
+
*/
|
|
80407
|
+
400: unknown;
|
|
80408
|
+
/**
|
|
80409
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80410
|
+
*/
|
|
80411
|
+
401: unknown;
|
|
80412
|
+
/**
|
|
80413
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80414
|
+
*/
|
|
80415
|
+
403: unknown;
|
|
80416
|
+
/**
|
|
80417
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80418
|
+
*/
|
|
80419
|
+
502: unknown;
|
|
80420
|
+
};
|
|
80421
|
+
export type ListOrganizationNotificationMessagesResponses = {
|
|
80422
|
+
/**
|
|
80423
|
+
* One page of this person's messages.
|
|
80424
|
+
*/
|
|
80425
|
+
200: {
|
|
80426
|
+
/**
|
|
80427
|
+
* The page, newest first.
|
|
80428
|
+
*/
|
|
80429
|
+
items: Array<{
|
|
80430
|
+
/**
|
|
80431
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80432
|
+
*/
|
|
80433
|
+
name: string;
|
|
80434
|
+
/**
|
|
80435
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80436
|
+
*/
|
|
80437
|
+
organizationId: string;
|
|
80438
|
+
/**
|
|
80439
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80440
|
+
*/
|
|
80441
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80442
|
+
/**
|
|
80443
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80444
|
+
*/
|
|
80445
|
+
workflow: string;
|
|
80446
|
+
/**
|
|
80447
|
+
* The message's headline, as the bell shows it.
|
|
80448
|
+
*/
|
|
80449
|
+
title: string;
|
|
80450
|
+
/**
|
|
80451
|
+
* The message text.
|
|
80452
|
+
*/
|
|
80453
|
+
body: string;
|
|
80454
|
+
/**
|
|
80455
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80456
|
+
*/
|
|
80457
|
+
actionUrl?: string;
|
|
80458
|
+
/**
|
|
80459
|
+
* Whether the bell has been opened since the message arrived.
|
|
80460
|
+
*/
|
|
80461
|
+
seen: boolean;
|
|
80462
|
+
/**
|
|
80463
|
+
* Whether this person has read it.
|
|
80464
|
+
*/
|
|
80465
|
+
read: boolean;
|
|
80466
|
+
/**
|
|
80467
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80468
|
+
*/
|
|
80469
|
+
archived: boolean;
|
|
80470
|
+
/**
|
|
80471
|
+
* When the message arrived.
|
|
80472
|
+
*/
|
|
80473
|
+
createTime: string;
|
|
80474
|
+
}>;
|
|
80475
|
+
/**
|
|
80476
|
+
* Pass unchanged as page for the next page; absent at the end.
|
|
80477
|
+
*/
|
|
80478
|
+
nextPageToken?: string;
|
|
80479
|
+
};
|
|
80480
|
+
};
|
|
80481
|
+
export type ListOrganizationNotificationMessagesResponse = ListOrganizationNotificationMessagesResponses[keyof ListOrganizationNotificationMessagesResponses];
|
|
80482
|
+
export type DeleteOrganizationNotificationMessageData = {
|
|
80483
|
+
body?: never;
|
|
80484
|
+
path: {
|
|
80485
|
+
/**
|
|
80486
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80487
|
+
*/
|
|
80488
|
+
name: string;
|
|
80489
|
+
};
|
|
80490
|
+
query?: never;
|
|
80491
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80492
|
+
};
|
|
80493
|
+
export type DeleteOrganizationNotificationMessageErrors = {
|
|
80494
|
+
/**
|
|
80495
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80496
|
+
*/
|
|
80497
|
+
400: unknown;
|
|
80498
|
+
/**
|
|
80499
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80500
|
+
*/
|
|
80501
|
+
401: unknown;
|
|
80502
|
+
/**
|
|
80503
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80504
|
+
*/
|
|
80505
|
+
403: unknown;
|
|
80506
|
+
/**
|
|
80507
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80508
|
+
*/
|
|
80509
|
+
404: unknown;
|
|
80510
|
+
/**
|
|
80511
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80512
|
+
*/
|
|
80513
|
+
502: unknown;
|
|
80514
|
+
};
|
|
80515
|
+
export type DeleteOrganizationNotificationMessageResponses = {
|
|
80516
|
+
/**
|
|
80517
|
+
* The message is deleted.
|
|
80518
|
+
*/
|
|
80519
|
+
200: {
|
|
80520
|
+
/**
|
|
80521
|
+
* Always true: the message was deleted.
|
|
80522
|
+
*/
|
|
80523
|
+
deleted: boolean;
|
|
80524
|
+
};
|
|
80525
|
+
};
|
|
80526
|
+
export type DeleteOrganizationNotificationMessageResponse = DeleteOrganizationNotificationMessageResponses[keyof DeleteOrganizationNotificationMessageResponses];
|
|
80527
|
+
export type GetOrganizationNotificationMessageData = {
|
|
80528
|
+
body?: never;
|
|
80529
|
+
path: {
|
|
80530
|
+
/**
|
|
80531
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80532
|
+
*/
|
|
80533
|
+
name: string;
|
|
80534
|
+
};
|
|
80535
|
+
query?: never;
|
|
80536
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80537
|
+
};
|
|
80538
|
+
export type GetOrganizationNotificationMessageErrors = {
|
|
80539
|
+
/**
|
|
80540
|
+
* `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem).
|
|
80541
|
+
*/
|
|
80542
|
+
400: unknown;
|
|
80543
|
+
/**
|
|
80544
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80545
|
+
*/
|
|
80546
|
+
401: unknown;
|
|
80547
|
+
/**
|
|
80548
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80549
|
+
*/
|
|
80550
|
+
403: unknown;
|
|
80551
|
+
/**
|
|
80552
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND`, the same answer for another person's message and one that never existed (RFC 9457 problem).
|
|
80553
|
+
*/
|
|
80554
|
+
404: unknown;
|
|
80555
|
+
/**
|
|
80556
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80557
|
+
*/
|
|
80558
|
+
502: unknown;
|
|
80559
|
+
};
|
|
80560
|
+
export type GetOrganizationNotificationMessageResponses = {
|
|
80561
|
+
/**
|
|
80562
|
+
* The message.
|
|
80563
|
+
*/
|
|
80564
|
+
200: {
|
|
80565
|
+
/**
|
|
80566
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80567
|
+
*/
|
|
80568
|
+
name: string;
|
|
80569
|
+
/**
|
|
80570
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80571
|
+
*/
|
|
80572
|
+
organizationId: string;
|
|
80573
|
+
/**
|
|
80574
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80575
|
+
*/
|
|
80576
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80577
|
+
/**
|
|
80578
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80579
|
+
*/
|
|
80580
|
+
workflow: string;
|
|
80581
|
+
/**
|
|
80582
|
+
* The message's headline, as the bell shows it.
|
|
80583
|
+
*/
|
|
80584
|
+
title: string;
|
|
80585
|
+
/**
|
|
80586
|
+
* The message text.
|
|
80587
|
+
*/
|
|
80588
|
+
body: string;
|
|
80589
|
+
/**
|
|
80590
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80591
|
+
*/
|
|
80592
|
+
actionUrl?: string;
|
|
80593
|
+
/**
|
|
80594
|
+
* Whether the bell has been opened since the message arrived.
|
|
80595
|
+
*/
|
|
80596
|
+
seen: boolean;
|
|
80597
|
+
/**
|
|
80598
|
+
* Whether this person has read it.
|
|
80599
|
+
*/
|
|
80600
|
+
read: boolean;
|
|
80601
|
+
/**
|
|
80602
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80603
|
+
*/
|
|
80604
|
+
archived: boolean;
|
|
80605
|
+
/**
|
|
80606
|
+
* When the message arrived.
|
|
80607
|
+
*/
|
|
80608
|
+
createTime: string;
|
|
80609
|
+
};
|
|
80610
|
+
};
|
|
80611
|
+
export type GetOrganizationNotificationMessageResponse = GetOrganizationNotificationMessageResponses[keyof GetOrganizationNotificationMessageResponses];
|
|
80612
|
+
export type UpdateOrganizationNotificationMessageData = {
|
|
80613
|
+
body: {
|
|
80614
|
+
/**
|
|
80615
|
+
* Mark the message read (true) or unread (false); omit to leave it.
|
|
80616
|
+
*/
|
|
80617
|
+
read?: boolean;
|
|
80618
|
+
/**
|
|
80619
|
+
* Archive the message (true) or move it back to the inbox (false); omit to leave it.
|
|
80620
|
+
*/
|
|
80621
|
+
archived?: boolean;
|
|
80622
|
+
};
|
|
80623
|
+
path: {
|
|
80624
|
+
/**
|
|
80625
|
+
* The message's `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded.
|
|
80626
|
+
*/
|
|
80627
|
+
name: string;
|
|
80628
|
+
};
|
|
80629
|
+
query?: never;
|
|
80630
|
+
url: '/organization/v1/notifications/messages/{name}';
|
|
80631
|
+
};
|
|
80632
|
+
export type UpdateOrganizationNotificationMessageErrors = {
|
|
80633
|
+
/**
|
|
80634
|
+
* The body is not a JSON object, names neither `read` nor `archived`, a flag is not true or false, or `name` is malformed (RFC 9457 problem).
|
|
80635
|
+
*/
|
|
80636
|
+
400: unknown;
|
|
80637
|
+
/**
|
|
80638
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80639
|
+
*/
|
|
80640
|
+
401: unknown;
|
|
80641
|
+
/**
|
|
80642
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80643
|
+
*/
|
|
80644
|
+
403: unknown;
|
|
80645
|
+
/**
|
|
80646
|
+
* No such message of yours in this organization — `MESSAGE_NOT_FOUND` (RFC 9457 problem).
|
|
80647
|
+
*/
|
|
80648
|
+
404: unknown;
|
|
80649
|
+
/**
|
|
80650
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80651
|
+
*/
|
|
80652
|
+
502: unknown;
|
|
80653
|
+
};
|
|
80654
|
+
export type UpdateOrganizationNotificationMessageResponses = {
|
|
80655
|
+
/**
|
|
80656
|
+
* The message after the change.
|
|
80657
|
+
*/
|
|
80658
|
+
200: {
|
|
80659
|
+
/**
|
|
80660
|
+
* The message's resource name, subscribers/{user}/messages/{id}; pass it URL-encoded as the {name} of the other message operations.
|
|
80661
|
+
*/
|
|
80662
|
+
name: string;
|
|
80663
|
+
/**
|
|
80664
|
+
* The organization the message belongs to; empty for a message that belongs to no organization.
|
|
80665
|
+
*/
|
|
80666
|
+
organizationId: string;
|
|
80667
|
+
/**
|
|
80668
|
+
* The notification group the message belongs to: members, usage, alerts, agent, or nonConfigurable.
|
|
80669
|
+
*/
|
|
80670
|
+
group: 'members' | 'usage' | 'alerts' | 'agent' | 'nonConfigurable';
|
|
80671
|
+
/**
|
|
80672
|
+
* The notification workflow that wrote it, as the preferences page names it.
|
|
80673
|
+
*/
|
|
80674
|
+
workflow: string;
|
|
80675
|
+
/**
|
|
80676
|
+
* The message's headline, as the bell shows it.
|
|
80677
|
+
*/
|
|
80678
|
+
title: string;
|
|
80679
|
+
/**
|
|
80680
|
+
* The message text.
|
|
80681
|
+
*/
|
|
80682
|
+
body: string;
|
|
80683
|
+
/**
|
|
80684
|
+
* Where the bell opens this message; absent when it has no page.
|
|
80685
|
+
*/
|
|
80686
|
+
actionUrl?: string;
|
|
80687
|
+
/**
|
|
80688
|
+
* Whether the bell has been opened since the message arrived.
|
|
80689
|
+
*/
|
|
80690
|
+
seen: boolean;
|
|
80691
|
+
/**
|
|
80692
|
+
* Whether this person has read it.
|
|
80693
|
+
*/
|
|
80694
|
+
read: boolean;
|
|
80695
|
+
/**
|
|
80696
|
+
* Whether this person archived it; archived messages are not in the inbox tab.
|
|
80697
|
+
*/
|
|
80698
|
+
archived: boolean;
|
|
80699
|
+
/**
|
|
80700
|
+
* When the message arrived.
|
|
80701
|
+
*/
|
|
80702
|
+
createTime: string;
|
|
80703
|
+
};
|
|
80704
|
+
};
|
|
80705
|
+
export type UpdateOrganizationNotificationMessageResponse = UpdateOrganizationNotificationMessageResponses[keyof UpdateOrganizationNotificationMessageResponses];
|
|
80706
|
+
export type ReadAllOrganizationNotificationMessagesData = {
|
|
80707
|
+
body?: never;
|
|
80708
|
+
path?: never;
|
|
80709
|
+
query?: never;
|
|
80710
|
+
url: '/organization/v1/notifications/messages:readAll';
|
|
80711
|
+
};
|
|
80712
|
+
export type ReadAllOrganizationNotificationMessagesErrors = {
|
|
80713
|
+
/**
|
|
80714
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
80715
|
+
*/
|
|
80716
|
+
401: unknown;
|
|
80717
|
+
/**
|
|
80718
|
+
* `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem).
|
|
80719
|
+
*/
|
|
80720
|
+
403: unknown;
|
|
80721
|
+
/**
|
|
80722
|
+
* The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
|
|
80723
|
+
*/
|
|
80724
|
+
502: unknown;
|
|
80725
|
+
};
|
|
80726
|
+
export type ReadAllOrganizationNotificationMessagesResponses = {
|
|
80727
|
+
/**
|
|
80728
|
+
* How many messages were marked read.
|
|
80729
|
+
*/
|
|
80730
|
+
200: {
|
|
80731
|
+
/**
|
|
80732
|
+
* The number of messages that were unread and are now read.
|
|
80733
|
+
*/
|
|
80734
|
+
updated: number;
|
|
80735
|
+
};
|
|
80736
|
+
};
|
|
80737
|
+
export type ReadAllOrganizationNotificationMessagesResponse = ReadAllOrganizationNotificationMessagesResponses[keyof ReadAllOrganizationNotificationMessagesResponses];
|
|
79809
80738
|
export type GetOrganizationNotificationPreferencesData = {
|
|
79810
80739
|
body?: never;
|
|
79811
80740
|
path?: never;
|
|
@@ -99514,7 +100443,7 @@ export type AutomationRunsListData = {
|
|
|
99514
100443
|
*/
|
|
99515
100444
|
channel?: Array<'console' | 'api' | 'internal' | 'run' | 'trigger'>;
|
|
99516
100445
|
/**
|
|
99517
|
-
* Root initiator type: user, api_key, agent or
|
|
100446
|
+
* Root initiator type: user, api_key, agent, trigger or application, inherited by child runs. run returns INPUT_INVALID; filter origin with channel=run or parent_run_id. Separate multiple values with commas to match any value.
|
|
99518
100447
|
*/
|
|
99519
100448
|
initiator_type?: Array<'user' | 'api_key' | 'agent' | 'trigger'>;
|
|
99520
100449
|
/**
|
|
@@ -119165,45 +120094,509 @@ export type MediaListUnderstandingsByLibraryErrors = {
|
|
|
119165
120094
|
*/
|
|
119166
120095
|
503: MediaMediaError;
|
|
119167
120096
|
};
|
|
119168
|
-
export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
|
|
119169
|
-
export type MediaListUnderstandingsByLibraryResponses = {
|
|
120097
|
+
export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
|
|
120098
|
+
export type MediaListUnderstandingsByLibraryResponses = {
|
|
120099
|
+
/**
|
|
120100
|
+
* Successful response.
|
|
120101
|
+
*/
|
|
120102
|
+
200: MediaUnderstandingPage;
|
|
120103
|
+
};
|
|
120104
|
+
export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
|
|
120105
|
+
export type MediaListJobsData = {
|
|
120106
|
+
body?: never;
|
|
120107
|
+
path: {
|
|
120108
|
+
/**
|
|
120109
|
+
* Library ID returned by creation.
|
|
120110
|
+
*/
|
|
120111
|
+
library_id: string;
|
|
120112
|
+
};
|
|
120113
|
+
query?: {
|
|
120114
|
+
/**
|
|
120115
|
+
* Filter jobs by their current status.
|
|
120116
|
+
*/
|
|
120117
|
+
status?: MediaJobStatus;
|
|
120118
|
+
/**
|
|
120119
|
+
* Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
|
|
120120
|
+
*/
|
|
120121
|
+
pipeline_run_id?: string;
|
|
120122
|
+
/**
|
|
120123
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
120124
|
+
*/
|
|
120125
|
+
limit?: number;
|
|
120126
|
+
/**
|
|
120127
|
+
* Job id from the previous page’s next_cursor; omit for the first page.
|
|
120128
|
+
*/
|
|
120129
|
+
cursor?: MediaJobId;
|
|
120130
|
+
};
|
|
120131
|
+
url: '/media/v1/libraries/{library_id}/jobs';
|
|
120132
|
+
};
|
|
120133
|
+
export type MediaListJobsErrors = {
|
|
120134
|
+
/**
|
|
120135
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120136
|
+
*/
|
|
120137
|
+
400: MediaMediaError;
|
|
120138
|
+
/**
|
|
120139
|
+
* Request failed; see the error code reference.
|
|
120140
|
+
*/
|
|
120141
|
+
402: MediaMediaError;
|
|
120142
|
+
/**
|
|
120143
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120144
|
+
*/
|
|
120145
|
+
403: MediaMediaError;
|
|
120146
|
+
/**
|
|
120147
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120148
|
+
*/
|
|
120149
|
+
404: MediaMediaError;
|
|
120150
|
+
/**
|
|
120151
|
+
* Request failed; see the error code reference.
|
|
120152
|
+
*/
|
|
120153
|
+
409: MediaMediaError;
|
|
120154
|
+
/**
|
|
120155
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120156
|
+
*/
|
|
120157
|
+
413: MediaMediaError;
|
|
120158
|
+
/**
|
|
120159
|
+
* This media format is unsupported; provide a supported format.
|
|
120160
|
+
*/
|
|
120161
|
+
415: MediaMediaError;
|
|
120162
|
+
/**
|
|
120163
|
+
* Request failed; see the error code reference.
|
|
120164
|
+
*/
|
|
120165
|
+
422: MediaMediaError;
|
|
120166
|
+
/**
|
|
120167
|
+
* A rate limit was reached; wait before retrying.
|
|
120168
|
+
*/
|
|
120169
|
+
429: MediaMediaError;
|
|
120170
|
+
/**
|
|
120171
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120172
|
+
*/
|
|
120173
|
+
501: MediaMediaError;
|
|
120174
|
+
/**
|
|
120175
|
+
* Request failed; see the error code reference.
|
|
120176
|
+
*/
|
|
120177
|
+
502: MediaMediaError;
|
|
120178
|
+
/**
|
|
120179
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120180
|
+
*/
|
|
120181
|
+
503: MediaMediaError;
|
|
120182
|
+
};
|
|
120183
|
+
export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
|
|
120184
|
+
export type MediaListJobsResponses = {
|
|
120185
|
+
/**
|
|
120186
|
+
* Successful response.
|
|
120187
|
+
*/
|
|
120188
|
+
200: MediaJobPage;
|
|
120189
|
+
};
|
|
120190
|
+
export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
|
|
120191
|
+
export type MediaCancelJobData = {
|
|
120192
|
+
body?: never;
|
|
120193
|
+
path: {
|
|
120194
|
+
/**
|
|
120195
|
+
* Library ID returned by creation.
|
|
120196
|
+
*/
|
|
120197
|
+
library_id: string;
|
|
120198
|
+
/**
|
|
120199
|
+
* Job identifier returned by batch or generation creation; the job is resolved within the specified library.
|
|
120200
|
+
*/
|
|
120201
|
+
job_id: string;
|
|
120202
|
+
};
|
|
120203
|
+
query?: never;
|
|
120204
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
|
|
120205
|
+
};
|
|
120206
|
+
export type MediaCancelJobErrors = {
|
|
120207
|
+
/**
|
|
120208
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120209
|
+
*/
|
|
120210
|
+
400: MediaMediaError;
|
|
120211
|
+
/**
|
|
120212
|
+
* Request failed; see the error code reference.
|
|
120213
|
+
*/
|
|
120214
|
+
402: MediaMediaError;
|
|
120215
|
+
/**
|
|
120216
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120217
|
+
*/
|
|
120218
|
+
403: MediaMediaError;
|
|
120219
|
+
/**
|
|
120220
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120221
|
+
*/
|
|
120222
|
+
404: MediaMediaError;
|
|
120223
|
+
/**
|
|
120224
|
+
* Request failed; see the error code reference.
|
|
120225
|
+
*/
|
|
120226
|
+
409: MediaMediaError;
|
|
120227
|
+
/**
|
|
120228
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120229
|
+
*/
|
|
120230
|
+
413: MediaMediaError;
|
|
120231
|
+
/**
|
|
120232
|
+
* This media format is unsupported; provide a supported format.
|
|
120233
|
+
*/
|
|
120234
|
+
415: MediaMediaError;
|
|
120235
|
+
/**
|
|
120236
|
+
* Request failed; see the error code reference.
|
|
120237
|
+
*/
|
|
120238
|
+
422: MediaMediaError;
|
|
120239
|
+
/**
|
|
120240
|
+
* A rate limit was reached; wait before retrying.
|
|
120241
|
+
*/
|
|
120242
|
+
429: MediaMediaError;
|
|
120243
|
+
/**
|
|
120244
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120245
|
+
*/
|
|
120246
|
+
501: MediaMediaError;
|
|
120247
|
+
/**
|
|
120248
|
+
* Request failed; see the error code reference.
|
|
120249
|
+
*/
|
|
120250
|
+
502: MediaMediaError;
|
|
120251
|
+
/**
|
|
120252
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120253
|
+
*/
|
|
120254
|
+
503: MediaMediaError;
|
|
120255
|
+
};
|
|
120256
|
+
export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
|
|
120257
|
+
export type MediaCancelJobResponses = {
|
|
120258
|
+
/**
|
|
120259
|
+
* Successful response.
|
|
120260
|
+
*/
|
|
120261
|
+
200: MediaJob;
|
|
120262
|
+
};
|
|
120263
|
+
export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
|
|
120264
|
+
export type MediaGetGenerationCapabilitiesData = {
|
|
120265
|
+
body?: never;
|
|
120266
|
+
path?: never;
|
|
120267
|
+
query?: never;
|
|
120268
|
+
url: '/media/v1/generation/capabilities';
|
|
120269
|
+
};
|
|
120270
|
+
export type MediaGetGenerationCapabilitiesErrors = {
|
|
120271
|
+
/**
|
|
120272
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120273
|
+
*/
|
|
120274
|
+
400: MediaMediaError;
|
|
120275
|
+
/**
|
|
120276
|
+
* Request failed; see the error code reference.
|
|
120277
|
+
*/
|
|
120278
|
+
402: MediaMediaError;
|
|
120279
|
+
/**
|
|
120280
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120281
|
+
*/
|
|
120282
|
+
403: MediaMediaError;
|
|
120283
|
+
/**
|
|
120284
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120285
|
+
*/
|
|
120286
|
+
404: MediaMediaError;
|
|
120287
|
+
/**
|
|
120288
|
+
* Request failed; see the error code reference.
|
|
120289
|
+
*/
|
|
120290
|
+
409: MediaMediaError;
|
|
120291
|
+
/**
|
|
120292
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120293
|
+
*/
|
|
120294
|
+
413: MediaMediaError;
|
|
120295
|
+
/**
|
|
120296
|
+
* This media format is unsupported; provide a supported format.
|
|
120297
|
+
*/
|
|
120298
|
+
415: MediaMediaError;
|
|
120299
|
+
/**
|
|
120300
|
+
* Request failed; see the error code reference.
|
|
120301
|
+
*/
|
|
120302
|
+
422: MediaMediaError;
|
|
120303
|
+
/**
|
|
120304
|
+
* A rate limit was reached; wait before retrying.
|
|
120305
|
+
*/
|
|
120306
|
+
429: MediaMediaError;
|
|
120307
|
+
/**
|
|
120308
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120309
|
+
*/
|
|
120310
|
+
501: MediaMediaError;
|
|
120311
|
+
/**
|
|
120312
|
+
* Request failed; see the error code reference.
|
|
120313
|
+
*/
|
|
120314
|
+
502: MediaMediaError;
|
|
120315
|
+
/**
|
|
120316
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120317
|
+
*/
|
|
120318
|
+
503: MediaMediaError;
|
|
120319
|
+
};
|
|
120320
|
+
export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
|
|
120321
|
+
export type MediaGetGenerationCapabilitiesResponses = {
|
|
120322
|
+
/**
|
|
120323
|
+
* Successful response.
|
|
120324
|
+
*/
|
|
120325
|
+
200: MediaGenerationCapabilities;
|
|
120326
|
+
};
|
|
120327
|
+
export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
|
|
120328
|
+
export type MediaAlignAssetData = {
|
|
120329
|
+
/**
|
|
120330
|
+
* Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
|
|
120331
|
+
*/
|
|
120332
|
+
body: {
|
|
120333
|
+
/**
|
|
120334
|
+
* Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
|
|
120335
|
+
*/
|
|
120336
|
+
reference_asset_id: string;
|
|
120337
|
+
/**
|
|
120338
|
+
* Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
|
|
120339
|
+
*/
|
|
120340
|
+
max_offset_seconds?: number;
|
|
120341
|
+
/**
|
|
120342
|
+
* Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
|
|
120343
|
+
*/
|
|
120344
|
+
idempotency_key?: string;
|
|
120345
|
+
};
|
|
120346
|
+
headers?: {
|
|
120347
|
+
/**
|
|
120348
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
120349
|
+
*/
|
|
120350
|
+
'Idempotency-Key'?: string;
|
|
120351
|
+
};
|
|
120352
|
+
path: {
|
|
120353
|
+
/**
|
|
120354
|
+
* Library ID returned by creation.
|
|
120355
|
+
*/
|
|
120356
|
+
library_id: string;
|
|
120357
|
+
/**
|
|
120358
|
+
* 32-character asset ID.
|
|
120359
|
+
*/
|
|
120360
|
+
asset_id: string;
|
|
120361
|
+
};
|
|
120362
|
+
query?: never;
|
|
120363
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
|
|
120364
|
+
};
|
|
120365
|
+
export type MediaAlignAssetErrors = {
|
|
120366
|
+
/**
|
|
120367
|
+
* REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
|
|
120368
|
+
*/
|
|
120369
|
+
400: MediaMediaError;
|
|
120370
|
+
/**
|
|
120371
|
+
* INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
|
|
120372
|
+
*/
|
|
120373
|
+
402: MediaMediaError;
|
|
120374
|
+
/**
|
|
120375
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120376
|
+
*/
|
|
120377
|
+
403: MediaMediaError;
|
|
120378
|
+
/**
|
|
120379
|
+
* ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
|
|
120380
|
+
*/
|
|
120381
|
+
404: MediaMediaError;
|
|
120382
|
+
/**
|
|
120383
|
+
* MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
|
|
120384
|
+
*/
|
|
120385
|
+
409: MediaMediaError;
|
|
120386
|
+
/**
|
|
120387
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120388
|
+
*/
|
|
120389
|
+
413: MediaMediaError;
|
|
120390
|
+
/**
|
|
120391
|
+
* This media format is unsupported; provide a supported format.
|
|
120392
|
+
*/
|
|
120393
|
+
415: MediaMediaError;
|
|
120394
|
+
/**
|
|
120395
|
+
* CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
|
|
120396
|
+
*/
|
|
120397
|
+
422: MediaMediaError;
|
|
120398
|
+
/**
|
|
120399
|
+
* RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
|
|
120400
|
+
*/
|
|
120401
|
+
429: MediaMediaError;
|
|
120402
|
+
/**
|
|
120403
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120404
|
+
*/
|
|
120405
|
+
501: MediaMediaError;
|
|
120406
|
+
/**
|
|
120407
|
+
* Request failed; see the error code reference.
|
|
120408
|
+
*/
|
|
120409
|
+
502: MediaMediaError;
|
|
120410
|
+
/**
|
|
120411
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120412
|
+
*/
|
|
120413
|
+
503: MediaMediaError;
|
|
120414
|
+
};
|
|
120415
|
+
export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
|
|
120416
|
+
export type MediaAlignAssetResponses = {
|
|
120417
|
+
/**
|
|
120418
|
+
* The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
|
|
120419
|
+
*/
|
|
120420
|
+
202: MediaJob;
|
|
120421
|
+
};
|
|
120422
|
+
export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
|
|
120423
|
+
export type MediaGetHlsRenditionsData = {
|
|
120424
|
+
body?: never;
|
|
120425
|
+
path: {
|
|
120426
|
+
/**
|
|
120427
|
+
* Library ID returned by creation.
|
|
120428
|
+
*/
|
|
120429
|
+
library_id: string;
|
|
120430
|
+
/**
|
|
120431
|
+
* 32-character asset ID.
|
|
120432
|
+
*/
|
|
120433
|
+
asset_id: string;
|
|
120434
|
+
};
|
|
120435
|
+
query?: never;
|
|
120436
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
120437
|
+
};
|
|
120438
|
+
export type MediaGetHlsRenditionsErrors = {
|
|
120439
|
+
/**
|
|
120440
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120441
|
+
*/
|
|
120442
|
+
400: MediaMediaError;
|
|
120443
|
+
/**
|
|
120444
|
+
* Request failed; see the error code reference.
|
|
120445
|
+
*/
|
|
120446
|
+
402: MediaMediaError;
|
|
120447
|
+
/**
|
|
120448
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120449
|
+
*/
|
|
120450
|
+
403: MediaMediaError;
|
|
120451
|
+
/**
|
|
120452
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120453
|
+
*/
|
|
120454
|
+
404: MediaMediaError;
|
|
120455
|
+
/**
|
|
120456
|
+
* Request failed; see the error code reference.
|
|
120457
|
+
*/
|
|
120458
|
+
409: MediaMediaError;
|
|
120459
|
+
/**
|
|
120460
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120461
|
+
*/
|
|
120462
|
+
413: MediaMediaError;
|
|
120463
|
+
/**
|
|
120464
|
+
* This media format is unsupported; provide a supported format.
|
|
120465
|
+
*/
|
|
120466
|
+
415: MediaMediaError;
|
|
120467
|
+
/**
|
|
120468
|
+
* Request failed; see the error code reference.
|
|
120469
|
+
*/
|
|
120470
|
+
422: MediaMediaError;
|
|
120471
|
+
/**
|
|
120472
|
+
* A rate limit was reached; wait before retrying.
|
|
120473
|
+
*/
|
|
120474
|
+
429: MediaMediaError;
|
|
120475
|
+
/**
|
|
120476
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120477
|
+
*/
|
|
120478
|
+
501: MediaMediaError;
|
|
120479
|
+
/**
|
|
120480
|
+
* Request failed; see the error code reference.
|
|
120481
|
+
*/
|
|
120482
|
+
502: MediaMediaError;
|
|
120483
|
+
/**
|
|
120484
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120485
|
+
*/
|
|
120486
|
+
503: MediaMediaError;
|
|
120487
|
+
};
|
|
120488
|
+
export type MediaGetHlsRenditionsError = MediaGetHlsRenditionsErrors[keyof MediaGetHlsRenditionsErrors];
|
|
120489
|
+
export type MediaGetHlsRenditionsResponses = {
|
|
120490
|
+
/**
|
|
120491
|
+
* Successful response.
|
|
120492
|
+
*/
|
|
120493
|
+
200: MediaHlsLadder;
|
|
120494
|
+
};
|
|
120495
|
+
export type MediaGetHlsRenditionsResponse = MediaGetHlsRenditionsResponses[keyof MediaGetHlsRenditionsResponses];
|
|
120496
|
+
export type MediaRequestHlsRenditionsData = {
|
|
120497
|
+
/**
|
|
120498
|
+
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
120499
|
+
*/
|
|
120500
|
+
body: {
|
|
120501
|
+
/**
|
|
120502
|
+
* The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
|
|
120503
|
+
*/
|
|
120504
|
+
heights?: Array<480 | 720 | 1080>;
|
|
120505
|
+
};
|
|
120506
|
+
path: {
|
|
120507
|
+
/**
|
|
120508
|
+
* Library ID returned by creation.
|
|
120509
|
+
*/
|
|
120510
|
+
library_id: string;
|
|
120511
|
+
/**
|
|
120512
|
+
* 32-character asset ID.
|
|
120513
|
+
*/
|
|
120514
|
+
asset_id: string;
|
|
120515
|
+
};
|
|
120516
|
+
query?: never;
|
|
120517
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/hls';
|
|
120518
|
+
};
|
|
120519
|
+
export type MediaRequestHlsRenditionsErrors = {
|
|
120520
|
+
/**
|
|
120521
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
120522
|
+
*/
|
|
120523
|
+
400: MediaMediaError;
|
|
120524
|
+
/**
|
|
120525
|
+
* Request failed; see the error code reference.
|
|
120526
|
+
*/
|
|
120527
|
+
402: MediaMediaError;
|
|
120528
|
+
/**
|
|
120529
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
120530
|
+
*/
|
|
120531
|
+
403: MediaMediaError;
|
|
120532
|
+
/**
|
|
120533
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
120534
|
+
*/
|
|
120535
|
+
404: MediaMediaError;
|
|
120536
|
+
/**
|
|
120537
|
+
* Request failed; see the error code reference.
|
|
120538
|
+
*/
|
|
120539
|
+
409: MediaMediaError;
|
|
120540
|
+
/**
|
|
120541
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
120542
|
+
*/
|
|
120543
|
+
413: MediaMediaError;
|
|
120544
|
+
/**
|
|
120545
|
+
* This media format is unsupported; provide a supported format.
|
|
120546
|
+
*/
|
|
120547
|
+
415: MediaMediaError;
|
|
120548
|
+
/**
|
|
120549
|
+
* Request failed; see the error code reference.
|
|
120550
|
+
*/
|
|
120551
|
+
422: MediaMediaError;
|
|
120552
|
+
/**
|
|
120553
|
+
* A rate limit was reached; wait before retrying.
|
|
120554
|
+
*/
|
|
120555
|
+
429: MediaMediaError;
|
|
120556
|
+
/**
|
|
120557
|
+
* The requested operation is unsupported; choose a supported method.
|
|
120558
|
+
*/
|
|
120559
|
+
501: MediaMediaError;
|
|
120560
|
+
/**
|
|
120561
|
+
* Request failed; see the error code reference.
|
|
120562
|
+
*/
|
|
120563
|
+
502: MediaMediaError;
|
|
120564
|
+
/**
|
|
120565
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
120566
|
+
*/
|
|
120567
|
+
503: MediaMediaError;
|
|
120568
|
+
};
|
|
120569
|
+
export type MediaRequestHlsRenditionsError = MediaRequestHlsRenditionsErrors[keyof MediaRequestHlsRenditionsErrors];
|
|
120570
|
+
export type MediaRequestHlsRenditionsResponses = {
|
|
119170
120571
|
/**
|
|
119171
120572
|
* Successful response.
|
|
119172
120573
|
*/
|
|
119173
|
-
|
|
120574
|
+
202: MediaHlsLadder;
|
|
119174
120575
|
};
|
|
119175
|
-
export type
|
|
119176
|
-
export type
|
|
119177
|
-
|
|
119178
|
-
|
|
120576
|
+
export type MediaRequestHlsRenditionsResponse = MediaRequestHlsRenditionsResponses[keyof MediaRequestHlsRenditionsResponses];
|
|
120577
|
+
export type MediaCreateVoiceData = {
|
|
120578
|
+
/**
|
|
120579
|
+
* Exactly one of the two voice shapes: consent_id with samples (a consented voice) or design_asset_id (a generated voice).
|
|
120580
|
+
*/
|
|
120581
|
+
body: MediaVoiceCloneInput | MediaVoiceDesignCreateInput;
|
|
120582
|
+
headers?: {
|
|
119179
120583
|
/**
|
|
119180
|
-
*
|
|
120584
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
119181
120585
|
*/
|
|
119182
|
-
|
|
120586
|
+
'Idempotency-Key'?: string;
|
|
119183
120587
|
};
|
|
119184
|
-
|
|
119185
|
-
/**
|
|
119186
|
-
* Filter jobs by their current status.
|
|
119187
|
-
*/
|
|
119188
|
-
status?: MediaJobStatus;
|
|
119189
|
-
/**
|
|
119190
|
-
* Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
|
|
119191
|
-
*/
|
|
119192
|
-
pipeline_run_id?: string;
|
|
119193
|
-
/**
|
|
119194
|
-
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
119195
|
-
*/
|
|
119196
|
-
limit?: number;
|
|
120588
|
+
path: {
|
|
119197
120589
|
/**
|
|
119198
|
-
*
|
|
120590
|
+
* Library ID returned by creation.
|
|
119199
120591
|
*/
|
|
119200
|
-
|
|
120592
|
+
library_id: string;
|
|
119201
120593
|
};
|
|
119202
|
-
|
|
120594
|
+
query?: never;
|
|
120595
|
+
url: '/media/v1/libraries/{library_id}/voices';
|
|
119203
120596
|
};
|
|
119204
|
-
export type
|
|
120597
|
+
export type MediaCreateVoiceErrors = {
|
|
119205
120598
|
/**
|
|
119206
|
-
*
|
|
120599
|
+
* Request failed; see the error code reference.
|
|
119207
120600
|
*/
|
|
119208
120601
|
400: MediaMediaError;
|
|
119209
120602
|
/**
|
|
@@ -119211,11 +120604,11 @@ export type MediaListJobsErrors = {
|
|
|
119211
120604
|
*/
|
|
119212
120605
|
402: MediaMediaError;
|
|
119213
120606
|
/**
|
|
119214
|
-
*
|
|
120607
|
+
* Request failed; see the error code reference.
|
|
119215
120608
|
*/
|
|
119216
120609
|
403: MediaMediaError;
|
|
119217
120610
|
/**
|
|
119218
|
-
*
|
|
120611
|
+
* Request failed; see the error code reference.
|
|
119219
120612
|
*/
|
|
119220
120613
|
404: MediaMediaError;
|
|
119221
120614
|
/**
|
|
@@ -119223,11 +120616,11 @@ export type MediaListJobsErrors = {
|
|
|
119223
120616
|
*/
|
|
119224
120617
|
409: MediaMediaError;
|
|
119225
120618
|
/**
|
|
119226
|
-
*
|
|
120619
|
+
* Request failed; see the error code reference.
|
|
119227
120620
|
*/
|
|
119228
120621
|
413: MediaMediaError;
|
|
119229
120622
|
/**
|
|
119230
|
-
*
|
|
120623
|
+
* Request failed; see the error code reference.
|
|
119231
120624
|
*/
|
|
119232
120625
|
415: MediaMediaError;
|
|
119233
120626
|
/**
|
|
@@ -119235,11 +120628,11 @@ export type MediaListJobsErrors = {
|
|
|
119235
120628
|
*/
|
|
119236
120629
|
422: MediaMediaError;
|
|
119237
120630
|
/**
|
|
119238
|
-
*
|
|
120631
|
+
* Request failed; see the error code reference.
|
|
119239
120632
|
*/
|
|
119240
120633
|
429: MediaMediaError;
|
|
119241
120634
|
/**
|
|
119242
|
-
*
|
|
120635
|
+
* Request failed; see the error code reference.
|
|
119243
120636
|
*/
|
|
119244
120637
|
501: MediaMediaError;
|
|
119245
120638
|
/**
|
|
@@ -119247,36 +120640,58 @@ export type MediaListJobsErrors = {
|
|
|
119247
120640
|
*/
|
|
119248
120641
|
502: MediaMediaError;
|
|
119249
120642
|
/**
|
|
119250
|
-
*
|
|
120643
|
+
* Request failed; see the error code reference.
|
|
119251
120644
|
*/
|
|
119252
120645
|
503: MediaMediaError;
|
|
119253
120646
|
};
|
|
119254
|
-
export type
|
|
119255
|
-
export type
|
|
120647
|
+
export type MediaCreateVoiceError = MediaCreateVoiceErrors[keyof MediaCreateVoiceErrors];
|
|
120648
|
+
export type MediaCreateVoiceResponses = {
|
|
119256
120649
|
/**
|
|
119257
120650
|
* Successful response.
|
|
119258
120651
|
*/
|
|
119259
|
-
|
|
120652
|
+
202: MediaJob;
|
|
119260
120653
|
};
|
|
119261
|
-
export type
|
|
119262
|
-
export type
|
|
119263
|
-
|
|
120654
|
+
export type MediaCreateVoiceResponse = MediaCreateVoiceResponses[keyof MediaCreateVoiceResponses];
|
|
120655
|
+
export type MediaDesignVoiceData = {
|
|
120656
|
+
/**
|
|
120657
|
+
* One voice-design run: what the voice should sound like and the line the previews speak.
|
|
120658
|
+
*/
|
|
120659
|
+
body: {
|
|
120660
|
+
/**
|
|
120661
|
+
* Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
|
|
120662
|
+
*/
|
|
120663
|
+
description: string;
|
|
120664
|
+
/**
|
|
120665
|
+
* Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
|
|
120666
|
+
*/
|
|
120667
|
+
preview_text: string;
|
|
120668
|
+
/**
|
|
120669
|
+
* Language the previews speak: zh or en only.
|
|
120670
|
+
*/
|
|
120671
|
+
language: 'zh' | 'en';
|
|
120672
|
+
/**
|
|
120673
|
+
* How many preview recordings to design, 1 to 3; defaults to 3. Each one is stored as an audio asset.
|
|
120674
|
+
*/
|
|
120675
|
+
count?: number;
|
|
120676
|
+
};
|
|
120677
|
+
headers?: {
|
|
120678
|
+
/**
|
|
120679
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
|
|
120680
|
+
*/
|
|
120681
|
+
'Idempotency-Key'?: string;
|
|
120682
|
+
};
|
|
119264
120683
|
path: {
|
|
119265
120684
|
/**
|
|
119266
120685
|
* Library ID returned by creation.
|
|
119267
120686
|
*/
|
|
119268
120687
|
library_id: string;
|
|
119269
|
-
/**
|
|
119270
|
-
* Job identifier returned by batch or generation creation; the job is resolved within the specified library.
|
|
119271
|
-
*/
|
|
119272
|
-
job_id: string;
|
|
119273
120688
|
};
|
|
119274
120689
|
query?: never;
|
|
119275
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120690
|
+
url: '/media/v1/libraries/{library_id}/voices/designs';
|
|
119276
120691
|
};
|
|
119277
|
-
export type
|
|
120692
|
+
export type MediaDesignVoiceErrors = {
|
|
119278
120693
|
/**
|
|
119279
|
-
*
|
|
120694
|
+
* Request failed; see the error code reference.
|
|
119280
120695
|
*/
|
|
119281
120696
|
400: MediaMediaError;
|
|
119282
120697
|
/**
|
|
@@ -119284,11 +120699,11 @@ export type MediaCancelJobErrors = {
|
|
|
119284
120699
|
*/
|
|
119285
120700
|
402: MediaMediaError;
|
|
119286
120701
|
/**
|
|
119287
|
-
*
|
|
120702
|
+
* Request failed; see the error code reference.
|
|
119288
120703
|
*/
|
|
119289
120704
|
403: MediaMediaError;
|
|
119290
120705
|
/**
|
|
119291
|
-
*
|
|
120706
|
+
* Request failed; see the error code reference.
|
|
119292
120707
|
*/
|
|
119293
120708
|
404: MediaMediaError;
|
|
119294
120709
|
/**
|
|
@@ -119296,11 +120711,11 @@ export type MediaCancelJobErrors = {
|
|
|
119296
120711
|
*/
|
|
119297
120712
|
409: MediaMediaError;
|
|
119298
120713
|
/**
|
|
119299
|
-
*
|
|
120714
|
+
* Request failed; see the error code reference.
|
|
119300
120715
|
*/
|
|
119301
120716
|
413: MediaMediaError;
|
|
119302
120717
|
/**
|
|
119303
|
-
*
|
|
120718
|
+
* Request failed; see the error code reference.
|
|
119304
120719
|
*/
|
|
119305
120720
|
415: MediaMediaError;
|
|
119306
120721
|
/**
|
|
@@ -119308,11 +120723,11 @@ export type MediaCancelJobErrors = {
|
|
|
119308
120723
|
*/
|
|
119309
120724
|
422: MediaMediaError;
|
|
119310
120725
|
/**
|
|
119311
|
-
*
|
|
120726
|
+
* Request failed; see the error code reference.
|
|
119312
120727
|
*/
|
|
119313
120728
|
429: MediaMediaError;
|
|
119314
120729
|
/**
|
|
119315
|
-
*
|
|
120730
|
+
* Request failed; see the error code reference.
|
|
119316
120731
|
*/
|
|
119317
120732
|
501: MediaMediaError;
|
|
119318
120733
|
/**
|
|
@@ -119320,25 +120735,51 @@ export type MediaCancelJobErrors = {
|
|
|
119320
120735
|
*/
|
|
119321
120736
|
502: MediaMediaError;
|
|
119322
120737
|
/**
|
|
119323
|
-
*
|
|
120738
|
+
* Request failed; see the error code reference.
|
|
119324
120739
|
*/
|
|
119325
120740
|
503: MediaMediaError;
|
|
119326
120741
|
};
|
|
119327
|
-
export type
|
|
119328
|
-
export type
|
|
120742
|
+
export type MediaDesignVoiceError = MediaDesignVoiceErrors[keyof MediaDesignVoiceErrors];
|
|
120743
|
+
export type MediaDesignVoiceResponses = {
|
|
119329
120744
|
/**
|
|
119330
120745
|
* Successful response.
|
|
119331
120746
|
*/
|
|
119332
|
-
|
|
120747
|
+
202: MediaJob;
|
|
119333
120748
|
};
|
|
119334
|
-
export type
|
|
119335
|
-
export type
|
|
120749
|
+
export type MediaDesignVoiceResponse = MediaDesignVoiceResponses[keyof MediaDesignVoiceResponses];
|
|
120750
|
+
export type MediaListWorksData = {
|
|
119336
120751
|
body?: never;
|
|
119337
|
-
path
|
|
119338
|
-
|
|
119339
|
-
|
|
120752
|
+
path: {
|
|
120753
|
+
/**
|
|
120754
|
+
* Library ID returned by creation.
|
|
120755
|
+
*/
|
|
120756
|
+
library_id: string;
|
|
120757
|
+
};
|
|
120758
|
+
query?: {
|
|
120759
|
+
/**
|
|
120760
|
+
* Only works of this kind: gallery, article, product_listing or blocks.
|
|
120761
|
+
*/
|
|
120762
|
+
kind?: 'gallery' | 'article' | 'product_listing' | 'blocks';
|
|
120763
|
+
/**
|
|
120764
|
+
* Only works of this series.
|
|
120765
|
+
*/
|
|
120766
|
+
series?: string;
|
|
120767
|
+
/**
|
|
120768
|
+
* Only works whose title contains this text, at most 100 characters.
|
|
120769
|
+
*/
|
|
120770
|
+
q?: string;
|
|
120771
|
+
/**
|
|
120772
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
120773
|
+
*/
|
|
120774
|
+
limit?: number;
|
|
120775
|
+
/**
|
|
120776
|
+
* Cursor from the previous next_cursor.
|
|
120777
|
+
*/
|
|
120778
|
+
cursor?: string;
|
|
120779
|
+
};
|
|
120780
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
119340
120781
|
};
|
|
119341
|
-
export type
|
|
120782
|
+
export type MediaListWorksErrors = {
|
|
119342
120783
|
/**
|
|
119343
120784
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119344
120785
|
*/
|
|
@@ -119388,58 +120829,52 @@ export type MediaGetGenerationCapabilitiesErrors = {
|
|
|
119388
120829
|
*/
|
|
119389
120830
|
503: MediaMediaError;
|
|
119390
120831
|
};
|
|
119391
|
-
export type
|
|
119392
|
-
export type
|
|
120832
|
+
export type MediaListWorksError = MediaListWorksErrors[keyof MediaListWorksErrors];
|
|
120833
|
+
export type MediaListWorksResponses = {
|
|
119393
120834
|
/**
|
|
119394
120835
|
* Successful response.
|
|
119395
120836
|
*/
|
|
119396
|
-
200:
|
|
120837
|
+
200: MediaWorkPage;
|
|
119397
120838
|
};
|
|
119398
|
-
export type
|
|
119399
|
-
export type
|
|
120839
|
+
export type MediaListWorksResponse = MediaListWorksResponses[keyof MediaListWorksResponses];
|
|
120840
|
+
export type MediaCreateWorkData = {
|
|
119400
120841
|
/**
|
|
119401
|
-
*
|
|
120842
|
+
* A new work: its kind and its whole body, with an optional series and custom fields.
|
|
119402
120843
|
*/
|
|
119403
120844
|
body: {
|
|
119404
120845
|
/**
|
|
119405
|
-
*
|
|
120846
|
+
* The work’s kind; it decides which body fields are accepted.
|
|
119406
120847
|
*/
|
|
119407
|
-
|
|
120848
|
+
kind: MediaWorkKind;
|
|
119408
120849
|
/**
|
|
119409
|
-
*
|
|
120850
|
+
* The kind’s body. Every asset it names must be a live asset of this library of the fitting type, or the request is refused with ASSET_NOT_FOUND or REFERENCE_TYPE_MISMATCH naming every bad reference, and nothing is saved.
|
|
119410
120851
|
*/
|
|
119411
|
-
|
|
120852
|
+
body: MediaWorkBody;
|
|
119412
120853
|
/**
|
|
119413
|
-
*
|
|
120854
|
+
* Groups the platform versions of one story: 1 to 64 characters of a-z, 0-9, _ and -.
|
|
119414
120855
|
*/
|
|
119415
|
-
|
|
119416
|
-
};
|
|
119417
|
-
headers?: {
|
|
120856
|
+
series?: string;
|
|
119418
120857
|
/**
|
|
119419
|
-
*
|
|
120858
|
+
* Caller data such as source, published links and numbers; at most 50 keys and 16 KB as JSON.
|
|
119420
120859
|
*/
|
|
119421
|
-
|
|
120860
|
+
custom?: MediaWorkCustom;
|
|
119422
120861
|
};
|
|
119423
120862
|
path: {
|
|
119424
120863
|
/**
|
|
119425
120864
|
* Library ID returned by creation.
|
|
119426
120865
|
*/
|
|
119427
120866
|
library_id: string;
|
|
119428
|
-
/**
|
|
119429
|
-
* 32-character asset ID.
|
|
119430
|
-
*/
|
|
119431
|
-
asset_id: string;
|
|
119432
120867
|
};
|
|
119433
120868
|
query?: never;
|
|
119434
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120869
|
+
url: '/media/v1/libraries/{library_id}/works';
|
|
119435
120870
|
};
|
|
119436
|
-
export type
|
|
120871
|
+
export type MediaCreateWorkErrors = {
|
|
119437
120872
|
/**
|
|
119438
|
-
*
|
|
120873
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119439
120874
|
*/
|
|
119440
120875
|
400: MediaMediaError;
|
|
119441
120876
|
/**
|
|
119442
|
-
*
|
|
120877
|
+
* Request failed; see the error code reference.
|
|
119443
120878
|
*/
|
|
119444
120879
|
402: MediaMediaError;
|
|
119445
120880
|
/**
|
|
@@ -119447,11 +120882,11 @@ export type MediaAlignAssetErrors = {
|
|
|
119447
120882
|
*/
|
|
119448
120883
|
403: MediaMediaError;
|
|
119449
120884
|
/**
|
|
119450
|
-
*
|
|
120885
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
119451
120886
|
*/
|
|
119452
120887
|
404: MediaMediaError;
|
|
119453
120888
|
/**
|
|
119454
|
-
*
|
|
120889
|
+
* Request failed; see the error code reference.
|
|
119455
120890
|
*/
|
|
119456
120891
|
409: MediaMediaError;
|
|
119457
120892
|
/**
|
|
@@ -119463,11 +120898,11 @@ export type MediaAlignAssetErrors = {
|
|
|
119463
120898
|
*/
|
|
119464
120899
|
415: MediaMediaError;
|
|
119465
120900
|
/**
|
|
119466
|
-
*
|
|
120901
|
+
* Request failed; see the error code reference.
|
|
119467
120902
|
*/
|
|
119468
120903
|
422: MediaMediaError;
|
|
119469
120904
|
/**
|
|
119470
|
-
*
|
|
120905
|
+
* A rate limit was reached; wait before retrying.
|
|
119471
120906
|
*/
|
|
119472
120907
|
429: MediaMediaError;
|
|
119473
120908
|
/**
|
|
@@ -119483,15 +120918,15 @@ export type MediaAlignAssetErrors = {
|
|
|
119483
120918
|
*/
|
|
119484
120919
|
503: MediaMediaError;
|
|
119485
120920
|
};
|
|
119486
|
-
export type
|
|
119487
|
-
export type
|
|
120921
|
+
export type MediaCreateWorkError = MediaCreateWorkErrors[keyof MediaCreateWorkErrors];
|
|
120922
|
+
export type MediaCreateWorkResponses = {
|
|
119488
120923
|
/**
|
|
119489
|
-
*
|
|
120924
|
+
* Successful response.
|
|
119490
120925
|
*/
|
|
119491
|
-
|
|
120926
|
+
200: MediaWork;
|
|
119492
120927
|
};
|
|
119493
|
-
export type
|
|
119494
|
-
export type
|
|
120928
|
+
export type MediaCreateWorkResponse = MediaCreateWorkResponses[keyof MediaCreateWorkResponses];
|
|
120929
|
+
export type MediaDeleteWorkData = {
|
|
119495
120930
|
body?: never;
|
|
119496
120931
|
path: {
|
|
119497
120932
|
/**
|
|
@@ -119499,14 +120934,14 @@ export type MediaGetHlsRenditionsData = {
|
|
|
119499
120934
|
*/
|
|
119500
120935
|
library_id: string;
|
|
119501
120936
|
/**
|
|
119502
|
-
*
|
|
120937
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
119503
120938
|
*/
|
|
119504
|
-
|
|
120939
|
+
work_id: string;
|
|
119505
120940
|
};
|
|
119506
120941
|
query?: never;
|
|
119507
|
-
url: '/media/v1/libraries/{library_id}/
|
|
120942
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
119508
120943
|
};
|
|
119509
|
-
export type
|
|
120944
|
+
export type MediaDeleteWorkErrors = {
|
|
119510
120945
|
/**
|
|
119511
120946
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119512
120947
|
*/
|
|
@@ -119556,38 +120991,35 @@ export type MediaGetHlsRenditionsErrors = {
|
|
|
119556
120991
|
*/
|
|
119557
120992
|
503: MediaMediaError;
|
|
119558
120993
|
};
|
|
119559
|
-
export type
|
|
119560
|
-
export type
|
|
120994
|
+
export type MediaDeleteWorkError = MediaDeleteWorkErrors[keyof MediaDeleteWorkErrors];
|
|
120995
|
+
export type MediaDeleteWorkResponses = {
|
|
119561
120996
|
/**
|
|
119562
120997
|
* Successful response.
|
|
119563
120998
|
*/
|
|
119564
|
-
200:
|
|
120999
|
+
200: MediaDeletedWork;
|
|
119565
121000
|
};
|
|
119566
|
-
export type
|
|
119567
|
-
export type
|
|
119568
|
-
|
|
119569
|
-
* Which clarity rungs to build for the asset. Omit heights to build the whole ladder.
|
|
119570
|
-
*/
|
|
119571
|
-
body: {
|
|
119572
|
-
/**
|
|
119573
|
-
* The clarity rungs to build: a non-empty subset of 480, 720 and 1080 with no repeats. Omitted or empty builds all three. The ladder never upscales, so a rung above the source’s short side is dropped.
|
|
119574
|
-
*/
|
|
119575
|
-
heights?: Array<480 | 720 | 1080>;
|
|
119576
|
-
};
|
|
121001
|
+
export type MediaDeleteWorkResponse = MediaDeleteWorkResponses[keyof MediaDeleteWorkResponses];
|
|
121002
|
+
export type MediaGetWorkData = {
|
|
121003
|
+
body?: never;
|
|
119577
121004
|
path: {
|
|
119578
121005
|
/**
|
|
119579
121006
|
* Library ID returned by creation.
|
|
119580
121007
|
*/
|
|
119581
121008
|
library_id: string;
|
|
119582
121009
|
/**
|
|
119583
|
-
*
|
|
121010
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
119584
121011
|
*/
|
|
119585
|
-
|
|
121012
|
+
work_id: string;
|
|
119586
121013
|
};
|
|
119587
|
-
query?:
|
|
119588
|
-
|
|
121014
|
+
query?: {
|
|
121015
|
+
/**
|
|
121016
|
+
* assets returns every referenced asset with its URLs and size.
|
|
121017
|
+
*/
|
|
121018
|
+
expand?: string;
|
|
121019
|
+
};
|
|
121020
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
119589
121021
|
};
|
|
119590
|
-
export type
|
|
121022
|
+
export type MediaGetWorkErrors = {
|
|
119591
121023
|
/**
|
|
119592
121024
|
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119593
121025
|
*/
|
|
@@ -119637,37 +121069,52 @@ export type MediaRequestHlsRenditionsErrors = {
|
|
|
119637
121069
|
*/
|
|
119638
121070
|
503: MediaMediaError;
|
|
119639
121071
|
};
|
|
119640
|
-
export type
|
|
119641
|
-
export type
|
|
121072
|
+
export type MediaGetWorkError = MediaGetWorkErrors[keyof MediaGetWorkErrors];
|
|
121073
|
+
export type MediaGetWorkResponses = {
|
|
119642
121074
|
/**
|
|
119643
121075
|
* Successful response.
|
|
119644
121076
|
*/
|
|
119645
|
-
|
|
121077
|
+
200: MediaWork;
|
|
119646
121078
|
};
|
|
119647
|
-
export type
|
|
119648
|
-
export type
|
|
121079
|
+
export type MediaGetWorkResponse = MediaGetWorkResponses[keyof MediaGetWorkResponses];
|
|
121080
|
+
export type MediaUpdateWorkData = {
|
|
119649
121081
|
/**
|
|
119650
|
-
*
|
|
121082
|
+
* Changes to a work. Send only what changes.
|
|
119651
121083
|
*/
|
|
119652
|
-
body:
|
|
119653
|
-
headers?: {
|
|
121084
|
+
body: {
|
|
119654
121085
|
/**
|
|
119655
|
-
*
|
|
121086
|
+
* A whole new body for the same kind; it replaces the old one and is checked like a new one.
|
|
119656
121087
|
*/
|
|
119657
|
-
|
|
121088
|
+
body?: MediaWorkBody;
|
|
121089
|
+
/**
|
|
121090
|
+
* A new series, or null to clear it.
|
|
121091
|
+
*/
|
|
121092
|
+
series?: string | null;
|
|
121093
|
+
/**
|
|
121094
|
+
* A JSON Merge Patch (RFC 7396): keys you send are set, keys set to null are removed, keys you leave out are kept.
|
|
121095
|
+
*/
|
|
121096
|
+
custom?: MediaWorkCustom;
|
|
121097
|
+
/**
|
|
121098
|
+
* Apply the change only if the work is still at this revision; otherwise the answer is 409 REVISION_CONFLICT with the current revision.
|
|
121099
|
+
*/
|
|
121100
|
+
if_revision?: number;
|
|
119658
121101
|
};
|
|
119659
121102
|
path: {
|
|
119660
121103
|
/**
|
|
119661
121104
|
* Library ID returned by creation.
|
|
119662
121105
|
*/
|
|
119663
121106
|
library_id: string;
|
|
121107
|
+
/**
|
|
121108
|
+
* Work id (wrk_…) returned by creation or listing.
|
|
121109
|
+
*/
|
|
121110
|
+
work_id: string;
|
|
119664
121111
|
};
|
|
119665
121112
|
query?: never;
|
|
119666
|
-
url: '/media/v1/libraries/{library_id}/
|
|
121113
|
+
url: '/media/v1/libraries/{library_id}/works/{work_id}';
|
|
119667
121114
|
};
|
|
119668
|
-
export type
|
|
121115
|
+
export type MediaUpdateWorkErrors = {
|
|
119669
121116
|
/**
|
|
119670
|
-
*
|
|
121117
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119671
121118
|
*/
|
|
119672
121119
|
400: MediaMediaError;
|
|
119673
121120
|
/**
|
|
@@ -119675,11 +121122,11 @@ export type MediaCreateVoiceErrors = {
|
|
|
119675
121122
|
*/
|
|
119676
121123
|
402: MediaMediaError;
|
|
119677
121124
|
/**
|
|
119678
|
-
*
|
|
121125
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
119679
121126
|
*/
|
|
119680
121127
|
403: MediaMediaError;
|
|
119681
121128
|
/**
|
|
119682
|
-
*
|
|
121129
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
119683
121130
|
*/
|
|
119684
121131
|
404: MediaMediaError;
|
|
119685
121132
|
/**
|
|
@@ -119687,11 +121134,11 @@ export type MediaCreateVoiceErrors = {
|
|
|
119687
121134
|
*/
|
|
119688
121135
|
409: MediaMediaError;
|
|
119689
121136
|
/**
|
|
119690
|
-
*
|
|
121137
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
119691
121138
|
*/
|
|
119692
121139
|
413: MediaMediaError;
|
|
119693
121140
|
/**
|
|
119694
|
-
*
|
|
121141
|
+
* This media format is unsupported; provide a supported format.
|
|
119695
121142
|
*/
|
|
119696
121143
|
415: MediaMediaError;
|
|
119697
121144
|
/**
|
|
@@ -119699,11 +121146,11 @@ export type MediaCreateVoiceErrors = {
|
|
|
119699
121146
|
*/
|
|
119700
121147
|
422: MediaMediaError;
|
|
119701
121148
|
/**
|
|
119702
|
-
*
|
|
121149
|
+
* A rate limit was reached; wait before retrying.
|
|
119703
121150
|
*/
|
|
119704
121151
|
429: MediaMediaError;
|
|
119705
121152
|
/**
|
|
119706
|
-
*
|
|
121153
|
+
* The requested operation is unsupported; choose a supported method.
|
|
119707
121154
|
*/
|
|
119708
121155
|
501: MediaMediaError;
|
|
119709
121156
|
/**
|
|
@@ -119711,58 +121158,45 @@ export type MediaCreateVoiceErrors = {
|
|
|
119711
121158
|
*/
|
|
119712
121159
|
502: MediaMediaError;
|
|
119713
121160
|
/**
|
|
119714
|
-
*
|
|
121161
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
119715
121162
|
*/
|
|
119716
121163
|
503: MediaMediaError;
|
|
119717
121164
|
};
|
|
119718
|
-
export type
|
|
119719
|
-
export type
|
|
121165
|
+
export type MediaUpdateWorkError = MediaUpdateWorkErrors[keyof MediaUpdateWorkErrors];
|
|
121166
|
+
export type MediaUpdateWorkResponses = {
|
|
119720
121167
|
/**
|
|
119721
121168
|
* Successful response.
|
|
119722
121169
|
*/
|
|
119723
|
-
|
|
121170
|
+
200: MediaWork;
|
|
119724
121171
|
};
|
|
119725
|
-
export type
|
|
119726
|
-
export type
|
|
119727
|
-
|
|
119728
|
-
|
|
119729
|
-
*/
|
|
119730
|
-
body: {
|
|
119731
|
-
/**
|
|
119732
|
-
* Text description of the voice to design, 1 to 500 characters. The model makes every preview from it; a description that fails review answers CONTENT_REJECTED.
|
|
119733
|
-
*/
|
|
119734
|
-
description: string;
|
|
119735
|
-
/**
|
|
119736
|
-
* Line each preview speaks, 15 to 200 characters: long enough to hear the voice, short enough for one model call.
|
|
119737
|
-
*/
|
|
119738
|
-
preview_text: string;
|
|
121172
|
+
export type MediaUpdateWorkResponse = MediaUpdateWorkResponses[keyof MediaUpdateWorkResponses];
|
|
121173
|
+
export type MediaListAssetWorksData = {
|
|
121174
|
+
body?: never;
|
|
121175
|
+
path: {
|
|
119739
121176
|
/**
|
|
119740
|
-
*
|
|
121177
|
+
* Library ID returned by creation.
|
|
119741
121178
|
*/
|
|
119742
|
-
|
|
121179
|
+
library_id: string;
|
|
119743
121180
|
/**
|
|
119744
|
-
*
|
|
121181
|
+
* 32-character asset ID.
|
|
119745
121182
|
*/
|
|
119746
|
-
|
|
121183
|
+
asset_id: string;
|
|
119747
121184
|
};
|
|
119748
|
-
|
|
121185
|
+
query?: {
|
|
119749
121186
|
/**
|
|
119750
|
-
*
|
|
121187
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
119751
121188
|
*/
|
|
119752
|
-
|
|
119753
|
-
};
|
|
119754
|
-
path: {
|
|
121189
|
+
limit?: number;
|
|
119755
121190
|
/**
|
|
119756
|
-
*
|
|
121191
|
+
* Cursor from the previous next_cursor.
|
|
119757
121192
|
*/
|
|
119758
|
-
|
|
121193
|
+
cursor?: string;
|
|
119759
121194
|
};
|
|
119760
|
-
|
|
119761
|
-
url: '/media/v1/libraries/{library_id}/voices/designs';
|
|
121195
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/works';
|
|
119762
121196
|
};
|
|
119763
|
-
export type
|
|
121197
|
+
export type MediaListAssetWorksErrors = {
|
|
119764
121198
|
/**
|
|
119765
|
-
*
|
|
121199
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
119766
121200
|
*/
|
|
119767
121201
|
400: MediaMediaError;
|
|
119768
121202
|
/**
|
|
@@ -119770,11 +121204,11 @@ export type MediaDesignVoiceErrors = {
|
|
|
119770
121204
|
*/
|
|
119771
121205
|
402: MediaMediaError;
|
|
119772
121206
|
/**
|
|
119773
|
-
*
|
|
121207
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
119774
121208
|
*/
|
|
119775
121209
|
403: MediaMediaError;
|
|
119776
121210
|
/**
|
|
119777
|
-
*
|
|
121211
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
119778
121212
|
*/
|
|
119779
121213
|
404: MediaMediaError;
|
|
119780
121214
|
/**
|
|
@@ -119782,11 +121216,11 @@ export type MediaDesignVoiceErrors = {
|
|
|
119782
121216
|
*/
|
|
119783
121217
|
409: MediaMediaError;
|
|
119784
121218
|
/**
|
|
119785
|
-
*
|
|
121219
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
119786
121220
|
*/
|
|
119787
121221
|
413: MediaMediaError;
|
|
119788
121222
|
/**
|
|
119789
|
-
*
|
|
121223
|
+
* This media format is unsupported; provide a supported format.
|
|
119790
121224
|
*/
|
|
119791
121225
|
415: MediaMediaError;
|
|
119792
121226
|
/**
|
|
@@ -119794,11 +121228,11 @@ export type MediaDesignVoiceErrors = {
|
|
|
119794
121228
|
*/
|
|
119795
121229
|
422: MediaMediaError;
|
|
119796
121230
|
/**
|
|
119797
|
-
*
|
|
121231
|
+
* A rate limit was reached; wait before retrying.
|
|
119798
121232
|
*/
|
|
119799
121233
|
429: MediaMediaError;
|
|
119800
121234
|
/**
|
|
119801
|
-
*
|
|
121235
|
+
* The requested operation is unsupported; choose a supported method.
|
|
119802
121236
|
*/
|
|
119803
121237
|
501: MediaMediaError;
|
|
119804
121238
|
/**
|
|
@@ -119806,18 +121240,18 @@ export type MediaDesignVoiceErrors = {
|
|
|
119806
121240
|
*/
|
|
119807
121241
|
502: MediaMediaError;
|
|
119808
121242
|
/**
|
|
119809
|
-
*
|
|
121243
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
119810
121244
|
*/
|
|
119811
121245
|
503: MediaMediaError;
|
|
119812
121246
|
};
|
|
119813
|
-
export type
|
|
119814
|
-
export type
|
|
121247
|
+
export type MediaListAssetWorksError = MediaListAssetWorksErrors[keyof MediaListAssetWorksErrors];
|
|
121248
|
+
export type MediaListAssetWorksResponses = {
|
|
119815
121249
|
/**
|
|
119816
121250
|
* Successful response.
|
|
119817
121251
|
*/
|
|
119818
|
-
|
|
121252
|
+
200: MediaWorkPage;
|
|
119819
121253
|
};
|
|
119820
|
-
export type
|
|
121254
|
+
export type MediaListAssetWorksResponse = MediaListAssetWorksResponses[keyof MediaListAssetWorksResponses];
|
|
119821
121255
|
export type OntologyListTypesData = {
|
|
119822
121256
|
body?: never;
|
|
119823
121257
|
path?: never;
|