@soga/types 0.0.29 → 0.0.31

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- - StageType -> UploadFileStage
2
- - UploadItem -> UploadFileItem
3
- - UploadControlData -> UploadControlConfig
1
+ - StageType -> UploadFileStage
2
+ - UploadItem -> UploadFileItem
3
+ - UploadControlData -> UploadControlConfig
package/dist/record.d.ts CHANGED
@@ -44,6 +44,17 @@ export type ManifestThumbnailInfo = {
44
44
  start: number;
45
45
  width: number;
46
46
  };
47
+ export type ManifestThumbnailItem = {
48
+ e: number;
49
+ et: number;
50
+ file: string;
51
+ h: number;
52
+ s: number;
53
+ st: number;
54
+ w: number;
55
+ x: number;
56
+ y: number;
57
+ };
47
58
  export type ManifestVideoItem = {
48
59
  average_band: number;
49
60
  band: number;
@@ -100,6 +111,24 @@ export type ManifestMetaInfo = {
100
111
  hostsize: number;
101
112
  mtime: number;
102
113
  };
114
+ export type SubtitleType = 'srt' | 'vtt' | 'ass';
115
+ export type ManifestTextItem = {
116
+ builtin: boolean;
117
+ end: number;
118
+ file: string;
119
+ lang: string;
120
+ size: number;
121
+ source?: {
122
+ end: number;
123
+ file: string;
124
+ size: number;
125
+ type: SubtitleType;
126
+ start: number;
127
+ };
128
+ start: number;
129
+ title: string;
130
+ type: SubtitleType;
131
+ };
103
132
  export type Manifest = {
104
133
  ali: {
105
134
  host_id: number;
@@ -122,6 +151,7 @@ export type Manifest = {
122
151
  audios: ManifestAudioItem[];
123
152
  cover: ManifestCoverInfo;
124
153
  parts: ManifestPartItem[];
154
+ texts: ManifestTextItem[];
125
155
  thumbnail: ManifestThumbnailInfo;
126
156
  video_meta: ManifestVideoMetaInfo;
127
157
  videos: ManifestVideoItem[];
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@soga/types",
3
- "version": "0.0.29",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "description": "",
8
- "main": "dist/main.js",
9
- "types": "dist/main.d.ts",
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "build": "rimraf dist && tsc",
15
- "dev": "tsc --watch",
16
- "lint": "eslint . --ext .ts",
17
- "prepublishOnly": "npm run build"
18
- },
19
- "devDependencies": {
20
- "@types/node": "^22.5.1",
21
- "@typescript-eslint/eslint-plugin": "^8.3.0",
22
- "@typescript-eslint/parser": "^8.3.0",
23
- "eslint": "^9.9.1",
24
- "eslint-config-prettier": "^9.1.0",
25
- "eslint-plugin-prettier": "^5.2.1",
26
- "prettier": "^3.3.3",
27
- "rimraf": "^6.0.1",
28
- "ts-node": "^10.9.2",
29
- "typescript": "^5.5.4"
30
- },
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/dpan-com/types.git"
34
- },
35
- "keywords": [],
36
- "author": "",
37
- "license": "ISC",
38
- "bugs": {
39
- "url": "https://github.com/dpan-com/types/issues"
40
- },
41
- "homepage": "https://github.com/dpan-com/types#readme"
42
- }
1
+ {
2
+ "name": "@soga/types",
3
+ "version": "0.0.31",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "",
8
+ "main": "dist/main.js",
9
+ "types": "dist/main.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "rimraf dist && tsc",
15
+ "dev": "tsc --watch",
16
+ "lint": "eslint . --ext .ts",
17
+ "prepublishOnly": "npm run build"
18
+ },
19
+ "devDependencies": {
20
+ "@types/node": "^22.5.1",
21
+ "@typescript-eslint/eslint-plugin": "^8.3.0",
22
+ "@typescript-eslint/parser": "^8.3.0",
23
+ "eslint": "^9.9.1",
24
+ "eslint-config-prettier": "^9.1.0",
25
+ "eslint-plugin-prettier": "^5.2.1",
26
+ "prettier": "^3.3.3",
27
+ "rimraf": "^6.0.1",
28
+ "ts-node": "^10.9.2",
29
+ "typescript": "^5.5.4"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/dpan-com/types.git"
34
+ },
35
+ "keywords": [],
36
+ "author": "",
37
+ "license": "ISC",
38
+ "bugs": {
39
+ "url": "https://github.com/dpan-com/types/issues"
40
+ },
41
+ "homepage": "https://github.com/dpan-com/types#readme"
42
+ }