@hubfluencer/mcp 0.9.1 → 0.11.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.
@@ -65,8 +65,32 @@ export const getStatusOutput = z
65
65
  stale: z.boolean().optional(),
66
66
  active_segment_ids: z.array(z.union([z.number(), z.string()])).optional(),
67
67
  stale_segment_ids: z.array(z.union([z.number(), z.string()])).optional(),
68
- // Short only, additive (normalizeStatus forwards them gated on typeof
69
- // boolean, so the precise type can never reject a payload).
68
+ // Short only, additive (normalizeStatus forwards each gated on its typeof,
69
+ // so the precise type can never reject a payload).
70
+ failed_stage: z
71
+ .string()
72
+ .optional()
73
+ .describe(
74
+ "Short only: exact API failure phase behind a terminal failure.",
75
+ ),
76
+ failure_code: z
77
+ .string()
78
+ .optional()
79
+ .describe("Short only: stable machine-readable failure classification."),
80
+ failure_details: z
81
+ .record(z.string(), z.unknown())
82
+ .optional()
83
+ .describe("Short only: structured provider/QC details for recovery."),
84
+ failure_source: z
85
+ .string()
86
+ .optional()
87
+ .describe(
88
+ "Short only: worker/recovery layer that finalized the failure.",
89
+ ),
90
+ failure_attempt: z
91
+ .number()
92
+ .optional()
93
+ .describe("Short only: paid generation attempt number that failed."),
70
94
  latest_render_free: z.boolean().optional(),
71
95
  last_free_rerender_failed: z.boolean().optional(),
72
96
  })
@@ -85,6 +109,31 @@ export const waitForCompletionOutput = z
85
109
  stale: z.boolean().optional(),
86
110
  active_segment_ids: z.array(z.union([z.number(), z.string()])).optional(),
87
111
  stale_segment_ids: z.array(z.union([z.number(), z.string()])).optional(),
112
+ // Short only, additive — mirrors getStatusOutput (see there).
113
+ failed_stage: z
114
+ .string()
115
+ .optional()
116
+ .describe(
117
+ "Short only: exact API failure phase behind a terminal failure.",
118
+ ),
119
+ failure_code: z
120
+ .string()
121
+ .optional()
122
+ .describe("Short only: stable machine-readable failure classification."),
123
+ failure_details: z
124
+ .record(z.string(), z.unknown())
125
+ .optional()
126
+ .describe("Short only: structured provider/QC details for recovery."),
127
+ failure_source: z
128
+ .string()
129
+ .optional()
130
+ .describe(
131
+ "Short only: worker/recovery layer that finalized the failure.",
132
+ ),
133
+ failure_attempt: z
134
+ .number()
135
+ .optional()
136
+ .describe("Short only: paid generation attempt number that failed."),
88
137
  latest_render_free: z.boolean().optional(),
89
138
  last_free_rerender_failed: z.boolean().optional(),
90
139
  saved_to: z.union([z.string(), z.null()]).optional(),
@@ -200,6 +249,9 @@ export const createEditorOutput = z
200
249
  estimated_credits: z.union([z.number(), z.null()]).optional(),
201
250
  available_credits: z.union([z.number(), z.null()]).optional(),
202
251
  affordable: z.boolean().optional(),
252
+ launched: z.boolean().optional(),
253
+ authorized_credits: z.number().optional(),
254
+ credits_spent: z.number().optional(),
203
255
  charged: z.boolean().optional(),
204
256
  note: z.string().optional(),
205
257
  next: z.string().optional(),
@@ -220,6 +272,9 @@ export const makeVideoOutput = z
220
272
  estimated_credits: z.union([z.number(), z.null()]).optional(),
221
273
  available_credits: z.union([z.number(), z.null()]).optional(),
222
274
  affordable: z.boolean().optional(),
275
+ launched: z.boolean().optional(),
276
+ authorized_credits: z.number().optional(),
277
+ credits_spent: z.number().optional(),
223
278
  charged: z.boolean().optional(),
224
279
  saved_to: z.union([z.string(), z.null()]).optional(),
225
280
  timed_out: z.boolean().optional(),
package/src/uploads.ts CHANGED
@@ -63,7 +63,8 @@ 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 = 1 * 1024 * 1024; // Editor.Logo.@max_logo_bytes
66
+ export const MAX_LOGO_BYTES = 5 * 1024 * 1024; // Editor.Logo.@max_logo_bytes
67
+ export const MAX_SHORT_LOGO_BYTES = 5 * 1024 * 1024;
67
68
  export const MAX_CLOSING_IMAGE_BYTES = 20 * 1024 * 1024;
68
69
  const MULTIPART_THRESHOLD = 50 * 1024 * 1024; // @multipart_min_size — at/above this, use multipart
69
70
  const MAX_CATALOG_VIDEO_DURATION_SECONDS = 60; // CatalogAsset video validator