post-engineer-mcp 1.52.601 → 1.52.615
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 +1 -1
- package/dist/client-batch.d.ts +3 -1
- package/dist/client-batch.js +4 -1
- package/dist/client-batch.js.map +1 -1
- package/dist/client-billing.d.ts +5 -0
- package/dist/client-billing.js +34 -0
- package/dist/client-billing.js.map +1 -0
- package/dist/client-experiments.d.ts +5 -14
- package/dist/client-experiments.js +17 -3
- package/dist/client-experiments.js.map +1 -1
- package/dist/client-posts.d.ts +12 -6
- package/dist/client-posts.js +22 -11
- package/dist/client-posts.js.map +1 -1
- package/dist/client-prompts.d.ts +4 -8
- package/dist/client-prompts.js +7 -24
- package/dist/client-prompts.js.map +1 -1
- package/dist/client-publish-uploaded.d.ts +8 -1
- package/dist/client-publish-uploaded.js +121 -49
- package/dist/client-publish-uploaded.js.map +1 -1
- package/dist/client-publishing-accounts.d.ts +4 -2
- package/dist/client-publishing-accounts.js +6 -2
- package/dist/client-publishing-accounts.js.map +1 -1
- package/dist/client-types.d.ts +5 -4
- package/dist/client-user-media.d.ts +4 -3
- package/dist/client-user-media.js +17 -47
- package/dist/client-user-media.js.map +1 -1
- package/dist/client-video-task.d.ts +3 -1
- package/dist/client-video-task.js +4 -1
- package/dist/client-video-task.js.map +1 -1
- package/dist/client.d.ts +40 -39
- package/dist/client.js +80 -148
- package/dist/client.js.map +1 -1
- package/dist/cloned-voice-client.d.ts +7 -5
- package/dist/cloned-voice-client.js +10 -4
- package/dist/cloned-voice-client.js.map +1 -1
- package/dist/connect-account.js +14 -6
- package/dist/connect-account.js.map +1 -1
- package/dist/contract-response.d.ts +8 -0
- package/dist/contract-response.js +24 -0
- package/dist/contract-response.js.map +1 -0
- package/dist/contracts/accounts.d.ts +844 -0
- package/dist/contracts/accounts.js +346 -0
- package/dist/contracts/accounts.js.map +1 -0
- package/dist/contracts/billing.d.ts +109 -0
- package/dist/contracts/billing.js +88 -0
- package/dist/contracts/billing.js.map +1 -0
- package/dist/contracts/endpoint.d.ts +45 -0
- package/dist/contracts/endpoint.js +8 -0
- package/dist/contracts/endpoint.js.map +1 -0
- package/dist/contracts/experiments.d.ts +271 -0
- package/dist/contracts/experiments.js +170 -0
- package/dist/contracts/experiments.js.map +1 -0
- package/dist/contracts/media.d.ts +165 -0
- package/dist/contracts/media.js +139 -0
- package/dist/contracts/media.js.map +1 -0
- package/dist/contracts/metrics.d.ts +351 -0
- package/dist/contracts/metrics.js +256 -0
- package/dist/contracts/metrics.js.map +1 -0
- package/dist/contracts/personas.d.ts +560 -0
- package/dist/contracts/personas.js +346 -0
- package/dist/contracts/personas.js.map +1 -0
- package/dist/contracts/posts.d.ts +485 -0
- package/dist/contracts/posts.js +153 -0
- package/dist/contracts/posts.js.map +1 -0
- package/dist/contracts/prompts.d.ts +90 -0
- package/dist/contracts/prompts.js +48 -0
- package/dist/contracts/prompts.js.map +1 -0
- package/dist/contracts/schedule.d.ts +691 -0
- package/dist/contracts/schedule.js +264 -0
- package/dist/contracts/schedule.js.map +1 -0
- package/dist/contracts/video-tasks.d.ts +181 -0
- package/dist/contracts/video-tasks.js +121 -0
- package/dist/contracts/video-tasks.js.map +1 -0
- package/dist/contracts/videos.d.ts +693 -0
- package/dist/contracts/videos.js +443 -0
- package/dist/contracts/videos.js.map +1 -0
- package/dist/contracts/voices.d.ts +237 -0
- package/dist/contracts/voices.js +118 -0
- package/dist/contracts/voices.js.map +1 -0
- package/dist/generate-video.d.ts +34 -34
- package/dist/generate-video.js +14 -2
- package/dist/generate-video.js.map +1 -1
- package/dist/intent-content.js +1 -1
- package/dist/intent-personas.js +17 -7
- package/dist/intent-personas.js.map +1 -1
- package/dist/limits.d.ts +27 -44
- package/dist/limits.js +27 -45
- package/dist/limits.js.map +1 -1
- package/dist/persona-delete.js +9 -9
- package/dist/persona-delete.js.map +1 -1
- package/dist/persona-update.js +3 -2
- package/dist/persona-update.js.map +1 -1
- package/dist/script-segments.d.ts +1 -1
- package/dist/script-segments.js +1 -1
- package/dist/single-video-shape.d.ts +5 -5
- package/dist/single-video-shape.js +1 -1
- package/dist/tools-batch.d.ts +42 -42
- package/dist/tools-batch.js +12 -36
- package/dist/tools-batch.js.map +1 -1
- package/dist/tools-experiments.d.ts +11 -11
- package/dist/tools-experiments.js +17 -9
- package/dist/tools-experiments.js.map +1 -1
- package/dist/tools-pinterest.js +5 -15
- package/dist/tools-pinterest.js.map +1 -1
- package/dist/tools-single-video.js +14 -51
- package/dist/tools-single-video.js.map +1 -1
- package/dist/tools-user-media.js +3 -1
- package/dist/tools-user-media.js.map +1 -1
- package/dist/tools.d.ts +0 -25
- package/dist/tools.js +56 -96
- package/dist/tools.js.map +1 -1
- package/dist/voice-filters.js +2 -1
- package/dist/voice-filters.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type EndpointMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3
|
+
export interface EndpointDefinition<Body extends z.ZodType | undefined, Query extends z.ZodType | undefined, Response extends z.ZodType, Path extends string> {
|
|
4
|
+
method: EndpointMethod;
|
|
5
|
+
path: Path;
|
|
6
|
+
body?: Body;
|
|
7
|
+
query?: Query;
|
|
8
|
+
response: Response;
|
|
9
|
+
}
|
|
10
|
+
/** Define one endpoint contract. The literal path is preserved in the type
|
|
11
|
+
* so ParamsOf can read its `:param` segments. `Body`/`Query` default to
|
|
12
|
+
* `undefined` so an omitted optional schema stays `undefined` (not the
|
|
13
|
+
* bare `ZodType`) in the returned definition. */
|
|
14
|
+
export declare function defineEndpoint<Body extends z.ZodType | undefined = undefined, Query extends z.ZodType | undefined = undefined, Response extends z.ZodType = z.ZodType, Path extends string = string>(config: {
|
|
15
|
+
method: EndpointMethod;
|
|
16
|
+
path: Path;
|
|
17
|
+
body?: Body;
|
|
18
|
+
query?: Query;
|
|
19
|
+
response: Response;
|
|
20
|
+
}): EndpointDefinition<Body, Query, Response, Path>;
|
|
21
|
+
/** Request body input type (`z.input` of the `body` schema). Indexed
|
|
22
|
+
* access is used (not infer) so an optional `body?` property keeps its
|
|
23
|
+
* schema type instead of widening to `unknown`. */
|
|
24
|
+
export type BodyOf<Endpoint extends {
|
|
25
|
+
body?: z.ZodType | undefined;
|
|
26
|
+
}> = [
|
|
27
|
+
Exclude<Endpoint['body'], undefined>
|
|
28
|
+
] extends [never] ? never : Exclude<Endpoint['body'], undefined> extends z.ZodType ? z.input<Exclude<Endpoint['body'], undefined>> : never;
|
|
29
|
+
/** Query input type (`z.input` of the `query` schema). */
|
|
30
|
+
export type QueryOf<Endpoint extends {
|
|
31
|
+
query?: z.ZodType | undefined;
|
|
32
|
+
}> = [
|
|
33
|
+
Exclude<Endpoint['query'], undefined>
|
|
34
|
+
] extends [never] ? never : Exclude<Endpoint['query'], undefined> extends z.ZodType ? z.input<Exclude<Endpoint['query'], undefined>> : never;
|
|
35
|
+
/** Response output type (`z.output` of the `response` schema). */
|
|
36
|
+
export type ResponseOf<Endpoint extends {
|
|
37
|
+
response: z.ZodType;
|
|
38
|
+
}> = Endpoint['response'] extends z.ZodType ? z.output<Endpoint['response']> : never;
|
|
39
|
+
/** Path params from a path template: each `:name` segment becomes a
|
|
40
|
+
* `string` field. A path without segments is an empty record. */
|
|
41
|
+
export type ParamsOf<Path extends string> = Path extends `${string}:${infer Rest}` ? Rest extends `${infer Name}/${infer After}` ? {
|
|
42
|
+
[Key in Name]: string;
|
|
43
|
+
} & ParamsOf<`/${After}`> : {
|
|
44
|
+
[Key in Rest]: string;
|
|
45
|
+
} : Record<never, never>;
|
|
46
|
+
export declare const PromptSummarySchema: z.ZodObject<{
|
|
47
|
+
slug: z.ZodString;
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
description: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const PromptDetailSchema: z.ZodObject<{
|
|
52
|
+
slug: z.ZodString;
|
|
53
|
+
title: z.ZodString;
|
|
54
|
+
description: z.ZodString;
|
|
55
|
+
prompt: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const ListPromptsResponseSchema: z.ZodObject<{
|
|
58
|
+
success: z.ZodLiteral<true>;
|
|
59
|
+
prompts: z.ZodArray<z.ZodObject<{
|
|
60
|
+
slug: z.ZodString;
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
description: z.ZodString;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const GetPromptResponseSchema: z.ZodObject<{
|
|
66
|
+
success: z.ZodLiteral<true>;
|
|
67
|
+
prompt: z.ZodObject<{
|
|
68
|
+
slug: z.ZodString;
|
|
69
|
+
title: z.ZodString;
|
|
70
|
+
description: z.ZodString;
|
|
71
|
+
prompt: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const listPrompts: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
75
|
+
success: z.ZodLiteral<true>;
|
|
76
|
+
prompts: z.ZodArray<z.ZodObject<{
|
|
77
|
+
slug: z.ZodString;
|
|
78
|
+
title: z.ZodString;
|
|
79
|
+
description: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>, "/api/prompts">;
|
|
82
|
+
export declare const getPrompt: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
83
|
+
success: z.ZodLiteral<true>;
|
|
84
|
+
prompt: z.ZodObject<{
|
|
85
|
+
slug: z.ZodString;
|
|
86
|
+
title: z.ZodString;
|
|
87
|
+
description: z.ZodString;
|
|
88
|
+
prompt: z.ZodString;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>, "/api/prompts/:slug">;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// GENERATED from shared/contracts — do not edit.
|
|
2
|
+
// Run `node scripts/sync-contracts.mjs` from the repo root to regenerate.
|
|
3
|
+
// Recipe prompt catalog contract: the single source of truth for
|
|
4
|
+
// GET /api/prompts and GET /api/prompts/[slug]. Both apps generate a copy
|
|
5
|
+
// of this file (see scripts/sync-contracts.mjs); never edit a generated copy by hand.
|
|
6
|
+
//
|
|
7
|
+
// The routes serve the web hub (PROMPTS + English recipes copy) to the MCP:
|
|
8
|
+
// the list carries slug/title/description only, the detail adds the full
|
|
9
|
+
// prompt text. Neither endpoint takes a body or a query. Unknown slug ->
|
|
10
|
+
// 404 PROMPT_NOT_FOUND (an ApiError on the MCP, never a 200), so the
|
|
11
|
+
// response schemas below cover the 200 shape only. `success` is a literal
|
|
12
|
+
// `true`: the MCP used to reject any other value as malformed, and the
|
|
13
|
+
// routes never return success:false with a 200.
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
/** Define one endpoint contract. The literal path is preserved in the type
|
|
16
|
+
* so ParamsOf can read its `:param` segments. `Body`/`Query` default to
|
|
17
|
+
* `undefined` so an omitted optional schema stays `undefined` (not the
|
|
18
|
+
* bare `ZodType`) in the returned definition. */
|
|
19
|
+
export function defineEndpoint(config) {
|
|
20
|
+
return config;
|
|
21
|
+
}
|
|
22
|
+
export const PromptSummarySchema = z.object({
|
|
23
|
+
slug: z.string(),
|
|
24
|
+
title: z.string(),
|
|
25
|
+
description: z.string(),
|
|
26
|
+
});
|
|
27
|
+
export const PromptDetailSchema = PromptSummarySchema.extend({
|
|
28
|
+
prompt: z.string(),
|
|
29
|
+
});
|
|
30
|
+
export const ListPromptsResponseSchema = z.object({
|
|
31
|
+
success: z.literal(true),
|
|
32
|
+
prompts: z.array(PromptSummarySchema),
|
|
33
|
+
});
|
|
34
|
+
export const GetPromptResponseSchema = z.object({
|
|
35
|
+
success: z.literal(true),
|
|
36
|
+
prompt: PromptDetailSchema,
|
|
37
|
+
});
|
|
38
|
+
export const listPrompts = defineEndpoint({
|
|
39
|
+
method: 'GET',
|
|
40
|
+
path: '/api/prompts',
|
|
41
|
+
response: ListPromptsResponseSchema,
|
|
42
|
+
});
|
|
43
|
+
export const getPrompt = defineEndpoint({
|
|
44
|
+
method: 'GET',
|
|
45
|
+
path: '/api/prompts/:slug',
|
|
46
|
+
response: GetPromptResponseSchema,
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/contracts/prompts.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,0EAA0E;AAC1E,iEAAiE;AACjE,0EAA0E;AAC1E,sFAAsF;AACtF,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,yEAAyE;AACzE,qEAAqE;AACrE,0EAA0E;AAC1E,uEAAuE;AACvE,gDAAgD;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB;;;iDAGiD;AACjD,MAAM,UAAU,cAAc,CAK5B,MAMD;IACC,OAAO,MAAM,CAAC;AAChB,CAAC;AAiCD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,MAAM,EAAE,kBAAkB;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;IACxC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,yBAAyB;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC;IACtC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,uBAAuB;CAClC,CAAC,CAAC"}
|