@aicopycoders/exodus 2026.11.1200-beta.2 → 2026.11.1200-beta.21

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.
@@ -1,5 +1,6 @@
1
1
  import type { FlagOccurrence } from "../lib/args.js";
2
2
  import type { ApiResponse } from "../lib/client.js";
3
+ import { onOwnDashboard } from "./video-customer.js";
3
4
  import { type FlowResult, type VideoDeps } from "./video.js";
4
5
  export declare const SWIPE_BREAKDOWNS_PATH = "/api/v2/video/breakdowns";
5
6
  export declare const SWIPE_UPLOAD_URL_PATH = "/api/v2/video/breakdowns/upload-url";
@@ -8,6 +9,10 @@ export declare const SWIPE_PRODUCTS_PATH = "/api/v2/video/swipe-products";
8
9
  export declare const SWIPES_PATH = "/api/v2/video/swipes";
9
10
  export declare const SWIPE_RUNS_PATH = "/api/v2/video/swipe-runs";
10
11
  export declare const SWIPE_SHEET_PATH = "/api/v2/video/swipe-sheet";
12
+ export declare const SWIPE_SHEET_PRICE_PATH = "/api/v2/video/swipe-sheet-price";
13
+ export declare const SWIPE_SHEET_OPTIONS_PATH = "/api/v2/video/swipe-sheet/options";
14
+ export declare const SHEET_SOURCES_QUERY = "sources=recommended";
15
+ export declare const SWIPE_WRITE_PEOPLE_PATH = "/api/v2/video/swipe-write-people";
11
16
  export declare const SWIPE_LIBRARY_PATH = "/api/v2/swipe-library";
12
17
  export interface SwipeBreakdown {
13
18
  _id: string;
@@ -58,8 +63,78 @@ export interface SwipeFull {
58
63
  text: string;
59
64
  }>;
60
65
  };
66
+ version?: string;
67
+ filming?: SwipeFilming;
61
68
  warnings: string[];
62
69
  }
70
+ export interface SwipeFilming {
71
+ filmedBy?: string;
72
+ movement?: string;
73
+ cuts?: string;
74
+ cutsPerMinute?: number;
75
+ framing?: string;
76
+ places?: string;
77
+ placeList?: Array<{
78
+ setting?: string;
79
+ line: string;
80
+ }>;
81
+ placeLine?: string;
82
+ props?: string[];
83
+ light?: string;
84
+ lightSource?: string;
85
+ body?: string;
86
+ captions?: {
87
+ amount?: string;
88
+ style?: string;
89
+ position?: string;
90
+ caps?: boolean;
91
+ };
92
+ inserts?: Array<{
93
+ part: string;
94
+ at: number;
95
+ secondsOn?: number;
96
+ where?: string;
97
+ widthPct?: number;
98
+ words?: string;
99
+ }>;
100
+ brollShare?: string;
101
+ wordsPerSecond?: number;
102
+ firstSeconds?: string;
103
+ hookBuilt?: string;
104
+ endCard?: string;
105
+ measuredStillPct?: number;
106
+ cameraHeight?: string;
107
+ cameraTilt?: string;
108
+ pose?: string;
109
+ moves?: Array<{
110
+ move: string;
111
+ at: number;
112
+ to?: number;
113
+ }>;
114
+ held?: Array<{
115
+ thing: string;
116
+ hands?: string;
117
+ product?: boolean;
118
+ wholeAd: boolean;
119
+ from?: number;
120
+ to?: number;
121
+ }>;
122
+ handActions?: Array<{
123
+ does: string;
124
+ things?: string;
125
+ product?: boolean;
126
+ from: number;
127
+ to: number;
128
+ }>;
129
+ personLook?: {
130
+ hair?: string;
131
+ hairColour?: string;
132
+ skinTone?: string;
133
+ build?: string;
134
+ glasses?: string;
135
+ facialHair?: string;
136
+ };
137
+ }
63
138
  export interface SwipeTemplateView {
64
139
  kind: {
65
140
  key: string;
@@ -73,6 +148,12 @@ export interface SwipeTemplateView {
73
148
  };
74
149
  lines: number;
75
150
  seconds: number;
151
+ offered?: Array<{
152
+ key: string;
153
+ label: string;
154
+ about?: string;
155
+ reason: string;
156
+ }>;
76
157
  }
77
158
  export interface SwipeDraft {
78
159
  script: string;
@@ -87,6 +168,9 @@ export interface SwipeDraft {
87
168
  ours: number;
88
169
  theirs: number;
89
170
  };
171
+ howClose?: {
172
+ sentence: string;
173
+ };
90
174
  }
91
175
  export interface SwipeView {
92
176
  _id: string;
@@ -135,7 +219,7 @@ export interface SwipeListRow {
135
219
  name: string;
136
220
  } | null;
137
221
  }
138
- export type SheetFrom = "you" | "their-ad" | "kind";
222
+ export type SheetFrom = "you" | "their-ad" | "kind" | "recommended";
139
223
  export interface SavedSheetRow {
140
224
  id: string;
141
225
  label: string;
@@ -145,10 +229,34 @@ export interface SavedSheetRow {
145
229
  options: Array<{
146
230
  id: string;
147
231
  label: string;
232
+ pictureUrl?: string;
233
+ sampleUrl?: string;
234
+ line?: string;
235
+ price?: {
236
+ aboutUsd: number;
237
+ mostUsd: number;
238
+ title: string;
239
+ line: string;
240
+ };
148
241
  }> | null;
149
242
  optionsCostUsd: number | null;
150
243
  usedBy: string | null;
151
244
  readOnly: boolean;
245
+ optionsStatus?: {
246
+ making: boolean;
247
+ sentence: string;
248
+ spentUsd?: number;
249
+ asksLeft?: number;
250
+ failed?: boolean;
251
+ noneYet?: boolean;
252
+ count?: number;
253
+ makingForMs?: number;
254
+ };
255
+ none?: {
256
+ value: string;
257
+ label: string;
258
+ };
259
+ recommended?: string;
152
260
  }
153
261
  export interface SavedSheet {
154
262
  swipeId: string;
@@ -165,7 +273,63 @@ export interface SavedSheet {
165
273
  rows: SavedSheetRow[];
166
274
  }>;
167
275
  startRefusal?: string;
168
- }
276
+ notice?: string;
277
+ }
278
+ export type SwipePriceRow = {
279
+ size: string;
280
+ takes: "all" | "first";
281
+ filmedTakes: number;
282
+ costUsd: number;
283
+ maxUsd: number;
284
+ lines: Array<{
285
+ what: string;
286
+ usd: number;
287
+ beforeStop?: true;
288
+ }>;
289
+ startRefusal?: string;
290
+ } | {
291
+ size: string;
292
+ takes: "all" | "first";
293
+ why: string;
294
+ };
295
+ export type SwipePrice = {
296
+ swipeId: string;
297
+ kind: {
298
+ key: string;
299
+ label: string;
300
+ } | null;
301
+ priced: true;
302
+ sizeChoices: boolean;
303
+ scriptTakes: number;
304
+ picked: Extract<SwipePriceRow, {
305
+ costUsd: number;
306
+ }>;
307
+ options: SwipePriceRow[];
308
+ notes: string[];
309
+ leavesOut: string;
310
+ startRefusals: string[];
311
+ heldBy: string | null;
312
+ approximate: true;
313
+ } | {
314
+ swipeId: string;
315
+ kind: {
316
+ key: string;
317
+ label: string;
318
+ } | null;
319
+ priced: false;
320
+ why: string;
321
+ };
322
+ export type WritePeople = {
323
+ makesPeople: false;
324
+ reason: string;
325
+ } | {
326
+ makesPeople: true;
327
+ count: number;
328
+ aboutUsd: number;
329
+ mostUsd: number;
330
+ paidBy: string;
331
+ lines: string[];
332
+ };
169
333
  type ServerMode = "whole" | "hook" | "their-format" | "new-look";
170
334
  export declare const SWIPE_MODES: ReadonlyArray<{
171
335
  flag: string;
@@ -205,12 +369,15 @@ export interface WriteAsk {
205
369
  scriptFile?: string;
206
370
  scriptText?: string;
207
371
  kind?: string;
372
+ peopleMaxUsd?: number;
373
+ noPeople?: boolean;
208
374
  }
209
375
  export interface StartAsk {
210
376
  style?: string;
211
377
  title?: string;
212
378
  music: boolean;
213
379
  oneShot: boolean;
380
+ maxUsd?: number;
214
381
  }
215
382
  export interface SwipeOpts {
216
383
  json: boolean;
@@ -266,6 +433,21 @@ export type SwipePlan = {
266
433
  kind: "sheet-set";
267
434
  swipeId: string;
268
435
  picks: Record<string, string | null>;
436
+ peopleMaxUsd?: number;
437
+ opts: SwipeOpts;
438
+ } | {
439
+ kind: "sheet-price";
440
+ swipeId: string;
441
+ opts: SwipeOpts;
442
+ } | {
443
+ kind: "sheet-people";
444
+ swipeId: string;
445
+ count: number | null;
446
+ maxUsd: number | null;
447
+ opts: SwipeOpts;
448
+ } | {
449
+ kind: "sheet-voices";
450
+ swipeId: string;
269
451
  opts: SwipeOpts;
270
452
  } | {
271
453
  kind: "run";
@@ -279,6 +461,7 @@ export declare function parseSwipeMode(value: string): ServerMode | null;
279
461
  export declare function parseCloseness(value: string): number | null;
280
462
  export declare function planSwipeCommand(rest: string[], occurrences: FlagOccurrence[]): SwipePlan;
281
463
  export declare const SHEET_ROW_ID: RegExp;
464
+ export declare const SHEET_PEOPLE_MOST = 8;
282
465
  export interface ChoiceWords {
283
466
  who: string;
284
467
  flag: (name: string) => string;
@@ -310,14 +493,16 @@ export interface SwipeRunOptions extends SwipeOpts {
310
493
  onJob?: (job: string) => void;
311
494
  beforePaidAsk?: () => void;
312
495
  }
496
+ export declare function breakdownPage(dashboardUrl: string, breakdownId: string): string;
313
497
  export declare function swipeBreakdownFlow(source: SwipeSource, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
314
498
  export declare function swipeStatusFlow(breakdownId: string, opts: SwipeRunOptions, deps: VideoDeps, full?: boolean): Promise<FlowResult>;
315
499
  export declare function fullLines(data: Record<string, unknown>): string[];
500
+ export declare function filmingLines(filming: SwipeFilming | undefined, version?: string): string[];
316
501
  export declare function swipeTemplateFlow(breakdownId: string, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
317
502
  export declare function swipeProductsFlow(opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
318
503
  export declare const FIND_READ = 200;
319
504
  export declare const FIND_PAID_FLAGS: readonly ["yes", "wait", "file", "url", "ad", "again"];
320
- export declare const FIND_OTHER_FLAGS: readonly ["one-shot", "music", "mode", "closeness", "product", "look", "script", "style", "title", "sheet", "full", "status", "persona", "retry-refused", "kind"];
505
+ export declare const FIND_OTHER_FLAGS: readonly ["one-shot", "music", "mode", "closeness", "product", "look", "script", "style", "title", "sheet", "full", "status", "persona", "retry-refused", "kind", "max-usd"];
321
506
  export declare const FIND_KIND_LINE = "The kind of an ad is known only after it is read.";
322
507
  export declare const FIND_EMPTY_LIBRARY = "The swipe library has no ads yet for this brand.";
323
508
  export interface FindAsk {
@@ -358,15 +543,21 @@ export declare function swipeFindFlow(ask: FindAsk, opts: SwipeOpts, deps: Video
358
543
  export declare function swipeWriteFlow(breakdownId: string, ask: WriteAsk, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
359
544
  export declare function swipeShowFlow(swipeId: string, opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
360
545
  export declare function swipeListFlow(opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
546
+ export { onOwnDashboard };
361
547
  export declare function sheetLines(sheet: SavedSheet, dashboardUrl: string): string[];
362
548
  export declare function swipeSheetReadFlow(swipeId: string, opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
363
- export declare function swipeSheetSetFlow(swipeId: string, picks: Record<string, string | null>, opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
549
+ export declare function swipeSheetSetFlow(swipeId: string, picks: Record<string, string | null>, opts: SwipeOpts, deps: VideoDeps, peopleMaxUsd?: number): Promise<FlowResult>;
550
+ export declare function priceLines(price: SwipePrice, dashboardUrl: string): string[];
551
+ export declare function swipeSheetPriceFlow(swipeId: string, opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
552
+ export declare function swipeSheetPeopleFlow(swipeId: string, count: number | null, maxUsd: number | null, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
553
+ export declare function swipeSheetVoicesFlow(swipeId: string, opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
554
+ export declare const ANIMAL_WAIT_LINE = "The animal the script puts in the picture is being found and drawn for this swipe. The start waits for it, until 5 minutes after the write asked for it, so the video films the one on the sheet and does not pay to find and draw it again.";
555
+ export declare const ANIMAL_GOES_ON_LINE = "The animal is still being found or drawn 5 minutes after the write asked for it, so the start goes on: the video looks for an animal in the script itself and draws one when it finds one.";
364
556
  export declare const SWIPE_ALREADY_STARTED_CODE = "SWIPE_ALREADY_STARTED";
365
557
  export declare function alreadyStartedOf(res: ApiResponse<unknown>): {
366
558
  runId: string;
367
- url: string;
368
559
  } | null;
369
- export declare function swipeStartFlow(swipeId: string, ask: StartAsk, opts: SwipeRunOptions, deps: VideoDeps, again?: boolean): Promise<FlowResult>;
560
+ export declare function swipeStartFlow(swipeId: string, ask: StartAsk, opts: SwipeRunOptions, deps: VideoDeps, again?: boolean, waitPeople?: boolean): Promise<FlowResult>;
370
561
  export declare const SHEET_FIELDS: readonly ["sources", "product", "personas", "mechanism", "guidance", "mode", "closeness", "look", "script", "kind", "characters", "finish", "oneShot", "style", "title", "music"];
371
562
  export declare const SHEET_VIDEO_WARNING = 6;
372
563
  export interface SheetSource {
@@ -507,4 +698,3 @@ export declare function swipeSheetFlow(given: string, opts: SheetFlowOptions, de
507
698
  export declare function runSwipePlan(plan: Exclude<SwipePlan, {
508
699
  kind: "usage";
509
700
  }>, deps: VideoDeps, onProgressLine?: (line: string) => void): Promise<FlowResult>;
510
- export {};