@supernova-studio/model 0.0.8 → 0.2.2
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 +114371 -0
- package/dist/index.d.ts +114371 -0
- package/dist/index.js +3108 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3108 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -9
- package/src/dsm/documentation/block-definitions/item.ts +8 -2
- package/src/dsm/elements/data/documentation-block-v1.ts +9 -0
- package/src/dsm/elements/data/documentation-block-v2.ts +60 -8
- package/src/helpers/index.ts +0 -1
- package/src/utils/validation.ts +4 -0
- package/src/workspace/workspace-create.ts +2 -2
- package/index.ts +0 -1
- package/src/helpers/slug-helper.ts +0 -641
package/dist/index.js
ADDED
|
@@ -0,0 +1,3108 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/auth/plugin-oauth-request.ts
|
|
2
|
+
var _zod = require('zod');
|
|
3
|
+
var PluginOAuthRequestSchema = _zod.z.object({
|
|
4
|
+
id: _zod.z.string(),
|
|
5
|
+
codeChallenge: _zod.z.string(),
|
|
6
|
+
readKey: _zod.z.string(),
|
|
7
|
+
writeKey: _zod.z.string(),
|
|
8
|
+
readKeyConsumed: _zod.z.boolean(),
|
|
9
|
+
writeKeyConsumed: _zod.z.boolean(),
|
|
10
|
+
oAuthCode: _zod.z.string().optional(),
|
|
11
|
+
createdAt: _zod.z.date()
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/billing/card.ts
|
|
15
|
+
|
|
16
|
+
var CardSchema = _zod.z.object({
|
|
17
|
+
cardId: _zod.z.string().nullish(),
|
|
18
|
+
last4: _zod.z.string().length(4).nullish(),
|
|
19
|
+
expiryMonth: _zod.z.string().nullish(),
|
|
20
|
+
expiryYear: _zod.z.string().nullish(),
|
|
21
|
+
brand: _zod.z.string().nullish(),
|
|
22
|
+
name: _zod.z.string().nullish()
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
// src/billing/checkoutSession.ts
|
|
26
|
+
|
|
27
|
+
var PostStripeCheckoutBodyInputSchema = _zod.z.object({
|
|
28
|
+
priceId: _zod.z.string(),
|
|
29
|
+
successUrl: _zod.z.string().url(),
|
|
30
|
+
cancelUrl: _zod.z.string().url(),
|
|
31
|
+
quantity: _zod.z.number().int().min(1).optional()
|
|
32
|
+
});
|
|
33
|
+
var PostStripeCheckoutOutputSchema = _zod.z.object({
|
|
34
|
+
id: _zod.z.string(),
|
|
35
|
+
url: _zod.z.string().nullish()
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// src/billing/customer.ts
|
|
39
|
+
|
|
40
|
+
var Customer = _zod.z.object({
|
|
41
|
+
id: _zod.z.string()
|
|
42
|
+
});
|
|
43
|
+
var Address = _zod.z.object({
|
|
44
|
+
street1: _zod.z.string().optional(),
|
|
45
|
+
street2: _zod.z.string().optional(),
|
|
46
|
+
city: _zod.z.string().optional(),
|
|
47
|
+
postal: _zod.z.string().optional(),
|
|
48
|
+
country: _zod.z.string().optional(),
|
|
49
|
+
state: _zod.z.string().optional()
|
|
50
|
+
});
|
|
51
|
+
var BillingDetails = _zod.z.object({
|
|
52
|
+
address: Address.optional(),
|
|
53
|
+
email: _zod.z.string().optional(),
|
|
54
|
+
companyName: _zod.z.string().optional(),
|
|
55
|
+
companyId: _zod.z.string().optional(),
|
|
56
|
+
notes: _zod.z.string().optional(),
|
|
57
|
+
vat: _zod.z.string().optional(),
|
|
58
|
+
poNumber: _zod.z.string().optional()
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// src/billing/features.ts
|
|
62
|
+
|
|
63
|
+
var featureLimitedSchema = _zod.z.object({
|
|
64
|
+
max: _zod.z.number(),
|
|
65
|
+
errorMessage: _zod.z.string(),
|
|
66
|
+
errorReason: _zod.z.string()
|
|
67
|
+
});
|
|
68
|
+
var featureToggleSchema = _zod.z.object({
|
|
69
|
+
enabled: _zod.z.boolean(),
|
|
70
|
+
errorMessage: _zod.z.string(),
|
|
71
|
+
errorReason: _zod.z.string()
|
|
72
|
+
});
|
|
73
|
+
var featureWithImportJobsSchema = featureLimitedSchema.extend({
|
|
74
|
+
noImportJobsErrorMessage: _zod.z.string(),
|
|
75
|
+
noImportJobsErrorReason: _zod.z.string()
|
|
76
|
+
});
|
|
77
|
+
var FeaturesSummary = _zod.z.object({
|
|
78
|
+
designSystems: featureLimitedSchema,
|
|
79
|
+
designSystemSources: featureWithImportJobsSchema,
|
|
80
|
+
designSystemVersions: featureLimitedSchema,
|
|
81
|
+
themes: featureLimitedSchema,
|
|
82
|
+
brands: featureLimitedSchema,
|
|
83
|
+
codegenSchedules: featureLimitedSchema,
|
|
84
|
+
publicDocumentation: featureToggleSchema,
|
|
85
|
+
customDocumentationUrl: featureToggleSchema,
|
|
86
|
+
customDocumentationViewButton: featureToggleSchema,
|
|
87
|
+
designSystemSourceAutoImport: featureToggleSchema,
|
|
88
|
+
designSystemSlug: featureToggleSchema,
|
|
89
|
+
ipWhitelisting: featureToggleSchema,
|
|
90
|
+
npmRegistry: featureToggleSchema,
|
|
91
|
+
sso: featureToggleSchema,
|
|
92
|
+
workspacePaidSeats: featureLimitedSchema,
|
|
93
|
+
workspaceViewers: featureLimitedSchema,
|
|
94
|
+
customDocumentationExporter: featureToggleSchema
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// src/billing/invoice.ts
|
|
98
|
+
|
|
99
|
+
var InvoiceSchema = _zod.z.object({
|
|
100
|
+
id: _zod.z.string(),
|
|
101
|
+
number: _zod.z.string(),
|
|
102
|
+
amount_due: _zod.z.number(),
|
|
103
|
+
date: _zod.z.date(),
|
|
104
|
+
hostedUrl: _zod.z.string().url(),
|
|
105
|
+
card: CardSchema.nullish()
|
|
106
|
+
});
|
|
107
|
+
var PeriodSchema = _zod.z.object({
|
|
108
|
+
start: _zod.z.date(),
|
|
109
|
+
end: _zod.z.date()
|
|
110
|
+
});
|
|
111
|
+
var InvoiceLineSchema = _zod.z.object({
|
|
112
|
+
amount: _zod.z.number(),
|
|
113
|
+
period: PeriodSchema,
|
|
114
|
+
proration: _zod.z.boolean(),
|
|
115
|
+
description: _zod.z.string(),
|
|
116
|
+
type: _zod.z.string()
|
|
117
|
+
});
|
|
118
|
+
var InvoiceCouponSchema = _zod.z.object({
|
|
119
|
+
amount_off: _zod.z.number(),
|
|
120
|
+
percent_off: _zod.z.number(),
|
|
121
|
+
name: _zod.z.string()
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
// src/billing/portalSession.ts
|
|
125
|
+
|
|
126
|
+
var PostStripePortalUpdateSessionBodyInputSchema = _zod.z.object({
|
|
127
|
+
priceId: _zod.z.string(),
|
|
128
|
+
numberOfSeats: _zod.z.number().int()
|
|
129
|
+
});
|
|
130
|
+
var PostStripePortalSessionBodyInputSchema = _zod.z.object({
|
|
131
|
+
returnUrl: _zod.z.string().url(),
|
|
132
|
+
update: PostStripePortalUpdateSessionBodyInputSchema.optional(),
|
|
133
|
+
cancel: _zod.z.boolean().optional()
|
|
134
|
+
});
|
|
135
|
+
var PostStripePortalSessionOutputSchema = _zod.z.object({
|
|
136
|
+
id: _zod.z.string(),
|
|
137
|
+
url: _zod.z.string().nullish()
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// src/billing/price.ts
|
|
141
|
+
|
|
142
|
+
var BillingIntervalSchema = _zod.z.enum(["daily", "monthly", "weekly", "yearly"]);
|
|
143
|
+
var PriceSchema = _zod.z.object({
|
|
144
|
+
stripePriceId: _zod.z.string(),
|
|
145
|
+
stripeProductId: _zod.z.string(),
|
|
146
|
+
stripeProductName: _zod.z.string().optional(),
|
|
147
|
+
stripeProductDescription: _zod.z.string().optional(),
|
|
148
|
+
active: _zod.z.boolean(),
|
|
149
|
+
amount: _zod.z.number(),
|
|
150
|
+
interval: BillingIntervalSchema,
|
|
151
|
+
isPricePerCreator: _zod.z.boolean().optional(),
|
|
152
|
+
isTrial: _zod.z.boolean().optional(),
|
|
153
|
+
isHidden: _zod.z.boolean().optional(),
|
|
154
|
+
minimumSeats: _zod.z.number().optional(),
|
|
155
|
+
legacyVersion: _zod.z.string().optional(),
|
|
156
|
+
featuresSet: _zod.z.string().optional(),
|
|
157
|
+
stripeProductFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
158
|
+
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional()
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// src/billing/product.ts
|
|
162
|
+
|
|
163
|
+
var ProductCodeSchema = _zod.z.enum(["free", "team", "team_test", "company", "enterprise"]);
|
|
164
|
+
var ProductCode = ProductCodeSchema.enum;
|
|
165
|
+
|
|
166
|
+
// src/billing/subscription.ts
|
|
167
|
+
|
|
168
|
+
var StripeSubscriptionStatusSchema = _zod.z.enum([
|
|
169
|
+
"trialing",
|
|
170
|
+
"active",
|
|
171
|
+
"past_due",
|
|
172
|
+
"canceled",
|
|
173
|
+
"unpaid",
|
|
174
|
+
"incomplete_expired",
|
|
175
|
+
"incomplete",
|
|
176
|
+
"unknown"
|
|
177
|
+
]);
|
|
178
|
+
var InternalStatusSchema = _zod.z.enum(["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]);
|
|
179
|
+
var BillingTypeSchema = _zod.z.enum(["Auto", "Invoice"]);
|
|
180
|
+
var StripeSubscriptionStatus = StripeSubscriptionStatusSchema.enum;
|
|
181
|
+
var InternalStatus = InternalStatusSchema.enum;
|
|
182
|
+
var BillingType = BillingTypeSchema.enum;
|
|
183
|
+
var Subscription = _zod.z.object({
|
|
184
|
+
stripeSubscriptionId: _zod.z.string().nullish(),
|
|
185
|
+
stripeCustomerId: _zod.z.string().nullish(),
|
|
186
|
+
status: InternalStatusSchema.optional(),
|
|
187
|
+
subscriptionStatus: StripeSubscriptionStatusSchema.optional(),
|
|
188
|
+
// the stripe API official status
|
|
189
|
+
internalStatus: InternalStatusSchema.optional(),
|
|
190
|
+
// TODO: delete when create/get workspace will stop using it in the former API
|
|
191
|
+
product: ProductCodeSchema,
|
|
192
|
+
featuresSummary: FeaturesSummary.optional(),
|
|
193
|
+
stripeProductDescription: _zod.z.string().optional(),
|
|
194
|
+
stripeProductFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
195
|
+
stripeProductAdditionalFeatures: _zod.z.array(_zod.z.string()).optional(),
|
|
196
|
+
stripeSubscriptionMainItemId: _zod.z.string().optional(),
|
|
197
|
+
planPriceId: _zod.z.string(),
|
|
198
|
+
planInterval: BillingIntervalSchema,
|
|
199
|
+
isPricePerCreator: _zod.z.boolean().optional(),
|
|
200
|
+
legacyVersion: _zod.z.string().optional(),
|
|
201
|
+
seats: _zod.z.number(),
|
|
202
|
+
seatLimit: _zod.z.number(),
|
|
203
|
+
currentPeriodStart: _zod.z.string().optional(),
|
|
204
|
+
currentPeriodEnd: _zod.z.string().optional(),
|
|
205
|
+
subscriptionStatusUpdatedAt: _zod.z.string().optional(),
|
|
206
|
+
cancelAt: _zod.z.string().nullish(),
|
|
207
|
+
card: CardSchema.optional(),
|
|
208
|
+
// New
|
|
209
|
+
amount: _zod.z.number().nullish(),
|
|
210
|
+
isTrial: _zod.z.boolean().optional(),
|
|
211
|
+
billingType: BillingTypeSchema.optional(),
|
|
212
|
+
daysUntilDue: _zod.z.number().optional()
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
// src/dsm/assets/asset-reference.ts
|
|
216
|
+
|
|
217
|
+
var AssetReference = _zod.z.object({
|
|
218
|
+
id: _zod.z.string(),
|
|
219
|
+
designSystemVersionId: _zod.z.string(),
|
|
220
|
+
assetId: _zod.z.string(),
|
|
221
|
+
persistentId: _zod.z.string()
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// src/dsm/assets/asset-value.ts
|
|
225
|
+
|
|
226
|
+
var AssetValue = _zod.z.object({});
|
|
227
|
+
|
|
228
|
+
// src/dsm/assets/asset.ts
|
|
229
|
+
|
|
230
|
+
var AssetType = _zod.z.enum(["Image", "Font"]);
|
|
231
|
+
var AssetScope = _zod.z.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
|
|
232
|
+
var AssetFontProperties = _zod.z.object({
|
|
233
|
+
family: _zod.z.string(),
|
|
234
|
+
subfamily: _zod.z.string()
|
|
235
|
+
});
|
|
236
|
+
var AssetProperties = _zod.z.object({
|
|
237
|
+
fontProperties: _zod.z.array(AssetFontProperties)
|
|
238
|
+
});
|
|
239
|
+
var AssetOrigin = _zod.z.object({
|
|
240
|
+
originKey: _zod.z.string()
|
|
241
|
+
});
|
|
242
|
+
var Asset = _zod.z.object({
|
|
243
|
+
id: _zod.z.string(),
|
|
244
|
+
designSystemId: _zod.z.string().nullish(),
|
|
245
|
+
type: AssetType,
|
|
246
|
+
originalFileName: _zod.z.string().nullish(),
|
|
247
|
+
filePath: _zod.z.string(),
|
|
248
|
+
scope: AssetScope,
|
|
249
|
+
properties: AssetProperties.nullish(),
|
|
250
|
+
origin: AssetOrigin.nullish()
|
|
251
|
+
});
|
|
252
|
+
function isImportedAsset(asset) {
|
|
253
|
+
return !!asset.origin;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// src/dsm/data-sources/data-source.ts
|
|
257
|
+
|
|
258
|
+
var DataSourceRemoteType = _zod.z.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
259
|
+
var DataSourceUploadRemoteSource = _zod.z.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
260
|
+
var DataSourceFigmaState = _zod.z.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
261
|
+
var DataSourceAutoImportMode = _zod.z.enum(["Never", "Hourly"]);
|
|
262
|
+
var DataSourceStats = _zod.z.object({
|
|
263
|
+
tokens: zeroNumberByDefault(),
|
|
264
|
+
components: zeroNumberByDefault(),
|
|
265
|
+
assets: zeroNumberByDefault(),
|
|
266
|
+
frames: zeroNumberByDefault()
|
|
267
|
+
});
|
|
268
|
+
var DataSourceFigmaFileData = _zod.z.object({
|
|
269
|
+
lastUpdatedAt: _zod.z.coerce.date()
|
|
270
|
+
});
|
|
271
|
+
var DataSourceFigmaFileVersionData = _zod.z.object({
|
|
272
|
+
id: _zod.z.string(),
|
|
273
|
+
label: _zod.z.string().optional(),
|
|
274
|
+
description: _zod.z.string().optional(),
|
|
275
|
+
createdAt: _zod.z.coerce.date()
|
|
276
|
+
});
|
|
277
|
+
var DataSourceFigmaScope = _zod.z.object({
|
|
278
|
+
assets: _zod.z.boolean(),
|
|
279
|
+
components: _zod.z.boolean(),
|
|
280
|
+
documentationFrames: _zod.z.boolean(),
|
|
281
|
+
tokens: _zod.z.boolean(),
|
|
282
|
+
themePersistentId: _zod.z.string().optional()
|
|
283
|
+
});
|
|
284
|
+
var DataSourceFigmaImportMetadata = _zod.z.object({
|
|
285
|
+
fileData: DataSourceFigmaFileData.optional(),
|
|
286
|
+
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
287
|
+
});
|
|
288
|
+
var DataSourceFigmaRemote = _zod.z.object({
|
|
289
|
+
type: _zod.z.literal(DataSourceRemoteType.Enum.Figma),
|
|
290
|
+
fileId: _zod.z.string(),
|
|
291
|
+
ownerId: _zod.z.string(),
|
|
292
|
+
ownerName: _zod.z.string(),
|
|
293
|
+
scope: DataSourceFigmaScope,
|
|
294
|
+
state: DataSourceFigmaState,
|
|
295
|
+
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
296
|
+
downloadChunkSize: _zod.z.number().optional()
|
|
297
|
+
});
|
|
298
|
+
var DataSourceTokenStudioRemote = _zod.z.object({
|
|
299
|
+
type: _zod.z.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
300
|
+
});
|
|
301
|
+
var DataSourceUploadImportMetadata = _zod.z.record(_zod.z.any());
|
|
302
|
+
var DataSourceUploadRemote = _zod.z.object({
|
|
303
|
+
type: _zod.z.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
304
|
+
remoteId: _zod.z.string(),
|
|
305
|
+
remoteSourceType: DataSourceUploadRemoteSource,
|
|
306
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
307
|
+
});
|
|
308
|
+
var DataSourceRemote = _zod.z.discriminatedUnion("type", [
|
|
309
|
+
DataSourceFigmaRemote,
|
|
310
|
+
DataSourceUploadRemote,
|
|
311
|
+
DataSourceTokenStudioRemote
|
|
312
|
+
]);
|
|
313
|
+
var DataSourceVersion = _zod.z.object({
|
|
314
|
+
id: _zod.z.string(),
|
|
315
|
+
createdAt: _zod.z.date(),
|
|
316
|
+
label: _zod.z.string().nullish(),
|
|
317
|
+
description: _zod.z.string().nullish()
|
|
318
|
+
});
|
|
319
|
+
function zeroNumberByDefault() {
|
|
320
|
+
return _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( 0)));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// src/dsm/data-sources/import-job.ts
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
// src/common/entity.ts
|
|
327
|
+
|
|
328
|
+
var Entity = _zod.z.object({
|
|
329
|
+
id: _zod.z.string(),
|
|
330
|
+
createdAt: _zod.z.date(),
|
|
331
|
+
updatedAt: _zod.z.date()
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
// src/common/object-meta.ts
|
|
335
|
+
|
|
336
|
+
var ObjectMeta = _zod.z.object({
|
|
337
|
+
name: _zod.z.string(),
|
|
338
|
+
description: _zod.z.string().optional()
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
// src/dsm/data-sources/import-job.ts
|
|
342
|
+
var ImportJobState = _zod.z.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
343
|
+
var ImportJobOperation = _zod.z.enum(["Check", "Import"]);
|
|
344
|
+
var ImportJob = Entity.extend({
|
|
345
|
+
designSystemId: _zod.z.string(),
|
|
346
|
+
designSystemVersionId: _zod.z.string(),
|
|
347
|
+
sourceIds: _zod.z.array(_zod.z.string()),
|
|
348
|
+
state: ImportJobState,
|
|
349
|
+
createdByUserId: _zod.z.string().optional(),
|
|
350
|
+
importContextId: _zod.z.string(),
|
|
351
|
+
error: _zod.z.string().optional(),
|
|
352
|
+
sourceType: DataSourceRemoteType
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
// src/dsm/data-sources/import-summary.ts
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
// src/dsm/elements/data/base.ts
|
|
359
|
+
|
|
360
|
+
var TokenDataAliasSchema = _zod.z.object({
|
|
361
|
+
aliasTo: _zod.z.string().optional().nullable().transform((v) => _nullishCoalesce(v, () => ( void 0)))
|
|
362
|
+
});
|
|
363
|
+
function tokenAliasOrValue(value) {
|
|
364
|
+
return TokenDataAliasSchema.extend({
|
|
365
|
+
value: value.optional().nullable().transform((v) => _nullishCoalesce(v, () => ( void 0)))
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// src/dsm/elements/data/blur.ts
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
// src/dsm/elements/data/dimension.ts
|
|
373
|
+
|
|
374
|
+
var DimensionUnit = _zod.z.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
375
|
+
var DimensionValue = _zod.z.object({
|
|
376
|
+
unit: DimensionUnit,
|
|
377
|
+
measure: _zod.z.number()
|
|
378
|
+
});
|
|
379
|
+
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
380
|
+
|
|
381
|
+
// src/dsm/elements/data/blur.ts
|
|
382
|
+
var BlurType = _zod.z.enum(["Layer", "Background"]);
|
|
383
|
+
var BlurValue = _zod.z.object({
|
|
384
|
+
type: BlurType,
|
|
385
|
+
radius: DimensionTokenData
|
|
386
|
+
});
|
|
387
|
+
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
388
|
+
|
|
389
|
+
// src/dsm/elements/data/border-radius.ts
|
|
390
|
+
|
|
391
|
+
var BorderRadiusUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
392
|
+
var BorderRadiusValue = _zod.z.object({
|
|
393
|
+
unit: BorderRadiusUnit,
|
|
394
|
+
measure: _zod.z.number()
|
|
395
|
+
});
|
|
396
|
+
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
397
|
+
|
|
398
|
+
// src/dsm/elements/data/border-width.ts
|
|
399
|
+
|
|
400
|
+
var BorderWidthUnit = _zod.z.enum(["Pixels"]);
|
|
401
|
+
var BorderWidthValue = _zod.z.object({
|
|
402
|
+
unit: BorderWidthUnit,
|
|
403
|
+
measure: _zod.z.number()
|
|
404
|
+
});
|
|
405
|
+
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
406
|
+
|
|
407
|
+
// src/dsm/elements/data/border.ts
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
// src/dsm/elements/data/color.ts
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
// src/dsm/elements/data/opacity.ts
|
|
414
|
+
|
|
415
|
+
var OpacityValue = _zod.z.object({
|
|
416
|
+
unit: _zod.z.enum(["Raw", "Pixels"]),
|
|
417
|
+
measure: _zod.z.number()
|
|
418
|
+
});
|
|
419
|
+
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
420
|
+
|
|
421
|
+
// src/dsm/elements/data/color.ts
|
|
422
|
+
var ColorValue = _zod.z.object({
|
|
423
|
+
opacity: OpacityTokenData,
|
|
424
|
+
color: _zod.z.string().or(TokenDataAliasSchema)
|
|
425
|
+
});
|
|
426
|
+
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
427
|
+
|
|
428
|
+
// src/dsm/elements/data/border.ts
|
|
429
|
+
var BorderPosition = _zod.z.enum(["Inside", "Center", "Outside"]);
|
|
430
|
+
var BorderStyle = _zod.z.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
431
|
+
var BorderValue = _zod.z.object({
|
|
432
|
+
color: ColorTokenData,
|
|
433
|
+
width: BorderWidthTokenData,
|
|
434
|
+
position: BorderPosition,
|
|
435
|
+
style: BorderStyle.optional()
|
|
436
|
+
});
|
|
437
|
+
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
438
|
+
|
|
439
|
+
// src/dsm/elements/data/component.ts
|
|
440
|
+
|
|
441
|
+
var ComponentElementData = _zod.z.object({
|
|
442
|
+
value: _zod.z.object({
|
|
443
|
+
thumbnailImage: _zod.z.object({
|
|
444
|
+
value: _zod.z.object({
|
|
445
|
+
url: _zod.z.string(),
|
|
446
|
+
assetId: _zod.z.string()
|
|
447
|
+
})
|
|
448
|
+
}),
|
|
449
|
+
svg: _zod.z.object({
|
|
450
|
+
value: _zod.z.object({
|
|
451
|
+
url: _zod.z.string(),
|
|
452
|
+
assetId: _zod.z.string()
|
|
453
|
+
})
|
|
454
|
+
}).optional()
|
|
455
|
+
})
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
// src/dsm/elements/data/documentation-block-v1.ts
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
// src/dsm/elements/raw-element.ts
|
|
462
|
+
|
|
463
|
+
var DesignTokenType = _zod.z.enum([
|
|
464
|
+
"Color",
|
|
465
|
+
"Border",
|
|
466
|
+
"Gradient",
|
|
467
|
+
"Shadow",
|
|
468
|
+
"Dimension",
|
|
469
|
+
"Duration",
|
|
470
|
+
"Size",
|
|
471
|
+
"Space",
|
|
472
|
+
"Opacity",
|
|
473
|
+
"FontSize",
|
|
474
|
+
"LineHeight",
|
|
475
|
+
"LetterSpacing",
|
|
476
|
+
"ParagraphSpacing",
|
|
477
|
+
"BorderWidth",
|
|
478
|
+
"BorderRadius",
|
|
479
|
+
"Duration",
|
|
480
|
+
"ZIndex",
|
|
481
|
+
"Image",
|
|
482
|
+
"String",
|
|
483
|
+
"ProductCopy",
|
|
484
|
+
"FontFamily",
|
|
485
|
+
"FontWeight",
|
|
486
|
+
"TextDecoration",
|
|
487
|
+
"TextCase",
|
|
488
|
+
"Visibility",
|
|
489
|
+
"Typography",
|
|
490
|
+
"Blur",
|
|
491
|
+
"Font"
|
|
492
|
+
]);
|
|
493
|
+
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
494
|
+
var DesignElementType = DesignTokenType.or(
|
|
495
|
+
_zod.z.enum([
|
|
496
|
+
"Component",
|
|
497
|
+
"Theme",
|
|
498
|
+
"Documentation",
|
|
499
|
+
"DocumentationPage",
|
|
500
|
+
"DesignSystemComponent",
|
|
501
|
+
"ElementGroup",
|
|
502
|
+
"FigmaNodeStructure",
|
|
503
|
+
"FigmaNodeReference",
|
|
504
|
+
"PageBlock"
|
|
505
|
+
])
|
|
506
|
+
);
|
|
507
|
+
function isTokenType(type) {
|
|
508
|
+
return DesignTokenType.safeParse(type).success;
|
|
509
|
+
}
|
|
510
|
+
var DesignElementCategory = _zod.z.enum([
|
|
511
|
+
"Token",
|
|
512
|
+
"Component",
|
|
513
|
+
"DesignSystemComponent",
|
|
514
|
+
"DocumentationPage",
|
|
515
|
+
"Theme",
|
|
516
|
+
"PageBlock"
|
|
517
|
+
]);
|
|
518
|
+
var DesignSystemElementExportProps = _zod.z.object({
|
|
519
|
+
isAsset: _zod.z.boolean().nullish().transform((v) => _nullishCoalesce(v, () => ( false))),
|
|
520
|
+
codeName: _zod.z.string().nullish()
|
|
521
|
+
});
|
|
522
|
+
var ShallowDesignElement = _zod.z.object({
|
|
523
|
+
id: _zod.z.string(),
|
|
524
|
+
persistentId: _zod.z.string(),
|
|
525
|
+
designSystemVersionId: _zod.z.string(),
|
|
526
|
+
type: DesignElementType,
|
|
527
|
+
brandPersistentId: _zod.z.string().optional(),
|
|
528
|
+
parentPersistentId: _zod.z.string().optional(),
|
|
529
|
+
shortPersistentId: _zod.z.string().optional(),
|
|
530
|
+
sortOrder: _zod.z.number()
|
|
531
|
+
});
|
|
532
|
+
var DesignElement = ShallowDesignElement.extend({
|
|
533
|
+
meta: ObjectMeta,
|
|
534
|
+
childType: DesignElementType.optional(),
|
|
535
|
+
slug: _zod.z.string().optional(),
|
|
536
|
+
userSlug: _zod.z.string().optional(),
|
|
537
|
+
createdAt: _zod.z.date(),
|
|
538
|
+
updatedAt: _zod.z.date(),
|
|
539
|
+
exportProperties: DesignSystemElementExportProps.optional(),
|
|
540
|
+
data: _zod.z.any(),
|
|
541
|
+
// TODO this should be an object, not any.
|
|
542
|
+
origin: _zod.z.any().optional()
|
|
543
|
+
// TODO object, not any.
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
// src/dsm/properties/property-definition.ts
|
|
547
|
+
|
|
548
|
+
var ElementPropertyType = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
549
|
+
var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
|
|
550
|
+
var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
|
|
551
|
+
var ColorTokenInlineData = _zod.z.object({
|
|
552
|
+
value: _zod.z.string()
|
|
553
|
+
});
|
|
554
|
+
var ElementPropertyDefinitionOption = _zod.z.object({
|
|
555
|
+
id: _zod.z.string(),
|
|
556
|
+
name: _zod.z.string(),
|
|
557
|
+
backgroundColor: ColorTokenInlineData.optional()
|
|
558
|
+
});
|
|
559
|
+
var ElementPropertyDefinition = _zod.z.object({
|
|
560
|
+
id: _zod.z.string(),
|
|
561
|
+
designSystemVersionId: _zod.z.string(),
|
|
562
|
+
persistentId: _zod.z.string(),
|
|
563
|
+
name: _zod.z.string(),
|
|
564
|
+
codeName: _zod.z.string(),
|
|
565
|
+
description: _zod.z.string(),
|
|
566
|
+
type: ElementPropertyType,
|
|
567
|
+
targetElementType: ElementPropertyTargetType,
|
|
568
|
+
options: _zod.z.array(ElementPropertyDefinitionOption).nullish(),
|
|
569
|
+
linkElementType: ElementPropertyLinkType.nullish()
|
|
570
|
+
});
|
|
571
|
+
|
|
572
|
+
// src/dsm/properties/property-value.ts
|
|
573
|
+
|
|
574
|
+
var ElementPropertyValue = _zod.z.object({
|
|
575
|
+
id: _zod.z.string(),
|
|
576
|
+
designSystemVersionId: _zod.z.string(),
|
|
577
|
+
targetElementPersistentId: _zod.z.string(),
|
|
578
|
+
definitionPersistentId: _zod.z.string(),
|
|
579
|
+
stringValue: _zod.z.string().nullish(),
|
|
580
|
+
numberValue: _zod.z.number().nullish(),
|
|
581
|
+
booleanValue: _zod.z.boolean().nullish(),
|
|
582
|
+
referenceValue: _zod.z.string().nullish(),
|
|
583
|
+
referenceValuePreview: _zod.z.string().nullish()
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
// src/dsm/elements/primitives/point.ts
|
|
587
|
+
|
|
588
|
+
var Point2D = _zod.z.object({
|
|
589
|
+
x: _zod.z.number(),
|
|
590
|
+
y: _zod.z.number()
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
// src/dsm/elements/primitives/size.ts
|
|
594
|
+
|
|
595
|
+
var nullSize = { height: -1, width: -1 };
|
|
596
|
+
function isNullSize(size) {
|
|
597
|
+
return size.height === nullSize.height && size.width === nullSize.width;
|
|
598
|
+
}
|
|
599
|
+
var Size = _zod.z.object({
|
|
600
|
+
width: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.width))),
|
|
601
|
+
height: _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( nullSize.height)))
|
|
602
|
+
});
|
|
603
|
+
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
604
|
+
if (!v)
|
|
605
|
+
return void 0;
|
|
606
|
+
if (isNullSize(v))
|
|
607
|
+
return void 0;
|
|
608
|
+
return v;
|
|
609
|
+
});
|
|
610
|
+
|
|
611
|
+
// src/helpers/db.ts
|
|
612
|
+
function zodCreateInputOmit() {
|
|
613
|
+
return {
|
|
614
|
+
id: true,
|
|
615
|
+
createdAt: true,
|
|
616
|
+
updatedAt: true
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function zodUpdateInputOmit() {
|
|
620
|
+
return {
|
|
621
|
+
id: true,
|
|
622
|
+
createdAt: true,
|
|
623
|
+
updatedAt: true,
|
|
624
|
+
persistentId: true
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
// src/helpers/nullish-to-optional.ts
|
|
629
|
+
function nullishToOptional(type) {
|
|
630
|
+
return type.nullish().transform((t) => _nullishCoalesce(t, () => ( void 0)));
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// src/dsm/elements/data/documentation-block-v1.ts
|
|
634
|
+
var PageBlockCalloutType = _zod.z.enum(["Info", "Success", "Warning", "Error"]);
|
|
635
|
+
var PageBlockTypeV1 = _zod.z.enum([
|
|
636
|
+
"Text",
|
|
637
|
+
"Heading",
|
|
638
|
+
"Code",
|
|
639
|
+
"UnorderedList",
|
|
640
|
+
"OrderedList",
|
|
641
|
+
"Quote",
|
|
642
|
+
"Callout",
|
|
643
|
+
"Divider",
|
|
644
|
+
"Image",
|
|
645
|
+
"Embed",
|
|
646
|
+
"Link",
|
|
647
|
+
"Shortcuts",
|
|
648
|
+
"FigmaEmbed",
|
|
649
|
+
"YoutubeEmbed",
|
|
650
|
+
"StorybookEmbed",
|
|
651
|
+
"Token",
|
|
652
|
+
"TokenGroup",
|
|
653
|
+
"TokenList",
|
|
654
|
+
"Component",
|
|
655
|
+
"ComponentGroup",
|
|
656
|
+
"Theme",
|
|
657
|
+
"ComponentSandbox",
|
|
658
|
+
"Custom",
|
|
659
|
+
"FigmaFrames",
|
|
660
|
+
"ComponentAssets",
|
|
661
|
+
"RenderCode",
|
|
662
|
+
"Tabs",
|
|
663
|
+
"TabItem",
|
|
664
|
+
"Table",
|
|
665
|
+
"TableRow",
|
|
666
|
+
"TableCell"
|
|
667
|
+
]);
|
|
668
|
+
var PageBlockCodeLanguage = _zod.z.enum([
|
|
669
|
+
"Angular",
|
|
670
|
+
"Bash",
|
|
671
|
+
"C",
|
|
672
|
+
"Cpp",
|
|
673
|
+
"Csharp",
|
|
674
|
+
"CSS",
|
|
675
|
+
"Dart",
|
|
676
|
+
"Handlebars",
|
|
677
|
+
"HTML",
|
|
678
|
+
"Java",
|
|
679
|
+
"Javascript",
|
|
680
|
+
"JSON",
|
|
681
|
+
"ReactJSX",
|
|
682
|
+
"ReactTSX",
|
|
683
|
+
"Kotlin",
|
|
684
|
+
"Lua",
|
|
685
|
+
"Markdown",
|
|
686
|
+
"ObjectiveC",
|
|
687
|
+
"PHP",
|
|
688
|
+
"Plain",
|
|
689
|
+
"Python",
|
|
690
|
+
"Ruby",
|
|
691
|
+
"Rust",
|
|
692
|
+
"Sass",
|
|
693
|
+
"SCSS",
|
|
694
|
+
"Svetle",
|
|
695
|
+
"Swift",
|
|
696
|
+
"Twig",
|
|
697
|
+
"Typescript",
|
|
698
|
+
"Vue",
|
|
699
|
+
"XML",
|
|
700
|
+
"YAML"
|
|
701
|
+
]);
|
|
702
|
+
var PageBlockAlignment = _zod.z.enum(["Left", "Center", "Stretch", "Right"]);
|
|
703
|
+
var PageBlockThemeType = _zod.z.enum(["Override", "Comparison"]);
|
|
704
|
+
var PageBlockAssetType = _zod.z.enum(["image", "figmaFrame"]);
|
|
705
|
+
var PageBlockTilesAlignment = _zod.z.enum(["Center", "FrameHeight"]);
|
|
706
|
+
var PageBlockTilesLayout = _zod.z.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
707
|
+
var PageBlockTheme = _zod.z.object({
|
|
708
|
+
themeIds: _zod.z.array(_zod.z.string()),
|
|
709
|
+
type: PageBlockThemeType
|
|
710
|
+
});
|
|
711
|
+
var PageBlockUrlPreview = _zod.z.object({
|
|
712
|
+
title: nullishToOptional(_zod.z.string()),
|
|
713
|
+
description: nullishToOptional(_zod.z.string()),
|
|
714
|
+
thumbnailUrl: nullishToOptional(_zod.z.string())
|
|
715
|
+
});
|
|
716
|
+
var PageBlockFrameOrigin = _zod.z.object({
|
|
717
|
+
sourceFileName: nullishToOptional(_zod.z.string()),
|
|
718
|
+
title: nullishToOptional(_zod.z.string()),
|
|
719
|
+
previewUrl: nullishToOptional(_zod.z.string()),
|
|
720
|
+
valid: nullishToOptional(_zod.z.boolean()),
|
|
721
|
+
referenceId: nullishToOptional(_zod.z.string()),
|
|
722
|
+
assetId: nullishToOptional(_zod.z.string()),
|
|
723
|
+
assetScale: nullishToOptional(_zod.z.number()),
|
|
724
|
+
width: nullishToOptional(_zod.z.number()),
|
|
725
|
+
height: nullishToOptional(_zod.z.number())
|
|
726
|
+
});
|
|
727
|
+
var PageBlockFrame = _zod.z.object({
|
|
728
|
+
persistentId: _zod.z.string(),
|
|
729
|
+
sourceId: _zod.z.string(),
|
|
730
|
+
sourceFrameId: _zod.z.string(),
|
|
731
|
+
title: nullishToOptional(_zod.z.string()),
|
|
732
|
+
description: nullishToOptional(_zod.z.string()),
|
|
733
|
+
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
734
|
+
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
735
|
+
});
|
|
736
|
+
var PageBlockAsset = _zod.z.object({
|
|
737
|
+
type: PageBlockAssetType,
|
|
738
|
+
id: nullishToOptional(_zod.z.string()),
|
|
739
|
+
url: nullishToOptional(_zod.z.string()),
|
|
740
|
+
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
741
|
+
});
|
|
742
|
+
var PageBlockLinkPreview = _zod.z.object({
|
|
743
|
+
title: nullishToOptional(_zod.z.string()),
|
|
744
|
+
valid: nullishToOptional(_zod.z.boolean())
|
|
745
|
+
});
|
|
746
|
+
var PageBlockShortcut = _zod.z.object({
|
|
747
|
+
persistentId: _zod.z.string(),
|
|
748
|
+
title: nullishToOptional(_zod.z.string()),
|
|
749
|
+
description: nullishToOptional(_zod.z.string()),
|
|
750
|
+
asset: nullishToOptional(PageBlockAsset),
|
|
751
|
+
documentationItemId: nullishToOptional(_zod.z.string()),
|
|
752
|
+
url: nullishToOptional(_zod.z.string()),
|
|
753
|
+
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
754
|
+
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
755
|
+
});
|
|
756
|
+
var PageBlockCustomBlockPropertyImageValue = _zod.z.object({
|
|
757
|
+
asset: nullishToOptional(PageBlockAsset),
|
|
758
|
+
assetId: nullishToOptional(_zod.z.string()),
|
|
759
|
+
assetUrl: nullishToOptional(_zod.z.string())
|
|
760
|
+
});
|
|
761
|
+
var PageBlockCustomBlockPropertyValue = _zod.z.object({
|
|
762
|
+
key: _zod.z.string(),
|
|
763
|
+
value: _zod.z.any()
|
|
764
|
+
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
765
|
+
// e.g. element id 67451 in the dev db
|
|
766
|
+
// value: z
|
|
767
|
+
// .boolean()
|
|
768
|
+
// .or(z.number())
|
|
769
|
+
// .or(z.string())
|
|
770
|
+
// .or(ColorTokenData)
|
|
771
|
+
// .or(TypographyTokenData)
|
|
772
|
+
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
773
|
+
});
|
|
774
|
+
var PageBlockFigmaFrameProperties = _zod.z.object({
|
|
775
|
+
alignment: PageBlockTilesAlignment,
|
|
776
|
+
layout: PageBlockTilesLayout,
|
|
777
|
+
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
778
|
+
showTitles: _zod.z.boolean()
|
|
779
|
+
});
|
|
780
|
+
var PageBlockRenderCodeProperties = _zod.z.object({
|
|
781
|
+
showCode: _zod.z.boolean()
|
|
782
|
+
});
|
|
783
|
+
var PageBlockAssetComponent = _zod.z.object({
|
|
784
|
+
persistentId: _zod.z.string(),
|
|
785
|
+
componentAssetId: _zod.z.string(),
|
|
786
|
+
title: nullishToOptional(_zod.z.string()),
|
|
787
|
+
description: nullishToOptional(_zod.z.string()),
|
|
788
|
+
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
789
|
+
});
|
|
790
|
+
var PageBlockTableColumn = _zod.z.object({
|
|
791
|
+
id: _zod.z.string(),
|
|
792
|
+
width: DimensionTokenData
|
|
793
|
+
});
|
|
794
|
+
var PageBlockTableProperties = _zod.z.object({
|
|
795
|
+
showBorders: _zod.z.boolean(),
|
|
796
|
+
showHeaderRow: _zod.z.boolean(),
|
|
797
|
+
showHeaderColumn: _zod.z.boolean(),
|
|
798
|
+
columns: _zod.z.array(PageBlockTableColumn)
|
|
799
|
+
});
|
|
800
|
+
var PageBlockTextSpanAttributeType = _zod.z.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
|
|
801
|
+
var PageBlockTextSpanAttribute = _zod.z.object({
|
|
802
|
+
type: PageBlockTextSpanAttributeType,
|
|
803
|
+
link: nullishToOptional(_zod.z.string()),
|
|
804
|
+
documentationItemId: nullishToOptional(_zod.z.string()),
|
|
805
|
+
openInNewWindow: nullishToOptional(_zod.z.boolean())
|
|
806
|
+
});
|
|
807
|
+
var PageBlockTextSpan = _zod.z.object({
|
|
808
|
+
text: _zod.z.string(),
|
|
809
|
+
attributes: _zod.z.array(PageBlockTextSpanAttribute)
|
|
810
|
+
});
|
|
811
|
+
var PageBlockText = _zod.z.object({
|
|
812
|
+
spans: _zod.z.array(PageBlockTextSpan)
|
|
813
|
+
});
|
|
814
|
+
var PageBlockBaseV1 = _zod.z.object({
|
|
815
|
+
persistentId: _zod.z.string(),
|
|
816
|
+
type: PageBlockTypeV1,
|
|
817
|
+
// Element linking
|
|
818
|
+
designObjectId: nullishToOptional(_zod.z.string()),
|
|
819
|
+
designObjectIds: nullishToOptional(_zod.z.array(_zod.z.string())),
|
|
820
|
+
tokenType: nullishToOptional(DesignTokenType.or(_zod.z.literal("Font"))),
|
|
821
|
+
showNestedGroups: nullishToOptional(_zod.z.boolean()),
|
|
822
|
+
brandId: nullishToOptional(_zod.z.string()),
|
|
823
|
+
// Rich text
|
|
824
|
+
text: nullishToOptional(PageBlockText),
|
|
825
|
+
caption: nullishToOptional(_zod.z.string()),
|
|
826
|
+
headingType: nullishToOptional(_zod.z.number().min(1).max(3)),
|
|
827
|
+
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
828
|
+
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
829
|
+
urlInput: nullishToOptional(_zod.z.string()),
|
|
830
|
+
url: nullishToOptional(_zod.z.string()),
|
|
831
|
+
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
832
|
+
// Image
|
|
833
|
+
asset: nullishToOptional(PageBlockAsset),
|
|
834
|
+
alignment: nullishToOptional(PageBlockAlignment),
|
|
835
|
+
// Shortcuts block
|
|
836
|
+
shortcuts: nullishToOptional(_zod.z.array(PageBlockShortcut)),
|
|
837
|
+
// Custom blocks
|
|
838
|
+
customBlockKey: nullishToOptional(_zod.z.string()),
|
|
839
|
+
customBlockProperties: nullishToOptional(_zod.z.array(PageBlockCustomBlockPropertyValue)),
|
|
840
|
+
variantKey: nullishToOptional(_zod.z.string()),
|
|
841
|
+
// Figma frames
|
|
842
|
+
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
843
|
+
figmaFrames: nullishToOptional(_zod.z.array(PageBlockFrame)),
|
|
844
|
+
// Generic
|
|
845
|
+
size: nullishToOptional(Size),
|
|
846
|
+
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
847
|
+
// Render code
|
|
848
|
+
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
849
|
+
// Component assets
|
|
850
|
+
componentAssets: nullishToOptional(_zod.z.array(PageBlockAssetComponent)),
|
|
851
|
+
// Tables
|
|
852
|
+
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
853
|
+
columnId: nullishToOptional(_zod.z.string()),
|
|
854
|
+
// Token spreadsheet
|
|
855
|
+
theme: nullishToOptional(PageBlockTheme),
|
|
856
|
+
blacklistedElementProperties: nullishToOptional(_zod.z.array(_zod.z.string())),
|
|
857
|
+
// Arbitrary
|
|
858
|
+
userMetadata: nullishToOptional(_zod.z.string())
|
|
859
|
+
});
|
|
860
|
+
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
861
|
+
children: _zod.z.lazy(
|
|
862
|
+
() => PageBlockV1.array().nullish().transform((t) => _nullishCoalesce(t, () => ( [])))
|
|
863
|
+
)
|
|
864
|
+
});
|
|
865
|
+
function traversePageBlocksV1(blocks, action) {
|
|
866
|
+
for (const block of blocks) {
|
|
867
|
+
action(block);
|
|
868
|
+
traversePageBlocksV1(block.children, action);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// src/dsm/elements/data/documentation-block-v2.ts
|
|
873
|
+
|
|
874
|
+
var PageBlockLinkType = _zod.z.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
875
|
+
var PageBlockImageType = _zod.z.enum(["Upload", "Asset", "FigmaFrame"]);
|
|
876
|
+
var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
877
|
+
var PageBlockAppearanceV2 = _zod.z.object({
|
|
878
|
+
itemBackgroundColor: ColorValue
|
|
879
|
+
});
|
|
880
|
+
var PageBlockItemUntypedPropertyValue = _zod.z.object({
|
|
881
|
+
value: _zod.z.any()
|
|
882
|
+
}).and(_zod.z.record(_zod.z.any()));
|
|
883
|
+
var PageBlockItemRichTextPropertyValue = _zod.z.object({
|
|
884
|
+
value: PageBlockText,
|
|
885
|
+
calloutType: PageBlockCalloutType.optional()
|
|
886
|
+
});
|
|
887
|
+
var PageBlockItemEmbedPropertyValue = _zod.z.object({
|
|
888
|
+
value: _zod.z.string().optional(),
|
|
889
|
+
caption: _zod.z.string().optional(),
|
|
890
|
+
height: _zod.z.number().optional()
|
|
891
|
+
});
|
|
892
|
+
var PageBlockItemMultiRichTextPropertyValue = _zod.z.object({
|
|
893
|
+
value: PageBlockText.array()
|
|
894
|
+
});
|
|
895
|
+
var PageBlockItemTextPropertyValue = _zod.z.object({
|
|
896
|
+
value: _zod.z.string(),
|
|
897
|
+
calloutType: PageBlockCalloutType.optional()
|
|
898
|
+
});
|
|
899
|
+
var PageBlockItemImageReference = _zod.z.object({
|
|
900
|
+
type: PageBlockImageType,
|
|
901
|
+
url: _zod.z.string(),
|
|
902
|
+
assetId: _zod.z.string().optional(),
|
|
903
|
+
size: Size.optional(),
|
|
904
|
+
figmaFile: _zod.z.object({
|
|
905
|
+
sourceId: _zod.z.string(),
|
|
906
|
+
frameId: _zod.z.string()
|
|
907
|
+
}).optional()
|
|
908
|
+
});
|
|
909
|
+
var PageBlockItemImageValue = _zod.z.object({
|
|
910
|
+
alt: _zod.z.string().optional(),
|
|
911
|
+
caption: _zod.z.string().optional(),
|
|
912
|
+
alignment: PageBlockImageAlignment.optional(),
|
|
913
|
+
value: PageBlockItemImageReference.optional()
|
|
914
|
+
});
|
|
915
|
+
var PageBlockLinkV2 = _zod.z.object({
|
|
916
|
+
type: PageBlockLinkType,
|
|
917
|
+
documentationItemId: _zod.z.string().optional(),
|
|
918
|
+
pageHeadingId: _zod.z.string().optional(),
|
|
919
|
+
url: _zod.z.string().optional(),
|
|
920
|
+
openInNewTab: _zod.z.boolean().optional()
|
|
921
|
+
});
|
|
922
|
+
var PageBlockItemV2 = _zod.z.object({
|
|
923
|
+
id: _zod.z.string(),
|
|
924
|
+
linksTo: PageBlockLinkV2.optional(),
|
|
925
|
+
props: _zod.z.record(PageBlockItemUntypedPropertyValue)
|
|
926
|
+
});
|
|
927
|
+
var PageBlockDataV2 = _zod.z.object({
|
|
928
|
+
packageId: _zod.z.string(),
|
|
929
|
+
variantId: _zod.z.string().optional(),
|
|
930
|
+
indentLevel: _zod.z.number(),
|
|
931
|
+
appearance: PageBlockAppearanceV2.optional(),
|
|
932
|
+
items: _zod.z.array(PageBlockItemV2)
|
|
933
|
+
});
|
|
934
|
+
|
|
935
|
+
// src/dsm/elements/data/documentation-page-v1.ts
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
// src/dsm/elements/data/documentation.ts
|
|
939
|
+
|
|
940
|
+
var DocumentationItemConfiguration = _zod.z.object({
|
|
941
|
+
showSidebar: _zod.z.boolean(),
|
|
942
|
+
header: _zod.z.any()
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
// src/dsm/elements/data/documentation-page-v1.ts
|
|
946
|
+
var DocumentationPageDataV1 = _zod.z.object({
|
|
947
|
+
blocks: _zod.z.array(PageBlockV1),
|
|
948
|
+
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
949
|
+
});
|
|
950
|
+
var DocumentationPageElementDataV1 = _zod.z.object({
|
|
951
|
+
value: DocumentationPageDataV1
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
// src/dsm/elements/data/documentation-page-v2.ts
|
|
955
|
+
|
|
956
|
+
var DocumentationPageDataV2 = _zod.z.object({
|
|
957
|
+
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
958
|
+
});
|
|
959
|
+
var DocumentationPageElementDataV2 = _zod.z.object({
|
|
960
|
+
value: DocumentationPageDataV2
|
|
961
|
+
});
|
|
962
|
+
|
|
963
|
+
// src/dsm/elements/data/duration.ts
|
|
964
|
+
|
|
965
|
+
var DurationUnit = _zod.z.enum(["Ms"]);
|
|
966
|
+
var DurationValue = _zod.z.object({
|
|
967
|
+
unit: DurationUnit,
|
|
968
|
+
measure: _zod.z.number()
|
|
969
|
+
});
|
|
970
|
+
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
971
|
+
|
|
972
|
+
// src/dsm/elements/data/figma-file-structure.ts
|
|
973
|
+
|
|
974
|
+
var FigmaFileStructureNodeType = _zod.z.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
975
|
+
var FigmaFileStructureNodeBase = _zod.z.object({
|
|
976
|
+
id: _zod.z.string(),
|
|
977
|
+
name: _zod.z.string(),
|
|
978
|
+
type: FigmaFileStructureNodeType,
|
|
979
|
+
size: SizeOrUndefined,
|
|
980
|
+
parentComponentSetId: _zod.z.string().optional()
|
|
981
|
+
});
|
|
982
|
+
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
983
|
+
children: _zod.z.lazy(() => FigmaFileStructureNode.array())
|
|
984
|
+
});
|
|
985
|
+
var FigmaFileStructureStatistics = _zod.z.object({
|
|
986
|
+
frames: _zod.z.number().nullable().optional().transform((v) => _nullishCoalesce(v, () => ( 0))),
|
|
987
|
+
components: _zod.z.number().nullable().optional().transform((v) => _nullishCoalesce(v, () => ( 0))),
|
|
988
|
+
componentSets: _zod.z.number().nullable().optional().transform((v) => _nullishCoalesce(v, () => ( 0)))
|
|
989
|
+
});
|
|
990
|
+
var FigmaFileStructureElementData = _zod.z.object({
|
|
991
|
+
value: _zod.z.object({
|
|
992
|
+
structure: FigmaFileStructureNode,
|
|
993
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
994
|
+
})
|
|
995
|
+
});
|
|
996
|
+
function figmaFileStructureToMap(root) {
|
|
997
|
+
const map = /* @__PURE__ */ new Map();
|
|
998
|
+
recursiveFigmaFileStructureToMap(root, map);
|
|
999
|
+
return map;
|
|
1000
|
+
}
|
|
1001
|
+
function recursiveFigmaFileStructureToMap(node, map) {
|
|
1002
|
+
map.set(node.id, node);
|
|
1003
|
+
for (const child of node.children)
|
|
1004
|
+
recursiveFigmaFileStructureToMap(child, map);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// src/dsm/elements/data/figma-node-reference.ts
|
|
1008
|
+
|
|
1009
|
+
var FigmaNodeReferenceData = _zod.z.object({
|
|
1010
|
+
structureElementId: _zod.z.string(),
|
|
1011
|
+
nodeId: _zod.z.string(),
|
|
1012
|
+
fileId: _zod.z.string().optional(),
|
|
1013
|
+
valid: _zod.z.boolean(),
|
|
1014
|
+
assetId: _zod.z.string().optional(),
|
|
1015
|
+
assetScale: _zod.z.number().optional(),
|
|
1016
|
+
assetWidth: _zod.z.number().optional(),
|
|
1017
|
+
assetHeight: _zod.z.number().optional(),
|
|
1018
|
+
assetUrl: _zod.z.string().optional()
|
|
1019
|
+
});
|
|
1020
|
+
var FigmaNodeReferenceElementData = _zod.z.object({
|
|
1021
|
+
value: FigmaNodeReferenceData
|
|
1022
|
+
});
|
|
1023
|
+
|
|
1024
|
+
// src/dsm/elements/data/font-family.ts
|
|
1025
|
+
|
|
1026
|
+
var FontFamilyValue = _zod.z.string();
|
|
1027
|
+
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1028
|
+
|
|
1029
|
+
// src/dsm/elements/data/font-size.ts
|
|
1030
|
+
|
|
1031
|
+
var FontSizeUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1032
|
+
var FontSizeValue = _zod.z.object({
|
|
1033
|
+
unit: FontSizeUnit,
|
|
1034
|
+
measure: _zod.z.number()
|
|
1035
|
+
});
|
|
1036
|
+
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1037
|
+
|
|
1038
|
+
// src/dsm/elements/data/font-weight.ts
|
|
1039
|
+
|
|
1040
|
+
var FontWeightValue = _zod.z.string();
|
|
1041
|
+
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1042
|
+
|
|
1043
|
+
// src/dsm/elements/data/gradient.ts
|
|
1044
|
+
|
|
1045
|
+
var GradientType = _zod.z.enum(["Linear", "Radial", "Angular"]);
|
|
1046
|
+
var GradientStop = _zod.z.object({
|
|
1047
|
+
position: _zod.z.number(),
|
|
1048
|
+
color: ColorTokenData
|
|
1049
|
+
});
|
|
1050
|
+
var GradientLayerValue = _zod.z.object({
|
|
1051
|
+
from: Point2D,
|
|
1052
|
+
to: Point2D,
|
|
1053
|
+
type: GradientType,
|
|
1054
|
+
aspectRatio: nullishToOptional(_zod.z.number()),
|
|
1055
|
+
// z.number(),
|
|
1056
|
+
stops: _zod.z.array(GradientStop).min(2)
|
|
1057
|
+
});
|
|
1058
|
+
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1059
|
+
var GradientTokenValue = _zod.z.array(GradientLayerData);
|
|
1060
|
+
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1061
|
+
|
|
1062
|
+
// src/dsm/elements/data/group.ts
|
|
1063
|
+
|
|
1064
|
+
var DocumentationGroupBehavior = _zod.z.enum(["Group", "Tabs"]);
|
|
1065
|
+
var ElementGroupData = _zod.z.object({
|
|
1066
|
+
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1067
|
+
configuration: nullishToOptional(DocumentationItemConfiguration)
|
|
1068
|
+
});
|
|
1069
|
+
var ElementGroupElementData = _zod.z.object({
|
|
1070
|
+
value: ElementGroupData.optional()
|
|
1071
|
+
});
|
|
1072
|
+
|
|
1073
|
+
// src/dsm/elements/data/letter-spacing.ts
|
|
1074
|
+
|
|
1075
|
+
var LetterSpacingUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1076
|
+
var LetterSpacingValue = _zod.z.object({
|
|
1077
|
+
unit: LetterSpacingUnit,
|
|
1078
|
+
measure: _zod.z.number()
|
|
1079
|
+
});
|
|
1080
|
+
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1081
|
+
|
|
1082
|
+
// src/dsm/elements/data/line-height.ts
|
|
1083
|
+
|
|
1084
|
+
var LineHeightUnit = _zod.z.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1085
|
+
var LineHeightValue = _zod.z.object({
|
|
1086
|
+
unit: LineHeightUnit,
|
|
1087
|
+
measure: _zod.z.number()
|
|
1088
|
+
});
|
|
1089
|
+
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1090
|
+
|
|
1091
|
+
// src/dsm/elements/data/paragraph-indent.ts
|
|
1092
|
+
|
|
1093
|
+
var ParagraphIndentUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1094
|
+
var ParagraphIndentValue = _zod.z.object({
|
|
1095
|
+
unit: ParagraphIndentUnit,
|
|
1096
|
+
measure: _zod.z.number()
|
|
1097
|
+
});
|
|
1098
|
+
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1099
|
+
|
|
1100
|
+
// src/dsm/elements/data/paragraph-spacing.ts
|
|
1101
|
+
|
|
1102
|
+
var ParagraphSpacingUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1103
|
+
var ParagraphSpacingValue = _zod.z.object({
|
|
1104
|
+
unit: ParagraphSpacingUnit,
|
|
1105
|
+
measure: _zod.z.number()
|
|
1106
|
+
});
|
|
1107
|
+
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1108
|
+
|
|
1109
|
+
// src/dsm/elements/data/product-copy.ts
|
|
1110
|
+
|
|
1111
|
+
var ProductCopyValue = _zod.z.string();
|
|
1112
|
+
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1113
|
+
|
|
1114
|
+
// src/dsm/elements/data/shadow.ts
|
|
1115
|
+
|
|
1116
|
+
var ShadowType = _zod.z.enum(["Drop", "Inner"]);
|
|
1117
|
+
var ShadowLayerValue = _zod.z.object({
|
|
1118
|
+
color: ColorTokenData,
|
|
1119
|
+
x: _zod.z.number(),
|
|
1120
|
+
y: _zod.z.number(),
|
|
1121
|
+
radius: _zod.z.number(),
|
|
1122
|
+
spread: _zod.z.number(),
|
|
1123
|
+
opacity: OpacityTokenData,
|
|
1124
|
+
type: ShadowType
|
|
1125
|
+
});
|
|
1126
|
+
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1127
|
+
var ShadowTokenData = tokenAliasOrValue(_zod.z.array(ShadowTokenDataBase));
|
|
1128
|
+
|
|
1129
|
+
// src/dsm/elements/data/size.ts
|
|
1130
|
+
|
|
1131
|
+
var SizeUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1132
|
+
var SizeValue = _zod.z.object({
|
|
1133
|
+
unit: SizeUnit,
|
|
1134
|
+
measure: _zod.z.number()
|
|
1135
|
+
});
|
|
1136
|
+
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1137
|
+
|
|
1138
|
+
// src/dsm/elements/data/space.ts
|
|
1139
|
+
|
|
1140
|
+
var SpaceUnit = _zod.z.enum(["Pixels", "Rem", "Percent"]);
|
|
1141
|
+
var SpaceValue = _zod.z.object({
|
|
1142
|
+
unit: SpaceUnit,
|
|
1143
|
+
measure: _zod.z.number()
|
|
1144
|
+
});
|
|
1145
|
+
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1146
|
+
|
|
1147
|
+
// src/dsm/elements/data/string.ts
|
|
1148
|
+
|
|
1149
|
+
var StringValue = _zod.z.string();
|
|
1150
|
+
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1151
|
+
|
|
1152
|
+
// src/dsm/elements/data/text-case.ts
|
|
1153
|
+
|
|
1154
|
+
var TextCase = _zod.z.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1155
|
+
var TextCaseValue = TextCase;
|
|
1156
|
+
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1157
|
+
|
|
1158
|
+
// src/dsm/elements/data/text-decoration.ts
|
|
1159
|
+
|
|
1160
|
+
var TextDecoration = _zod.z.enum(["None", "Underline", "Strikethrough"]);
|
|
1161
|
+
var TextDecorationValue = TextDecoration;
|
|
1162
|
+
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1163
|
+
|
|
1164
|
+
// src/dsm/elements/data/typography.ts
|
|
1165
|
+
|
|
1166
|
+
var TypographyValue = _zod.z.object({
|
|
1167
|
+
fontSize: FontSizeTokenData,
|
|
1168
|
+
fontFamily: FontFamilyTokenData,
|
|
1169
|
+
fontWeight: FontWeightTokenData,
|
|
1170
|
+
textDecoration: TextDecorationTokenData,
|
|
1171
|
+
textCase: TextCaseTokenData,
|
|
1172
|
+
letterSpacing: LetterSpacingTokenData.optional(),
|
|
1173
|
+
lineHeight: LineHeightTokenData.optional(),
|
|
1174
|
+
paragraphIndent: ParagraphIndentTokenData.optional(),
|
|
1175
|
+
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
1176
|
+
});
|
|
1177
|
+
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1178
|
+
|
|
1179
|
+
// src/dsm/elements/data/visibility.ts
|
|
1180
|
+
|
|
1181
|
+
var Visibility = _zod.z.enum(["Hidden", "Visible"]);
|
|
1182
|
+
var VisibilityValue = Visibility;
|
|
1183
|
+
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1184
|
+
|
|
1185
|
+
// src/dsm/elements/data/z-index.ts
|
|
1186
|
+
|
|
1187
|
+
var ZIndexUnit = _zod.z.enum(["Raw"]);
|
|
1188
|
+
var ZIndexValue = _zod.z.object({
|
|
1189
|
+
unit: ZIndexUnit,
|
|
1190
|
+
measure: _zod.z.number()
|
|
1191
|
+
});
|
|
1192
|
+
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1193
|
+
|
|
1194
|
+
// src/dsm/elements/base.ts
|
|
1195
|
+
|
|
1196
|
+
var DesignElementOrigin = _zod.z.object({
|
|
1197
|
+
id: _zod.z.string(),
|
|
1198
|
+
sourceId: _zod.z.string(),
|
|
1199
|
+
name: _zod.z.string()
|
|
1200
|
+
});
|
|
1201
|
+
var DesignElementBase = _zod.z.object({
|
|
1202
|
+
id: _zod.z.string(),
|
|
1203
|
+
persistentId: _zod.z.string(),
|
|
1204
|
+
meta: ObjectMeta,
|
|
1205
|
+
designSystemVersionId: _zod.z.string(),
|
|
1206
|
+
createdAt: _zod.z.date(),
|
|
1207
|
+
updatedAt: _zod.z.date()
|
|
1208
|
+
});
|
|
1209
|
+
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1210
|
+
origin: DesignElementOrigin
|
|
1211
|
+
});
|
|
1212
|
+
var DesignElementGroupablePart = _zod.z.object({
|
|
1213
|
+
parentPersistentId: _zod.z.string().optional(),
|
|
1214
|
+
sortOrder: _zod.z.number()
|
|
1215
|
+
});
|
|
1216
|
+
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1217
|
+
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1218
|
+
parentPersistentId: _zod.z.string()
|
|
1219
|
+
});
|
|
1220
|
+
var DesignElementBrandedPart = _zod.z.object({
|
|
1221
|
+
brandPersistentId: _zod.z.string()
|
|
1222
|
+
});
|
|
1223
|
+
var DesignElementSlugPart = _zod.z.object({
|
|
1224
|
+
slug: _zod.z.string().optional(),
|
|
1225
|
+
userSlug: _zod.z.string().optional()
|
|
1226
|
+
});
|
|
1227
|
+
|
|
1228
|
+
// src/dsm/elements/component.ts
|
|
1229
|
+
|
|
1230
|
+
var ComponentOriginPart = _zod.z.object({
|
|
1231
|
+
nodeId: _zod.z.string().optional(),
|
|
1232
|
+
width: _zod.z.number().optional(),
|
|
1233
|
+
height: _zod.z.number().optional()
|
|
1234
|
+
});
|
|
1235
|
+
var ComponentAsset = _zod.z.object({
|
|
1236
|
+
assetId: _zod.z.string(),
|
|
1237
|
+
assetPath: _zod.z.string()
|
|
1238
|
+
});
|
|
1239
|
+
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1240
|
+
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1241
|
+
origin: ComponentOrigin.optional(),
|
|
1242
|
+
thumbnail: ComponentAsset,
|
|
1243
|
+
svg: ComponentAsset.optional(),
|
|
1244
|
+
isAsset: _zod.z.boolean()
|
|
1245
|
+
});
|
|
1246
|
+
function isImportedComponent(component) {
|
|
1247
|
+
return !!component.origin;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
// src/dsm/elements/documentation-page-v1.ts
|
|
1251
|
+
|
|
1252
|
+
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1253
|
+
shortPersistentId: _zod.z.string(),
|
|
1254
|
+
data: DocumentationPageDataV1
|
|
1255
|
+
});
|
|
1256
|
+
var DocumentationPageDTOV1 = DocumentationPageV1.omit({
|
|
1257
|
+
data: true,
|
|
1258
|
+
meta: true,
|
|
1259
|
+
parentPersistentId: true,
|
|
1260
|
+
sortOrder: true
|
|
1261
|
+
}).extend(DocumentationPageV1.shape.data.shape).extend({
|
|
1262
|
+
title: _zod.z.string(),
|
|
1263
|
+
path: _zod.z.string()
|
|
1264
|
+
});
|
|
1265
|
+
|
|
1266
|
+
// src/dsm/elements/documentation-page-v2.ts
|
|
1267
|
+
|
|
1268
|
+
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1269
|
+
shortPersistentId: _zod.z.string(),
|
|
1270
|
+
data: DocumentationPageDataV2
|
|
1271
|
+
});
|
|
1272
|
+
|
|
1273
|
+
// src/dsm/elements/figma-file-structures.ts
|
|
1274
|
+
|
|
1275
|
+
var FigmaFileStructureOrigin = _zod.z.object({
|
|
1276
|
+
sourceId: _zod.z.string(),
|
|
1277
|
+
fileId: _zod.z.string().optional()
|
|
1278
|
+
});
|
|
1279
|
+
var FigmaFileStructureData = _zod.z.object({
|
|
1280
|
+
rootNode: FigmaFileStructureNode,
|
|
1281
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
1282
|
+
});
|
|
1283
|
+
var FigmaFileStructure = DesignElementBase.extend({
|
|
1284
|
+
origin: FigmaFileStructureOrigin,
|
|
1285
|
+
data: FigmaFileStructureData
|
|
1286
|
+
});
|
|
1287
|
+
function traverseStructure(node, action) {
|
|
1288
|
+
action(node);
|
|
1289
|
+
for (const child of node.children) {
|
|
1290
|
+
traverseStructure(child, action);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// src/dsm/elements/figma-node-reference.ts
|
|
1295
|
+
var FigmaNodeReference = DesignElementBase.extend({
|
|
1296
|
+
data: FigmaNodeReferenceData
|
|
1297
|
+
});
|
|
1298
|
+
|
|
1299
|
+
// src/dsm/elements/group.ts
|
|
1300
|
+
|
|
1301
|
+
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1302
|
+
shortPersistentId: _zod.z.string().optional(),
|
|
1303
|
+
childType: DesignElementType,
|
|
1304
|
+
data: ElementGroupData.optional()
|
|
1305
|
+
});
|
|
1306
|
+
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
1307
|
+
var DocumentationGroupDTO = ElementGroup.omit({
|
|
1308
|
+
sortOrder: true,
|
|
1309
|
+
parentPersistentId: true,
|
|
1310
|
+
brandPersistentId: true,
|
|
1311
|
+
meta: true,
|
|
1312
|
+
childType: true,
|
|
1313
|
+
data: true,
|
|
1314
|
+
shortPersistentId: true
|
|
1315
|
+
}).extend({
|
|
1316
|
+
title: _zod.z.string(),
|
|
1317
|
+
isRoot: _zod.z.boolean(),
|
|
1318
|
+
childrenIds: _zod.z.array(_zod.z.string()),
|
|
1319
|
+
groupBehavior: DocumentationGroupBehavior,
|
|
1320
|
+
configuration: DocumentationItemConfiguration,
|
|
1321
|
+
shortPersistentId: _zod.z.string()
|
|
1322
|
+
});
|
|
1323
|
+
|
|
1324
|
+
// src/dsm/elements/page-block-v2.ts
|
|
1325
|
+
|
|
1326
|
+
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1327
|
+
data: PageBlockDataV2
|
|
1328
|
+
});
|
|
1329
|
+
var PageBlockEditorModelV2 = _zod.z.object({
|
|
1330
|
+
id: _zod.z.string(),
|
|
1331
|
+
data: PageBlockDataV2
|
|
1332
|
+
});
|
|
1333
|
+
|
|
1334
|
+
// src/dsm/elements/theme.ts
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
// src/dsm/elements/tokens.ts
|
|
1338
|
+
|
|
1339
|
+
var DesignTokenOriginPart = _zod.z.object({
|
|
1340
|
+
referenceOriginId: _zod.z.string().optional(),
|
|
1341
|
+
referencePersistentId: _zod.z.string().optional()
|
|
1342
|
+
});
|
|
1343
|
+
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1344
|
+
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1345
|
+
origin: DesignTokenOrigin.optional()
|
|
1346
|
+
});
|
|
1347
|
+
var CreateDesignTokenBase = DesignTokenBase.omit(zodCreateInputOmit());
|
|
1348
|
+
var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
1349
|
+
...zodUpdateInputOmit(),
|
|
1350
|
+
brandPersistentId: true,
|
|
1351
|
+
designSystemVersionId: true
|
|
1352
|
+
});
|
|
1353
|
+
var BlurTokenTypedData = _zod.z.object({
|
|
1354
|
+
type: _zod.z.literal("Blur"),
|
|
1355
|
+
data: BlurTokenData
|
|
1356
|
+
});
|
|
1357
|
+
var ColorTokenTypedData = _zod.z.object({
|
|
1358
|
+
type: _zod.z.literal("Color"),
|
|
1359
|
+
data: ColorTokenData
|
|
1360
|
+
});
|
|
1361
|
+
var GradientTokenTypedData = _zod.z.object({
|
|
1362
|
+
type: _zod.z.literal("Gradient"),
|
|
1363
|
+
data: GradientTokenData
|
|
1364
|
+
});
|
|
1365
|
+
var OpacityTokenTypedData = _zod.z.object({
|
|
1366
|
+
type: _zod.z.literal("Opacity"),
|
|
1367
|
+
data: OpacityTokenData
|
|
1368
|
+
});
|
|
1369
|
+
var ShadowTokenTypedData = _zod.z.object({
|
|
1370
|
+
type: _zod.z.literal("Shadow"),
|
|
1371
|
+
data: ShadowTokenData
|
|
1372
|
+
});
|
|
1373
|
+
var TypographyTokenTypedData = _zod.z.object({
|
|
1374
|
+
type: _zod.z.literal("Typography"),
|
|
1375
|
+
data: TypographyTokenData
|
|
1376
|
+
});
|
|
1377
|
+
var StringTokenTypedData = _zod.z.object({
|
|
1378
|
+
type: _zod.z.literal("String"),
|
|
1379
|
+
data: StringTokenData
|
|
1380
|
+
});
|
|
1381
|
+
var DimensionTokenTypedData = _zod.z.object({
|
|
1382
|
+
type: _zod.z.literal("Dimension"),
|
|
1383
|
+
data: DimensionTokenData
|
|
1384
|
+
});
|
|
1385
|
+
var FontSizeTokenTypedData = _zod.z.object({
|
|
1386
|
+
type: _zod.z.literal("FontSize"),
|
|
1387
|
+
data: FontSizeTokenData
|
|
1388
|
+
});
|
|
1389
|
+
var FontFamilyTokenTypedData = _zod.z.object({
|
|
1390
|
+
type: _zod.z.literal("FontFamily"),
|
|
1391
|
+
data: FontFamilyTokenData
|
|
1392
|
+
});
|
|
1393
|
+
var FontWeightTokenTypedData = _zod.z.object({
|
|
1394
|
+
type: _zod.z.literal("FontWeight"),
|
|
1395
|
+
data: FontWeightTokenData
|
|
1396
|
+
});
|
|
1397
|
+
var LetterSpacingTokenTypedData = _zod.z.object({
|
|
1398
|
+
type: _zod.z.literal("LetterSpacing"),
|
|
1399
|
+
data: LetterSpacingTokenData
|
|
1400
|
+
});
|
|
1401
|
+
var LineHeightTokenTypedData = _zod.z.object({
|
|
1402
|
+
type: _zod.z.literal("LineHeight"),
|
|
1403
|
+
data: LineHeightTokenData
|
|
1404
|
+
});
|
|
1405
|
+
var ParagraphSpacingTokenTypedData = _zod.z.object({
|
|
1406
|
+
type: _zod.z.literal("ParagraphSpacing"),
|
|
1407
|
+
data: ParagraphSpacingTokenData
|
|
1408
|
+
});
|
|
1409
|
+
var TextCaseTokenTypedData = _zod.z.object({
|
|
1410
|
+
type: _zod.z.literal("TextCase"),
|
|
1411
|
+
data: TextCaseTokenData
|
|
1412
|
+
});
|
|
1413
|
+
var TextDecorationTokenTypedData = _zod.z.object({
|
|
1414
|
+
type: _zod.z.literal("TextDecoration"),
|
|
1415
|
+
data: TextDecorationTokenData
|
|
1416
|
+
});
|
|
1417
|
+
var BorderRadiusTokenTypedData = _zod.z.object({
|
|
1418
|
+
type: _zod.z.literal("BorderRadius"),
|
|
1419
|
+
data: BorderRadiusTokenData
|
|
1420
|
+
});
|
|
1421
|
+
var BorderWidthTokenTypedData = _zod.z.object({
|
|
1422
|
+
type: _zod.z.literal("BorderWidth"),
|
|
1423
|
+
data: BorderWidthTokenData
|
|
1424
|
+
});
|
|
1425
|
+
var BorderTypedData = _zod.z.object({
|
|
1426
|
+
type: _zod.z.literal("Border"),
|
|
1427
|
+
data: BorderTokenData
|
|
1428
|
+
});
|
|
1429
|
+
var ProductCopyTypedData = _zod.z.object({
|
|
1430
|
+
type: _zod.z.literal("ProductCopy"),
|
|
1431
|
+
data: ProductCopyTokenData
|
|
1432
|
+
});
|
|
1433
|
+
var SizeTypedData = _zod.z.object({
|
|
1434
|
+
type: _zod.z.literal("Size"),
|
|
1435
|
+
data: SizeTokenData
|
|
1436
|
+
});
|
|
1437
|
+
var SpaceTypedData = _zod.z.object({
|
|
1438
|
+
type: _zod.z.literal("Space"),
|
|
1439
|
+
data: SpaceTokenData
|
|
1440
|
+
});
|
|
1441
|
+
var VisibilityTypedData = _zod.z.object({
|
|
1442
|
+
type: _zod.z.literal("Visibility"),
|
|
1443
|
+
data: VisibilityTokenData
|
|
1444
|
+
});
|
|
1445
|
+
var ZIndexTypedData = _zod.z.object({
|
|
1446
|
+
type: _zod.z.literal("ZIndex"),
|
|
1447
|
+
data: ZIndexTokenData
|
|
1448
|
+
});
|
|
1449
|
+
var DurationTypedData = _zod.z.object({
|
|
1450
|
+
type: _zod.z.literal("Duration"),
|
|
1451
|
+
data: DurationTokenData
|
|
1452
|
+
});
|
|
1453
|
+
var FontTypedData = _zod.z.object({
|
|
1454
|
+
type: _zod.z.literal("Font"),
|
|
1455
|
+
data: _zod.z.record(_zod.z.any())
|
|
1456
|
+
});
|
|
1457
|
+
var DesignTokenTypedData = _zod.z.discriminatedUnion("type", [
|
|
1458
|
+
BlurTokenTypedData,
|
|
1459
|
+
BorderRadiusTokenTypedData,
|
|
1460
|
+
BorderWidthTokenTypedData,
|
|
1461
|
+
BorderTypedData,
|
|
1462
|
+
ColorTokenTypedData,
|
|
1463
|
+
DimensionTokenTypedData,
|
|
1464
|
+
DurationTypedData,
|
|
1465
|
+
FontSizeTokenTypedData,
|
|
1466
|
+
FontFamilyTokenTypedData,
|
|
1467
|
+
FontWeightTokenTypedData,
|
|
1468
|
+
GradientTokenTypedData,
|
|
1469
|
+
LetterSpacingTokenTypedData,
|
|
1470
|
+
LineHeightTokenTypedData,
|
|
1471
|
+
OpacityTokenTypedData,
|
|
1472
|
+
ParagraphSpacingTokenTypedData,
|
|
1473
|
+
ProductCopyTypedData,
|
|
1474
|
+
ShadowTokenTypedData,
|
|
1475
|
+
SizeTypedData,
|
|
1476
|
+
SpaceTypedData,
|
|
1477
|
+
StringTokenTypedData,
|
|
1478
|
+
TextCaseTokenTypedData,
|
|
1479
|
+
TextDecorationTokenTypedData,
|
|
1480
|
+
TypographyTokenTypedData,
|
|
1481
|
+
VisibilityTypedData,
|
|
1482
|
+
ZIndexTypedData,
|
|
1483
|
+
FontTypedData
|
|
1484
|
+
]);
|
|
1485
|
+
var DesignToken = DesignTokenTypedData.and(DesignTokenBase);
|
|
1486
|
+
var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
1487
|
+
function extractTokenTypedData(source) {
|
|
1488
|
+
return {
|
|
1489
|
+
type: source.type,
|
|
1490
|
+
data: source.data
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
function isImportedDesignToken(designToken) {
|
|
1494
|
+
return !!designToken.origin;
|
|
1495
|
+
}
|
|
1496
|
+
function isDesignTokenOfType(designToken, type) {
|
|
1497
|
+
return designToken.type === type;
|
|
1498
|
+
}
|
|
1499
|
+
function designTokenTypeFilter(type) {
|
|
1500
|
+
return (designToken) => isDesignTokenOfType(designToken, type);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
// src/dsm/elements/theme.ts
|
|
1504
|
+
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1505
|
+
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1506
|
+
var ThemeOverride = DesignTokenTypedData.and(
|
|
1507
|
+
_zod.z.object({
|
|
1508
|
+
tokenPersistentId: _zod.z.string(),
|
|
1509
|
+
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => _nullishCoalesce(v, () => ( void 0)))
|
|
1510
|
+
})
|
|
1511
|
+
);
|
|
1512
|
+
var ThemeElementData = _zod.z.object({
|
|
1513
|
+
value: _zod.z.object({
|
|
1514
|
+
overrides: _zod.z.array(ThemeOverride)
|
|
1515
|
+
})
|
|
1516
|
+
});
|
|
1517
|
+
var ThemeOriginPart = _zod.z.object({});
|
|
1518
|
+
var ThemeOriginObject = _zod.z.object({
|
|
1519
|
+
id: _zod.z.string(),
|
|
1520
|
+
name: _zod.z.string()
|
|
1521
|
+
});
|
|
1522
|
+
var ThemeOriginSource = _zod.z.object({
|
|
1523
|
+
sourceId: _zod.z.string(),
|
|
1524
|
+
sourceObjects: _zod.z.array(ThemeOriginObject)
|
|
1525
|
+
});
|
|
1526
|
+
var ThemeOrigin = _zod.z.object({
|
|
1527
|
+
sources: _zod.z.array(ThemeOriginSource)
|
|
1528
|
+
});
|
|
1529
|
+
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1530
|
+
origin: ThemeOrigin.optional(),
|
|
1531
|
+
overrides: _zod.z.array(ThemeOverride)
|
|
1532
|
+
});
|
|
1533
|
+
|
|
1534
|
+
// src/dsm/import/support/figma-files.ts
|
|
1535
|
+
|
|
1536
|
+
var FigmaFileDownloadScope = _zod.z.object({
|
|
1537
|
+
styles: _zod.z.boolean(),
|
|
1538
|
+
components: _zod.z.boolean(),
|
|
1539
|
+
currentVersion: _zod.z.literal("__latest__").nullable(),
|
|
1540
|
+
publishedVersion: _zod.z.string().nullable(),
|
|
1541
|
+
downloadChunkSize: _zod.z.number().optional()
|
|
1542
|
+
});
|
|
1543
|
+
var FigmaFileAccessData = _zod.z.object({
|
|
1544
|
+
accessToken: _zod.z.string()
|
|
1545
|
+
});
|
|
1546
|
+
|
|
1547
|
+
// src/dsm/import/support/import-context.ts
|
|
1548
|
+
|
|
1549
|
+
var ImportFunctionInput = _zod.z.object({
|
|
1550
|
+
importJobId: _zod.z.string(),
|
|
1551
|
+
importContextId: _zod.z.string(),
|
|
1552
|
+
designSystemId: _zod.z.string().optional()
|
|
1553
|
+
});
|
|
1554
|
+
var ImportedFigmaSourceData = _zod.z.object({
|
|
1555
|
+
sourceId: _zod.z.string(),
|
|
1556
|
+
figmaRemote: DataSourceFigmaRemote
|
|
1557
|
+
});
|
|
1558
|
+
var FigmaImportBaseContext = _zod.z.object({
|
|
1559
|
+
designSystemId: _zod.z.string(),
|
|
1560
|
+
/**
|
|
1561
|
+
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1562
|
+
* mentioned in the `importedSourceDataBySourceId`
|
|
1563
|
+
*
|
|
1564
|
+
* fileId: file data
|
|
1565
|
+
*/
|
|
1566
|
+
fileAccessByFileId: _zod.z.record(FigmaFileAccessData),
|
|
1567
|
+
/**
|
|
1568
|
+
* Figma source data for which import was requested
|
|
1569
|
+
*
|
|
1570
|
+
* sourceId: source data
|
|
1571
|
+
*/
|
|
1572
|
+
importedSourceDataBySourceId: _zod.z.record(ImportedFigmaSourceData)
|
|
1573
|
+
});
|
|
1574
|
+
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1575
|
+
importMetadata: DataSourceFigmaImportMetadata
|
|
1576
|
+
});
|
|
1577
|
+
var FigmaImportContextWithDownloadScopes = FigmaImportBaseContext.extend({
|
|
1578
|
+
/**
|
|
1579
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
1580
|
+
* importMetadataBySourceId.
|
|
1581
|
+
*
|
|
1582
|
+
* File id -> file download scope
|
|
1583
|
+
*/
|
|
1584
|
+
fileDownloadScopesByFileId: _zod.z.record(FigmaFileDownloadScope),
|
|
1585
|
+
/**
|
|
1586
|
+
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1587
|
+
* imported again.
|
|
1588
|
+
*
|
|
1589
|
+
* Source id -> import metadata
|
|
1590
|
+
*/
|
|
1591
|
+
changedImportedSourceDataBySourceId: _zod.z.record(ChangedImportedFigmaSourceData)
|
|
1592
|
+
});
|
|
1593
|
+
|
|
1594
|
+
// src/dsm/import/support/import-model-collections.ts
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
// src/dsm/import/image.ts
|
|
1598
|
+
|
|
1599
|
+
var ImageImportModelType = _zod.z.enum(["Url", "FigmaRender"]);
|
|
1600
|
+
var ImageImportModelBase = _zod.z.object({
|
|
1601
|
+
scope: AssetScope
|
|
1602
|
+
});
|
|
1603
|
+
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1604
|
+
type: _zod.z.literal(ImageImportModelType.enum.Url),
|
|
1605
|
+
url: _zod.z.string(),
|
|
1606
|
+
originKey: _zod.z.string(),
|
|
1607
|
+
extension: _zod.z.enum(["png", "svg", "jpg"])
|
|
1608
|
+
});
|
|
1609
|
+
var FigmaRenderFormat = _zod.z.enum(["Svg", "Png"]);
|
|
1610
|
+
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1611
|
+
type: _zod.z.literal(ImageImportModelType.enum.FigmaRender),
|
|
1612
|
+
fileId: _zod.z.string(),
|
|
1613
|
+
fileVersionId: _zod.z.string().optional(),
|
|
1614
|
+
nodeId: _zod.z.string(),
|
|
1615
|
+
originKey: _zod.z.string()
|
|
1616
|
+
});
|
|
1617
|
+
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1618
|
+
format: _zod.z.literal(FigmaRenderFormat.enum.Png),
|
|
1619
|
+
scale: _zod.z.number()
|
|
1620
|
+
});
|
|
1621
|
+
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1622
|
+
format: _zod.z.literal(FigmaRenderFormat.enum.Svg)
|
|
1623
|
+
});
|
|
1624
|
+
var FigmaRenderImportModel = _zod.z.discriminatedUnion("format", [
|
|
1625
|
+
FigmaPngRenderImportModel,
|
|
1626
|
+
FigmaSvgRenderImportModel
|
|
1627
|
+
]);
|
|
1628
|
+
var ImageImportModel = _zod.z.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1629
|
+
|
|
1630
|
+
// src/dsm/import/component.ts
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
// src/dsm/import/base.ts
|
|
1634
|
+
|
|
1635
|
+
var ImportModelBase = _zod.z.object({
|
|
1636
|
+
id: _zod.z.string(),
|
|
1637
|
+
meta: ObjectMeta,
|
|
1638
|
+
origin: DesignElementOrigin,
|
|
1639
|
+
brandPersistentId: _zod.z.string(),
|
|
1640
|
+
sortOrder: _zod.z.number()
|
|
1641
|
+
});
|
|
1642
|
+
var ImportModelInputBase = ImportModelBase.omit({
|
|
1643
|
+
brandPersistentId: true,
|
|
1644
|
+
origin: true,
|
|
1645
|
+
sortOrder: true
|
|
1646
|
+
}).extend({
|
|
1647
|
+
originId: _zod.z.string(),
|
|
1648
|
+
originMetadata: _zod.z.record(_zod.z.any())
|
|
1649
|
+
});
|
|
1650
|
+
|
|
1651
|
+
// src/dsm/import/component.ts
|
|
1652
|
+
var ComponentImportModelPart = _zod.z.object({
|
|
1653
|
+
thumbnail: ImageImportModel
|
|
1654
|
+
});
|
|
1655
|
+
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1656
|
+
isAsset: _zod.z.boolean(),
|
|
1657
|
+
svg: FigmaSvgRenderImportModel.optional(),
|
|
1658
|
+
origin: ComponentOrigin
|
|
1659
|
+
});
|
|
1660
|
+
var ComponentImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
|
|
1661
|
+
originMetadata: ComponentOriginPart
|
|
1662
|
+
});
|
|
1663
|
+
var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
|
|
1664
|
+
svg: FigmaSvgRenderImportModel,
|
|
1665
|
+
originMetadata: ComponentOriginPart
|
|
1666
|
+
});
|
|
1667
|
+
|
|
1668
|
+
// src/dsm/import/theme.ts
|
|
1669
|
+
|
|
1670
|
+
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1671
|
+
_zod.z.object({
|
|
1672
|
+
id: _zod.z.string(),
|
|
1673
|
+
meta: ObjectMeta
|
|
1674
|
+
})
|
|
1675
|
+
);
|
|
1676
|
+
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1677
|
+
_zod.z.object({
|
|
1678
|
+
origin: ThemeOverrideOrigin
|
|
1679
|
+
})
|
|
1680
|
+
);
|
|
1681
|
+
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1682
|
+
_zod.z.object({
|
|
1683
|
+
originId: _zod.z.string(),
|
|
1684
|
+
originMetadata: ThemeOverrideOriginPart
|
|
1685
|
+
})
|
|
1686
|
+
);
|
|
1687
|
+
var ThemeImportModel = _zod.z.object({
|
|
1688
|
+
meta: ObjectMeta,
|
|
1689
|
+
brandPersistentId: _zod.z.string(),
|
|
1690
|
+
originSource: ThemeOriginSource,
|
|
1691
|
+
overrides: _zod.z.array(ThemeOverrideImportModel),
|
|
1692
|
+
sortOrder: _zod.z.number()
|
|
1693
|
+
});
|
|
1694
|
+
var ThemeImportModelInput = _zod.z.object({
|
|
1695
|
+
meta: ObjectMeta,
|
|
1696
|
+
originObjects: _zod.z.array(ThemeOriginObject),
|
|
1697
|
+
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
1698
|
+
});
|
|
1699
|
+
var ThemeUpdateImportModel = _zod.z.object({
|
|
1700
|
+
themePersistentId: _zod.z.string(),
|
|
1701
|
+
overrides: _zod.z.array(ThemeOverrideImportModel)
|
|
1702
|
+
});
|
|
1703
|
+
var ThemeUpdateImportModelInput = _zod.z.object({
|
|
1704
|
+
themePersistentId: _zod.z.string(),
|
|
1705
|
+
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
1706
|
+
});
|
|
1707
|
+
|
|
1708
|
+
// src/dsm/import/tokens.ts
|
|
1709
|
+
|
|
1710
|
+
var DesignTokenImportModelPart = _zod.z.object({
|
|
1711
|
+
collection: _zod.z.string().optional()
|
|
1712
|
+
});
|
|
1713
|
+
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1714
|
+
origin: DesignTokenOrigin
|
|
1715
|
+
});
|
|
1716
|
+
var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1717
|
+
originMetadata: DesignTokenOriginPart
|
|
1718
|
+
});
|
|
1719
|
+
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
1720
|
+
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
1721
|
+
function isDesignTokenImportModelOfType(designToken, type) {
|
|
1722
|
+
return designToken.type === type;
|
|
1723
|
+
}
|
|
1724
|
+
function designTokenImportModelTypeFilter(type) {
|
|
1725
|
+
return (designToken) => isDesignTokenImportModelOfType(designToken, type);
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
// src/dsm/import/figma-frames.ts
|
|
1729
|
+
|
|
1730
|
+
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
1731
|
+
image: FigmaPngRenderImportModel
|
|
1732
|
+
});
|
|
1733
|
+
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1734
|
+
children: _zod.z.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1735
|
+
});
|
|
1736
|
+
var FigmaFileStructureImportModelPart = _zod.z.object({
|
|
1737
|
+
data: _zod.z.object({
|
|
1738
|
+
rootNode: FigmaFileStructureNodeImportModel,
|
|
1739
|
+
assetsInFile: FigmaFileStructureStatistics
|
|
1740
|
+
})
|
|
1741
|
+
});
|
|
1742
|
+
var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
|
|
1743
|
+
origin: FigmaFileStructureOrigin
|
|
1744
|
+
});
|
|
1745
|
+
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1746
|
+
FigmaFileStructureImportModelPart.shape
|
|
1747
|
+
).extend({
|
|
1748
|
+
fileVersionId: _zod.z.string()
|
|
1749
|
+
});
|
|
1750
|
+
function figmaFileStructureImportModelToMap(root) {
|
|
1751
|
+
const map = /* @__PURE__ */ new Map();
|
|
1752
|
+
recursiveFigmaFileStructureToMap2(root, map);
|
|
1753
|
+
return map;
|
|
1754
|
+
}
|
|
1755
|
+
function recursiveFigmaFileStructureToMap2(node, map) {
|
|
1756
|
+
map.set(node.id, node);
|
|
1757
|
+
for (const child of node.children)
|
|
1758
|
+
recursiveFigmaFileStructureToMap2(child, map);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
// src/dsm/import/data-source.ts
|
|
1762
|
+
|
|
1763
|
+
var DataSourceImportModel = _zod.z.object({
|
|
1764
|
+
id: _zod.z.string(),
|
|
1765
|
+
fileName: _zod.z.string().optional(),
|
|
1766
|
+
thumbnailUrl: _zod.z.string().optional()
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
// src/dsm/import/support/import-model-collections.ts
|
|
1770
|
+
var ImportModelInputCollection = _zod.z.object({
|
|
1771
|
+
source: DataSourceImportModel,
|
|
1772
|
+
tokens: _zod.z.array(DesignTokenImportModelInput).default([]),
|
|
1773
|
+
components: _zod.z.array(ComponentImportModelInput).default([]),
|
|
1774
|
+
assets: _zod.z.array(AssetImportModelInput).default([]),
|
|
1775
|
+
themeUpdates: _zod.z.array(ThemeUpdateImportModelInput).default([]),
|
|
1776
|
+
themes: _zod.z.array(ThemeImportModelInput).default([]),
|
|
1777
|
+
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1778
|
+
});
|
|
1779
|
+
var ImportModelCollection = _zod.z.object({
|
|
1780
|
+
sources: _zod.z.array(DataSourceImportModel),
|
|
1781
|
+
tokens: _zod.z.array(DesignTokenImportModel).default([]),
|
|
1782
|
+
components: _zod.z.array(ComponentImportModel).default([]),
|
|
1783
|
+
themeUpdates: _zod.z.array(ThemeUpdateImportModel).default([]),
|
|
1784
|
+
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
1785
|
+
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
1786
|
+
});
|
|
1787
|
+
function addImportModelCollections(lhs, rhs) {
|
|
1788
|
+
return {
|
|
1789
|
+
sources: [...lhs.sources, ...rhs.sources],
|
|
1790
|
+
tokens: [...lhs.tokens, ...rhs.tokens],
|
|
1791
|
+
components: [...lhs.components, ...rhs.components],
|
|
1792
|
+
themeUpdates: [...lhs.themeUpdates, ...rhs.themeUpdates],
|
|
1793
|
+
themes: [...lhs.themes, ...rhs.themes],
|
|
1794
|
+
figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures]
|
|
1795
|
+
};
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
// src/dsm/import/warning.ts
|
|
1799
|
+
|
|
1800
|
+
var ImportWarningType = _zod.z.enum([
|
|
1801
|
+
"NoVersionFound",
|
|
1802
|
+
"UnsupportedFill",
|
|
1803
|
+
"UnsupportedStroke",
|
|
1804
|
+
"UnsupportedEffect",
|
|
1805
|
+
"NoPublishedElements",
|
|
1806
|
+
"NoPublishedStyles",
|
|
1807
|
+
"NoPublishedComponents",
|
|
1808
|
+
"NoPublishedAssets",
|
|
1809
|
+
"StyleNotApplied",
|
|
1810
|
+
"ComponentHasNoThumbnail",
|
|
1811
|
+
"DuplicateImportedStyleId",
|
|
1812
|
+
"DuplicateImportedStylePath"
|
|
1813
|
+
]);
|
|
1814
|
+
var ImportWarning = _zod.z.object({
|
|
1815
|
+
warningType: ImportWarningType,
|
|
1816
|
+
componentId: _zod.z.string().optional(),
|
|
1817
|
+
componentName: _zod.z.string().optional(),
|
|
1818
|
+
styleId: _zod.z.string().optional(),
|
|
1819
|
+
styleName: _zod.z.string().optional(),
|
|
1820
|
+
unsupportedStyleValueType: _zod.z.string().optional()
|
|
1821
|
+
});
|
|
1822
|
+
|
|
1823
|
+
// src/dsm/data-sources/import-summary.ts
|
|
1824
|
+
var FileStructureStats = _zod.z.object({
|
|
1825
|
+
frames: zeroNumberByDefault2(),
|
|
1826
|
+
components: zeroNumberByDefault2(),
|
|
1827
|
+
componentSets: zeroNumberByDefault2()
|
|
1828
|
+
});
|
|
1829
|
+
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1830
|
+
// Backward compatibility
|
|
1831
|
+
_zod.z.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1832
|
+
);
|
|
1833
|
+
var SourceImportSummaryByTokenType = _zod.z.record(SourceImportSummaryByTokenTypeKey, _zod.z.number());
|
|
1834
|
+
var SourceImportTokenSummary = _zod.z.object({
|
|
1835
|
+
tokensCreated: zeroNumberByDefault2(),
|
|
1836
|
+
tokensUpdated: zeroNumberByDefault2(),
|
|
1837
|
+
tokensDeleted: zeroNumberByDefault2(),
|
|
1838
|
+
tokensCreatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => _nullishCoalesce(v, () => ( {}))),
|
|
1839
|
+
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => _nullishCoalesce(v, () => ( {}))),
|
|
1840
|
+
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => _nullishCoalesce(v, () => ( {})))
|
|
1841
|
+
});
|
|
1842
|
+
var SourceImportComponentSummary = _zod.z.object({
|
|
1843
|
+
componentsCreated: zeroNumberByDefault2(),
|
|
1844
|
+
componentsUpdated: zeroNumberByDefault2(),
|
|
1845
|
+
componentsDeleted: zeroNumberByDefault2(),
|
|
1846
|
+
componentAssetsCreated: zeroNumberByDefault2(),
|
|
1847
|
+
componentAssetsUpdated: zeroNumberByDefault2(),
|
|
1848
|
+
componentAssetsDeleted: zeroNumberByDefault2()
|
|
1849
|
+
});
|
|
1850
|
+
var SourceImportFrameSummary = _zod.z.object({
|
|
1851
|
+
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1852
|
+
invalidReferencesCount: nullishToOptional(_zod.z.number().optional())
|
|
1853
|
+
});
|
|
1854
|
+
var SourceImportSummary = _zod.z.object({
|
|
1855
|
+
sourceId: nullishToOptional(_zod.z.string()),
|
|
1856
|
+
brandId: nullishToOptional(_zod.z.string()),
|
|
1857
|
+
versionId: nullishToOptional(_zod.z.string()),
|
|
1858
|
+
error: nullishToOptional(_zod.z.any()),
|
|
1859
|
+
isFailed: _zod.z.boolean(),
|
|
1860
|
+
warnings: _zod.z.array(ImportWarning).nullish().transform((v) => _nullishCoalesce(v, () => ( []))),
|
|
1861
|
+
...SourceImportTokenSummary.shape,
|
|
1862
|
+
...SourceImportComponentSummary.shape,
|
|
1863
|
+
...FileStructureStats.shape
|
|
1864
|
+
});
|
|
1865
|
+
function zeroNumberByDefault2() {
|
|
1866
|
+
return _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( 0)));
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
// src/dsm/documentation/block-definitions/aux.ts
|
|
1870
|
+
|
|
1871
|
+
var PageBlockDefinitionAppearance = _zod.z.object({
|
|
1872
|
+
isBordered: _zod.z.boolean().optional(),
|
|
1873
|
+
hasBackground: _zod.z.boolean().optional(),
|
|
1874
|
+
isEditorPresentationDifferent: _zod.z.boolean().optional()
|
|
1875
|
+
});
|
|
1876
|
+
|
|
1877
|
+
// src/dsm/documentation/block-definitions/definition.ts
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
// src/dsm/documentation/block-definitions/item.ts
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
// src/dsm/documentation/block-definitions/variant.ts
|
|
1884
|
+
|
|
1885
|
+
var PageBlockDefinitionLayoutType = _zod.z.enum(["Column", "Row"]);
|
|
1886
|
+
var PageBlockDefinitionLayoutGap = _zod.z.enum(["Small", "Medium", "Large", "None"]);
|
|
1887
|
+
var PageBlockDefinitionLayoutAlign = _zod.z.enum(["Start", "Center", "End"]);
|
|
1888
|
+
var PageBlockDefinitionLayoutResizing = _zod.z.enum(["Fill", "Hug"]);
|
|
1889
|
+
var PageBlockDefinitionLayoutBase = _zod.z.object({
|
|
1890
|
+
type: PageBlockDefinitionLayoutType,
|
|
1891
|
+
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1892
|
+
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1893
|
+
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1894
|
+
});
|
|
1895
|
+
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1896
|
+
children: _zod.z.lazy(() => _zod.z.array(PageBlockDefinitionLayout.or(_zod.z.string())))
|
|
1897
|
+
});
|
|
1898
|
+
var PageBlockDefinitionVariant = _zod.z.object({
|
|
1899
|
+
id: _zod.z.string(),
|
|
1900
|
+
name: _zod.z.string(),
|
|
1901
|
+
image: _zod.z.string().optional(),
|
|
1902
|
+
description: _zod.z.string().optional(),
|
|
1903
|
+
documentationLink: _zod.z.string().optional(),
|
|
1904
|
+
layout: PageBlockDefinitionLayout,
|
|
1905
|
+
maxColumns: _zod.z.number().optional(),
|
|
1906
|
+
defaultColumns: _zod.z.number().optional(),
|
|
1907
|
+
appearance: PageBlockDefinitionAppearance.optional()
|
|
1908
|
+
});
|
|
1909
|
+
|
|
1910
|
+
// src/dsm/documentation/block-definitions/item.ts
|
|
1911
|
+
var PageBlockDefinitionPropertyType = _zod.z.enum([
|
|
1912
|
+
"RichText",
|
|
1913
|
+
"MultiRichText",
|
|
1914
|
+
"Text",
|
|
1915
|
+
"Boolean",
|
|
1916
|
+
"Number",
|
|
1917
|
+
"SingleSelect",
|
|
1918
|
+
"MultiSelect",
|
|
1919
|
+
"Image",
|
|
1920
|
+
"Token",
|
|
1921
|
+
"TokenType",
|
|
1922
|
+
"TokenProperty",
|
|
1923
|
+
"Component",
|
|
1924
|
+
"ComponentProperty",
|
|
1925
|
+
"Asset",
|
|
1926
|
+
"AssetProperty",
|
|
1927
|
+
"EmbedURL",
|
|
1928
|
+
"URL",
|
|
1929
|
+
"Markdown",
|
|
1930
|
+
"Code",
|
|
1931
|
+
"CodeSandbox",
|
|
1932
|
+
"Table",
|
|
1933
|
+
"Divider",
|
|
1934
|
+
"Storybook",
|
|
1935
|
+
"Color"
|
|
1936
|
+
]);
|
|
1937
|
+
var PageBlockDefinitionRichTextPropertyStyle = _zod.z.enum([
|
|
1938
|
+
"Title1",
|
|
1939
|
+
"Title2",
|
|
1940
|
+
"Title3",
|
|
1941
|
+
"Title4",
|
|
1942
|
+
"Title5",
|
|
1943
|
+
"Quote",
|
|
1944
|
+
"Callout",
|
|
1945
|
+
"Default"
|
|
1946
|
+
]);
|
|
1947
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = _zod.z.enum(["OL", "UL", "Default"]);
|
|
1948
|
+
var PageBlockDefinitionTextPropertyStyle = _zod.z.enum([
|
|
1949
|
+
"Title1",
|
|
1950
|
+
"Title2",
|
|
1951
|
+
"Title3",
|
|
1952
|
+
"Title4",
|
|
1953
|
+
"Title5",
|
|
1954
|
+
"Default",
|
|
1955
|
+
"DefaultBold",
|
|
1956
|
+
"DefaultSemibold",
|
|
1957
|
+
"Small",
|
|
1958
|
+
"SmallBold",
|
|
1959
|
+
"SmallSemibold"
|
|
1960
|
+
]);
|
|
1961
|
+
var PageBlockDefinitionBooleanPropertyStyle = _zod.z.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
1962
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = _zod.z.enum([
|
|
1963
|
+
"SegmentedControl",
|
|
1964
|
+
"ToggleButton",
|
|
1965
|
+
"Select",
|
|
1966
|
+
"Checkbox"
|
|
1967
|
+
]);
|
|
1968
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
1969
|
+
var PageBlockDefinitionPropertyOptions = _zod.z.object({
|
|
1970
|
+
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional(),
|
|
1971
|
+
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional(),
|
|
1972
|
+
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
1973
|
+
placeholder: _zod.z.string().optional()
|
|
1974
|
+
}).and(_zod.z.record(_zod.z.any()));
|
|
1975
|
+
var PageBlockDefinitionProperty = _zod.z.object({
|
|
1976
|
+
id: _zod.z.string(),
|
|
1977
|
+
name: _zod.z.string(),
|
|
1978
|
+
type: PageBlockDefinitionPropertyType,
|
|
1979
|
+
description: _zod.z.string().optional(),
|
|
1980
|
+
// TODO Docs
|
|
1981
|
+
options: PageBlockDefinitionPropertyOptions.optional(),
|
|
1982
|
+
variantOptions: _zod.z.record(PageBlockDefinitionPropertyOptions).optional()
|
|
1983
|
+
});
|
|
1984
|
+
var PageBlockDefinitionItem = _zod.z.object({
|
|
1985
|
+
properties: _zod.z.array(PageBlockDefinitionProperty),
|
|
1986
|
+
appearance: PageBlockDefinitionAppearance.optional(),
|
|
1987
|
+
variants: _zod.z.array(PageBlockDefinitionVariant),
|
|
1988
|
+
defaultVariantKey: _zod.z.string()
|
|
1989
|
+
});
|
|
1990
|
+
|
|
1991
|
+
// src/dsm/documentation/block-definitions/definition.ts
|
|
1992
|
+
var PageBlockCategory = _zod.z.enum([
|
|
1993
|
+
"Text",
|
|
1994
|
+
"Layout",
|
|
1995
|
+
"Media",
|
|
1996
|
+
"Embed",
|
|
1997
|
+
"Figma",
|
|
1998
|
+
"Code",
|
|
1999
|
+
"Guidelines",
|
|
2000
|
+
"Tokens",
|
|
2001
|
+
"Components",
|
|
2002
|
+
"Assets",
|
|
2003
|
+
"Data",
|
|
2004
|
+
"Other"
|
|
2005
|
+
]);
|
|
2006
|
+
var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "FigmaFrame"]);
|
|
2007
|
+
var PageBlockBehaviorSelectionType = _zod.z.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2008
|
+
var PageBlockDefinitionBehavior = _zod.z.object({
|
|
2009
|
+
dataType: PageBlockBehaviorDataType,
|
|
2010
|
+
items: _zod.z.object({
|
|
2011
|
+
numberOfItems: _zod.z.number(),
|
|
2012
|
+
allowLinks: _zod.z.boolean()
|
|
2013
|
+
}).optional(),
|
|
2014
|
+
entities: _zod.z.object({
|
|
2015
|
+
selectionType: PageBlockBehaviorSelectionType,
|
|
2016
|
+
maxSelected: _zod.z.number()
|
|
2017
|
+
}).optional()
|
|
2018
|
+
});
|
|
2019
|
+
var PageBlockDefinitionOnboarding = _zod.z.object({
|
|
2020
|
+
helpText: _zod.z.string(),
|
|
2021
|
+
documentationLink: _zod.z.string().optional()
|
|
2022
|
+
});
|
|
2023
|
+
var PageBlockDefinition = _zod.z.object({
|
|
2024
|
+
id: _zod.z.string(),
|
|
2025
|
+
name: _zod.z.string(),
|
|
2026
|
+
description: _zod.z.string(),
|
|
2027
|
+
category: PageBlockCategory,
|
|
2028
|
+
icon: AssetValue.optional(),
|
|
2029
|
+
documentationLink: _zod.z.string().optional(),
|
|
2030
|
+
searchKeywords: _zod.z.array(_zod.z.string()).optional(),
|
|
2031
|
+
item: PageBlockDefinitionItem,
|
|
2032
|
+
behavior: PageBlockDefinitionBehavior,
|
|
2033
|
+
editorOptions: _zod.z.object({
|
|
2034
|
+
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2035
|
+
}),
|
|
2036
|
+
appearance: PageBlockDefinitionAppearance.optional()
|
|
2037
|
+
});
|
|
2038
|
+
|
|
2039
|
+
// src/dsm/documentation/group.ts
|
|
2040
|
+
|
|
2041
|
+
var DocumentationPageGroup = _zod.z.object({
|
|
2042
|
+
type: _zod.z.literal("ElementGroup"),
|
|
2043
|
+
childType: _zod.z.literal("DocumentationPage"),
|
|
2044
|
+
id: _zod.z.string(),
|
|
2045
|
+
persistentId: _zod.z.string(),
|
|
2046
|
+
shortPersistentId: _zod.z.string(),
|
|
2047
|
+
designSystemVersionId: _zod.z.string(),
|
|
2048
|
+
parentPersistentId: _zod.z.string().nullish(),
|
|
2049
|
+
sortOrder: _zod.z.number(),
|
|
2050
|
+
title: _zod.z.string(),
|
|
2051
|
+
slug: _zod.z.string(),
|
|
2052
|
+
userSlug: _zod.z.string().nullish(),
|
|
2053
|
+
createdAt: _zod.z.date(),
|
|
2054
|
+
updatedAt: _zod.z.date()
|
|
2055
|
+
});
|
|
2056
|
+
|
|
2057
|
+
// src/dsm/documentation/page.ts
|
|
2058
|
+
|
|
2059
|
+
var DocumentationPage = _zod.z.object({
|
|
2060
|
+
type: _zod.z.literal("DocumentationPage"),
|
|
2061
|
+
id: _zod.z.string(),
|
|
2062
|
+
persistentId: _zod.z.string(),
|
|
2063
|
+
shortPersistentId: _zod.z.string(),
|
|
2064
|
+
designSystemVersionId: _zod.z.string(),
|
|
2065
|
+
parentPersistentId: _zod.z.string().nullish(),
|
|
2066
|
+
sortOrder: _zod.z.number(),
|
|
2067
|
+
title: _zod.z.string(),
|
|
2068
|
+
slug: _zod.z.string(),
|
|
2069
|
+
userSlug: _zod.z.string().nullish(),
|
|
2070
|
+
createdAt: _zod.z.date(),
|
|
2071
|
+
updatedAt: _zod.z.date()
|
|
2072
|
+
});
|
|
2073
|
+
|
|
2074
|
+
// src/dsm/design-system.ts
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
// src/workspace/npm-registry-settings.ts
|
|
2078
|
+
|
|
2079
|
+
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2080
|
+
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2081
|
+
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
2082
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2083
|
+
username: _zod.z.string(),
|
|
2084
|
+
password: _zod.z.string()
|
|
2085
|
+
});
|
|
2086
|
+
var NpmRegistryBearerAuthConfig = _zod.z.object({
|
|
2087
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2088
|
+
accessToken: _zod.z.string()
|
|
2089
|
+
});
|
|
2090
|
+
var NpmRegistryNoAuthConfig = _zod.z.object({
|
|
2091
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
|
|
2092
|
+
});
|
|
2093
|
+
var NpmRegistrCustomAuthConfig = _zod.z.object({
|
|
2094
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2095
|
+
authHeaderName: _zod.z.string(),
|
|
2096
|
+
authHeaderValue: _zod.z.string()
|
|
2097
|
+
});
|
|
2098
|
+
var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
|
|
2099
|
+
NpmRegistryBasicAuthConfig,
|
|
2100
|
+
NpmRegistryBearerAuthConfig,
|
|
2101
|
+
NpmRegistryNoAuthConfig,
|
|
2102
|
+
NpmRegistrCustomAuthConfig
|
|
2103
|
+
]);
|
|
2104
|
+
var NpmRegistryConfigBase = _zod.z.object({
|
|
2105
|
+
registryType: NpmRegistryType,
|
|
2106
|
+
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
2107
|
+
customRegistryUrl: _zod.z.string().optional(),
|
|
2108
|
+
bypassProxy: _zod.z.boolean().default(false),
|
|
2109
|
+
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
2110
|
+
npmProxyVersion: _zod.z.number().optional()
|
|
2111
|
+
});
|
|
2112
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2113
|
+
|
|
2114
|
+
// src/workspace/sso-provider.ts
|
|
2115
|
+
|
|
2116
|
+
var SsoProvider = _zod.z.object({
|
|
2117
|
+
providerId: _zod.z.string(),
|
|
2118
|
+
defaultAutoInviteValue: _zod.z.boolean(),
|
|
2119
|
+
autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
|
|
2120
|
+
skipDocsSupernovaLogin: _zod.z.boolean(),
|
|
2121
|
+
areInvitesDisabled: _zod.z.boolean(),
|
|
2122
|
+
isTestMode: _zod.z.boolean(),
|
|
2123
|
+
emailDomains: _zod.z.array(_zod.z.string()),
|
|
2124
|
+
metadataXml: _zod.z.string().nullish()
|
|
2125
|
+
});
|
|
2126
|
+
|
|
2127
|
+
// src/workspace/user-invite.ts
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
// src/workspace/workspace-role.ts
|
|
2131
|
+
|
|
2132
|
+
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2133
|
+
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2134
|
+
|
|
2135
|
+
// src/workspace/user-invite.ts
|
|
2136
|
+
var MAX_MEMBERS_COUNT = 100;
|
|
2137
|
+
var UserInvite = _zod.z.object({
|
|
2138
|
+
email: _zod.z.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2139
|
+
role: WorkspaceRoleSchema
|
|
2140
|
+
});
|
|
2141
|
+
var UserInvites = _zod.z.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2142
|
+
|
|
2143
|
+
// src/workspace/workspace-context.ts
|
|
2144
|
+
|
|
2145
|
+
var WorkspaceContext = _zod.z.object({
|
|
2146
|
+
workspaceId: _zod.z.string(),
|
|
2147
|
+
product: ProductCodeSchema,
|
|
2148
|
+
publicDesignSystem: _zod.z.boolean().optional()
|
|
2149
|
+
});
|
|
2150
|
+
|
|
2151
|
+
// src/workspace/workspace-create.ts
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
// src/utils/validation.ts
|
|
2155
|
+
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2156
|
+
|
|
2157
|
+
// src/workspace/workspace-create.ts
|
|
2158
|
+
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2159
|
+
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2160
|
+
var HANDLE_MIN_LENGTH = 2;
|
|
2161
|
+
var HANDLE_MAX_LENGTH = 64;
|
|
2162
|
+
var CreateWorkspaceInput = _zod.z.object({
|
|
2163
|
+
name: _zod.z.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2164
|
+
product: ProductCodeSchema,
|
|
2165
|
+
priceId: _zod.z.string(),
|
|
2166
|
+
billingEmail: _zod.z.string().email().optional(),
|
|
2167
|
+
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess', _ => _.length]) > 0).optional(),
|
|
2168
|
+
invites: UserInvites.optional(),
|
|
2169
|
+
promoCode: _zod.z.string().optional()
|
|
2170
|
+
});
|
|
2171
|
+
|
|
2172
|
+
// src/workspace/workspace-invitations.ts
|
|
2173
|
+
|
|
2174
|
+
var WorkspaceInvitation = _zod.z.object({
|
|
2175
|
+
id: _zod.z.string(),
|
|
2176
|
+
email: _zod.z.string().email(),
|
|
2177
|
+
createdAt: _zod.z.date(),
|
|
2178
|
+
resentAt: _zod.z.date().nullish(),
|
|
2179
|
+
role: _zod.z.nativeEnum(WorkspaceRole),
|
|
2180
|
+
workspaceId: _zod.z.string(),
|
|
2181
|
+
invitedBy: _zod.z.string()
|
|
2182
|
+
});
|
|
2183
|
+
|
|
2184
|
+
// src/workspace/workspace-membership.ts
|
|
2185
|
+
|
|
2186
|
+
var WorkspaceMembership = _zod.z.object({
|
|
2187
|
+
id: _zod.z.string(),
|
|
2188
|
+
userId: _zod.z.string(),
|
|
2189
|
+
workspaceId: _zod.z.string(),
|
|
2190
|
+
workspaceRole: _zod.z.nativeEnum(WorkspaceRole)
|
|
2191
|
+
});
|
|
2192
|
+
|
|
2193
|
+
// src/workspace/workspace.ts
|
|
2194
|
+
|
|
2195
|
+
var WorkspaceIpWhitelistEntry = _zod.z.object({
|
|
2196
|
+
isEnabled: _zod.z.boolean(),
|
|
2197
|
+
name: _zod.z.string(),
|
|
2198
|
+
range: _zod.z.string()
|
|
2199
|
+
});
|
|
2200
|
+
var WorkspaceIpSettings = _zod.z.object({
|
|
2201
|
+
isEnabledForCloud: _zod.z.boolean(),
|
|
2202
|
+
isEnabledForDocs: _zod.z.boolean(),
|
|
2203
|
+
entries: _zod.z.array(WorkspaceIpWhitelistEntry)
|
|
2204
|
+
}).nullish();
|
|
2205
|
+
var WorkspaceProfile = _zod.z.object({
|
|
2206
|
+
name: _zod.z.string(),
|
|
2207
|
+
handle: _zod.z.string(),
|
|
2208
|
+
color: _zod.z.string(),
|
|
2209
|
+
avatar: _zod.z.string().optional(),
|
|
2210
|
+
billingDetails: BillingDetails.optional()
|
|
2211
|
+
});
|
|
2212
|
+
var Workspace = _zod.z.object({
|
|
2213
|
+
id: _zod.z.string(),
|
|
2214
|
+
profile: WorkspaceProfile,
|
|
2215
|
+
subscription: Subscription,
|
|
2216
|
+
ipWhitelist: WorkspaceIpSettings,
|
|
2217
|
+
sso: SsoProvider.nullish(),
|
|
2218
|
+
npmRegistrySettings: _zod.z.unknown().optional(),
|
|
2219
|
+
designSystems: _zod.z.array(DesignSystem).nullish()
|
|
2220
|
+
});
|
|
2221
|
+
var WorkspaceWithDesignSystems = _zod.z.object({
|
|
2222
|
+
workspace: Workspace,
|
|
2223
|
+
designSystems: _zod.z.array(DesignSystem)
|
|
2224
|
+
});
|
|
2225
|
+
|
|
2226
|
+
// src/dsm/design-system.ts
|
|
2227
|
+
var DesignSystemSwitcher = _zod.z.object({
|
|
2228
|
+
isEnabled: _zod.z.boolean(),
|
|
2229
|
+
designSystemIds: _zod.z.string()
|
|
2230
|
+
});
|
|
2231
|
+
var DesignSystem = _zod.z.object({
|
|
2232
|
+
id: _zod.z.string(),
|
|
2233
|
+
workspaceId: _zod.z.string(),
|
|
2234
|
+
name: _zod.z.string(),
|
|
2235
|
+
description: _zod.z.string(),
|
|
2236
|
+
docExporterId: _zod.z.string().nullish(),
|
|
2237
|
+
docSlug: _zod.z.string(),
|
|
2238
|
+
docUserSlug: _zod.z.string().nullish(),
|
|
2239
|
+
docSlugDeprecated: _zod.z.string(),
|
|
2240
|
+
isPublic: _zod.z.boolean(),
|
|
2241
|
+
isMultibrand: _zod.z.boolean(),
|
|
2242
|
+
docViewUrl: _zod.z.string().nullish(),
|
|
2243
|
+
basePrefixes: _zod.z.array(_zod.z.string()),
|
|
2244
|
+
designSystemSwitcher: DesignSystemSwitcher.nullish(),
|
|
2245
|
+
createdAt: _zod.z.date(),
|
|
2246
|
+
updatedAt: _zod.z.date()
|
|
2247
|
+
});
|
|
2248
|
+
var DesignSystemWithWorkspace = _zod.z.object({
|
|
2249
|
+
designSystem: DesignSystem,
|
|
2250
|
+
workspace: Workspace
|
|
2251
|
+
});
|
|
2252
|
+
|
|
2253
|
+
// src/dsm/desing-system-create.ts
|
|
2254
|
+
|
|
2255
|
+
var DS_NAME_MIN_LENGTH = 2;
|
|
2256
|
+
var DS_NAME_MAX_LENGTH = 64;
|
|
2257
|
+
var DS_DESC_MIN_LENGTH = 2;
|
|
2258
|
+
var DS_DESC_MAX_LENGTH = 64;
|
|
2259
|
+
var DesignSystemCreateInputMetadata = _zod.z.object({
|
|
2260
|
+
name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2261
|
+
description: _zod.z.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
|
|
2262
|
+
});
|
|
2263
|
+
var DesignSystemCreateInput = _zod.z.object({
|
|
2264
|
+
meta: DesignSystemCreateInputMetadata,
|
|
2265
|
+
workspaceId: _zod.z.string(),
|
|
2266
|
+
isPublic: _zod.z.boolean().optional(),
|
|
2267
|
+
basePrefixes: _zod.z.array(_zod.z.string()).optional(),
|
|
2268
|
+
docUserSlug: _zod.z.string().nullish().optional(),
|
|
2269
|
+
source: _zod.z.array(_zod.z.string()).optional()
|
|
2270
|
+
});
|
|
2271
|
+
|
|
2272
|
+
// src/dsm/desing-system-update.ts
|
|
2273
|
+
|
|
2274
|
+
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2275
|
+
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2276
|
+
var DS_DESC_MIN_LENGTH2 = 2;
|
|
2277
|
+
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2278
|
+
var DesignSystemUpdateInputMetadata = _zod.z.object({
|
|
2279
|
+
name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2280
|
+
description: _zod.z.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2281
|
+
});
|
|
2282
|
+
var DesignSystemUpdateInput = _zod.z.object({
|
|
2283
|
+
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2284
|
+
workspaceId: _zod.z.string().optional(),
|
|
2285
|
+
isPublic: _zod.z.boolean().optional(),
|
|
2286
|
+
basePrefixes: _zod.z.array(_zod.z.string()).optional(),
|
|
2287
|
+
docUserSlug: _zod.z.string().nullish().optional(),
|
|
2288
|
+
source: _zod.z.array(_zod.z.string()).optional(),
|
|
2289
|
+
name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2290
|
+
description: _zod.z.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2291
|
+
docExporterId: _zod.z.string().optional()
|
|
2292
|
+
});
|
|
2293
|
+
|
|
2294
|
+
// src/dsm/published-doc-page.ts
|
|
2295
|
+
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
2296
|
+
function tryParseShortPersistentId(url = "/") {
|
|
2297
|
+
const lastUrlPart = url.split("/").pop() || "";
|
|
2298
|
+
const shortPersistentId = _optionalChain([lastUrlPart, 'access', _2 => _2.split, 'call', _3 => _3("-"), 'access', _4 => _4.pop, 'call', _5 => _5(), 'optionalAccess', _6 => _6.replaceAll, 'call', _7 => _7(".html", "")]) || null;
|
|
2299
|
+
return _optionalChain([shortPersistentId, 'optionalAccess', _8 => _8.length]) === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
// src/dsm/published-doc.ts
|
|
2303
|
+
|
|
2304
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2305
|
+
var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
|
|
2306
|
+
var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
|
|
2307
|
+
var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
|
|
2308
|
+
var PublishedDoc = _zod.z.object({
|
|
2309
|
+
id: _zod.z.string(),
|
|
2310
|
+
designSystemVersionId: _zod.z.string(),
|
|
2311
|
+
createdAt: _zod.z.date(),
|
|
2312
|
+
updatedAt: _zod.z.date(),
|
|
2313
|
+
lastPublishedAt: _zod.z.date(),
|
|
2314
|
+
isDefault: _zod.z.boolean(),
|
|
2315
|
+
isPublic: _zod.z.boolean(),
|
|
2316
|
+
environment: PublishedDocEnvironment,
|
|
2317
|
+
checksums: PublishedDocsChecksums,
|
|
2318
|
+
storagePath: _zod.z.string(),
|
|
2319
|
+
wasMigrated: _zod.z.boolean(),
|
|
2320
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
2321
|
+
usesLocalizations: _zod.z.boolean(),
|
|
2322
|
+
wasPublishedWithLocalizations: _zod.z.boolean()
|
|
2323
|
+
});
|
|
2324
|
+
|
|
2325
|
+
// src/codegen/export-jobs.ts
|
|
2326
|
+
|
|
2327
|
+
var ExportJobStatus = _zod.z.union([
|
|
2328
|
+
_zod.z.literal("Success"),
|
|
2329
|
+
_zod.z.literal("InProgress"),
|
|
2330
|
+
_zod.z.literal("Timeout"),
|
|
2331
|
+
_zod.z.literal("Failed")
|
|
2332
|
+
]);
|
|
2333
|
+
var ExportJob = _zod.z.object({
|
|
2334
|
+
id: _zod.z.string(),
|
|
2335
|
+
workspaceId: _zod.z.string(),
|
|
2336
|
+
designSystemId: _zod.z.string(),
|
|
2337
|
+
designSystemVersionId: _zod.z.string(),
|
|
2338
|
+
status: ExportJobStatus,
|
|
2339
|
+
docsUrl: _zod.z.string().nullish(),
|
|
2340
|
+
scheduleId: _zod.z.string().nullish(),
|
|
2341
|
+
exporterId: _zod.z.string().nullish(),
|
|
2342
|
+
createdAt: _zod.z.date(),
|
|
2343
|
+
environment: PublishedDocEnvironment,
|
|
2344
|
+
finishedAt: _zod.z.date().nullish()
|
|
2345
|
+
});
|
|
2346
|
+
|
|
2347
|
+
// src/codegen/exporter-workspace-membership-role.ts
|
|
2348
|
+
|
|
2349
|
+
var ExporterWorkspaceMembershipRole = _zod.z.enum(["Owner", "OwnerArchived", "User"]);
|
|
2350
|
+
|
|
2351
|
+
// src/codegen/exporter-workspace-membership.ts
|
|
2352
|
+
|
|
2353
|
+
var ExporterWorkspaceMembership = _zod.z.object({
|
|
2354
|
+
id: _zod.z.string(),
|
|
2355
|
+
workspaceId: _zod.z.string(),
|
|
2356
|
+
exporterId: _zod.z.string(),
|
|
2357
|
+
role: ExporterWorkspaceMembershipRole
|
|
2358
|
+
});
|
|
2359
|
+
|
|
2360
|
+
// src/codegen/exporter.ts
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
// src/codegen/git-providers.ts
|
|
2364
|
+
|
|
2365
|
+
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
2366
|
+
GitProviderNames2["Azure"] = "azure";
|
|
2367
|
+
GitProviderNames2["Github"] = "github";
|
|
2368
|
+
GitProviderNames2["Gitlab"] = "gitlab";
|
|
2369
|
+
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2370
|
+
return GitProviderNames2;
|
|
2371
|
+
})(GitProviderNames || {});
|
|
2372
|
+
var GitProvider = _zod.z.nativeEnum(GitProviderNames);
|
|
2373
|
+
|
|
2374
|
+
// src/codegen/pulsar.ts
|
|
2375
|
+
|
|
2376
|
+
var PulsarContributionVariant = _zod.z.object({
|
|
2377
|
+
key: _zod.z.string(),
|
|
2378
|
+
name: _zod.z.string(),
|
|
2379
|
+
isDefault: _zod.z.boolean().optional(),
|
|
2380
|
+
description: _zod.z.string().optional(),
|
|
2381
|
+
thumbnailURL: _zod.z.string().optional()
|
|
2382
|
+
});
|
|
2383
|
+
var PulsarPropertyType = _zod.z.enum([
|
|
2384
|
+
"string",
|
|
2385
|
+
"number",
|
|
2386
|
+
"boolean",
|
|
2387
|
+
"image",
|
|
2388
|
+
"enum",
|
|
2389
|
+
"color",
|
|
2390
|
+
"typography",
|
|
2391
|
+
"component",
|
|
2392
|
+
"componentProperties",
|
|
2393
|
+
"tokenProperties",
|
|
2394
|
+
"tokenType"
|
|
2395
|
+
]);
|
|
2396
|
+
var BasePulsarProperty = _zod.z.object({
|
|
2397
|
+
label: _zod.z.string(),
|
|
2398
|
+
key: _zod.z.string(),
|
|
2399
|
+
description: _zod.z.string().optional(),
|
|
2400
|
+
type: PulsarPropertyType,
|
|
2401
|
+
values: _zod.z.array(_zod.z.string()).optional(),
|
|
2402
|
+
default: _zod.z.union([_zod.z.string(), _zod.z.boolean(), _zod.z.number()]).nullish(),
|
|
2403
|
+
// PulsarPropertyValueType //is optional?
|
|
2404
|
+
inputType: _zod.z.enum(["code", "plain"]).optional(),
|
|
2405
|
+
//is optional?
|
|
2406
|
+
isMultiline: _zod.z.boolean().optional()
|
|
2407
|
+
});
|
|
2408
|
+
var PulsarContributionBlock = _zod.z.object({
|
|
2409
|
+
title: _zod.z.string(),
|
|
2410
|
+
key: _zod.z.string(),
|
|
2411
|
+
category: _zod.z.string(),
|
|
2412
|
+
description: _zod.z.string().optional(),
|
|
2413
|
+
iconURL: _zod.z.string(),
|
|
2414
|
+
mode: _zod.z.enum(["array", "block"]),
|
|
2415
|
+
properties: _zod.z.array(BasePulsarProperty)
|
|
2416
|
+
});
|
|
2417
|
+
var PulsarContributionConfigurationProperty = BasePulsarProperty.extend({ category: _zod.z.string() });
|
|
2418
|
+
|
|
2419
|
+
// src/codegen/exporter.ts
|
|
2420
|
+
var ExporterType = _zod.z.enum(["code", "documentation"]);
|
|
2421
|
+
var ExporterSource = _zod.z.enum(["git", "upload"]);
|
|
2422
|
+
var ExporterTag = _zod.z.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2423
|
+
var ExporterDetails = _zod.z.object({
|
|
2424
|
+
packageId: _zod.z.string().max(255),
|
|
2425
|
+
version: _zod.z.string(),
|
|
2426
|
+
description: _zod.z.string(),
|
|
2427
|
+
author: nullishToOptional(_zod.z.string()),
|
|
2428
|
+
organization: nullishToOptional(_zod.z.string()),
|
|
2429
|
+
homepage: nullishToOptional(_zod.z.string()),
|
|
2430
|
+
readme: nullishToOptional(_zod.z.string()),
|
|
2431
|
+
tags: _zod.z.array(ExporterTag).default([]),
|
|
2432
|
+
routingVersion: nullishToOptional(_zod.z.string()),
|
|
2433
|
+
iconURL: nullishToOptional(_zod.z.string()),
|
|
2434
|
+
configurationProperties: _zod.z.array(PulsarContributionConfigurationProperty).default([]),
|
|
2435
|
+
customBlocks: _zod.z.array(PulsarContributionBlock).default([]),
|
|
2436
|
+
blockVariants: _zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant)).default({}),
|
|
2437
|
+
usesBrands: _zod.z.boolean().default(false),
|
|
2438
|
+
usesThemes: _zod.z.boolean().default(false),
|
|
2439
|
+
source: ExporterSource,
|
|
2440
|
+
gitProvider: nullishToOptional(GitProvider),
|
|
2441
|
+
gitUrl: nullishToOptional(_zod.z.string()),
|
|
2442
|
+
gitBranch: nullishToOptional(_zod.z.string()),
|
|
2443
|
+
gitDirectory: nullishToOptional(_zod.z.string())
|
|
2444
|
+
});
|
|
2445
|
+
var Exporter = _zod.z.object({
|
|
2446
|
+
id: _zod.z.string(),
|
|
2447
|
+
createdAt: _zod.z.coerce.date(),
|
|
2448
|
+
name: _zod.z.string(),
|
|
2449
|
+
isPrivate: _zod.z.boolean(),
|
|
2450
|
+
details: ExporterDetails,
|
|
2451
|
+
exporterType: ExporterType.default("code"),
|
|
2452
|
+
storagePath: _zod.z.string().default("")
|
|
2453
|
+
});
|
|
2454
|
+
|
|
2455
|
+
// src/custom-domains/custom-domains.ts
|
|
2456
|
+
|
|
2457
|
+
var CustomDomain = _zod.z.object({
|
|
2458
|
+
id: _zod.z.string(),
|
|
2459
|
+
designSystemId: _zod.z.string(),
|
|
2460
|
+
state: _zod.z.string(),
|
|
2461
|
+
supernovaDomain: _zod.z.string(),
|
|
2462
|
+
customerDomain: _zod.z.string().nullish(),
|
|
2463
|
+
error: _zod.z.string().nullish(),
|
|
2464
|
+
errorCode: _zod.z.string().nullish()
|
|
2465
|
+
});
|
|
2466
|
+
|
|
2467
|
+
// src/docs-server/session.ts
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
// src/users/linked-integrations.ts
|
|
2471
|
+
|
|
2472
|
+
var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
|
|
2473
|
+
var ExternalServiceType = _zod.z.union([
|
|
2474
|
+
_zod.z.literal("figma"),
|
|
2475
|
+
_zod.z.literal("github"),
|
|
2476
|
+
_zod.z.literal("azure"),
|
|
2477
|
+
_zod.z.literal("gitlab"),
|
|
2478
|
+
_zod.z.literal("bitbucket")
|
|
2479
|
+
]);
|
|
2480
|
+
var IntegrationUserInfo = _zod.z.object({
|
|
2481
|
+
id: _zod.z.string(),
|
|
2482
|
+
handle: _zod.z.string().optional(),
|
|
2483
|
+
avatarUrl: _zod.z.string().optional(),
|
|
2484
|
+
email: _zod.z.string().optional(),
|
|
2485
|
+
authType: IntegrationAuthType.optional(),
|
|
2486
|
+
customUrl: _zod.z.string().optional()
|
|
2487
|
+
});
|
|
2488
|
+
var UserLinkedIntegrations = _zod.z.object({
|
|
2489
|
+
figma: IntegrationUserInfo.optional(),
|
|
2490
|
+
github: IntegrationUserInfo.array().optional(),
|
|
2491
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
2492
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
2493
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
2494
|
+
});
|
|
2495
|
+
|
|
2496
|
+
// src/users/user-identity.ts
|
|
2497
|
+
|
|
2498
|
+
var UserIdentity = _zod.z.object({
|
|
2499
|
+
id: _zod.z.string(),
|
|
2500
|
+
userId: _zod.z.string()
|
|
2501
|
+
});
|
|
2502
|
+
|
|
2503
|
+
// src/users/user-profile.ts
|
|
2504
|
+
|
|
2505
|
+
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2506
|
+
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2507
|
+
var UserOnboarding = _zod.z.object({
|
|
2508
|
+
companyName: _zod.z.string().optional(),
|
|
2509
|
+
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
2510
|
+
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
2511
|
+
department: UserOnboardingDepartment.optional(),
|
|
2512
|
+
jobTitle: _zod.z.string().optional(),
|
|
2513
|
+
phase: _zod.z.string().optional(),
|
|
2514
|
+
jobLevel: UserOnboardingJobLevel.optional()
|
|
2515
|
+
});
|
|
2516
|
+
var UserProfile = _zod.z.object({
|
|
2517
|
+
name: _zod.z.string(),
|
|
2518
|
+
avatar: _zod.z.string().optional(),
|
|
2519
|
+
nickname: _zod.z.string().optional(),
|
|
2520
|
+
onboarding: UserOnboarding.optional()
|
|
2521
|
+
});
|
|
2522
|
+
|
|
2523
|
+
// src/users/user.ts
|
|
2524
|
+
|
|
2525
|
+
var User = _zod.z.object({
|
|
2526
|
+
id: _zod.z.string(),
|
|
2527
|
+
email: _zod.z.string(),
|
|
2528
|
+
emailVerified: _zod.z.boolean(),
|
|
2529
|
+
createdAt: _zod.z.date(),
|
|
2530
|
+
trialExpiresAt: _zod.z.date().optional(),
|
|
2531
|
+
profile: UserProfile,
|
|
2532
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2533
|
+
loggedOutAt: _zod.z.date().optional(),
|
|
2534
|
+
isProtected: _zod.z.boolean()
|
|
2535
|
+
});
|
|
2536
|
+
|
|
2537
|
+
// src/docs-server/session.ts
|
|
2538
|
+
var NpmProxyToken = _zod.z.object({
|
|
2539
|
+
access: _zod.z.string(),
|
|
2540
|
+
expiresAt: _zod.z.number()
|
|
2541
|
+
});
|
|
2542
|
+
var SessionData = _zod.z.object({
|
|
2543
|
+
returnToUrl: _zod.z.string().optional(),
|
|
2544
|
+
npmProxyToken: NpmProxyToken.optional()
|
|
2545
|
+
});
|
|
2546
|
+
var Session = _zod.z.object({
|
|
2547
|
+
id: _zod.z.string(),
|
|
2548
|
+
expiresAt: _zod.z.date(),
|
|
2549
|
+
userId: _zod.z.string().nullable(),
|
|
2550
|
+
data: SessionData
|
|
2551
|
+
});
|
|
2552
|
+
var AuthTokens = _zod.z.object({
|
|
2553
|
+
access: _zod.z.string(),
|
|
2554
|
+
refresh: _zod.z.string()
|
|
2555
|
+
});
|
|
2556
|
+
var UserSession = _zod.z.object({
|
|
2557
|
+
session: Session,
|
|
2558
|
+
user: User.nullable()
|
|
2559
|
+
});
|
|
2560
|
+
|
|
2561
|
+
// src/feature-flags/feature-flags.ts
|
|
2562
|
+
|
|
2563
|
+
var FlaggedFeature = _zod.z.enum(["FigmaImporterV2"]);
|
|
2564
|
+
var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
2565
|
+
var FeatureFlag = _zod.z.object({
|
|
2566
|
+
id: _zod.z.string(),
|
|
2567
|
+
feature: FlaggedFeature,
|
|
2568
|
+
createdAt: _zod.z.date(),
|
|
2569
|
+
enabled: _zod.z.boolean()
|
|
2570
|
+
});
|
|
2571
|
+
|
|
2572
|
+
// src/integrations/external-oauth-request.ts
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
// src/integrations/oauth-providers.ts
|
|
2576
|
+
|
|
2577
|
+
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2578
|
+
OAuthProviderNames2["Figma"] = "figma";
|
|
2579
|
+
OAuthProviderNames2["Azure"] = "azure";
|
|
2580
|
+
OAuthProviderNames2["Github"] = "github";
|
|
2581
|
+
OAuthProviderNames2["Gitlab"] = "gitlab";
|
|
2582
|
+
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2583
|
+
return OAuthProviderNames2;
|
|
2584
|
+
})(OAuthProviderNames || {});
|
|
2585
|
+
var OAuthProviderSchema = _zod.z.nativeEnum(OAuthProviderNames);
|
|
2586
|
+
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2587
|
+
|
|
2588
|
+
// src/integrations/external-oauth-request.ts
|
|
2589
|
+
var ExternalOAuthRequest = _zod.z.object({
|
|
2590
|
+
id: _zod.z.string(),
|
|
2591
|
+
provider: OAuthProviderSchema,
|
|
2592
|
+
userId: _zod.z.string(),
|
|
2593
|
+
state: _zod.z.string(),
|
|
2594
|
+
createdAt: _zod.z.date()
|
|
2595
|
+
});
|
|
2596
|
+
|
|
2597
|
+
// src/integrations/oauth-token.ts
|
|
2598
|
+
|
|
2599
|
+
var IntegrationTokenSchema = _zod.z.object({
|
|
2600
|
+
id: _zod.z.string(),
|
|
2601
|
+
provider: OAuthProviderSchema,
|
|
2602
|
+
scope: _zod.z.string(),
|
|
2603
|
+
userId: _zod.z.string(),
|
|
2604
|
+
accessToken: _zod.z.string(),
|
|
2605
|
+
refreshToken: _zod.z.string(),
|
|
2606
|
+
expiresAt: _zod.z.date(),
|
|
2607
|
+
externalUserId: _zod.z.string().nullish()
|
|
2608
|
+
});
|
|
2609
|
+
|
|
2610
|
+
// src/multiplayer/design-system-version-room.ts
|
|
2611
|
+
|
|
2612
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
2613
|
+
designSystemVersionId: _zod.z.string(),
|
|
2614
|
+
liveblocksId: _zod.z.string()
|
|
2615
|
+
});
|
|
2616
|
+
|
|
2617
|
+
// src/multiplayer/documentation-page-room.ts
|
|
2618
|
+
|
|
2619
|
+
var DocumentationPageRoom = Entity.extend({
|
|
2620
|
+
designSystemVersionId: _zod.z.string(),
|
|
2621
|
+
documentationPageId: _zod.z.string(),
|
|
2622
|
+
liveblocksId: _zod.z.string()
|
|
2623
|
+
});
|
|
2624
|
+
|
|
2625
|
+
// src/npm/npm-package.ts
|
|
2626
|
+
|
|
2627
|
+
var AnyRecord = _zod.z.record(_zod.z.any());
|
|
2628
|
+
var NpmPackageVersionDist = AnyRecord.and(
|
|
2629
|
+
_zod.z.object({
|
|
2630
|
+
tarball: _zod.z.string()
|
|
2631
|
+
})
|
|
2632
|
+
);
|
|
2633
|
+
var NpmPackageVersion = AnyRecord.and(
|
|
2634
|
+
_zod.z.object({
|
|
2635
|
+
dist: NpmPackageVersionDist
|
|
2636
|
+
})
|
|
2637
|
+
);
|
|
2638
|
+
var NpmPackage = AnyRecord.and(
|
|
2639
|
+
_zod.z.object({
|
|
2640
|
+
_id: _zod.z.string(),
|
|
2641
|
+
name: _zod.z.string(),
|
|
2642
|
+
// e.g. "latest": "1.2.3"
|
|
2643
|
+
"dist-tags": _zod.z.record(_zod.z.string(), _zod.z.string()),
|
|
2644
|
+
// "1.2.3": {...}
|
|
2645
|
+
versions: _zod.z.record(NpmPackageVersion)
|
|
2646
|
+
})
|
|
2647
|
+
);
|
|
2648
|
+
|
|
2649
|
+
// src/npm/npm-proxy-token-payload.ts
|
|
2650
|
+
|
|
2651
|
+
var NpmProxyTokenPayload = _zod.z.object({
|
|
2652
|
+
npmProxyRegistryConfigId: _zod.z.string()
|
|
2653
|
+
});
|
|
2654
|
+
|
|
2655
|
+
// src/tokens/personal-access-token.ts
|
|
2656
|
+
|
|
2657
|
+
var PersonalAccessToken = _zod.z.object({
|
|
2658
|
+
id: _zod.z.string(),
|
|
2659
|
+
userId: _zod.z.string(),
|
|
2660
|
+
name: _zod.z.string(),
|
|
2661
|
+
token: _zod.z.string(),
|
|
2662
|
+
createdAt: _zod.z.date(),
|
|
2663
|
+
hidden: _zod.z.boolean(),
|
|
2664
|
+
workspaceId: _zod.z.string().optional(),
|
|
2665
|
+
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2666
|
+
expireAt: _zod.z.date().optional(),
|
|
2667
|
+
scope: _zod.z.string().optional()
|
|
2668
|
+
});
|
|
2669
|
+
|
|
2670
|
+
// src/utils/content-loader-instruction.ts
|
|
2671
|
+
|
|
2672
|
+
var ContentLoadInstruction = _zod.z.object({
|
|
2673
|
+
from: _zod.z.string(),
|
|
2674
|
+
to: _zod.z.string(),
|
|
2675
|
+
authorizationHeaderKvsId: _zod.z.string().optional(),
|
|
2676
|
+
timeout: _zod.z.number().optional()
|
|
2677
|
+
});
|
|
2678
|
+
var ContentLoaderPayload = _zod.z.object({
|
|
2679
|
+
type: _zod.z.literal("Single"),
|
|
2680
|
+
instruction: ContentLoadInstruction
|
|
2681
|
+
}).or(
|
|
2682
|
+
_zod.z.object({
|
|
2683
|
+
type: _zod.z.literal("Multiple"),
|
|
2684
|
+
loadingChunkSize: _zod.z.number().optional(),
|
|
2685
|
+
instructions: _zod.z.array(ContentLoadInstruction)
|
|
2686
|
+
})
|
|
2687
|
+
).or(
|
|
2688
|
+
_zod.z.object({
|
|
2689
|
+
type: _zod.z.literal("S3"),
|
|
2690
|
+
location: _zod.z.string()
|
|
2691
|
+
})
|
|
2692
|
+
);
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
|
|
2701
|
+
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
|
|
2761
|
+
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
|
|
2781
|
+
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
|
|
2786
|
+
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
|
|
2822
|
+
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
|
|
2844
|
+
|
|
2845
|
+
|
|
2846
|
+
|
|
2847
|
+
|
|
2848
|
+
|
|
2849
|
+
|
|
2850
|
+
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
|
|
2862
|
+
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
|
|
2878
|
+
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
|
|
2882
|
+
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
|
|
2894
|
+
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
|
|
2903
|
+
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
|
|
2912
|
+
|
|
2913
|
+
|
|
2914
|
+
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
|
|
2922
|
+
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
|
|
2941
|
+
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
|
|
2956
|
+
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
|
|
2973
|
+
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
|
|
3060
|
+
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
exports.Address = Address; exports.Asset = Asset; exports.AssetFontProperties = AssetFontProperties; exports.AssetImportModelInput = AssetImportModelInput; exports.AssetOrigin = AssetOrigin; exports.AssetProperties = AssetProperties; exports.AssetReference = AssetReference; exports.AssetScope = AssetScope; exports.AssetType = AssetType; exports.AssetValue = AssetValue; exports.AuthTokens = AuthTokens; exports.BasePulsarProperty = BasePulsarProperty; exports.BillingDetails = BillingDetails; exports.BillingIntervalSchema = BillingIntervalSchema; exports.BillingType = BillingType; exports.BillingTypeSchema = BillingTypeSchema; exports.BlurTokenData = BlurTokenData; exports.BlurType = BlurType; exports.BlurValue = BlurValue; exports.BorderPosition = BorderPosition; exports.BorderRadiusTokenData = BorderRadiusTokenData; exports.BorderRadiusUnit = BorderRadiusUnit; exports.BorderRadiusValue = BorderRadiusValue; exports.BorderStyle = BorderStyle; exports.BorderTokenData = BorderTokenData; exports.BorderValue = BorderValue; exports.BorderWidthTokenData = BorderWidthTokenData; exports.BorderWidthUnit = BorderWidthUnit; exports.BorderWidthValue = BorderWidthValue; exports.BrandedElementGroup = BrandedElementGroup; exports.CardSchema = CardSchema; exports.ChangedImportedFigmaSourceData = ChangedImportedFigmaSourceData; exports.ColorTokenData = ColorTokenData; exports.ColorTokenInlineData = ColorTokenInlineData; exports.ColorValue = ColorValue; exports.Component = Component; exports.ComponentElementData = ComponentElementData; exports.ComponentImportModel = ComponentImportModel; exports.ComponentImportModelInput = ComponentImportModelInput; exports.ComponentOrigin = ComponentOrigin; exports.ComponentOriginPart = ComponentOriginPart; exports.ContentLoadInstruction = ContentLoadInstruction; exports.ContentLoaderPayload = ContentLoaderPayload; exports.CreateDesignToken = CreateDesignToken; exports.CreateWorkspaceInput = CreateWorkspaceInput; exports.CustomDomain = CustomDomain; exports.Customer = Customer; exports.DataSourceAutoImportMode = DataSourceAutoImportMode; exports.DataSourceFigmaFileData = DataSourceFigmaFileData; exports.DataSourceFigmaFileVersionData = DataSourceFigmaFileVersionData; exports.DataSourceFigmaImportMetadata = DataSourceFigmaImportMetadata; exports.DataSourceFigmaRemote = DataSourceFigmaRemote; exports.DataSourceFigmaScope = DataSourceFigmaScope; exports.DataSourceFigmaState = DataSourceFigmaState; exports.DataSourceImportModel = DataSourceImportModel; exports.DataSourceRemote = DataSourceRemote; exports.DataSourceRemoteType = DataSourceRemoteType; exports.DataSourceStats = DataSourceStats; exports.DataSourceTokenStudioRemote = DataSourceTokenStudioRemote; exports.DataSourceUploadImportMetadata = DataSourceUploadImportMetadata; exports.DataSourceUploadRemote = DataSourceUploadRemote; exports.DataSourceUploadRemoteSource = DataSourceUploadRemoteSource; exports.DataSourceVersion = DataSourceVersion; exports.DesignElement = DesignElement; exports.DesignElementBase = DesignElementBase; exports.DesignElementBrandedPart = DesignElementBrandedPart; exports.DesignElementCategory = DesignElementCategory; exports.DesignElementGroupableBase = DesignElementGroupableBase; exports.DesignElementGroupablePart = DesignElementGroupablePart; exports.DesignElementGroupableRequiredPart = DesignElementGroupableRequiredPart; exports.DesignElementImportedBase = DesignElementImportedBase; exports.DesignElementOrigin = DesignElementOrigin; exports.DesignElementSlugPart = DesignElementSlugPart; exports.DesignElementType = DesignElementType; exports.DesignSystem = DesignSystem; exports.DesignSystemCreateInput = DesignSystemCreateInput; exports.DesignSystemElementExportProps = DesignSystemElementExportProps; exports.DesignSystemSwitcher = DesignSystemSwitcher; exports.DesignSystemUpdateInput = DesignSystemUpdateInput; exports.DesignSystemVersionRoom = DesignSystemVersionRoom; exports.DesignSystemWithWorkspace = DesignSystemWithWorkspace; exports.DesignToken = DesignToken; exports.DesignTokenImportModel = DesignTokenImportModel; exports.DesignTokenImportModelBase = DesignTokenImportModelBase; exports.DesignTokenImportModelInput = DesignTokenImportModelInput; exports.DesignTokenImportModelInputBase = DesignTokenImportModelInputBase; exports.DesignTokenOrigin = DesignTokenOrigin; exports.DesignTokenOriginPart = DesignTokenOriginPart; exports.DesignTokenType = DesignTokenType; exports.DesignTokenTypedData = DesignTokenTypedData; exports.DimensionTokenData = DimensionTokenData; exports.DimensionUnit = DimensionUnit; exports.DimensionValue = DimensionValue; exports.DocumentationGroupBehavior = DocumentationGroupBehavior; exports.DocumentationGroupDTO = DocumentationGroupDTO; exports.DocumentationItemConfiguration = DocumentationItemConfiguration; exports.DocumentationPage = DocumentationPage; exports.DocumentationPageDTOV1 = DocumentationPageDTOV1; exports.DocumentationPageDataV1 = DocumentationPageDataV1; exports.DocumentationPageDataV2 = DocumentationPageDataV2; exports.DocumentationPageElementDataV1 = DocumentationPageElementDataV1; exports.DocumentationPageElementDataV2 = DocumentationPageElementDataV2; exports.DocumentationPageGroup = DocumentationPageGroup; exports.DocumentationPageRoom = DocumentationPageRoom; exports.DocumentationPageV1 = DocumentationPageV1; exports.DocumentationPageV2 = DocumentationPageV2; exports.DurationTokenData = DurationTokenData; exports.DurationUnit = DurationUnit; exports.DurationValue = DurationValue; exports.ElementGroup = ElementGroup; exports.ElementGroupData = ElementGroupData; exports.ElementGroupElementData = ElementGroupElementData; exports.ElementPropertyDefinition = ElementPropertyDefinition; exports.ElementPropertyDefinitionOption = ElementPropertyDefinitionOption; exports.ElementPropertyLinkType = ElementPropertyLinkType; exports.ElementPropertyTargetType = ElementPropertyTargetType; exports.ElementPropertyType = ElementPropertyType; exports.ElementPropertyValue = ElementPropertyValue; exports.Entity = Entity; exports.ExportJob = ExportJob; exports.ExportJobStatus = ExportJobStatus; exports.Exporter = Exporter; exports.ExporterDetails = ExporterDetails; exports.ExporterSource = ExporterSource; exports.ExporterTag = ExporterTag; exports.ExporterType = ExporterType; exports.ExporterWorkspaceMembership = ExporterWorkspaceMembership; exports.ExporterWorkspaceMembershipRole = ExporterWorkspaceMembershipRole; exports.ExternalOAuthRequest = ExternalOAuthRequest; exports.ExternalServiceType = ExternalServiceType; exports.FeatureFlag = FeatureFlag; exports.FeatureFlagMap = FeatureFlagMap; exports.FeaturesSummary = FeaturesSummary; exports.FigmaFileAccessData = FigmaFileAccessData; exports.FigmaFileDownloadScope = FigmaFileDownloadScope; exports.FigmaFileStructure = FigmaFileStructure; exports.FigmaFileStructureData = FigmaFileStructureData; exports.FigmaFileStructureElementData = FigmaFileStructureElementData; exports.FigmaFileStructureImportModel = FigmaFileStructureImportModel; exports.FigmaFileStructureImportModelInput = FigmaFileStructureImportModelInput; exports.FigmaFileStructureNode = FigmaFileStructureNode; exports.FigmaFileStructureNodeBase = FigmaFileStructureNodeBase; exports.FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModel; exports.FigmaFileStructureNodeType = FigmaFileStructureNodeType; exports.FigmaFileStructureOrigin = FigmaFileStructureOrigin; exports.FigmaFileStructureStatistics = FigmaFileStructureStatistics; exports.FigmaImportBaseContext = FigmaImportBaseContext; exports.FigmaImportContextWithDownloadScopes = FigmaImportContextWithDownloadScopes; exports.FigmaNodeReference = FigmaNodeReference; exports.FigmaNodeReferenceData = FigmaNodeReferenceData; exports.FigmaNodeReferenceElementData = FigmaNodeReferenceElementData; exports.FigmaPngRenderImportModel = FigmaPngRenderImportModel; exports.FigmaRenderFormat = FigmaRenderFormat; exports.FigmaRenderImportModel = FigmaRenderImportModel; exports.FigmaSvgRenderImportModel = FigmaSvgRenderImportModel; exports.FileStructureStats = FileStructureStats; exports.FlaggedFeature = FlaggedFeature; exports.FontFamilyTokenData = FontFamilyTokenData; exports.FontFamilyValue = FontFamilyValue; exports.FontSizeTokenData = FontSizeTokenData; exports.FontSizeUnit = FontSizeUnit; exports.FontSizeValue = FontSizeValue; exports.FontWeightTokenData = FontWeightTokenData; exports.FontWeightValue = FontWeightValue; exports.GitProvider = GitProvider; exports.GitProviderNames = GitProviderNames; exports.GradientLayerData = GradientLayerData; exports.GradientLayerValue = GradientLayerValue; exports.GradientStop = GradientStop; exports.GradientTokenData = GradientTokenData; exports.GradientTokenValue = GradientTokenValue; exports.GradientType = GradientType; exports.HANDLE_MAX_LENGTH = HANDLE_MAX_LENGTH; exports.HANDLE_MIN_LENGTH = HANDLE_MIN_LENGTH; exports.ImageImportModel = ImageImportModel; exports.ImageImportModelType = ImageImportModelType; exports.ImportFunctionInput = ImportFunctionInput; exports.ImportJob = ImportJob; exports.ImportJobOperation = ImportJobOperation; exports.ImportJobState = ImportJobState; exports.ImportModelBase = ImportModelBase; exports.ImportModelCollection = ImportModelCollection; exports.ImportModelInputBase = ImportModelInputBase; exports.ImportModelInputCollection = ImportModelInputCollection; exports.ImportWarning = ImportWarning; exports.ImportWarningType = ImportWarningType; exports.ImportedFigmaSourceData = ImportedFigmaSourceData; exports.IntegrationAuthType = IntegrationAuthType; exports.IntegrationTokenSchema = IntegrationTokenSchema; exports.IntegrationUserInfo = IntegrationUserInfo; exports.InternalStatus = InternalStatus; exports.InternalStatusSchema = InternalStatusSchema; exports.InvoiceCouponSchema = InvoiceCouponSchema; exports.InvoiceLineSchema = InvoiceLineSchema; exports.InvoiceSchema = InvoiceSchema; exports.LetterSpacingTokenData = LetterSpacingTokenData; exports.LetterSpacingUnit = LetterSpacingUnit; exports.LetterSpacingValue = LetterSpacingValue; exports.LineHeightTokenData = LineHeightTokenData; exports.LineHeightUnit = LineHeightUnit; exports.LineHeightValue = LineHeightValue; exports.MAX_MEMBERS_COUNT = MAX_MEMBERS_COUNT; exports.NpmPackage = NpmPackage; exports.NpmProxyToken = NpmProxyToken; exports.NpmProxyTokenPayload = NpmProxyTokenPayload; exports.NpmRegistrCustomAuthConfig = NpmRegistrCustomAuthConfig; exports.NpmRegistryAuthConfig = NpmRegistryAuthConfig; exports.NpmRegistryAuthType = NpmRegistryAuthType; exports.NpmRegistryBasicAuthConfig = NpmRegistryBasicAuthConfig; exports.NpmRegistryBearerAuthConfig = NpmRegistryBearerAuthConfig; exports.NpmRegistryConfig = NpmRegistryConfig; exports.NpmRegistryNoAuthConfig = NpmRegistryNoAuthConfig; exports.NpmRegistryType = NpmRegistryType; exports.OAuthProvider = OAuthProvider; exports.OAuthProviderNames = OAuthProviderNames; exports.OAuthProviderSchema = OAuthProviderSchema; exports.ObjectMeta = ObjectMeta; exports.OpacityTokenData = OpacityTokenData; exports.OpacityValue = OpacityValue; exports.PageBlockAlignment = PageBlockAlignment; exports.PageBlockAppearanceV2 = PageBlockAppearanceV2; exports.PageBlockAsset = PageBlockAsset; exports.PageBlockAssetComponent = PageBlockAssetComponent; exports.PageBlockAssetType = PageBlockAssetType; exports.PageBlockBehaviorDataType = PageBlockBehaviorDataType; exports.PageBlockBehaviorSelectionType = PageBlockBehaviorSelectionType; exports.PageBlockCalloutType = PageBlockCalloutType; exports.PageBlockCategory = PageBlockCategory; exports.PageBlockCodeLanguage = PageBlockCodeLanguage; exports.PageBlockCustomBlockPropertyImageValue = PageBlockCustomBlockPropertyImageValue; exports.PageBlockCustomBlockPropertyValue = PageBlockCustomBlockPropertyValue; exports.PageBlockDataV2 = PageBlockDataV2; exports.PageBlockDefinition = PageBlockDefinition; exports.PageBlockDefinitionAppearance = PageBlockDefinitionAppearance; exports.PageBlockDefinitionBehavior = PageBlockDefinitionBehavior; exports.PageBlockDefinitionBooleanPropertyStyle = PageBlockDefinitionBooleanPropertyStyle; exports.PageBlockDefinitionItem = PageBlockDefinitionItem; exports.PageBlockDefinitionLayout = PageBlockDefinitionLayout; exports.PageBlockDefinitionLayoutAlign = PageBlockDefinitionLayoutAlign; exports.PageBlockDefinitionLayoutBase = PageBlockDefinitionLayoutBase; exports.PageBlockDefinitionLayoutGap = PageBlockDefinitionLayoutGap; exports.PageBlockDefinitionLayoutResizing = PageBlockDefinitionLayoutResizing; exports.PageBlockDefinitionLayoutType = PageBlockDefinitionLayoutType; exports.PageBlockDefinitionMultiRichTextPropertyStyle = PageBlockDefinitionMultiRichTextPropertyStyle; exports.PageBlockDefinitionMultiSelectPropertyStyle = PageBlockDefinitionMultiSelectPropertyStyle; exports.PageBlockDefinitionOnboarding = PageBlockDefinitionOnboarding; exports.PageBlockDefinitionProperty = PageBlockDefinitionProperty; exports.PageBlockDefinitionPropertyOptions = PageBlockDefinitionPropertyOptions; exports.PageBlockDefinitionPropertyType = PageBlockDefinitionPropertyType; exports.PageBlockDefinitionRichTextPropertyStyle = PageBlockDefinitionRichTextPropertyStyle; exports.PageBlockDefinitionSingleSelectPropertyStyle = PageBlockDefinitionSingleSelectPropertyStyle; exports.PageBlockDefinitionTextPropertyStyle = PageBlockDefinitionTextPropertyStyle; exports.PageBlockDefinitionVariant = PageBlockDefinitionVariant; exports.PageBlockEditorModelV2 = PageBlockEditorModelV2; exports.PageBlockFigmaFrameProperties = PageBlockFigmaFrameProperties; exports.PageBlockFrame = PageBlockFrame; exports.PageBlockFrameOrigin = PageBlockFrameOrigin; exports.PageBlockImageAlignment = PageBlockImageAlignment; exports.PageBlockImageType = PageBlockImageType; exports.PageBlockItemEmbedPropertyValue = PageBlockItemEmbedPropertyValue; exports.PageBlockItemImageReference = PageBlockItemImageReference; exports.PageBlockItemImageValue = PageBlockItemImageValue; exports.PageBlockItemMultiRichTextPropertyValue = PageBlockItemMultiRichTextPropertyValue; exports.PageBlockItemRichTextPropertyValue = PageBlockItemRichTextPropertyValue; exports.PageBlockItemTextPropertyValue = PageBlockItemTextPropertyValue; exports.PageBlockItemUntypedPropertyValue = PageBlockItemUntypedPropertyValue; exports.PageBlockItemV2 = PageBlockItemV2; exports.PageBlockLinkPreview = PageBlockLinkPreview; exports.PageBlockLinkType = PageBlockLinkType; exports.PageBlockLinkV2 = PageBlockLinkV2; exports.PageBlockRenderCodeProperties = PageBlockRenderCodeProperties; exports.PageBlockShortcut = PageBlockShortcut; exports.PageBlockTableColumn = PageBlockTableColumn; exports.PageBlockTableProperties = PageBlockTableProperties; exports.PageBlockText = PageBlockText; exports.PageBlockTextSpan = PageBlockTextSpan; exports.PageBlockTextSpanAttribute = PageBlockTextSpanAttribute; exports.PageBlockTextSpanAttributeType = PageBlockTextSpanAttributeType; exports.PageBlockTheme = PageBlockTheme; exports.PageBlockThemeType = PageBlockThemeType; exports.PageBlockTilesAlignment = PageBlockTilesAlignment; exports.PageBlockTilesLayout = PageBlockTilesLayout; exports.PageBlockTypeV1 = PageBlockTypeV1; exports.PageBlockUrlPreview = PageBlockUrlPreview; exports.PageBlockV1 = PageBlockV1; exports.PageBlockV2 = PageBlockV2; exports.ParagraphIndentTokenData = ParagraphIndentTokenData; exports.ParagraphIndentUnit = ParagraphIndentUnit; exports.ParagraphIndentValue = ParagraphIndentValue; exports.ParagraphSpacingTokenData = ParagraphSpacingTokenData; exports.ParagraphSpacingUnit = ParagraphSpacingUnit; exports.ParagraphSpacingValue = ParagraphSpacingValue; exports.PeriodSchema = PeriodSchema; exports.PersonalAccessToken = PersonalAccessToken; exports.PluginOAuthRequestSchema = PluginOAuthRequestSchema; exports.Point2D = Point2D; exports.PostStripeCheckoutBodyInputSchema = PostStripeCheckoutBodyInputSchema; exports.PostStripeCheckoutOutputSchema = PostStripeCheckoutOutputSchema; exports.PostStripePortalSessionBodyInputSchema = PostStripePortalSessionBodyInputSchema; exports.PostStripePortalSessionOutputSchema = PostStripePortalSessionOutputSchema; exports.PostStripePortalUpdateSessionBodyInputSchema = PostStripePortalUpdateSessionBodyInputSchema; exports.PriceSchema = PriceSchema; exports.ProductCode = ProductCode; exports.ProductCodeSchema = ProductCodeSchema; exports.ProductCopyTokenData = ProductCopyTokenData; exports.ProductCopyValue = ProductCopyValue; exports.PublishedDoc = PublishedDoc; exports.PublishedDocEnvironment = PublishedDocEnvironment; exports.PublishedDocRoutingVersion = PublishedDocRoutingVersion; exports.PublishedDocsChecksums = PublishedDocsChecksums; exports.PulsarContributionBlock = PulsarContributionBlock; exports.PulsarContributionConfigurationProperty = PulsarContributionConfigurationProperty; exports.PulsarContributionVariant = PulsarContributionVariant; exports.PulsarPropertyType = PulsarPropertyType; exports.SHORT_PERSISTENT_ID_LENGTH = SHORT_PERSISTENT_ID_LENGTH; exports.Session = Session; exports.SessionData = SessionData; exports.ShadowLayerValue = ShadowLayerValue; exports.ShadowTokenData = ShadowTokenData; exports.ShadowType = ShadowType; exports.ShallowDesignElement = ShallowDesignElement; exports.Size = Size; exports.SizeOrUndefined = SizeOrUndefined; exports.SizeTokenData = SizeTokenData; exports.SizeUnit = SizeUnit; exports.SizeValue = SizeValue; exports.SourceImportComponentSummary = SourceImportComponentSummary; exports.SourceImportFrameSummary = SourceImportFrameSummary; exports.SourceImportSummary = SourceImportSummary; exports.SourceImportSummaryByTokenType = SourceImportSummaryByTokenType; exports.SourceImportTokenSummary = SourceImportTokenSummary; exports.SpaceTokenData = SpaceTokenData; exports.SpaceUnit = SpaceUnit; exports.SpaceValue = SpaceValue; exports.SsoProvider = SsoProvider; exports.StringTokenData = StringTokenData; exports.StringValue = StringValue; exports.StripeSubscriptionStatus = StripeSubscriptionStatus; exports.StripeSubscriptionStatusSchema = StripeSubscriptionStatusSchema; exports.Subscription = Subscription; exports.TextCase = TextCase; exports.TextCaseTokenData = TextCaseTokenData; exports.TextCaseValue = TextCaseValue; exports.TextDecoration = TextDecoration; exports.TextDecorationTokenData = TextDecorationTokenData; exports.TextDecorationValue = TextDecorationValue; exports.Theme = Theme; exports.ThemeElementData = ThemeElementData; exports.ThemeImportModel = ThemeImportModel; exports.ThemeImportModelInput = ThemeImportModelInput; exports.ThemeOrigin = ThemeOrigin; exports.ThemeOriginObject = ThemeOriginObject; exports.ThemeOriginPart = ThemeOriginPart; exports.ThemeOriginSource = ThemeOriginSource; exports.ThemeOverride = ThemeOverride; exports.ThemeOverrideImportModel = ThemeOverrideImportModel; exports.ThemeOverrideImportModelBase = ThemeOverrideImportModelBase; exports.ThemeOverrideImportModelInput = ThemeOverrideImportModelInput; exports.ThemeOverrideOrigin = ThemeOverrideOrigin; exports.ThemeOverrideOriginPart = ThemeOverrideOriginPart; exports.ThemeUpdateImportModel = ThemeUpdateImportModel; exports.ThemeUpdateImportModelInput = ThemeUpdateImportModelInput; exports.TokenDataAliasSchema = TokenDataAliasSchema; exports.TypographyTokenData = TypographyTokenData; exports.TypographyValue = TypographyValue; exports.UrlImageImportModel = UrlImageImportModel; exports.User = User; exports.UserIdentity = UserIdentity; exports.UserInvite = UserInvite; exports.UserInvites = UserInvites; exports.UserLinkedIntegrations = UserLinkedIntegrations; exports.UserOnboarding = UserOnboarding; exports.UserOnboardingDepartment = UserOnboardingDepartment; exports.UserOnboardingJobLevel = UserOnboardingJobLevel; exports.UserProfile = UserProfile; exports.UserSession = UserSession; exports.Visibility = Visibility; exports.VisibilityTokenData = VisibilityTokenData; exports.VisibilityValue = VisibilityValue; exports.Workspace = Workspace; exports.WorkspaceContext = WorkspaceContext; exports.WorkspaceInvitation = WorkspaceInvitation; exports.WorkspaceIpSettings = WorkspaceIpSettings; exports.WorkspaceIpWhitelistEntry = WorkspaceIpWhitelistEntry; exports.WorkspaceMembership = WorkspaceMembership; exports.WorkspaceProfile = WorkspaceProfile; exports.WorkspaceRole = WorkspaceRole; exports.WorkspaceRoleSchema = WorkspaceRoleSchema; exports.WorkspaceWithDesignSystems = WorkspaceWithDesignSystems; exports.ZIndexTokenData = ZIndexTokenData; exports.ZIndexUnit = ZIndexUnit; exports.ZIndexValue = ZIndexValue; exports.addImportModelCollections = addImportModelCollections; exports.designTokenImportModelTypeFilter = designTokenImportModelTypeFilter; exports.designTokenTypeFilter = designTokenTypeFilter; exports.extractTokenTypedData = extractTokenTypedData; exports.figmaFileStructureImportModelToMap = figmaFileStructureImportModelToMap; exports.figmaFileStructureToMap = figmaFileStructureToMap; exports.isDesignTokenImportModelOfType = isDesignTokenImportModelOfType; exports.isDesignTokenOfType = isDesignTokenOfType; exports.isImportedAsset = isImportedAsset; exports.isImportedComponent = isImportedComponent; exports.isImportedDesignToken = isImportedDesignToken; exports.isTokenType = isTokenType; exports.nullishToOptional = nullishToOptional; exports.publishedDocEnvironments = publishedDocEnvironments; exports.tokenAliasOrValue = tokenAliasOrValue; exports.tokenElementTypes = tokenElementTypes; exports.traversePageBlocksV1 = traversePageBlocksV1; exports.traverseStructure = traverseStructure; exports.tryParseShortPersistentId = tryParseShortPersistentId; exports.zodCreateInputOmit = zodCreateInputOmit; exports.zodUpdateInputOmit = zodUpdateInputOmit;
|
|
3108
|
+
//# sourceMappingURL=index.js.map
|