@supernova-studio/model 0.54.35 → 0.55.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.
package/dist/index.mjs CHANGED
@@ -4148,6 +4148,9 @@ var WorkspaceInvitation = z121.object({
4148
4148
  invitedBy: z121.string()
4149
4149
  });
4150
4150
 
4151
+ // src/workspace/workspace-membership.ts
4152
+ import { z as z130 } from "zod";
4153
+
4151
4154
  // src/users/linked-integrations.ts
4152
4155
  import { z as z122 } from "zod";
4153
4156
  var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
@@ -4267,7 +4270,6 @@ var User = z129.object({
4267
4270
  });
4268
4271
 
4269
4272
  // src/workspace/workspace-membership.ts
4270
- import { z as z130 } from "zod";
4271
4273
  var WorkspaceMembership = z130.object({
4272
4274
  id: z130.string(),
4273
4275
  userId: z130.string(),
@@ -4915,64 +4917,76 @@ var DesignSystemInviteEmailData = z155.object({
4915
4917
  documentationDomain: z155.string().optional()
4916
4918
  });
4917
4919
 
4920
+ // src/emails/workspace-invite.ts
4921
+ import { z as z156 } from "zod";
4922
+ var WorkspaceInviteEmailRecipient = z156.object({
4923
+ email: z156.string(),
4924
+ role: WorkspaceRoleSchema
4925
+ });
4926
+ var WorkspaceInviteEmailData = z156.object({
4927
+ workspace: Workspace,
4928
+ invitedBy: User,
4929
+ documentationDomain: z156.string().optional()
4930
+ });
4931
+
4918
4932
  // src/events/base.ts
4919
- import { z as z158 } from "zod";
4933
+ import { z as z159 } from "zod";
4920
4934
 
4921
4935
  // src/events/data-source-imported.ts
4922
- import { z as z156 } from "zod";
4923
- var EventDataSourceImported = z156.object({
4924
- type: z156.literal("DataSourceImported"),
4925
- workspaceId: z156.string(),
4926
- designSystemId: z156.string()
4936
+ import { z as z157 } from "zod";
4937
+ var EventDataSourceImported = z157.object({
4938
+ type: z157.literal("DataSourceImported"),
4939
+ workspaceId: z157.string(),
4940
+ designSystemId: z157.string()
4927
4941
  });
4928
4942
 
4929
4943
  // src/events/version-released.ts
4930
- import { z as z157 } from "zod";
4931
- var EventVersionReleased = z157.object({
4932
- type: z157.literal("DesignSystemVersionReleased"),
4933
- workspaceId: z157.string(),
4934
- designSystemId: z157.string(),
4935
- versionId: z157.string()
4944
+ import { z as z158 } from "zod";
4945
+ var EventVersionReleased = z158.object({
4946
+ type: z158.literal("DesignSystemVersionReleased"),
4947
+ workspaceId: z158.string(),
4948
+ designSystemId: z158.string(),
4949
+ versionId: z158.string()
4936
4950
  });
4937
4951
 
4938
4952
  // src/events/base.ts
4939
- var Event = z158.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4953
+ var Event = z159.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4940
4954
 
4941
4955
  // src/export/export-runner/export-context.ts
4942
- import { z as z159 } from "zod";
4943
- var ExportJobDocumentationContext = z159.object({
4944
- isSingleVersionDocs: z159.boolean(),
4945
- versionSlug: z159.string(),
4956
+ import { z as z160 } from "zod";
4957
+ var ExportJobDocumentationContext = z160.object({
4958
+ isSingleVersionDocs: z160.boolean(),
4959
+ versionSlug: z160.string(),
4946
4960
  environment: PublishedDocEnvironment
4947
4961
  });
4948
- var ExportJobContext = z159.object({
4949
- apiUrl: z159.string(),
4950
- accessToken: z159.string(),
4951
- designSystemId: z159.string(),
4952
- designSystemName: z159.string(),
4953
- exporterId: z159.string(),
4954
- versionId: z159.string(),
4955
- brandId: z159.string().optional(),
4956
- themeId: z159.string().optional(),
4957
- themePersistentIds: z159.string().array().optional(),
4958
- exporterName: z159.string(),
4959
- exporterPackageUrl: z159.string(),
4962
+ var ExportJobContext = z160.object({
4963
+ apiUrl: z160.string(),
4964
+ accessToken: z160.string(),
4965
+ designSystemId: z160.string(),
4966
+ designSystemName: z160.string(),
4967
+ exporterId: z160.string(),
4968
+ versionId: z160.string(),
4969
+ brandId: z160.string().optional(),
4970
+ themeId: z160.string().optional(),
4971
+ themePersistentIds: z160.string().array().optional(),
4972
+ exporterName: z160.string(),
4973
+ exporterPackageUrl: z160.string(),
4960
4974
  exporterPropertyValues: ExporterPropertyValue.array(),
4961
4975
  documentation: ExportJobDocumentationContext.optional()
4962
4976
  });
4963
4977
 
4964
4978
  // src/export/export-runner/exporter-payload.ts
4965
- import { z as z160 } from "zod";
4966
- var ExporterFunctionPayload = z160.object({
4967
- exportJobId: z160.string(),
4968
- exportContextId: z160.string(),
4969
- designSystemId: z160.string(),
4970
- workspaceId: z160.string()
4979
+ import { z as z161 } from "zod";
4980
+ var ExporterFunctionPayload = z161.object({
4981
+ exportJobId: z161.string(),
4982
+ exportContextId: z161.string(),
4983
+ designSystemId: z161.string(),
4984
+ workspaceId: z161.string()
4971
4985
  });
4972
4986
 
4973
4987
  // src/export/export-jobs.ts
4974
- import { z as z161 } from "zod";
4975
- var ExportJobDestinationType = z161.enum([
4988
+ import { z as z162 } from "zod";
4989
+ var ExportJobDestinationType = z162.enum([
4976
4990
  "s3",
4977
4991
  "webhookUrl",
4978
4992
  "github",
@@ -4981,30 +4995,30 @@ var ExportJobDestinationType = z161.enum([
4981
4995
  "gitlab",
4982
4996
  "bitbucket"
4983
4997
  ]);
4984
- var ExportJobStatus = z161.enum(["InProgress", "Success", "Failed", "Timeout"]);
4985
- var ExportJobLogEntryType = z161.enum(["success", "info", "warning", "error", "user"]);
4986
- var ExportJobLogEntry = z161.object({
4987
- id: z161.string().optional(),
4988
- time: z161.coerce.date(),
4998
+ var ExportJobStatus = z162.enum(["InProgress", "Success", "Failed", "Timeout"]);
4999
+ var ExportJobLogEntryType = z162.enum(["success", "info", "warning", "error", "user"]);
5000
+ var ExportJobLogEntry = z162.object({
5001
+ id: z162.string().optional(),
5002
+ time: z162.coerce.date(),
4989
5003
  type: ExportJobLogEntryType,
4990
- message: z161.string()
5004
+ message: z162.string()
4991
5005
  });
4992
- var ExportJobPullRequestDestinationResult = z161.object({
4993
- pullRequestUrl: z161.string()
5006
+ var ExportJobPullRequestDestinationResult = z162.object({
5007
+ pullRequestUrl: z162.string()
4994
5008
  });
4995
- var ExportJobS3DestinationResult = z161.object({
4996
- bucket: z161.string(),
4997
- urlPrefix: z161.string().optional(),
4998
- path: z161.string(),
4999
- files: z161.array(z161.string()),
5000
- url: nullishToOptional(z161.string()),
5001
- urls: nullishToOptional(z161.string().array())
5009
+ var ExportJobS3DestinationResult = z162.object({
5010
+ bucket: z162.string(),
5011
+ urlPrefix: z162.string().optional(),
5012
+ path: z162.string(),
5013
+ files: z162.array(z162.string()),
5014
+ url: nullishToOptional(z162.string()),
5015
+ urls: nullishToOptional(z162.string().array())
5002
5016
  });
5003
- var ExportJobDocsDestinationResult = z161.object({
5004
- url: z161.string()
5017
+ var ExportJobDocsDestinationResult = z162.object({
5018
+ url: z162.string()
5005
5019
  });
5006
- var ExportJobResult = z161.object({
5007
- error: z161.string().optional(),
5020
+ var ExportJobResult = z162.object({
5021
+ error: z162.string().optional(),
5008
5022
  s3: nullishToOptional(ExportJobS3DestinationResult),
5009
5023
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5010
5024
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5013,22 +5027,22 @@ var ExportJobResult = z161.object({
5013
5027
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5014
5028
  logs: nullishToOptional(ExportJobLogEntry.array())
5015
5029
  });
5016
- var ExportJob = z161.object({
5017
- id: z161.string(),
5018
- createdAt: z161.coerce.date(),
5019
- finishedAt: z161.coerce.date().optional(),
5020
- designSystemId: z161.string(),
5021
- designSystemVersionId: z161.string(),
5022
- workspaceId: z161.string(),
5023
- scheduleId: z161.string().nullish(),
5024
- exporterId: z161.string(),
5025
- brandId: z161.string().optional(),
5026
- themeId: z161.string().optional(),
5027
- themePersistentIds: z161.string().array().optional(),
5028
- estimatedExecutionTime: z161.number().optional(),
5030
+ var ExportJob = z162.object({
5031
+ id: z162.string(),
5032
+ createdAt: z162.coerce.date(),
5033
+ finishedAt: z162.coerce.date().optional(),
5034
+ designSystemId: z162.string(),
5035
+ designSystemVersionId: z162.string(),
5036
+ workspaceId: z162.string(),
5037
+ scheduleId: z162.string().nullish(),
5038
+ exporterId: z162.string(),
5039
+ brandId: z162.string().optional(),
5040
+ themeId: z162.string().optional(),
5041
+ themePersistentIds: z162.string().array().optional(),
5042
+ estimatedExecutionTime: z162.number().optional(),
5029
5043
  status: ExportJobStatus,
5030
5044
  result: ExportJobResult.optional(),
5031
- createdByUserId: z161.string().optional(),
5045
+ createdByUserId: z162.string().optional(),
5032
5046
  // Destinations
5033
5047
  ...ExportDestinationsMap.shape
5034
5048
  });
@@ -5042,40 +5056,40 @@ var ExportJobFindByFilter = ExportJob.pick({
5042
5056
  themeId: true,
5043
5057
  brandId: true
5044
5058
  }).extend({
5045
- destinations: z161.array(ExportJobDestinationType),
5059
+ destinations: z162.array(ExportJobDestinationType),
5046
5060
  docsEnvironment: PublishedDocEnvironment
5047
5061
  }).partial();
5048
5062
 
5049
5063
  // src/export/exporter-workspace-membership-role.ts
5050
- import { z as z162 } from "zod";
5051
- var ExporterWorkspaceMembershipRole = z162.enum(["Owner", "OwnerArchived", "User"]);
5064
+ import { z as z163 } from "zod";
5065
+ var ExporterWorkspaceMembershipRole = z163.enum(["Owner", "OwnerArchived", "User"]);
5052
5066
 
5053
5067
  // src/export/exporter-workspace-membership.ts
5054
- import { z as z163 } from "zod";
5055
- var ExporterWorkspaceMembership = z163.object({
5056
- id: z163.string(),
5057
- workspaceId: z163.string(),
5058
- exporterId: z163.string(),
5068
+ import { z as z164 } from "zod";
5069
+ var ExporterWorkspaceMembership = z164.object({
5070
+ id: z164.string(),
5071
+ workspaceId: z164.string(),
5072
+ exporterId: z164.string(),
5059
5073
  role: ExporterWorkspaceMembershipRole
5060
5074
  });
5061
5075
 
5062
5076
  // src/feature-flags/feature-flags.ts
5063
- import { z as z164 } from "zod";
5064
- var FlaggedFeature = z164.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
5065
- var FeatureFlagMap = z164.record(FlaggedFeature, z164.boolean());
5066
- var FeatureFlag = z164.object({
5067
- id: z164.string(),
5077
+ import { z as z165 } from "zod";
5078
+ var FlaggedFeature = z165.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
5079
+ var FeatureFlagMap = z165.record(FlaggedFeature, z165.boolean());
5080
+ var FeatureFlag = z165.object({
5081
+ id: z165.string(),
5068
5082
  feature: FlaggedFeature,
5069
- createdAt: z164.coerce.date(),
5070
- enabled: z164.boolean(),
5071
- designSystemId: z164.string().optional()
5083
+ createdAt: z165.coerce.date(),
5084
+ enabled: z165.boolean(),
5085
+ designSystemId: z165.string().optional()
5072
5086
  });
5073
5087
 
5074
5088
  // src/integrations/external-oauth-request.ts
5075
- import { z as z166 } from "zod";
5089
+ import { z as z167 } from "zod";
5076
5090
 
5077
5091
  // src/integrations/oauth-providers.ts
5078
- import { z as z165 } from "zod";
5092
+ import { z as z166 } from "zod";
5079
5093
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5080
5094
  OAuthProviderNames2["Figma"] = "figma";
5081
5095
  OAuthProviderNames2["Azure"] = "azure";
@@ -5084,127 +5098,127 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5084
5098
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5085
5099
  return OAuthProviderNames2;
5086
5100
  })(OAuthProviderNames || {});
5087
- var OAuthProviderSchema = z165.nativeEnum(OAuthProviderNames);
5101
+ var OAuthProviderSchema = z166.nativeEnum(OAuthProviderNames);
5088
5102
  var OAuthProvider = OAuthProviderSchema.enum;
5089
5103
 
5090
5104
  // src/integrations/external-oauth-request.ts
5091
- var ExternalOAuthRequest = z166.object({
5092
- id: z166.string(),
5105
+ var ExternalOAuthRequest = z167.object({
5106
+ id: z167.string(),
5093
5107
  provider: OAuthProviderSchema,
5094
- userId: z166.string(),
5095
- state: z166.string(),
5096
- createdAt: z166.coerce.date()
5108
+ userId: z167.string(),
5109
+ state: z167.string(),
5110
+ createdAt: z167.coerce.date()
5097
5111
  });
5098
5112
 
5099
5113
  // src/integrations/git.ts
5100
- import { z as z167 } from "zod";
5101
- var GitObjectsQuery = z167.object({
5102
- organization: z167.string().optional(),
5114
+ import { z as z168 } from "zod";
5115
+ var GitObjectsQuery = z168.object({
5116
+ organization: z168.string().optional(),
5103
5117
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5104
- project: z167.string().optional(),
5118
+ project: z168.string().optional(),
5105
5119
  // Only for Bitbucket and Azure
5106
- repository: z167.string().optional(),
5120
+ repository: z168.string().optional(),
5107
5121
  // For all providers. For Gitlab, it's called "project".
5108
- branch: z167.string().optional(),
5122
+ branch: z168.string().optional(),
5109
5123
  // For all providers.
5110
- user: z167.string().optional()
5124
+ user: z168.string().optional()
5111
5125
  // Gitlab user
5112
5126
  });
5113
- var GitOrganization = z167.object({
5114
- id: z167.string(),
5115
- name: z167.string(),
5116
- url: z167.string(),
5117
- slug: z167.string()
5127
+ var GitOrganization = z168.object({
5128
+ id: z168.string(),
5129
+ name: z168.string(),
5130
+ url: z168.string(),
5131
+ slug: z168.string()
5118
5132
  });
5119
- var GitProject = z167.object({
5120
- id: z167.string(),
5121
- name: z167.string(),
5122
- url: z167.string(),
5123
- slug: z167.string()
5133
+ var GitProject = z168.object({
5134
+ id: z168.string(),
5135
+ name: z168.string(),
5136
+ url: z168.string(),
5137
+ slug: z168.string()
5124
5138
  });
5125
- var GitRepository = z167.object({
5126
- id: z167.string(),
5127
- name: z167.string(),
5128
- url: z167.string(),
5129
- slug: z167.string(),
5139
+ var GitRepository = z168.object({
5140
+ id: z168.string(),
5141
+ name: z168.string(),
5142
+ url: z168.string(),
5143
+ slug: z168.string(),
5130
5144
  /**
5131
5145
  * Can be undefined when:
5132
5146
  * - there are no branches in the repository yet
5133
5147
  * - Git provider doesn't expose this information on a repository via their API
5134
5148
  */
5135
- defaultBranch: z167.string().optional()
5149
+ defaultBranch: z168.string().optional()
5136
5150
  });
5137
- var GitBranch = z167.object({
5138
- name: z167.string(),
5139
- lastCommitId: z167.string()
5151
+ var GitBranch = z168.object({
5152
+ name: z168.string(),
5153
+ lastCommitId: z168.string()
5140
5154
  });
5141
5155
 
5142
5156
  // src/integrations/oauth-token.ts
5143
- import { z as z168 } from "zod";
5144
- var IntegrationTokenSchemaOld = z168.object({
5145
- id: z168.string(),
5157
+ import { z as z169 } from "zod";
5158
+ var IntegrationTokenSchemaOld = z169.object({
5159
+ id: z169.string(),
5146
5160
  provider: OAuthProviderSchema,
5147
- scope: z168.string(),
5148
- userId: z168.string(),
5149
- accessToken: z168.string(),
5150
- refreshToken: z168.string(),
5151
- expiresAt: z168.coerce.date(),
5152
- externalUserId: z168.string().nullish()
5161
+ scope: z169.string(),
5162
+ userId: z169.string(),
5163
+ accessToken: z169.string(),
5164
+ refreshToken: z169.string(),
5165
+ expiresAt: z169.coerce.date(),
5166
+ externalUserId: z169.string().nullish()
5153
5167
  });
5154
5168
 
5155
5169
  // src/integrations/workspace-oauth-requests.ts
5156
- import { z as z169 } from "zod";
5157
- var WorkspaceOAuthRequestSchema = z169.object({
5158
- id: z169.string(),
5159
- workspaceId: z169.string(),
5170
+ import { z as z170 } from "zod";
5171
+ var WorkspaceOAuthRequestSchema = z170.object({
5172
+ id: z170.string(),
5173
+ workspaceId: z170.string(),
5160
5174
  provider: OAuthProviderSchema,
5161
- userId: z169.string(),
5162
- createdAt: z169.coerce.date()
5175
+ userId: z170.string(),
5176
+ createdAt: z170.coerce.date()
5163
5177
  });
5164
5178
 
5165
5179
  // src/npm/npm-package.ts
5166
- import { z as z170 } from "zod";
5167
- var AnyRecord = z170.record(z170.any());
5180
+ import { z as z171 } from "zod";
5181
+ var AnyRecord = z171.record(z171.any());
5168
5182
  var NpmPackageVersionDist = AnyRecord.and(
5169
- z170.object({
5170
- tarball: z170.string()
5183
+ z171.object({
5184
+ tarball: z171.string()
5171
5185
  })
5172
5186
  );
5173
5187
  var NpmPackageVersion = AnyRecord.and(
5174
- z170.object({
5188
+ z171.object({
5175
5189
  dist: NpmPackageVersionDist
5176
5190
  })
5177
5191
  );
5178
5192
  var NpmPackage = AnyRecord.and(
5179
- z170.object({
5180
- _id: z170.string(),
5181
- name: z170.string(),
5193
+ z171.object({
5194
+ _id: z171.string(),
5195
+ name: z171.string(),
5182
5196
  // e.g. "latest": "1.2.3"
5183
- "dist-tags": z170.record(z170.string(), z170.string()),
5197
+ "dist-tags": z171.record(z171.string(), z171.string()),
5184
5198
  // "1.2.3": {...}
5185
- versions: z170.record(NpmPackageVersion)
5199
+ versions: z171.record(NpmPackageVersion)
5186
5200
  })
5187
5201
  );
5188
5202
 
5189
5203
  // src/npm/npm-proxy-token-payload.ts
5190
- import { z as z171 } from "zod";
5191
- var NpmProxyTokenPayload = z171.object({
5192
- npmProxyRegistryConfigId: z171.string()
5204
+ import { z as z172 } from "zod";
5205
+ var NpmProxyTokenPayload = z172.object({
5206
+ npmProxyRegistryConfigId: z172.string()
5193
5207
  });
5194
5208
 
5195
5209
  // src/tokens/personal-access-token.ts
5196
- import { z as z172 } from "zod";
5197
- var PersonalAccessToken = z172.object({
5198
- id: z172.string(),
5199
- userId: z172.string(),
5200
- workspaceId: z172.string().optional(),
5210
+ import { z as z173 } from "zod";
5211
+ var PersonalAccessToken = z173.object({
5212
+ id: z173.string(),
5213
+ userId: z173.string(),
5214
+ workspaceId: z173.string().optional(),
5201
5215
  workspaceRole: WorkspaceRoleSchema.optional(),
5202
- name: z172.string(),
5203
- hidden: z172.boolean(),
5204
- token: z172.string(),
5205
- scope: z172.string().optional(),
5206
- createdAt: z172.coerce.date(),
5207
- expireAt: z172.coerce.date().optional()
5216
+ name: z173.string(),
5217
+ hidden: z173.boolean(),
5218
+ token: z173.string(),
5219
+ scope: z173.string().optional(),
5220
+ createdAt: z173.coerce.date(),
5221
+ expireAt: z173.coerce.date().optional()
5208
5222
  });
5209
5223
  export {
5210
5224
  Address,
@@ -5797,6 +5811,8 @@ export {
5797
5811
  WorkspaceContext,
5798
5812
  WorkspaceDump,
5799
5813
  WorkspaceInvitation,
5814
+ WorkspaceInviteEmailData,
5815
+ WorkspaceInviteEmailRecipient,
5800
5816
  WorkspaceIpSettings,
5801
5817
  WorkspaceIpWhitelistEntry,
5802
5818
  WorkspaceMembership,