ugcinc 5.2.0 → 5.3.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/dist/content-skills.js +2 -2
- package/dist/imessage-conversation.d.ts +30 -0
- package/dist/imessage-conversation.js +10 -0
- package/dist/media-analysis.js +1 -1
- package/dist/render/compositions/IMessageDmComposition/convertPropsToElements.d.ts +27 -0
- package/dist/render/compositions/IMessageDmComposition/convertPropsToElements.js +629 -0
- package/dist/render/compositions/IMessageDmComposition/index.d.ts +21 -0
- package/dist/render/compositions/IMessageDmComposition/index.js +504 -0
- package/dist/render/compositions/IMessageDmComposition/types.d.ts +767 -0
- package/dist/render/compositions/IMessageDmComposition/types.js +228 -0
- package/dist/render/types/native-text.d.ts +106 -1
- package/dist/render/types/native-text.js +17 -2
- package/dist/render.d.ts +1 -1
- package/dist/render.js +1 -1
- package/dist/skills.js +2 -2
- package/package.json +1 -1
- package/skills/media/SKILL.md +22 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* iMessage DM Composition Types
|
|
4
|
+
*
|
|
5
|
+
* Types for the iMessage DM conversation composition.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.iMessageDmPropsSchema = void 0;
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
/**
|
|
11
|
+
* Zod schema for iMessage DM composition props (for Remotion)
|
|
12
|
+
*/
|
|
13
|
+
exports.iMessageDmPropsSchema = zod_1.z.object({
|
|
14
|
+
// Canvas
|
|
15
|
+
width: zod_1.z.number().optional(),
|
|
16
|
+
height: zod_1.z.number().optional(),
|
|
17
|
+
durationInFrames: zod_1.z.number().optional(),
|
|
18
|
+
fps: zod_1.z.number().optional(),
|
|
19
|
+
// Debug
|
|
20
|
+
showDebugOverlay: zod_1.z.boolean().optional(),
|
|
21
|
+
referenceImageUrl: zod_1.z.string().optional(),
|
|
22
|
+
showReferenceImage: zod_1.z.boolean().optional(),
|
|
23
|
+
referenceOpacity: zod_1.z.number().optional(),
|
|
24
|
+
// Light mode
|
|
25
|
+
lightMode: zod_1.z.boolean().optional(),
|
|
26
|
+
// iMessage header
|
|
27
|
+
headerTop: zod_1.z.number().optional(),
|
|
28
|
+
headerBottom: zod_1.z.number().optional(),
|
|
29
|
+
headerBackgroundColor: zod_1.z.string().optional(),
|
|
30
|
+
// Header profile section
|
|
31
|
+
profilePicUrl: zod_1.z.string().optional(),
|
|
32
|
+
profilePicTop: zod_1.z.number().optional(),
|
|
33
|
+
profilePicBottom: zod_1.z.number().optional(),
|
|
34
|
+
profilePicLeft: zod_1.z.number().optional(),
|
|
35
|
+
profilePicRight: zod_1.z.number().optional(),
|
|
36
|
+
username: zod_1.z.string().optional(),
|
|
37
|
+
usernameTop: zod_1.z.number().optional(),
|
|
38
|
+
usernameBottom: zod_1.z.number().optional(),
|
|
39
|
+
usernameLeft: zod_1.z.number().optional(),
|
|
40
|
+
usernameRight: zod_1.z.number().optional(),
|
|
41
|
+
usernameFontSize: zod_1.z.number().optional(),
|
|
42
|
+
usernameLetterSpacing: zod_1.z.number().optional(),
|
|
43
|
+
usernameColor: zod_1.z.string().optional(),
|
|
44
|
+
usernameArrowOffsetX: zod_1.z.number().optional(),
|
|
45
|
+
usernameArrowOffsetY: zod_1.z.number().optional(),
|
|
46
|
+
usernameArrowWidth: zod_1.z.number().optional(),
|
|
47
|
+
usernameArrowHeight: zod_1.z.number().optional(),
|
|
48
|
+
// Back arrow
|
|
49
|
+
backArrowTop: zod_1.z.number().optional(),
|
|
50
|
+
backArrowBottom: zod_1.z.number().optional(),
|
|
51
|
+
backArrowLeft: zod_1.z.number().optional(),
|
|
52
|
+
backArrowRight: zod_1.z.number().optional(),
|
|
53
|
+
// Unread badge
|
|
54
|
+
unreadBadgeText: zod_1.z.string().optional(),
|
|
55
|
+
unreadBadgeTop: zod_1.z.number().optional(),
|
|
56
|
+
unreadBadgeBottom: zod_1.z.number().optional(),
|
|
57
|
+
unreadBadgeLeft: zod_1.z.number().optional(),
|
|
58
|
+
unreadBadgeFontSize: zod_1.z.number().optional(),
|
|
59
|
+
unreadBadgeLetterSpacing: zod_1.z.number().optional(),
|
|
60
|
+
unreadBadgeTextColor: zod_1.z.string().optional(),
|
|
61
|
+
unreadBadgeBorderRadius: zod_1.z.number().optional(),
|
|
62
|
+
unreadBadgePaddingLeft: zod_1.z.number().optional(),
|
|
63
|
+
unreadBadgePaddingRight: zod_1.z.number().optional(),
|
|
64
|
+
// Camera icon
|
|
65
|
+
cameraIconTop: zod_1.z.number().optional(),
|
|
66
|
+
cameraIconBottom: zod_1.z.number().optional(),
|
|
67
|
+
cameraIconLeft: zod_1.z.number().optional(),
|
|
68
|
+
cameraIconRight: zod_1.z.number().optional(),
|
|
69
|
+
dividerLineY: zod_1.z.number().optional(),
|
|
70
|
+
dividerLineColor: zod_1.z.string().optional(),
|
|
71
|
+
backgroundColor: zod_1.z.string().optional(),
|
|
72
|
+
// Status bar - Time
|
|
73
|
+
time: zod_1.z.string().optional(),
|
|
74
|
+
timeRight: zod_1.z.number().optional(),
|
|
75
|
+
timeBottom: zod_1.z.number().optional(),
|
|
76
|
+
timeFontSize: zod_1.z.number().optional(),
|
|
77
|
+
timeLetterSpacing: zod_1.z.number().optional(),
|
|
78
|
+
timeColor: zod_1.z.string().optional(),
|
|
79
|
+
// Status bar - No notifications
|
|
80
|
+
noNotisTop: zod_1.z.number().optional(),
|
|
81
|
+
noNotisBottom: zod_1.z.number().optional(),
|
|
82
|
+
noNotisLeft: zod_1.z.number().optional(),
|
|
83
|
+
noNotisRight: zod_1.z.number().optional(),
|
|
84
|
+
// Status bar - Cell signal
|
|
85
|
+
cellLevel: zod_1.z.number().min(0).max(4).optional(),
|
|
86
|
+
cell1Top: zod_1.z.number().optional(),
|
|
87
|
+
cell1Bottom: zod_1.z.number().optional(),
|
|
88
|
+
cell1Left: zod_1.z.number().optional(),
|
|
89
|
+
cell1Right: zod_1.z.number().optional(),
|
|
90
|
+
cell2Top: zod_1.z.number().optional(),
|
|
91
|
+
cell2Bottom: zod_1.z.number().optional(),
|
|
92
|
+
cell2Left: zod_1.z.number().optional(),
|
|
93
|
+
cell2Right: zod_1.z.number().optional(),
|
|
94
|
+
cell3Top: zod_1.z.number().optional(),
|
|
95
|
+
cell3Bottom: zod_1.z.number().optional(),
|
|
96
|
+
cell3Left: zod_1.z.number().optional(),
|
|
97
|
+
cell3Right: zod_1.z.number().optional(),
|
|
98
|
+
cell4Top: zod_1.z.number().optional(),
|
|
99
|
+
cell4Bottom: zod_1.z.number().optional(),
|
|
100
|
+
cell4Left: zod_1.z.number().optional(),
|
|
101
|
+
cell4Right: zod_1.z.number().optional(),
|
|
102
|
+
// Status bar - WiFi
|
|
103
|
+
wifiTop: zod_1.z.number().optional(),
|
|
104
|
+
wifiBottom: zod_1.z.number().optional(),
|
|
105
|
+
wifiLeft: zod_1.z.number().optional(),
|
|
106
|
+
wifiRight: zod_1.z.number().optional(),
|
|
107
|
+
// Status bar - Battery
|
|
108
|
+
batteryTop: zod_1.z.number().optional(),
|
|
109
|
+
batteryBottom: zod_1.z.number().optional(),
|
|
110
|
+
batteryLeft: zod_1.z.number().optional(),
|
|
111
|
+
batteryRight: zod_1.z.number().optional(),
|
|
112
|
+
// Home indicator
|
|
113
|
+
homeIndicatorTop: zod_1.z.number().optional(),
|
|
114
|
+
homeIndicatorBottom: zod_1.z.number().optional(),
|
|
115
|
+
homeIndicatorLeft: zod_1.z.number().optional(),
|
|
116
|
+
homeIndicatorRight: zod_1.z.number().optional(),
|
|
117
|
+
homeIndicatorColor: zod_1.z.string().optional(),
|
|
118
|
+
// iMessage footer
|
|
119
|
+
plusButtonTop: zod_1.z.number().optional(),
|
|
120
|
+
plusButtonBottom: zod_1.z.number().optional(),
|
|
121
|
+
plusButtonLeft: zod_1.z.number().optional(),
|
|
122
|
+
plusButtonRight: zod_1.z.number().optional(),
|
|
123
|
+
footerTop: zod_1.z.number().optional(),
|
|
124
|
+
footerBottom: zod_1.z.number().optional(),
|
|
125
|
+
footerLeft: zod_1.z.number().optional(),
|
|
126
|
+
footerRight: zod_1.z.number().optional(),
|
|
127
|
+
footerBgColor: zod_1.z.string().optional(),
|
|
128
|
+
footerBorderRadius: zod_1.z.number().optional(),
|
|
129
|
+
footerBorderColor: zod_1.z.string().optional(),
|
|
130
|
+
footerBorderWidth: zod_1.z.number().optional(),
|
|
131
|
+
messageTextTop: zod_1.z.number().optional(),
|
|
132
|
+
messageTextBottom: zod_1.z.number().optional(),
|
|
133
|
+
messageTextLeft: zod_1.z.number().optional(),
|
|
134
|
+
messageTextRight: zod_1.z.number().optional(),
|
|
135
|
+
messageTextFontSize: zod_1.z.number().optional(),
|
|
136
|
+
messageTextLetterSpacing: zod_1.z.number().optional(),
|
|
137
|
+
messageTextColor: zod_1.z.string().optional(),
|
|
138
|
+
messageText: zod_1.z.string().optional(),
|
|
139
|
+
// Message area bounds
|
|
140
|
+
messageAreaTop: zod_1.z.number().optional(),
|
|
141
|
+
messageAreaBottom: zod_1.z.number().optional(),
|
|
142
|
+
// Message colors
|
|
143
|
+
senderBubbleColor: zod_1.z.string().optional(),
|
|
144
|
+
recipientBubbleColor: zod_1.z.string().optional(),
|
|
145
|
+
bubbleTextColor: zod_1.z.string().optional(),
|
|
146
|
+
recipientTextColor: zod_1.z.string().optional(),
|
|
147
|
+
// Message typography
|
|
148
|
+
messageFontSize: zod_1.z.number().optional(),
|
|
149
|
+
messageLineHeight: zod_1.z.number().optional(),
|
|
150
|
+
messageLetterSpacing: zod_1.z.number().optional(),
|
|
151
|
+
// Message padding (inside bubble)
|
|
152
|
+
messagePaddingTop: zod_1.z.number().optional(),
|
|
153
|
+
messagePaddingBottom: zod_1.z.number().optional(),
|
|
154
|
+
senderPaddingLeft: zod_1.z.number().optional(),
|
|
155
|
+
senderPaddingRight: zod_1.z.number().optional(),
|
|
156
|
+
multiLineSenderPaddingLeft: zod_1.z.number().optional(),
|
|
157
|
+
recipientPaddingLeft: zod_1.z.number().optional(),
|
|
158
|
+
recipientPaddingRight: zod_1.z.number().optional(),
|
|
159
|
+
multiLineRecipientPaddingRight: zod_1.z.number().optional(),
|
|
160
|
+
// Bubble corner radii
|
|
161
|
+
bubbleRadiusNormal: zod_1.z.number().optional(),
|
|
162
|
+
bubbleRadiusGrouped: zod_1.z.number().optional(),
|
|
163
|
+
// Message spacing
|
|
164
|
+
messageGapInGroup: zod_1.z.number().optional(),
|
|
165
|
+
messageGapSameUser: zod_1.z.number().optional(),
|
|
166
|
+
messageGapDifferentUser: zod_1.z.number().optional(),
|
|
167
|
+
// Bubble positioning
|
|
168
|
+
recipientBubbleLeft: zod_1.z.number().optional(),
|
|
169
|
+
senderBubbleRight: zod_1.z.number().optional(),
|
|
170
|
+
bubbleMaxWidth: zod_1.z.number().optional(),
|
|
171
|
+
// Sender image attachment
|
|
172
|
+
senderImageLeft: zod_1.z.number().optional(),
|
|
173
|
+
senderImageHeight: zod_1.z.number().optional(),
|
|
174
|
+
senderImageGapToText: zod_1.z.number().optional(),
|
|
175
|
+
senderImageBorderRadius: zod_1.z.number().optional(),
|
|
176
|
+
// Message area header text
|
|
177
|
+
messageHeaderImessageText: zod_1.z.string().optional(),
|
|
178
|
+
messageHeaderTimestampText: zod_1.z.string().optional(),
|
|
179
|
+
messageHeaderTimestampGap: zod_1.z.number().optional(),
|
|
180
|
+
messageHeaderImessageGap: zod_1.z.number().optional(),
|
|
181
|
+
messageHeaderTextColor: zod_1.z.string().optional(),
|
|
182
|
+
messageHeaderFontSize: zod_1.z.number().optional(),
|
|
183
|
+
messageHeaderLetterSpacing: zod_1.z.number().optional(),
|
|
184
|
+
messageHeaderLeft: zod_1.z.number().optional(),
|
|
185
|
+
messageHeaderRight: zod_1.z.number().optional(),
|
|
186
|
+
// Message tails (SVG-based)
|
|
187
|
+
showMessageTails: zod_1.z.boolean().optional(),
|
|
188
|
+
// Recipient tail anchor points
|
|
189
|
+
recipientTailSideY: zod_1.z.number().optional(),
|
|
190
|
+
recipientTailCurveStartY: zod_1.z.number().optional(),
|
|
191
|
+
recipientTailTipX: zod_1.z.number().optional(),
|
|
192
|
+
recipientTailTipY: zod_1.z.number().optional(),
|
|
193
|
+
recipientTailBottomX: zod_1.z.number().optional(),
|
|
194
|
+
recipientTailBottomY: zod_1.z.number().optional(),
|
|
195
|
+
// Recipient tail curve bend
|
|
196
|
+
recipientTailTopBend: zod_1.z.number().optional(),
|
|
197
|
+
recipientTailBottomBend: zod_1.z.number().optional(),
|
|
198
|
+
// Sender tail anchor points
|
|
199
|
+
senderTailSideY: zod_1.z.number().optional(),
|
|
200
|
+
senderTailCurveStartY: zod_1.z.number().optional(),
|
|
201
|
+
senderTailTipX: zod_1.z.number().optional(),
|
|
202
|
+
senderTailTipY: zod_1.z.number().optional(),
|
|
203
|
+
senderTailBottomX: zod_1.z.number().optional(),
|
|
204
|
+
senderTailBottomY: zod_1.z.number().optional(),
|
|
205
|
+
// Sender tail curve bend
|
|
206
|
+
senderTailTopBend: zod_1.z.number().optional(),
|
|
207
|
+
senderTailBottomBend: zod_1.z.number().optional(),
|
|
208
|
+
// Read receipt
|
|
209
|
+
showReadReceipt: zod_1.z.boolean().optional(),
|
|
210
|
+
readReceiptText: zod_1.z.string().optional(),
|
|
211
|
+
readReceiptGap: zod_1.z.number().optional(),
|
|
212
|
+
readReceiptFontSize: zod_1.z.number().optional(),
|
|
213
|
+
readReceiptLetterSpacing: zod_1.z.number().optional(),
|
|
214
|
+
readReceiptColor: zod_1.z.string().optional(),
|
|
215
|
+
readReceiptLeft: zod_1.z.number().optional(),
|
|
216
|
+
readReceiptRight: zod_1.z.number().optional(),
|
|
217
|
+
// Messages
|
|
218
|
+
messages: zod_1.z.array(zod_1.z.object({
|
|
219
|
+
id: zod_1.z.string(),
|
|
220
|
+
sender: zod_1.z.enum(['user', 'recipient']),
|
|
221
|
+
text: zod_1.z.string(),
|
|
222
|
+
imageUrl: zod_1.z.string().optional(),
|
|
223
|
+
groupWithPrevious: zod_1.z.boolean().optional(),
|
|
224
|
+
})).optional(),
|
|
225
|
+
// Dynamic crop - crop output to element bounds
|
|
226
|
+
dynamicCrop: zod_1.z.record(zod_1.z.any()).optional(),
|
|
227
|
+
cropVerticalCenter: zod_1.z.boolean().optional(),
|
|
228
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Native points, rendered at 3 pixels per point. No coordinate rounding. */
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const tiktokNativeTextStickerSchema: z.ZodObject<{
|
|
4
4
|
profile: z.ZodDefault<z.ZodLiteral<"tiktok-classic-ios-47">>;
|
|
5
5
|
text: z.ZodEffects<z.ZodString, string, string>;
|
|
6
6
|
fontSizePt: z.ZodDefault<z.ZodNumber>;
|
|
@@ -33,4 +33,109 @@ export declare const nativeTextStickerSchema: z.ZodObject<{
|
|
|
33
33
|
originPt?: [number, number] | undefined;
|
|
34
34
|
viewFontSizePt?: number | undefined;
|
|
35
35
|
}>;
|
|
36
|
+
/** Source-derived Snapchat Classic bar; height is measured automatically. */
|
|
37
|
+
export declare const snapchatNativeTextStickerSchema: z.ZodEffects<z.ZodObject<{
|
|
38
|
+
profile: z.ZodLiteral<"snapchat-classic-ios-18">;
|
|
39
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
40
|
+
fontSizePt: z.ZodDefault<z.ZodNumber>;
|
|
41
|
+
canvasWidthPt: z.ZodDefault<z.ZodNumber>;
|
|
42
|
+
referenceScale: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
background: z.ZodDefault<z.ZodBoolean>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
text: string;
|
|
46
|
+
profile: "snapchat-classic-ios-18";
|
|
47
|
+
fontSizePt: number;
|
|
48
|
+
canvasWidthPt: number;
|
|
49
|
+
referenceScale: number;
|
|
50
|
+
background: boolean;
|
|
51
|
+
}, {
|
|
52
|
+
text: string;
|
|
53
|
+
profile: "snapchat-classic-ios-18";
|
|
54
|
+
fontSizePt?: number | undefined;
|
|
55
|
+
canvasWidthPt?: number | undefined;
|
|
56
|
+
referenceScale?: number | undefined;
|
|
57
|
+
background?: boolean | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
text: string;
|
|
60
|
+
profile: "snapchat-classic-ios-18";
|
|
61
|
+
fontSizePt: number;
|
|
62
|
+
canvasWidthPt: number;
|
|
63
|
+
referenceScale: number;
|
|
64
|
+
background: boolean;
|
|
65
|
+
}, {
|
|
66
|
+
text: string;
|
|
67
|
+
profile: "snapchat-classic-ios-18";
|
|
68
|
+
fontSizePt?: number | undefined;
|
|
69
|
+
canvasWidthPt?: number | undefined;
|
|
70
|
+
referenceScale?: number | undefined;
|
|
71
|
+
background?: boolean | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const nativeTextStickerSchema: z.ZodUnion<[z.ZodObject<{
|
|
74
|
+
profile: z.ZodDefault<z.ZodLiteral<"tiktok-classic-ios-47">>;
|
|
75
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
76
|
+
fontSizePt: z.ZodDefault<z.ZodNumber>;
|
|
77
|
+
canvasWidthPt: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
canvasHeightPt: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
containerWidthPt: z.ZodDefault<z.ZodNumber>;
|
|
80
|
+
/** Omit for unlimited lines clipped by the canvas; zero has the same meaning. */
|
|
81
|
+
containerHeightPt: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
originPt: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
83
|
+
/** Normally omitted. Reproduces an editor whose view font differs from the text run font. */
|
|
84
|
+
viewFontSizePt: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
text: string;
|
|
87
|
+
profile: "tiktok-classic-ios-47";
|
|
88
|
+
fontSizePt: number;
|
|
89
|
+
canvasWidthPt: number;
|
|
90
|
+
canvasHeightPt: number;
|
|
91
|
+
containerWidthPt: number;
|
|
92
|
+
originPt: [number, number];
|
|
93
|
+
containerHeightPt?: number | undefined;
|
|
94
|
+
viewFontSizePt?: number | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
text: string;
|
|
97
|
+
profile?: "tiktok-classic-ios-47" | undefined;
|
|
98
|
+
fontSizePt?: number | undefined;
|
|
99
|
+
canvasWidthPt?: number | undefined;
|
|
100
|
+
canvasHeightPt?: number | undefined;
|
|
101
|
+
containerWidthPt?: number | undefined;
|
|
102
|
+
containerHeightPt?: number | undefined;
|
|
103
|
+
originPt?: [number, number] | undefined;
|
|
104
|
+
viewFontSizePt?: number | undefined;
|
|
105
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
106
|
+
profile: z.ZodLiteral<"snapchat-classic-ios-18">;
|
|
107
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
108
|
+
fontSizePt: z.ZodDefault<z.ZodNumber>;
|
|
109
|
+
canvasWidthPt: z.ZodDefault<z.ZodNumber>;
|
|
110
|
+
referenceScale: z.ZodDefault<z.ZodNumber>;
|
|
111
|
+
background: z.ZodDefault<z.ZodBoolean>;
|
|
112
|
+
}, "strict", z.ZodTypeAny, {
|
|
113
|
+
text: string;
|
|
114
|
+
profile: "snapchat-classic-ios-18";
|
|
115
|
+
fontSizePt: number;
|
|
116
|
+
canvasWidthPt: number;
|
|
117
|
+
referenceScale: number;
|
|
118
|
+
background: boolean;
|
|
119
|
+
}, {
|
|
120
|
+
text: string;
|
|
121
|
+
profile: "snapchat-classic-ios-18";
|
|
122
|
+
fontSizePt?: number | undefined;
|
|
123
|
+
canvasWidthPt?: number | undefined;
|
|
124
|
+
referenceScale?: number | undefined;
|
|
125
|
+
background?: boolean | undefined;
|
|
126
|
+
}>, {
|
|
127
|
+
text: string;
|
|
128
|
+
profile: "snapchat-classic-ios-18";
|
|
129
|
+
fontSizePt: number;
|
|
130
|
+
canvasWidthPt: number;
|
|
131
|
+
referenceScale: number;
|
|
132
|
+
background: boolean;
|
|
133
|
+
}, {
|
|
134
|
+
text: string;
|
|
135
|
+
profile: "snapchat-classic-ios-18";
|
|
136
|
+
fontSizePt?: number | undefined;
|
|
137
|
+
canvasWidthPt?: number | undefined;
|
|
138
|
+
referenceScale?: number | undefined;
|
|
139
|
+
background?: boolean | undefined;
|
|
140
|
+
}>]>;
|
|
36
141
|
export type NativeTextStickerInput = z.input<typeof nativeTextStickerSchema>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nativeTextStickerSchema = void 0;
|
|
3
|
+
exports.nativeTextStickerSchema = exports.snapchatNativeTextStickerSchema = exports.tiktokNativeTextStickerSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const dimension = zod_1.z.number().finite().min(1).max(1365);
|
|
6
6
|
const fontSize = zod_1.z.number().finite().min(11).max(72);
|
|
7
7
|
/** Native points, rendered at 3 pixels per point. No coordinate rounding. */
|
|
8
|
-
exports.
|
|
8
|
+
exports.tiktokNativeTextStickerSchema = zod_1.z.object({
|
|
9
9
|
profile: zod_1.z.literal('tiktok-classic-ios-47').default('tiktok-classic-ios-47'),
|
|
10
10
|
text: zod_1.z.string().min(1).max(2048).refine(text => text.split('\n').every(line => line.replace(/ /g, '').length > 0)
|
|
11
11
|
&& !/[\u0000-\u0009\u000b-\u001f\u007f-\u009f\u2028\u2029\u202a-\u202e\u2066-\u2069]/u.test(text)
|
|
@@ -20,3 +20,18 @@ exports.nativeTextStickerSchema = zod_1.z.object({
|
|
|
20
20
|
/** Normally omitted. Reproduces an editor whose view font differs from the text run font. */
|
|
21
21
|
viewFontSizePt: fontSize.optional(),
|
|
22
22
|
}).strict();
|
|
23
|
+
/** Source-derived Snapchat Classic bar; height is measured automatically. */
|
|
24
|
+
exports.snapchatNativeTextStickerSchema = zod_1.z.object({
|
|
25
|
+
profile: zod_1.z.literal('snapchat-classic-ios-18'),
|
|
26
|
+
text: exports.tiktokNativeTextStickerSchema.shape.text,
|
|
27
|
+
fontSizePt: zod_1.z.number().finite().min(7).max(72).default(17),
|
|
28
|
+
canvasWidthPt: zod_1.z.number().finite().min(16).max(1365).default(414),
|
|
29
|
+
referenceScale: zod_1.z.number().finite().min(0.25).max(4).default(1),
|
|
30
|
+
background: zod_1.z.boolean().default(true),
|
|
31
|
+
}).strict().superRefine((value, ctx) => {
|
|
32
|
+
if (value.fontSizePt * value.referenceScale > 72 || value.canvasWidthPt <= 16 * value.referenceScale
|
|
33
|
+
|| !Number.isInteger(value.canvasWidthPt * 3)) {
|
|
34
|
+
ctx.addIssue({ code: 'custom', message: 'Unsupported Snapchat Classic geometry' });
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports.nativeTextStickerSchema = zod_1.z.union([exports.tiktokNativeTextStickerSchema, exports.snapchatNativeTextStickerSchema]);
|
package/dist/render.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import type { CreateDmMessage } from './automations/nodes/create-dm';
|
|
|
15
15
|
import { type RemotionCompositionInput } from './render/types/remotion-composition';
|
|
16
16
|
import { type NativeTextStickerInput } from './render/types/native-text';
|
|
17
17
|
export { nativeTextStickerSchema, type NativeTextStickerInput } from './render/types/native-text';
|
|
18
|
-
/** Render a native text/emoji
|
|
18
|
+
/** Render a native text/emoji PNG; Snapchat includes its translucent bar by default. */
|
|
19
19
|
export declare function submitNativeTextStickerRenderJob(params: NativeTextStickerInput): Promise<{
|
|
20
20
|
ok: boolean;
|
|
21
21
|
code: number;
|
package/dist/render.js
CHANGED
|
@@ -33,7 +33,7 @@ function renderBaseUrl() {
|
|
|
33
33
|
return url.replace(/\/+$/, '');
|
|
34
34
|
}
|
|
35
35
|
const MAX_RETRIES = 3;
|
|
36
|
-
/** Render a native text/emoji
|
|
36
|
+
/** Render a native text/emoji PNG; Snapchat includes its translucent bar by default. */
|
|
37
37
|
async function submitNativeTextStickerRenderJob(params) {
|
|
38
38
|
const parsed = native_text_1.nativeTextStickerSchema.safeParse(params);
|
|
39
39
|
if (!parsed.success)
|
package/dist/skills.js
CHANGED
|
@@ -260,13 +260,13 @@ For detailed port schemas, config options, and guides, use \`list_node_types\` a
|
|
|
260
260
|
|
|
261
261
|
### Node Discovery
|
|
262
262
|
\`\`\`bash
|
|
263
|
-
${run} list_node_types
|
|
263
|
+
${run} list_node_types '{}' # All nodes with ports, guides, defaults
|
|
264
264
|
${run} get_node_type '{"nodeType":"llm"}' # Detailed info for one node
|
|
265
265
|
\`\`\`
|
|
266
266
|
|
|
267
267
|
### Template Management
|
|
268
268
|
\`\`\`bash
|
|
269
|
-
${run} list_automations
|
|
269
|
+
${run} list_automations '{}' # List all templates
|
|
270
270
|
${run} get_automation '{"templateId":"id"}' # Get template with full workflow
|
|
271
271
|
${run} create_automation '{"name":"My Automation","workflowDefinition":{...}}'
|
|
272
272
|
${run} update_automation '{"templateId":"id","name":"Updated","workflowDefinition":{...}}'
|
package/package.json
CHANGED
package/skills/media/SKILL.md
CHANGED
|
@@ -26,6 +26,23 @@ and limits. The CLI lists names/descriptions; the reference explains parameters.
|
|
|
26
26
|
|
|
27
27
|
## Choose the input and tools
|
|
28
28
|
|
|
29
|
+
Start from the analysis action; use the shipped tool before looking for local model packages.
|
|
30
|
+
|
|
31
|
+
| Need | Tool |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| Spoken words and approximate timing | `transcribe_audio` |
|
|
34
|
+
| Loudness, silence and volume over time | `measure_audio_levels` |
|
|
35
|
+
| On-screen text and when it appears | `read_video_text` |
|
|
36
|
+
| Scene boundaries | `detect_scenes` |
|
|
37
|
+
| Review frames/contact sheet | `extract_frames` |
|
|
38
|
+
| Text, colours or supplied boxes in a still | `read_image_text`, `sample_colors`, `measure_layout` |
|
|
39
|
+
|
|
40
|
+
For local media, use the existing owned-upload path described below, then pass its URL.
|
|
41
|
+
Normal file probes and quick local inspection remain useful. Missing local Whisper is
|
|
42
|
+
not a reason to abandon transcription or install another speech stack when UGC provides it.
|
|
43
|
+
If a supported service is unavailable, retain its error/job and use the workspace's operator
|
|
44
|
+
handoff; do not quietly replace it or guess the missing result.
|
|
45
|
+
|
|
29
46
|
- A profile URL: `list_profile_posts` discovers a bounded page; follow its cursor
|
|
30
47
|
only as needed. Listing does not download media or guarantee complete history.
|
|
31
48
|
- A post URL: `download_social_post` ingests its ordered assets into owned media.
|
|
@@ -54,6 +71,11 @@ coverage. A zero process exit code alone does not establish API success.
|
|
|
54
71
|
cannot inspect an arbitrarily long clip in one request.
|
|
55
72
|
- Speech timestamps are estimates; speaker labels/forced alignment are absent.
|
|
56
73
|
A transcript does not establish music, emotion, delivery or sound effects.
|
|
74
|
+
Matching waveform envelopes or correlation supports timing similarity, not identical
|
|
75
|
+
words or correct voice quality. Compare transcripts for wording, and distinguish measured
|
|
76
|
+
loudness from subjective listening. If you cannot listen, say so and leave that verdict open.
|
|
77
|
+
The first word timestamp is not proof of silence before that word; use audio levels to
|
|
78
|
+
establish silence. Model confidence scores are not a guarantee that wording is correct.
|
|
57
79
|
- Color sampling measures decoded sRGB pixels, not guaranteed design hex values.
|
|
58
80
|
Layout measurement does not detect objects or recover original layer files.
|
|
59
81
|
- For text over photographic backgrounds, call `match_text_style` with
|