yt-transcript-strapi-plugin 0.0.13 → 0.0.15
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 +34 -3
- package/package.json +21 -8
- package/dist/_chunks/App-DKY3upWd.js +0 -23
- package/dist/_chunks/App-DKY3upWd.js.map +0 -1
- package/dist/_chunks/App-DXPFDMBH.mjs +0 -23
- package/dist/_chunks/App-DXPFDMBH.mjs.map +0 -1
- package/dist/_chunks/en-B4KWt_jN.js +0 -5
- package/dist/_chunks/en-B4KWt_jN.js.map +0 -1
- package/dist/_chunks/en-Byx4XI2L.mjs +0 -5
- package/dist/_chunks/en-Byx4XI2L.mjs.map +0 -1
- package/dist/_chunks/index-Cf76FLRe.mjs +0 -75
- package/dist/_chunks/index-Cf76FLRe.mjs.map +0 -1
- package/dist/_chunks/index-CpWYZFmv.js +0 -74
- package/dist/_chunks/index-CpWYZFmv.js.map +0 -1
- package/dist/admin/index.js +0 -4
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs +0 -5
- package/dist/admin/index.mjs.map +0 -1
- package/dist/admin/src/components/Initializer.d.ts +0 -5
- package/dist/admin/src/components/PluginIcon.d.ts +0 -2
- package/dist/admin/src/index.d.ts +0 -11
- package/dist/admin/src/pages/App.d.ts +0 -2
- package/dist/admin/src/pages/HomePage.d.ts +0 -2
- package/dist/admin/src/pluginId.d.ts +0 -1
- package/dist/admin/src/utils/getTranslation.d.ts +0 -2
- package/dist/server/index.js +0 -294
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs +0 -273
- package/dist/server/index.mjs.map +0 -1
- package/dist/server/src/bootstrap.d.ts +0 -5
- package/dist/server/src/config/index.d.ts +0 -5
- package/dist/server/src/content-types/index.d.ts +0 -42
- package/dist/server/src/content-types/transcript/index.d.ts +0 -40
- package/dist/server/src/controllers/controller.d.ts +0 -13
- package/dist/server/src/controllers/index.d.ts +0 -14
- package/dist/server/src/destroy.d.ts +0 -5
- package/dist/server/src/index.d.ts +0 -109
- package/dist/server/src/middlewares/index.d.ts +0 -2
- package/dist/server/src/policies/index.d.ts +0 -2
- package/dist/server/src/register.d.ts +0 -5
- package/dist/server/src/routes/admin.d.ts +0 -9
- package/dist/server/src/routes/content-api.d.ts +0 -9
- package/dist/server/src/routes/index.d.ts +0 -25
- package/dist/server/src/services/index.d.ts +0 -14
- package/dist/server/src/services/service.d.ts +0 -14
- package/dist/server/src/utils/extract-youtube-id.d.ts +0 -1
- package/dist/server/src/utils/fetch-transcript.d.ts +0 -13
- package/dist/server/src/utils/openai.d.ts +0 -9
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
transcript: {
|
|
3
|
-
schema: {
|
|
4
|
-
kind: string;
|
|
5
|
-
collectionName: string;
|
|
6
|
-
info: {
|
|
7
|
-
singularName: string;
|
|
8
|
-
pluralName: string;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
options: {
|
|
12
|
-
draftAndPublish: boolean;
|
|
13
|
-
};
|
|
14
|
-
pluginOptions: {
|
|
15
|
-
"content-manager": {
|
|
16
|
-
visible: boolean;
|
|
17
|
-
};
|
|
18
|
-
"content-type-builder": {
|
|
19
|
-
visible: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
attributes: {
|
|
23
|
-
title: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
videoId: {
|
|
27
|
-
type: string;
|
|
28
|
-
};
|
|
29
|
-
fullTranscript: {
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
transcriptWithTimeCodes: {
|
|
33
|
-
type: string;
|
|
34
|
-
};
|
|
35
|
-
readableTranscript: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
schema: {
|
|
3
|
-
kind: string;
|
|
4
|
-
collectionName: string;
|
|
5
|
-
info: {
|
|
6
|
-
singularName: string;
|
|
7
|
-
pluralName: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
options: {
|
|
11
|
-
draftAndPublish: boolean;
|
|
12
|
-
};
|
|
13
|
-
pluginOptions: {
|
|
14
|
-
"content-manager": {
|
|
15
|
-
visible: boolean;
|
|
16
|
-
};
|
|
17
|
-
"content-type-builder": {
|
|
18
|
-
visible: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
attributes: {
|
|
22
|
-
title: {
|
|
23
|
-
type: string;
|
|
24
|
-
};
|
|
25
|
-
videoId: {
|
|
26
|
-
type: string;
|
|
27
|
-
};
|
|
28
|
-
fullTranscript: {
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
transcriptWithTimeCodes: {
|
|
32
|
-
type: string;
|
|
33
|
-
};
|
|
34
|
-
readableTranscript: {
|
|
35
|
-
type: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Core } from '@strapi/strapi';
|
|
2
|
-
declare const controller: ({ strapi }: {
|
|
3
|
-
strapi: Core.Strapi;
|
|
4
|
-
}) => {
|
|
5
|
-
getTranscript(ctx: any): Promise<{
|
|
6
|
-
error: string;
|
|
7
|
-
data: any;
|
|
8
|
-
} | {
|
|
9
|
-
data: any;
|
|
10
|
-
error?: undefined;
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
export default controller;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
controller: ({ strapi }: {
|
|
3
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
-
}) => {
|
|
5
|
-
getTranscript(ctx: any): Promise<{
|
|
6
|
-
error: string;
|
|
7
|
-
data: any;
|
|
8
|
-
} | {
|
|
9
|
-
data: any;
|
|
10
|
-
error?: undefined;
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
register: ({ strapi }: {
|
|
3
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
-
}) => void;
|
|
5
|
-
bootstrap: ({ strapi }: {
|
|
6
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
7
|
-
}) => void;
|
|
8
|
-
destroy: ({ strapi }: {
|
|
9
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
10
|
-
}) => void;
|
|
11
|
-
config: {
|
|
12
|
-
default: {};
|
|
13
|
-
validator(): void;
|
|
14
|
-
};
|
|
15
|
-
controllers: {
|
|
16
|
-
controller: ({ strapi }: {
|
|
17
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
18
|
-
}) => {
|
|
19
|
-
getTranscript(ctx: any): Promise<{
|
|
20
|
-
error: string;
|
|
21
|
-
data: any;
|
|
22
|
-
} | {
|
|
23
|
-
data: any;
|
|
24
|
-
error?: undefined;
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
routes: {
|
|
29
|
-
"content-api": {
|
|
30
|
-
type: string;
|
|
31
|
-
routes: {
|
|
32
|
-
method: string;
|
|
33
|
-
path: string;
|
|
34
|
-
handler: string;
|
|
35
|
-
config: {
|
|
36
|
-
policies: any[];
|
|
37
|
-
};
|
|
38
|
-
}[];
|
|
39
|
-
};
|
|
40
|
-
admin: {
|
|
41
|
-
type: string;
|
|
42
|
-
routes: {
|
|
43
|
-
method: string;
|
|
44
|
-
path: string;
|
|
45
|
-
handler: string;
|
|
46
|
-
config: {
|
|
47
|
-
policies: any[];
|
|
48
|
-
};
|
|
49
|
-
}[];
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
services: {
|
|
53
|
-
service: ({ strapi }: {
|
|
54
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
55
|
-
}) => {
|
|
56
|
-
getTranscript(identifier: string): Promise<import("./utils/fetch-transcript").TranscriptData | {
|
|
57
|
-
error: string;
|
|
58
|
-
data: any;
|
|
59
|
-
}>;
|
|
60
|
-
saveTranscript(payload: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
61
|
-
findTranscript(videoId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
62
|
-
generateHumanReadableTranscript(transcript: any): Promise<string>;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
contentTypes: {
|
|
66
|
-
transcript: {
|
|
67
|
-
schema: {
|
|
68
|
-
kind: string;
|
|
69
|
-
collectionName: string;
|
|
70
|
-
info: {
|
|
71
|
-
singularName: string;
|
|
72
|
-
pluralName: string;
|
|
73
|
-
displayName: string;
|
|
74
|
-
};
|
|
75
|
-
options: {
|
|
76
|
-
draftAndPublish: boolean;
|
|
77
|
-
};
|
|
78
|
-
pluginOptions: {
|
|
79
|
-
"content-manager": {
|
|
80
|
-
visible: boolean;
|
|
81
|
-
};
|
|
82
|
-
"content-type-builder": {
|
|
83
|
-
visible: boolean;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
attributes: {
|
|
87
|
-
title: {
|
|
88
|
-
type: string;
|
|
89
|
-
};
|
|
90
|
-
videoId: {
|
|
91
|
-
type: string;
|
|
92
|
-
};
|
|
93
|
-
fullTranscript: {
|
|
94
|
-
type: string;
|
|
95
|
-
};
|
|
96
|
-
transcriptWithTimeCodes: {
|
|
97
|
-
type: string;
|
|
98
|
-
};
|
|
99
|
-
readableTranscript: {
|
|
100
|
-
type: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
policies: {};
|
|
107
|
-
middlewares: {};
|
|
108
|
-
};
|
|
109
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"content-api": {
|
|
3
|
-
type: string;
|
|
4
|
-
routes: {
|
|
5
|
-
method: string;
|
|
6
|
-
path: string;
|
|
7
|
-
handler: string;
|
|
8
|
-
config: {
|
|
9
|
-
policies: any[];
|
|
10
|
-
};
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
admin: {
|
|
14
|
-
type: string;
|
|
15
|
-
routes: {
|
|
16
|
-
method: string;
|
|
17
|
-
path: string;
|
|
18
|
-
handler: string;
|
|
19
|
-
config: {
|
|
20
|
-
policies: any[];
|
|
21
|
-
};
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
service: ({ strapi }: {
|
|
3
|
-
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
-
}) => {
|
|
5
|
-
getTranscript(identifier: string): Promise<import("../utils/fetch-transcript").TranscriptData | {
|
|
6
|
-
error: string;
|
|
7
|
-
data: any;
|
|
8
|
-
}>;
|
|
9
|
-
saveTranscript(payload: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
10
|
-
findTranscript(videoId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
11
|
-
generateHumanReadableTranscript(transcript: any): Promise<string>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Core } from '@strapi/strapi';
|
|
2
|
-
export declare function generateModifiedTranscript(rawTranscript: string): Promise<string>;
|
|
3
|
-
declare const service: ({ strapi }: {
|
|
4
|
-
strapi: Core.Strapi;
|
|
5
|
-
}) => {
|
|
6
|
-
getTranscript(identifier: string): Promise<import("../utils/fetch-transcript").TranscriptData | {
|
|
7
|
-
error: string;
|
|
8
|
-
data: any;
|
|
9
|
-
}>;
|
|
10
|
-
saveTranscript(payload: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
11
|
-
findTranscript(videoId: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
|
|
12
|
-
generateHumanReadableTranscript(transcript: any): Promise<string>;
|
|
13
|
-
};
|
|
14
|
-
export default service;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function extractYouTubeID(urlOrID: string): string | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface TranscriptSegment {
|
|
2
|
-
text: string;
|
|
3
|
-
start: number;
|
|
4
|
-
end: number;
|
|
5
|
-
duration: number;
|
|
6
|
-
}
|
|
7
|
-
export interface TranscriptData {
|
|
8
|
-
videoId: string;
|
|
9
|
-
fullTranscript: string;
|
|
10
|
-
transcriptWithTimeCodes: TranscriptSegment[];
|
|
11
|
-
}
|
|
12
|
-
declare const fetchTranscript: (videoId: string) => Promise<TranscriptData>;
|
|
13
|
-
export default fetchTranscript;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChatOpenAI } from "@langchain/openai";
|
|
2
|
-
interface InitializeModelProps {
|
|
3
|
-
openAIApiKey: string;
|
|
4
|
-
model: string;
|
|
5
|
-
temp: number;
|
|
6
|
-
maxTokens?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function initializeModel({ openAIApiKey, model, temp, }: InitializeModelProps): Promise<ChatOpenAI<import("@langchain/openai").ChatOpenAICallOptions>>;
|
|
9
|
-
export {};
|