@supernova-studio/model 1.37.3 → 1.37.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/dist/index.d.mts +513 -417
- package/dist/index.d.ts +513 -417
- package/dist/index.js +26 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1885 -1881
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,6 +203,27 @@ var PostStripePortalSessionOutputSchema = _zod.z.object({
|
|
|
203
203
|
|
|
204
204
|
// src/billing/price.ts
|
|
205
205
|
|
|
206
|
+
|
|
207
|
+
// src/workspace/workspace-role.ts
|
|
208
|
+
|
|
209
|
+
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
210
|
+
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
211
|
+
var WorkspaceSeatType = _zod.z.enum(["Full", "Builder", "None"]);
|
|
212
|
+
function deriveWorkspaceSeatTypeFromRole(role) {
|
|
213
|
+
switch (role) {
|
|
214
|
+
case "Owner":
|
|
215
|
+
case "Admin":
|
|
216
|
+
case "Creator":
|
|
217
|
+
case "Contributor":
|
|
218
|
+
return "Full";
|
|
219
|
+
case "Viewer":
|
|
220
|
+
case "Billing":
|
|
221
|
+
case "Guest":
|
|
222
|
+
return "None";
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// src/billing/price.ts
|
|
206
227
|
var BillingIntervalSchema = _zod.z.enum(["daily", "monthly", "weekly", "yearly"]);
|
|
207
228
|
var PriceSchema = _zod.z.object({
|
|
208
229
|
stripePriceId: _zod.z.string(),
|
|
@@ -219,7 +240,9 @@ var PriceSchema = _zod.z.object({
|
|
|
219
240
|
legacyVersion: _zod.z.string().optional(),
|
|
220
241
|
featuresSet: _zod.z.string().optional(),
|
|
221
242
|
stripeProductFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
222
|
-
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional()
|
|
243
|
+
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
244
|
+
seatType: WorkspaceSeatType.optional(),
|
|
245
|
+
monthlyCreditGrant: _zod.z.number().optional()
|
|
223
246
|
});
|
|
224
247
|
|
|
225
248
|
// src/billing/product.ts
|
|
@@ -248,6 +271,8 @@ var Subscription = _zod.z.object({
|
|
|
248
271
|
card: nullishToOptional(CardSchema),
|
|
249
272
|
seats: _zod.z.number(),
|
|
250
273
|
seatLimit: _zod.z.number(),
|
|
274
|
+
monthlyCreditGrantAnchor: nullishToOptional(_zod.z.string()),
|
|
275
|
+
monthlyCreditGrantAmount: nullishToOptional(_zod.z.number()),
|
|
251
276
|
builderSeatLimit: _zod.z.number().optional(),
|
|
252
277
|
fullSeatLimit: _zod.z.number().optional(),
|
|
253
278
|
builderSeats: _zod.z.number().optional(),
|
|
@@ -4935,27 +4960,6 @@ var WorkspaceUntypedData = _zod.z.object({
|
|
|
4935
4960
|
|
|
4936
4961
|
// src/workspace/user-invite.ts
|
|
4937
4962
|
|
|
4938
|
-
|
|
4939
|
-
// src/workspace/workspace-role.ts
|
|
4940
|
-
|
|
4941
|
-
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4942
|
-
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4943
|
-
var WorkspaceSeatType = _zod.z.enum(["Full", "Builder", "None"]);
|
|
4944
|
-
function deriveWorkspaceSeatTypeFromRole(role) {
|
|
4945
|
-
switch (role) {
|
|
4946
|
-
case "Owner":
|
|
4947
|
-
case "Admin":
|
|
4948
|
-
case "Creator":
|
|
4949
|
-
case "Contributor":
|
|
4950
|
-
return "Full";
|
|
4951
|
-
case "Viewer":
|
|
4952
|
-
case "Billing":
|
|
4953
|
-
case "Guest":
|
|
4954
|
-
return "None";
|
|
4955
|
-
}
|
|
4956
|
-
}
|
|
4957
|
-
|
|
4958
|
-
// src/workspace/user-invite.ts
|
|
4959
4963
|
var MAX_MEMBERS_COUNT = 100;
|
|
4960
4964
|
var UserInvite = _zod.z.object({
|
|
4961
4965
|
email: _zod.z.string().email().trim().transform((value) => value.toLowerCase()),
|