@lightsage/mcp 0.4.4 → 0.4.5

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 (74) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +351 -765
  3. package/bin/mcp-server.js.map +10 -20
  4. package/esm/landing-page.js +1 -1
  5. package/esm/lib/config.d.ts +2 -2
  6. package/esm/lib/config.js +2 -2
  7. package/esm/mcp-server/mcp-server.js +1 -1
  8. package/esm/mcp-server/server.d.ts.map +1 -1
  9. package/esm/mcp-server/server.js +1 -7
  10. package/esm/mcp-server/server.js.map +1 -1
  11. package/esm/tool-names.d.ts.map +1 -1
  12. package/esm/tool-names.js +0 -12
  13. package/esm/tool-names.js.map +1 -1
  14. package/package.json +1 -1
  15. package/src/landing-page.ts +1 -1
  16. package/src/lib/config.ts +2 -2
  17. package/src/mcp-server/mcp-server.ts +1 -1
  18. package/src/mcp-server/server.ts +1 -7
  19. package/src/tool-names.ts +0 -12
  20. package/esm/funcs/contentV2ContentDraftsCreate.d.ts +0 -16
  21. package/esm/funcs/contentV2ContentDraftsCreate.d.ts.map +0 -1
  22. package/esm/funcs/contentV2ContentDraftsCreate.js +0 -83
  23. package/esm/funcs/contentV2ContentDraftsCreate.js.map +0 -1
  24. package/esm/funcs/contentV2ContentFinalize.d.ts +0 -16
  25. package/esm/funcs/contentV2ContentFinalize.d.ts.map +0 -1
  26. package/esm/funcs/contentV2ContentFinalize.js +0 -88
  27. package/esm/funcs/contentV2ContentFinalize.js.map +0 -1
  28. package/esm/funcs/contentV2ContentRetrieve.d.ts +0 -16
  29. package/esm/funcs/contentV2ContentRetrieve.d.ts.map +0 -1
  30. package/esm/funcs/contentV2ContentRetrieve.js +0 -88
  31. package/esm/funcs/contentV2ContentRetrieve.js.map +0 -1
  32. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts +0 -7
  33. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts.map +0 -1
  34. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js +0 -35
  35. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js.map +0 -1
  36. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts +0 -7
  37. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts.map +0 -1
  38. package/esm/mcp-server/tools/contentV2ContentFinalize.js +0 -35
  39. package/esm/mcp-server/tools/contentV2ContentFinalize.js.map +0 -1
  40. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts +0 -7
  41. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts.map +0 -1
  42. package/esm/mcp-server/tools/contentV2ContentRetrieve.js +0 -35
  43. package/esm/mcp-server/tools/contentV2ContentRetrieve.js.map +0 -1
  44. package/esm/models/generatecontentdraftrequest.d.ts +0 -9
  45. package/esm/models/generatecontentdraftrequest.d.ts.map +0 -1
  46. package/esm/models/generatecontentdraftrequest.js +0 -12
  47. package/esm/models/generatecontentdraftrequest.js.map +0 -1
  48. package/esm/models/publiccontent.d.ts +0 -11
  49. package/esm/models/publiccontent.d.ts.map +0 -1
  50. package/esm/models/publiccontent.js +0 -14
  51. package/esm/models/publiccontent.js.map +0 -1
  52. package/esm/models/v2contentdraftscreateop.d.ts +0 -6
  53. package/esm/models/v2contentdraftscreateop.d.ts.map +0 -1
  54. package/esm/models/v2contentdraftscreateop.js +0 -12
  55. package/esm/models/v2contentdraftscreateop.js.map +0 -1
  56. package/esm/models/v2contentfinalizeop.d.ts +0 -10
  57. package/esm/models/v2contentfinalizeop.d.ts.map +0 -1
  58. package/esm/models/v2contentfinalizeop.js +0 -15
  59. package/esm/models/v2contentfinalizeop.js.map +0 -1
  60. package/esm/models/v2contentretrieveop.d.ts +0 -10
  61. package/esm/models/v2contentretrieveop.d.ts.map +0 -1
  62. package/esm/models/v2contentretrieveop.js +0 -15
  63. package/esm/models/v2contentretrieveop.js.map +0 -1
  64. package/src/funcs/contentV2ContentDraftsCreate.ts +0 -145
  65. package/src/funcs/contentV2ContentFinalize.ts +0 -153
  66. package/src/funcs/contentV2ContentRetrieve.ts +0 -153
  67. package/src/mcp-server/tools/contentV2ContentDraftsCreate.ts +0 -43
  68. package/src/mcp-server/tools/contentV2ContentFinalize.ts +0 -43
  69. package/src/mcp-server/tools/contentV2ContentRetrieve.ts +0 -43
  70. package/src/models/generatecontentdraftrequest.ts +0 -28
  71. package/src/models/publiccontent.ts +0 -24
  72. package/src/models/v2contentdraftscreateop.ts +0 -20
  73. package/src/models/v2contentfinalizeop.ts +0 -28
  74. package/src/models/v2contentretrieveop.ts +0 -28
@@ -1,35 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: fda9acfbb00d
4
- */
5
- import { contentV2ContentDraftsCreate } from "../../funcs/contentV2ContentDraftsCreate.js";
6
- import { GenerateContentDraftRequest$zodSchema } from "../../models/generatecontentdraftrequest.js";
7
- import { formatResult } from "../tools.js";
8
- const args = {
9
- request: GenerateContentDraftRequest$zodSchema,
10
- };
11
- export const tool$contentV2ContentDraftsCreate = {
12
- name: "content-v2-content-drafts-create",
13
- description: `Create Content Draft
14
-
15
- Generates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits.`,
16
- annotations: {
17
- "title": "",
18
- "destructiveHint": false,
19
- "idempotentHint": false,
20
- "openWorldHint": false,
21
- "readOnlyHint": false,
22
- },
23
- args,
24
- tool: async (client, args, ctx) => {
25
- const [result] = await contentV2ContentDraftsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
- return formatResult(result.value);
33
- },
34
- };
35
- //# sourceMappingURL=contentV2ContentDraftsCreate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentDraftsCreate.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/contentV2ContentDraftsCreate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAgC;IAC5E,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE;;oJAEqI;IAClJ,WAAW,EAAE;QACX,OAAO,EAAE,EAAE;QACX,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;KACtB;IACD,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,4BAA4B,CACjD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,OAAO,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACF,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ToolDefinition } from "../tools.js";
2
- declare const args: {
3
- request: import("zod").ZodType<import("../../models/v2contentfinalizeop.js").V2ContentFinalizeRequest, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../models/v2contentfinalizeop.js").V2ContentFinalizeRequest, unknown>>;
4
- };
5
- export declare const tool$contentV2ContentFinalize: ToolDefinition<typeof args>;
6
- export {};
7
- //# sourceMappingURL=contentV2ContentFinalize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentFinalize.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/contentV2ContentFinalize.ts"],"names":[],"mappings":"AAOA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,OAAO,IAAI,CA6BrE,CAAC"}
@@ -1,35 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: de0821e3a202
4
- */
5
- import { contentV2ContentFinalize } from "../../funcs/contentV2ContentFinalize.js";
6
- import { V2ContentFinalizeRequest$zodSchema } from "../../models/v2contentfinalizeop.js";
7
- import { formatResult } from "../tools.js";
8
- const args = {
9
- request: V2ContentFinalizeRequest$zodSchema,
10
- };
11
- export const tool$contentV2ContentFinalize = {
12
- name: "content-v2-content-finalize",
13
- description: `Finalize Content
14
-
15
- Rewrites an existing draft into final, publish-ready content and updates its status. Consumes credits.`,
16
- annotations: {
17
- "title": "",
18
- "destructiveHint": false,
19
- "idempotentHint": false,
20
- "openWorldHint": false,
21
- "readOnlyHint": false,
22
- },
23
- args,
24
- tool: async (client, args, ctx) => {
25
- const [result] = await contentV2ContentFinalize(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
- return formatResult(result.value);
33
- },
34
- };
35
- //# sourceMappingURL=contentV2ContentFinalize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentFinalize.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/contentV2ContentFinalize.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAgC;IACxE,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE;;uGAEwF;IACrG,WAAW,EAAE;QACX,OAAO,EAAE,EAAE;QACX,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;KACtB;IACD,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,wBAAwB,CAC7C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,OAAO,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACF,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ToolDefinition } from "../tools.js";
2
- declare const args: {
3
- request: import("zod").ZodType<import("../../models/v2contentretrieveop.js").V2ContentRetrieveRequest, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../models/v2contentretrieveop.js").V2ContentRetrieveRequest, unknown>>;
4
- };
5
- export declare const tool$contentV2ContentRetrieve: ToolDefinition<typeof args>;
6
- export {};
7
- //# sourceMappingURL=contentV2ContentRetrieve.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentRetrieve.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/contentV2ContentRetrieve.ts"],"names":[],"mappings":"AAOA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,cAAc,CAAC,OAAO,IAAI,CA6BrE,CAAC"}
@@ -1,35 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: d877f6fd34f7
4
- */
5
- import { contentV2ContentRetrieve } from "../../funcs/contentV2ContentRetrieve.js";
6
- import { V2ContentRetrieveRequest$zodSchema } from "../../models/v2contentretrieveop.js";
7
- import { formatResult } from "../tools.js";
8
- const args = {
9
- request: V2ContentRetrieveRequest$zodSchema,
10
- };
11
- export const tool$contentV2ContentRetrieve = {
12
- name: "content-v2-content-retrieve",
13
- description: `Retrieve Content
14
-
15
- Returns a content record by ID, including title, markdown body, slug, and status.`,
16
- annotations: {
17
- "title": "",
18
- "destructiveHint": false,
19
- "idempotentHint": false,
20
- "openWorldHint": false,
21
- "readOnlyHint": true,
22
- },
23
- args,
24
- tool: async (client, args, ctx) => {
25
- const [result] = await contentV2ContentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
26
- if (!result.ok) {
27
- return {
28
- content: [{ type: "text", text: result.error.message }],
29
- isError: true,
30
- };
31
- }
32
- return formatResult(result.value);
33
- },
34
- };
35
- //# sourceMappingURL=contentV2ContentRetrieve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentRetrieve.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/contentV2ContentRetrieve.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAgC;IACxE,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE;;kFAEmE;IAChF,WAAW,EAAE;QACX,OAAO,EAAE,EAAE;QACX,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;KACrB;IACD,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,wBAAwB,CAC7C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,OAAO,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACF,CAAC"}
@@ -1,9 +0,0 @@
1
- import * as z from "zod";
2
- export type GenerateContentDraftRequest = {
3
- title: string;
4
- topic_name?: string | undefined;
5
- description?: string | undefined;
6
- prompt_texts?: Array<string> | undefined;
7
- };
8
- export declare const GenerateContentDraftRequest$zodSchema: z.ZodType<GenerateContentDraftRequest>;
9
- //# sourceMappingURL=generatecontentdraftrequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generatecontentdraftrequest.d.ts","sourceRoot":"","sources":["../../src/models/generatecontentdraftrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,2BAA2B,CAY3B,CAAC"}
@@ -1,12 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: dd64a9271eda
4
- */
5
- import * as z from "zod";
6
- export const GenerateContentDraftRequest$zodSchema = z.object({
7
- description: z.string().optional().describe("Brief on angle, audience, or goals."),
8
- prompt_texts: z.array(z.string()).optional().describe("Related prompts or questions to ground the article."),
9
- title: z.string(),
10
- topic_name: z.string().optional().describe("The topic or theme for the article. Defaults to `title`."),
11
- });
12
- //# sourceMappingURL=generatecontentdraftrequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generatecontentdraftrequest.js","sourceRoot":"","sources":["../../src/models/generatecontentdraftrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AASzB,MAAM,CAAC,MAAM,qCAAqC,GAE9C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACzC,qCAAqC,CACtC;IACD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnD,qDAAqD,CACtD;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxC,0DAA0D,CAC3D;CACF,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- import * as z from "zod";
2
- export type PublicContent = {
3
- id: string;
4
- title: string;
5
- text: string;
6
- slug: string;
7
- status: string;
8
- description?: string | null | undefined;
9
- };
10
- export declare const PublicContent$zodSchema: z.ZodType<PublicContent>;
11
- //# sourceMappingURL=publiccontent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publiccontent.d.ts","sourceRoot":"","sources":["../../src/models/publiccontent.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAO3D,CAAC"}
@@ -1,14 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 7b9d6d3d39e6
4
- */
5
- import * as z from "zod";
6
- export const PublicContent$zodSchema = z.object({
7
- description: z.string().nullable().optional(),
8
- id: z.string(),
9
- slug: z.string(),
10
- status: z.string(),
11
- text: z.string().describe("The article body in Markdown."),
12
- title: z.string(),
13
- });
14
- //# sourceMappingURL=publiccontent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publiccontent.js","sourceRoot":"","sources":["../../src/models/publiccontent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,MAAM,CAAC,MAAM,uBAAuB,GAA6B,CAAC,CAAC,MAAM,CAAC;IACxE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import * as z from "zod";
2
- import { HTTPValidationError } from "./httpvalidationerror.js";
3
- import { PublicContent } from "./publiccontent.js";
4
- export type V2ContentDraftsCreateResponse = PublicContent | HTTPValidationError;
5
- export declare const V2ContentDraftsCreateResponse$zodSchema: z.ZodType<V2ContentDraftsCreateResponse>;
6
- //# sourceMappingURL=v2contentdraftscreateop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2contentdraftscreateop.d.ts","sourceRoot":"","sources":["../../src/models/v2contentdraftscreateop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAA2B,MAAM,oBAAoB,CAAC;AAE5E,MAAM,MAAM,6BAA6B,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAEhF,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,6BAA6B,CAI7B,CAAC"}
@@ -1,12 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 0221968c431c
4
- */
5
- import * as z from "zod";
6
- import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
- import { PublicContent$zodSchema } from "./publiccontent.js";
8
- export const V2ContentDraftsCreateResponse$zodSchema = z.union([
9
- PublicContent$zodSchema,
10
- HTTPValidationError$zodSchema,
11
- ]);
12
- //# sourceMappingURL=v2contentdraftscreateop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2contentdraftscreateop.js","sourceRoot":"","sources":["../../src/models/v2contentdraftscreateop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAiB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,CAAC,MAAM,uCAAuC,GAEhD,CAAC,CAAC,KAAK,CAAC;IACV,uBAAuB;IACvB,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import * as z from "zod";
2
- import { HTTPValidationError } from "./httpvalidationerror.js";
3
- import { PublicContent } from "./publiccontent.js";
4
- export type V2ContentFinalizeRequest = {
5
- content_id: string;
6
- };
7
- export declare const V2ContentFinalizeRequest$zodSchema: z.ZodType<V2ContentFinalizeRequest>;
8
- export type V2ContentFinalizeResponse = PublicContent | HTTPValidationError;
9
- export declare const V2ContentFinalizeResponse$zodSchema: z.ZodType<V2ContentFinalizeResponse>;
10
- //# sourceMappingURL=v2contentfinalizeop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2contentfinalizeop.d.ts","sourceRoot":"","sources":["../../src/models/v2contentfinalizeop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAA2B,MAAM,oBAAoB,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,wBAAwB,CAGxB,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAE5E,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,yBAAyB,CAIzB,CAAC"}
@@ -1,15 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 9a35d349fcac
4
- */
5
- import * as z from "zod";
6
- import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
- import { PublicContent$zodSchema } from "./publiccontent.js";
8
- export const V2ContentFinalizeRequest$zodSchema = z.object({
9
- content_id: z.string(),
10
- });
11
- export const V2ContentFinalizeResponse$zodSchema = z.union([
12
- PublicContent$zodSchema,
13
- HTTPValidationError$zodSchema,
14
- ]);
15
- //# sourceMappingURL=v2contentfinalizeop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2contentfinalizeop.js","sourceRoot":"","sources":["../../src/models/v2contentfinalizeop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAiB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,KAAK,CAAC;IACV,uBAAuB;IACvB,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import * as z from "zod";
2
- import { HTTPValidationError } from "./httpvalidationerror.js";
3
- import { PublicContent } from "./publiccontent.js";
4
- export type V2ContentRetrieveRequest = {
5
- content_id: string;
6
- };
7
- export declare const V2ContentRetrieveRequest$zodSchema: z.ZodType<V2ContentRetrieveRequest>;
8
- export type V2ContentRetrieveResponse = PublicContent | HTTPValidationError;
9
- export declare const V2ContentRetrieveResponse$zodSchema: z.ZodType<V2ContentRetrieveResponse>;
10
- //# sourceMappingURL=v2contentretrieveop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2contentretrieveop.d.ts","sourceRoot":"","sources":["../../src/models/v2contentretrieveop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAA2B,MAAM,oBAAoB,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,wBAAwB,CAGxB,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAE5E,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,yBAAyB,CAIzB,CAAC"}
@@ -1,15 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 5214c995de25
4
- */
5
- import * as z from "zod";
6
- import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
- import { PublicContent$zodSchema } from "./publiccontent.js";
8
- export const V2ContentRetrieveRequest$zodSchema = z.object({
9
- content_id: z.string(),
10
- });
11
- export const V2ContentRetrieveResponse$zodSchema = z.union([
12
- PublicContent$zodSchema,
13
- HTTPValidationError$zodSchema,
14
- ]);
15
- //# sourceMappingURL=v2contentretrieveop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2contentretrieveop.js","sourceRoot":"","sources":["../../src/models/v2contentretrieveop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAiB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,KAAK,CAAC;IACV,uBAAuB;IACvB,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -1,145 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: c4afe858273e
4
- */
5
-
6
- import { LightsageMcpCore } from "../core.js";
7
- import { encodeJSON } from "../lib/encodings.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import { APIError } from "../models/errors/apierror.js";
14
- import {
15
- ConnectionError,
16
- InvalidRequestError,
17
- RequestAbortedError,
18
- RequestTimeoutError,
19
- UnexpectedClientError,
20
- } from "../models/errors/httpclienterrors.js";
21
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
- import {
23
- GenerateContentDraftRequest,
24
- GenerateContentDraftRequest$zodSchema,
25
- } from "../models/generatecontentdraftrequest.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Create Content Draft
31
- *
32
- * @remarks
33
- * Generates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits.
34
- */
35
- export function contentV2ContentDraftsCreate(
36
- client$: LightsageMcpCore,
37
- request: GenerateContentDraftRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- Response,
42
- | APIError
43
- | SDKValidationError
44
- | UnexpectedClientError
45
- | InvalidRequestError
46
- | RequestAbortedError
47
- | RequestTimeoutError
48
- | ConnectionError
49
- >
50
- > {
51
- return new APIPromise($do(
52
- client$,
53
- request,
54
- options,
55
- ));
56
- }
57
-
58
- async function $do(
59
- client$: LightsageMcpCore,
60
- request: GenerateContentDraftRequest,
61
- options?: RequestOptions,
62
- ): Promise<
63
- [
64
- Result<
65
- Response,
66
- | APIError
67
- | SDKValidationError
68
- | UnexpectedClientError
69
- | InvalidRequestError
70
- | RequestAbortedError
71
- | RequestTimeoutError
72
- | ConnectionError
73
- >,
74
- APICall,
75
- ]
76
- > {
77
- const parsed$ = safeParse(
78
- request,
79
- (value$) => GenerateContentDraftRequest$zodSchema.parse(value$),
80
- "Input validation failed",
81
- );
82
- if (!parsed$.ok) {
83
- return [parsed$, { status: "invalid" }];
84
- }
85
- const payload$ = parsed$.value;
86
- const body$ = encodeJSON("body", payload$, { explode: true });
87
- const path$ = pathToFunc("/v2/content/drafts")();
88
-
89
- const headers$ = new Headers(compactMap({
90
- "Content-Type": "application/json",
91
- Accept: "application/json",
92
- }));
93
- const securityInput = await extractSecurity(client$._options.security);
94
- const requestSecurity = resolveGlobalSecurity(securityInput);
95
-
96
- const context = {
97
- options: client$._options,
98
- baseURL: options?.serverURL ?? client$._baseURL ?? "",
99
- operationID: "v2_content_drafts_create",
100
- oAuth2Scopes: null,
101
- resolvedSecurity: requestSecurity,
102
- securitySource: client$._options.security,
103
- retryConfig: options?.retries
104
- || client$._options.retryConfig
105
- || { strategy: "none" },
106
- retryCodes: options?.retryCodes || [
107
- "429",
108
- "500",
109
- "502",
110
- "503",
111
- "504",
112
- ],
113
- };
114
-
115
- const requestRes = client$._createRequest(context, {
116
- security: requestSecurity,
117
- method: "POST",
118
- baseURL: options?.serverURL,
119
- path: path$,
120
- headers: headers$,
121
- body: body$,
122
- userAgent: client$._options.userAgent,
123
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs
124
- || -1,
125
- }, options);
126
- if (!requestRes.ok) {
127
- return [requestRes, { status: "invalid" }];
128
- }
129
- const req$ = requestRes.value;
130
-
131
- const doResult = await client$._do(req$, {
132
- context,
133
- errorCodes: [],
134
- retryConfig: context.retryConfig,
135
- retryCodes: context.retryCodes,
136
- });
137
- if (!doResult.ok) {
138
- return [doResult, { status: "request-error", request: req$ }];
139
- }
140
- return [doResult, {
141
- status: "complete",
142
- "request": req$,
143
- response: doResult.value,
144
- }];
145
- }
@@ -1,153 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 6c054185e4e9
4
- */
5
-
6
- import { LightsageMcpCore } from "../core.js";
7
- import { encodeSimple } from "../lib/encodings.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { RequestOptions } from "../lib/sdks.js";
11
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
- import { pathToFunc } from "../lib/url.js";
13
- import { APIError } from "../models/errors/apierror.js";
14
- import {
15
- ConnectionError,
16
- InvalidRequestError,
17
- RequestAbortedError,
18
- RequestTimeoutError,
19
- UnexpectedClientError,
20
- } from "../models/errors/httpclienterrors.js";
21
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
- import {
23
- V2ContentFinalizeRequest,
24
- V2ContentFinalizeRequest$zodSchema,
25
- } from "../models/v2contentfinalizeop.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Finalize Content
31
- *
32
- * @remarks
33
- * Rewrites an existing draft into final, publish-ready content and updates its status. Consumes credits.
34
- */
35
- export function contentV2ContentFinalize(
36
- client$: LightsageMcpCore,
37
- request: V2ContentFinalizeRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- Response,
42
- | APIError
43
- | SDKValidationError
44
- | UnexpectedClientError
45
- | InvalidRequestError
46
- | RequestAbortedError
47
- | RequestTimeoutError
48
- | ConnectionError
49
- >
50
- > {
51
- return new APIPromise($do(
52
- client$,
53
- request,
54
- options,
55
- ));
56
- }
57
-
58
- async function $do(
59
- client$: LightsageMcpCore,
60
- request: V2ContentFinalizeRequest,
61
- options?: RequestOptions,
62
- ): Promise<
63
- [
64
- Result<
65
- Response,
66
- | APIError
67
- | SDKValidationError
68
- | UnexpectedClientError
69
- | InvalidRequestError
70
- | RequestAbortedError
71
- | RequestTimeoutError
72
- | ConnectionError
73
- >,
74
- APICall,
75
- ]
76
- > {
77
- const parsed$ = safeParse(
78
- request,
79
- (value$) => V2ContentFinalizeRequest$zodSchema.parse(value$),
80
- "Input validation failed",
81
- );
82
- if (!parsed$.ok) {
83
- return [parsed$, { status: "invalid" }];
84
- }
85
- const payload$ = parsed$.value;
86
- const body$ = null;
87
-
88
- const pathParams$ = {
89
- content_id: encodeSimple("content_id", payload$.content_id, {
90
- explode: false,
91
- charEncoding: "percent",
92
- }),
93
- };
94
- const path$ = pathToFunc("/v2/content/{content_id}/finalize")(
95
- pathParams$,
96
- );
97
-
98
- const headers$ = new Headers(compactMap({
99
- Accept: "application/json",
100
- }));
101
- const securityInput = await extractSecurity(client$._options.security);
102
- const requestSecurity = resolveGlobalSecurity(securityInput);
103
-
104
- const context = {
105
- options: client$._options,
106
- baseURL: options?.serverURL ?? client$._baseURL ?? "",
107
- operationID: "v2_content_finalize",
108
- oAuth2Scopes: null,
109
- resolvedSecurity: requestSecurity,
110
- securitySource: client$._options.security,
111
- retryConfig: options?.retries
112
- || client$._options.retryConfig
113
- || { strategy: "none" },
114
- retryCodes: options?.retryCodes || [
115
- "429",
116
- "500",
117
- "502",
118
- "503",
119
- "504",
120
- ],
121
- };
122
-
123
- const requestRes = client$._createRequest(context, {
124
- security: requestSecurity,
125
- method: "POST",
126
- baseURL: options?.serverURL,
127
- path: path$,
128
- headers: headers$,
129
- body: body$,
130
- userAgent: client$._options.userAgent,
131
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs
132
- || -1,
133
- }, options);
134
- if (!requestRes.ok) {
135
- return [requestRes, { status: "invalid" }];
136
- }
137
- const req$ = requestRes.value;
138
-
139
- const doResult = await client$._do(req$, {
140
- context,
141
- errorCodes: [],
142
- retryConfig: context.retryConfig,
143
- retryCodes: context.retryCodes,
144
- });
145
- if (!doResult.ok) {
146
- return [doResult, { status: "request-error", request: req$ }];
147
- }
148
- return [doResult, {
149
- status: "complete",
150
- "request": req$,
151
- response: doResult.value,
152
- }];
153
- }