@blitzreels/sdk 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -2
  3. package/dist/client.d.ts +197 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +78 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/index.d.ts +17 -1482
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +3 -1060
  10. package/dist/index.js.map +1 -1
  11. package/dist/resources/ai-edit.d.ts +2 -2
  12. package/dist/resources/ai-edit.d.ts.map +1 -1
  13. package/dist/resources/auth-projects.d.ts +26 -0
  14. package/dist/resources/auth-projects.d.ts.map +1 -0
  15. package/dist/resources/auth-projects.js +129 -0
  16. package/dist/resources/auth-projects.js.map +1 -0
  17. package/dist/resources/captions.d.ts +5 -5
  18. package/dist/resources/captions.d.ts.map +1 -1
  19. package/dist/resources/captions.js +15 -0
  20. package/dist/resources/captions.js.map +1 -1
  21. package/dist/resources/content-audio.d.ts +20 -0
  22. package/dist/resources/content-audio.d.ts.map +1 -0
  23. package/dist/resources/content-audio.js +98 -0
  24. package/dist/resources/content-audio.js.map +1 -0
  25. package/dist/resources/effects-workflows.d.ts +29 -0
  26. package/dist/resources/effects-workflows.d.ts.map +1 -0
  27. package/dist/resources/effects-workflows.js +154 -0
  28. package/dist/resources/effects-workflows.js.map +1 -0
  29. package/dist/resources/exports-jobs.d.ts +19 -0
  30. package/dist/resources/exports-jobs.d.ts.map +1 -0
  31. package/dist/resources/exports-jobs.js +88 -0
  32. package/dist/resources/exports-jobs.js.map +1 -0
  33. package/dist/resources/faceless.d.ts +18 -0
  34. package/dist/resources/faceless.d.ts.map +1 -0
  35. package/dist/resources/faceless.js +89 -0
  36. package/dist/resources/faceless.js.map +1 -0
  37. package/dist/resources/formats.d.ts +9 -0
  38. package/dist/resources/formats.d.ts.map +1 -0
  39. package/dist/resources/formats.js +21 -0
  40. package/dist/resources/formats.js.map +1 -0
  41. package/dist/resources/generation.d.ts +29 -0
  42. package/dist/resources/generation.d.ts.map +1 -0
  43. package/dist/resources/generation.js +161 -0
  44. package/dist/resources/generation.js.map +1 -0
  45. package/dist/resources/libraries.d.ts +19 -0
  46. package/dist/resources/libraries.d.ts.map +1 -0
  47. package/dist/resources/libraries.js +89 -0
  48. package/dist/resources/libraries.js.map +1 -0
  49. package/dist/resources/media-clips.d.ts +61 -0
  50. package/dist/resources/media-clips.d.ts.map +1 -0
  51. package/dist/resources/media-clips.js +395 -0
  52. package/dist/resources/media-clips.js.map +1 -0
  53. package/dist/resources/timeline.d.ts +10 -2
  54. package/dist/resources/timeline.d.ts.map +1 -1
  55. package/dist/resources/timeline.js +93 -54
  56. package/dist/resources/timeline.js.map +1 -1
  57. package/dist/resources/workspace-onboarding.d.ts +25 -0
  58. package/dist/resources/workspace-onboarding.d.ts.map +1 -0
  59. package/dist/resources/workspace-onboarding.js +99 -0
  60. package/dist/resources/workspace-onboarding.js.map +1 -0
  61. package/dist/transport.d.ts +22 -0
  62. package/dist/transport.d.ts.map +1 -0
  63. package/dist/transport.js +189 -0
  64. package/dist/transport.js.map +1 -0
  65. package/dist/types/ai-edit.d.ts +180 -0
  66. package/dist/types/ai-edit.d.ts.map +1 -0
  67. package/dist/types/ai-edit.js +2 -0
  68. package/dist/types/ai-edit.js.map +1 -0
  69. package/dist/types/captions.d.ts +202 -0
  70. package/dist/types/captions.d.ts.map +1 -0
  71. package/dist/types/captions.js +2 -0
  72. package/dist/types/captions.js.map +1 -0
  73. package/dist/types/clips.d.ts +145 -0
  74. package/dist/types/clips.d.ts.map +1 -0
  75. package/dist/types/clips.js +2 -0
  76. package/dist/types/clips.js.map +1 -0
  77. package/dist/types/common.d.ts +273 -0
  78. package/dist/types/common.d.ts.map +1 -0
  79. package/dist/{resources → types}/common.js.map +1 -1
  80. package/dist/types/exports.d.ts +62 -0
  81. package/dist/types/exports.d.ts.map +1 -0
  82. package/dist/types/exports.js +2 -0
  83. package/dist/types/exports.js.map +1 -0
  84. package/dist/types/faceless.d.ts +201 -0
  85. package/dist/types/faceless.d.ts.map +1 -0
  86. package/dist/types/faceless.js +2 -0
  87. package/dist/types/faceless.js.map +1 -0
  88. package/dist/types/formats.d.ts +40 -0
  89. package/dist/types/formats.d.ts.map +1 -0
  90. package/dist/types/formats.js +2 -0
  91. package/dist/types/formats.js.map +1 -0
  92. package/dist/types/generation.d.ts +84 -0
  93. package/dist/types/generation.d.ts.map +1 -0
  94. package/dist/types/generation.js +2 -0
  95. package/dist/types/generation.js.map +1 -0
  96. package/dist/types/libraries.d.ts +184 -0
  97. package/dist/types/libraries.d.ts.map +1 -0
  98. package/dist/types/libraries.js +2 -0
  99. package/dist/types/libraries.js.map +1 -0
  100. package/dist/types/media.d.ts +328 -0
  101. package/dist/types/media.d.ts.map +1 -0
  102. package/dist/types/media.js +2 -0
  103. package/dist/types/media.js.map +1 -0
  104. package/dist/types/projects.d.ts +187 -0
  105. package/dist/types/projects.d.ts.map +1 -0
  106. package/dist/types/projects.js +2 -0
  107. package/dist/types/projects.js.map +1 -0
  108. package/dist/types/timeline.d.ts +90 -0
  109. package/dist/types/timeline.d.ts.map +1 -0
  110. package/dist/types/timeline.js +2 -0
  111. package/dist/types/timeline.js.map +1 -0
  112. package/dist/types/workspace.d.ts +129 -0
  113. package/dist/types/workspace.d.ts.map +1 -0
  114. package/dist/types/workspace.js +2 -0
  115. package/dist/types/workspace.js.map +1 -0
  116. package/package.json +9 -3
  117. package/dist/resources/common.d.ts +0 -3
  118. package/dist/resources/common.d.ts.map +0 -1
  119. /package/dist/{resources → types}/common.js +0 -0
@@ -0,0 +1,187 @@
1
+ import type { JsonObject } from "./common.js";
2
+ export type AuthValidation = {
3
+ success: boolean;
4
+ organization_id: string;
5
+ user_id: string;
6
+ plan: string;
7
+ environment: "live" | "test";
8
+ key_prefix: string;
9
+ docs_url: string;
10
+ openapi_url: string;
11
+ agent_skills: {
12
+ manifest_url: string;
13
+ recommended: string[];
14
+ minimum_updated_after: string;
15
+ };
16
+ };
17
+ export type ProjectContextMode = "summary" | "assets" | "timeline" | "transcript" | "full";
18
+ export type ProjectContextCollectionBounds = {
19
+ name: string;
20
+ offset: number;
21
+ limit: number;
22
+ total: number;
23
+ returned: number;
24
+ hasMore: boolean;
25
+ truncated: boolean;
26
+ };
27
+ export type ProjectContextBounds = {
28
+ collections: ProjectContextCollectionBounds[];
29
+ };
30
+ export type ProjectContext = {
31
+ mode: ProjectContextMode;
32
+ data: unknown;
33
+ bounds: ProjectContextBounds;
34
+ };
35
+ export type Project = {
36
+ id: string;
37
+ name: string;
38
+ description: string | null;
39
+ aspect_ratio: string | null;
40
+ status: string;
41
+ created_at: string;
42
+ updated_at: string;
43
+ };
44
+ export type ProjectTimelineSummary = {
45
+ total_items: number;
46
+ duration_seconds: number;
47
+ };
48
+ export type ProjectListProject = Project & {
49
+ timeline_summary: ProjectTimelineSummary;
50
+ };
51
+ export type ProjectList = {
52
+ projects: ProjectListProject[];
53
+ items: ProjectListProject[];
54
+ count: number;
55
+ next_cursor: string | null | undefined;
56
+ has_more: boolean | undefined;
57
+ };
58
+ export type PreviewFrame = {
59
+ preview_url: string;
60
+ expires_at: string;
61
+ storage_key: string;
62
+ captured_at: string;
63
+ cached: boolean;
64
+ frame: number;
65
+ time_seconds: number;
66
+ width: number;
67
+ height: number;
68
+ image_format: "jpeg" | "png";
69
+ };
70
+ export type PreviewFrames = {
71
+ project_id: string;
72
+ previews: PreviewFrame[];
73
+ };
74
+ export type VisualDebugRect = {
75
+ left: number;
76
+ top: number;
77
+ width: number;
78
+ height: number;
79
+ };
80
+ export type ProjectVisualDebug = {
81
+ project_id: string;
82
+ captured_at: string;
83
+ cached: boolean;
84
+ layout_key: string | null;
85
+ visible_media_rect: VisualDebugRect | null;
86
+ visible_media_rects: Array<VisualDebugRect & {
87
+ timeline_item_id: string;
88
+ }>;
89
+ caption_rects: Array<VisualDebugRect & {
90
+ timeline_item_id: string;
91
+ }>;
92
+ canvas_rects: Array<VisualDebugRect & {
93
+ timeline_item_id: string;
94
+ }>;
95
+ source_crops: Array<{
96
+ timeline_item_id: string;
97
+ x: number;
98
+ y: number;
99
+ width: number;
100
+ height: number;
101
+ fit_mode: "contain" | "cover" | "stretch";
102
+ planner_mode: string;
103
+ }>;
104
+ speaker_regions: Array<{
105
+ asset_id: string;
106
+ side: "left" | "right" | "center";
107
+ confidence: number;
108
+ coverage_ratio: number;
109
+ dominant_ratio: number;
110
+ box: {
111
+ x: number;
112
+ y: number;
113
+ width: number;
114
+ height: number;
115
+ };
116
+ }>;
117
+ face_boxes: Array<{
118
+ asset_id: string;
119
+ subject_id: string;
120
+ label: string;
121
+ role: "primary" | "secondary";
122
+ side: "left" | "right" | "center";
123
+ confidence: number;
124
+ box: {
125
+ x: number;
126
+ y: number;
127
+ width: number;
128
+ height: number;
129
+ };
130
+ }>;
131
+ active_split_gap_rect: VisualDebugRect | null;
132
+ };
133
+ export type SnapshotOptions = {
134
+ projectId: string;
135
+ atSeconds: number;
136
+ targetWidth: number | undefined;
137
+ imageFormat: "jpeg" | "png" | undefined;
138
+ };
139
+ export type SnapshotBatchOptions = {
140
+ projectId: string;
141
+ atSeconds: number[];
142
+ targetWidth: number | undefined;
143
+ imageFormat: "jpeg" | "png" | undefined;
144
+ };
145
+ export type ProjectVisualDebugOptions = {
146
+ projectId: string;
147
+ timeSeconds: number;
148
+ };
149
+ export type InspectProjectOptions = {
150
+ projectId: string;
151
+ mode: ProjectContextMode;
152
+ assetLimit?: number;
153
+ assetOffset?: number;
154
+ timelineLimit?: number;
155
+ timelineOffset?: number;
156
+ transcriptLimit?: number;
157
+ transcriptOffset?: number;
158
+ captionWordLimit?: number;
159
+ captionWordOffset?: number;
160
+ };
161
+ export type ProjectTimelineOptions = {
162
+ projectId: string;
163
+ limit?: number;
164
+ offset?: number;
165
+ };
166
+ export type ListProjectsOptions = {
167
+ limit: number | undefined;
168
+ cursor: string | undefined;
169
+ offset: number | undefined;
170
+ search: string | undefined;
171
+ status: "active" | "archived" | "all" | undefined;
172
+ };
173
+ export type CreateProjectOptions = {
174
+ name: string;
175
+ description: string | undefined;
176
+ aspectRatio: "9:16" | "16:9" | "1:1" | "4:5" | undefined;
177
+ projectType: "video" | "carousel" | undefined;
178
+ carouselSettings: JsonObject | undefined;
179
+ idempotencyKey: string | undefined;
180
+ };
181
+ export type UpdateProjectOptions = {
182
+ projectId: string;
183
+ name: string | undefined;
184
+ description: string | null | undefined;
185
+ aspectRatio: "9:16" | "16:9" | "1:1" | "4:5" | undefined;
186
+ };
187
+ //# sourceMappingURL=projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/types/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE;QACZ,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,qBAAqB,EAAE,MAAM,CAAC;KAC/B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,MAAM,CAAC;AAEX,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,Q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AE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC;CAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/types/projects.ts"],"names":[],"mappings":""}
@@ -0,0 +1,90 @@
1
+ import type { SequenceTimingExecuteOptions as ContractSequenceTimingExecuteOptions, SequenceTimingExecuteResult as ContractSequenceTimingExecuteResult, SequenceTimingPreviewOptions as ContractSequenceTimingPreviewOptions, SequenceTimingPreviewResult as ContractSequenceTimingPreviewResult, TimelineBatchDeleteResult as ContractTimelineBatchDeleteResult, TimelineBatchMoveResult as ContractTimelineBatchMoveResult, TimelineBatchTransformResult as ContractTimelineBatchTransformResult, TimelineBatchTrimResult as ContractTimelineBatchTrimResult } from "@blitzreels/contracts";
2
+ export type SequenceTimingExecuteOptions = ContractSequenceTimingExecuteOptions;
3
+ export type SequenceTimingExecuteResult = ContractSequenceTimingExecuteResult;
4
+ export type SequenceTimingPreviewOptions = ContractSequenceTimingPreviewOptions;
5
+ export type SequenceTimingPreviewResult = ContractSequenceTimingPreviewResult;
6
+ export type TimelineEditResult = {
7
+ action: string;
8
+ result: unknown;
9
+ };
10
+ export type TimelineBatchMoveResult = ContractTimelineBatchMoveResult;
11
+ export type TimelineBatchTrimResult = ContractTimelineBatchTrimResult;
12
+ export type TimelineBatchTransformResult = ContractTimelineBatchTransformResult;
13
+ export type TimelineBatchDeleteResult = ContractTimelineBatchDeleteResult;
14
+ export type TimelineTransformOptions = {
15
+ projectId: string;
16
+ timelineItemId: string;
17
+ positionX: number | undefined;
18
+ positionY: number | undefined;
19
+ widthPx: number | null | undefined;
20
+ heightPx: number | null | undefined;
21
+ keepAspectRatio: boolean | undefined;
22
+ };
23
+ export type TimelineMoveOptions = {
24
+ projectId: string;
25
+ timelineItemId: string;
26
+ newStartSeconds: number;
27
+ newLayerIndex: number | undefined;
28
+ };
29
+ export type TimelineDeleteOptions = {
30
+ projectId: string;
31
+ timelineItemIds: string[];
32
+ autoPack: boolean | undefined;
33
+ };
34
+ export type TimelineSplitOptions = {
35
+ projectId: string;
36
+ timelineItemId: string;
37
+ splitAtSeconds: number;
38
+ snapToFrame: boolean | undefined;
39
+ idempotencyKey?: string;
40
+ };
41
+ export type TimelineTrimOptions = {
42
+ projectId: string;
43
+ timelineItemId: string;
44
+ trimStartDeltaSeconds: number | undefined;
45
+ trimEndDeltaSeconds: number | undefined;
46
+ snapToFrame: boolean | undefined;
47
+ idempotencyKey?: string;
48
+ };
49
+ export type TimelineBatchMoveOptions = {
50
+ projectId: string;
51
+ items: Array<{
52
+ timelineItemId: string;
53
+ newStartSeconds: number;
54
+ newLayerIndex: number | undefined;
55
+ }>;
56
+ };
57
+ export type TimelineBatchTrimOptions = {
58
+ projectId: string;
59
+ idempotencyKey?: string;
60
+ items: Array<{
61
+ timelineItemId: string;
62
+ trimStartDeltaSeconds: number | undefined;
63
+ trimEndDeltaSeconds: number | undefined;
64
+ }>;
65
+ snapToFrame: boolean | undefined;
66
+ };
67
+ export type TimelineBatchTransformOptions = {
68
+ projectId: string;
69
+ items: Array<Omit<TimelineTransformOptions, "projectId">>;
70
+ };
71
+ export type TimelineCutOptions = {
72
+ projectId: string;
73
+ timelineItemId: string;
74
+ cuts: Array<{
75
+ startSeconds: number;
76
+ endSeconds: number;
77
+ trimFollowingSeconds: number | undefined;
78
+ }>;
79
+ snapToFrame: boolean | undefined;
80
+ ripple: boolean | undefined;
81
+ };
82
+ export type TimelineItemDeleteResult = {
83
+ success: boolean;
84
+ deleted_item_id: string;
85
+ deleted_item_name: string | null;
86
+ deleted_item_type: string | null;
87
+ captions_removed: number | null;
88
+ message: string | null;
89
+ };
90
+ //# sourceMappingURL=timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../src/types/timeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,IAAI,oCAAoC,EACpE,2BAA2B,IAAI,mCAAmC,EAClE,4BAA4B,IAAI,oCAAoC,EACpE,2BAA2B,IAAI,mCAAmC,EAClE,yBAAyB,IAAI,iCAAiC,EAC9D,uBAAuB,IAAI,+BAA+B,EAC1D,4BAA4B,IAAI,oCAAoC,EACpE,uBAAuB,IAAI,+BAA+B,EAC3D,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAChF,MAAM,MAAM,2BAA2B,GAAG,mCAAmC,CAAC;AAC9E,MAAM,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAChF,MAAM,MAAM,2BAA2B,GAAG,mCAAmC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,+BAA+B,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,+BAA+B,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,iCAAiC,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,GAA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K,EAAE,KAAK,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1C,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;KACzC,CAAC,CAAC;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;QACV,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1C,CAAC,CAAC;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=timeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../src/types/timeline.ts"],"names":[],"mappings":""}
@@ -0,0 +1,129 @@
1
+ import type { JsonObject } from "./common.js";
2
+ export type WorkspaceSettings = {
3
+ settings: {
4
+ id: string;
5
+ name: string;
6
+ description: string | null;
7
+ safeWords: string[];
8
+ protected_words: string[];
9
+ icon_storage_key: string | null;
10
+ icon_url: string | null;
11
+ defaults: {
12
+ aspectRatio: string | null;
13
+ aspect_ratio: string | null;
14
+ orientation: string | null;
15
+ resolution: string | null;
16
+ frameRate: string | null;
17
+ frame_rate: string | null;
18
+ autoManageBroll: boolean | null;
19
+ auto_manage_broll: boolean | null;
20
+ captionThemeId: string | null;
21
+ caption_theme_id: string | null;
22
+ };
23
+ updated_at: string;
24
+ };
25
+ };
26
+ export type WorkspaceSettingsUpdate = WorkspaceSettings & {
27
+ success: true;
28
+ };
29
+ export type OnboardingBusinessOutcome = "book_calls" | "sell_offer" | "grow_authority" | "repurpose_content" | "other";
30
+ export type BrandSocialProfile = {
31
+ platform: "linkedin" | "youtube" | "instagram" | "tiktok" | "facebook" | "x";
32
+ value: string;
33
+ };
34
+ export type BrandLogoCandidate = {
35
+ url: string;
36
+ label: "favicon" | "apple-touch-icon" | "og:image" | "twitterImage" | "logo image" | "icon" | "image" | "ogImage" | null;
37
+ };
38
+ export type OnboardingBrandProfile = {
39
+ id: string;
40
+ business_outcome: OnboardingBusinessOutcome | null;
41
+ website_url: string | null;
42
+ brand_name: string | null;
43
+ tagline: string | null;
44
+ audience: string | null;
45
+ offer: string | null;
46
+ conversion_goal: string | null;
47
+ tone: string | null;
48
+ messaging: JsonObject;
49
+ color_palette: string[];
50
+ logo_candidates: BrandLogoCandidate[];
51
+ suggested_safe_words: string[];
52
+ social_profiles: BrandSocialProfile[];
53
+ status: string;
54
+ last_scanned_at: string | null;
55
+ updated_at: string;
56
+ };
57
+ export type OnboardingNextAction = {
58
+ method: "GET" | "POST" | "PATCH";
59
+ path: string;
60
+ reason: string;
61
+ };
62
+ export type OnboardingBrandScan = {
63
+ run_id: string;
64
+ brand_profile_id: string | null;
65
+ source_url: string;
66
+ status: string;
67
+ error: string | null;
68
+ pages_scanned: number;
69
+ created_at: string;
70
+ completed_at: string | null;
71
+ profile: OnboardingBrandProfile | null;
72
+ next_actions: OnboardingNextAction[];
73
+ };
74
+ export type OnboardingBrandProfileEnvelope = {
75
+ profile: OnboardingBrandProfile | null;
76
+ onboarding: {
77
+ completed: boolean;
78
+ data_saved: boolean;
79
+ };
80
+ next_actions: OnboardingNextAction[];
81
+ };
82
+ export type OnboardingBrandProfileInput = {
83
+ businessOutcome: OnboardingBusinessOutcome | null;
84
+ websiteUrl: string | null;
85
+ socialProfiles: BrandSocialProfile[] | null;
86
+ brandName: string | null;
87
+ tagline: string | null;
88
+ audience: string | null;
89
+ offer: string | null;
90
+ conversionGoal: string | null;
91
+ tone: string | null;
92
+ colorPalette: string[] | null;
93
+ logoCandidates: BrandLogoCandidate[] | null;
94
+ suggestedSafeWords: string[] | null;
95
+ workspaceDescription: string | null;
96
+ };
97
+ export type StartOnboardingBrandScanOptions = {
98
+ websiteUrl: string;
99
+ businessOutcome: OnboardingBusinessOutcome | null;
100
+ };
101
+ export type CompleteOnboardingOptions = OnboardingBrandProfileInput & {
102
+ platforms: string[] | null;
103
+ saveWorkspaceIcon: boolean;
104
+ };
105
+ export type OnboardingLogoImportResult = {
106
+ success: true;
107
+ icon_storage_key: string | null;
108
+ next_actions: OnboardingNextAction[];
109
+ };
110
+ export type ImportOnboardingLogoOptions = {
111
+ profileId: string | null;
112
+ logoUrl: string | null;
113
+ replaceExisting: boolean;
114
+ };
115
+ export type UpdateWorkspaceSettingsOptions = {
116
+ name: string | undefined;
117
+ description: string | null | undefined;
118
+ protectedWords: string[] | undefined;
119
+ iconStorageKey: string | null | undefined;
120
+ defaults: {
121
+ aspectRatio: "9:16" | "16:9" | "1:1" | "4:5" | null | undefined;
122
+ orientation: "landscape" | "portrait" | "square" | null | undefined;
123
+ resolution: "0.25" | "0.5" | "0.75" | "1" | "1.5" | "2" | null | undefined;
124
+ frameRate: "24" | "25" | "30" | "50" | "60" | null | undefined;
125
+ autoManageBroll: boolean | undefined;
126
+ captionThemeId: string | null | undefined;
127
+ } | undefined;
128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AC;QACrC,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;KAC3C,GACD,SAAS,CAAC;CACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=workspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../src/types/workspace.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@blitzreels/sdk",
3
- "version": "0.1.5",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript SDK for AI agents and developers to edit videos inside BlitzReels.",
5
5
  "homepage": "https://blitzreels.com/",
6
+ "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
8
- "url": "git+https://github.com/blitzreels/blitzreels.git",
9
+ "url": "git+https://github.com/blitzreels/developer-tools.git",
9
10
  "directory": "packages/sdk"
10
11
  },
11
12
  "bugs": {
12
- "url": "https://github.com/blitzreels/blitzreels/issues"
13
+ "url": "https://github.com/blitzreels/developer-tools/issues"
13
14
  },
14
15
  "type": "module",
15
16
  "main": "./dist/index.js",
@@ -24,6 +25,9 @@
24
25
  "dist",
25
26
  "README.md"
26
27
  ],
28
+ "dependencies": {
29
+ "@blitzreels/contracts": "^0.2.0"
30
+ },
27
31
  "publishConfig": {
28
32
  "access": "public"
29
33
  },
@@ -31,7 +35,9 @@
31
35
  "node": ">=20"
32
36
  },
33
37
  "scripts": {
38
+ "prebuild": "pnpm --filter @blitzreels/contracts build",
34
39
  "build": "tsc -p tsconfig.json",
40
+ "pretypecheck": "pnpm --filter @blitzreels/contracts build",
35
41
  "typecheck": "tsc -p tsconfig.json --noEmit"
36
42
  }
37
43
  }
@@ -1,3 +0,0 @@
1
- import type { RequestOptions } from "../index.js";
2
- export type SdkRequest = <T>(options: RequestOptions) => Promise<T>;
3
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/resources/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC"}
File without changes