ugcinc 5.1.0 → 5.2.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 +13 -1
- package/dist/imessage-conversation.d.ts +18 -0
- package/dist/imessage-conversation.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -399,6 +399,17 @@ const still = await client.media.renderIMessageConversation({
|
|
|
399
399
|
});
|
|
400
400
|
```
|
|
401
401
|
|
|
402
|
+
Progress: `getIMessageConversation({jobId})` (MCP: `get_imessage_conversation`) returns optional
|
|
403
|
+
`phase`, `framesCompleted`, `framesTotal`, `lastProgressAt`, `heartbeatAt` and
|
|
404
|
+
`waitingReason` for new native jobs. Frame counts measure captured output frames,
|
|
405
|
+
not elapsed video time. `lastProgressAt` changes when phase/count/waiting reason
|
|
406
|
+
advances; `heartbeatAt` indicates the renderer was reachable, not that work advanced.
|
|
407
|
+
Phases are `queued`, `waiting`, `preparing`, `capturing`, `validating`, `encoding`,
|
|
408
|
+
`uploading`, `completed`, `failed`, or `cancelled`. Waiting reasons are `capacity`,
|
|
409
|
+
`device_unavailable`, or `relay_unavailable` when known. Overall `progress` is a
|
|
410
|
+
phase-weighted estimate, not a completion-time prediction. Older jobs may omit the
|
|
411
|
+
new fields. Do not resubmit merely because one poll has unchanged counts.
|
|
412
|
+
|
|
402
413
|
API reference:
|
|
403
414
|
|
|
404
415
|
- `POST /media/render/imessage`: authenticated organization-scoped submission.
|
|
@@ -789,6 +800,7 @@ It distinguishes measured facts from inference and requires verified public
|
|
|
789
800
|
HTTPS previews. SAM-dependent capabilities remain deferred and are not advertised
|
|
790
801
|
as available tools. A successful API call alone does not certify content quality.
|
|
791
802
|
|
|
803
|
+
|
|
792
804
|
## Native iMessage workflows (5.0)
|
|
793
805
|
|
|
794
806
|
All iMessage images and videos use the native service. The Remotion iMessage
|
|
@@ -828,5 +840,5 @@ https://docs.ugc.inc/guides/imessage-conversations for the full contract.
|
|
|
828
840
|
Install the bundled instructions with:
|
|
829
841
|
|
|
830
842
|
```bash
|
|
831
|
-
npx ugcinc@5.
|
|
843
|
+
npx ugcinc@5.0.3 init --update imessage media content-automation automations
|
|
832
844
|
```
|
|
@@ -859,6 +859,12 @@ export declare const iMessageConversationJobSchema: z.ZodObject<{
|
|
|
859
859
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
|
|
860
860
|
cancelRequested: z.ZodOptional<z.ZodBoolean>;
|
|
861
861
|
progress: z.ZodNumber;
|
|
862
|
+
phase: z.ZodOptional<z.ZodEnum<["queued", "waiting", "preparing", "capturing", "validating", "encoding", "uploading", "completed", "failed", "cancelled"]>>;
|
|
863
|
+
framesCompleted: z.ZodOptional<z.ZodNumber>;
|
|
864
|
+
framesTotal: z.ZodOptional<z.ZodNumber>;
|
|
865
|
+
lastProgressAt: z.ZodOptional<z.ZodString>;
|
|
866
|
+
heartbeatAt: z.ZodOptional<z.ZodString>;
|
|
867
|
+
waitingReason: z.ZodOptional<z.ZodEnum<["capacity", "device_unavailable", "relay_unavailable"]>>;
|
|
862
868
|
fps: z.ZodLiteral<60>;
|
|
863
869
|
output: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
864
870
|
kind: z.ZodLiteral<"video">;
|
|
@@ -907,6 +913,12 @@ export declare const iMessageConversationJobSchema: z.ZodObject<{
|
|
|
907
913
|
atMs?: number | undefined;
|
|
908
914
|
} | undefined;
|
|
909
915
|
cancelRequested?: boolean | undefined;
|
|
916
|
+
phase?: "completed" | "failed" | "cancelled" | "queued" | "waiting" | "preparing" | "capturing" | "validating" | "encoding" | "uploading" | undefined;
|
|
917
|
+
framesCompleted?: number | undefined;
|
|
918
|
+
framesTotal?: number | undefined;
|
|
919
|
+
lastProgressAt?: string | undefined;
|
|
920
|
+
heartbeatAt?: string | undefined;
|
|
921
|
+
waitingReason?: "capacity" | "device_unavailable" | "relay_unavailable" | undefined;
|
|
910
922
|
contentType?: "image/png" | "video/mp4" | undefined;
|
|
911
923
|
url?: string | undefined;
|
|
912
924
|
error?: {
|
|
@@ -928,6 +940,12 @@ export declare const iMessageConversationJobSchema: z.ZodObject<{
|
|
|
928
940
|
atMs?: number | undefined;
|
|
929
941
|
} | undefined;
|
|
930
942
|
cancelRequested?: boolean | undefined;
|
|
943
|
+
phase?: "completed" | "failed" | "cancelled" | "queued" | "waiting" | "preparing" | "capturing" | "validating" | "encoding" | "uploading" | undefined;
|
|
944
|
+
framesCompleted?: number | undefined;
|
|
945
|
+
framesTotal?: number | undefined;
|
|
946
|
+
lastProgressAt?: string | undefined;
|
|
947
|
+
heartbeatAt?: string | undefined;
|
|
948
|
+
waitingReason?: "capacity" | "device_unavailable" | "relay_unavailable" | undefined;
|
|
931
949
|
contentType?: "image/png" | "video/mp4" | undefined;
|
|
932
950
|
url?: string | undefined;
|
|
933
951
|
error?: {
|
|
@@ -333,6 +333,12 @@ exports.iMessageConversationJobSchema = zod_1.z.object({
|
|
|
333
333
|
status: zod_1.z.enum(['pending', 'processing', 'completed', 'failed', 'cancelled']),
|
|
334
334
|
cancelRequested: zod_1.z.boolean().optional(),
|
|
335
335
|
progress: zod_1.z.number().min(0).max(100),
|
|
336
|
+
phase: zod_1.z.enum(['queued', 'waiting', 'preparing', 'capturing', 'validating', 'encoding', 'uploading', 'completed', 'failed', 'cancelled']).optional(),
|
|
337
|
+
framesCompleted: zod_1.z.number().int().min(0).max(7201).optional(),
|
|
338
|
+
framesTotal: zod_1.z.number().int().min(0).max(7201).optional(),
|
|
339
|
+
lastProgressAt: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
340
|
+
heartbeatAt: zod_1.z.string().datetime({ offset: true }).optional(),
|
|
341
|
+
waitingReason: zod_1.z.enum(['capacity', 'device_unavailable', 'relay_unavailable']).optional(),
|
|
336
342
|
fps: zod_1.z.literal(60),
|
|
337
343
|
output: outputSchema.optional(),
|
|
338
344
|
contentType: zod_1.z.enum(['image/png', 'video/mp4']).optional(),
|