@supernova-studio/model 1.10.19 → 1.10.21

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.js CHANGED
@@ -249,35 +249,21 @@ var StripeSubscriptionStatus = StripeSubscriptionStatusSchema.enum;
249
249
  var InternalStatus = InternalStatusSchema.enum;
250
250
  var BillingType = BillingTypeSchema.enum;
251
251
  var Subscription = _zod.z.object({
252
- stripeSubscriptionId: _zod.z.string().nullish(),
253
- stripeCustomerId: _zod.z.string().nullish(),
254
- status: InternalStatusSchema.optional(),
255
- subscriptionStatus: StripeSubscriptionStatusSchema.optional(),
256
- // the stripe API official status
257
- internalStatus: InternalStatusSchema.optional(),
258
- // TODO: delete when create/get workspace will stop using it in the former API
252
+ card: nullishToOptional(CardSchema),
253
+ seats: _zod.z.number(),
254
+ seatLimit: _zod.z.number(),
255
+ status: nullishToOptional(InternalStatusSchema),
256
+ subscriptionStatus: nullishToOptional(StripeSubscriptionStatusSchema),
257
+ internalStatus: nullishToOptional(InternalStatusSchema),
258
+ stripeSubscriptionId: nullishToOptional(_zod.z.string()),
259
+ stripeCustomerId: nullishToOptional(_zod.z.string()),
259
260
  product: ProductCodeSchema,
260
- featuresSummary: FeaturesSummary.optional(),
261
- stripeProductDescription: _zod.z.string().optional(),
262
- stripeProductFeatures: _zod.z.array(_zod.z.string()).optional(),
263
- stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional(),
264
- stripeSubscriptionMainItemId: _zod.z.string().optional(),
265
261
  planPriceId: _zod.z.string(),
266
262
  planInterval: BillingIntervalSchema,
267
- isPricePerCreator: _zod.z.boolean().optional(),
268
- legacyVersion: _zod.z.string().optional(),
269
- seats: _zod.z.number(),
270
- seatLimit: _zod.z.number(),
271
- currentPeriodStart: _zod.z.string().optional(),
272
- currentPeriodEnd: _zod.z.string().optional(),
273
- subscriptionStatusUpdatedAt: _zod.z.string().optional(),
274
- cancelAt: _zod.z.string().nullish(),
275
- card: CardSchema.optional(),
276
- // New
277
- amount: _zod.z.number().nullish(),
278
- isTrial: _zod.z.boolean().optional(),
279
- billingType: BillingTypeSchema.optional(),
280
- daysUntilDue: _zod.z.number().optional()
263
+ currentPeriodStart: nullishToOptional(_zod.z.string()),
264
+ currentPeriodEnd: nullishToOptional(_zod.z.string()),
265
+ cancelAt: nullishToOptional(_zod.z.string()),
266
+ subscriptionStatusUpdatedAt: nullishToOptional(_zod.z.string())
281
267
  });
282
268
 
283
269
  // src/chat-threads/chat-message.ts
@@ -6129,7 +6115,8 @@ var ExportJobFindByFilter = ExportJob.pick({
6129
6115
  brandId: true
6130
6116
  }).extend({
6131
6117
  destinations: _zod.z.array(ExportJobDestinationType),
6132
- docsEnvironment: PublishedDocEnvironment
6118
+ docsEnvironment: PublishedDocEnvironment,
6119
+ selectivePublishing: _zod.z.boolean().optional()
6133
6120
  }).partial();
6134
6121
 
6135
6122
  // src/export/exporter-list-query.ts