shred-api-client 2.1.3 → 2.1.4
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/index.d.mts +92 -1
- package/dist/index.d.ts +92 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1364,6 +1364,41 @@ declare const TimelineItemSchema: z.ZodObject<{
|
|
|
1364
1364
|
description: string;
|
|
1365
1365
|
timestamp: number;
|
|
1366
1366
|
}>;
|
|
1367
|
+
declare const FeedbackSchema: z.ZodObject<{
|
|
1368
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
1369
|
+
id: z.ZodString;
|
|
1370
|
+
label: z.ZodString;
|
|
1371
|
+
score: z.ZodNumber;
|
|
1372
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
}, "strip", z.ZodTypeAny, {
|
|
1374
|
+
id: string;
|
|
1375
|
+
label: string;
|
|
1376
|
+
score: number;
|
|
1377
|
+
comment?: string | undefined;
|
|
1378
|
+
}, {
|
|
1379
|
+
id: string;
|
|
1380
|
+
label: string;
|
|
1381
|
+
score: number;
|
|
1382
|
+
comment?: string | undefined;
|
|
1383
|
+
}>, "many">;
|
|
1384
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
}, "strip", z.ZodTypeAny, {
|
|
1386
|
+
criteria: {
|
|
1387
|
+
id: string;
|
|
1388
|
+
label: string;
|
|
1389
|
+
score: number;
|
|
1390
|
+
comment?: string | undefined;
|
|
1391
|
+
}[];
|
|
1392
|
+
comment?: string | undefined;
|
|
1393
|
+
}, {
|
|
1394
|
+
criteria: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
label: string;
|
|
1397
|
+
score: number;
|
|
1398
|
+
comment?: string | undefined;
|
|
1399
|
+
}[];
|
|
1400
|
+
comment?: string | undefined;
|
|
1401
|
+
}>;
|
|
1367
1402
|
declare const ProjectSchema: z.ZodObject<{
|
|
1368
1403
|
id: z.ZodString;
|
|
1369
1404
|
title: z.ZodString;
|
|
@@ -1376,6 +1411,41 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1376
1411
|
captionSuggestion: z.ZodOptional<z.ZodString>;
|
|
1377
1412
|
editorId: z.ZodOptional<z.ZodString>;
|
|
1378
1413
|
userId: z.ZodString;
|
|
1414
|
+
feedback: z.ZodOptional<z.ZodObject<{
|
|
1415
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
1416
|
+
id: z.ZodString;
|
|
1417
|
+
label: z.ZodString;
|
|
1418
|
+
score: z.ZodNumber;
|
|
1419
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
}, "strip", z.ZodTypeAny, {
|
|
1421
|
+
id: string;
|
|
1422
|
+
label: string;
|
|
1423
|
+
score: number;
|
|
1424
|
+
comment?: string | undefined;
|
|
1425
|
+
}, {
|
|
1426
|
+
id: string;
|
|
1427
|
+
label: string;
|
|
1428
|
+
score: number;
|
|
1429
|
+
comment?: string | undefined;
|
|
1430
|
+
}>, "many">;
|
|
1431
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
}, "strip", z.ZodTypeAny, {
|
|
1433
|
+
criteria: {
|
|
1434
|
+
id: string;
|
|
1435
|
+
label: string;
|
|
1436
|
+
score: number;
|
|
1437
|
+
comment?: string | undefined;
|
|
1438
|
+
}[];
|
|
1439
|
+
comment?: string | undefined;
|
|
1440
|
+
}, {
|
|
1441
|
+
criteria: {
|
|
1442
|
+
id: string;
|
|
1443
|
+
label: string;
|
|
1444
|
+
score: number;
|
|
1445
|
+
comment?: string | undefined;
|
|
1446
|
+
}[];
|
|
1447
|
+
comment?: string | undefined;
|
|
1448
|
+
}>>;
|
|
1379
1449
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1380
1450
|
assetId: z.ZodString;
|
|
1381
1451
|
fileName: z.ZodString;
|
|
@@ -1463,6 +1533,15 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1463
1533
|
thumbnailUrl?: string | undefined;
|
|
1464
1534
|
finalVideoId?: string | undefined;
|
|
1465
1535
|
captionSuggestion?: string | undefined;
|
|
1536
|
+
feedback?: {
|
|
1537
|
+
criteria: {
|
|
1538
|
+
id: string;
|
|
1539
|
+
label: string;
|
|
1540
|
+
score: number;
|
|
1541
|
+
comment?: string | undefined;
|
|
1542
|
+
}[];
|
|
1543
|
+
comment?: string | undefined;
|
|
1544
|
+
} | undefined;
|
|
1466
1545
|
assets?: {
|
|
1467
1546
|
type: string;
|
|
1468
1547
|
assetId: string;
|
|
@@ -1501,6 +1580,15 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1501
1580
|
thumbnailUrl?: string | undefined;
|
|
1502
1581
|
finalVideoId?: string | undefined;
|
|
1503
1582
|
captionSuggestion?: string | undefined;
|
|
1583
|
+
feedback?: {
|
|
1584
|
+
criteria: {
|
|
1585
|
+
id: string;
|
|
1586
|
+
label: string;
|
|
1587
|
+
score: number;
|
|
1588
|
+
comment?: string | undefined;
|
|
1589
|
+
}[];
|
|
1590
|
+
comment?: string | undefined;
|
|
1591
|
+
} | undefined;
|
|
1504
1592
|
assets?: {
|
|
1505
1593
|
type: string;
|
|
1506
1594
|
assetId: string;
|
|
@@ -1529,6 +1617,7 @@ type Approve = {
|
|
|
1529
1617
|
};
|
|
1530
1618
|
type Project = z.infer<typeof ProjectSchema>;
|
|
1531
1619
|
type TimelineItem = z.infer<typeof TimelineItemSchema>;
|
|
1620
|
+
type Feedback = z.infer<typeof FeedbackSchema>;
|
|
1532
1621
|
|
|
1533
1622
|
interface IAPI$4 {
|
|
1534
1623
|
reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
|
|
@@ -1624,6 +1713,8 @@ declare const Endpoints$3: {
|
|
|
1624
1713
|
type index$5_Approve = Approve;
|
|
1625
1714
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1626
1715
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
|
1716
|
+
type index$5_Feedback = Feedback;
|
|
1717
|
+
declare const index$5_FeedbackSchema: typeof FeedbackSchema;
|
|
1627
1718
|
type index$5_ProjectCreation = ProjectCreation;
|
|
1628
1719
|
declare const index$5_ProjectSchema: typeof ProjectSchema;
|
|
1629
1720
|
type index$5_SendToApproval = SendToApproval;
|
|
@@ -1632,7 +1723,7 @@ declare const index$5_Styles: typeof Styles;
|
|
|
1632
1723
|
type index$5_TimelineItem = TimelineItem;
|
|
1633
1724
|
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
1634
1725
|
declare namespace index$5 {
|
|
1635
|
-
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1726
|
+
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1636
1727
|
}
|
|
1637
1728
|
|
|
1638
1729
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1364,6 +1364,41 @@ declare const TimelineItemSchema: z.ZodObject<{
|
|
|
1364
1364
|
description: string;
|
|
1365
1365
|
timestamp: number;
|
|
1366
1366
|
}>;
|
|
1367
|
+
declare const FeedbackSchema: z.ZodObject<{
|
|
1368
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
1369
|
+
id: z.ZodString;
|
|
1370
|
+
label: z.ZodString;
|
|
1371
|
+
score: z.ZodNumber;
|
|
1372
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
}, "strip", z.ZodTypeAny, {
|
|
1374
|
+
id: string;
|
|
1375
|
+
label: string;
|
|
1376
|
+
score: number;
|
|
1377
|
+
comment?: string | undefined;
|
|
1378
|
+
}, {
|
|
1379
|
+
id: string;
|
|
1380
|
+
label: string;
|
|
1381
|
+
score: number;
|
|
1382
|
+
comment?: string | undefined;
|
|
1383
|
+
}>, "many">;
|
|
1384
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
}, "strip", z.ZodTypeAny, {
|
|
1386
|
+
criteria: {
|
|
1387
|
+
id: string;
|
|
1388
|
+
label: string;
|
|
1389
|
+
score: number;
|
|
1390
|
+
comment?: string | undefined;
|
|
1391
|
+
}[];
|
|
1392
|
+
comment?: string | undefined;
|
|
1393
|
+
}, {
|
|
1394
|
+
criteria: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
label: string;
|
|
1397
|
+
score: number;
|
|
1398
|
+
comment?: string | undefined;
|
|
1399
|
+
}[];
|
|
1400
|
+
comment?: string | undefined;
|
|
1401
|
+
}>;
|
|
1367
1402
|
declare const ProjectSchema: z.ZodObject<{
|
|
1368
1403
|
id: z.ZodString;
|
|
1369
1404
|
title: z.ZodString;
|
|
@@ -1376,6 +1411,41 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1376
1411
|
captionSuggestion: z.ZodOptional<z.ZodString>;
|
|
1377
1412
|
editorId: z.ZodOptional<z.ZodString>;
|
|
1378
1413
|
userId: z.ZodString;
|
|
1414
|
+
feedback: z.ZodOptional<z.ZodObject<{
|
|
1415
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
1416
|
+
id: z.ZodString;
|
|
1417
|
+
label: z.ZodString;
|
|
1418
|
+
score: z.ZodNumber;
|
|
1419
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1420
|
+
}, "strip", z.ZodTypeAny, {
|
|
1421
|
+
id: string;
|
|
1422
|
+
label: string;
|
|
1423
|
+
score: number;
|
|
1424
|
+
comment?: string | undefined;
|
|
1425
|
+
}, {
|
|
1426
|
+
id: string;
|
|
1427
|
+
label: string;
|
|
1428
|
+
score: number;
|
|
1429
|
+
comment?: string | undefined;
|
|
1430
|
+
}>, "many">;
|
|
1431
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
}, "strip", z.ZodTypeAny, {
|
|
1433
|
+
criteria: {
|
|
1434
|
+
id: string;
|
|
1435
|
+
label: string;
|
|
1436
|
+
score: number;
|
|
1437
|
+
comment?: string | undefined;
|
|
1438
|
+
}[];
|
|
1439
|
+
comment?: string | undefined;
|
|
1440
|
+
}, {
|
|
1441
|
+
criteria: {
|
|
1442
|
+
id: string;
|
|
1443
|
+
label: string;
|
|
1444
|
+
score: number;
|
|
1445
|
+
comment?: string | undefined;
|
|
1446
|
+
}[];
|
|
1447
|
+
comment?: string | undefined;
|
|
1448
|
+
}>>;
|
|
1379
1449
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1380
1450
|
assetId: z.ZodString;
|
|
1381
1451
|
fileName: z.ZodString;
|
|
@@ -1463,6 +1533,15 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1463
1533
|
thumbnailUrl?: string | undefined;
|
|
1464
1534
|
finalVideoId?: string | undefined;
|
|
1465
1535
|
captionSuggestion?: string | undefined;
|
|
1536
|
+
feedback?: {
|
|
1537
|
+
criteria: {
|
|
1538
|
+
id: string;
|
|
1539
|
+
label: string;
|
|
1540
|
+
score: number;
|
|
1541
|
+
comment?: string | undefined;
|
|
1542
|
+
}[];
|
|
1543
|
+
comment?: string | undefined;
|
|
1544
|
+
} | undefined;
|
|
1466
1545
|
assets?: {
|
|
1467
1546
|
type: string;
|
|
1468
1547
|
assetId: string;
|
|
@@ -1501,6 +1580,15 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1501
1580
|
thumbnailUrl?: string | undefined;
|
|
1502
1581
|
finalVideoId?: string | undefined;
|
|
1503
1582
|
captionSuggestion?: string | undefined;
|
|
1583
|
+
feedback?: {
|
|
1584
|
+
criteria: {
|
|
1585
|
+
id: string;
|
|
1586
|
+
label: string;
|
|
1587
|
+
score: number;
|
|
1588
|
+
comment?: string | undefined;
|
|
1589
|
+
}[];
|
|
1590
|
+
comment?: string | undefined;
|
|
1591
|
+
} | undefined;
|
|
1504
1592
|
assets?: {
|
|
1505
1593
|
type: string;
|
|
1506
1594
|
assetId: string;
|
|
@@ -1529,6 +1617,7 @@ type Approve = {
|
|
|
1529
1617
|
};
|
|
1530
1618
|
type Project = z.infer<typeof ProjectSchema>;
|
|
1531
1619
|
type TimelineItem = z.infer<typeof TimelineItemSchema>;
|
|
1620
|
+
type Feedback = z.infer<typeof FeedbackSchema>;
|
|
1532
1621
|
|
|
1533
1622
|
interface IAPI$4 {
|
|
1534
1623
|
reorder: (context: Context, projectId: string, position: number) => Promise<boolean>;
|
|
@@ -1624,6 +1713,8 @@ declare const Endpoints$3: {
|
|
|
1624
1713
|
type index$5_Approve = Approve;
|
|
1625
1714
|
type index$5_CaptionStyle = CaptionStyle;
|
|
1626
1715
|
declare const index$5_CaptionStyle: typeof CaptionStyle;
|
|
1716
|
+
type index$5_Feedback = Feedback;
|
|
1717
|
+
declare const index$5_FeedbackSchema: typeof FeedbackSchema;
|
|
1627
1718
|
type index$5_ProjectCreation = ProjectCreation;
|
|
1628
1719
|
declare const index$5_ProjectSchema: typeof ProjectSchema;
|
|
1629
1720
|
type index$5_SendToApproval = SendToApproval;
|
|
@@ -1632,7 +1723,7 @@ declare const index$5_Styles: typeof Styles;
|
|
|
1632
1723
|
type index$5_TimelineItem = TimelineItem;
|
|
1633
1724
|
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
1634
1725
|
declare namespace index$5 {
|
|
1635
|
-
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1726
|
+
export { type index$5_Approve as Approve, index$5_CaptionStyle as CaptionStyle, Endpoints$3 as Endpoints, type Project as Entity, type index$5_Feedback as Feedback, index$5_FeedbackSchema as FeedbackSchema, type IAPI$4 as IAPI, type index$5_ProjectCreation as ProjectCreation, index$5_ProjectSchema as ProjectSchema, type index$5_SendToApproval as SendToApproval, Status$1 as Status, type index$5_Style as Style, index$5_Styles as Styles, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema };
|
|
1636
1727
|
}
|
|
1637
1728
|
|
|
1638
1729
|
declare const DailyMilestoneSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -880,6 +880,7 @@ var project_exports = {};
|
|
|
880
880
|
__export(project_exports, {
|
|
881
881
|
CaptionStyle: () => CaptionStyle,
|
|
882
882
|
Endpoints: () => Endpoints3,
|
|
883
|
+
FeedbackSchema: () => FeedbackSchema,
|
|
883
884
|
ProjectSchema: () => ProjectSchema,
|
|
884
885
|
Status: () => Status2,
|
|
885
886
|
Styles: () => Styles,
|
|
@@ -948,6 +949,17 @@ var TimelineItemSchema = import_zod4.z.object({
|
|
|
948
949
|
timestamp: import_zod4.z.number(),
|
|
949
950
|
metadata: import_zod4.z.record(import_zod4.z.any())
|
|
950
951
|
});
|
|
952
|
+
var FeedbackSchema = import_zod4.z.object({
|
|
953
|
+
criteria: import_zod4.z.array(
|
|
954
|
+
import_zod4.z.object({
|
|
955
|
+
id: import_zod4.z.string(),
|
|
956
|
+
label: import_zod4.z.string(),
|
|
957
|
+
score: import_zod4.z.number().min(0).max(10),
|
|
958
|
+
comment: import_zod4.z.string().optional()
|
|
959
|
+
})
|
|
960
|
+
),
|
|
961
|
+
comment: import_zod4.z.string().optional()
|
|
962
|
+
});
|
|
951
963
|
var ProjectSchema = import_zod4.z.object({
|
|
952
964
|
id: import_zod4.z.string(),
|
|
953
965
|
title: import_zod4.z.string(),
|
|
@@ -960,6 +972,7 @@ var ProjectSchema = import_zod4.z.object({
|
|
|
960
972
|
captionSuggestion: import_zod4.z.string().optional(),
|
|
961
973
|
editorId: import_zod4.z.string().optional(),
|
|
962
974
|
userId: import_zod4.z.string(),
|
|
975
|
+
feedback: FeedbackSchema.optional(),
|
|
963
976
|
assets: import_zod4.z.array(AssetSchema).optional(),
|
|
964
977
|
expirationTimestamp: import_zod4.z.number(),
|
|
965
978
|
isFree: import_zod4.z.boolean().optional(),
|