twelvelabs-js 1.2.8 → 1.2.9
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/.fern/replay.lock +7 -1
- package/Client.js +2 -2
- package/api/resources/analyzeAsync/resources/batches/client/Client.js +6 -6
- package/api/resources/analyzeAsync/resources/tasks/client/Client.js +4 -4
- package/api/resources/assets/client/Client.d.ts +7 -3
- package/api/resources/assets/client/Client.js +14 -10
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
- package/api/resources/embed/client/Client.js +1 -1
- package/api/resources/embed/resources/tasks/client/Client.js +4 -4
- package/api/resources/embed/resources/v2/client/Client.js +1 -1
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +2 -6
- package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +5 -9
- package/api/resources/entityCollections/client/Client.js +5 -5
- package/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
- package/api/resources/indexes/client/Client.js +5 -5
- package/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
- package/api/resources/indexes/resources/videos/client/Client.js +4 -4
- package/api/resources/multipartUpload/client/Client.d.ts +2 -2
- package/api/resources/multipartUpload/client/Client.js +7 -7
- package/api/resources/search/client/Client.js +2 -2
- package/api/resources/tasks/client/Client.js +4 -4
- package/api/types/Asset.d.ts +6 -8
- package/api/types/AssetDetail.d.ts +7 -0
- package/api/types/AssetError.d.ts +10 -0
- package/api/types/AssetError.js +5 -0
- package/api/types/AssetStatus.d.ts +6 -4
- package/api/types/AudioStream.d.ts +28 -0
- package/api/types/AudioStream.js +5 -0
- package/api/types/EmbeddingTaskResponse.d.ts +1 -1
- package/api/types/EmbeddingTaskResponseError.d.ts +1 -1
- package/api/types/EmbeddingTaskResponseStatus.d.ts +1 -1
- package/api/types/MultipartUploadStatusType.d.ts +3 -3
- package/api/types/TechnicalMetadata.d.ts +81 -0
- package/api/types/TechnicalMetadata.js +5 -0
- package/api/types/VideoStream.d.ts +44 -0
- package/api/types/VideoStream.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/analyzeAsync/resources/batches/client/Client.js +6 -6
- package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +4 -4
- package/dist/api/resources/assets/client/Client.d.ts +7 -3
- package/dist/api/resources/assets/client/Client.js +14 -10
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
- package/dist/api/resources/embed/client/Client.js +1 -1
- package/dist/api/resources/embed/resources/tasks/client/Client.js +4 -4
- package/dist/api/resources/embed/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +2 -6
- package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +5 -9
- package/dist/api/resources/entityCollections/client/Client.js +5 -5
- package/dist/api/resources/entityCollections/resources/entities/client/Client.js +9 -9
- package/dist/api/resources/indexes/client/Client.js +5 -5
- package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +6 -6
- package/dist/api/resources/indexes/resources/videos/client/Client.js +4 -4
- package/dist/api/resources/multipartUpload/client/Client.d.ts +2 -2
- package/dist/api/resources/multipartUpload/client/Client.js +7 -7
- package/dist/api/resources/search/client/Client.js +2 -2
- package/dist/api/resources/tasks/client/Client.js +4 -4
- package/dist/api/types/Asset.d.ts +6 -8
- package/dist/api/types/AssetDetail.d.ts +7 -0
- package/dist/api/types/AssetError.d.ts +10 -0
- package/dist/api/types/AssetError.js +5 -0
- package/dist/api/types/AssetStatus.d.ts +6 -4
- package/dist/api/types/AudioStream.d.ts +28 -0
- package/dist/api/types/AudioStream.js +5 -0
- package/dist/api/types/EmbeddingTaskResponse.d.ts +1 -1
- package/dist/api/types/EmbeddingTaskResponseError.d.ts +1 -1
- package/dist/api/types/EmbeddingTaskResponseStatus.d.ts +1 -1
- package/dist/api/types/MultipartUploadStatusType.d.ts +3 -3
- package/dist/api/types/TechnicalMetadata.d.ts +81 -0
- package/dist/api/types/TechnicalMetadata.js +5 -0
- package/dist/api/types/VideoStream.d.ts +44 -0
- package/dist/api/types/VideoStream.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/types/Asset.d.ts +0 -2
- package/dist/serialization/types/Asset.js +0 -2
- package/dist/serialization/types/AssetDetail.d.ts +6 -0
- package/dist/serialization/types/AssetDetail.js +6 -0
- package/dist/serialization/types/AssetError.d.ts +12 -0
- package/dist/serialization/types/AssetError.js +43 -0
- package/dist/serialization/types/AudioStream.d.ts +21 -0
- package/dist/serialization/types/AudioStream.js +52 -0
- package/dist/serialization/types/TechnicalMetadata.d.ts +48 -0
- package/dist/serialization/types/TechnicalMetadata.js +79 -0
- package/dist/serialization/types/VideoStream.d.ts +29 -0
- package/dist/serialization/types/VideoStream.js +60 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +48 -87
- package/serialization/types/Asset.d.ts +0 -2
- package/serialization/types/Asset.js +0 -2
- package/serialization/types/AssetDetail.d.ts +6 -0
- package/serialization/types/AssetDetail.js +6 -0
- package/serialization/types/AssetError.d.ts +12 -0
- package/serialization/types/AssetError.js +43 -0
- package/serialization/types/AudioStream.d.ts +21 -0
- package/serialization/types/AudioStream.js +52 -0
- package/serialization/types/TechnicalMetadata.d.ts +48 -0
- package/serialization/types/TechnicalMetadata.js +79 -0
- package/serialization/types/VideoStream.d.ts +29 -0
- package/serialization/types/VideoStream.js +60 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -15,7 +15,7 @@ export interface EmbeddingTaskResponse {
|
|
|
15
15
|
* **Values**:
|
|
16
16
|
* - `processing`: The platform is creating the embeddings
|
|
17
17
|
* - `ready`: Processing is complete. Embeddings are available in the `data` field
|
|
18
|
-
* - `failed`: The task failed. The `data` field is `null`
|
|
18
|
+
* - `failed`: The task failed. The `data` field is `null`, and the [`error.message`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.error.message) field contains the reason
|
|
19
19
|
*/
|
|
20
20
|
status: TwelvelabsApi.EmbeddingTaskResponseStatus;
|
|
21
21
|
createdAt?: TwelvelabsApi.CreatedAt;
|
|
@@ -8,8 +8,8 @@ export interface EmbeddingTaskResponseError {
|
|
|
8
8
|
/**
|
|
9
9
|
* A human-readable message that describes why the task failed. Possible values:
|
|
10
10
|
* - "The embedding service is temporarily unstable. Please try again later."
|
|
11
|
-
* - "We could not process your media for embedding. Please verify the input file and try again."
|
|
12
11
|
* - "The embedding task failed. Please try again later."
|
|
12
|
+
* - "We could not process your media for embedding. Please verify the input file and try again." For the steps to fix the file, see the [How do I fix a file that could not be processed for embedding?](/v1.3/docs/resources/frequently-asked-questions#how-do-i-fix-a-file-that-could-not-be-processed-for-embedding) section on the **Frequently asked questions** page.
|
|
13
13
|
*/
|
|
14
14
|
message: string;
|
|
15
15
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* **Values**:
|
|
9
9
|
* - `processing`: The platform is creating the embeddings
|
|
10
10
|
* - `ready`: Processing is complete. Embeddings are available in the `data` field
|
|
11
|
-
* - `failed`: The task failed. The `data` field is `null`
|
|
11
|
+
* - `failed`: The task failed. The `data` field is `null`, and the [`error.message`](/v1.3/api-reference/create-embeddings-v2/retrieve-embeddings#response.body.error.message) field contains the reason
|
|
12
12
|
*/
|
|
13
13
|
export type EmbeddingTaskResponseStatus = "processing" | "ready" | "failed";
|
|
14
14
|
export declare const EmbeddingTaskResponseStatus: {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The status of your upload session. This field can take one of the following values:
|
|
6
6
|
* - `active`: The upload session is currently in progress. Continue uploading and reporting the completion of each chunk.
|
|
7
|
-
* - `completed`: The
|
|
8
|
-
* - `failed`: The upload session
|
|
9
|
-
* - `expired`: The upload session
|
|
7
|
+
* - `completed`: The platform received the file. The asset is created in the `processing` status and is not yet ready to use. Poll the [Retrieve an asset](/v1.3/api-reference/upload-content/direct-uploads/retrieve) endpoint until the status of the asset is `ready` before you use it.
|
|
8
|
+
* - `failed`: The upload session failed. You must restart with a new session.
|
|
9
|
+
* - `expired`: The upload session expired after 24 hours. You must create a new session.
|
|
10
10
|
*/
|
|
11
11
|
export type MultipartUploadStatusType = "active" | "completed" | "failed" | "expired";
|
|
12
12
|
export declare const MultipartUploadStatusType: {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as TwelvelabsApi from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Technical metadata read from the media file of the asset, covering the container, the individual video and audio streams, image properties, and derived attributes.
|
|
7
|
+
*
|
|
8
|
+
* The platform populates this object asynchronously after the upload completes. It is omitted from the response while the status of the asset is `processing`, and it may be partially populated when the status is `failed`. A field is absent when it does not apply to the media type of the asset, or when the source file did not carry the corresponding information.
|
|
9
|
+
*/
|
|
10
|
+
export interface TechnicalMetadata {
|
|
11
|
+
/** The size of the source media file in bytes. */
|
|
12
|
+
fileSizeBytes?: number;
|
|
13
|
+
/** The MIME type detected for the source media file. */
|
|
14
|
+
fileMimeType?: string;
|
|
15
|
+
/** The container format of the source media file. When a container maps to several format names, the platform reports them as a comma-separated list. */
|
|
16
|
+
fileContainerFormat?: string;
|
|
17
|
+
/** The creation time recorded in the media container, in RFC 3339 format ("YYYY-MM-DDTHH:mm:ssZ"), when present. */
|
|
18
|
+
containerCreationTime?: Date;
|
|
19
|
+
/** The video streams contained in the media file. */
|
|
20
|
+
videoStreams?: TwelvelabsApi.VideoStream[];
|
|
21
|
+
/** The codec of the primary video stream. */
|
|
22
|
+
videoCodec?: string;
|
|
23
|
+
/** The pixel width of the primary video stream. */
|
|
24
|
+
videoWidth?: number;
|
|
25
|
+
/** The pixel height of the primary video stream. */
|
|
26
|
+
videoHeight?: number;
|
|
27
|
+
/** The frame rate of the primary video stream, in frames per second. */
|
|
28
|
+
videoFps?: number;
|
|
29
|
+
/** The duration of the primary video stream, in seconds. */
|
|
30
|
+
videoDurationSeconds?: number;
|
|
31
|
+
/** The bit rate of the primary video stream, in bits per second. */
|
|
32
|
+
videoBitrateBps?: number;
|
|
33
|
+
/** The audio streams contained in the media file. */
|
|
34
|
+
audioStreams?: TwelvelabsApi.AudioStream[];
|
|
35
|
+
/** The codec of the primary audio stream. */
|
|
36
|
+
audioCodec?: string;
|
|
37
|
+
/** The sample rate of the primary audio stream, in hertz. */
|
|
38
|
+
audioSampleRate?: number;
|
|
39
|
+
/** The number of channels in the primary audio stream. */
|
|
40
|
+
audioChannels?: number;
|
|
41
|
+
/** The duration of the primary audio stream, in seconds. */
|
|
42
|
+
audioDurationSeconds?: number;
|
|
43
|
+
/** The starting SMPTE timecode of the media, when present. */
|
|
44
|
+
startTimecode?: string;
|
|
45
|
+
/** The source from which the starting timecode was derived. */
|
|
46
|
+
timecodeSource?: string;
|
|
47
|
+
/** Whether the timecode uses drop-frame numbering. */
|
|
48
|
+
dropFrame?: boolean;
|
|
49
|
+
/** The pixel width of the image. */
|
|
50
|
+
imageWidth?: number;
|
|
51
|
+
/** The pixel height of the image. */
|
|
52
|
+
imageHeight?: number;
|
|
53
|
+
/** The format of the image. */
|
|
54
|
+
imageFormat?: string;
|
|
55
|
+
/** The EXIF orientation value of the image. */
|
|
56
|
+
imageOrientation?: number;
|
|
57
|
+
/** The color space of the image. */
|
|
58
|
+
imageColorSpace?: string;
|
|
59
|
+
/** The bit depth per channel of the image. */
|
|
60
|
+
imageBitDepth?: number;
|
|
61
|
+
/** Whether the media is high dynamic range (HDR). */
|
|
62
|
+
isHdr?: boolean;
|
|
63
|
+
/** Whether the media contains at least one audio stream. */
|
|
64
|
+
hasAudio?: boolean;
|
|
65
|
+
/** Whether the image contains an alpha (transparency) channel. */
|
|
66
|
+
hasAlpha?: boolean;
|
|
67
|
+
/** Whether the image is animated (for example, an animated GIF or WebP). */
|
|
68
|
+
isAnimated?: boolean;
|
|
69
|
+
/** The total number of video streams in the media file. */
|
|
70
|
+
totalVideoStreams?: number;
|
|
71
|
+
/** The total number of audio streams in the media file. */
|
|
72
|
+
totalAudioStreams?: number;
|
|
73
|
+
/** The storage aspect ratio of the video (pixel width divided by pixel height). */
|
|
74
|
+
storageAspectRatio?: number;
|
|
75
|
+
/** The GPS latitude embedded in the source media, in decimal degrees. Present only when the source media carries location metadata. */
|
|
76
|
+
geospatialLatitude?: number;
|
|
77
|
+
/** The GPS longitude embedded in the source media, in decimal degrees. Present only when the source media carries location metadata. */
|
|
78
|
+
geospatialLongitude?: number;
|
|
79
|
+
/** The GPS altitude embedded in the source media, in meters. Present only when the source media carries location metadata. */
|
|
80
|
+
geospatialAltitudeMeters?: number;
|
|
81
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The technical properties of a single video stream within the media file.
|
|
6
|
+
*/
|
|
7
|
+
export interface VideoStream {
|
|
8
|
+
/** The zero-based index of the stream within the media file. */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** The codec of the video stream. */
|
|
11
|
+
codec?: string;
|
|
12
|
+
/** The pixel width of the video stream. */
|
|
13
|
+
width?: number;
|
|
14
|
+
/** The pixel height of the video stream. */
|
|
15
|
+
height?: number;
|
|
16
|
+
/** The nominal frame rate of the video stream, in frames per second. */
|
|
17
|
+
fps?: number;
|
|
18
|
+
/** The average frame rate of the video stream, in frames per second. */
|
|
19
|
+
avgFps?: number;
|
|
20
|
+
/** The duration of the video stream, in seconds. */
|
|
21
|
+
durationSeconds?: number;
|
|
22
|
+
/** The bit rate of the video stream, in bits per second. */
|
|
23
|
+
bitrateBps?: number;
|
|
24
|
+
/** The rotation applied to the video stream, in degrees. */
|
|
25
|
+
rotation?: number;
|
|
26
|
+
/** The pixel (sample) aspect ratio of the video stream. */
|
|
27
|
+
pixelAspectRatio?: string;
|
|
28
|
+
/** The display aspect ratio of the video stream. */
|
|
29
|
+
displayAspectRatio?: string;
|
|
30
|
+
/** The scan type of the video stream (for example, progressive or interlaced). */
|
|
31
|
+
scanType?: string;
|
|
32
|
+
/** The pixel format of the video stream. */
|
|
33
|
+
pixelFormat?: string;
|
|
34
|
+
/** The bit depth per color component of the video stream. */
|
|
35
|
+
bitDepth?: number;
|
|
36
|
+
/** The color range of the video stream. */
|
|
37
|
+
colorRange?: string;
|
|
38
|
+
/** The color transfer characteristics of the video stream. */
|
|
39
|
+
colorTransfer?: string;
|
|
40
|
+
/** The color space of the video stream. */
|
|
41
|
+
colorSpace?: string;
|
|
42
|
+
/** The color primaries of the video stream. */
|
|
43
|
+
colorPrimaries?: string;
|
|
44
|
+
}
|
|
@@ -179,10 +179,14 @@ export * from "./AssetMethod";
|
|
|
179
179
|
export * from "./AssetStatus";
|
|
180
180
|
export * from "./Asset";
|
|
181
181
|
export * from "./AssetDetail";
|
|
182
|
+
export * from "./AssetError";
|
|
182
183
|
export * from "./AssetHlsStatus";
|
|
183
184
|
export * from "./AssetHls";
|
|
184
185
|
export * from "./AssetThumbnailStatus";
|
|
185
186
|
export * from "./AssetThumbnail";
|
|
187
|
+
export * from "./TechnicalMetadata";
|
|
188
|
+
export * from "./VideoStream";
|
|
189
|
+
export * from "./AudioStream";
|
|
186
190
|
export * from "./IndexedAssetSummaryIndex";
|
|
187
191
|
export * from "./IndexedAssetSummary";
|
|
188
192
|
export * from "./CreateAssetUploadResponse";
|
package/dist/api/types/index.js
CHANGED
|
@@ -195,10 +195,14 @@ __exportStar(require("./AssetMethod"), exports);
|
|
|
195
195
|
__exportStar(require("./AssetStatus"), exports);
|
|
196
196
|
__exportStar(require("./Asset"), exports);
|
|
197
197
|
__exportStar(require("./AssetDetail"), exports);
|
|
198
|
+
__exportStar(require("./AssetError"), exports);
|
|
198
199
|
__exportStar(require("./AssetHlsStatus"), exports);
|
|
199
200
|
__exportStar(require("./AssetHls"), exports);
|
|
200
201
|
__exportStar(require("./AssetThumbnailStatus"), exports);
|
|
201
202
|
__exportStar(require("./AssetThumbnail"), exports);
|
|
203
|
+
__exportStar(require("./TechnicalMetadata"), exports);
|
|
204
|
+
__exportStar(require("./VideoStream"), exports);
|
|
205
|
+
__exportStar(require("./AudioStream"), exports);
|
|
202
206
|
__exportStar(require("./IndexedAssetSummaryIndex"), exports);
|
|
203
207
|
__exportStar(require("./IndexedAssetSummary"), exports);
|
|
204
208
|
__exportStar(require("./CreateAssetUploadResponse"), exports);
|
|
@@ -15,8 +15,6 @@ export declare namespace Asset {
|
|
|
15
15
|
status?: AssetStatus.Raw | null;
|
|
16
16
|
filename?: string | null;
|
|
17
17
|
file_type?: string | null;
|
|
18
|
-
size?: number | null;
|
|
19
|
-
duration?: number | null;
|
|
20
18
|
created_at?: string | null;
|
|
21
19
|
user_metadata?: UserMetadata.Raw | null;
|
|
22
20
|
}
|
|
@@ -47,8 +47,6 @@ exports.Asset = core.serialization.object({
|
|
|
47
47
|
status: AssetStatus_1.AssetStatus.optional(),
|
|
48
48
|
filename: core.serialization.string().optional(),
|
|
49
49
|
fileType: core.serialization.property("file_type", core.serialization.string().optional()),
|
|
50
|
-
size: core.serialization.number().optional(),
|
|
51
|
-
duration: core.serialization.number().optional(),
|
|
52
50
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
53
51
|
userMetadata: core.serialization.property("user_metadata", UserMetadata_1.UserMetadata.optional()),
|
|
54
52
|
});
|
|
@@ -6,11 +6,17 @@ import * as TwelvelabsApi from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { AssetHls } from "./AssetHls";
|
|
8
8
|
import { AssetThumbnail } from "./AssetThumbnail";
|
|
9
|
+
import { TechnicalMetadata } from "./TechnicalMetadata";
|
|
10
|
+
import { AssetError } from "./AssetError";
|
|
9
11
|
import { Asset } from "./Asset";
|
|
10
12
|
export declare const AssetDetail: core.serialization.ObjectSchema<serializers.AssetDetail.Raw, TwelvelabsApi.AssetDetail>;
|
|
11
13
|
export declare namespace AssetDetail {
|
|
12
14
|
interface Raw extends Asset.Raw {
|
|
13
15
|
hls?: AssetHls.Raw | null;
|
|
14
16
|
thumbnail?: AssetThumbnail.Raw | null;
|
|
17
|
+
technical_metadata?: TechnicalMetadata.Raw | null;
|
|
18
|
+
size?: number | null;
|
|
19
|
+
duration?: number | null;
|
|
20
|
+
error?: AssetError.Raw | null;
|
|
15
21
|
}
|
|
16
22
|
}
|
|
@@ -40,10 +40,16 @@ exports.AssetDetail = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const AssetHls_1 = require("./AssetHls");
|
|
42
42
|
const AssetThumbnail_1 = require("./AssetThumbnail");
|
|
43
|
+
const TechnicalMetadata_1 = require("./TechnicalMetadata");
|
|
44
|
+
const AssetError_1 = require("./AssetError");
|
|
43
45
|
const Asset_1 = require("./Asset");
|
|
44
46
|
exports.AssetDetail = core.serialization
|
|
45
47
|
.object({
|
|
46
48
|
hls: AssetHls_1.AssetHls.optional(),
|
|
47
49
|
thumbnail: AssetThumbnail_1.AssetThumbnail.optional(),
|
|
50
|
+
technicalMetadata: core.serialization.property("technical_metadata", TechnicalMetadata_1.TechnicalMetadata.optional()),
|
|
51
|
+
size: core.serialization.number().optional(),
|
|
52
|
+
duration: core.serialization.number().optional(),
|
|
53
|
+
error: AssetError_1.AssetError.optional(),
|
|
48
54
|
})
|
|
49
55
|
.extend(Asset_1.Asset);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as TwelvelabsApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const AssetError: core.serialization.ObjectSchema<serializers.AssetError.Raw, TwelvelabsApi.AssetError>;
|
|
8
|
+
export declare namespace AssetError {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AssetError = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.AssetError = core.serialization.object({
|
|
42
|
+
message: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as TwelvelabsApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const AudioStream: core.serialization.ObjectSchema<serializers.AudioStream.Raw, TwelvelabsApi.AudioStream>;
|
|
8
|
+
export declare namespace AudioStream {
|
|
9
|
+
interface Raw {
|
|
10
|
+
index?: number | null;
|
|
11
|
+
codec?: string | null;
|
|
12
|
+
codec_long?: string | null;
|
|
13
|
+
sample_rate?: number | null;
|
|
14
|
+
bit_depth?: number | null;
|
|
15
|
+
channels?: number | null;
|
|
16
|
+
channel_layout?: string | null;
|
|
17
|
+
bitrate_bps?: number | null;
|
|
18
|
+
language?: string | null;
|
|
19
|
+
duration_seconds?: number | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AudioStream = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.AudioStream = core.serialization.object({
|
|
42
|
+
index: core.serialization.number().optional(),
|
|
43
|
+
codec: core.serialization.string().optional(),
|
|
44
|
+
codecLong: core.serialization.property("codec_long", core.serialization.string().optional()),
|
|
45
|
+
sampleRate: core.serialization.property("sample_rate", core.serialization.number().optional()),
|
|
46
|
+
bitDepth: core.serialization.property("bit_depth", core.serialization.number().optional()),
|
|
47
|
+
channels: core.serialization.number().optional(),
|
|
48
|
+
channelLayout: core.serialization.property("channel_layout", core.serialization.string().optional()),
|
|
49
|
+
bitrateBps: core.serialization.property("bitrate_bps", core.serialization.number().optional()),
|
|
50
|
+
language: core.serialization.string().optional(),
|
|
51
|
+
durationSeconds: core.serialization.property("duration_seconds", core.serialization.number().optional()),
|
|
52
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as TwelvelabsApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VideoStream } from "./VideoStream";
|
|
8
|
+
import { AudioStream } from "./AudioStream";
|
|
9
|
+
export declare const TechnicalMetadata: core.serialization.ObjectSchema<serializers.TechnicalMetadata.Raw, TwelvelabsApi.TechnicalMetadata>;
|
|
10
|
+
export declare namespace TechnicalMetadata {
|
|
11
|
+
interface Raw {
|
|
12
|
+
file_size_bytes?: number | null;
|
|
13
|
+
file_mime_type?: string | null;
|
|
14
|
+
file_container_format?: string | null;
|
|
15
|
+
container_creation_time?: string | null;
|
|
16
|
+
video_streams?: VideoStream.Raw[] | null;
|
|
17
|
+
video_codec?: string | null;
|
|
18
|
+
video_width?: number | null;
|
|
19
|
+
video_height?: number | null;
|
|
20
|
+
video_fps?: number | null;
|
|
21
|
+
video_duration_seconds?: number | null;
|
|
22
|
+
video_bitrate_bps?: number | null;
|
|
23
|
+
audio_streams?: AudioStream.Raw[] | null;
|
|
24
|
+
audio_codec?: string | null;
|
|
25
|
+
audio_sample_rate?: number | null;
|
|
26
|
+
audio_channels?: number | null;
|
|
27
|
+
audio_duration_seconds?: number | null;
|
|
28
|
+
start_timecode?: string | null;
|
|
29
|
+
timecode_source?: string | null;
|
|
30
|
+
drop_frame?: boolean | null;
|
|
31
|
+
image_width?: number | null;
|
|
32
|
+
image_height?: number | null;
|
|
33
|
+
image_format?: string | null;
|
|
34
|
+
image_orientation?: number | null;
|
|
35
|
+
image_color_space?: string | null;
|
|
36
|
+
image_bit_depth?: number | null;
|
|
37
|
+
is_hdr?: boolean | null;
|
|
38
|
+
has_audio?: boolean | null;
|
|
39
|
+
has_alpha?: boolean | null;
|
|
40
|
+
is_animated?: boolean | null;
|
|
41
|
+
total_video_streams?: number | null;
|
|
42
|
+
total_audio_streams?: number | null;
|
|
43
|
+
storage_aspect_ratio?: number | null;
|
|
44
|
+
geospatial_latitude?: number | null;
|
|
45
|
+
geospatial_longitude?: number | null;
|
|
46
|
+
geospatial_altitude_meters?: number | null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.TechnicalMetadata = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const VideoStream_1 = require("./VideoStream");
|
|
42
|
+
const AudioStream_1 = require("./AudioStream");
|
|
43
|
+
exports.TechnicalMetadata = core.serialization.object({
|
|
44
|
+
fileSizeBytes: core.serialization.property("file_size_bytes", core.serialization.number().optional()),
|
|
45
|
+
fileMimeType: core.serialization.property("file_mime_type", core.serialization.string().optional()),
|
|
46
|
+
fileContainerFormat: core.serialization.property("file_container_format", core.serialization.string().optional()),
|
|
47
|
+
containerCreationTime: core.serialization.property("container_creation_time", core.serialization.date().optional()),
|
|
48
|
+
videoStreams: core.serialization.property("video_streams", core.serialization.list(VideoStream_1.VideoStream).optional()),
|
|
49
|
+
videoCodec: core.serialization.property("video_codec", core.serialization.string().optional()),
|
|
50
|
+
videoWidth: core.serialization.property("video_width", core.serialization.number().optional()),
|
|
51
|
+
videoHeight: core.serialization.property("video_height", core.serialization.number().optional()),
|
|
52
|
+
videoFps: core.serialization.property("video_fps", core.serialization.number().optional()),
|
|
53
|
+
videoDurationSeconds: core.serialization.property("video_duration_seconds", core.serialization.number().optional()),
|
|
54
|
+
videoBitrateBps: core.serialization.property("video_bitrate_bps", core.serialization.number().optional()),
|
|
55
|
+
audioStreams: core.serialization.property("audio_streams", core.serialization.list(AudioStream_1.AudioStream).optional()),
|
|
56
|
+
audioCodec: core.serialization.property("audio_codec", core.serialization.string().optional()),
|
|
57
|
+
audioSampleRate: core.serialization.property("audio_sample_rate", core.serialization.number().optional()),
|
|
58
|
+
audioChannels: core.serialization.property("audio_channels", core.serialization.number().optional()),
|
|
59
|
+
audioDurationSeconds: core.serialization.property("audio_duration_seconds", core.serialization.number().optional()),
|
|
60
|
+
startTimecode: core.serialization.property("start_timecode", core.serialization.string().optional()),
|
|
61
|
+
timecodeSource: core.serialization.property("timecode_source", core.serialization.string().optional()),
|
|
62
|
+
dropFrame: core.serialization.property("drop_frame", core.serialization.boolean().optional()),
|
|
63
|
+
imageWidth: core.serialization.property("image_width", core.serialization.number().optional()),
|
|
64
|
+
imageHeight: core.serialization.property("image_height", core.serialization.number().optional()),
|
|
65
|
+
imageFormat: core.serialization.property("image_format", core.serialization.string().optional()),
|
|
66
|
+
imageOrientation: core.serialization.property("image_orientation", core.serialization.number().optional()),
|
|
67
|
+
imageColorSpace: core.serialization.property("image_color_space", core.serialization.string().optional()),
|
|
68
|
+
imageBitDepth: core.serialization.property("image_bit_depth", core.serialization.number().optional()),
|
|
69
|
+
isHdr: core.serialization.property("is_hdr", core.serialization.boolean().optional()),
|
|
70
|
+
hasAudio: core.serialization.property("has_audio", core.serialization.boolean().optional()),
|
|
71
|
+
hasAlpha: core.serialization.property("has_alpha", core.serialization.boolean().optional()),
|
|
72
|
+
isAnimated: core.serialization.property("is_animated", core.serialization.boolean().optional()),
|
|
73
|
+
totalVideoStreams: core.serialization.property("total_video_streams", core.serialization.number().optional()),
|
|
74
|
+
totalAudioStreams: core.serialization.property("total_audio_streams", core.serialization.number().optional()),
|
|
75
|
+
storageAspectRatio: core.serialization.property("storage_aspect_ratio", core.serialization.number().optional()),
|
|
76
|
+
geospatialLatitude: core.serialization.property("geospatial_latitude", core.serialization.number().optional()),
|
|
77
|
+
geospatialLongitude: core.serialization.property("geospatial_longitude", core.serialization.number().optional()),
|
|
78
|
+
geospatialAltitudeMeters: core.serialization.property("geospatial_altitude_meters", core.serialization.number().optional()),
|
|
79
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as TwelvelabsApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const VideoStream: core.serialization.ObjectSchema<serializers.VideoStream.Raw, TwelvelabsApi.VideoStream>;
|
|
8
|
+
export declare namespace VideoStream {
|
|
9
|
+
interface Raw {
|
|
10
|
+
index?: number | null;
|
|
11
|
+
codec?: string | null;
|
|
12
|
+
width?: number | null;
|
|
13
|
+
height?: number | null;
|
|
14
|
+
fps?: number | null;
|
|
15
|
+
avg_fps?: number | null;
|
|
16
|
+
duration_seconds?: number | null;
|
|
17
|
+
bitrate_bps?: number | null;
|
|
18
|
+
rotation?: number | null;
|
|
19
|
+
pixel_aspect_ratio?: string | null;
|
|
20
|
+
display_aspect_ratio?: string | null;
|
|
21
|
+
scan_type?: string | null;
|
|
22
|
+
pixel_format?: string | null;
|
|
23
|
+
bit_depth?: number | null;
|
|
24
|
+
color_range?: string | null;
|
|
25
|
+
color_transfer?: string | null;
|
|
26
|
+
color_space?: string | null;
|
|
27
|
+
color_primaries?: string | null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VideoStream = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.VideoStream = core.serialization.object({
|
|
42
|
+
index: core.serialization.number().optional(),
|
|
43
|
+
codec: core.serialization.string().optional(),
|
|
44
|
+
width: core.serialization.number().optional(),
|
|
45
|
+
height: core.serialization.number().optional(),
|
|
46
|
+
fps: core.serialization.number().optional(),
|
|
47
|
+
avgFps: core.serialization.property("avg_fps", core.serialization.number().optional()),
|
|
48
|
+
durationSeconds: core.serialization.property("duration_seconds", core.serialization.number().optional()),
|
|
49
|
+
bitrateBps: core.serialization.property("bitrate_bps", core.serialization.number().optional()),
|
|
50
|
+
rotation: core.serialization.number().optional(),
|
|
51
|
+
pixelAspectRatio: core.serialization.property("pixel_aspect_ratio", core.serialization.string().optional()),
|
|
52
|
+
displayAspectRatio: core.serialization.property("display_aspect_ratio", core.serialization.string().optional()),
|
|
53
|
+
scanType: core.serialization.property("scan_type", core.serialization.string().optional()),
|
|
54
|
+
pixelFormat: core.serialization.property("pixel_format", core.serialization.string().optional()),
|
|
55
|
+
bitDepth: core.serialization.property("bit_depth", core.serialization.number().optional()),
|
|
56
|
+
colorRange: core.serialization.property("color_range", core.serialization.string().optional()),
|
|
57
|
+
colorTransfer: core.serialization.property("color_transfer", core.serialization.string().optional()),
|
|
58
|
+
colorSpace: core.serialization.property("color_space", core.serialization.string().optional()),
|
|
59
|
+
colorPrimaries: core.serialization.property("color_primaries", core.serialization.string().optional()),
|
|
60
|
+
});
|
|
@@ -179,10 +179,14 @@ export * from "./AssetMethod";
|
|
|
179
179
|
export * from "./AssetStatus";
|
|
180
180
|
export * from "./Asset";
|
|
181
181
|
export * from "./AssetDetail";
|
|
182
|
+
export * from "./AssetError";
|
|
182
183
|
export * from "./AssetHlsStatus";
|
|
183
184
|
export * from "./AssetHls";
|
|
184
185
|
export * from "./AssetThumbnailStatus";
|
|
185
186
|
export * from "./AssetThumbnail";
|
|
187
|
+
export * from "./TechnicalMetadata";
|
|
188
|
+
export * from "./VideoStream";
|
|
189
|
+
export * from "./AudioStream";
|
|
186
190
|
export * from "./IndexedAssetSummaryIndex";
|
|
187
191
|
export * from "./IndexedAssetSummary";
|
|
188
192
|
export * from "./CreateAssetUploadResponse";
|