/
opt
/
canhelp
/
node_modules
/
openai
/
resources
/
/opt/canhelp/node_modules/openai/resources
mkdir
upload
Name
Size
Mode
Actions
audio/
-
0755
rm
beta/
-
0755
rm
chat/
-
0755
rm
containers/
-
0755
rm
conversations/
-
0755
rm
evals/
-
0755
rm
fine-tuning/
-
0755
rm
graders/
-
0755
rm
realtime/
-
0755
rm
responses/
-
0755
rm
skills/
-
0755
rm
uploads/
-
0755
rm
vector-stores/
-
0755
rm
webhooks/
-
0755
rm
audio.d.mts
71
0644
edit
dl
rm
audio.d.mts.map
115
0644
edit
dl
rm
audio.d.ts
69
0644
edit
dl
rm
audio.d.ts.map
114
0644
edit
dl
rm
audio.js
306
0644
edit
dl
rm
audio.js.map
139
0644
edit
dl
rm
audio.mjs
156
0644
edit
dl
rm
audio.mjs.map
124
0644
edit
dl
rm
batches.d.mts
9667
0644
edit
dl
rm
batches.d.mts.map
3499
0644
edit
dl
rm
batches.d.ts
9660
0644
edit
dl
rm
batches.d.ts.map
3498
0644
edit
dl
rm
batches.js
1442
0644
edit
dl
rm
batches.js.map
834
0644
edit
dl
rm
batches.mjs
1269
0644
edit
dl
rm
batches.mjs.map
835
0644
edit
dl
rm
beta.d.mts
69
0644
edit
dl
rm
beta.d.mts.map
113
0644
edit
dl
rm
beta.d.ts
67
0644
edit
dl
rm
beta.d.ts.map
112
0644
edit
dl
rm
beta.js
304
0644
edit
dl
rm
beta.js.map
137
0644
edit
dl
rm
beta.mjs
154
0644
edit
dl
rm
beta.mjs.map
122
0644
edit
dl
rm
chat.d.mts
69
0644
edit
dl
rm
chat.d.mts.map
113
0644
edit
dl
rm
chat.d.ts
67
0644
edit
dl
rm
chat.d.ts.map
112
0644
edit
dl
rm
chat.js
304
0644
edit
dl
rm
chat.js.map
137
0644
edit
dl
rm
chat.mjs
154
0644
edit
dl
rm
chat.mjs.map
122
0644
edit
dl
rm
completions.d.mts
13780
0644
edit
dl
rm
completions.d.mts.map
3829
0644
edit
dl
rm
completions.d.ts
13773
0644
edit
dl
rm
completions.d.ts.map
3828
0644
edit
dl
rm
completions.js
670
0644
edit
dl
rm
completions.js.map
385
0644
edit
dl
rm
completions.mjs
526
0644
edit
dl
rm
completions.mjs.map
382
0644
edit
dl
rm
containers.d.mts
81
0644
edit
dl
rm
containers.d.mts.map
125
0644
edit
dl
rm
containers.d.ts
79
0644
edit
dl
rm
containers.d.ts.map
124
0644
edit
dl
rm
containers.js
316
0644
edit
dl
rm
containers.js.map
149
0644
edit
dl
rm
containers.mjs
166
0644
edit
dl
rm
containers.mjs.map
134
0644
edit
dl
rm
conversations.d.mts
87
0644
edit
dl
rm
conversations.d.mts.map
131
0644
edit
dl
rm
conversations.d.ts
85
0644
edit
dl
rm
conversations.d.ts.map
130
0644
edit
dl
rm
conversations.js
322
0644
edit
dl
rm
conversations.js.map
155
0644
edit
dl
rm
conversations.mjs
172
0644
edit
dl
rm
conversations.mjs.map
140
0644
edit
dl
rm
embeddings.d.mts
4248
0644
edit
dl
rm
embeddings.d.mts.map
1444
0644
edit
dl
rm
embeddings.d.ts
4244
0644
edit
dl
rm
embeddings.d.ts.map
1443
0644
edit
dl
rm
embeddings.js
2610
0644
edit
dl
rm
embeddings.js.map
1264
0644
edit
dl
rm
embeddings.mjs
2448
0644
edit
dl
rm
embeddings.mjs.map
1260
0644
edit
dl
rm
evals.d.mts
71
0644
edit
dl
rm
evals.d.mts.map
115
0644
edit
dl
rm
evals.d.ts
69
0644
edit
dl
rm
evals.d.ts.map
114
0644
edit
dl
rm
evals.js
306
0644
edit
dl
rm
evals.js.map
139
0644
edit
dl
rm
evals.mjs
156
0644
edit
dl
rm
evals.mjs.map
124
0644
edit
dl
rm
files.d.mts
6619
0644
edit
dl
rm
files.d.mts.map
2435
0644
edit
dl
rm
files.d.ts
6613
0644
edit
dl
rm
files.d.ts.map
2434
0644
edit
dl
rm
files.js
3770
0644
edit
dl
rm
files.js.map
1919
0644
edit
dl
rm
files.mjs
3577
0644
edit
dl
rm
files.mjs.map
1934
0644
edit
dl
rm
fine-tuning.d.mts
83
0644
edit
dl
rm
fine-tuning.d.mts.map
127
0644
edit
dl
rm
fine-tuning.d.ts
81
0644
edit
dl
rm
fine-tuning.d.ts.map
126
0644
edit
dl
rm
fine-tuning.js
318
0644
edit
dl
rm
fine-tuning.js.map
151
0644
edit
dl
rm
fine-tuning.mjs
168
0644
edit
dl
rm
fine-tuning.mjs.map
136
0644
edit
dl
rm
graders.d.mts
75
0644
edit
dl
rm
graders.d.mts.map
119
0644
edit
dl
rm
graders.d.ts
73
0644
edit
dl
rm
graders.d.ts.map
118
0644
edit
dl
rm
graders.js
310
0644
edit
dl
rm
graders.js.map
143
0644
edit
dl
rm
graders.mjs
160
0644
edit
dl
rm
graders.mjs.map
128
0644
edit
dl
rm
images.d.mts
26175
0644
edit
dl
rm
images.d.mts.map
8416
0644
edit
dl
rm
images.d.ts
26168
0644
edit
dl
rm
images.d.ts.map
8415
0644
edit
dl
rm
images.js
1280
0644
edit
dl
rm
images.js.map
808
0644
edit
dl
rm
images.mjs
1139
0644
edit
dl
rm
images.mjs.map
804
0644
edit
dl
rm
index.d.mts
3967
0644
edit
dl
rm
index.d.mts.map
2454
0644
edit
dl
rm
index.d.ts
3943
0644
edit
dl
rm
index.d.ts.map
2453
0644
edit
dl
rm
index.js
4210
0644
edit
dl
rm
index.js.map
882
0644
edit
dl
rm
index.mjs
1207
0644
edit
dl
rm
index.mjs.map
557
0644
edit
dl
rm
models.d.mts
1779
0644
edit
dl
rm
models.d.mts.map
995
0644
edit
dl
rm
models.d.ts
1774
0644
edit
dl
rm
models.d.ts.map
994
0644
edit
dl
rm
models.js
1280
0644
edit
dl
rm
models.js.map
645
0644
edit
dl
rm
models.mjs
1104
0644
edit
dl
rm
models.mjs.map
645
0644
edit
dl
rm
moderations.d.mts
10303
0644
edit
dl
rm
moderations.d.mts.map
3527
0644
edit
dl
rm
moderations.d.ts
10299
0644
edit
dl
rm
moderations.d.ts.map
3526
0644
edit
dl
rm
moderations.js
757
0644
edit
dl
rm
moderations.js.map
352
0644
edit
dl
rm
moderations.mjs
613
0644
edit
dl
rm
moderations.mjs.map
351
0644
edit
dl
rm
realtime.d.mts
77
0644
edit
dl
rm
realtime.d.mts.map
121
0644
edit
dl
rm
realtime.d.ts
75
0644
edit
dl
rm
realtime.d.ts.map
120
0644
edit
dl
rm
realtime.js
312
0644
edit
dl
rm
realtime.js.map
145
0644
edit
dl
rm
realtime.mjs
162
0644
edit
dl
rm
realtime.mjs.map
130
0644
edit
dl
rm
responses.d.mts
79
0644
edit
dl
rm
responses.d.mts.map
123
0644
edit
dl
rm
responses.d.ts
77
0644
edit
dl
rm
responses.d.ts.map
122
0644
edit
dl
rm
responses.js
314
0644
edit
dl
rm
responses.js.map
147
0644
edit
dl
rm
responses.mjs
164
0644
edit
dl
rm
responses.mjs.map
132
0644
edit
dl
rm
shared.d.mts
12511
0644
edit
dl
rm
shared.d.mts.map
3990
0644
edit
dl
rm
shared.d.ts
12510
0644
edit
dl
rm
shared.d.ts.map
3989
0644
edit
dl
rm
shared.js
198
0644
edit
dl
rm
shared.js.map
126
0644
edit
dl
rm
shared.mjs
133
0644
edit
dl
rm
shared.mjs.map
126
0644
edit
dl
rm
skills.d.mts
73
0644
edit
dl
rm
skills.d.mts.map
117
0644
edit
dl
rm
skills.d.ts
71
0644
edit
dl
rm
skills.d.ts.map
116
0644
edit
dl
rm
skills.js
308
0644
edit
dl
rm
skills.js.map
141
0644
edit
dl
rm
skills.mjs
158
0644
edit
dl
rm
skills.mjs.map
126
0644
edit
dl
rm
uploads.d.mts
75
0644
edit
dl
rm
uploads.d.mts.map
119
0644
edit
dl
rm
uploads.d.ts
73
0644
edit
dl
rm
uploads.d.ts.map
118
0644
edit
dl
rm
uploads.js
310
0644
edit
dl
rm
uploads.js.map
143
0644
edit
dl
rm
uploads.mjs
160
0644
edit
dl
rm
uploads.mjs.map
128
0644
edit
dl
rm
vector-stores.d.mts
87
0644
edit
dl
rm
vector-stores.d.mts.map
131
0644
edit
dl
rm
vector-stores.d.ts
85
0644
edit
dl
rm
vector-stores.d.ts.map
130
0644
edit
dl
rm
vector-stores.js
322
0644
edit
dl
rm
vector-stores.js.map
155
0644
edit
dl
rm
vector-stores.mjs
172
0644
edit
dl
rm
vector-stores.mjs.map
140
0644
edit
dl
rm
videos.d.mts
9152
0644
edit
dl
rm
videos.d.mts.map
4543
0644
edit
dl
rm
videos.d.ts
9146
0644
edit
dl
rm
videos.d.ts.map
4542
0644
edit
dl
rm
videos.js
3194
0644
edit
dl
rm
videos.js.map
2135
0644
edit
dl
rm
videos.mjs
2965
0644
edit
dl
rm
videos.mjs.map
2123
0644
edit
dl
rm
webhooks.d.mts
77
0644
edit
dl
rm
webhooks.d.mts.map
121
0644
edit
dl
rm
webhooks.d.ts
75
0644
edit
dl
rm
webhooks.d.ts.map
120
0644
edit
dl
rm
webhooks.js
312
0644
edit
dl
rm
webhooks.js.map
145
0644
edit
dl
rm
webhooks.mjs
162
0644
edit
dl
rm
webhooks.mjs.map
130
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/openai/resources/videos.d.mts
(9152B)
import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { ConversationCursorPage, type ConversationCursorPageParams, PagePromise } from "../core/pagination.mjs"; import { type Uploadable } from "../core/uploads.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Videos extends APIResource { /** * Create a new video generation job from a prompt and optional reference assets. */ create(body: VideoCreateParams, options?: RequestOptions): APIPromise<Video>; /** * Fetch the latest metadata for a generated video. */ retrieve(videoID: string, options?: RequestOptions): APIPromise<Video>; /** * List recently generated videos for the current project. */ list(query?: VideoListParams | null | undefined, options?: RequestOptions): PagePromise<VideosPage, Video>; /** * Permanently delete a completed or failed video and its stored assets. */ delete(videoID: string, options?: RequestOptions): APIPromise<VideoDeleteResponse>; /** * Create a character from an uploaded video. */ createCharacter(body: VideoCreateCharacterParams, options?: RequestOptions): APIPromise<VideoCreateCharacterResponse>; /** * Download the generated video bytes or a derived preview asset. * * Streams the rendered video content for the specified video job. */ downloadContent(videoID: string, query?: VideoDownloadContentParams | null | undefined, options?: RequestOptions): APIPromise<Response>; /** * Create a new video generation job by editing a source video or existing * generated video. */ edit(body: VideoEditParams, options?: RequestOptions): APIPromise<Video>; /** * Create an extension of a completed video. */ extend(body: VideoExtendParams, options?: RequestOptions): APIPromise<Video>; /** * Fetch a character. */ getCharacter(characterID: string, options?: RequestOptions): APIPromise<VideoGetCharacterResponse>; /** * Create a remix of a completed video using a refreshed prompt. */ remix(videoID: string, body: VideoRemixParams, options?: RequestOptions): APIPromise<Video>; } export type VideosPage = ConversationCursorPage<Video>; export interface ImageInputReferenceParam { file_id?: string; /** * A fully qualified URL or base64-encoded data URL. */ image_url?: string; } /** * Structured information describing a generated video job. */ export interface Video { /** * Unique identifier for the video job. */ id: string; /** * Unix timestamp (seconds) for when the job completed, if finished. */ completed_at: number | null; /** * Unix timestamp (seconds) for when the job was created. */ created_at: number; /** * Error payload that explains why generation failed, if applicable. */ error: VideoCreateError | null; /** * Unix timestamp (seconds) for when the downloadable assets expire, if set. */ expires_at: number | null; /** * The video generation model that produced the job. */ model: VideoModel; /** * The object type, which is always `video`. */ object: 'video'; /** * Approximate completion percentage for the generation task. */ progress: number; /** * The prompt that was used to generate the video. */ prompt: string | null; /** * Identifier of the source video if this video is a remix. */ remixed_from_video_id: string | null; /** * Duration of the generated clip in seconds. For extensions, this is the stitched * total duration. */ seconds: (string & {}) | VideoSeconds; /** * The resolution of the generated video. */ size: VideoSize; /** * Current lifecycle status of the video job. */ status: 'queued' | 'in_progress' | 'completed' | 'failed'; } /** * An error that occurred while generating the response. */ export interface VideoCreateError { /** * A machine-readable error code that was returned. */ code: string; /** * A human-readable description of the error that was returned. */ message: string; } export type VideoModel = (string & {}) | 'sora-2' | 'sora-2-pro' | 'sora-2-2025-10-06' | 'sora-2-pro-2025-10-06' | 'sora-2-2025-12-08'; export type VideoSeconds = '4' | '8' | '12'; export type VideoSize = '720x1280' | '1280x720' | '1024x1792' | '1792x1024'; /** * Confirmation payload returned after deleting a video. */ export interface VideoDeleteResponse { /** * Identifier of the deleted video. */ id: string; /** * Indicates that the video resource was deleted. */ deleted: boolean; /** * The object type that signals the deletion response. */ object: 'video.deleted'; } export interface VideoCreateCharacterResponse { /** * Identifier for the character creation cameo. */ id: string | null; /** * Unix timestamp (in seconds) when the character was created. */ created_at: number; /** * Display name for the character. */ name: string | null; } export interface VideoGetCharacterResponse { /** * Identifier for the character creation cameo. */ id: string | null; /** * Unix timestamp (in seconds) when the character was created. */ created_at: number; /** * Display name for the character. */ name: string | null; } export interface VideoCreateParams { /** * Text prompt that describes the video to generate. */ prompt: string; /** * Optional reference asset upload or reference object that guides generation. */ input_reference?: Uploadable | ImageInputReferenceParam; /** * The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults * to `sora-2`. */ model?: VideoModel; /** * Clip duration in seconds (allowed values: 4, 8, 12). Defaults to 4 seconds. */ seconds?: VideoSeconds; /** * Output resolution formatted as width x height (allowed values: 720x1280, * 1280x720, 1024x1792, 1792x1024). Defaults to 720x1280. */ size?: VideoSize; } export interface VideoListParams extends ConversationCursorPageParams { /** * Sort order of results by timestamp. Use `asc` for ascending order or `desc` for * descending order. */ order?: 'asc' | 'desc'; } export interface VideoCreateCharacterParams { /** * Display name for this API character. */ name: string; /** * Video file used to create a character. */ video: Uploadable; } export interface VideoDownloadContentParams { /** * Which downloadable asset to return. Defaults to the MP4 video. */ variant?: 'video' | 'thumbnail' | 'spritesheet'; } export interface VideoEditParams { /** * Text prompt that describes how to edit the source video. */ prompt: string; /** * Reference to the completed video to edit. */ video: Uploadable | VideoEditParams.VideoReferenceInputParam; } export declare namespace VideoEditParams { /** * Reference to the completed video. */ interface VideoReferenceInputParam { /** * The identifier of the completed video. */ id: string; } } export interface VideoExtendParams { /** * Updated text prompt that directs the extension generation. */ prompt: string; /** * Length of the newly generated extension segment in seconds (allowed values: 4, * 8, 12, 16, 20). */ seconds: VideoSeconds; /** * Reference to the completed video to extend. */ video: Uploadable | VideoExtendParams.VideoReferenceInputParam; } export declare namespace VideoExtendParams { /** * Reference to the completed video. */ interface VideoReferenceInputParam { /** * The identifier of the completed video. */ id: string; } } export interface VideoRemixParams { /** * Updated text prompt that directs the remix generation. */ prompt: string; } export declare namespace Videos { export { type ImageInputReferenceParam as ImageInputReferenceParam, type Video as Video, type VideoCreateError as VideoCreateError, type VideoModel as VideoModel, type VideoSeconds as VideoSeconds, type VideoSize as VideoSize, type VideoDeleteResponse as VideoDeleteResponse, type VideoCreateCharacterResponse as VideoCreateCharacterResponse, type VideoGetCharacterResponse as VideoGetCharacterResponse, type VideosPage as VideosPage, type VideoCreateParams as VideoCreateParams, type VideoListParams as VideoListParams, type VideoCreateCharacterParams as VideoCreateCharacterParams, type VideoDownloadContentParams as VideoDownloadContentParams, type VideoEditParams as VideoEditParams, type VideoExtendParams as VideoExtendParams, type VideoRemixParams as VideoRemixParams, }; } //# sourceMappingURL=videos.d.mts.map
Save
cmd:
run