@lightsage/mcp 0.4.3 → 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 (86) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +358 -772
  3. package/bin/mcp-server.js.map +14 -24
  4. package/esm/landing-page.js +1 -1
  5. package/esm/lib/config.d.ts +3 -3
  6. package/esm/lib/config.js +3 -3
  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/models/evaltemplate.js +3 -3
  12. package/esm/models/evaltemplate.js.map +1 -1
  13. package/esm/models/v2visibilitycurrentretrieveop.js +1 -1
  14. package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
  15. package/esm/models/v2visibilityoverviewretrieveop.js +1 -1
  16. package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
  17. package/esm/models/v2visibilitypromptsretrieveop.js +1 -1
  18. package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
  19. package/esm/tool-names.d.ts.map +1 -1
  20. package/esm/tool-names.js +0 -12
  21. package/esm/tool-names.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/landing-page.ts +1 -1
  24. package/src/lib/config.ts +3 -3
  25. package/src/mcp-server/mcp-server.ts +1 -1
  26. package/src/mcp-server/server.ts +1 -7
  27. package/src/models/evaltemplate.ts +3 -3
  28. package/src/models/v2visibilitycurrentretrieveop.ts +1 -1
  29. package/src/models/v2visibilityoverviewretrieveop.ts +1 -1
  30. package/src/models/v2visibilitypromptsretrieveop.ts +1 -1
  31. package/src/tool-names.ts +0 -12
  32. package/esm/funcs/contentV2ContentDraftsCreate.d.ts +0 -16
  33. package/esm/funcs/contentV2ContentDraftsCreate.d.ts.map +0 -1
  34. package/esm/funcs/contentV2ContentDraftsCreate.js +0 -83
  35. package/esm/funcs/contentV2ContentDraftsCreate.js.map +0 -1
  36. package/esm/funcs/contentV2ContentFinalize.d.ts +0 -16
  37. package/esm/funcs/contentV2ContentFinalize.d.ts.map +0 -1
  38. package/esm/funcs/contentV2ContentFinalize.js +0 -88
  39. package/esm/funcs/contentV2ContentFinalize.js.map +0 -1
  40. package/esm/funcs/contentV2ContentRetrieve.d.ts +0 -16
  41. package/esm/funcs/contentV2ContentRetrieve.d.ts.map +0 -1
  42. package/esm/funcs/contentV2ContentRetrieve.js +0 -88
  43. package/esm/funcs/contentV2ContentRetrieve.js.map +0 -1
  44. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts +0 -7
  45. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts.map +0 -1
  46. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js +0 -35
  47. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js.map +0 -1
  48. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts +0 -7
  49. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts.map +0 -1
  50. package/esm/mcp-server/tools/contentV2ContentFinalize.js +0 -35
  51. package/esm/mcp-server/tools/contentV2ContentFinalize.js.map +0 -1
  52. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts +0 -7
  53. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts.map +0 -1
  54. package/esm/mcp-server/tools/contentV2ContentRetrieve.js +0 -35
  55. package/esm/mcp-server/tools/contentV2ContentRetrieve.js.map +0 -1
  56. package/esm/models/generatecontentdraftrequest.d.ts +0 -9
  57. package/esm/models/generatecontentdraftrequest.d.ts.map +0 -1
  58. package/esm/models/generatecontentdraftrequest.js +0 -12
  59. package/esm/models/generatecontentdraftrequest.js.map +0 -1
  60. package/esm/models/publiccontent.d.ts +0 -11
  61. package/esm/models/publiccontent.d.ts.map +0 -1
  62. package/esm/models/publiccontent.js +0 -14
  63. package/esm/models/publiccontent.js.map +0 -1
  64. package/esm/models/v2contentdraftscreateop.d.ts +0 -6
  65. package/esm/models/v2contentdraftscreateop.d.ts.map +0 -1
  66. package/esm/models/v2contentdraftscreateop.js +0 -12
  67. package/esm/models/v2contentdraftscreateop.js.map +0 -1
  68. package/esm/models/v2contentfinalizeop.d.ts +0 -10
  69. package/esm/models/v2contentfinalizeop.d.ts.map +0 -1
  70. package/esm/models/v2contentfinalizeop.js +0 -15
  71. package/esm/models/v2contentfinalizeop.js.map +0 -1
  72. package/esm/models/v2contentretrieveop.d.ts +0 -10
  73. package/esm/models/v2contentretrieveop.d.ts.map +0 -1
  74. package/esm/models/v2contentretrieveop.js +0 -15
  75. package/esm/models/v2contentretrieveop.js.map +0 -1
  76. package/src/funcs/contentV2ContentDraftsCreate.ts +0 -145
  77. package/src/funcs/contentV2ContentFinalize.ts +0 -153
  78. package/src/funcs/contentV2ContentRetrieve.ts +0 -153
  79. package/src/mcp-server/tools/contentV2ContentDraftsCreate.ts +0 -43
  80. package/src/mcp-server/tools/contentV2ContentFinalize.ts +0 -43
  81. package/src/mcp-server/tools/contentV2ContentRetrieve.ts +0 -43
  82. package/src/models/generatecontentdraftrequest.ts +0 -28
  83. package/src/models/publiccontent.ts +0 -24
  84. package/src/models/v2contentdraftscreateop.ts +0 -20
  85. package/src/models/v2contentfinalizeop.ts +0 -28
  86. package/src/models/v2contentretrieveop.ts +0 -28
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentFinalize.js","sourceRoot":"","sources":["../../src/funcs/contentV2ContentFinalize.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,EAEL,kC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,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
@@ -1,16 +0,0 @@
1
- import { LightsageMcpCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { APIError } from "../models/errors/apierror.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
6
- import { V2ContentRetrieveRequest } from "../models/v2contentretrieveop.js";
7
- import { APIPromise } from "../types/async.js";
8
- import { Result } from "../types/fp.js";
9
- /**
10
- * Retrieve Content
11
- *
12
- * @remarks
13
- * Returns a content record by ID, including title, markdown body, slug, and status.
14
- */
15
- export declare function contentV2ContentRetrieve(client$: LightsageMcpCore, request: V2ContentRetrieveRequest, options?: RequestOptions): APIPromise<Result<Response, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
- //# sourceMappingURL=contentV2ContentRetrieve.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentRetrieve.d.ts","sourceRoot":"","sources":["../../src/funcs/contentV2ContentRetrieve.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAI9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,wBAAwB,EAEzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,QAAQ,EACN,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
@@ -1,88 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 39ba2f152e98
4
- */
5
- import { encodeSimple } from "../lib/encodings.js";
6
- import { compactMap } from "../lib/primitives.js";
7
- import { safeParse } from "../lib/schemas.js";
8
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
- import { pathToFunc } from "../lib/url.js";
10
- import { V2ContentRetrieveRequest$zodSchema, } from "../models/v2contentretrieveop.js";
11
- import { APIPromise } from "../types/async.js";
12
- /**
13
- * Retrieve Content
14
- *
15
- * @remarks
16
- * Returns a content record by ID, including title, markdown body, slug, and status.
17
- */
18
- export function contentV2ContentRetrieve(client$, request, options) {
19
- return new APIPromise($do(client$, request, options));
20
- }
21
- async function $do(client$, request, options) {
22
- const parsed$ = safeParse(request, (value$) => V2ContentRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
23
- if (!parsed$.ok) {
24
- return [parsed$, { status: "invalid" }];
25
- }
26
- const payload$ = parsed$.value;
27
- const body$ = null;
28
- const pathParams$ = {
29
- content_id: encodeSimple("content_id", payload$.content_id, {
30
- explode: false,
31
- charEncoding: "percent",
32
- }),
33
- };
34
- const path$ = pathToFunc("/v2/content/{content_id}")(pathParams$);
35
- const headers$ = new Headers(compactMap({
36
- Accept: "application/json",
37
- }));
38
- const securityInput = await extractSecurity(client$._options.security);
39
- const requestSecurity = resolveGlobalSecurity(securityInput);
40
- const context = {
41
- options: client$._options,
42
- baseURL: options?.serverURL ?? client$._baseURL ?? "",
43
- operationID: "v2_content_retrieve",
44
- oAuth2Scopes: null,
45
- resolvedSecurity: requestSecurity,
46
- securitySource: client$._options.security,
47
- retryConfig: options?.retries
48
- || client$._options.retryConfig
49
- || { strategy: "none" },
50
- retryCodes: options?.retryCodes || [
51
- "429",
52
- "500",
53
- "502",
54
- "503",
55
- "504",
56
- ],
57
- };
58
- const requestRes = client$._createRequest(context, {
59
- security: requestSecurity,
60
- method: "GET",
61
- baseURL: options?.serverURL,
62
- path: path$,
63
- headers: headers$,
64
- body: body$,
65
- userAgent: client$._options.userAgent,
66
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs
67
- || -1,
68
- }, options);
69
- if (!requestRes.ok) {
70
- return [requestRes, { status: "invalid" }];
71
- }
72
- const req$ = requestRes.value;
73
- const doResult = await client$._do(req$, {
74
- context,
75
- errorCodes: [],
76
- retryConfig: context.retryConfig,
77
- retryCodes: context.retryCodes,
78
- });
79
- if (!doResult.ok) {
80
- return [doResult, { status: "request-error", request: req$ }];
81
- }
82
- return [doResult, {
83
- status: "complete",
84
- "request": req$,
85
- response: doResult.value,
86
- }];
87
- }
88
- //# sourceMappingURL=contentV2ContentRetrieve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentRetrieve.js","sourceRoot":"","sources":["../../src/funcs/contentV2ContentRetrieve.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO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ACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ToolDefinition } from "../tools.js";
2
- declare const args: {
3
- request: import("zod").ZodType<import("../../models/generatecontentdraftrequest.js").GenerateContentDraftRequest, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../models/generatecontentdraftrequest.js").GenerateContentDraftRequest, unknown>>;
4
- };
5
- export declare const tool$contentV2ContentDraftsCreate: ToolDefinition<typeof args>;
6
- export {};
7
- //# sourceMappingURL=contentV2ContentDraftsCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contentV2ContentDraftsCreate.d.ts","sourceRoot":"","sources":["../../../src/mcp-server/tools/contentV2ContentDraftsCreate.ts"],"names":[],"mappings":"AAOA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,OAAO,IAAI,CA6BzE,CAAC"}
@@ -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
- }