@quiki/mcp 0.5.0 → 0.6.0

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.
Files changed (39) hide show
  1. package/README.md +46 -7
  2. package/dist/index.d.ts +12 -4
  3. package/dist/index.js +29 -8
  4. package/dist/nextCursor.d.ts +3 -0
  5. package/dist/nextCursor.js +11 -0
  6. package/dist/outputSchemas.d.ts +267 -0
  7. package/dist/outputSchemas.js +232 -0
  8. package/dist/tools/addToFolder.d.ts +43 -0
  9. package/dist/tools/addToFolder.js +69 -0
  10. package/dist/tools/bulkImport.d.ts +18 -0
  11. package/dist/tools/bulkImport.js +2 -0
  12. package/dist/tools/bulkImportEstimate.d.ts +17 -0
  13. package/dist/tools/bulkImportEstimate.js +2 -0
  14. package/dist/tools/createFolder.d.ts +41 -0
  15. package/dist/tools/createFolder.js +50 -0
  16. package/dist/tools/getBulkImportStatus.d.ts +21 -0
  17. package/dist/tools/getBulkImportStatus.js +2 -0
  18. package/dist/tools/getScan.d.ts +31 -0
  19. package/dist/tools/getScan.js +2 -0
  20. package/dist/tools/getVideo.d.ts +46 -0
  21. package/dist/tools/getVideo.js +27 -6
  22. package/dist/tools/listBulkImports.d.ts +45 -0
  23. package/dist/tools/listBulkImports.js +55 -0
  24. package/dist/tools/listFolderVideos.d.ts +65 -0
  25. package/dist/tools/listFolderVideos.js +64 -0
  26. package/dist/tools/listFolders.d.ts +27 -0
  27. package/dist/tools/listFolders.js +29 -0
  28. package/dist/tools/listRecentVideos.d.ts +29 -0
  29. package/dist/tools/listRecentVideos.js +22 -4
  30. package/dist/tools/scanUrl.d.ts +31 -0
  31. package/dist/tools/scanUrl.js +2 -0
  32. package/dist/tools/searchVideos.d.ts +88 -0
  33. package/dist/tools/searchVideos.js +91 -0
  34. package/dist/tools/whoami.d.ts +14 -0
  35. package/dist/tools/whoami.js +2 -0
  36. package/dist/types.d.ts +108 -7
  37. package/dist/version.d.ts +1 -1
  38. package/dist/version.js +1 -1
  39. package/package.json +3 -3
package/README.md CHANGED
@@ -5,11 +5,17 @@ MCP stdio server for [Quiki.io](https://quiki.io). Exposes the full Quiki toolki
5
5
  - `whoami`: verify the token and see your tier and credit balance (plus today's scan allowance on the free plan)
6
6
  - `scan_url`: submit a TikTok, YouTube, or Instagram URL for scanning
7
7
  - `get_scan`: poll a previously submitted scan
8
- - `list_recent_videos`: list the most recently scanned videos in your library
9
- - `get_video`: fetch the full record (metadata, transcript, AI analysis) for one video
8
+ - `list_recent_videos`: list the most recently scanned or changed videos in your library, page by page
9
+ - `get_video`: fetch the full record (metadata, summary, transcript, AI analysis) for one video, or just the sections you ask for
10
+ - `search_videos`: search your library with the same search as the Quiki web app
11
+ - `list_folders`: list your folders
12
+ - `list_folder_videos`: list the videos in one folder (or the unfiled ones)
13
+ - `create_folder`: create a folder, or get the existing one with that name
14
+ - `add_to_folder`: file videos into a folder
10
15
  - `bulk_import`: submit up to 500 TikTok, YouTube, or Instagram URLs in one call
11
16
  - `bulk_import_estimate`: preview the credit cost of a bulk import before committing
12
17
  - `get_bulk_import_status`: poll a running bulk import
18
+ - `list_bulk_imports`: list your bulk imports, newest first
13
19
 
14
20
  Requires a Quiki API token from a **PRO (credit)** plan or higher. Generate one in your account under **Account > API keys**.
15
21
 
@@ -17,16 +23,48 @@ Requires a Quiki API token from a **PRO (credit)** plan or higher. Generate one
17
23
 
18
24
  `whoami` returns `credits.balance`, so an agent can check what it can spend before calling `scan_url` or `bulk_import`. On the free plan it also returns `dailyScans` (`limit`, `used`, `remaining`, `resetsAt`), the daily allowance `scan_url` enforces; it is `null` on paid plans. Older Quiki servers return only `id`, `email` and `tier`, so treat the new fields as optional.
19
25
 
26
+ ## Searching the library
27
+
28
+ `search_videos` takes search text (`q`) and/or the `platform`, `folder_id` and `author` filters. The text is matched against title, description, hashtags, author, AI summary, notes, transcript and the detailed AI analysis, case-insensitively. The grammar is the same as in the web app:
29
+
30
+ | You type | It means |
31
+ |----------|----------|
32
+ | `pasta sauce` | both words must match |
33
+ | `"tomato sauce"` | the exact phrase |
34
+ | `-vegan` | leave out videos that match |
35
+ | `pasta OR risotto` | either word (uppercase `OR`) |
36
+ | `platform:tiktok`, `author:name` | filter by platform or author |
37
+ | `folder:"Weeknight dinners"`, `folder:unfiled` | filter by folder name, or videos in no folder |
38
+ | `has:transcript` | only videos with a transcript |
39
+
40
+ Results are newest first by publish date and say which fields matched (`matched_in`). `warnings` explains any part of the query that was ignored. A `folder:"Name"` that matches none of your folders returns no results with an `unknown_folder` warning, rather than searching everything. Paging stops after 10,000 results; `results_truncated` with a null `nextCursor` means more matches exist, so narrow the search. Searches are limited to 30 per minute per token. The starter videos Quiki adds to a new account are part of the library, so they can show up in results.
41
+
42
+ ## Folders
43
+
44
+ `list_folders` returns every folder with its `video_count`; folders can nest (`parent_id`). `list_folder_videos` lists one folder, or the videos in no folder when `folder_id` is `"unfiled"`. `create_folder` is find-or-create: asking for a name that already exists (in any case, under the same parent) returns that folder with `created: false`.
45
+
46
+ `add_to_folder` files up to 100 videos per call. A video can be in only one folder, so by default a video that is already in a different folder is left alone and reported in `in_other_folder`; pass `move: true` to move it. Filing or moving a video counts as a change to it: its `scanned_at` becomes the time of the move and it moves to the top of `list_recent_videos`.
47
+
48
+ ## Paging
49
+
50
+ `list_recent_videos`, `search_videos`, `list_folder_videos` and `list_bulk_imports` return `nextCursor`. When it is not null, call the tool again with `cursor` set to it, keeping the other arguments the same, to get the next page. Stop when `nextCursor` is null. A page can be shorter than `limit` even when more results follow, so do not treat a short page as the end. Older Quiki servers do not page `list_recent_videos`; against them the tool returns `nextCursor: null`.
51
+
52
+ ## Structured output
53
+
54
+ Every tool declares an output schema and returns its result twice: as JSON text (the first content block, for clients that only read text) and as `structuredContent`, which clients that support structured output can use directly. The schemas are open: every object allows extra fields, and values such as platform, mode and status are plain strings, so a newer Quiki server that adds a field or a value does not break this package. Errors are unchanged: `isError` with the message, plus the API's problem details as a second block, and no `structuredContent`.
55
+
20
56
  ## Tool hints
21
57
 
22
58
  Every tool declares MCP tool annotations, so clients that support them can auto-approve safe calls:
23
59
 
24
- | Tool | Read-only | Idempotent | Reaches outside Quiki |
25
- |------|-----------|------------|-----------------------|
26
- | `whoami`, `get_scan`, `list_recent_videos`, `get_video`, `bulk_import_estimate`, `get_bulk_import_status` | yes | yes | no |
27
- | `scan_url`, `bulk_import` | no (spends credits) | no | yes (fetches the video from its platform) |
60
+ | Tool | Read-only | Destructive | Idempotent | Reaches outside Quiki |
61
+ |------|-----------|-------------|------------|-----------------------|
62
+ | `whoami`, `get_scan`, `list_recent_videos`, `get_video`, `search_videos`, `list_folders`, `list_folder_videos`, `bulk_import_estimate`, `get_bulk_import_status`, `list_bulk_imports` | yes | no | yes | no |
63
+ | `create_folder` | no | no | yes (same name returns the same folder) | no |
64
+ | `add_to_folder` | no | yes (with `move: true` it takes a video out of its folder) | yes | no |
65
+ | `scan_url`, `bulk_import` | no (spends credits) | no | no | yes (fetches the video from its platform) |
28
66
 
29
- No tool deletes anything (`destructiveHint: false` throughout). Hints are advisory: the Quiki API still enforces token scope, tier and credits on every call.
67
+ No tool deletes anything. Hints are advisory: the Quiki API still enforces token scope, tier and credits on every call. The library tools (`search_videos`, the folder tools, `get_video`) need a PRO plan; `create_folder` and `add_to_folder` need a token with write scope.
30
68
 
31
69
  ## Claude Desktop / Claude Code configuration
32
70
 
@@ -53,6 +91,7 @@ Add the following to your `mcpServers` config (e.g. `~/Library/Application Suppo
53
91
 
54
92
  ## Changes
55
93
 
94
+ - **0.6.0**: new tools `search_videos`, `list_folders`, `list_folder_videos`, `create_folder`, `add_to_folder` and `list_bulk_imports` (need Quiki server 1.2.72 or later). `list_recent_videos` pages with `cursor` / `nextCursor`. `get_video` takes `fields` to return only some sections and returns the video's `summary`. Every tool now returns `structuredContent` with a published output schema, alongside the same JSON text as before. No breaking changes: existing tool names and inputs are as before, and existing outputs only gained fields.
56
95
  - **0.5.0**: `whoami` reports the credit balance and, on the free plan, the daily scan allowance (needs Quiki server 1.2.71 or later). Every tool declares read-only, idempotent and open-world hints. No breaking changes: tool names, inputs and outputs are as before.
57
96
 
58
97
  ## Development
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
3
  import type { ToolAnnotations } from '@modelcontextprotocol/sdk/types.js';
4
- import type { ZodRawShape } from 'zod';
4
+ import type { ZodRawShape, z } from 'zod';
5
5
  import { type ApiClient } from './apiClient';
6
6
  /**
7
7
  * The shape every tool in src/tools/* exports. `Args` is the tool's own input
@@ -11,13 +11,21 @@ export interface QuikiTool<Args, Result> {
11
11
  name: string;
12
12
  description: string;
13
13
  annotations: ToolAnnotations;
14
+ /**
15
+ * Published as the tool's JSON Schema outputSchema and checked against
16
+ * every successful result. Must be a z.looseObject (see outputSchemas.ts).
17
+ */
18
+ outputSchema: z.ZodObject;
14
19
  handler(client: ApiClient, args: Args): Promise<Result>;
15
20
  }
16
21
  /**
17
22
  * Registers one tool. Every Quiki tool behaves the same way around its
18
- * handler: build the API client at call time, return the result as
19
- * pretty-printed JSON text, and turn any thrown error into
20
- * toolErrorResponse (which carries the RFC 7807 body as a second block).
23
+ * handler: build the API client at call time, return the result both as
24
+ * pretty-printed JSON text (content[0], for clients that ignore structured
25
+ * output) and as structuredContent (validated against the tool's
26
+ * outputSchema), and turn any thrown error into toolErrorResponse (which
27
+ * carries the RFC 7807 body as a second block). Error results carry no
28
+ * structuredContent; the SDK skips output validation when isError is set.
21
29
  */
22
30
  export declare function registerQuikiTool<Args, Result, Shape extends ZodRawShape>(server: McpServer, tool: QuikiTool<Args, Result>, inputShape: Shape): void;
23
31
  export declare function buildServer(): McpServer;
package/dist/index.js CHANGED
@@ -1,14 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  // @quiki/mcp stdio entry point. Registers whoami, scan_url, get_scan,
4
- // list_recent_videos, get_video, bulk_import, bulk_import_estimate, and
5
- // get_bulk_import_status against an McpServer and connects a
6
- // StdioServerTransport. Each tool's handler runs through getApiClient() so
4
+ // list_recent_videos, get_video, search_videos, list_folders,
5
+ // list_folder_videos, create_folder, add_to_folder, bulk_import,
6
+ // bulk_import_estimate, get_bulk_import_status and list_bulk_imports against
7
+ // an McpServer and connects a StdioServerTransport. Each tool's handler runs through getApiClient() so
7
8
  // env vars are read at call time, surfacing token/config errors to the agent
8
9
  // rather than crashing the process on startup. Every tool is registered
9
10
  // through registerQuikiTool, which also publishes its annotations
10
11
  // (read-only / idempotent / open-world hints) so clients can auto-approve the
11
- // safe calls.
12
+ // safe calls, and its output schema (0.6.0), so results arrive as
13
+ // structuredContent as well as JSON text.
12
14
  Object.defineProperty(exports, "__esModule", { value: true });
13
15
  exports.registerQuikiTool = registerQuikiTool;
14
16
  exports.buildServer = buildServer;
@@ -25,18 +27,28 @@ const listRecentVideos_1 = require("./tools/listRecentVideos");
25
27
  const bulkImport_1 = require("./tools/bulkImport");
26
28
  const bulkImportEstimate_1 = require("./tools/bulkImportEstimate");
27
29
  const getBulkImportStatus_1 = require("./tools/getBulkImportStatus");
30
+ const searchVideos_1 = require("./tools/searchVideos");
31
+ const listFolders_1 = require("./tools/listFolders");
32
+ const listFolderVideos_1 = require("./tools/listFolderVideos");
33
+ const createFolder_1 = require("./tools/createFolder");
34
+ const addToFolder_1 = require("./tools/addToFolder");
35
+ const listBulkImports_1 = require("./tools/listBulkImports");
28
36
  const version_1 = require("./version");
29
37
  /**
30
38
  * Registers one tool. Every Quiki tool behaves the same way around its
31
- * handler: build the API client at call time, return the result as
32
- * pretty-printed JSON text, and turn any thrown error into
33
- * toolErrorResponse (which carries the RFC 7807 body as a second block).
39
+ * handler: build the API client at call time, return the result both as
40
+ * pretty-printed JSON text (content[0], for clients that ignore structured
41
+ * output) and as structuredContent (validated against the tool's
42
+ * outputSchema), and turn any thrown error into toolErrorResponse (which
43
+ * carries the RFC 7807 body as a second block). Error results carry no
44
+ * structuredContent; the SDK skips output validation when isError is set.
34
45
  */
35
46
  function registerQuikiTool(server, tool, inputShape) {
36
47
  server.registerTool(tool.name, {
37
48
  title: tool.annotations.title,
38
49
  description: tool.description,
39
50
  inputSchema: inputShape,
51
+ outputSchema: tool.outputSchema,
40
52
  annotations: tool.annotations,
41
53
  },
42
54
  // The SDK has already validated `args` against `inputShape`; each handler
@@ -44,7 +56,10 @@ function registerQuikiTool(server, tool, inputShape) {
44
56
  (async (args) => {
45
57
  try {
46
58
  const result = await tool.handler((0, apiClient_1.getApiClient)(), args);
47
- return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
59
+ return {
60
+ content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
61
+ structuredContent: result,
62
+ };
48
63
  }
49
64
  catch (err) {
50
65
  return (0, errorResponse_1.toolErrorResponse)(err);
@@ -62,9 +77,15 @@ function buildServer() {
62
77
  registerQuikiTool(server, getScan_1.getScanTool, getScan_1.getScanInputShape);
63
78
  registerQuikiTool(server, listRecentVideos_1.listRecentVideosTool, listRecentVideos_1.listRecentVideosInputShape);
64
79
  registerQuikiTool(server, getVideo_1.getVideoTool, getVideo_1.getVideoInputShape);
80
+ registerQuikiTool(server, searchVideos_1.searchVideosTool, searchVideos_1.searchVideosInputShape);
81
+ registerQuikiTool(server, listFolders_1.listFoldersTool, {});
82
+ registerQuikiTool(server, listFolderVideos_1.listFolderVideosTool, listFolderVideos_1.listFolderVideosInputShape);
83
+ registerQuikiTool(server, createFolder_1.createFolderTool, createFolder_1.createFolderInputShape);
84
+ registerQuikiTool(server, addToFolder_1.addToFolderTool, addToFolder_1.addToFolderInputShape);
65
85
  registerQuikiTool(server, bulkImport_1.bulkImportTool, bulkImport_1.bulkImportInputShape);
66
86
  registerQuikiTool(server, bulkImportEstimate_1.bulkImportEstimateTool, bulkImportEstimate_1.bulkImportEstimateInputShape);
67
87
  registerQuikiTool(server, getBulkImportStatus_1.getBulkImportStatusTool, getBulkImportStatus_1.getBulkImportStatusInputShape);
88
+ registerQuikiTool(server, listBulkImports_1.listBulkImportsTool, listBulkImports_1.listBulkImportsInputShape);
68
89
  return server;
69
90
  }
70
91
  async function main() {
@@ -0,0 +1,3 @@
1
+ export declare function withNextCursor<T extends object>(res: T): Omit<T, 'nextCursor'> & {
2
+ nextCursor: string | null;
3
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // Paged list tools always return `nextCursor`: the server's value, or null
3
+ // when the server omits it (a Quiki server older than 1.2.72 does not page
4
+ // GET /videos). The output schemas require the field, so this keeps an old
5
+ // server's response valid and gives the agent one rule: null means stop.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.withNextCursor = withNextCursor;
8
+ function withNextCursor(res) {
9
+ const next = res.nextCursor;
10
+ return { ...res, nextCursor: typeof next === 'string' && next.length > 0 ? next : null };
11
+ }
@@ -0,0 +1,267 @@
1
+ import { z } from 'zod';
2
+ export declare const WhoamiOutput: z.ZodObject<{
3
+ id: z.ZodString;
4
+ email: z.ZodNullable<z.ZodString>;
5
+ tier: z.ZodString;
6
+ credits: z.ZodOptional<z.ZodObject<{
7
+ balance: z.ZodNumber;
8
+ }, z.core.$loose>>;
9
+ dailyScans: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ limit: z.ZodNumber;
11
+ used: z.ZodNumber;
12
+ remaining: z.ZodNumber;
13
+ resetsAt: z.ZodString;
14
+ }, z.core.$loose>>>;
15
+ }, z.core.$loose>;
16
+ export declare const ScanOutput: z.ZodObject<{
17
+ id: z.ZodString;
18
+ status: z.ZodString;
19
+ platform: z.ZodString;
20
+ mode: z.ZodString;
21
+ created_at: z.ZodString;
22
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ retry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ attempt: z.ZodNumber;
25
+ next_attempt_at: z.ZodString;
26
+ }, z.core.$loose>>>;
27
+ video_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
28
+ result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ platform: z.ZodString;
30
+ mode: z.ZodString;
31
+ metadata: z.ZodObject<{
32
+ title: z.ZodNullable<z.ZodString>;
33
+ author: z.ZodNullable<z.ZodString>;
34
+ posted_at: z.ZodNullable<z.ZodString>;
35
+ duration_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$loose>;
38
+ transcript: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ ai_analysis: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
40
+ scanned_at: z.ZodString;
41
+ }, z.core.$loose>>>;
42
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ code: z.ZodString;
44
+ detail: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$loose>>>;
46
+ }, z.core.$loose>;
47
+ export declare const RecentVideosOutput: z.ZodObject<{
48
+ videos: z.ZodArray<z.ZodObject<{
49
+ id: z.ZodNumber;
50
+ url: z.ZodString;
51
+ platform_video_id: z.ZodNullable<z.ZodString>;
52
+ platform: z.ZodString;
53
+ media_type: z.ZodString;
54
+ mode: z.ZodString;
55
+ source: z.ZodString;
56
+ metadata: z.ZodObject<{
57
+ title: z.ZodNullable<z.ZodString>;
58
+ author: z.ZodNullable<z.ZodString>;
59
+ posted_at: z.ZodNullable<z.ZodString>;
60
+ duration_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
+ thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ }, z.core.$loose>;
63
+ first_scanned_at: z.ZodString;
64
+ scanned_at: z.ZodString;
65
+ status: z.ZodOptional<z.ZodString>;
66
+ error: z.ZodOptional<z.ZodObject<{
67
+ code: z.ZodString;
68
+ detail: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$loose>>;
70
+ }, z.core.$loose>>;
71
+ nextCursor: z.ZodNullable<z.ZodString>;
72
+ }, z.core.$loose>;
73
+ export declare const VideoOutput: z.ZodObject<{
74
+ id: z.ZodNumber;
75
+ url: z.ZodString;
76
+ platform_video_id: z.ZodNullable<z.ZodString>;
77
+ platform: z.ZodString;
78
+ media_type: z.ZodString;
79
+ mode: z.ZodString;
80
+ source: z.ZodString;
81
+ metadata: z.ZodObject<{
82
+ title: z.ZodNullable<z.ZodString>;
83
+ author: z.ZodNullable<z.ZodString>;
84
+ posted_at: z.ZodNullable<z.ZodString>;
85
+ duration_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
86
+ thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ }, z.core.$loose>;
88
+ first_scanned_at: z.ZodString;
89
+ scanned_at: z.ZodString;
90
+ status: z.ZodOptional<z.ZodString>;
91
+ error: z.ZodOptional<z.ZodObject<{
92
+ code: z.ZodString;
93
+ detail: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$loose>>;
95
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ transcript: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ ai_analysis: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
99
+ }, z.core.$loose>;
100
+ export declare const SearchVideosOutput: z.ZodObject<{
101
+ videos: z.ZodArray<z.ZodObject<{
102
+ id: z.ZodNumber;
103
+ url: z.ZodString;
104
+ platform_video_id: z.ZodNullable<z.ZodString>;
105
+ platform: z.ZodString;
106
+ media_type: z.ZodString;
107
+ mode: z.ZodString;
108
+ source: z.ZodString;
109
+ metadata: z.ZodObject<{
110
+ title: z.ZodNullable<z.ZodString>;
111
+ author: z.ZodNullable<z.ZodString>;
112
+ posted_at: z.ZodNullable<z.ZodString>;
113
+ duration_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
114
+ thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ }, z.core.$loose>;
116
+ first_scanned_at: z.ZodString;
117
+ scanned_at: z.ZodString;
118
+ status: z.ZodOptional<z.ZodString>;
119
+ error: z.ZodOptional<z.ZodObject<{
120
+ code: z.ZodString;
121
+ detail: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$loose>>;
123
+ matched_in: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ }, z.core.$loose>>;
125
+ total: z.ZodNumber;
126
+ nextCursor: z.ZodNullable<z.ZodString>;
127
+ warnings: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
128
+ code: z.ZodOptional<z.ZodString>;
129
+ message: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$loose>]>>>;
131
+ }, z.core.$loose>;
132
+ export declare const ListFoldersOutput: z.ZodObject<{
133
+ folders: z.ZodArray<z.ZodObject<{
134
+ id: z.ZodString;
135
+ name: z.ZodString;
136
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ sort_order: z.ZodOptional<z.ZodNumber>;
138
+ video_count: z.ZodOptional<z.ZodNumber>;
139
+ created_at: z.ZodOptional<z.ZodString>;
140
+ updated_at: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$loose>>;
142
+ }, z.core.$loose>;
143
+ export declare const FolderVideosOutput: z.ZodObject<{
144
+ folder: z.ZodNullable<z.ZodObject<{
145
+ id: z.ZodString;
146
+ name: z.ZodString;
147
+ }, z.core.$loose>>;
148
+ videos: z.ZodArray<z.ZodObject<{
149
+ id: z.ZodNumber;
150
+ url: z.ZodString;
151
+ platform_video_id: z.ZodNullable<z.ZodString>;
152
+ platform: z.ZodString;
153
+ media_type: z.ZodString;
154
+ mode: z.ZodString;
155
+ source: z.ZodString;
156
+ metadata: z.ZodObject<{
157
+ title: z.ZodNullable<z.ZodString>;
158
+ author: z.ZodNullable<z.ZodString>;
159
+ posted_at: z.ZodNullable<z.ZodString>;
160
+ duration_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
161
+ thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ }, z.core.$loose>;
163
+ first_scanned_at: z.ZodString;
164
+ scanned_at: z.ZodString;
165
+ status: z.ZodOptional<z.ZodString>;
166
+ error: z.ZodOptional<z.ZodObject<{
167
+ code: z.ZodString;
168
+ detail: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$loose>>;
170
+ }, z.core.$loose>>;
171
+ nextCursor: z.ZodNullable<z.ZodString>;
172
+ }, z.core.$loose>;
173
+ export declare const CreateFolderOutput: z.ZodObject<{
174
+ folder: z.ZodObject<{
175
+ id: z.ZodString;
176
+ name: z.ZodString;
177
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ sort_order: z.ZodOptional<z.ZodNumber>;
179
+ video_count: z.ZodOptional<z.ZodNumber>;
180
+ created_at: z.ZodOptional<z.ZodString>;
181
+ updated_at: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$loose>;
183
+ created: z.ZodBoolean;
184
+ }, z.core.$loose>;
185
+ export declare const AddToFolderOutput: z.ZodObject<{
186
+ folder: z.ZodOptional<z.ZodNullable<z.ZodObject<{
187
+ id: z.ZodString;
188
+ name: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$loose>>>;
190
+ added: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
191
+ moved_from_other_folder: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
192
+ already_in_folder: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
193
+ in_other_folder: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
194
+ not_found: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
195
+ }, z.core.$loose>;
196
+ export declare const BulkImportSubmitOutput: z.ZodObject<{
197
+ bulkImportId: z.ZodString;
198
+ platform: z.ZodString;
199
+ totals: z.ZodObject<{
200
+ totalEntries: z.ZodNumber;
201
+ duplicateCount: z.ZodNumber;
202
+ rejectedCount: z.ZodOptional<z.ZodNumber>;
203
+ newEntryCount: z.ZodNumber;
204
+ }, z.core.$loose>;
205
+ scannableCount: z.ZodNumber;
206
+ costPerVideo: z.ZodNumber;
207
+ effectiveCostPerVideo: z.ZodNumber;
208
+ estimatedCost: z.ZodNumber;
209
+ currentBalance: z.ZodNumber;
210
+ queuedTodayCount: z.ZodOptional<z.ZodNumber>;
211
+ waitingForDailyAllowance: z.ZodOptional<z.ZodNumber>;
212
+ createdAt: z.ZodString;
213
+ }, z.core.$loose>;
214
+ export declare const BulkImportEstimateOutput: z.ZodObject<{
215
+ platform: z.ZodString;
216
+ totals: z.ZodObject<{
217
+ totalEntries: z.ZodNumber;
218
+ duplicateCount: z.ZodNumber;
219
+ rejectedCount: z.ZodOptional<z.ZodNumber>;
220
+ newEntryCount: z.ZodNumber;
221
+ }, z.core.$loose>;
222
+ scannableCount: z.ZodNumber;
223
+ costPerVideo: z.ZodNumber;
224
+ effectiveCostPerVideo: z.ZodNumber;
225
+ estimatedCost: z.ZodNumber;
226
+ currentBalance: z.ZodNumber;
227
+ shortfall: z.ZodNumber;
228
+ fits: z.ZodBoolean;
229
+ userTier: z.ZodString;
230
+ }, z.core.$loose>;
231
+ export declare const BulkImportStatusOutput: z.ZodObject<{
232
+ id: z.ZodString;
233
+ fileName: z.ZodNullable<z.ZodString>;
234
+ status: z.ZodString;
235
+ totalVideos: z.ZodNumber;
236
+ processedVideos: z.ZodNumber;
237
+ failedVideos: z.ZodNumber;
238
+ skippedVideos: z.ZodOptional<z.ZodNumber>;
239
+ skippedAsDuplicate: z.ZodNumber;
240
+ createdAt: z.ZodString;
241
+ updatedAt: z.ZodString;
242
+ completedAt: z.ZodNullable<z.ZodString>;
243
+ jobStats: z.ZodObject<{
244
+ pending: z.ZodNumber;
245
+ processing: z.ZodNumber;
246
+ completed: z.ZodNumber;
247
+ failed: z.ZodNumber;
248
+ skipped: z.ZodOptional<z.ZodNumber>;
249
+ retrying: z.ZodOptional<z.ZodNumber>;
250
+ }, z.core.$loose>;
251
+ }, z.core.$loose>;
252
+ export declare const ListBulkImportsOutput: z.ZodObject<{
253
+ bulkImports: z.ZodArray<z.ZodObject<{
254
+ id: z.ZodString;
255
+ fileName: z.ZodNullable<z.ZodString>;
256
+ status: z.ZodString;
257
+ totalVideos: z.ZodNumber;
258
+ processedVideos: z.ZodNumber;
259
+ failedVideos: z.ZodNumber;
260
+ skippedVideos: z.ZodOptional<z.ZodNumber>;
261
+ skippedAsDuplicate: z.ZodNumber;
262
+ createdAt: z.ZodString;
263
+ updatedAt: z.ZodString;
264
+ completedAt: z.ZodNullable<z.ZodString>;
265
+ }, z.core.$loose>>;
266
+ nextCursor: z.ZodNullable<z.ZodString>;
267
+ }, z.core.$loose>;