@supernova-studio/model 0.47.8 → 0.47.10

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
@@ -519,8 +519,11 @@ var DataSourceFigmaImportMetadata = _zod.z.object({
519
519
  var DataSourceFigmaRemote = _zod.z.object({
520
520
  type: _zod.z.literal(DataSourceRemoteType.Enum.Figma),
521
521
  fileId: _zod.z.string(),
522
+ preferredCredentialId: _zod.z.string().optional(),
522
523
  ownerId: _zod.z.string(),
524
+ // todo remove or keep to reference who created data source
523
525
  ownerName: _zod.z.string(),
526
+ // todo probably remove
524
527
  scope: DataSourceFigmaScope,
525
528
  state: DataSourceFigmaState,
526
529
  requiresSync: _zod.z.boolean().optional().transform((v) => _nullishCoalesce(v, () => ( false))),
@@ -3777,7 +3780,7 @@ var SupernovaException = class _SupernovaException extends Error {
3777
3780
  return new _SupernovaException("MissingExporterPermission", message);
3778
3781
  }
3779
3782
  static missingIntegration(message) {
3780
- return new _SupernovaException("AccessDenied", message);
3783
+ return new _SupernovaException("MissingIntegration", message);
3781
3784
  }
3782
3785
  static noAccess(message) {
3783
3786
  return new _SupernovaException("NoAccess", message);