ugcinc 4.26.1 → 4.27.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 +189 -0
- package/dist/automations/nodes/create-dm.d.ts +7 -2
- package/dist/automations/nodes/create-dm.js +26 -2
- package/dist/automations/nodes/index.d.ts +6 -3
- package/dist/automations/nodes/remotion-composition.d.ts +6 -6
- package/dist/imessage-conversation.d.ts +907 -0
- package/dist/imessage-conversation.js +331 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -3
- package/dist/media-analysis.d.ts +272 -272
- package/dist/media.d.ts +11 -0
- package/dist/media.js +12 -0
- package/dist/render/compositions/IMessageDmComposition/types.d.ts +20 -20
- package/dist/render/types/remotion-composition.d.ts +16 -16
- package/dist/types.d.ts +1 -0
- package/package.json +5 -1
package/dist/media.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { BaseClient } from './base';
|
|
|
2
2
|
import type { MatchTextStyleParams, SampleColorsParams, MeasureLayoutParams, TranscribeAudioParams, MeasureAudioLevelsParams, ExtractFramesParams, DetectScenesParams, ReadImageTextParams, ReadVideoTextParams, MediaAnalysisJob } from './media-analysis';
|
|
3
3
|
import type { ListProfilePostsParams, ListProfilePostsResult, DownloadSocialPostParams, DownloadSocialPostResult } from './social-acquisition';
|
|
4
4
|
import type { ApiResponse } from './types';
|
|
5
|
+
import type { IMessageConversationInput, IMessageConversationJob } from './imessage-conversation';
|
|
5
6
|
export interface UserMedia {
|
|
6
7
|
id: string;
|
|
7
8
|
org_id: string;
|
|
@@ -216,6 +217,16 @@ export declare class MediaClient extends BaseClient {
|
|
|
216
217
|
getMediaAnalysis(params: {
|
|
217
218
|
jobId: string;
|
|
218
219
|
}): Promise<ApiResponse<MediaAnalysisJob>>;
|
|
220
|
+
/** Queue a native 60fps iMessage video or a lossless PNG snapshot of the same authored scene. */
|
|
221
|
+
renderIMessageConversation(params: IMessageConversationInput): Promise<ApiResponse<IMessageConversationJob>>;
|
|
222
|
+
/** Poll an iMessage render owned by this organization. */
|
|
223
|
+
getIMessageConversation(params: {
|
|
224
|
+
jobId: string;
|
|
225
|
+
}): Promise<ApiResponse<IMessageConversationJob>>;
|
|
226
|
+
/** Request cooperative cancellation; poll until cancelled or another terminal state. */
|
|
227
|
+
cancelIMessageConversation(params: {
|
|
228
|
+
jobId: string;
|
|
229
|
+
}): Promise<ApiResponse<IMessageConversationJob>>;
|
|
219
230
|
private waitForAnalysis;
|
|
220
231
|
/** List a bounded page of TikTok/Instagram references; does not download media. */
|
|
221
232
|
listProfilePosts(params: ListProfilePostsParams): Promise<ApiResponse<ListProfilePostsResult>>;
|
package/dist/media.js
CHANGED
|
@@ -40,6 +40,18 @@ class MediaClient extends base_1.BaseClient {
|
|
|
40
40
|
async getMediaAnalysis(params) {
|
|
41
41
|
return this.post('/media/analysis/status', params);
|
|
42
42
|
}
|
|
43
|
+
/** Queue a native 60fps iMessage video or a lossless PNG snapshot of the same authored scene. */
|
|
44
|
+
async renderIMessageConversation(params) {
|
|
45
|
+
return this.post('/media/render/imessage', params);
|
|
46
|
+
}
|
|
47
|
+
/** Poll an iMessage render owned by this organization. */
|
|
48
|
+
async getIMessageConversation(params) {
|
|
49
|
+
return this.post('/media/render/imessage/status', params);
|
|
50
|
+
}
|
|
51
|
+
/** Request cooperative cancellation; poll until cancelled or another terminal state. */
|
|
52
|
+
async cancelIMessageConversation(params) {
|
|
53
|
+
return this.post('/media/render/imessage/cancel', params);
|
|
54
|
+
}
|
|
43
55
|
async waitForAnalysis(initial) {
|
|
44
56
|
let response = initial;
|
|
45
57
|
for (let attempt = 0; attempt < 180 && response.ok && ['pending', 'processing'].includes(response.data.status); attempt++) {
|
|
@@ -385,37 +385,37 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
|
|
|
385
385
|
groupWithPrevious: z.ZodOptional<z.ZodBoolean>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
387
387
|
id: string;
|
|
388
|
-
text: string;
|
|
389
388
|
sender: "user" | "recipient";
|
|
389
|
+
text: string;
|
|
390
390
|
imageUrl?: string | undefined;
|
|
391
391
|
groupWithPrevious?: boolean | undefined;
|
|
392
392
|
}, {
|
|
393
393
|
id: string;
|
|
394
|
-
text: string;
|
|
395
394
|
sender: "user" | "recipient";
|
|
395
|
+
text: string;
|
|
396
396
|
imageUrl?: string | undefined;
|
|
397
397
|
groupWithPrevious?: boolean | undefined;
|
|
398
398
|
}>, "many">>;
|
|
399
399
|
dynamicCrop: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
400
400
|
cropVerticalCenter: z.ZodOptional<z.ZodBoolean>;
|
|
401
401
|
}, "strip", z.ZodTypeAny, {
|
|
402
|
-
width?: number | undefined;
|
|
403
|
-
height?: number | undefined;
|
|
404
|
-
backgroundColor?: string | undefined;
|
|
405
402
|
time?: string | undefined;
|
|
406
|
-
|
|
407
|
-
username?: string | undefined;
|
|
408
|
-
profilePicUrl?: string | undefined;
|
|
403
|
+
fps?: number | undefined;
|
|
409
404
|
messages?: {
|
|
410
405
|
id: string;
|
|
411
|
-
text: string;
|
|
412
406
|
sender: "user" | "recipient";
|
|
407
|
+
text: string;
|
|
413
408
|
imageUrl?: string | undefined;
|
|
414
409
|
groupWithPrevious?: boolean | undefined;
|
|
415
410
|
}[] | undefined;
|
|
416
|
-
dynamicCrop?: Record<string, any> | undefined;
|
|
417
|
-
fps?: number | undefined;
|
|
418
411
|
durationInFrames?: number | undefined;
|
|
412
|
+
width?: number | undefined;
|
|
413
|
+
height?: number | undefined;
|
|
414
|
+
backgroundColor?: string | undefined;
|
|
415
|
+
lightMode?: boolean | undefined;
|
|
416
|
+
username?: string | undefined;
|
|
417
|
+
profilePicUrl?: string | undefined;
|
|
418
|
+
dynamicCrop?: Record<string, any> | undefined;
|
|
419
419
|
showDebugOverlay?: boolean | undefined;
|
|
420
420
|
referenceImageUrl?: string | undefined;
|
|
421
421
|
showReferenceImage?: boolean | undefined;
|
|
@@ -582,23 +582,23 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
|
|
|
582
582
|
readReceiptLeft?: number | undefined;
|
|
583
583
|
readReceiptRight?: number | undefined;
|
|
584
584
|
}, {
|
|
585
|
-
width?: number | undefined;
|
|
586
|
-
height?: number | undefined;
|
|
587
|
-
backgroundColor?: string | undefined;
|
|
588
585
|
time?: string | undefined;
|
|
589
|
-
|
|
590
|
-
username?: string | undefined;
|
|
591
|
-
profilePicUrl?: string | undefined;
|
|
586
|
+
fps?: number | undefined;
|
|
592
587
|
messages?: {
|
|
593
588
|
id: string;
|
|
594
|
-
text: string;
|
|
595
589
|
sender: "user" | "recipient";
|
|
590
|
+
text: string;
|
|
596
591
|
imageUrl?: string | undefined;
|
|
597
592
|
groupWithPrevious?: boolean | undefined;
|
|
598
593
|
}[] | undefined;
|
|
599
|
-
dynamicCrop?: Record<string, any> | undefined;
|
|
600
|
-
fps?: number | undefined;
|
|
601
594
|
durationInFrames?: number | undefined;
|
|
595
|
+
width?: number | undefined;
|
|
596
|
+
height?: number | undefined;
|
|
597
|
+
backgroundColor?: string | undefined;
|
|
598
|
+
lightMode?: boolean | undefined;
|
|
599
|
+
username?: string | undefined;
|
|
600
|
+
profilePicUrl?: string | undefined;
|
|
601
|
+
dynamicCrop?: Record<string, any> | undefined;
|
|
602
602
|
showDebugOverlay?: boolean | undefined;
|
|
603
603
|
referenceImageUrl?: string | undefined;
|
|
604
604
|
showReferenceImage?: boolean | undefined;
|
|
@@ -8,18 +8,18 @@ export declare const remotionCompositionSchema: z.ZodObject<{
|
|
|
8
8
|
durationInFrames: z.ZodNumber;
|
|
9
9
|
inputProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10
10
|
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
fps: number;
|
|
12
|
+
durationInFrames: number;
|
|
11
13
|
width: number;
|
|
12
14
|
height: number;
|
|
13
15
|
source: string;
|
|
14
|
-
fps: number;
|
|
15
|
-
durationInFrames: number;
|
|
16
16
|
inputProps: Record<string, unknown>;
|
|
17
17
|
}, {
|
|
18
|
+
fps: number;
|
|
19
|
+
durationInFrames: number;
|
|
18
20
|
width: number;
|
|
19
21
|
height: number;
|
|
20
22
|
source: string;
|
|
21
|
-
fps: number;
|
|
22
|
-
durationInFrames: number;
|
|
23
23
|
inputProps: Record<string, unknown>;
|
|
24
24
|
}>;
|
|
25
25
|
export type RemotionCompositionInput = z.infer<typeof remotionCompositionSchema>;
|
|
@@ -29,12 +29,12 @@ export declare const remotionCompositionPortSchema: z.ZodObject<{
|
|
|
29
29
|
isArray: z.ZodBoolean;
|
|
30
30
|
required: z.ZodBoolean;
|
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
|
-
type: "number" | "boolean" | "object" | "
|
|
32
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
33
33
|
id: string;
|
|
34
34
|
isArray: boolean;
|
|
35
35
|
required: boolean;
|
|
36
36
|
}, {
|
|
37
|
-
type: "number" | "boolean" | "object" | "
|
|
37
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
38
38
|
id: string;
|
|
39
39
|
isArray: boolean;
|
|
40
40
|
required: boolean;
|
|
@@ -54,22 +54,22 @@ export declare const remotionCompositionNodeSchema: z.ZodObject<{
|
|
|
54
54
|
isArray: z.ZodBoolean;
|
|
55
55
|
required: z.ZodBoolean;
|
|
56
56
|
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
type: "number" | "boolean" | "object" | "
|
|
57
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
58
58
|
id: string;
|
|
59
59
|
isArray: boolean;
|
|
60
60
|
required: boolean;
|
|
61
61
|
}, {
|
|
62
|
-
type: "number" | "boolean" | "object" | "
|
|
62
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
63
63
|
id: string;
|
|
64
64
|
isArray: boolean;
|
|
65
65
|
required: boolean;
|
|
66
66
|
}>, "many">, {
|
|
67
|
-
type: "number" | "boolean" | "object" | "
|
|
67
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
68
68
|
id: string;
|
|
69
69
|
isArray: boolean;
|
|
70
70
|
required: boolean;
|
|
71
71
|
}[], {
|
|
72
|
-
type: "number" | "boolean" | "object" | "
|
|
72
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
73
73
|
id: string;
|
|
74
74
|
isArray: boolean;
|
|
75
75
|
required: boolean;
|
|
@@ -77,6 +77,8 @@ export declare const remotionCompositionNodeSchema: z.ZodObject<{
|
|
|
77
77
|
outputMode: z.ZodEnum<["single", "per-input"]>;
|
|
78
78
|
selectionMode: z.ZodNull;
|
|
79
79
|
}, "strict", z.ZodTypeAny, {
|
|
80
|
+
fps: number;
|
|
81
|
+
durationInFrames: number;
|
|
80
82
|
width: number;
|
|
81
83
|
height: number;
|
|
82
84
|
source: string;
|
|
@@ -84,28 +86,26 @@ export declare const remotionCompositionNodeSchema: z.ZodObject<{
|
|
|
84
86
|
selectionMode: null;
|
|
85
87
|
outputType: "video" | "image";
|
|
86
88
|
inputs: {
|
|
87
|
-
type: "number" | "boolean" | "object" | "
|
|
89
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
88
90
|
id: string;
|
|
89
91
|
isArray: boolean;
|
|
90
92
|
required: boolean;
|
|
91
93
|
}[];
|
|
92
|
-
fps: number;
|
|
93
|
-
durationInFrames: number;
|
|
94
94
|
inputProps: Record<string, unknown>;
|
|
95
95
|
}, {
|
|
96
|
+
fps: number;
|
|
97
|
+
durationInFrames: number;
|
|
96
98
|
width: number;
|
|
97
99
|
height: number;
|
|
98
100
|
source: string;
|
|
99
101
|
outputMode: "per-input" | "single";
|
|
100
102
|
selectionMode: null;
|
|
101
103
|
inputs: {
|
|
102
|
-
type: "number" | "boolean" | "object" | "
|
|
104
|
+
type: "number" | "boolean" | "object" | "text" | "video" | "image" | "audio";
|
|
103
105
|
id: string;
|
|
104
106
|
isArray: boolean;
|
|
105
107
|
required: boolean;
|
|
106
108
|
}[];
|
|
107
|
-
fps: number;
|
|
108
|
-
durationInFrames: number;
|
|
109
109
|
inputProps: Record<string, unknown>;
|
|
110
110
|
outputType?: "video" | "image" | undefined;
|
|
111
111
|
}>;
|
package/dist/types.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface ErrorResponse {
|
|
|
18
18
|
retryable?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export type ApiResponse<T> = SuccessResponse<T> | ErrorResponse;
|
|
21
|
+
export type { IMessageConversationInput, IMessageConversationSettings, IMessageTiming, IMessageConversationPlan, IMessageConversationJob } from './imessage-conversation';
|
|
21
22
|
export type { PublicPostFailureCode, PublicPostRecovery, PublicPostNextAction, PublicPostFailure } from './post-failure';
|
|
22
23
|
export type { ListProfilePostsParams, ListProfilePostsResult, DownloadSocialPostParams, DownloadSocialPostResult, SocialReferencePost, SocialReferenceAsset } from './social-acquisition';
|
|
23
24
|
export type { MatchTextStyleParams, MatchTextStyleResult, SampleColorsParams, MeasureLayoutParams, SampleColorsResult, MeasureLayoutResult, TranscribeAudioParams, MeasureAudioLevelsParams, AudioTranscriptResult, AudioLevelsResult, ReadImageTextParams, ReadVideoTextParams, ImageTextResult, VideoTextResult, ExtractFramesParams, DetectScenesParams, FramesResult, ScenesResult, MediaAnalysisResult, MediaAnalysisJob } from "./media-analysis";
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.27.0",
|
|
4
4
|
"description": "TypeScript/JavaScript client for the UGC Inc API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
|
+
"./imessage": {
|
|
9
|
+
"types": "./dist/imessage-conversation.d.ts",
|
|
10
|
+
"default": "./dist/imessage-conversation.js"
|
|
11
|
+
},
|
|
8
12
|
".": {
|
|
9
13
|
"types": "./dist/index.d.ts",
|
|
10
14
|
"default": "./dist/index.js"
|