@supernova-studio/client 1.37.4 → 1.37.6
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 +420 -215
- package/dist/index.d.ts +420 -215
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1798 -1787
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51,8 +51,8 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
55
54
|
|
|
55
|
+
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
@@ -383,6 +383,9 @@ var PostStripePortalSessionOutputSchema = _zod.z.object({
|
|
|
383
383
|
id: _zod.z.string(),
|
|
384
384
|
url: _zod.z.string().nullish()
|
|
385
385
|
});
|
|
386
|
+
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
387
|
+
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
388
|
+
var WorkspaceSeatType = _zod.z.enum(["Full", "Builder", "None"]);
|
|
386
389
|
var BillingIntervalSchema = _zod.z.enum(["daily", "monthly", "weekly", "yearly"]);
|
|
387
390
|
var PriceSchema = _zod.z.object({
|
|
388
391
|
stripePriceId: _zod.z.string(),
|
|
@@ -399,7 +402,9 @@ var PriceSchema = _zod.z.object({
|
|
|
399
402
|
legacyVersion: _zod.z.string().optional(),
|
|
400
403
|
featuresSet: _zod.z.string().optional(),
|
|
401
404
|
stripeProductFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
402
|
-
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional()
|
|
405
|
+
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
406
|
+
seatType: WorkspaceSeatType.optional(),
|
|
407
|
+
monthlyCreditGrant: _zod.z.number().optional()
|
|
403
408
|
});
|
|
404
409
|
var ProductCodeSchema = _zod.z.enum(["free", "team", "company", "enterprise"]);
|
|
405
410
|
var ProductCode = ProductCodeSchema.enum;
|
|
@@ -422,6 +427,8 @@ var Subscription = _zod.z.object({
|
|
|
422
427
|
card: nullishToOptional(CardSchema),
|
|
423
428
|
seats: _zod.z.number(),
|
|
424
429
|
seatLimit: _zod.z.number(),
|
|
430
|
+
monthlyCreditGrantAnchor: nullishToOptional(_zod.z.string()),
|
|
431
|
+
monthlyCreditGrantAmount: nullishToOptional(_zod.z.number()),
|
|
425
432
|
builderSeatLimit: _zod.z.number().optional(),
|
|
426
433
|
fullSeatLimit: _zod.z.number().optional(),
|
|
427
434
|
builderSeats: _zod.z.number().optional(),
|
|
@@ -453,6 +460,12 @@ var ForgeChatMessageSender = _zod.z.discriminatedUnion("type", [
|
|
|
453
460
|
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.FunctionCallInput) }),
|
|
454
461
|
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.FunctionCallOutput) })
|
|
455
462
|
]);
|
|
463
|
+
var ForgeChatMessageUserScoreType = _zod.z.enum(["Positive", "Negative"]);
|
|
464
|
+
var ForgeChatMessageUserScore = _zod.z.object({
|
|
465
|
+
type: ForgeChatMessageUserScoreType,
|
|
466
|
+
tags: _zod.z.string().array(),
|
|
467
|
+
comment: _zod.z.string().optional()
|
|
468
|
+
});
|
|
456
469
|
var ForgeChatMessage = _zod.z.object({
|
|
457
470
|
id: _zod.z.string(),
|
|
458
471
|
threadId: _zod.z.string(),
|
|
@@ -460,7 +473,8 @@ var ForgeChatMessage = _zod.z.object({
|
|
|
460
473
|
createdAt: _zod.z.coerce.date(),
|
|
461
474
|
updatedAt: _zod.z.coerce.date(),
|
|
462
475
|
opikTraceId: _zod.z.string().optional(),
|
|
463
|
-
sender: ForgeChatMessageSender
|
|
476
|
+
sender: ForgeChatMessageSender,
|
|
477
|
+
userScore: ForgeChatMessageUserScore.optional()
|
|
464
478
|
});
|
|
465
479
|
var ForgeChatThread = _zod.z.object({
|
|
466
480
|
id: _zod.z.string(),
|
|
@@ -4399,9 +4413,6 @@ var WorkspaceUntypedData = _zod.z.object({
|
|
|
4399
4413
|
createdAt: _zod.z.coerce.date(),
|
|
4400
4414
|
updatedAt: _zod.z.coerce.date()
|
|
4401
4415
|
});
|
|
4402
|
-
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4403
|
-
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4404
|
-
var WorkspaceSeatType = _zod.z.enum(["Full", "Builder", "None"]);
|
|
4405
4416
|
var MAX_MEMBERS_COUNT = 100;
|
|
4406
4417
|
var UserInvite = _zod.z.object({
|
|
4407
4418
|
email: _zod.z.string().email().trim().transform((value) => value.toLowerCase()),
|