@dxos/plugin-youtube 0.8.3
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/LICENSE +21 -0
- package/dist/lib/browser/ChannelArticle-CDQR4BBY.mjs +90 -0
- package/dist/lib/browser/ChannelArticle-CDQR4BBY.mjs.map +7 -0
- package/dist/lib/browser/ChannelSettings-ZYUNW3VS.mjs +28 -0
- package/dist/lib/browser/ChannelSettings-ZYUNW3VS.mjs.map +7 -0
- package/dist/lib/browser/VideoArticle-FC4A6E7B.mjs +76 -0
- package/dist/lib/browser/VideoArticle-FC4A6E7B.mjs.map +7 -0
- package/dist/lib/browser/VideoCard-CCPXDCB7.mjs +64 -0
- package/dist/lib/browser/VideoCard-CCPXDCB7.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-MJY6A6SN.mjs +195 -0
- package/dist/lib/browser/app-graph-builder-MJY6A6SN.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-FRYUYJ22.mjs +22 -0
- package/dist/lib/browser/blueprint-definition-FRYUYJ22.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +13 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-C26XKDK2.mjs +355 -0
- package/dist/lib/browser/chunk-C26XKDK2.mjs.map +7 -0
- package/dist/lib/browser/chunk-DFRSBBSO.mjs +21 -0
- package/dist/lib/browser/chunk-DFRSBBSO.mjs.map +7 -0
- package/dist/lib/browser/chunk-GFRR4TTX.mjs +72 -0
- package/dist/lib/browser/chunk-GFRR4TTX.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-MUE22YUM.mjs +57 -0
- package/dist/lib/browser/chunk-MUE22YUM.mjs.map +7 -0
- package/dist/lib/browser/chunk-P67QEKBQ.mjs +72 -0
- package/dist/lib/browser/chunk-P67QEKBQ.mjs.map +7 -0
- package/dist/lib/browser/chunk-YMDT37TA.mjs +62 -0
- package/dist/lib/browser/chunk-YMDT37TA.mjs.map +7 -0
- package/dist/lib/browser/chunk-Z3DGTMKC.mjs +8 -0
- package/dist/lib/browser/chunk-Z3DGTMKC.mjs.map +7 -0
- package/dist/lib/browser/clear-synced-videos-EVMJIZPD.mjs +66 -0
- package/dist/lib/browser/clear-synced-videos-EVMJIZPD.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +153 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/browser/react-surface-EDA5VYDC.mjs +77 -0
- package/dist/lib/browser/react-surface-EDA5VYDC.mjs.map +7 -0
- package/dist/lib/browser/sync-423Q4BDD.mjs +360 -0
- package/dist/lib/browser/sync-423Q4BDD.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +14 -0
- package/dist/lib/browser/types/index.mjs.map +7 -0
- package/dist/lib/node-esm/ChannelArticle-GQ64BO7V.mjs +91 -0
- package/dist/lib/node-esm/ChannelArticle-GQ64BO7V.mjs.map +7 -0
- package/dist/lib/node-esm/ChannelSettings-DM2HWNKO.mjs +29 -0
- package/dist/lib/node-esm/ChannelSettings-DM2HWNKO.mjs.map +7 -0
- package/dist/lib/node-esm/VideoArticle-WLTWZO3K.mjs +77 -0
- package/dist/lib/node-esm/VideoArticle-WLTWZO3K.mjs.map +7 -0
- package/dist/lib/node-esm/VideoCard-FOWQZK75.mjs +65 -0
- package/dist/lib/node-esm/VideoCard-FOWQZK75.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-IU5TBAXN.mjs +196 -0
- package/dist/lib/node-esm/app-graph-builder-IU5TBAXN.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-W264MZ3D.mjs +23 -0
- package/dist/lib/node-esm/blueprint-definition-W264MZ3D.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +14 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-5KNC2JMP.mjs +58 -0
- package/dist/lib/node-esm/chunk-5KNC2JMP.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6BUJ2DQX.mjs +73 -0
- package/dist/lib/node-esm/chunk-6BUJ2DQX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CX6MV3QM.mjs +23 -0
- package/dist/lib/node-esm/chunk-CX6MV3QM.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CZSLL3XQ.mjs +63 -0
- package/dist/lib/node-esm/chunk-CZSLL3XQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JM5SBBP5.mjs +356 -0
- package/dist/lib/node-esm/chunk-JM5SBBP5.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JSGRZMG3.mjs +73 -0
- package/dist/lib/node-esm/chunk-JSGRZMG3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-M4S6BE47.mjs +10 -0
- package/dist/lib/node-esm/chunk-M4S6BE47.mjs.map +7 -0
- package/dist/lib/node-esm/clear-synced-videos-5UCH6XHL.mjs +67 -0
- package/dist/lib/node-esm/clear-synced-videos-5UCH6XHL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +154 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/react-surface-5DJAQPHJ.mjs +78 -0
- package/dist/lib/node-esm/react-surface-5DJAQPHJ.mjs.map +7 -0
- package/dist/lib/node-esm/sync-CEF5DX2J.mjs +361 -0
- package/dist/lib/node-esm/sync-CEF5DX2J.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +15 -0
- package/dist/lib/node-esm/types/index.mjs.map +7 -0
- package/dist/types/src/YouTubePlugin.d.ts +3 -0
- package/dist/types/src/YouTubePlugin.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +3 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/youtube.d.ts +4 -0
- package/dist/types/src/blueprints/youtube.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts +8 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelArticle/index.d.ts +3 -0
- package/dist/types/src/containers/ChannelArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelSettings/ChannelSettings.d.ts +7 -0
- package/dist/types/src/containers/ChannelSettings/ChannelSettings.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelSettings/index.d.ts +3 -0
- package/dist/types/src/containers/ChannelSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/VideoArticle/VideoArticle.d.ts +11 -0
- package/dist/types/src/containers/VideoArticle/VideoArticle.d.ts.map +1 -0
- package/dist/types/src/containers/VideoArticle/index.d.ts +3 -0
- package/dist/types/src/containers/VideoArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/VideoCard/VideoCard.d.ts +9 -0
- package/dist/types/src/containers/VideoCard/VideoCard.d.ts.map +1 -0
- package/dist/types/src/containers/VideoCard/index.d.ts +3 -0
- package/dist/types/src/containers/VideoCard/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +11 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +3 -0
- package/dist/types/src/meta.d.ts.map +1 -0
- package/dist/types/src/operations/apis/index.d.ts +2 -0
- package/dist/types/src/operations/apis/index.d.ts.map +1 -0
- package/dist/types/src/operations/apis/youtube/api.d.ts +251 -0
- package/dist/types/src/operations/apis/youtube/api.d.ts.map +1 -0
- package/dist/types/src/operations/apis/youtube/index.d.ts +3 -0
- package/dist/types/src/operations/apis/youtube/index.d.ts.map +1 -0
- package/dist/types/src/operations/apis/youtube/types.d.ts +493 -0
- package/dist/types/src/operations/apis/youtube/types.d.ts.map +1 -0
- package/dist/types/src/operations/clear-synced-videos.d.ts +5 -0
- package/dist/types/src/operations/clear-synced-videos.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +45 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +5 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/services/google-credentials.d.ts +35 -0
- package/dist/types/src/operations/services/google-credentials.d.ts.map +1 -0
- package/dist/types/src/operations/services/index.d.ts +2 -0
- package/dist/types/src/operations/services/index.d.ts.map +1 -0
- package/dist/types/src/operations/sync.d.ts +5 -0
- package/dist/types/src/operations/sync.d.ts.map +1 -0
- package/dist/types/src/operations/sync.test.d.ts +2 -0
- package/dist/types/src/operations/sync.test.d.ts.map +1 -0
- package/dist/types/src/operations/transcript.d.ts +12 -0
- package/dist/types/src/operations/transcript.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +49 -0
- package/dist/types/src/translations.d.ts.map +1 -0
- package/dist/types/src/types/Channel.d.ts +54 -0
- package/dist/types/src/types/Channel.d.ts.map +1 -0
- package/dist/types/src/types/Video.d.ts +41 -0
- package/dist/types/src/types/Video.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +4 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/types/types.d.ts +5 -0
- package/dist/types/src/types/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +113 -0
- package/src/YouTubePlugin.tsx +66 -0
- package/src/blueprints/index.ts +7 -0
- package/src/blueprints/youtube.ts +52 -0
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +148 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +17 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/index.ts +7 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +54 -0
- package/src/containers/ChannelArticle/ChannelArticle.tsx +115 -0
- package/src/containers/ChannelArticle/index.ts +7 -0
- package/src/containers/ChannelSettings/ChannelSettings.tsx +34 -0
- package/src/containers/ChannelSettings/index.ts +7 -0
- package/src/containers/VideoArticle/VideoArticle.tsx +109 -0
- package/src/containers/VideoArticle/index.ts +7 -0
- package/src/containers/VideoCard/VideoCard.tsx +86 -0
- package/src/containers/VideoCard/index.ts +7 -0
- package/src/containers/index.ts +24 -0
- package/src/index.ts +8 -0
- package/src/meta.ts +19 -0
- package/src/operations/apis/index.ts +5 -0
- package/src/operations/apis/youtube/api.ts +149 -0
- package/src/operations/apis/youtube/index.ts +6 -0
- package/src/operations/apis/youtube/types.ts +254 -0
- package/src/operations/clear-synced-videos.ts +50 -0
- package/src/operations/definitions.ts +62 -0
- package/src/operations/index.ts +13 -0
- package/src/operations/services/google-credentials.ts +81 -0
- package/src/operations/services/index.ts +5 -0
- package/src/operations/sync.test.ts +114 -0
- package/src/operations/sync.ts +309 -0
- package/src/operations/transcript.ts +47 -0
- package/src/translations.ts +59 -0
- package/src/types/Channel.ts +80 -0
- package/src/types/Video.ts +67 -0
- package/src/types/index.ts +8 -0
- package/src/types/types.ts +10 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentType, type LazyExoticComponent } from 'react';
|
|
2
|
+
import type { ChannelArticleProps } from './ChannelArticle/ChannelArticle';
|
|
3
|
+
import type { ChannelSettingsProps } from './ChannelSettings/ChannelSettings';
|
|
4
|
+
import type { VideoArticleProps } from './VideoArticle/VideoArticle';
|
|
5
|
+
import type { VideoCardProps } from './VideoCard/VideoCard';
|
|
6
|
+
export type { ChannelArticleProps, ChannelSettingsProps, VideoArticleProps, VideoCardProps };
|
|
7
|
+
export declare const ChannelArticle: LazyExoticComponent<ComponentType<ChannelArticleProps>>;
|
|
8
|
+
export declare const ChannelSettings: LazyExoticComponent<ComponentType<ChannelSettingsProps>>;
|
|
9
|
+
export declare const VideoArticle: LazyExoticComponent<ComponentType<VideoArticleProps>>;
|
|
10
|
+
export declare const VideoCard: LazyExoticComponent<ComponentType<VideoCardProps>>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC;AAE7F,eAAO,MAAM,cAAc,EAAE,mBAAmB,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAElF,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,mBAAmB,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAEpF,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,mBAAmB,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAwC,CAAC;AAExH,eAAO,MAAM,SAAS,EAAE,mBAAmB,CAAC,aAAa,CAAC,cAAc,CAAC,CAAqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAE7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAWzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/operations/apis/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as HttpClient from '@effect/platform/HttpClient';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
3
|
+
import type * as ParseResult from 'effect/ParseResult';
|
|
4
|
+
import { GoogleCredentials } from '../../services/google-credentials';
|
|
5
|
+
import { YouTubeError } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* Get channel details by channel ID.
|
|
8
|
+
* https://developers.google.com/youtube/v3/docs/channels/list
|
|
9
|
+
*/
|
|
10
|
+
export declare const getChannel: (channelId: string) => Effect.Effect<{
|
|
11
|
+
readonly kind: string;
|
|
12
|
+
readonly etag: string;
|
|
13
|
+
readonly pageInfo?: {
|
|
14
|
+
readonly totalResults: number;
|
|
15
|
+
readonly resultsPerPage: number;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly items: readonly {
|
|
18
|
+
readonly kind: string;
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly etag: string;
|
|
21
|
+
readonly snippet?: {
|
|
22
|
+
readonly title: string;
|
|
23
|
+
readonly description?: string | undefined;
|
|
24
|
+
readonly customUrl?: string | undefined;
|
|
25
|
+
readonly publishedAt?: string | undefined;
|
|
26
|
+
readonly thumbnails?: {
|
|
27
|
+
readonly default?: {
|
|
28
|
+
readonly url: string;
|
|
29
|
+
} | undefined;
|
|
30
|
+
readonly medium?: {
|
|
31
|
+
readonly url: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly high?: {
|
|
34
|
+
readonly url: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
readonly contentDetails?: {
|
|
39
|
+
readonly relatedPlaylists?: {
|
|
40
|
+
readonly uploads?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
}[];
|
|
44
|
+
}, YouTubeError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/Cause").TimeoutException | ParseResult.ParseError, GoogleCredentials | import("@dxos/functions").CredentialsService | HttpClient.HttpClient>;
|
|
45
|
+
/**
|
|
46
|
+
* Get channel by username/handle.
|
|
47
|
+
* https://developers.google.com/youtube/v3/docs/channels/list
|
|
48
|
+
*/
|
|
49
|
+
export declare const getChannelByHandle: (handle: string) => Effect.Effect<{
|
|
50
|
+
readonly kind: string;
|
|
51
|
+
readonly etag: string;
|
|
52
|
+
readonly pageInfo?: {
|
|
53
|
+
readonly totalResults: number;
|
|
54
|
+
readonly resultsPerPage: number;
|
|
55
|
+
} | undefined;
|
|
56
|
+
readonly items: readonly {
|
|
57
|
+
readonly kind: string;
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly etag: string;
|
|
60
|
+
readonly snippet?: {
|
|
61
|
+
readonly title: string;
|
|
62
|
+
readonly description?: string | undefined;
|
|
63
|
+
readonly customUrl?: string | undefined;
|
|
64
|
+
readonly publishedAt?: string | undefined;
|
|
65
|
+
readonly thumbnails?: {
|
|
66
|
+
readonly default?: {
|
|
67
|
+
readonly url: string;
|
|
68
|
+
} | undefined;
|
|
69
|
+
readonly medium?: {
|
|
70
|
+
readonly url: string;
|
|
71
|
+
} | undefined;
|
|
72
|
+
readonly high?: {
|
|
73
|
+
readonly url: string;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
readonly contentDetails?: {
|
|
78
|
+
readonly relatedPlaylists?: {
|
|
79
|
+
readonly uploads?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
}, YouTubeError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/Cause").TimeoutException | ParseResult.ParseError, GoogleCredentials | import("@dxos/functions").CredentialsService | HttpClient.HttpClient>;
|
|
84
|
+
/**
|
|
85
|
+
* Search for channels by query.
|
|
86
|
+
* https://developers.google.com/youtube/v3/docs/search/list
|
|
87
|
+
*/
|
|
88
|
+
export declare const searchChannels: (query: string, maxResults?: any) => Effect.Effect<{
|
|
89
|
+
readonly kind: string;
|
|
90
|
+
readonly etag: string;
|
|
91
|
+
readonly pageInfo?: {
|
|
92
|
+
readonly totalResults: number;
|
|
93
|
+
readonly resultsPerPage: number;
|
|
94
|
+
} | undefined;
|
|
95
|
+
readonly items: readonly {
|
|
96
|
+
readonly kind: string;
|
|
97
|
+
readonly id: {
|
|
98
|
+
readonly channelId?: string | undefined;
|
|
99
|
+
readonly kind: string;
|
|
100
|
+
readonly playlistId?: string | undefined;
|
|
101
|
+
readonly videoId?: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
readonly etag: string;
|
|
104
|
+
readonly snippet?: {
|
|
105
|
+
readonly channelId?: string | undefined;
|
|
106
|
+
readonly title: string;
|
|
107
|
+
readonly description?: string | undefined;
|
|
108
|
+
readonly publishedAt: string;
|
|
109
|
+
readonly thumbnails?: {
|
|
110
|
+
readonly default?: {
|
|
111
|
+
readonly url: string;
|
|
112
|
+
} | undefined;
|
|
113
|
+
readonly medium?: {
|
|
114
|
+
readonly url: string;
|
|
115
|
+
} | undefined;
|
|
116
|
+
readonly high?: {
|
|
117
|
+
readonly url: string;
|
|
118
|
+
} | undefined;
|
|
119
|
+
readonly standard?: {
|
|
120
|
+
readonly url: string;
|
|
121
|
+
} | undefined;
|
|
122
|
+
readonly maxres?: {
|
|
123
|
+
readonly url: string;
|
|
124
|
+
} | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
readonly channelTitle?: string | undefined;
|
|
127
|
+
readonly playlistId?: string | undefined;
|
|
128
|
+
readonly position?: number | undefined;
|
|
129
|
+
readonly resourceId?: {
|
|
130
|
+
readonly kind: string;
|
|
131
|
+
readonly videoId: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
readonly nextPageToken?: string | undefined;
|
|
136
|
+
readonly prevPageToken?: string | undefined;
|
|
137
|
+
}, YouTubeError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/Cause").TimeoutException | ParseResult.ParseError, GoogleCredentials | import("@dxos/functions").CredentialsService | HttpClient.HttpClient>;
|
|
138
|
+
/**
|
|
139
|
+
* List videos from a playlist (used to get uploads from a channel's uploads playlist).
|
|
140
|
+
* https://developers.google.com/youtube/v3/docs/playlistItems/list
|
|
141
|
+
*/
|
|
142
|
+
export declare const listPlaylistItems: (playlistId: string, maxResults?: any, pageToken?: string | undefined) => Effect.Effect<{
|
|
143
|
+
readonly kind: string;
|
|
144
|
+
readonly etag: string;
|
|
145
|
+
readonly pageInfo?: {
|
|
146
|
+
readonly totalResults: number;
|
|
147
|
+
readonly resultsPerPage: number;
|
|
148
|
+
} | undefined;
|
|
149
|
+
readonly items: readonly {
|
|
150
|
+
readonly kind: string;
|
|
151
|
+
readonly id: string;
|
|
152
|
+
readonly etag: string;
|
|
153
|
+
readonly snippet?: {
|
|
154
|
+
readonly channelId?: string | undefined;
|
|
155
|
+
readonly title: string;
|
|
156
|
+
readonly description?: string | undefined;
|
|
157
|
+
readonly publishedAt: string;
|
|
158
|
+
readonly thumbnails?: {
|
|
159
|
+
readonly default?: {
|
|
160
|
+
readonly url: string;
|
|
161
|
+
} | undefined;
|
|
162
|
+
readonly medium?: {
|
|
163
|
+
readonly url: string;
|
|
164
|
+
} | undefined;
|
|
165
|
+
readonly high?: {
|
|
166
|
+
readonly url: string;
|
|
167
|
+
} | undefined;
|
|
168
|
+
readonly standard?: {
|
|
169
|
+
readonly url: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
readonly maxres?: {
|
|
172
|
+
readonly url: string;
|
|
173
|
+
} | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
readonly channelTitle?: string | undefined;
|
|
176
|
+
readonly playlistId?: string | undefined;
|
|
177
|
+
readonly position?: number | undefined;
|
|
178
|
+
readonly resourceId?: {
|
|
179
|
+
readonly kind: string;
|
|
180
|
+
readonly videoId: string;
|
|
181
|
+
} | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
readonly contentDetails?: {
|
|
184
|
+
readonly videoId?: string | undefined;
|
|
185
|
+
readonly videoPublishedAt?: string | undefined;
|
|
186
|
+
readonly duration?: string | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
}[];
|
|
189
|
+
readonly nextPageToken?: string | undefined;
|
|
190
|
+
readonly prevPageToken?: string | undefined;
|
|
191
|
+
}, YouTubeError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/Cause").TimeoutException | ParseResult.ParseError, GoogleCredentials | import("@dxos/functions").CredentialsService | HttpClient.HttpClient>;
|
|
192
|
+
/**
|
|
193
|
+
* Get detailed video information including statistics and duration.
|
|
194
|
+
* https://developers.google.com/youtube/v3/docs/videos/list
|
|
195
|
+
*/
|
|
196
|
+
export declare const getVideoDetails: (videoIds: string[]) => Effect.Effect<{
|
|
197
|
+
readonly kind: string;
|
|
198
|
+
readonly etag: string;
|
|
199
|
+
readonly pageInfo?: {
|
|
200
|
+
readonly totalResults: number;
|
|
201
|
+
readonly resultsPerPage: number;
|
|
202
|
+
} | undefined;
|
|
203
|
+
readonly items: readonly {
|
|
204
|
+
readonly kind: string;
|
|
205
|
+
readonly id: string;
|
|
206
|
+
readonly etag: string;
|
|
207
|
+
readonly snippet?: {
|
|
208
|
+
readonly channelId?: string | undefined;
|
|
209
|
+
readonly title: string;
|
|
210
|
+
readonly description?: string | undefined;
|
|
211
|
+
readonly publishedAt: string;
|
|
212
|
+
readonly thumbnails?: {
|
|
213
|
+
readonly default?: {
|
|
214
|
+
readonly url: string;
|
|
215
|
+
} | undefined;
|
|
216
|
+
readonly medium?: {
|
|
217
|
+
readonly url: string;
|
|
218
|
+
} | undefined;
|
|
219
|
+
readonly high?: {
|
|
220
|
+
readonly url: string;
|
|
221
|
+
} | undefined;
|
|
222
|
+
readonly standard?: {
|
|
223
|
+
readonly url: string;
|
|
224
|
+
} | undefined;
|
|
225
|
+
readonly maxres?: {
|
|
226
|
+
readonly url: string;
|
|
227
|
+
} | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
readonly channelTitle?: string | undefined;
|
|
230
|
+
readonly playlistId?: string | undefined;
|
|
231
|
+
readonly position?: number | undefined;
|
|
232
|
+
readonly resourceId?: {
|
|
233
|
+
readonly kind: string;
|
|
234
|
+
readonly videoId: string;
|
|
235
|
+
} | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
readonly contentDetails?: {
|
|
238
|
+
readonly videoId?: string | undefined;
|
|
239
|
+
readonly videoPublishedAt?: string | undefined;
|
|
240
|
+
readonly duration?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
readonly statistics?: {
|
|
243
|
+
readonly viewCount?: string | undefined;
|
|
244
|
+
readonly likeCount?: string | undefined;
|
|
245
|
+
readonly commentCount?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
}[];
|
|
248
|
+
readonly nextPageToken?: string | undefined;
|
|
249
|
+
readonly prevPageToken?: string | undefined;
|
|
250
|
+
}, YouTubeError | import("@effect/platform/HttpClientError").HttpClientError | import("effect/Cause").TimeoutException | ParseResult.ParseError, GoogleCredentials | import("@dxos/functions").CredentialsService | HttpClient.HttpClient>;
|
|
251
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/operations/apis/youtube/api.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAOvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAML,YAAY,EACb,MAAM,SAAS,CAAC;AA+DjB;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0OAMrB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0OAM7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0OAQzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0OAQ5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0OAM1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/operations/apis/youtube/index.ts"],"names":[],"mappings":"AAIA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|