shred-api-client 2.3.5 → 2.3.7-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ declare const CategorySchema: z.ZodObject<{
27
27
  pictureUrl: z.ZodString;
28
28
  backgroundColor: z.ZodString;
29
29
  active: z.ZodBoolean;
30
+ industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
31
  scripts: z.ZodArray<z.ZodObject<{
31
32
  id: z.ZodString;
32
33
  title: z.ZodString;
@@ -59,6 +60,7 @@ declare const CategorySchema: z.ZodObject<{
59
60
  userId?: string | undefined;
60
61
  tags?: string[] | undefined;
61
62
  }[];
63
+ industries?: string[] | undefined;
62
64
  }, {
63
65
  active: boolean;
64
66
  id: string;
@@ -72,6 +74,7 @@ declare const CategorySchema: z.ZodObject<{
72
74
  userId?: string | undefined;
73
75
  tags?: string[] | undefined;
74
76
  }[];
77
+ industries?: string[] | undefined;
75
78
  }>;
76
79
  declare const PromptSchema: z.ZodObject<{
77
80
  id: z.ZodString;
@@ -82,6 +85,7 @@ declare const PromptSchema: z.ZodObject<{
82
85
  pictureUrl: z.ZodString;
83
86
  backgroundColor: z.ZodString;
84
87
  active: z.ZodBoolean;
88
+ industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
89
  scripts: z.ZodArray<z.ZodObject<{
86
90
  id: z.ZodString;
87
91
  title: z.ZodString;
@@ -114,6 +118,7 @@ declare const PromptSchema: z.ZodObject<{
114
118
  userId?: string | undefined;
115
119
  tags?: string[] | undefined;
116
120
  }[];
121
+ industries?: string[] | undefined;
117
122
  }, {
118
123
  active: boolean;
119
124
  id: string;
@@ -127,6 +132,7 @@ declare const PromptSchema: z.ZodObject<{
127
132
  userId?: string | undefined;
128
133
  tags?: string[] | undefined;
129
134
  }[];
135
+ industries?: string[] | undefined;
130
136
  }>, "many">;
131
137
  }, "strip", z.ZodTypeAny, {
132
138
  id: string;
@@ -144,6 +150,7 @@ declare const PromptSchema: z.ZodObject<{
144
150
  userId?: string | undefined;
145
151
  tags?: string[] | undefined;
146
152
  }[];
153
+ industries?: string[] | undefined;
147
154
  }[];
148
155
  }, {
149
156
  id: string;
@@ -161,6 +168,7 @@ declare const PromptSchema: z.ZodObject<{
161
168
  userId?: string | undefined;
162
169
  tags?: string[] | undefined;
163
170
  }[];
171
+ industries?: string[] | undefined;
164
172
  }[];
165
173
  }>;
166
174
  type Script = z.infer<typeof ScriptSchema>;
@@ -623,21 +631,21 @@ declare const PreferencesSchema$1: z.ZodObject<{
623
631
  bRoll: z.ZodOptional<z.ZodBoolean>;
624
632
  logo: z.ZodOptional<z.ZodString>;
625
633
  }, "strip", z.ZodTypeAny, {
634
+ industries?: string[] | undefined;
626
635
  primaryColor?: string | undefined;
627
636
  secondaryColor?: string | undefined;
628
637
  facebookLink?: string | undefined;
629
638
  isFeedbackEnabled?: boolean | undefined;
630
639
  instagramLink?: string | undefined;
631
- industries?: string[] | undefined;
632
640
  bRoll?: boolean | undefined;
633
641
  logo?: string | undefined;
634
642
  }, {
643
+ industries?: string[] | undefined;
635
644
  primaryColor?: string | undefined;
636
645
  secondaryColor?: string | undefined;
637
646
  facebookLink?: string | undefined;
638
647
  isFeedbackEnabled?: boolean | undefined;
639
648
  instagramLink?: string | undefined;
640
- industries?: string[] | undefined;
641
649
  bRoll?: boolean | undefined;
642
650
  logo?: string | undefined;
643
651
  }>;
@@ -658,21 +666,21 @@ declare const UserSchema: z.ZodObject<{
658
666
  bRoll: z.ZodOptional<z.ZodBoolean>;
659
667
  logo: z.ZodOptional<z.ZodString>;
660
668
  }, "strip", z.ZodTypeAny, {
669
+ industries?: string[] | undefined;
661
670
  primaryColor?: string | undefined;
662
671
  secondaryColor?: string | undefined;
663
672
  facebookLink?: string | undefined;
664
673
  isFeedbackEnabled?: boolean | undefined;
665
674
  instagramLink?: string | undefined;
666
- industries?: string[] | undefined;
667
675
  bRoll?: boolean | undefined;
668
676
  logo?: string | undefined;
669
677
  }, {
678
+ industries?: string[] | undefined;
670
679
  primaryColor?: string | undefined;
671
680
  secondaryColor?: string | undefined;
672
681
  facebookLink?: string | undefined;
673
682
  isFeedbackEnabled?: boolean | undefined;
674
683
  instagramLink?: string | undefined;
675
- industries?: string[] | undefined;
676
684
  bRoll?: boolean | undefined;
677
685
  logo?: string | undefined;
678
686
  }>>;
@@ -691,12 +699,12 @@ declare const UserSchema: z.ZodObject<{
691
699
  timezone?: string | undefined;
692
700
  tenantId?: string | undefined;
693
701
  preferences?: {
702
+ industries?: string[] | undefined;
694
703
  primaryColor?: string | undefined;
695
704
  secondaryColor?: string | undefined;
696
705
  facebookLink?: string | undefined;
697
706
  isFeedbackEnabled?: boolean | undefined;
698
707
  instagramLink?: string | undefined;
699
- industries?: string[] | undefined;
700
708
  bRoll?: boolean | undefined;
701
709
  logo?: string | undefined;
702
710
  } | undefined;
@@ -714,12 +722,12 @@ declare const UserSchema: z.ZodObject<{
714
722
  timezone?: string | undefined;
715
723
  tenantId?: string | undefined;
716
724
  preferences?: {
725
+ industries?: string[] | undefined;
717
726
  primaryColor?: string | undefined;
718
727
  secondaryColor?: string | undefined;
719
728
  facebookLink?: string | undefined;
720
729
  isFeedbackEnabled?: boolean | undefined;
721
730
  instagramLink?: string | undefined;
722
- industries?: string[] | undefined;
723
731
  bRoll?: boolean | undefined;
724
732
  logo?: string | undefined;
725
733
  } | undefined;
@@ -888,6 +896,8 @@ declare const PreferencesSchema: z.ZodObject<{
888
896
  declare const TenantSchema: z.ZodObject<{
889
897
  id: z.ZodString;
890
898
  name: z.ZodString;
899
+ industry: z.ZodString;
900
+ description: z.ZodString;
891
901
  isActive: z.ZodBoolean;
892
902
  isSubscriptionActive: z.ZodBoolean;
893
903
  preferences: z.ZodObject<{
@@ -1095,9 +1105,51 @@ declare const TenantSchema: z.ZodObject<{
1095
1105
  subscriptionItemId: string;
1096
1106
  } | undefined;
1097
1107
  }>>>;
1108
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1109
+ assetId: z.ZodString;
1110
+ fileName: z.ZodString;
1111
+ extension: z.ZodString;
1112
+ fileSize: z.ZodNumber;
1113
+ assetUrl: z.ZodString;
1114
+ thumbnailUrl: z.ZodString;
1115
+ type: z.ZodString;
1116
+ duration: z.ZodOptional<z.ZodNumber>;
1117
+ progress: z.ZodOptional<z.ZodNumber>;
1118
+ error: z.ZodOptional<z.ZodString>;
1119
+ authorId: z.ZodString;
1120
+ uploadedAt: z.ZodNumber;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ type: string;
1123
+ assetId: string;
1124
+ fileName: string;
1125
+ extension: string;
1126
+ fileSize: number;
1127
+ assetUrl: string;
1128
+ thumbnailUrl: string;
1129
+ authorId: string;
1130
+ uploadedAt: number;
1131
+ error?: string | undefined;
1132
+ duration?: number | undefined;
1133
+ progress?: number | undefined;
1134
+ }, {
1135
+ type: string;
1136
+ assetId: string;
1137
+ fileName: string;
1138
+ extension: string;
1139
+ fileSize: number;
1140
+ assetUrl: string;
1141
+ thumbnailUrl: string;
1142
+ authorId: string;
1143
+ uploadedAt: number;
1144
+ error?: string | undefined;
1145
+ duration?: number | undefined;
1146
+ progress?: number | undefined;
1147
+ }>, "many">>;
1098
1148
  }, "strip", z.ZodTypeAny, {
1099
1149
  id: string;
1150
+ description: string;
1100
1151
  name: string;
1152
+ industry: string;
1101
1153
  isActive: boolean;
1102
1154
  isSubscriptionActive: boolean;
1103
1155
  preferences: {
@@ -1153,9 +1205,25 @@ declare const TenantSchema: z.ZodObject<{
1153
1205
  subscriptionItemId: string;
1154
1206
  } | undefined;
1155
1207
  } | undefined;
1208
+ assets?: {
1209
+ type: string;
1210
+ assetId: string;
1211
+ fileName: string;
1212
+ extension: string;
1213
+ fileSize: number;
1214
+ assetUrl: string;
1215
+ thumbnailUrl: string;
1216
+ authorId: string;
1217
+ uploadedAt: number;
1218
+ error?: string | undefined;
1219
+ duration?: number | undefined;
1220
+ progress?: number | undefined;
1221
+ }[] | undefined;
1156
1222
  }, {
1157
1223
  id: string;
1224
+ description: string;
1158
1225
  name: string;
1226
+ industry: string;
1159
1227
  isActive: boolean;
1160
1228
  isSubscriptionActive: boolean;
1161
1229
  preferences: {
@@ -1211,6 +1279,20 @@ declare const TenantSchema: z.ZodObject<{
1211
1279
  subscriptionItemId: string;
1212
1280
  } | undefined;
1213
1281
  } | undefined;
1282
+ assets?: {
1283
+ type: string;
1284
+ assetId: string;
1285
+ fileName: string;
1286
+ extension: string;
1287
+ fileSize: number;
1288
+ assetUrl: string;
1289
+ thumbnailUrl: string;
1290
+ authorId: string;
1291
+ uploadedAt: number;
1292
+ error?: string | undefined;
1293
+ duration?: number | undefined;
1294
+ progress?: number | undefined;
1295
+ }[] | undefined;
1214
1296
  }>;
1215
1297
  type Tenant = z.infer<typeof TenantSchema>;
1216
1298
  type Preferences = z.infer<typeof PreferencesSchema>;
@@ -1553,19 +1635,7 @@ declare const ProjectSchema: z.ZodObject<{
1553
1635
  }[];
1554
1636
  submitTimestamp: number;
1555
1637
  tenantId?: string | undefined;
1556
- editorId?: string | undefined;
1557
1638
  thumbnailUrl?: string | undefined;
1558
- finalVideoId?: string | undefined;
1559
- feedback?: {
1560
- criteria: {
1561
- id: string;
1562
- label: string;
1563
- score: number;
1564
- comment?: string | undefined;
1565
- }[];
1566
- comment?: string | undefined;
1567
- } | undefined;
1568
- captionSuggestion?: string | undefined;
1569
1639
  assets?: {
1570
1640
  type: string;
1571
1641
  assetId: string;
@@ -1580,6 +1650,18 @@ declare const ProjectSchema: z.ZodObject<{
1580
1650
  duration?: number | undefined;
1581
1651
  progress?: number | undefined;
1582
1652
  }[] | undefined;
1653
+ editorId?: string | undefined;
1654
+ finalVideoId?: string | undefined;
1655
+ feedback?: {
1656
+ criteria: {
1657
+ id: string;
1658
+ label: string;
1659
+ score: number;
1660
+ comment?: string | undefined;
1661
+ }[];
1662
+ comment?: string | undefined;
1663
+ } | undefined;
1664
+ captionSuggestion?: string | undefined;
1583
1665
  isFree?: boolean | undefined;
1584
1666
  }, {
1585
1667
  id: string;
@@ -1600,19 +1682,7 @@ declare const ProjectSchema: z.ZodObject<{
1600
1682
  }[];
1601
1683
  submitTimestamp: number;
1602
1684
  tenantId?: string | undefined;
1603
- editorId?: string | undefined;
1604
1685
  thumbnailUrl?: string | undefined;
1605
- finalVideoId?: string | undefined;
1606
- feedback?: {
1607
- criteria: {
1608
- id: string;
1609
- label: string;
1610
- score: number;
1611
- comment?: string | undefined;
1612
- }[];
1613
- comment?: string | undefined;
1614
- } | undefined;
1615
- captionSuggestion?: string | undefined;
1616
1686
  assets?: {
1617
1687
  type: string;
1618
1688
  assetId: string;
@@ -1627,6 +1697,18 @@ declare const ProjectSchema: z.ZodObject<{
1627
1697
  duration?: number | undefined;
1628
1698
  progress?: number | undefined;
1629
1699
  }[] | undefined;
1700
+ editorId?: string | undefined;
1701
+ finalVideoId?: string | undefined;
1702
+ feedback?: {
1703
+ criteria: {
1704
+ id: string;
1705
+ label: string;
1706
+ score: number;
1707
+ comment?: string | undefined;
1708
+ }[];
1709
+ comment?: string | undefined;
1710
+ } | undefined;
1711
+ captionSuggestion?: string | undefined;
1630
1712
  isFree?: boolean | undefined;
1631
1713
  }>;
1632
1714
  type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
@@ -1827,8 +1909,8 @@ declare const GoalSchema: z.ZodObject<{
1827
1909
  }, "strip", z.ZodTypeAny, {
1828
1910
  id: string;
1829
1911
  createdAt: number;
1830
- editorId: string;
1831
1912
  progress: number;
1913
+ editorId: string;
1832
1914
  target: number;
1833
1915
  isoWeek: string;
1834
1916
  dailyMilestones: {
@@ -1840,8 +1922,8 @@ declare const GoalSchema: z.ZodObject<{
1840
1922
  }, {
1841
1923
  id: string;
1842
1924
  createdAt: number;
1843
- editorId: string;
1844
1925
  progress: number;
1926
+ editorId: string;
1845
1927
  target: number;
1846
1928
  isoWeek: string;
1847
1929
  dailyMilestones: {
package/dist/index.js CHANGED
@@ -5758,6 +5758,7 @@ var CategorySchema = external_exports.object({
5758
5758
  pictureUrl: external_exports.string().url(),
5759
5759
  backgroundColor: external_exports.string(),
5760
5760
  active: external_exports.boolean(),
5761
+ industries: external_exports.array(external_exports.string()).optional(),
5761
5762
  scripts: external_exports.array(ScriptSchema)
5762
5763
  });
5763
5764
  var PromptSchema = external_exports.object({
@@ -5861,6 +5862,8 @@ var PreferencesSchema = external_exports.object({
5861
5862
  var TenantSchema = external_exports.object({
5862
5863
  id: external_exports.string(),
5863
5864
  name: external_exports.string(),
5865
+ industry: external_exports.string(),
5866
+ description: external_exports.string(),
5864
5867
  isActive: external_exports.boolean(),
5865
5868
  isSubscriptionActive: external_exports.boolean(),
5866
5869
  preferences: PreferencesSchema,
@@ -5873,7 +5876,8 @@ var TenantSchema = external_exports.object({
5873
5876
  defaultCoupomCode: external_exports.string().optional(),
5874
5877
  allowedProducts: external_exports.array(external_exports.string()).optional(),
5875
5878
  useOwnScripts: external_exports.boolean().optional(),
5876
- subscription: external_exports.optional(external_exports.lazy(() => SubscriptionSchema))
5879
+ subscription: external_exports.optional(external_exports.lazy(() => SubscriptionSchema)),
5880
+ assets: external_exports.array(AssetSchema).optional()
5877
5881
  });
5878
5882
 
5879
5883
  // src/model/tenant/Tenant.api.ts