@blitzreels/contracts 0.2.4 → 0.2.5
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 +0 -1
- package/dist/editor-snapshot-contract.d.ts +139 -0
- package/dist/editor-snapshot-contract.d.ts.map +1 -0
- package/dist/editor-snapshot-contract.js +30 -0
- package/dist/editor-snapshot-contract.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/project-preparation-contract.d.ts +117 -0
- package/dist/project-preparation-contract.d.ts.map +1 -0
- package/dist/project-preparation-contract.js +29 -0
- package/dist/project-preparation-contract.js.map +1 -0
- package/dist/realtime-contract.d.ts +8 -0
- package/dist/realtime-contract.d.ts.map +1 -0
- package/dist/realtime-contract.js +7 -0
- package/dist/realtime-contract.js.map +1 -0
- package/dist/series-contract.d.ts +216 -0
- package/dist/series-contract.d.ts.map +1 -0
- package/dist/series-contract.js +125 -0
- package/dist/series-contract.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,5 @@ It contains the public operation registry and transport-neutral schemas, effects
|
|
|
8
8
|
It does not contain the API implementation, database model, editor kernel, infrastructure, or internal operations.
|
|
9
9
|
|
|
10
10
|
The npm package is publicly installable, but its canonical source is private and proprietary.
|
|
11
|
-
Workspace `0.2.2` adds compound Reframe receipts and source-update contracts.
|
|
12
11
|
|
|
13
12
|
See `LICENSE` for the package terms.
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const editorCaptionWordSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
orderIndex: z.ZodNumber;
|
|
6
|
+
startSeconds: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
endSeconds: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
paragraphIndex: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
isEmphasis: z.ZodBoolean;
|
|
10
|
+
style: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const editorCaptionSchema: z.ZodObject<{
|
|
13
|
+
captionId: z.ZodString;
|
|
14
|
+
text: z.ZodString;
|
|
15
|
+
startSeconds: z.ZodNumber;
|
|
16
|
+
endSeconds: z.ZodNumber;
|
|
17
|
+
words: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
text: z.ZodString;
|
|
20
|
+
orderIndex: z.ZodNumber;
|
|
21
|
+
startSeconds: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
endSeconds: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
paragraphIndex: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
isEmphasis: z.ZodBoolean;
|
|
25
|
+
style: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const editorSnapshotSchema: z.ZodObject<{
|
|
29
|
+
document: z.ZodObject<{
|
|
30
|
+
version: z.ZodLiteral<1>;
|
|
31
|
+
projectId: z.ZodString;
|
|
32
|
+
revision: z.ZodNumber;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
aspectRatio: z.ZodString;
|
|
35
|
+
canvasWidth: z.ZodNumber;
|
|
36
|
+
canvasHeight: z.ZodNumber;
|
|
37
|
+
fps: z.ZodNumber;
|
|
38
|
+
durationSeconds: z.ZodNumber;
|
|
39
|
+
backgroundColor: z.ZodNullable<z.ZodString>;
|
|
40
|
+
items: z.ZodArray<z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
contentType: z.ZodNullable<z.ZodString>;
|
|
44
|
+
contentItemId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
captionId: z.ZodNullable<z.ZodString>;
|
|
46
|
+
mediaAssetId: z.ZodNullable<z.ZodString>;
|
|
47
|
+
parentGroupId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
label: z.ZodString;
|
|
49
|
+
text: z.ZodString;
|
|
50
|
+
startSeconds: z.ZodNumber;
|
|
51
|
+
endSeconds: z.ZodNumber;
|
|
52
|
+
trimStartSeconds: z.ZodNumber;
|
|
53
|
+
trimEndSeconds: z.ZodNumber;
|
|
54
|
+
layerIndex: z.ZodNumber;
|
|
55
|
+
ignored: z.ZodBoolean;
|
|
56
|
+
isSilentZone: z.ZodBoolean;
|
|
57
|
+
isMistake: z.ZodBoolean;
|
|
58
|
+
volume: z.ZodNumber;
|
|
59
|
+
audioFadeInSeconds: z.ZodNumber;
|
|
60
|
+
audioFadeOutSeconds: z.ZodNumber;
|
|
61
|
+
positionX: z.ZodNumber;
|
|
62
|
+
positionY: z.ZodNumber;
|
|
63
|
+
widthPx: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
heightPx: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
keepAspectRatio: z.ZodBoolean;
|
|
66
|
+
blurredBackground: z.ZodBoolean;
|
|
67
|
+
sourceView: z.ZodNullable<z.ZodObject<{
|
|
68
|
+
sourceAssetId: z.ZodNullable<z.ZodString>;
|
|
69
|
+
sourceStartSeconds: z.ZodNumber;
|
|
70
|
+
sourceEndSeconds: z.ZodNumber;
|
|
71
|
+
sourceCropX: z.ZodNumber;
|
|
72
|
+
sourceCropY: z.ZodNumber;
|
|
73
|
+
sourceCropWidth: z.ZodNumber;
|
|
74
|
+
sourceCropHeight: z.ZodNumber;
|
|
75
|
+
canvasX: z.ZodNumber;
|
|
76
|
+
canvasY: z.ZodNumber;
|
|
77
|
+
canvasWidth: z.ZodNullable<z.ZodNumber>;
|
|
78
|
+
canvasHeight: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
fitMode: z.ZodEnum<{
|
|
80
|
+
contain: "contain";
|
|
81
|
+
cover: "cover";
|
|
82
|
+
stretch: "stretch";
|
|
83
|
+
}>;
|
|
84
|
+
maskShape: z.ZodNullable<z.ZodString>;
|
|
85
|
+
maskRadius: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
syncGroupId: z.ZodNullable<z.ZodString>;
|
|
87
|
+
plannerMode: z.ZodNullable<z.ZodString>;
|
|
88
|
+
plannerMetadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
keyframes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
91
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
media: z.ZodArray<z.ZodObject<{
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
assetType: z.ZodString;
|
|
96
|
+
audioType: z.ZodNullable<z.ZodString>;
|
|
97
|
+
fileUrl: z.ZodString;
|
|
98
|
+
streamingUrl: z.ZodNullable<z.ZodString>;
|
|
99
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
100
|
+
waveformPeaks: z.ZodArray<z.ZodNumber>;
|
|
101
|
+
sourceWidth: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
sourceHeight: z.ZodNullable<z.ZodNumber>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
105
|
+
layerIndex: z.ZodNumber;
|
|
106
|
+
label: z.ZodString;
|
|
107
|
+
itemIds: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
bounds: z.ZodObject<{
|
|
110
|
+
offset: z.ZodNumber;
|
|
111
|
+
limit: z.ZodNumber;
|
|
112
|
+
total: z.ZodNumber;
|
|
113
|
+
returned: z.ZodNumber;
|
|
114
|
+
hasMore: z.ZodBoolean;
|
|
115
|
+
truncated: z.ZodBoolean;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
preparedFor: z.ZodNullable<z.ZodString>;
|
|
119
|
+
captions: z.ZodArray<z.ZodObject<{
|
|
120
|
+
captionId: z.ZodString;
|
|
121
|
+
text: z.ZodString;
|
|
122
|
+
startSeconds: z.ZodNumber;
|
|
123
|
+
endSeconds: z.ZodNumber;
|
|
124
|
+
words: z.ZodArray<z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
text: z.ZodString;
|
|
127
|
+
orderIndex: z.ZodNumber;
|
|
128
|
+
startSeconds: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
endSeconds: z.ZodNullable<z.ZodNumber>;
|
|
130
|
+
paragraphIndex: z.ZodNullable<z.ZodNumber>;
|
|
131
|
+
isEmphasis: z.ZodBoolean;
|
|
132
|
+
style: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
captionStyle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
136
|
+
captionLookId: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export type EditorSnapshot = z.infer<typeof editorSnapshotSchema>;
|
|
139
|
+
//# sourceMappingURL=editor-snapshot-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-snapshot-contract.d.ts","sourceRoot":"","sources":["../src/editor-snapshot-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAM9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { editorDocumentSchema } from "./editor-document-contract.js";
|
|
3
|
+
export const editorCaptionWordSchema = z.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
text: z.string(),
|
|
6
|
+
orderIndex: z.number(),
|
|
7
|
+
startSeconds: z.number().nullable(),
|
|
8
|
+
endSeconds: z.number().nullable(),
|
|
9
|
+
paragraphIndex: z.number().nullable(),
|
|
10
|
+
isEmphasis: z.boolean(),
|
|
11
|
+
style: z.record(z.string(), z.unknown()).nullable(),
|
|
12
|
+
});
|
|
13
|
+
export const editorCaptionSchema = z.object({
|
|
14
|
+
captionId: z.string(),
|
|
15
|
+
text: z.string(),
|
|
16
|
+
startSeconds: z.number(),
|
|
17
|
+
endSeconds: z.number(),
|
|
18
|
+
words: z.array(editorCaptionWordSchema),
|
|
19
|
+
});
|
|
20
|
+
export const editorSnapshotSchema = z.object({
|
|
21
|
+
document: editorDocumentSchema,
|
|
22
|
+
preparedFor: z
|
|
23
|
+
.string()
|
|
24
|
+
.nullable()
|
|
25
|
+
.describe("The preparation startedAt whose persisted completion is reflected in this snapshot, or null."),
|
|
26
|
+
captions: z.array(editorCaptionSchema),
|
|
27
|
+
captionStyle: z.record(z.string(), z.unknown()),
|
|
28
|
+
captionLookId: z.string().nullable(),
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=editor-snapshot-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-snapshot-contract.js","sourceRoot":"","sources":["../src/editor-snapshot-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAo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;IAC/C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,20 @@ export { editorCommandPreviewSchema, editorCommandReceiptSchema, editorCommandRe
|
|
|
3
3
|
export type { EditorDocument, EditorMedia, EditorSourceView, EditorTimelineItem, GetEditorDocumentOptions, } from "./editor-document-contract.js";
|
|
4
4
|
export { editorDocumentSchema, editorMediaSchema, editorSourceViewSchema, editorTimelineItemSchema, } from "./editor-document-contract.js";
|
|
5
5
|
export { EDITOR_CROP_PROPERTIES, EDITOR_KEYFRAME_EASINGS, EDITOR_KEYFRAME_PROPERTIES, type EditorKeyframeChange, type EditorKeyframeEasing, type EditorKeyframeProperty, editorCropSchema, editorKeyframeChangeSchema, editorKeyframeEasingSchema, editorKeyframePropertySchema, } from "./editor-keyframe-contract.js";
|
|
6
|
+
export { type EditorSnapshot, editorCaptionSchema, editorCaptionWordSchema, editorSnapshotSchema, } from "./editor-snapshot-contract.js";
|
|
6
7
|
export type { BlitzReelsCliExitCode, BlitzReelsErrorCode, BlitzReelsErrorDetails, PublicErrorCode, SequenceOperationErrorCode, SequenceOperationErrorDefinition, SequenceOperationItemFailure, } from "./error-contract.js";
|
|
7
8
|
export { getBlitzReelsErrorCliExitCode, getBlitzReelsErrorDefaultRetryable, getSequenceOperationErrorDefinition, isBlitzReelsErrorCode, isSequenceOperationErrorCode, SEQUENCE_OPERATION_ERROR_CODES, SEQUENCE_OPERATION_ERROR_DEFINITIONS, } from "./error-contract.js";
|
|
8
9
|
export { generationVisualStylesSchema, generationVoicesSchema, } from "./generation-catalog-contract.js";
|
|
9
10
|
export * from "./generation-resolution.js";
|
|
10
11
|
export { computeEffectiveVideoSize } from "./media-size.js";
|
|
12
|
+
export { type ProjectPreparation, type ProjectPreparationKind, type ProjectPreparationReceipt, projectPreparationResponseSchema, projectPreparationSchema, } from "./project-preparation-contract.js";
|
|
13
|
+
export { type RealtimeToken, realtimeTokenSchema, } from "./realtime-contract.js";
|
|
11
14
|
export type { ReframeCompositionReceipt, ReframeCompositionSourceUpdate, ReframeCompositionSourceUpdateReceipt, ReframeCompositionView, ReframeSourceCrop, } from "./reframe-composition-contract.js";
|
|
12
15
|
export { REFRAME_CONTENT_TYPE_HINTS, REFRAME_LAYOUT_STRATEGIES, type ReframeContentTypeHint, type ReframeLayoutStrategy, } from "./reframe-options.js";
|
|
13
16
|
export type { SequenceOperationDefinition, SequenceOperationExposure, SequenceOperationFamily, SequenceOperationId, SequenceOperationPreviewSupport, SequenceOperationPreviewSurface, SequenceOperationProjection, SequenceOperationProjections, SequenceOperationSurface, } from "./sequence-operation-registry.js";
|
|
14
17
|
export { getSequenceOperationDefinition, isSequenceOperationId, SEQUENCE_OPERATION_DEFINITIONS, SEQUENCE_OPERATION_IDS, } from "./sequence-operation-registry.js";
|
|
15
18
|
export type { SequenceTimingExecuteOptions, SequenceTimingExecuteResult, SequenceTimingOperation, SequenceTimingPreviewOptions, SequenceTimingPreviewResult, } from "./sequence-timing-contract.js";
|
|
19
|
+
export * from "./series-contract.js";
|
|
16
20
|
export { computeSourceViewLayout } from "./source-view-layout.js";
|
|
17
21
|
export type { TimelineBatchDeleteResult, TimelineBatchMoveResult, TimelineBatchTransformResult, TimelineBatchTrimResult, } from "./timeline-batch-contract.js";
|
|
18
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EACh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AA8B,EAC9B,sBAAsB,GACvB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,cAAc,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAC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uBAAuB,GACxB,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export { editorCommandPreviewSchema, editorCommandReceiptSchema, editorCommandRequestSchema, editorCommandSchema, } from "./editor-command-contract.js";
|
|
2
2
|
export { editorDocumentSchema, editorMediaSchema, editorSourceViewSchema, editorTimelineItemSchema, } from "./editor-document-contract.js";
|
|
3
3
|
export { EDITOR_CROP_PROPERTIES, EDITOR_KEYFRAME_EASINGS, EDITOR_KEYFRAME_PROPERTIES, editorCropSchema, editorKeyframeChangeSchema, editorKeyframeEasingSchema, editorKeyframePropertySchema, } from "./editor-keyframe-contract.js";
|
|
4
|
+
export { editorCaptionSchema, editorCaptionWordSchema, editorSnapshotSchema, } from "./editor-snapshot-contract.js";
|
|
4
5
|
export { getBlitzReelsErrorCliExitCode, getBlitzReelsErrorDefaultRetryable, getSequenceOperationErrorDefinition, isBlitzReelsErrorCode, isSequenceOperationErrorCode, SEQUENCE_OPERATION_ERROR_CODES, SEQUENCE_OPERATION_ERROR_DEFINITIONS, } from "./error-contract.js";
|
|
5
6
|
export { generationVisualStylesSchema, generationVoicesSchema, } from "./generation-catalog-contract.js";
|
|
6
7
|
export * from "./generation-resolution.js";
|
|
7
8
|
export { computeEffectiveVideoSize } from "./media-size.js";
|
|
9
|
+
export { projectPreparationResponseSchema, projectPreparationSchema, } from "./project-preparation-contract.js";
|
|
10
|
+
export { realtimeTokenSchema, } from "./realtime-contract.js";
|
|
8
11
|
export { REFRAME_CONTENT_TYPE_HINTS, REFRAME_LAYOUT_STRATEGIES, } from "./reframe-options.js";
|
|
9
12
|
export { getSequenceOperationDefinition, isSequenceOperationId, SEQUENCE_OPERATION_DEFINITIONS, SEQUENCE_OPERATION_IDS, } from "./sequence-operation-registry.js";
|
|
13
|
+
export * from "./series-contract.js";
|
|
10
14
|
export { computeSourceViewLayout } from "./source-view-layout.js";
|
|
11
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAI1B,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AAUvC,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,oCAAoC,GACrC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,kCAAkC,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAI1B,gBAAgB,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAUvC,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,oCAAoC,GACrC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,kCAAkC,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAIL,gCAAgC,EAChC,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,GAG1B,MAAM,sBAAsB,CAAC;AAY9B,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,kCAAkC,CAAC;AAQ1C,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const projectPreparationKindSchema: z.ZodEnum<{
|
|
3
|
+
broll: "broll";
|
|
4
|
+
captions: "captions";
|
|
5
|
+
color_zoom: "color_zoom";
|
|
6
|
+
cut_silence: "cut_silence";
|
|
7
|
+
emojis: "emojis";
|
|
8
|
+
hook: "hook";
|
|
9
|
+
prepare: "prepare";
|
|
10
|
+
reframe: "reframe";
|
|
11
|
+
studio_sound: "studio_sound";
|
|
12
|
+
transitions: "transitions";
|
|
13
|
+
}>;
|
|
14
|
+
export declare const projectPreparationStepSchema: z.ZodObject<{
|
|
15
|
+
kind: z.ZodEnum<{
|
|
16
|
+
broll: "broll";
|
|
17
|
+
captions: "captions";
|
|
18
|
+
color_zoom: "color_zoom";
|
|
19
|
+
cut_silence: "cut_silence";
|
|
20
|
+
emojis: "emojis";
|
|
21
|
+
hook: "hook";
|
|
22
|
+
prepare: "prepare";
|
|
23
|
+
reframe: "reframe";
|
|
24
|
+
studio_sound: "studio_sound";
|
|
25
|
+
transitions: "transitions";
|
|
26
|
+
}>;
|
|
27
|
+
status: z.ZodEnum<{
|
|
28
|
+
completed: "completed";
|
|
29
|
+
failed: "failed";
|
|
30
|
+
pending: "pending";
|
|
31
|
+
running: "running";
|
|
32
|
+
skipped: "skipped";
|
|
33
|
+
}>;
|
|
34
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
message: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const projectPreparationSchema: z.ZodObject<{
|
|
38
|
+
projectId: z.ZodString;
|
|
39
|
+
startedAt: z.ZodString;
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
completed: "completed";
|
|
42
|
+
failed: "failed";
|
|
43
|
+
processing: "processing";
|
|
44
|
+
}>;
|
|
45
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
46
|
+
kind: z.ZodEnum<{
|
|
47
|
+
broll: "broll";
|
|
48
|
+
captions: "captions";
|
|
49
|
+
color_zoom: "color_zoom";
|
|
50
|
+
cut_silence: "cut_silence";
|
|
51
|
+
emojis: "emojis";
|
|
52
|
+
hook: "hook";
|
|
53
|
+
prepare: "prepare";
|
|
54
|
+
reframe: "reframe";
|
|
55
|
+
studio_sound: "studio_sound";
|
|
56
|
+
transitions: "transitions";
|
|
57
|
+
}>;
|
|
58
|
+
status: z.ZodEnum<{
|
|
59
|
+
completed: "completed";
|
|
60
|
+
failed: "failed";
|
|
61
|
+
pending: "pending";
|
|
62
|
+
running: "running";
|
|
63
|
+
skipped: "skipped";
|
|
64
|
+
}>;
|
|
65
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
66
|
+
message: z.ZodNullable<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const projectPreparationResponseSchema: z.ZodObject<{
|
|
70
|
+
preparation: z.ZodNullable<z.ZodObject<{
|
|
71
|
+
projectId: z.ZodString;
|
|
72
|
+
startedAt: z.ZodString;
|
|
73
|
+
status: z.ZodEnum<{
|
|
74
|
+
completed: "completed";
|
|
75
|
+
failed: "failed";
|
|
76
|
+
processing: "processing";
|
|
77
|
+
}>;
|
|
78
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
79
|
+
kind: z.ZodEnum<{
|
|
80
|
+
broll: "broll";
|
|
81
|
+
captions: "captions";
|
|
82
|
+
color_zoom: "color_zoom";
|
|
83
|
+
cut_silence: "cut_silence";
|
|
84
|
+
emojis: "emojis";
|
|
85
|
+
hook: "hook";
|
|
86
|
+
prepare: "prepare";
|
|
87
|
+
reframe: "reframe";
|
|
88
|
+
studio_sound: "studio_sound";
|
|
89
|
+
transitions: "transitions";
|
|
90
|
+
}>;
|
|
91
|
+
status: z.ZodEnum<{
|
|
92
|
+
completed: "completed";
|
|
93
|
+
failed: "failed";
|
|
94
|
+
pending: "pending";
|
|
95
|
+
running: "running";
|
|
96
|
+
skipped: "skipped";
|
|
97
|
+
}>;
|
|
98
|
+
progress: z.ZodNullable<z.ZodNumber>;
|
|
99
|
+
message: z.ZodNullable<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type ProjectPreparation = z.infer<typeof projectPreparationSchema>;
|
|
104
|
+
export type ProjectPreparationKind = z.infer<typeof projectPreparationKindSchema>;
|
|
105
|
+
export type ProjectPreparationReceipt = {
|
|
106
|
+
completed?: ProjectPreparation;
|
|
107
|
+
mediaAssetId: string;
|
|
108
|
+
startedAt: string;
|
|
109
|
+
kinds: ProjectPreparationKind[];
|
|
110
|
+
jobs: {
|
|
111
|
+
kind: string;
|
|
112
|
+
runId: string | null;
|
|
113
|
+
errorMessage: string | null;
|
|
114
|
+
skippedReason: string | null;
|
|
115
|
+
}[];
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=project-preparation-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-preparation-contract.d.ts","sourceRoot":"","sources":["../src/project-preparation-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,4BAA4B;;;;;;;;;;;EAWvC,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;iBAKvC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnC,CAAC;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,EAAE,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const projectPreparationKindSchema = z.enum([
|
|
3
|
+
"prepare",
|
|
4
|
+
"captions",
|
|
5
|
+
"cut_silence",
|
|
6
|
+
"studio_sound",
|
|
7
|
+
"hook",
|
|
8
|
+
"emojis",
|
|
9
|
+
"broll",
|
|
10
|
+
"color_zoom",
|
|
11
|
+
"transitions",
|
|
12
|
+
"reframe",
|
|
13
|
+
]);
|
|
14
|
+
export const projectPreparationStepSchema = z.object({
|
|
15
|
+
kind: projectPreparationKindSchema,
|
|
16
|
+
status: z.enum(["pending", "running", "completed", "failed", "skipped"]),
|
|
17
|
+
progress: z.number().min(0).max(100).nullable(),
|
|
18
|
+
message: z.string().nullable(),
|
|
19
|
+
});
|
|
20
|
+
export const projectPreparationSchema = z.object({
|
|
21
|
+
projectId: z.string(),
|
|
22
|
+
startedAt: z.string(),
|
|
23
|
+
status: z.enum(["processing", "completed", "failed"]),
|
|
24
|
+
steps: z.array(projectPreparationStepSchema),
|
|
25
|
+
});
|
|
26
|
+
export const projectPreparationResponseSchema = z.object({
|
|
27
|
+
preparation: projectPreparationSchema.nullable(),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=project-preparation-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-preparation-contract.js","sourceRoot":"","sources":["../src/project-preparation-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,SAAS;IACT,UAAU;IACV,aAAa;IACb,cAAc;IACd,MAAM;IACN,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,aAAa;IACb,SAAS;CACV,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IACxE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC/C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC;CAC7C,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,WAAW,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const realtimeTokenSchema: z.ZodObject<{
|
|
3
|
+
access_token: z.ZodString;
|
|
4
|
+
expires_at: z.ZodString;
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type RealtimeToken = z.infer<typeof realtimeTokenSchema>;
|
|
8
|
+
//# sourceMappingURL=realtime-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-contract.d.ts","sourceRoot":"","sources":["../src/realtime-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-contract.js","sourceRoot":"","sources":["../src/realtime-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const seriesWriteSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
defaultCreationMode: z.ZodDefault<z.ZodEnum<{
|
|
5
|
+
faceless: "faceless";
|
|
6
|
+
podcast: "podcast";
|
|
7
|
+
}>>;
|
|
8
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
coverAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
logoAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
storyKitId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
captionThemeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const seriesApplySchema: z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
defaultCreationMode: z.ZodDefault<z.ZodEnum<{
|
|
17
|
+
faceless: "faceless";
|
|
18
|
+
podcast: "podcast";
|
|
19
|
+
}>>;
|
|
20
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
coverAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
logoAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
storyKitId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
captionThemeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
seriesId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
expectedRevision: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const seriesAssignmentSchema: z.ZodObject<{
|
|
29
|
+
kind: z.ZodEnum<{
|
|
30
|
+
project: "project";
|
|
31
|
+
source: "source";
|
|
32
|
+
}>;
|
|
33
|
+
contentId: z.ZodString;
|
|
34
|
+
seriesId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
expectedSeriesId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const seriesDeleteSchema: z.ZodObject<{
|
|
38
|
+
seriesId: z.ZodString;
|
|
39
|
+
expectedRevision: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const seriesPageSchema: z.ZodObject<{
|
|
42
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
43
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export declare const seriesContentQuerySchema: z.ZodObject<{
|
|
46
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
47
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
48
|
+
seriesId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
kind: z.ZodEnum<{
|
|
50
|
+
project: "project";
|
|
51
|
+
source: "source";
|
|
52
|
+
}>;
|
|
53
|
+
sourceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
search: z.ZodDefault<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const seriesBoundsSchema: z.ZodObject<{
|
|
57
|
+
limit: z.ZodNumber;
|
|
58
|
+
offset: z.ZodNumber;
|
|
59
|
+
total: z.ZodNumber;
|
|
60
|
+
returned: z.ZodNumber;
|
|
61
|
+
hasMore: z.ZodBoolean;
|
|
62
|
+
truncated: z.ZodBoolean;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare function seriesBounds({ limit, offset, total, returned, }: {
|
|
65
|
+
limit: number;
|
|
66
|
+
offset: number;
|
|
67
|
+
total: number;
|
|
68
|
+
returned: number;
|
|
69
|
+
}): z.infer<typeof seriesBoundsSchema>;
|
|
70
|
+
export declare const seriesRecordSchema: z.ZodObject<{
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
defaultCreationMode: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
faceless: "faceless";
|
|
74
|
+
podcast: "podcast";
|
|
75
|
+
}>>;
|
|
76
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
coverAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
logoAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
storyKitId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
captionThemeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
revision: z.ZodNumber;
|
|
83
|
+
createdAt: z.ZodString;
|
|
84
|
+
updatedAt: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const seriesContentItemSchema: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
kind: z.ZodEnum<{
|
|
89
|
+
project: "project";
|
|
90
|
+
source: "source";
|
|
91
|
+
}>;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
seriesId: z.ZodNullable<z.ZodString>;
|
|
94
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
96
|
+
durationSeconds: z.ZodNullable<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const seriesSummarySchema: z.ZodObject<{
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
defaultCreationMode: z.ZodDefault<z.ZodEnum<{
|
|
101
|
+
faceless: "faceless";
|
|
102
|
+
podcast: "podcast";
|
|
103
|
+
}>>;
|
|
104
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
coverAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
logoAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
storyKitId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
captionThemeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
revision: z.ZodNumber;
|
|
111
|
+
createdAt: z.ZodString;
|
|
112
|
+
updatedAt: z.ZodString;
|
|
113
|
+
coverUrl: z.ZodNullable<z.ZodString>;
|
|
114
|
+
projectCount: z.ZodNumber;
|
|
115
|
+
sourceCount: z.ZodNumber;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const seriesListSchema: z.ZodObject<{
|
|
118
|
+
items: z.ZodArray<z.ZodObject<{
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
defaultCreationMode: z.ZodDefault<z.ZodEnum<{
|
|
121
|
+
faceless: "faceless";
|
|
122
|
+
podcast: "podcast";
|
|
123
|
+
}>>;
|
|
124
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
coverAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
logoAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
storyKitId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
captionThemeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
revision: z.ZodNumber;
|
|
131
|
+
createdAt: z.ZodString;
|
|
132
|
+
updatedAt: z.ZodString;
|
|
133
|
+
coverUrl: z.ZodNullable<z.ZodString>;
|
|
134
|
+
projectCount: z.ZodNumber;
|
|
135
|
+
sourceCount: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
bounds: z.ZodObject<{
|
|
138
|
+
limit: z.ZodNumber;
|
|
139
|
+
offset: z.ZodNumber;
|
|
140
|
+
total: z.ZodNumber;
|
|
141
|
+
returned: z.ZodNumber;
|
|
142
|
+
hasMore: z.ZodBoolean;
|
|
143
|
+
truncated: z.ZodBoolean;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export declare const seriesContentListSchema: z.ZodObject<{
|
|
147
|
+
items: z.ZodArray<z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
kind: z.ZodEnum<{
|
|
150
|
+
project: "project";
|
|
151
|
+
source: "source";
|
|
152
|
+
}>;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
seriesId: z.ZodNullable<z.ZodString>;
|
|
155
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
156
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
157
|
+
durationSeconds: z.ZodNullable<z.ZodNumber>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
bounds: z.ZodObject<{
|
|
160
|
+
limit: z.ZodNumber;
|
|
161
|
+
offset: z.ZodNumber;
|
|
162
|
+
total: z.ZodNumber;
|
|
163
|
+
returned: z.ZodNumber;
|
|
164
|
+
hasMore: z.ZodBoolean;
|
|
165
|
+
truncated: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export declare const seriesAssignmentResultSchema: z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
kind: z.ZodEnum<{
|
|
171
|
+
project: "project";
|
|
172
|
+
source: "source";
|
|
173
|
+
}>;
|
|
174
|
+
seriesId: z.ZodNullable<z.ZodString>;
|
|
175
|
+
previousSeriesId: z.ZodNullable<z.ZodString>;
|
|
176
|
+
changed: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const seriesDeleteResultSchema: z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
detachedProjects: z.ZodNumber;
|
|
181
|
+
detachedSources: z.ZodNumber;
|
|
182
|
+
contentPreserved: z.ZodLiteral<true>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
export declare const seriesApiWriteSchema: z.ZodObject<{
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
default_creation_mode: z.ZodDefault<z.ZodEnum<{
|
|
187
|
+
faceless: "faceless";
|
|
188
|
+
podcast: "podcast";
|
|
189
|
+
}>>;
|
|
190
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
cover_asset_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
logo_asset_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
story_kit_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
caption_theme_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export declare function seriesWriteToApi(input: SeriesWrite): {
|
|
197
|
+
name: string;
|
|
198
|
+
default_creation_mode: "faceless" | "podcast";
|
|
199
|
+
description: string | null;
|
|
200
|
+
cover_asset_id: string | null;
|
|
201
|
+
logo_asset_id: string | null;
|
|
202
|
+
story_kit_id: string | null;
|
|
203
|
+
caption_theme_id: string | null;
|
|
204
|
+
};
|
|
205
|
+
export declare function seriesWriteFromApi(input: z.infer<typeof seriesApiWriteSchema>): SeriesWrite;
|
|
206
|
+
export type SeriesWrite = z.infer<typeof seriesWriteSchema>;
|
|
207
|
+
export type SeriesRecord = z.infer<typeof seriesRecordSchema>;
|
|
208
|
+
export type SeriesList = z.infer<typeof seriesListSchema>;
|
|
209
|
+
export type SeriesContentList = z.infer<typeof seriesContentListSchema>;
|
|
210
|
+
export type SeriesAssignment = z.infer<typeof seriesAssignmentSchema>;
|
|
211
|
+
export type SeriesAssignmentResult = z.infer<typeof seriesAssignmentResultSchema>;
|
|
212
|
+
export type SeriesDeleteResult = z.infer<typeof seriesDeleteResultSchema>;
|
|
213
|
+
export type SeriesApply = z.infer<typeof seriesApplySchema>;
|
|
214
|
+
export type SeriesDelete = z.infer<typeof seriesDeleteSchema>;
|
|
215
|
+
export type SeriesContentQuery = z.infer<typeof seriesContentQuerySchema>;
|
|
216
|
+
//# sourceMappingURL=series-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-contract.d.ts","sourceRoot":"","sources":["../src/series-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;iBAQ5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;iBAO7B,CAAC;AAEH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CASrC;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;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AC;AAC1E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const seriesWriteSchema = z.object({
|
|
3
|
+
name: z.string().trim().min(1).max(120),
|
|
4
|
+
defaultCreationMode: z.enum(["podcast", "faceless"]).default("podcast"),
|
|
5
|
+
description: z.string().trim().max(2000).nullable().default(null),
|
|
6
|
+
coverAssetId: z.string().uuid().nullable().default(null),
|
|
7
|
+
logoAssetId: z.string().uuid().nullable().default(null),
|
|
8
|
+
storyKitId: z.string().uuid().nullable().default(null),
|
|
9
|
+
captionThemeId: z.string().min(1).max(120).nullable().default(null),
|
|
10
|
+
});
|
|
11
|
+
export const seriesApplySchema = seriesWriteSchema.extend({
|
|
12
|
+
seriesId: z.string().uuid().nullable().default(null),
|
|
13
|
+
expectedRevision: z.number().int().positive().nullable().default(null),
|
|
14
|
+
});
|
|
15
|
+
export const seriesAssignmentSchema = z.object({
|
|
16
|
+
kind: z.enum(["project", "source"]),
|
|
17
|
+
contentId: z.string().uuid(),
|
|
18
|
+
seriesId: z.string().uuid().nullable(),
|
|
19
|
+
expectedSeriesId: z.string().uuid().nullable(),
|
|
20
|
+
});
|
|
21
|
+
export const seriesDeleteSchema = z.object({
|
|
22
|
+
seriesId: z.string().uuid(),
|
|
23
|
+
expectedRevision: z.number().int().positive(),
|
|
24
|
+
});
|
|
25
|
+
export const seriesPageSchema = z.object({
|
|
26
|
+
limit: z.coerce.number().int().min(1).max(100).default(30),
|
|
27
|
+
offset: z.coerce.number().int().min(0).default(0),
|
|
28
|
+
});
|
|
29
|
+
export const seriesContentQuerySchema = seriesPageSchema.extend({
|
|
30
|
+
seriesId: z.string().uuid().nullable(),
|
|
31
|
+
kind: z.enum(["project", "source"]),
|
|
32
|
+
sourceId: z.string().uuid().nullable().default(null),
|
|
33
|
+
search: z.string().trim().max(120).default(""),
|
|
34
|
+
});
|
|
35
|
+
export const seriesBoundsSchema = z.object({
|
|
36
|
+
limit: z.number().int(),
|
|
37
|
+
offset: z.number().int(),
|
|
38
|
+
total: z.number().int(),
|
|
39
|
+
returned: z.number().int(),
|
|
40
|
+
hasMore: z.boolean(),
|
|
41
|
+
truncated: z.boolean(),
|
|
42
|
+
});
|
|
43
|
+
export function seriesBounds({ limit, offset, total, returned, }) {
|
|
44
|
+
return {
|
|
45
|
+
limit,
|
|
46
|
+
offset,
|
|
47
|
+
total,
|
|
48
|
+
returned,
|
|
49
|
+
hasMore: offset + returned < total,
|
|
50
|
+
truncated: offset > 0 || returned < total,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export const seriesRecordSchema = seriesWriteSchema.extend({
|
|
54
|
+
id: z.string().uuid(),
|
|
55
|
+
revision: z.number().int().positive(),
|
|
56
|
+
createdAt: z.string(),
|
|
57
|
+
updatedAt: z.string(),
|
|
58
|
+
});
|
|
59
|
+
export const seriesContentItemSchema = z.object({
|
|
60
|
+
id: z.string().uuid(),
|
|
61
|
+
kind: z.enum(["project", "source"]),
|
|
62
|
+
name: z.string(),
|
|
63
|
+
seriesId: z.string().uuid().nullable(),
|
|
64
|
+
sourceId: z.string().uuid().nullable(),
|
|
65
|
+
thumbnailUrl: z.string().nullable(),
|
|
66
|
+
durationSeconds: z.number().nullable(),
|
|
67
|
+
});
|
|
68
|
+
export const seriesSummarySchema = seriesRecordSchema.extend({
|
|
69
|
+
coverUrl: z.string().nullable(),
|
|
70
|
+
projectCount: z.number().int(),
|
|
71
|
+
sourceCount: z.number().int(),
|
|
72
|
+
});
|
|
73
|
+
export const seriesListSchema = z.object({
|
|
74
|
+
items: z.array(seriesSummarySchema),
|
|
75
|
+
bounds: seriesBoundsSchema,
|
|
76
|
+
});
|
|
77
|
+
export const seriesContentListSchema = z.object({
|
|
78
|
+
items: z.array(seriesContentItemSchema),
|
|
79
|
+
bounds: seriesBoundsSchema,
|
|
80
|
+
});
|
|
81
|
+
export const seriesAssignmentResultSchema = z.object({
|
|
82
|
+
id: z.string().uuid(),
|
|
83
|
+
kind: z.enum(["project", "source"]),
|
|
84
|
+
seriesId: z.string().uuid().nullable(),
|
|
85
|
+
previousSeriesId: z.string().uuid().nullable(),
|
|
86
|
+
changed: z.boolean(),
|
|
87
|
+
});
|
|
88
|
+
export const seriesDeleteResultSchema = z.object({
|
|
89
|
+
id: z.string().uuid(),
|
|
90
|
+
detachedProjects: z.number().int(),
|
|
91
|
+
detachedSources: z.number().int(),
|
|
92
|
+
contentPreserved: z.literal(true),
|
|
93
|
+
});
|
|
94
|
+
export const seriesApiWriteSchema = z.object({
|
|
95
|
+
name: seriesWriteSchema.shape.name,
|
|
96
|
+
default_creation_mode: seriesWriteSchema.shape.defaultCreationMode,
|
|
97
|
+
description: seriesWriteSchema.shape.description,
|
|
98
|
+
cover_asset_id: seriesWriteSchema.shape.coverAssetId,
|
|
99
|
+
logo_asset_id: seriesWriteSchema.shape.logoAssetId,
|
|
100
|
+
story_kit_id: seriesWriteSchema.shape.storyKitId,
|
|
101
|
+
caption_theme_id: seriesWriteSchema.shape.captionThemeId,
|
|
102
|
+
});
|
|
103
|
+
export function seriesWriteToApi(input) {
|
|
104
|
+
return {
|
|
105
|
+
name: input.name,
|
|
106
|
+
default_creation_mode: input.defaultCreationMode,
|
|
107
|
+
description: input.description,
|
|
108
|
+
cover_asset_id: input.coverAssetId,
|
|
109
|
+
logo_asset_id: input.logoAssetId,
|
|
110
|
+
story_kit_id: input.storyKitId,
|
|
111
|
+
caption_theme_id: input.captionThemeId,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export function seriesWriteFromApi(input) {
|
|
115
|
+
return {
|
|
116
|
+
name: input.name,
|
|
117
|
+
defaultCreationMode: input.default_creation_mode,
|
|
118
|
+
description: input.description,
|
|
119
|
+
coverAssetId: input.cover_asset_id,
|
|
120
|
+
logoAssetId: input.logo_asset_id,
|
|
121
|
+
storyKitId: input.story_kit_id,
|
|
122
|
+
captionThemeId: input.caption_theme_id,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=series-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-contract.js","sourceRoot":"","sources":["../src/series-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IACvE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACjE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACxD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACtD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,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