@lovable.dev/sdk 1.3.0 → 1.4.1

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.
@@ -646,6 +646,29 @@ export const V1BillingPeriodSchema = z.object({
646
646
  start: z.iso.datetime()
647
647
  });
648
648
 
649
+ export const V1BulkMemberCreditLimitItemSchema = z.object({
650
+ monthly_credit_limit: z.number().gte(0).nullable(),
651
+ user_id: z.string()
652
+ });
653
+
654
+ export const V1BulkMemberCreditLimitResultSchema = z.object({
655
+ error: z.string().optional(),
656
+ status: z.string(),
657
+ user_id: z.string()
658
+ });
659
+
660
+ export const V1BulkSetMemberCreditLimitInputBodySchema = z.object({
661
+ members: z.array(V1BulkMemberCreditLimitItemSchema).min(1).max(50),
662
+ workspace_id: z.string()
663
+ });
664
+
665
+ export const V1BulkSetMemberCreditLimitOutputBodySchema = z.object({
666
+ failed: z.number(),
667
+ results: z.array(V1BulkMemberCreditLimitResultSchema).nullable(),
668
+ successful: z.number(),
669
+ total: z.number()
670
+ });
671
+
649
672
  export const V1ConnectionItemSchema = z.object({
650
673
  connector_id: z.string(),
651
674
  created_at: z.string(),
@@ -759,8 +782,7 @@ export const V1DiffEntrySchema = z.object({
759
782
  });
760
783
 
761
784
  export const V1DiffResponseSchema = z.object({
762
- diffs: z.array(V1DiffEntrySchema).nullable(),
763
- error: z.string().optional()
785
+ diffs: z.array(V1DiffEntrySchema).nullable()
764
786
  });
765
787
 
766
788
  export const V1EditSummarySchema = z.object({
@@ -772,6 +794,13 @@ export const V1EditSummarySchema = z.object({
772
794
  type: z.string()
773
795
  });
774
796
 
797
+ export const PublicV1GetEditsOutputBodySchema = z.object({
798
+ data: z.array(V1EditSummarySchema).nullable(),
799
+ edits: z.array(V1EditSummarySchema).nullable(),
800
+ has_more: z.boolean(),
801
+ pagination: PaginationSchema
802
+ });
803
+
775
804
  export const V1EnableDatabaseOutputBodySchema = z.object({
776
805
  enabled: z.boolean(),
777
806
  stack: z.string()
@@ -1173,6 +1202,16 @@ export const V1SendMessageInputBodySchema = z.object({
1173
1202
  variant_id: z.string().optional()
1174
1203
  });
1175
1204
 
1205
+ export const V1UpdateMemberCreditLimitInputBodySchema = z.object({
1206
+ monthly_credit_limit: z.number().gte(0).nullish(),
1207
+ workspace_id: z.string()
1208
+ });
1209
+
1210
+ export const V1UpdateWorkspaceSettingsInputBodySchema = z.object({
1211
+ default_monthly_member_credit_limit: z.number().gte(0).nullish(),
1212
+ workspace_id: z.string()
1213
+ });
1214
+
1176
1215
  export const V1UsagePeriodSchema = z.object({
1177
1216
  end: z.string(),
1178
1217
  granularity: z.string().optional(),
package/src/types.ts CHANGED
@@ -136,7 +136,7 @@ export type GitDiffResponse = Schemas["V1DiffResponse"];
136
136
  export type GitFileEntry = Schemas["GitFileEntryLite"];
137
137
  export type GitFilesResponse = Schemas["PublicV1GitFilesResponse"] & { files: GitFileEntry[] };
138
138
  export type EditSummary = Schemas["V1EditSummary"];
139
- export type EditsResponse = Schemas["V1GetEditsOutputBody"];
139
+ export type EditsResponse = Schemas["PublicV1GetEditsOutputBody"];
140
140
 
141
141
  // --- Libraries & templates ---
142
142