@portalshq/capability-video-delivery 0.1.0 → 0.1.1

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.
@@ -0,0 +1,2 @@
1
+ export * from "./live-session.js";
2
+ export * from "./vod-session.js";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./live-session.js";
2
+ export * from "./vod-session.js";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Live broadcast delivery. Origin -> Akamai edge -> audience. This package
3
+ * intentionally exposes only session lifecycle + manifest URL — codec,
4
+ * bitrate ladder, and origin packaging are implementation details that can
5
+ * change without breaking any channel that consumes this capability.
6
+ */
7
+ export interface LiveSessionHandle {
8
+ sessionId: string;
9
+ ingestUrl: string;
10
+ playbackManifestUrl: string;
11
+ }
12
+ export declare class LiveDelivery {
13
+ start(sessionId: string): Promise<LiveSessionHandle>;
14
+ stop(sessionId: string): Promise<void>;
15
+ }
@@ -0,0 +1,8 @@
1
+ export class LiveDelivery {
2
+ async start(sessionId) {
3
+ throw new Error("LiveDelivery.start: not yet wired to origin/Akamai config");
4
+ }
5
+ async stop(sessionId) {
6
+ throw new Error("LiveDelivery.stop: not yet implemented");
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ export interface VodAsset {
2
+ assetId: string;
3
+ playbackManifestUrl: string;
4
+ durationSeconds: number;
5
+ }
6
+ export declare class VodDelivery {
7
+ getAsset(assetId: string): Promise<VodAsset>;
8
+ }
@@ -0,0 +1,5 @@
1
+ export class VodDelivery {
2
+ async getAsset(assetId) {
3
+ throw new Error("VodDelivery.getAsset: not yet wired to object storage / Akamai edge");
4
+ }
5
+ }
package/package.json CHANGED
@@ -1,13 +1,26 @@
1
1
  {
2
2
  "name": "@portalshq/capability-video-delivery",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/portalshq/portals-cloud"
7
7
  },
8
8
  "description": "Live and VOD session delivery, abstracted behind one interface. Edge delivery target: Akamai CDN.",
9
- "main": "src/index.ts",
9
+ "type": "module",
10
+ "main": "dist/index.js",
11
+ "types": "dist/index.d.ts",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc -p tsconfig.json",
17
+ "typecheck": "tsc -p tsconfig.json --noEmit"
18
+ },
10
19
  "dependencies": {
11
20
  "@portalshq/contracts": "*"
21
+ },
22
+ "devDependencies": {
23
+ "typescript": "^5.5.0",
24
+ "@types/node": "^20.0.0"
12
25
  }
13
26
  }
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./live-session";
2
- export * from "./vod-session";
@@ -1,20 +0,0 @@
1
- /**
2
- * Live broadcast delivery. Origin -> Akamai edge -> audience. This package
3
- * intentionally exposes only session lifecycle + manifest URL — codec,
4
- * bitrate ladder, and origin packaging are implementation details that can
5
- * change without breaking any channel that consumes this capability.
6
- */
7
- export interface LiveSessionHandle {
8
- sessionId: string;
9
- ingestUrl: string; // where the broadcaster pushes
10
- playbackManifestUrl: string; // HLS/LL-HLS manifest served from Akamai edge
11
- }
12
-
13
- export class LiveDelivery {
14
- async start(sessionId: string): Promise<LiveSessionHandle> {
15
- throw new Error("LiveDelivery.start: not yet wired to origin/Akamai config");
16
- }
17
- async stop(sessionId: string): Promise<void> {
18
- throw new Error("LiveDelivery.stop: not yet implemented");
19
- }
20
- }
@@ -1,11 +0,0 @@
1
- export interface VodAsset {
2
- assetId: string;
3
- playbackManifestUrl: string;
4
- durationSeconds: number;
5
- }
6
-
7
- export class VodDelivery {
8
- async getAsset(assetId: string): Promise<VodAsset> {
9
- throw new Error("VodDelivery.getAsset: not yet wired to object storage / Akamai edge");
10
- }
11
- }