@hubfluencer/mcp 0.10.0 → 0.12.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.
- package/README.md +36 -12
- package/dist/index.js +276 -89
- package/package.json +1 -1
- package/src/core.ts +103 -44
- package/src/index.ts +381 -133
- package/src/output-schemas.ts +6 -0
- package/src/uploads.ts +1 -1
package/src/output-schemas.ts
CHANGED
|
@@ -249,6 +249,9 @@ export const createEditorOutput = z
|
|
|
249
249
|
estimated_credits: z.union([z.number(), z.null()]).optional(),
|
|
250
250
|
available_credits: z.union([z.number(), z.null()]).optional(),
|
|
251
251
|
affordable: z.boolean().optional(),
|
|
252
|
+
launched: z.boolean().optional(),
|
|
253
|
+
authorized_credits: z.number().optional(),
|
|
254
|
+
credits_spent: z.number().optional(),
|
|
252
255
|
charged: z.boolean().optional(),
|
|
253
256
|
note: z.string().optional(),
|
|
254
257
|
next: z.string().optional(),
|
|
@@ -269,6 +272,9 @@ export const makeVideoOutput = z
|
|
|
269
272
|
estimated_credits: z.union([z.number(), z.null()]).optional(),
|
|
270
273
|
available_credits: z.union([z.number(), z.null()]).optional(),
|
|
271
274
|
affordable: z.boolean().optional(),
|
|
275
|
+
launched: z.boolean().optional(),
|
|
276
|
+
authorized_credits: z.number().optional(),
|
|
277
|
+
credits_spent: z.number().optional(),
|
|
272
278
|
charged: z.boolean().optional(),
|
|
273
279
|
saved_to: z.union([z.string(), z.null()]).optional(),
|
|
274
280
|
timed_out: z.boolean().optional(),
|
package/src/uploads.ts
CHANGED
|
@@ -63,7 +63,7 @@ const ALLOW_LOOPBACK_FETCH =
|
|
|
63
63
|
const MAX_VIDEO_BYTES = 500_000_000; // EditorUpload.@max_upload_bytes
|
|
64
64
|
const MAX_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
65
65
|
export const MAX_PRODUCT_IMAGE_BYTES = 8 * 1024 * 1024;
|
|
66
|
-
export const MAX_LOGO_BYTES =
|
|
66
|
+
export const MAX_LOGO_BYTES = 5 * 1024 * 1024; // Editor.Logo.@max_logo_bytes
|
|
67
67
|
export const MAX_SHORT_LOGO_BYTES = 5 * 1024 * 1024;
|
|
68
68
|
export const MAX_CLOSING_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
69
69
|
const MULTIPART_THRESHOLD = 50 * 1024 * 1024; // @multipart_min_size — at/above this, use multipart
|