Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions packages/cliploop-sdk/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
export type WeeklyPromoChannel = "instagram" | "tiktok" | "whatsapp" | "x";
export type WeeklyPromoInput = {
appName: string;
appWebsiteUrl?: string;
weeklyUpdate: string;
targetAudience?: string;
callToAction?: string;
channel: WeeklyPromoChannel;
tone: string;
};
export type WeeklyPromoResponse = {
artifactId: string;
previewUrl: string | null;
downloadUrl: string | null;
artifactUrl: string | null;
script: Record<string, unknown>;
scenePlan: unknown[];
creditsCharged: number;
renderStatus: string;
idempotencyKey: string;
};
export type ClipLoopClientOptions = {
apiKey?: string;
baseUrl?: string;
};
export type ClipLoopRequestOptions = {
idempotencyKey?: string;
};
export declare class ClipLoopApiError extends Error {
readonly status: number;
readonly body: unknown;
readonly requestId?: string;
constructor(args: {
message: string;
status: number;
body?: unknown;
});
toJSON(): {
name: string;
message: string;
status: number;
requestId: string | undefined;
};
}
export declare class ClipLoopClient {
readonly apiKey: string;
readonly baseURL: string;
constructor(options?: ClipLoopClientOptions);
generateWeeklyPromo(input: WeeklyPromoInput, options?: ClipLoopRequestOptions): Promise<WeeklyPromoResponse>;
}
106 changes: 106 additions & 0 deletions packages/cliploop-sdk/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/cliploop-sdk/dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 23 additions & 5 deletions packages/cliploop-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"scripts": {
"build": "tsc -p tsconfig.json",
"typecheck": "tsc -p tsconfig.json --noEmit",
"prepack": "npm run build",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove the private flag before publishing

When this package is actually published via the new prepack packaging path, package.json still has "private": true on line 4; npm's package-json docs state that this makes npm refuse to publish the package. That leaves the SDK buildable for packaging checks but blocks a real npm publish, so the package should drop the private flag or otherwise be made intentionally publishable before this is considered npm-ready.

Useful? React with 👍 / 👎.

"example:weekly-promo": "tsx examples/weekly-promo.ts"
},
"dependencies": {},
Expand All @@ -28,13 +29,30 @@
"engines": {
"node": ">=18.18"
},
"description": "ClipLoop TypeScript SDK for the Weekly Promo API and future video generation endpoints.",
"description": "TypeScript SDK for the ClipLoop programmable video generation API.",
"homepage": "https://docs.cliploop.site/sdks/",
"repository": {
"type": "git",
"url": "https://github.com/talocode/cliploop",
"directory": "packages/cliploop-sdk"
},
"bugs": {
"url": "https://github.com/talocode/cliploop/issues"
},
"keywords": [
"cliploop",
"video",
"generation",
"video-generation",
"video-api",
"ai-video",
"sdk",
"api"
"typescript",
"talocode"
],
"license": "UNLICENSED"
"license": "UNLICENSED",
"sideEffects": false,
"files": [
"dist",
"README.md",
"package.json"
]
}