@supernova-studio/client 1.37.4 → 1.37.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +420 -215
- package/dist/index.d.ts +420 -215
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1798 -1787
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,66 +12,66 @@ import { z as z6 } from "zod";
|
|
|
12
12
|
import { z as z7 } from "zod";
|
|
13
13
|
import { z as z8 } from "zod";
|
|
14
14
|
import { z as z9 } from "zod";
|
|
15
|
-
import { z as z10 } from "zod";
|
|
16
15
|
import { z as z11 } from "zod";
|
|
16
|
+
import { z as z10 } from "zod";
|
|
17
17
|
import { z as z12 } from "zod";
|
|
18
18
|
import { z as z13 } from "zod";
|
|
19
19
|
import { z as z14 } from "zod";
|
|
20
20
|
import { z as z15 } from "zod";
|
|
21
21
|
import { z as z16 } from "zod";
|
|
22
22
|
import { z as z17 } from "zod";
|
|
23
|
-
import { z as z163 } from "zod";
|
|
24
|
-
import { z as z21 } from "zod";
|
|
25
23
|
import { z as z18 } from "zod";
|
|
24
|
+
import { z as z163 } from "zod";
|
|
25
|
+
import { z as z22 } from "zod";
|
|
26
26
|
import { z as z19 } from "zod";
|
|
27
27
|
import { z as z20 } from "zod";
|
|
28
|
+
import { z as z21 } from "zod";
|
|
28
29
|
import { z as z162 } from "zod";
|
|
29
30
|
import { z as z161 } from "zod";
|
|
30
|
-
import { z as z22 } from "zod";
|
|
31
31
|
import { z as z23 } from "zod";
|
|
32
32
|
import { z as z24 } from "zod";
|
|
33
33
|
import { z as z25 } from "zod";
|
|
34
34
|
import { z as z26 } from "zod";
|
|
35
|
-
import { z as z108 } from "zod";
|
|
36
35
|
import { z as z27 } from "zod";
|
|
37
|
-
import { z as
|
|
38
|
-
import { z as z94 } from "zod";
|
|
36
|
+
import { z as z109 } from "zod";
|
|
39
37
|
import { z as z28 } from "zod";
|
|
40
|
-
import { z as
|
|
38
|
+
import { z as z98 } from "zod";
|
|
39
|
+
import { z as z95 } from "zod";
|
|
41
40
|
import { z as z29 } from "zod";
|
|
42
|
-
import { z as
|
|
41
|
+
import { z as z94 } from "zod";
|
|
43
42
|
import { z as z30 } from "zod";
|
|
44
43
|
import { z as z32 } from "zod";
|
|
44
|
+
import { z as z31 } from "zod";
|
|
45
45
|
import { z as z33 } from "zod";
|
|
46
|
-
import { z as z36 } from "zod";
|
|
47
|
-
import { z as z35 } from "zod";
|
|
48
46
|
import { z as z34 } from "zod";
|
|
49
|
-
import { z as z38 } from "zod";
|
|
50
47
|
import { z as z37 } from "zod";
|
|
51
|
-
import { z as
|
|
48
|
+
import { z as z36 } from "zod";
|
|
49
|
+
import { z as z35 } from "zod";
|
|
52
50
|
import { z as z39 } from "zod";
|
|
51
|
+
import { z as z38 } from "zod";
|
|
52
|
+
import { z as z47 } from "zod";
|
|
53
53
|
import { z as z40 } from "zod";
|
|
54
|
-
import slugifyImplementation from "@sindresorhus/slugify";
|
|
55
54
|
import { z as z41 } from "zod";
|
|
55
|
+
import slugifyImplementation from "@sindresorhus/slugify";
|
|
56
56
|
import { z as z42 } from "zod";
|
|
57
57
|
import { z as z43 } from "zod";
|
|
58
58
|
import { z as z44 } from "zod";
|
|
59
59
|
import { z as z45 } from "zod";
|
|
60
|
+
import { z as z46 } from "zod";
|
|
61
|
+
import { z as z51 } from "zod";
|
|
60
62
|
import { z as z50 } from "zod";
|
|
61
|
-
import { z as z49 } from "zod";
|
|
62
|
-
import { z as z47 } from "zod";
|
|
63
63
|
import { z as z48 } from "zod";
|
|
64
|
+
import { z as z49 } from "zod";
|
|
65
|
+
import { z as z55 } from "zod";
|
|
64
66
|
import { z as z54 } from "zod";
|
|
65
67
|
import { z as z53 } from "zod";
|
|
66
68
|
import { z as z52 } from "zod";
|
|
67
|
-
import { z as
|
|
69
|
+
import { z as z58 } from "zod";
|
|
68
70
|
import { z as z57 } from "zod";
|
|
69
71
|
import { z as z56 } from "zod";
|
|
70
|
-
import { z as
|
|
72
|
+
import { z as z61 } from "zod";
|
|
71
73
|
import { z as z60 } from "zod";
|
|
72
74
|
import { z as z59 } from "zod";
|
|
73
|
-
import { z as z58 } from "zod";
|
|
74
|
-
import { z as z61 } from "zod";
|
|
75
75
|
import { z as z62 } from "zod";
|
|
76
76
|
import { z as z63 } from "zod";
|
|
77
77
|
import { z as z64 } from "zod";
|
|
@@ -95,27 +95,27 @@ import { z as z81 } from "zod";
|
|
|
95
95
|
import { z as z82 } from "zod";
|
|
96
96
|
import { z as z83 } from "zod";
|
|
97
97
|
import { z as z84 } from "zod";
|
|
98
|
-
import { z as z86 } from "zod";
|
|
99
98
|
import { z as z85 } from "zod";
|
|
100
99
|
import { z as z87 } from "zod";
|
|
100
|
+
import { z as z86 } from "zod";
|
|
101
101
|
import { z as z88 } from "zod";
|
|
102
102
|
import { z as z89 } from "zod";
|
|
103
103
|
import { z as z90 } from "zod";
|
|
104
|
-
import { z as z92 } from "zod";
|
|
105
104
|
import { z as z91 } from "zod";
|
|
106
|
-
import { z as
|
|
105
|
+
import { z as z93 } from "zod";
|
|
106
|
+
import { z as z92 } from "zod";
|
|
107
107
|
import { z as z96 } from "zod";
|
|
108
|
-
import { z as
|
|
109
|
-
import { z as
|
|
110
|
-
import { z as z98 } from "zod";
|
|
111
|
-
import { z as z102 } from "zod";
|
|
108
|
+
import { z as z97 } from "zod";
|
|
109
|
+
import { z as z108 } from "zod";
|
|
112
110
|
import { z as z100 } from "zod";
|
|
113
|
-
import { z as
|
|
111
|
+
import { z as z99 } from "zod";
|
|
114
112
|
import { z as z103 } from "zod";
|
|
113
|
+
import { z as z101 } from "zod";
|
|
114
|
+
import { z as z102 } from "zod";
|
|
115
115
|
import { z as z104 } from "zod";
|
|
116
116
|
import { z as z105 } from "zod";
|
|
117
117
|
import { z as z106 } from "zod";
|
|
118
|
-
import { z as
|
|
118
|
+
import { z as z107 } from "zod";
|
|
119
119
|
import { z as z110 } from "zod";
|
|
120
120
|
import { z as z111 } from "zod";
|
|
121
121
|
import { z as z112 } from "zod";
|
|
@@ -134,12 +134,12 @@ import { z as z124 } from "zod";
|
|
|
134
134
|
import { z as z125 } from "zod";
|
|
135
135
|
import { z as z126 } from "zod";
|
|
136
136
|
import { z as z127 } from "zod";
|
|
137
|
-
import { z as z149 } from "zod";
|
|
138
137
|
import { z as z128 } from "zod";
|
|
138
|
+
import { z as z149 } from "zod";
|
|
139
139
|
import { z as z129 } from "zod";
|
|
140
140
|
import { z as z130 } from "zod";
|
|
141
|
-
import { z as z132 } from "zod";
|
|
142
141
|
import { z as z131 } from "zod";
|
|
142
|
+
import { z as z132 } from "zod";
|
|
143
143
|
import { z as z134 } from "zod";
|
|
144
144
|
import IPCIDR from "ip-cidr";
|
|
145
145
|
import { z as z133 } from "zod";
|
|
@@ -383,27 +383,32 @@ var PostStripePortalSessionOutputSchema = z9.object({
|
|
|
383
383
|
id: z9.string(),
|
|
384
384
|
url: z9.string().nullish()
|
|
385
385
|
});
|
|
386
|
-
var
|
|
387
|
-
var
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
386
|
+
var WorkspaceRoleSchema = z10.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
387
|
+
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
388
|
+
var WorkspaceSeatType = z10.enum(["Full", "Builder", "None"]);
|
|
389
|
+
var BillingIntervalSchema = z11.enum(["daily", "monthly", "weekly", "yearly"]);
|
|
390
|
+
var PriceSchema = z11.object({
|
|
391
|
+
stripePriceId: z11.string(),
|
|
392
|
+
stripeProductId: z11.string(),
|
|
393
|
+
stripeProductName: z11.string().optional(),
|
|
394
|
+
stripeProductDescription: z11.string().optional(),
|
|
395
|
+
active: z11.boolean(),
|
|
396
|
+
amount: z11.number(),
|
|
394
397
|
interval: BillingIntervalSchema,
|
|
395
|
-
isPricePerCreator:
|
|
396
|
-
isTrial:
|
|
397
|
-
isHidden:
|
|
398
|
-
minimumSeats:
|
|
399
|
-
legacyVersion:
|
|
400
|
-
featuresSet:
|
|
401
|
-
stripeProductFeatures:
|
|
402
|
-
stripeProductAdditionalFeatures:
|
|
403
|
-
|
|
404
|
-
|
|
398
|
+
isPricePerCreator: z11.boolean().optional(),
|
|
399
|
+
isTrial: z11.boolean().optional(),
|
|
400
|
+
isHidden: z11.boolean().optional(),
|
|
401
|
+
minimumSeats: z11.number().optional(),
|
|
402
|
+
legacyVersion: z11.string().optional(),
|
|
403
|
+
featuresSet: z11.string().optional(),
|
|
404
|
+
stripeProductFeatures: z11.array(z11.string()).optional(),
|
|
405
|
+
stripeProductAdditionalFeatures: z11.array(z11.string()).optional(),
|
|
406
|
+
seatType: WorkspaceSeatType.optional(),
|
|
407
|
+
monthlyCreditGrant: z11.number().optional()
|
|
408
|
+
});
|
|
409
|
+
var ProductCodeSchema = z12.enum(["free", "team", "company", "enterprise"]);
|
|
405
410
|
var ProductCode = ProductCodeSchema.enum;
|
|
406
|
-
var StripeSubscriptionStatusSchema =
|
|
411
|
+
var StripeSubscriptionStatusSchema = z13.enum([
|
|
407
412
|
"trialing",
|
|
408
413
|
"active",
|
|
409
414
|
"past_due",
|
|
@@ -413,80 +418,89 @@ var StripeSubscriptionStatusSchema = z12.enum([
|
|
|
413
418
|
"incomplete",
|
|
414
419
|
"unknown"
|
|
415
420
|
]);
|
|
416
|
-
var InternalStatusSchema =
|
|
417
|
-
var BillingTypeSchema =
|
|
421
|
+
var InternalStatusSchema = z13.enum(["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]);
|
|
422
|
+
var BillingTypeSchema = z13.enum(["Auto", "Invoice"]);
|
|
418
423
|
var StripeSubscriptionStatus = StripeSubscriptionStatusSchema.enum;
|
|
419
424
|
var InternalStatus = InternalStatusSchema.enum;
|
|
420
425
|
var BillingType = BillingTypeSchema.enum;
|
|
421
|
-
var Subscription =
|
|
426
|
+
var Subscription = z13.object({
|
|
422
427
|
card: nullishToOptional(CardSchema),
|
|
423
|
-
seats:
|
|
424
|
-
seatLimit:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
428
|
+
seats: z13.number(),
|
|
429
|
+
seatLimit: z13.number(),
|
|
430
|
+
monthlyCreditGrantAnchor: nullishToOptional(z13.string()),
|
|
431
|
+
monthlyCreditGrantAmount: nullishToOptional(z13.number()),
|
|
432
|
+
builderSeatLimit: z13.number().optional(),
|
|
433
|
+
fullSeatLimit: z13.number().optional(),
|
|
434
|
+
builderSeats: z13.number().optional(),
|
|
435
|
+
fullSeats: z13.number().optional(),
|
|
429
436
|
status: nullishToOptional(InternalStatusSchema),
|
|
430
437
|
subscriptionStatus: nullishToOptional(StripeSubscriptionStatusSchema),
|
|
431
438
|
internalStatus: nullishToOptional(InternalStatusSchema),
|
|
432
|
-
stripeSubscriptionId: nullishToOptional(
|
|
433
|
-
stripeCustomerId: nullishToOptional(
|
|
439
|
+
stripeSubscriptionId: nullishToOptional(z13.string()),
|
|
440
|
+
stripeCustomerId: nullishToOptional(z13.string()),
|
|
434
441
|
product: ProductCodeSchema,
|
|
435
|
-
planPriceId:
|
|
442
|
+
planPriceId: z13.string(),
|
|
436
443
|
planInterval: BillingIntervalSchema,
|
|
437
|
-
currentPeriodStart: nullishToOptional(
|
|
438
|
-
currentPeriodEnd: nullishToOptional(
|
|
439
|
-
cancelAt: nullishToOptional(
|
|
440
|
-
subscriptionStatusUpdatedAt: nullishToOptional(
|
|
444
|
+
currentPeriodStart: nullishToOptional(z13.string()),
|
|
445
|
+
currentPeriodEnd: nullishToOptional(z13.string()),
|
|
446
|
+
cancelAt: nullishToOptional(z13.string()),
|
|
447
|
+
subscriptionStatusUpdatedAt: nullishToOptional(z13.string())
|
|
441
448
|
});
|
|
442
|
-
var ForgeChatMessageSenderType =
|
|
449
|
+
var ForgeChatMessageSenderType = z14.enum([
|
|
443
450
|
"User",
|
|
444
451
|
"Agent",
|
|
445
452
|
"Developer",
|
|
446
453
|
"FunctionCallInput",
|
|
447
454
|
"FunctionCallOutput"
|
|
448
455
|
]);
|
|
449
|
-
var ForgeChatMessageSender =
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
456
|
+
var ForgeChatMessageSender = z14.discriminatedUnion("type", [
|
|
457
|
+
z14.object({ type: z14.literal(ForgeChatMessageSenderType.Values.User), userId: z14.string() }),
|
|
458
|
+
z14.object({ type: z14.literal(ForgeChatMessageSenderType.Values.Agent), persona: z14.literal("Amy") }),
|
|
459
|
+
z14.object({ type: z14.literal(ForgeChatMessageSenderType.Values.Developer) }),
|
|
460
|
+
z14.object({ type: z14.literal(ForgeChatMessageSenderType.Values.FunctionCallInput) }),
|
|
461
|
+
z14.object({ type: z14.literal(ForgeChatMessageSenderType.Values.FunctionCallOutput) })
|
|
455
462
|
]);
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
sender: ForgeChatMessageSender
|
|
464
|
-
});
|
|
465
|
-
var ForgeChatThread = z14.object({
|
|
463
|
+
var ForgeChatMessageUserScoreType = z14.enum(["Positive", "Negative"]);
|
|
464
|
+
var ForgeChatMessageUserScore = z14.object({
|
|
465
|
+
type: ForgeChatMessageUserScoreType,
|
|
466
|
+
tags: z14.string().array(),
|
|
467
|
+
comment: z14.string().optional()
|
|
468
|
+
});
|
|
469
|
+
var ForgeChatMessage = z14.object({
|
|
466
470
|
id: z14.string(),
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
userId: z14.string(),
|
|
471
|
+
threadId: z14.string(),
|
|
472
|
+
payload: z14.string(),
|
|
470
473
|
createdAt: z14.coerce.date(),
|
|
471
|
-
updatedAt: z14.coerce.date()
|
|
474
|
+
updatedAt: z14.coerce.date(),
|
|
475
|
+
opikTraceId: z14.string().optional(),
|
|
476
|
+
sender: ForgeChatMessageSender,
|
|
477
|
+
userScore: ForgeChatMessageUserScore.optional()
|
|
472
478
|
});
|
|
473
|
-
var
|
|
479
|
+
var ForgeChatThread = z15.object({
|
|
474
480
|
id: z15.string(),
|
|
481
|
+
title: z15.string(),
|
|
482
|
+
workspaceId: z15.string(),
|
|
483
|
+
userId: z15.string(),
|
|
475
484
|
createdAt: z15.coerce.date(),
|
|
476
485
|
updatedAt: z15.coerce.date()
|
|
477
486
|
});
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
|
|
487
|
+
var Entity = z16.object({
|
|
488
|
+
id: z16.string(),
|
|
489
|
+
createdAt: z16.coerce.date(),
|
|
490
|
+
updatedAt: z16.coerce.date()
|
|
491
|
+
});
|
|
492
|
+
var ObjectMeta = z17.object({
|
|
493
|
+
name: z17.string(),
|
|
494
|
+
description: z17.string().optional()
|
|
481
495
|
});
|
|
482
|
-
var CustomDomain =
|
|
483
|
-
id:
|
|
484
|
-
designSystemId:
|
|
485
|
-
state:
|
|
486
|
-
supernovaDomain:
|
|
487
|
-
customerDomain:
|
|
488
|
-
error:
|
|
489
|
-
errorCode:
|
|
496
|
+
var CustomDomain = z18.object({
|
|
497
|
+
id: z18.string(),
|
|
498
|
+
designSystemId: z18.string(),
|
|
499
|
+
state: z18.string(),
|
|
500
|
+
supernovaDomain: z18.string(),
|
|
501
|
+
customerDomain: z18.string().nullish(),
|
|
502
|
+
error: z18.string().nullish(),
|
|
503
|
+
errorCode: z18.string().nullish()
|
|
490
504
|
});
|
|
491
505
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
492
506
|
GitProviderNames2["Azure"] = "azure";
|
|
@@ -495,8 +509,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
495
509
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
496
510
|
return GitProviderNames2;
|
|
497
511
|
})(GitProviderNames || {});
|
|
498
|
-
var GitProvider =
|
|
499
|
-
var PulsarPropertyType =
|
|
512
|
+
var GitProvider = z19.nativeEnum(GitProviderNames);
|
|
513
|
+
var PulsarPropertyType = z20.enum([
|
|
500
514
|
"string",
|
|
501
515
|
"number",
|
|
502
516
|
"boolean",
|
|
@@ -509,92 +523,92 @@ var PulsarPropertyType = z19.enum([
|
|
|
509
523
|
"tokenProperties",
|
|
510
524
|
"tokenType"
|
|
511
525
|
]);
|
|
512
|
-
var PulsarBaseProperty =
|
|
513
|
-
label:
|
|
514
|
-
key:
|
|
515
|
-
description:
|
|
526
|
+
var PulsarBaseProperty = z20.object({
|
|
527
|
+
label: z20.string(),
|
|
528
|
+
key: z20.string(),
|
|
529
|
+
description: z20.string().nullish(),
|
|
516
530
|
type: PulsarPropertyType,
|
|
517
|
-
values:
|
|
518
|
-
default:
|
|
531
|
+
values: z20.array(z20.string()).nullish(),
|
|
532
|
+
default: z20.union([z20.string(), z20.boolean(), z20.number()]).nullish(),
|
|
519
533
|
// PulsarPropertyValueType //is optional?
|
|
520
|
-
inputType:
|
|
534
|
+
inputType: z20.enum(["code", "plain"]).optional(),
|
|
521
535
|
//is optional?
|
|
522
|
-
isMultiline:
|
|
536
|
+
isMultiline: z20.boolean().nullish()
|
|
523
537
|
});
|
|
524
538
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
525
|
-
category:
|
|
526
|
-
});
|
|
527
|
-
var PulsarContributionVariant =
|
|
528
|
-
key: z19.string(),
|
|
529
|
-
name: z19.string(),
|
|
530
|
-
isDefault: nullishToOptional(z19.boolean()),
|
|
531
|
-
description: nullishToOptional(z19.string()),
|
|
532
|
-
thumbnailURL: nullishToOptional(z19.string())
|
|
533
|
-
});
|
|
534
|
-
var PulsarCustomBlock = z19.object({
|
|
535
|
-
title: nullishToOptional(z19.string()),
|
|
536
|
-
key: z19.string(),
|
|
537
|
-
category: nullishToOptional(z19.string()),
|
|
538
|
-
description: nullishToOptional(z19.string()),
|
|
539
|
-
iconURL: nullishToOptional(z19.string()),
|
|
540
|
-
mode: nullishToOptional(z19.enum(["array", "block"])),
|
|
541
|
-
properties: nullishToOptional(z19.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
542
|
-
});
|
|
543
|
-
var PrimitiveValue = z20.number().or(z20.boolean()).or(z20.string());
|
|
544
|
-
var ArrayValue = z20.array(z20.string());
|
|
545
|
-
var ObjectValue = z20.record(z20.string());
|
|
546
|
-
var ExporterPropertyValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
547
|
-
var ExporterPropertyType = z20.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
548
|
-
var PropertyDefinitionBase = z20.object({
|
|
539
|
+
category: z20.string()
|
|
540
|
+
});
|
|
541
|
+
var PulsarContributionVariant = z20.object({
|
|
549
542
|
key: z20.string(),
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
543
|
+
name: z20.string(),
|
|
544
|
+
isDefault: nullishToOptional(z20.boolean()),
|
|
545
|
+
description: nullishToOptional(z20.string()),
|
|
546
|
+
thumbnailURL: nullishToOptional(z20.string())
|
|
554
547
|
});
|
|
555
|
-
var
|
|
556
|
-
|
|
557
|
-
|
|
548
|
+
var PulsarCustomBlock = z20.object({
|
|
549
|
+
title: nullishToOptional(z20.string()),
|
|
550
|
+
key: z20.string(),
|
|
551
|
+
category: nullishToOptional(z20.string()),
|
|
552
|
+
description: nullishToOptional(z20.string()),
|
|
553
|
+
iconURL: nullishToOptional(z20.string()),
|
|
554
|
+
mode: nullishToOptional(z20.enum(["array", "block"])),
|
|
555
|
+
properties: nullishToOptional(z20.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
556
|
+
});
|
|
557
|
+
var PrimitiveValue = z21.number().or(z21.boolean()).or(z21.string());
|
|
558
|
+
var ArrayValue = z21.array(z21.string());
|
|
559
|
+
var ObjectValue = z21.record(z21.string());
|
|
560
|
+
var ExporterPropertyValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
561
|
+
var ExporterPropertyType = z21.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
562
|
+
var PropertyDefinitionBase = z21.object({
|
|
563
|
+
key: z21.string(),
|
|
564
|
+
title: z21.string(),
|
|
565
|
+
description: z21.string(),
|
|
566
|
+
category: z21.string().optional(),
|
|
567
|
+
dependsOn: z21.record(z21.boolean()).optional()
|
|
568
|
+
});
|
|
569
|
+
var ExporterPropertyDefinitionEnumOption = z21.object({
|
|
570
|
+
label: z21.string(),
|
|
571
|
+
description: z21.string()
|
|
558
572
|
});
|
|
559
573
|
var ExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
|
|
560
|
-
type:
|
|
561
|
-
options:
|
|
562
|
-
default:
|
|
574
|
+
type: z21.literal(ExporterPropertyType.Enum.Enum),
|
|
575
|
+
options: z21.record(ExporterPropertyDefinitionEnumOption),
|
|
576
|
+
default: z21.string()
|
|
563
577
|
});
|
|
564
578
|
var ExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
|
|
565
|
-
type:
|
|
566
|
-
default:
|
|
579
|
+
type: z21.literal(ExporterPropertyType.Enum.Boolean),
|
|
580
|
+
default: z21.boolean()
|
|
567
581
|
});
|
|
568
582
|
var ExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
|
|
569
|
-
type:
|
|
570
|
-
default:
|
|
571
|
-
isMultiline:
|
|
583
|
+
type: z21.literal(ExporterPropertyType.Enum.String),
|
|
584
|
+
default: z21.string(),
|
|
585
|
+
isMultiline: z21.boolean().optional()
|
|
572
586
|
});
|
|
573
587
|
var ExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
|
|
574
|
-
type:
|
|
575
|
-
default:
|
|
588
|
+
type: z21.literal(ExporterPropertyType.Enum.Number),
|
|
589
|
+
default: z21.number()
|
|
576
590
|
});
|
|
577
591
|
var ExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
|
|
578
|
-
type:
|
|
592
|
+
type: z21.literal(ExporterPropertyType.Enum.Array),
|
|
579
593
|
default: ArrayValue
|
|
580
594
|
});
|
|
581
595
|
var ExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
|
|
582
|
-
type:
|
|
596
|
+
type: z21.literal(ExporterPropertyType.Enum.Object),
|
|
583
597
|
default: ObjectValue,
|
|
584
|
-
allowedKeys:
|
|
585
|
-
options:
|
|
586
|
-
type:
|
|
598
|
+
allowedKeys: z21.object({
|
|
599
|
+
options: z21.string().array(),
|
|
600
|
+
type: z21.string()
|
|
587
601
|
}).optional(),
|
|
588
|
-
allowedValues:
|
|
589
|
-
type:
|
|
602
|
+
allowedValues: z21.object({
|
|
603
|
+
type: z21.string()
|
|
590
604
|
}).optional()
|
|
591
605
|
});
|
|
592
606
|
var ExporterPropertyDefinitionCode = PropertyDefinitionBase.extend({
|
|
593
|
-
type:
|
|
594
|
-
default:
|
|
595
|
-
language:
|
|
607
|
+
type: z21.literal(ExporterPropertyType.Enum.Code),
|
|
608
|
+
default: z21.string(),
|
|
609
|
+
language: z21.string()
|
|
596
610
|
});
|
|
597
|
-
var ExporterPropertyDefinition =
|
|
611
|
+
var ExporterPropertyDefinition = z21.discriminatedUnion("type", [
|
|
598
612
|
ExporterPropertyDefinitionEnum,
|
|
599
613
|
ExporterPropertyDefinitionBoolean,
|
|
600
614
|
ExporterPropertyDefinitionString,
|
|
@@ -603,104 +617,104 @@ var ExporterPropertyDefinition = z20.discriminatedUnion("type", [
|
|
|
603
617
|
ExporterPropertyDefinitionObject,
|
|
604
618
|
ExporterPropertyDefinitionCode
|
|
605
619
|
]);
|
|
606
|
-
var ExporterPropertyValueMap =
|
|
607
|
-
var ExporterType =
|
|
608
|
-
var ExporterSource =
|
|
609
|
-
var ExporterTag =
|
|
610
|
-
var ExporterPulsarDetails =
|
|
611
|
-
description:
|
|
612
|
-
version:
|
|
613
|
-
routingVersion: nullishToOptional(
|
|
614
|
-
author: nullishToOptional(
|
|
615
|
-
organization: nullishToOptional(
|
|
616
|
-
homepage: nullishToOptional(
|
|
617
|
-
readme: nullishToOptional(
|
|
618
|
-
tags: nullishToOptional(
|
|
619
|
-
packageId: nullishToOptional(
|
|
620
|
-
iconURL: nullishToOptional(
|
|
621
|
-
configurationProperties: nullishToOptional(
|
|
622
|
-
customBlocks: nullishToOptional(
|
|
623
|
-
blockVariants: nullishToOptional(
|
|
620
|
+
var ExporterPropertyValueMap = z21.record(ExporterPropertyValue);
|
|
621
|
+
var ExporterType = z22.enum(["code", "documentation"]);
|
|
622
|
+
var ExporterSource = z22.enum(["git", "upload"]);
|
|
623
|
+
var ExporterTag = z22.string();
|
|
624
|
+
var ExporterPulsarDetails = z22.object({
|
|
625
|
+
description: z22.string(),
|
|
626
|
+
version: z22.string(),
|
|
627
|
+
routingVersion: nullishToOptional(z22.string()),
|
|
628
|
+
author: nullishToOptional(z22.string()),
|
|
629
|
+
organization: nullishToOptional(z22.string()),
|
|
630
|
+
homepage: nullishToOptional(z22.string()),
|
|
631
|
+
readme: nullishToOptional(z22.string()),
|
|
632
|
+
tags: nullishToOptional(z22.array(ExporterTag)).default([]),
|
|
633
|
+
packageId: nullishToOptional(z22.string().max(255)),
|
|
634
|
+
iconURL: nullishToOptional(z22.string()),
|
|
635
|
+
configurationProperties: nullishToOptional(z22.array(PulsarContributionConfigurationProperty)).default([]),
|
|
636
|
+
customBlocks: nullishToOptional(z22.array(PulsarCustomBlock)).default([]),
|
|
637
|
+
blockVariants: nullishToOptional(z22.record(z22.string(), z22.array(PulsarContributionVariant))).default({}),
|
|
624
638
|
properties: nullishToOptional(ExporterPropertyDefinition.array()),
|
|
625
|
-
usesBrands: nullishToOptional(
|
|
626
|
-
usesThemes: nullishToOptional(
|
|
627
|
-
usesLocale: nullishToOptional(
|
|
639
|
+
usesBrands: nullishToOptional(z22.boolean()).default(false),
|
|
640
|
+
usesThemes: nullishToOptional(z22.boolean()).default(false),
|
|
641
|
+
usesLocale: nullishToOptional(z22.boolean()).default(false)
|
|
628
642
|
});
|
|
629
643
|
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
630
644
|
source: ExporterSource,
|
|
631
645
|
gitProvider: nullishToOptional(GitProvider),
|
|
632
|
-
gitUrl: nullishToOptional(
|
|
633
|
-
gitBranch: nullishToOptional(
|
|
634
|
-
gitDirectory: nullishToOptional(
|
|
635
|
-
});
|
|
636
|
-
var Exporter =
|
|
637
|
-
id:
|
|
638
|
-
createdAt:
|
|
639
|
-
name:
|
|
640
|
-
isPrivate:
|
|
646
|
+
gitUrl: nullishToOptional(z22.string()),
|
|
647
|
+
gitBranch: nullishToOptional(z22.string()),
|
|
648
|
+
gitDirectory: nullishToOptional(z22.string())
|
|
649
|
+
});
|
|
650
|
+
var Exporter = z22.object({
|
|
651
|
+
id: z22.string(),
|
|
652
|
+
createdAt: z22.coerce.date(),
|
|
653
|
+
name: z22.string(),
|
|
654
|
+
isPrivate: z22.boolean(),
|
|
641
655
|
details: ExporterDetails,
|
|
642
656
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
643
|
-
storagePath: nullishToOptional(
|
|
657
|
+
storagePath: nullishToOptional(z22.string()).default(""),
|
|
644
658
|
properties: nullishToOptional(ExporterPropertyDefinition.array()),
|
|
645
|
-
isDeprecated:
|
|
646
|
-
deprecationNote: nullishToOptional(
|
|
647
|
-
replacementExporterId: nullishToOptional(
|
|
648
|
-
});
|
|
649
|
-
var AssetDynamoRecord = z22.object({
|
|
650
|
-
path: z22.string(),
|
|
651
|
-
id: z22.string(),
|
|
652
|
-
designSystemId: z22.string(),
|
|
653
|
-
expiresAt: z22.number()
|
|
659
|
+
isDeprecated: z22.boolean().default(false),
|
|
660
|
+
deprecationNote: nullishToOptional(z22.string()),
|
|
661
|
+
replacementExporterId: nullishToOptional(z22.string())
|
|
654
662
|
});
|
|
655
|
-
var
|
|
663
|
+
var AssetDynamoRecord = z23.object({
|
|
664
|
+
path: z23.string(),
|
|
656
665
|
id: z23.string(),
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
666
|
+
designSystemId: z23.string(),
|
|
667
|
+
expiresAt: z23.number()
|
|
668
|
+
});
|
|
669
|
+
var AssetReference = z24.object({
|
|
670
|
+
id: z24.string(),
|
|
671
|
+
designSystemVersionId: z24.string(),
|
|
672
|
+
assetId: z24.string(),
|
|
673
|
+
persistentId: z24.string()
|
|
674
|
+
});
|
|
675
|
+
var AssetValue = z25.object({});
|
|
676
|
+
var AssetType = z26.enum(["Image", "Font", "Generic"]);
|
|
677
|
+
var AssetScope = z26.enum([
|
|
664
678
|
"DocumentationFrame",
|
|
665
679
|
"ComponentThumbnail",
|
|
666
680
|
"DesignSystem",
|
|
667
681
|
"Documentation",
|
|
668
682
|
"DocumentationEmbed"
|
|
669
683
|
]);
|
|
670
|
-
var AssetFontProperties =
|
|
671
|
-
family:
|
|
672
|
-
subfamily:
|
|
684
|
+
var AssetFontProperties = z26.object({
|
|
685
|
+
family: z26.string(),
|
|
686
|
+
subfamily: z26.string()
|
|
673
687
|
});
|
|
674
|
-
var AssetProperties =
|
|
675
|
-
|
|
676
|
-
fontProperties:
|
|
688
|
+
var AssetProperties = z26.union([
|
|
689
|
+
z26.object({
|
|
690
|
+
fontProperties: z26.array(AssetFontProperties)
|
|
677
691
|
}),
|
|
678
|
-
|
|
679
|
-
width:
|
|
680
|
-
height:
|
|
692
|
+
z26.object({
|
|
693
|
+
width: z26.number(),
|
|
694
|
+
height: z26.number()
|
|
681
695
|
})
|
|
682
696
|
]);
|
|
683
|
-
var AssetOrigin =
|
|
684
|
-
originKey:
|
|
697
|
+
var AssetOrigin = z26.object({
|
|
698
|
+
originKey: z26.string()
|
|
685
699
|
});
|
|
686
|
-
var Asset =
|
|
687
|
-
id:
|
|
688
|
-
designSystemId:
|
|
700
|
+
var Asset = z26.object({
|
|
701
|
+
id: z26.string(),
|
|
702
|
+
designSystemId: z26.string().nullish(),
|
|
689
703
|
type: AssetType,
|
|
690
|
-
originalFileName:
|
|
691
|
-
filePath:
|
|
704
|
+
originalFileName: z26.string().nullish(),
|
|
705
|
+
filePath: z26.string(),
|
|
692
706
|
scope: AssetScope,
|
|
693
707
|
properties: AssetProperties.nullish(),
|
|
694
|
-
originKey:
|
|
695
|
-
createdAt:
|
|
696
|
-
pendingUpload:
|
|
697
|
-
size:
|
|
698
|
-
checksum:
|
|
708
|
+
originKey: z26.string().optional(),
|
|
709
|
+
createdAt: z26.coerce.date().optional(),
|
|
710
|
+
pendingUpload: z26.boolean().optional(),
|
|
711
|
+
size: z26.number().int().positive().optional(),
|
|
712
|
+
checksum: z26.string().optional()
|
|
699
713
|
});
|
|
700
714
|
var ResolvedAsset = Asset.extend({
|
|
701
|
-
url:
|
|
715
|
+
url: z26.string()
|
|
702
716
|
});
|
|
703
|
-
var CodeComponentResolvedTypeKind =
|
|
717
|
+
var CodeComponentResolvedTypeKind = z27.enum([
|
|
704
718
|
"string",
|
|
705
719
|
"number",
|
|
706
720
|
"numberLiteral",
|
|
@@ -715,78 +729,78 @@ var CodeComponentResolvedTypeKind = z26.enum([
|
|
|
715
729
|
"undefined",
|
|
716
730
|
"any"
|
|
717
731
|
]);
|
|
718
|
-
var CodeComponentResolvedType =
|
|
719
|
-
() =>
|
|
732
|
+
var CodeComponentResolvedType = z27.lazy(
|
|
733
|
+
() => z27.object({
|
|
720
734
|
kind: CodeComponentResolvedTypeKind,
|
|
721
|
-
raw:
|
|
722
|
-
types:
|
|
723
|
-
isArray:
|
|
735
|
+
raw: z27.string().optional(),
|
|
736
|
+
types: z27.array(CodeComponentResolvedType).optional(),
|
|
737
|
+
isArray: z27.boolean().optional()
|
|
724
738
|
})
|
|
725
739
|
);
|
|
726
|
-
var CodeComponentParentType =
|
|
727
|
-
fileName:
|
|
728
|
-
name:
|
|
729
|
-
});
|
|
730
|
-
var CodeComponentProperty =
|
|
731
|
-
defaultValue:
|
|
732
|
-
name:
|
|
733
|
-
required:
|
|
740
|
+
var CodeComponentParentType = z27.object({
|
|
741
|
+
fileName: z27.string(),
|
|
742
|
+
name: z27.string()
|
|
743
|
+
});
|
|
744
|
+
var CodeComponentProperty = z27.object({
|
|
745
|
+
defaultValue: z27.string().optional(),
|
|
746
|
+
name: z27.string(),
|
|
747
|
+
required: z27.boolean(),
|
|
734
748
|
type: CodeComponentResolvedType,
|
|
735
|
-
declarations:
|
|
736
|
-
tags:
|
|
737
|
-
description:
|
|
738
|
-
});
|
|
739
|
-
var CodeComponent =
|
|
740
|
-
id:
|
|
741
|
-
designSystemVersionId:
|
|
742
|
-
persistentId:
|
|
743
|
-
createdAt:
|
|
744
|
-
updatedAt:
|
|
745
|
-
exportName:
|
|
746
|
-
componentPath:
|
|
747
|
-
description:
|
|
748
|
-
properties:
|
|
749
|
-
tags:
|
|
750
|
-
});
|
|
751
|
-
var CodeComponentUpsertResponse =
|
|
752
|
-
created:
|
|
753
|
-
updated:
|
|
754
|
-
deleted:
|
|
755
|
-
});
|
|
756
|
-
var RegistryType =
|
|
757
|
-
var Registry =
|
|
749
|
+
declarations: z27.array(CodeComponentParentType).optional(),
|
|
750
|
+
tags: z27.record(z27.string(), z27.string()).optional(),
|
|
751
|
+
description: z27.string()
|
|
752
|
+
});
|
|
753
|
+
var CodeComponent = z27.object({
|
|
754
|
+
id: z27.string(),
|
|
755
|
+
designSystemVersionId: z27.string(),
|
|
756
|
+
persistentId: z27.string(),
|
|
757
|
+
createdAt: z27.coerce.date(),
|
|
758
|
+
updatedAt: z27.coerce.date(),
|
|
759
|
+
exportName: z27.string(),
|
|
760
|
+
componentPath: z27.string(),
|
|
761
|
+
description: z27.string(),
|
|
762
|
+
properties: z27.record(z27.string(), CodeComponentProperty),
|
|
763
|
+
tags: z27.record(z27.string(), z27.string()).nullable()
|
|
764
|
+
});
|
|
765
|
+
var CodeComponentUpsertResponse = z27.object({
|
|
766
|
+
created: z27.number().nonnegative(),
|
|
767
|
+
updated: z27.number().nonnegative(),
|
|
768
|
+
deleted: z27.number().nonnegative()
|
|
769
|
+
});
|
|
770
|
+
var RegistryType = z27.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
|
|
771
|
+
var Registry = z27.object({
|
|
758
772
|
type: RegistryType,
|
|
759
|
-
url:
|
|
760
|
-
accessToken:
|
|
761
|
-
scope:
|
|
762
|
-
authConfig:
|
|
763
|
-
});
|
|
764
|
-
var DependencyDefinition =
|
|
765
|
-
name:
|
|
766
|
-
version:
|
|
767
|
-
});
|
|
768
|
-
var AnalyzeCodeComponentsInPackage =
|
|
769
|
-
designSystemId:
|
|
770
|
-
versionId:
|
|
773
|
+
url: z27.string().optional(),
|
|
774
|
+
accessToken: z27.string().optional(),
|
|
775
|
+
scope: z27.string(),
|
|
776
|
+
authConfig: z27.record(z27.string()).optional()
|
|
777
|
+
});
|
|
778
|
+
var DependencyDefinition = z27.object({
|
|
779
|
+
name: z27.string(),
|
|
780
|
+
version: z27.string().optional()
|
|
781
|
+
});
|
|
782
|
+
var AnalyzeCodeComponentsInPackage = z27.object({
|
|
783
|
+
designSystemId: z27.string(),
|
|
784
|
+
versionId: z27.string(),
|
|
771
785
|
mainPackage: DependencyDefinition,
|
|
772
|
-
dependencies:
|
|
786
|
+
dependencies: z27.array(DependencyDefinition).optional(),
|
|
773
787
|
registries: Registry.array(),
|
|
774
|
-
userAccessToken:
|
|
775
|
-
});
|
|
776
|
-
var FigmaFileDownloadScope =
|
|
777
|
-
styles:
|
|
778
|
-
components:
|
|
779
|
-
componentSets:
|
|
780
|
-
currentVersion:
|
|
781
|
-
publishedVersion:
|
|
782
|
-
downloadChunkSize:
|
|
783
|
-
maxFileDepth:
|
|
784
|
-
});
|
|
785
|
-
var FigmaFileAccessData =
|
|
786
|
-
accessToken:
|
|
787
|
-
accessTokenType:
|
|
788
|
-
});
|
|
789
|
-
var ImportWarningType =
|
|
788
|
+
userAccessToken: z27.string()
|
|
789
|
+
});
|
|
790
|
+
var FigmaFileDownloadScope = z28.object({
|
|
791
|
+
styles: z28.boolean(),
|
|
792
|
+
components: z28.boolean(),
|
|
793
|
+
componentSets: z28.boolean(),
|
|
794
|
+
currentVersion: z28.literal("__latest__").nullable(),
|
|
795
|
+
publishedVersion: z28.string().nullable(),
|
|
796
|
+
downloadChunkSize: z28.number().optional(),
|
|
797
|
+
maxFileDepth: z28.number().optional()
|
|
798
|
+
});
|
|
799
|
+
var FigmaFileAccessData = z28.object({
|
|
800
|
+
accessToken: z28.string(),
|
|
801
|
+
accessTokenType: z28.enum(["OAuth2", "PAT"]).default("OAuth2")
|
|
802
|
+
});
|
|
803
|
+
var ImportWarningType = z29.enum([
|
|
790
804
|
"NoVersionFound",
|
|
791
805
|
"UnsupportedFill",
|
|
792
806
|
"UnsupportedStroke",
|
|
@@ -802,123 +816,123 @@ var ImportWarningType = z28.enum([
|
|
|
802
816
|
"NoUnpublishedStyles",
|
|
803
817
|
"ReferenceResolutionFailed"
|
|
804
818
|
]);
|
|
805
|
-
var ImportWarning =
|
|
819
|
+
var ImportWarning = z29.object({
|
|
806
820
|
warningType: ImportWarningType,
|
|
807
|
-
componentId:
|
|
808
|
-
componentName:
|
|
809
|
-
styleId:
|
|
810
|
-
styleName:
|
|
811
|
-
unsupportedStyleValueType:
|
|
812
|
-
referenceId:
|
|
821
|
+
componentId: z29.string().optional(),
|
|
822
|
+
componentName: z29.string().optional(),
|
|
823
|
+
styleId: z29.string().optional(),
|
|
824
|
+
styleName: z29.string().optional(),
|
|
825
|
+
unsupportedStyleValueType: z29.string().optional(),
|
|
826
|
+
referenceId: z29.string().optional()
|
|
813
827
|
});
|
|
814
|
-
var TokenDataAliasSchema =
|
|
815
|
-
aliasTo:
|
|
828
|
+
var TokenDataAliasSchema = z30.object({
|
|
829
|
+
aliasTo: z30.string().optional().nullable().transform((v) => v ?? void 0)
|
|
816
830
|
});
|
|
817
831
|
function tokenAliasOrValue(value) {
|
|
818
832
|
return TokenDataAliasSchema.extend({
|
|
819
833
|
value: value.optional().nullable().transform((v) => v ?? void 0)
|
|
820
834
|
});
|
|
821
835
|
}
|
|
822
|
-
var DimensionUnit =
|
|
823
|
-
var DimensionValue =
|
|
836
|
+
var DimensionUnit = z31.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
837
|
+
var DimensionValue = z31.object({
|
|
824
838
|
unit: DimensionUnit,
|
|
825
|
-
measure:
|
|
839
|
+
measure: z31.number()
|
|
826
840
|
});
|
|
827
841
|
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
828
|
-
var BlurType =
|
|
829
|
-
var BlurValue =
|
|
842
|
+
var BlurType = z32.enum(["Layer", "Background"]);
|
|
843
|
+
var BlurValue = z32.object({
|
|
830
844
|
type: BlurType,
|
|
831
845
|
radius: DimensionTokenData
|
|
832
846
|
});
|
|
833
847
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
834
|
-
var BorderRadiusUnit =
|
|
835
|
-
var BorderRadiusValue =
|
|
848
|
+
var BorderRadiusUnit = z33.enum(["Pixels", "Rem", "Percent"]);
|
|
849
|
+
var BorderRadiusValue = z33.object({
|
|
836
850
|
unit: DimensionUnit,
|
|
837
|
-
measure:
|
|
851
|
+
measure: z33.number()
|
|
838
852
|
});
|
|
839
853
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
840
|
-
var BorderWidthUnit =
|
|
841
|
-
var BorderWidthValue =
|
|
854
|
+
var BorderWidthUnit = z34.enum(["Pixels"]);
|
|
855
|
+
var BorderWidthValue = z34.object({
|
|
842
856
|
unit: DimensionUnit,
|
|
843
|
-
measure:
|
|
857
|
+
measure: z34.number()
|
|
844
858
|
});
|
|
845
859
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
846
|
-
var OpacityValue =
|
|
860
|
+
var OpacityValue = z35.object({
|
|
847
861
|
unit: DimensionUnit,
|
|
848
|
-
measure:
|
|
862
|
+
measure: z35.number()
|
|
849
863
|
});
|
|
850
864
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
851
|
-
var ColorValue =
|
|
865
|
+
var ColorValue = z36.object({
|
|
852
866
|
opacity: OpacityTokenData,
|
|
853
|
-
color:
|
|
867
|
+
color: z36.string().or(TokenDataAliasSchema)
|
|
854
868
|
});
|
|
855
869
|
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
856
|
-
var BorderPosition =
|
|
857
|
-
var BorderStyle =
|
|
858
|
-
var BorderValue =
|
|
870
|
+
var BorderPosition = z37.enum(["Inside", "Center", "Outside"]);
|
|
871
|
+
var BorderStyle = z37.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
872
|
+
var BorderValue = z37.object({
|
|
859
873
|
color: ColorTokenData,
|
|
860
874
|
width: BorderWidthTokenData,
|
|
861
875
|
position: BorderPosition,
|
|
862
876
|
style: BorderStyle.optional()
|
|
863
877
|
});
|
|
864
878
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
865
|
-
var FigmaComponentPropertyType =
|
|
866
|
-
var FigmaComponentPropertyOrigin =
|
|
867
|
-
id:
|
|
879
|
+
var FigmaComponentPropertyType = z38.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
880
|
+
var FigmaComponentPropertyOrigin = z38.object({
|
|
881
|
+
id: z38.string()
|
|
868
882
|
});
|
|
869
|
-
var FigmaComponentPropertyBase =
|
|
870
|
-
id:
|
|
871
|
-
name:
|
|
883
|
+
var FigmaComponentPropertyBase = z38.object({
|
|
884
|
+
id: z38.string(),
|
|
885
|
+
name: z38.string()
|
|
872
886
|
});
|
|
873
|
-
var FigmaComponentInstancePreview =
|
|
874
|
-
componentName:
|
|
875
|
-
componentSetName:
|
|
876
|
-
isRemote:
|
|
887
|
+
var FigmaComponentInstancePreview = z38.object({
|
|
888
|
+
componentName: z38.string(),
|
|
889
|
+
componentSetName: z38.string().optional(),
|
|
890
|
+
isRemote: z38.boolean()
|
|
877
891
|
});
|
|
878
892
|
var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
|
|
879
|
-
type:
|
|
880
|
-
defaultValue:
|
|
893
|
+
type: z38.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
894
|
+
defaultValue: z38.boolean()
|
|
881
895
|
});
|
|
882
896
|
var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
|
|
883
|
-
type:
|
|
884
|
-
defaultValue:
|
|
897
|
+
type: z38.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
898
|
+
defaultValue: z38.string(),
|
|
885
899
|
defaultValuePreview: FigmaComponentInstancePreview.optional()
|
|
886
900
|
});
|
|
887
901
|
var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
|
|
888
|
-
type:
|
|
889
|
-
defaultValue:
|
|
890
|
-
options:
|
|
902
|
+
type: z38.literal(FigmaComponentPropertyType.enum.Variant),
|
|
903
|
+
defaultValue: z38.string(),
|
|
904
|
+
options: z38.array(z38.string())
|
|
891
905
|
});
|
|
892
906
|
var FigmaComponentTextProperty = FigmaComponentPropertyBase.extend({
|
|
893
|
-
type:
|
|
894
|
-
id:
|
|
895
|
-
defaultValue:
|
|
907
|
+
type: z38.literal(FigmaComponentPropertyType.enum.Text),
|
|
908
|
+
id: z38.string(),
|
|
909
|
+
defaultValue: z38.string()
|
|
896
910
|
});
|
|
897
|
-
var FigmaComponentProperty =
|
|
911
|
+
var FigmaComponentProperty = z38.discriminatedUnion("type", [
|
|
898
912
|
FigmaComponentBooleanProperty,
|
|
899
913
|
FigmaComponentInstanceSwapProperty,
|
|
900
914
|
FigmaComponentTextProperty,
|
|
901
915
|
FigmaComponentVariantProperty
|
|
902
916
|
]);
|
|
903
|
-
var FigmaComponentPropertyMap =
|
|
904
|
-
var ComponentElementData =
|
|
905
|
-
value:
|
|
906
|
-
thumbnailImage:
|
|
907
|
-
value:
|
|
908
|
-
url:
|
|
909
|
-
assetId:
|
|
917
|
+
var FigmaComponentPropertyMap = z38.record(z38.string(), FigmaComponentProperty);
|
|
918
|
+
var ComponentElementData = z39.object({
|
|
919
|
+
value: z39.object({
|
|
920
|
+
thumbnailImage: z39.object({
|
|
921
|
+
value: z39.object({
|
|
922
|
+
url: z39.string(),
|
|
923
|
+
assetId: z39.string()
|
|
910
924
|
})
|
|
911
925
|
}),
|
|
912
|
-
svg:
|
|
913
|
-
value:
|
|
914
|
-
url:
|
|
915
|
-
assetId:
|
|
926
|
+
svg: z39.object({
|
|
927
|
+
value: z39.object({
|
|
928
|
+
url: z39.string(),
|
|
929
|
+
assetId: z39.string()
|
|
916
930
|
})
|
|
917
931
|
}).optional(),
|
|
918
|
-
parentComponentPersistentId: nullishToOptional(
|
|
932
|
+
parentComponentPersistentId: nullishToOptional(z39.string()),
|
|
919
933
|
componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap),
|
|
920
|
-
variantPropertyValues: nullishToOptional(
|
|
921
|
-
renderNodeId: nullishToOptional(
|
|
934
|
+
variantPropertyValues: nullishToOptional(z39.record(z39.string())),
|
|
935
|
+
renderNodeId: nullishToOptional(z39.string())
|
|
922
936
|
})
|
|
923
937
|
});
|
|
924
938
|
var SupernovaException = class _SupernovaException extends Error {
|
|
@@ -1057,31 +1071,31 @@ function recordToMap(record) {
|
|
|
1057
1071
|
function pickDefined(obj) {
|
|
1058
1072
|
return Object.fromEntries(Object.entries(obj).filter(([_, v]) => v !== void 0));
|
|
1059
1073
|
}
|
|
1060
|
-
var ContentLoadInstruction =
|
|
1061
|
-
from:
|
|
1062
|
-
to:
|
|
1063
|
-
authorizationHeaderKvsId:
|
|
1064
|
-
timeout:
|
|
1065
|
-
});
|
|
1066
|
-
var ContentLoaderPayload =
|
|
1067
|
-
type:
|
|
1074
|
+
var ContentLoadInstruction = z40.object({
|
|
1075
|
+
from: z40.string(),
|
|
1076
|
+
to: z40.string(),
|
|
1077
|
+
authorizationHeaderKvsId: z40.string().optional(),
|
|
1078
|
+
timeout: z40.number().optional()
|
|
1079
|
+
});
|
|
1080
|
+
var ContentLoaderPayload = z40.object({
|
|
1081
|
+
type: z40.literal("Single"),
|
|
1068
1082
|
instruction: ContentLoadInstruction
|
|
1069
1083
|
}).or(
|
|
1070
|
-
|
|
1071
|
-
type:
|
|
1072
|
-
loadingChunkSize:
|
|
1073
|
-
instructions:
|
|
1084
|
+
z40.object({
|
|
1085
|
+
type: z40.literal("Multiple"),
|
|
1086
|
+
loadingChunkSize: z40.number().optional(),
|
|
1087
|
+
instructions: z40.array(ContentLoadInstruction)
|
|
1074
1088
|
})
|
|
1075
1089
|
).or(
|
|
1076
|
-
|
|
1077
|
-
type:
|
|
1078
|
-
location:
|
|
1090
|
+
z40.object({
|
|
1091
|
+
type: z40.literal("S3"),
|
|
1092
|
+
location: z40.string()
|
|
1079
1093
|
})
|
|
1080
1094
|
);
|
|
1081
|
-
var GitInteropPulsarError =
|
|
1082
|
-
errorType:
|
|
1083
|
-
errorMessage:
|
|
1084
|
-
trace:
|
|
1095
|
+
var GitInteropPulsarError = z41.object({
|
|
1096
|
+
errorType: z41.string(),
|
|
1097
|
+
errorMessage: z41.string(),
|
|
1098
|
+
trace: z41.array(z41.string())
|
|
1085
1099
|
});
|
|
1086
1100
|
var shortPersistentIdLength = 8;
|
|
1087
1101
|
var alphanumeric = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
@@ -1721,61 +1735,61 @@ var RESERVED_SLUGS = [
|
|
|
1721
1735
|
];
|
|
1722
1736
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
1723
1737
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
1724
|
-
var ElementPropertyTypeSchema =
|
|
1725
|
-
var ElementPropertyTargetType =
|
|
1726
|
-
var ElementPropertyLinkType =
|
|
1727
|
-
var ElementPropertyImmutableType =
|
|
1738
|
+
var ElementPropertyTypeSchema = z42.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
1739
|
+
var ElementPropertyTargetType = z42.enum(["Token", "Component", "DocumentationPage"]);
|
|
1740
|
+
var ElementPropertyLinkType = z42.enum(["FigmaComponent", "DocumentationPage"]);
|
|
1741
|
+
var ElementPropertyImmutableType = z42.enum(["Collection"]);
|
|
1728
1742
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
1729
|
-
var ColorTokenInlineData =
|
|
1730
|
-
value:
|
|
1743
|
+
var ColorTokenInlineData = z42.object({
|
|
1744
|
+
value: z42.string()
|
|
1731
1745
|
});
|
|
1732
|
-
var ElementPropertyDefinitionOption =
|
|
1733
|
-
id:
|
|
1734
|
-
name:
|
|
1746
|
+
var ElementPropertyDefinitionOption = z42.object({
|
|
1747
|
+
id: z42.string(),
|
|
1748
|
+
name: z42.string(),
|
|
1735
1749
|
backgroundColor: ColorTokenInlineData.optional()
|
|
1736
1750
|
});
|
|
1737
|
-
var ElementPropertyDefinition =
|
|
1738
|
-
id:
|
|
1739
|
-
designSystemVersionId:
|
|
1740
|
-
persistentId:
|
|
1741
|
-
name:
|
|
1742
|
-
codeName:
|
|
1743
|
-
description:
|
|
1751
|
+
var ElementPropertyDefinition = z42.object({
|
|
1752
|
+
id: z42.string(),
|
|
1753
|
+
designSystemVersionId: z42.string(),
|
|
1754
|
+
persistentId: z42.string(),
|
|
1755
|
+
name: z42.string(),
|
|
1756
|
+
codeName: z42.string().regex(CODE_NAME_REGEX),
|
|
1757
|
+
description: z42.string(),
|
|
1744
1758
|
type: ElementPropertyTypeSchema,
|
|
1745
1759
|
targetElementType: ElementPropertyTargetType,
|
|
1746
|
-
options:
|
|
1760
|
+
options: z42.array(ElementPropertyDefinitionOption).optional(),
|
|
1747
1761
|
linkElementType: ElementPropertyLinkType.optional()
|
|
1748
1762
|
});
|
|
1749
1763
|
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
1750
|
-
var ElementPropertyValue =
|
|
1751
|
-
id:
|
|
1752
|
-
designSystemVersionId:
|
|
1753
|
-
targetElementPersistentId:
|
|
1754
|
-
definitionPersistentId:
|
|
1755
|
-
stringValue:
|
|
1756
|
-
numberValue:
|
|
1757
|
-
booleanValue:
|
|
1758
|
-
referenceValue:
|
|
1759
|
-
referenceValuePreview:
|
|
1760
|
-
});
|
|
1761
|
-
var Point2D =
|
|
1762
|
-
x:
|
|
1763
|
-
y:
|
|
1764
|
+
var ElementPropertyValue = z43.object({
|
|
1765
|
+
id: z43.string(),
|
|
1766
|
+
designSystemVersionId: z43.string(),
|
|
1767
|
+
targetElementPersistentId: z43.string(),
|
|
1768
|
+
definitionPersistentId: z43.string(),
|
|
1769
|
+
stringValue: z43.string().nullish(),
|
|
1770
|
+
numberValue: z43.number().nullish(),
|
|
1771
|
+
booleanValue: z43.boolean().nullish(),
|
|
1772
|
+
referenceValue: z43.string().nullish(),
|
|
1773
|
+
referenceValuePreview: z43.string().optional()
|
|
1774
|
+
});
|
|
1775
|
+
var Point2D = z44.object({
|
|
1776
|
+
x: z44.number(),
|
|
1777
|
+
y: z44.number()
|
|
1764
1778
|
});
|
|
1765
1779
|
var nullSize = { height: -1, width: -1 };
|
|
1766
1780
|
function isNullSize(size) {
|
|
1767
1781
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
1768
1782
|
}
|
|
1769
|
-
var Size =
|
|
1770
|
-
width:
|
|
1771
|
-
height:
|
|
1783
|
+
var Size = z45.object({
|
|
1784
|
+
width: z45.number().nullish().transform((v) => v ?? nullSize.width),
|
|
1785
|
+
height: z45.number().nullish().transform((v) => v ?? nullSize.height)
|
|
1772
1786
|
});
|
|
1773
1787
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
1774
1788
|
if (!v) return void 0;
|
|
1775
1789
|
if (isNullSize(v)) return void 0;
|
|
1776
1790
|
return v;
|
|
1777
1791
|
});
|
|
1778
|
-
var DesignTokenType =
|
|
1792
|
+
var DesignTokenType = z46.enum([
|
|
1779
1793
|
"Color",
|
|
1780
1794
|
"Border",
|
|
1781
1795
|
"Gradient",
|
|
@@ -1806,7 +1820,7 @@ var DesignTokenType = z45.enum([
|
|
|
1806
1820
|
]);
|
|
1807
1821
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
1808
1822
|
var DesignElementType = DesignTokenType.or(
|
|
1809
|
-
|
|
1823
|
+
z46.enum([
|
|
1810
1824
|
"Component",
|
|
1811
1825
|
"Theme",
|
|
1812
1826
|
"Documentation",
|
|
@@ -1818,7 +1832,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
1818
1832
|
"PageBlock"
|
|
1819
1833
|
])
|
|
1820
1834
|
);
|
|
1821
|
-
var DesignElementCategory =
|
|
1835
|
+
var DesignElementCategory = z46.enum([
|
|
1822
1836
|
"Token",
|
|
1823
1837
|
"Component",
|
|
1824
1838
|
"DesignSystemComponent",
|
|
@@ -1826,38 +1840,38 @@ var DesignElementCategory = z45.enum([
|
|
|
1826
1840
|
"Theme",
|
|
1827
1841
|
"PageBlock"
|
|
1828
1842
|
]);
|
|
1829
|
-
var DesignSystemElementExportProps =
|
|
1830
|
-
isAsset:
|
|
1831
|
-
codeName:
|
|
1832
|
-
});
|
|
1833
|
-
var ShallowDesignElement =
|
|
1834
|
-
id:
|
|
1835
|
-
persistentId:
|
|
1836
|
-
designSystemVersionId:
|
|
1843
|
+
var DesignSystemElementExportProps = z46.object({
|
|
1844
|
+
isAsset: z46.boolean().nullish().transform((v) => v ?? false),
|
|
1845
|
+
codeName: z46.string().nullish()
|
|
1846
|
+
});
|
|
1847
|
+
var ShallowDesignElement = z46.object({
|
|
1848
|
+
id: z46.string(),
|
|
1849
|
+
persistentId: z46.string(),
|
|
1850
|
+
designSystemVersionId: z46.string(),
|
|
1837
1851
|
type: DesignElementType,
|
|
1838
|
-
brandPersistentId:
|
|
1839
|
-
collectionPersistentId:
|
|
1840
|
-
parentPersistentId:
|
|
1841
|
-
shortPersistentId:
|
|
1852
|
+
brandPersistentId: z46.string().optional(),
|
|
1853
|
+
collectionPersistentId: z46.string().optional(),
|
|
1854
|
+
parentPersistentId: z46.string().optional(),
|
|
1855
|
+
shortPersistentId: z46.string().optional(),
|
|
1842
1856
|
childType: DesignElementType.optional(),
|
|
1843
|
-
sortOrder:
|
|
1844
|
-
origin:
|
|
1845
|
-
createdAt:
|
|
1846
|
-
updatedAt:
|
|
1857
|
+
sortOrder: z46.number(),
|
|
1858
|
+
origin: z46.record(z46.any()).optional(),
|
|
1859
|
+
createdAt: z46.coerce.date(),
|
|
1860
|
+
updatedAt: z46.coerce.date()
|
|
1847
1861
|
});
|
|
1848
1862
|
var DesignElement = ShallowDesignElement.extend({
|
|
1849
1863
|
meta: ObjectMeta,
|
|
1850
|
-
slug:
|
|
1851
|
-
userSlug:
|
|
1864
|
+
slug: z46.string().optional(),
|
|
1865
|
+
userSlug: z46.string().optional(),
|
|
1852
1866
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
1853
|
-
data:
|
|
1854
|
-
origin:
|
|
1867
|
+
data: z46.record(z46.any()),
|
|
1868
|
+
origin: z46.record(z46.any()).optional()
|
|
1855
1869
|
});
|
|
1856
1870
|
var HierarchicalElements = DesignTokenType.or(
|
|
1857
|
-
|
|
1871
|
+
z46.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
1858
1872
|
);
|
|
1859
|
-
var PageBlockCalloutType =
|
|
1860
|
-
var PageBlockTypeV1 =
|
|
1873
|
+
var PageBlockCalloutType = z47.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
1874
|
+
var PageBlockTypeV1 = z47.enum([
|
|
1861
1875
|
"Text",
|
|
1862
1876
|
"Heading",
|
|
1863
1877
|
"Code",
|
|
@@ -1896,7 +1910,7 @@ var PageBlockTypeV1 = z46.enum([
|
|
|
1896
1910
|
"FigmaComponentPropsTable",
|
|
1897
1911
|
"Files"
|
|
1898
1912
|
]);
|
|
1899
|
-
var PageBlockCodeLanguage =
|
|
1913
|
+
var PageBlockCodeLanguage = z47.enum([
|
|
1900
1914
|
"Angular",
|
|
1901
1915
|
"Bash",
|
|
1902
1916
|
"C",
|
|
@@ -1930,241 +1944,241 @@ var PageBlockCodeLanguage = z46.enum([
|
|
|
1930
1944
|
"XML",
|
|
1931
1945
|
"YAML"
|
|
1932
1946
|
]);
|
|
1933
|
-
var PageBlockAlignment =
|
|
1934
|
-
var PageBlockThemeType =
|
|
1935
|
-
var PageBlockTokenNameFormat =
|
|
1936
|
-
var PageBlockAssetType =
|
|
1937
|
-
var PageBlockTilesAlignment =
|
|
1938
|
-
var PageBlockTilesLayout =
|
|
1939
|
-
var PageBlockTheme =
|
|
1940
|
-
themeIds:
|
|
1947
|
+
var PageBlockAlignment = z47.enum(["Left", "Center", "Stretch", "Right"]);
|
|
1948
|
+
var PageBlockThemeType = z47.enum(["Override", "Comparison"]);
|
|
1949
|
+
var PageBlockTokenNameFormat = z47.enum(["Name", "GroupAndName", "FullPath", "CustomProperty"]);
|
|
1950
|
+
var PageBlockAssetType = z47.enum(["image", "figmaFrame"]);
|
|
1951
|
+
var PageBlockTilesAlignment = z47.enum(["Center", "FrameHeight"]);
|
|
1952
|
+
var PageBlockTilesLayout = z47.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
1953
|
+
var PageBlockTheme = z47.object({
|
|
1954
|
+
themeIds: z47.array(z47.string()),
|
|
1941
1955
|
type: PageBlockThemeType
|
|
1942
1956
|
});
|
|
1943
|
-
var PageBlockSwatch =
|
|
1944
|
-
id:
|
|
1945
|
-
selectedThemeIds:
|
|
1946
|
-
});
|
|
1947
|
-
var PageBlockUrlPreview =
|
|
1948
|
-
title: nullishToOptional(
|
|
1949
|
-
description: nullishToOptional(
|
|
1950
|
-
thumbnailUrl: nullishToOptional(
|
|
1951
|
-
});
|
|
1952
|
-
var PageBlockFrameOrigin =
|
|
1953
|
-
sourceFileName: nullishToOptional(
|
|
1954
|
-
title: nullishToOptional(
|
|
1955
|
-
previewUrl: nullishToOptional(
|
|
1956
|
-
valid: nullishToOptional(
|
|
1957
|
-
referenceId: nullishToOptional(
|
|
1958
|
-
assetId: nullishToOptional(
|
|
1959
|
-
assetScale: nullishToOptional(
|
|
1960
|
-
width: nullishToOptional(
|
|
1961
|
-
height: nullishToOptional(
|
|
1962
|
-
});
|
|
1963
|
-
var PageBlockFrame =
|
|
1964
|
-
persistentId:
|
|
1965
|
-
sourceId:
|
|
1966
|
-
sourceFrameId:
|
|
1967
|
-
title: nullishToOptional(
|
|
1968
|
-
description: nullishToOptional(
|
|
1957
|
+
var PageBlockSwatch = z47.object({
|
|
1958
|
+
id: z47.string(),
|
|
1959
|
+
selectedThemeIds: z47.string().array()
|
|
1960
|
+
});
|
|
1961
|
+
var PageBlockUrlPreview = z47.object({
|
|
1962
|
+
title: nullishToOptional(z47.string()),
|
|
1963
|
+
description: nullishToOptional(z47.string()),
|
|
1964
|
+
thumbnailUrl: nullishToOptional(z47.string())
|
|
1965
|
+
});
|
|
1966
|
+
var PageBlockFrameOrigin = z47.object({
|
|
1967
|
+
sourceFileName: nullishToOptional(z47.string()),
|
|
1968
|
+
title: nullishToOptional(z47.string()),
|
|
1969
|
+
previewUrl: nullishToOptional(z47.string()),
|
|
1970
|
+
valid: nullishToOptional(z47.boolean()),
|
|
1971
|
+
referenceId: nullishToOptional(z47.string()),
|
|
1972
|
+
assetId: nullishToOptional(z47.string()),
|
|
1973
|
+
assetScale: nullishToOptional(z47.number()),
|
|
1974
|
+
width: nullishToOptional(z47.number()),
|
|
1975
|
+
height: nullishToOptional(z47.number())
|
|
1976
|
+
});
|
|
1977
|
+
var PageBlockFrame = z47.object({
|
|
1978
|
+
persistentId: z47.string(),
|
|
1979
|
+
sourceId: z47.string(),
|
|
1980
|
+
sourceFrameId: z47.string(),
|
|
1981
|
+
title: nullishToOptional(z47.string()),
|
|
1982
|
+
description: nullishToOptional(z47.string()),
|
|
1969
1983
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1970
1984
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
1971
1985
|
});
|
|
1972
|
-
var PageBlockAsset =
|
|
1986
|
+
var PageBlockAsset = z47.object({
|
|
1973
1987
|
type: PageBlockAssetType,
|
|
1974
|
-
id: nullishToOptional(
|
|
1975
|
-
url: nullishToOptional(
|
|
1988
|
+
id: nullishToOptional(z47.string()),
|
|
1989
|
+
url: nullishToOptional(z47.string()),
|
|
1976
1990
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
1977
1991
|
});
|
|
1978
|
-
var PageBlockLinkPreview =
|
|
1979
|
-
title: nullishToOptional(
|
|
1980
|
-
valid: nullishToOptional(
|
|
1992
|
+
var PageBlockLinkPreview = z47.object({
|
|
1993
|
+
title: nullishToOptional(z47.string()),
|
|
1994
|
+
valid: nullishToOptional(z47.boolean())
|
|
1981
1995
|
});
|
|
1982
|
-
var PageBlockShortcut =
|
|
1983
|
-
persistentId:
|
|
1984
|
-
title: nullishToOptional(
|
|
1985
|
-
description: nullishToOptional(
|
|
1996
|
+
var PageBlockShortcut = z47.object({
|
|
1997
|
+
persistentId: z47.string(),
|
|
1998
|
+
title: nullishToOptional(z47.string()),
|
|
1999
|
+
description: nullishToOptional(z47.string()),
|
|
1986
2000
|
asset: nullishToOptional(PageBlockAsset),
|
|
1987
|
-
documentationItemId: nullishToOptional(
|
|
1988
|
-
pageHeadingId: nullishToOptional(
|
|
1989
|
-
url: nullishToOptional(
|
|
1990
|
-
openInNewTab: nullishToOptional(
|
|
2001
|
+
documentationItemId: nullishToOptional(z47.string()),
|
|
2002
|
+
pageHeadingId: nullishToOptional(z47.string()),
|
|
2003
|
+
url: nullishToOptional(z47.string()),
|
|
2004
|
+
openInNewTab: nullishToOptional(z47.boolean()),
|
|
1991
2005
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
1992
2006
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
1993
2007
|
});
|
|
1994
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
2008
|
+
var PageBlockCustomBlockPropertyImageValue = z47.object({
|
|
1995
2009
|
asset: nullishToOptional(PageBlockAsset),
|
|
1996
|
-
assetId: nullishToOptional(
|
|
1997
|
-
assetUrl: nullishToOptional(
|
|
2010
|
+
assetId: nullishToOptional(z47.string()),
|
|
2011
|
+
assetUrl: nullishToOptional(z47.string())
|
|
1998
2012
|
});
|
|
1999
|
-
var PageBlockCustomBlockPropertyValue =
|
|
2000
|
-
key:
|
|
2001
|
-
value:
|
|
2013
|
+
var PageBlockCustomBlockPropertyValue = z47.object({
|
|
2014
|
+
key: z47.string(),
|
|
2015
|
+
value: z47.any()
|
|
2002
2016
|
});
|
|
2003
|
-
var PageBlockFigmaFrameProperties =
|
|
2017
|
+
var PageBlockFigmaFrameProperties = z47.object({
|
|
2004
2018
|
color: nullishToOptional(
|
|
2005
|
-
|
|
2006
|
-
value:
|
|
2019
|
+
z47.object({
|
|
2020
|
+
value: z47.string()
|
|
2007
2021
|
})
|
|
2008
2022
|
),
|
|
2009
2023
|
alignment: PageBlockTilesAlignment,
|
|
2010
|
-
previewContainerHeight: nullishToOptional(
|
|
2024
|
+
previewContainerHeight: nullishToOptional(z47.number()),
|
|
2011
2025
|
layout: PageBlockTilesLayout,
|
|
2012
2026
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
2013
|
-
showTitles:
|
|
2027
|
+
showTitles: z47.boolean()
|
|
2014
2028
|
});
|
|
2015
|
-
var PageBlockRenderCodeProperties =
|
|
2016
|
-
showCode:
|
|
2017
|
-
showControls:
|
|
2029
|
+
var PageBlockRenderCodeProperties = z47.object({
|
|
2030
|
+
showCode: z47.boolean(),
|
|
2031
|
+
showControls: z47.boolean().optional()
|
|
2018
2032
|
});
|
|
2019
|
-
var PageBlockAssetComponent =
|
|
2020
|
-
persistentId:
|
|
2021
|
-
componentAssetId:
|
|
2022
|
-
title: nullishToOptional(
|
|
2023
|
-
description: nullishToOptional(
|
|
2033
|
+
var PageBlockAssetComponent = z47.object({
|
|
2034
|
+
persistentId: z47.string(),
|
|
2035
|
+
componentAssetId: z47.string(),
|
|
2036
|
+
title: nullishToOptional(z47.string()),
|
|
2037
|
+
description: nullishToOptional(z47.string()),
|
|
2024
2038
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
2025
2039
|
});
|
|
2026
|
-
var PageBlockTableColumn =
|
|
2027
|
-
id:
|
|
2040
|
+
var PageBlockTableColumn = z47.object({
|
|
2041
|
+
id: z47.string(),
|
|
2028
2042
|
width: DimensionTokenData
|
|
2029
2043
|
});
|
|
2030
|
-
var PageBlockTableProperties =
|
|
2031
|
-
showBorders:
|
|
2032
|
-
showHeaderRow:
|
|
2033
|
-
showHeaderColumn:
|
|
2034
|
-
columns:
|
|
2035
|
-
});
|
|
2036
|
-
var PageBlockFigmaComponentBlockConfig =
|
|
2037
|
-
showComponentName: nullishToOptional(
|
|
2038
|
-
showComponentDescription: nullishToOptional(
|
|
2039
|
-
showPropertyList: nullishToOptional(
|
|
2040
|
-
previewOrderIds: nullishToOptional(
|
|
2041
|
-
previewContainerSize: nullishToOptional(
|
|
2042
|
-
previewContainerHeight: nullishToOptional(
|
|
2044
|
+
var PageBlockTableProperties = z47.object({
|
|
2045
|
+
showBorders: z47.boolean(),
|
|
2046
|
+
showHeaderRow: z47.boolean(),
|
|
2047
|
+
showHeaderColumn: z47.boolean(),
|
|
2048
|
+
columns: z47.array(PageBlockTableColumn)
|
|
2049
|
+
});
|
|
2050
|
+
var PageBlockFigmaComponentBlockConfig = z47.object({
|
|
2051
|
+
showComponentName: nullishToOptional(z47.boolean()),
|
|
2052
|
+
showComponentDescription: nullishToOptional(z47.boolean()),
|
|
2053
|
+
showPropertyList: nullishToOptional(z47.boolean()),
|
|
2054
|
+
previewOrderIds: nullishToOptional(z47.array(z47.string())),
|
|
2055
|
+
previewContainerSize: nullishToOptional(z47.enum(["Centered", "NaturalHeight"])),
|
|
2056
|
+
previewContainerHeight: nullishToOptional(z47.number()),
|
|
2043
2057
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
2044
2058
|
});
|
|
2045
|
-
var PageBlockTokenBlockConfig =
|
|
2059
|
+
var PageBlockTokenBlockConfig = z47.object({
|
|
2046
2060
|
tokenNameFormat: nullishToOptional(PageBlockTokenNameFormat),
|
|
2047
|
-
tokenNameCustomPropertyId: nullishToOptional(
|
|
2048
|
-
});
|
|
2049
|
-
var PageBlockAssetBlockConfig =
|
|
2050
|
-
showSearch: nullishToOptional(
|
|
2051
|
-
showAssetDescription: nullishToOptional(
|
|
2052
|
-
});
|
|
2053
|
-
var PageBlockSelectedFigmaComponent =
|
|
2054
|
-
figmaComponentId:
|
|
2055
|
-
selectedComponentProperties:
|
|
2056
|
-
selectedComponentVariants:
|
|
2057
|
-
});
|
|
2058
|
-
var PageBlockStorybookItem =
|
|
2059
|
-
entityId:
|
|
2060
|
-
embed:
|
|
2061
|
-
inputUrl:
|
|
2062
|
-
embedUrl:
|
|
2061
|
+
tokenNameCustomPropertyId: nullishToOptional(z47.string())
|
|
2062
|
+
});
|
|
2063
|
+
var PageBlockAssetBlockConfig = z47.object({
|
|
2064
|
+
showSearch: nullishToOptional(z47.boolean()),
|
|
2065
|
+
showAssetDescription: nullishToOptional(z47.boolean())
|
|
2066
|
+
});
|
|
2067
|
+
var PageBlockSelectedFigmaComponent = z47.object({
|
|
2068
|
+
figmaComponentId: z47.string(),
|
|
2069
|
+
selectedComponentProperties: z47.string().array(),
|
|
2070
|
+
selectedComponentVariants: z47.record(z47.string().array()).optional()
|
|
2071
|
+
});
|
|
2072
|
+
var PageBlockStorybookItem = z47.object({
|
|
2073
|
+
entityId: z47.string().optional(),
|
|
2074
|
+
embed: z47.object({
|
|
2075
|
+
inputUrl: z47.string(),
|
|
2076
|
+
embedUrl: z47.string()
|
|
2063
2077
|
}).optional(),
|
|
2064
|
-
entityMeta:
|
|
2065
|
-
caption:
|
|
2066
|
-
height:
|
|
2067
|
-
hiddenProps:
|
|
2068
|
-
propValues:
|
|
2078
|
+
entityMeta: z47.object({
|
|
2079
|
+
caption: z47.string().optional(),
|
|
2080
|
+
height: z47.number().optional(),
|
|
2081
|
+
hiddenProps: z47.array(z47.string()).optional(),
|
|
2082
|
+
propValues: z47.record(z47.unknown()).optional()
|
|
2069
2083
|
}).optional()
|
|
2070
2084
|
});
|
|
2071
|
-
var PageBlockStorybookBlockConfig =
|
|
2085
|
+
var PageBlockStorybookBlockConfig = z47.object({
|
|
2072
2086
|
value: PageBlockStorybookItem.array(),
|
|
2073
|
-
showCode:
|
|
2074
|
-
showFooter:
|
|
2075
|
-
showProperties:
|
|
2076
|
-
showDescription:
|
|
2077
|
-
showDefaults:
|
|
2078
|
-
});
|
|
2079
|
-
var PageBlockTextSpanAttributeType =
|
|
2080
|
-
var PageBlockTextSpanAttribute =
|
|
2087
|
+
showCode: z47.boolean().optional(),
|
|
2088
|
+
showFooter: z47.boolean().optional(),
|
|
2089
|
+
showProperties: z47.boolean().optional(),
|
|
2090
|
+
showDescription: z47.boolean().optional(),
|
|
2091
|
+
showDefaults: z47.boolean().optional()
|
|
2092
|
+
});
|
|
2093
|
+
var PageBlockTextSpanAttributeType = z47.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
2094
|
+
var PageBlockTextSpanAttribute = z47.object({
|
|
2081
2095
|
type: PageBlockTextSpanAttributeType,
|
|
2082
2096
|
// Link attributes
|
|
2083
|
-
link: nullishToOptional(
|
|
2084
|
-
documentationItemId: nullishToOptional(
|
|
2097
|
+
link: nullishToOptional(z47.string()),
|
|
2098
|
+
documentationItemId: nullishToOptional(z47.string()),
|
|
2085
2099
|
/** @deprecated use openInNewTab */
|
|
2086
|
-
openInNewWindow: nullishToOptional(
|
|
2087
|
-
openInNewTab: nullishToOptional(
|
|
2100
|
+
openInNewWindow: nullishToOptional(z47.boolean()),
|
|
2101
|
+
openInNewTab: nullishToOptional(z47.boolean()),
|
|
2088
2102
|
// Comment attributes
|
|
2089
|
-
commentHighlightId: nullishToOptional(
|
|
2090
|
-
commentIsResolved: nullishToOptional(
|
|
2103
|
+
commentHighlightId: nullishToOptional(z47.string()),
|
|
2104
|
+
commentIsResolved: nullishToOptional(z47.boolean())
|
|
2091
2105
|
});
|
|
2092
|
-
var PageBlockTextSpan =
|
|
2093
|
-
text:
|
|
2094
|
-
attributes:
|
|
2106
|
+
var PageBlockTextSpan = z47.object({
|
|
2107
|
+
text: z47.string(),
|
|
2108
|
+
attributes: z47.array(PageBlockTextSpanAttribute)
|
|
2095
2109
|
});
|
|
2096
|
-
var PageBlockText =
|
|
2097
|
-
spans:
|
|
2110
|
+
var PageBlockText = z47.object({
|
|
2111
|
+
spans: z47.array(PageBlockTextSpan)
|
|
2098
2112
|
});
|
|
2099
|
-
var PageBlockGuideline =
|
|
2100
|
-
description: nullishToOptional(
|
|
2113
|
+
var PageBlockGuideline = z47.object({
|
|
2114
|
+
description: nullishToOptional(z47.string()),
|
|
2101
2115
|
asset: nullishToOptional(PageBlockAsset),
|
|
2102
|
-
type:
|
|
2103
|
-
imageAlt: nullishToOptional(
|
|
2104
|
-
imageCaption: nullishToOptional(
|
|
2116
|
+
type: z47.string(),
|
|
2117
|
+
imageAlt: nullishToOptional(z47.string()),
|
|
2118
|
+
imageCaption: nullishToOptional(z47.string()),
|
|
2105
2119
|
imageAlignment: nullishToOptional(PageBlockAlignment),
|
|
2106
|
-
openLightbox: nullishToOptional(
|
|
2107
|
-
isBordered: nullishToOptional(
|
|
2108
|
-
});
|
|
2109
|
-
var PageBlockFile =
|
|
2110
|
-
entityId:
|
|
2111
|
-
entityMeta:
|
|
2112
|
-
title:
|
|
2113
|
-
description:
|
|
2120
|
+
openLightbox: nullishToOptional(z47.boolean()),
|
|
2121
|
+
isBordered: nullishToOptional(z47.boolean())
|
|
2122
|
+
});
|
|
2123
|
+
var PageBlockFile = z47.object({
|
|
2124
|
+
entityId: z47.string(),
|
|
2125
|
+
entityMeta: z47.object({
|
|
2126
|
+
title: z47.string().optional(),
|
|
2127
|
+
description: z47.string().optional()
|
|
2114
2128
|
}).optional()
|
|
2115
2129
|
});
|
|
2116
|
-
var PageBlockBaseV1 =
|
|
2117
|
-
persistentId:
|
|
2130
|
+
var PageBlockBaseV1 = z47.object({
|
|
2131
|
+
persistentId: z47.string(),
|
|
2118
2132
|
type: PageBlockTypeV1,
|
|
2119
2133
|
// V2 generic attributes
|
|
2120
|
-
numberOfColumns: nullishToOptional(
|
|
2134
|
+
numberOfColumns: nullishToOptional(z47.number()),
|
|
2121
2135
|
itemBackgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
2122
2136
|
// Element linking
|
|
2123
|
-
designObjectId: nullishToOptional(
|
|
2124
|
-
designObjectIds: nullishToOptional(
|
|
2125
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
2126
|
-
showNestedGroups: nullishToOptional(
|
|
2127
|
-
brandId: nullishToOptional(
|
|
2137
|
+
designObjectId: nullishToOptional(z47.string()),
|
|
2138
|
+
designObjectIds: nullishToOptional(z47.array(z47.string())),
|
|
2139
|
+
tokenType: nullishToOptional(DesignTokenType.or(z47.literal("Font"))),
|
|
2140
|
+
showNestedGroups: nullishToOptional(z47.boolean()),
|
|
2141
|
+
brandId: nullishToOptional(z47.string()),
|
|
2128
2142
|
// Rich text
|
|
2129
2143
|
text: nullishToOptional(PageBlockText),
|
|
2130
|
-
caption: nullishToOptional(
|
|
2131
|
-
headingType: nullishToOptional(
|
|
2144
|
+
caption: nullishToOptional(z47.string()),
|
|
2145
|
+
headingType: nullishToOptional(z47.number().min(1).max(3)),
|
|
2132
2146
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
2133
2147
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
2134
|
-
urlInput: nullishToOptional(
|
|
2135
|
-
url: nullishToOptional(
|
|
2148
|
+
urlInput: nullishToOptional(z47.string()),
|
|
2149
|
+
url: nullishToOptional(z47.string()),
|
|
2136
2150
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
2137
2151
|
// Image
|
|
2138
2152
|
asset: nullishToOptional(PageBlockAsset),
|
|
2139
2153
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
2140
|
-
imageAlt: nullishToOptional(
|
|
2141
|
-
openLightbox: nullishToOptional(
|
|
2142
|
-
isBordered: nullishToOptional(
|
|
2154
|
+
imageAlt: nullishToOptional(z47.string()),
|
|
2155
|
+
openLightbox: nullishToOptional(z47.boolean()),
|
|
2156
|
+
isBordered: nullishToOptional(z47.boolean()),
|
|
2143
2157
|
// Shortcuts block
|
|
2144
|
-
shortcuts: nullishToOptional(
|
|
2158
|
+
shortcuts: nullishToOptional(z47.array(PageBlockShortcut)),
|
|
2145
2159
|
// Guidelines
|
|
2146
2160
|
guideline: nullishToOptional(PageBlockGuideline),
|
|
2147
2161
|
// Custom blocks
|
|
2148
|
-
customBlockKey: nullishToOptional(
|
|
2149
|
-
customBlockProperties: nullishToOptional(
|
|
2150
|
-
variantKey: nullishToOptional(
|
|
2162
|
+
customBlockKey: nullishToOptional(z47.string()),
|
|
2163
|
+
customBlockProperties: nullishToOptional(z47.array(PageBlockCustomBlockPropertyValue)),
|
|
2164
|
+
variantKey: nullishToOptional(z47.string()),
|
|
2151
2165
|
// Figma frames
|
|
2152
2166
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
2153
|
-
figmaFrames: nullishToOptional(
|
|
2167
|
+
figmaFrames: nullishToOptional(z47.array(PageBlockFrame)),
|
|
2154
2168
|
// Generic
|
|
2155
2169
|
size: nullishToOptional(Size),
|
|
2156
2170
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
2157
2171
|
// Render code
|
|
2158
2172
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
2159
2173
|
// Component assets
|
|
2160
|
-
componentAssets: nullishToOptional(
|
|
2174
|
+
componentAssets: nullishToOptional(z47.array(PageBlockAssetComponent)),
|
|
2161
2175
|
// Tables
|
|
2162
2176
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
2163
|
-
columnId: nullishToOptional(
|
|
2177
|
+
columnId: nullishToOptional(z47.string()),
|
|
2164
2178
|
// Design tokens
|
|
2165
2179
|
theme: nullishToOptional(PageBlockTheme),
|
|
2166
2180
|
swatches: nullishToOptional(PageBlockSwatch.array()),
|
|
2167
|
-
blacklistedElementProperties: nullishToOptional(
|
|
2181
|
+
blacklistedElementProperties: nullishToOptional(z47.array(z47.string())),
|
|
2168
2182
|
tokenBlockConfig: nullishToOptional(PageBlockTokenBlockConfig),
|
|
2169
2183
|
// (Vector) assets
|
|
2170
2184
|
assetBlockConfig: nullishToOptional(PageBlockAssetBlockConfig),
|
|
@@ -2173,14 +2187,14 @@ var PageBlockBaseV1 = z46.object({
|
|
|
2173
2187
|
selectedFigmaComponent: nullishToOptional(PageBlockSelectedFigmaComponent),
|
|
2174
2188
|
selectedFigmaComponents: nullishToOptional(PageBlockSelectedFigmaComponent.array()),
|
|
2175
2189
|
// Arbitrary
|
|
2176
|
-
userMetadata: nullishToOptional(
|
|
2190
|
+
userMetadata: nullishToOptional(z47.string()),
|
|
2177
2191
|
// Storybook
|
|
2178
2192
|
storybookBlockConfig: nullishToOptional(PageBlockStorybookBlockConfig),
|
|
2179
2193
|
// Files
|
|
2180
2194
|
files: nullishToOptional(PageBlockFile.array())
|
|
2181
2195
|
});
|
|
2182
2196
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
2183
|
-
children:
|
|
2197
|
+
children: z47.lazy(
|
|
2184
2198
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
2185
2199
|
)
|
|
2186
2200
|
});
|
|
@@ -2271,37 +2285,37 @@ function sanitizeSpanAttribute(attribute) {
|
|
|
2271
2285
|
};
|
|
2272
2286
|
}
|
|
2273
2287
|
}
|
|
2274
|
-
var PageBlockDefinitionAppearance =
|
|
2275
|
-
isBordered:
|
|
2276
|
-
hasBackground:
|
|
2277
|
-
isEditorPresentationDifferent:
|
|
2278
|
-
showBlockHeaderInEditor:
|
|
2279
|
-
});
|
|
2280
|
-
var PageBlockDefinitionLayoutType =
|
|
2281
|
-
var PageBlockDefinitionLayoutGap =
|
|
2282
|
-
var PageBlockDefinitionLayoutAlign =
|
|
2283
|
-
var PageBlockDefinitionLayoutResizing =
|
|
2284
|
-
var PageBlockDefinitionLayoutBase =
|
|
2288
|
+
var PageBlockDefinitionAppearance = z48.object({
|
|
2289
|
+
isBordered: z48.boolean().optional(),
|
|
2290
|
+
hasBackground: z48.boolean().optional(),
|
|
2291
|
+
isEditorPresentationDifferent: z48.boolean().optional(),
|
|
2292
|
+
showBlockHeaderInEditor: z48.boolean().optional()
|
|
2293
|
+
});
|
|
2294
|
+
var PageBlockDefinitionLayoutType = z49.enum(["Column", "Row"]);
|
|
2295
|
+
var PageBlockDefinitionLayoutGap = z49.enum(["Small", "Medium", "Large", "None"]);
|
|
2296
|
+
var PageBlockDefinitionLayoutAlign = z49.enum(["Start", "Center", "End"]);
|
|
2297
|
+
var PageBlockDefinitionLayoutResizing = z49.enum(["Fill", "Hug"]);
|
|
2298
|
+
var PageBlockDefinitionLayoutBase = z49.object({
|
|
2285
2299
|
type: PageBlockDefinitionLayoutType,
|
|
2286
2300
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
2287
2301
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
2288
2302
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
2289
2303
|
});
|
|
2290
2304
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
2291
|
-
children:
|
|
2292
|
-
});
|
|
2293
|
-
var PageBlockDefinitionVariant =
|
|
2294
|
-
id:
|
|
2295
|
-
name:
|
|
2296
|
-
image:
|
|
2297
|
-
description:
|
|
2298
|
-
documentationLink:
|
|
2305
|
+
children: z49.lazy(() => z49.array(PageBlockDefinitionLayout.or(z49.string())))
|
|
2306
|
+
});
|
|
2307
|
+
var PageBlockDefinitionVariant = z49.object({
|
|
2308
|
+
id: z49.string(),
|
|
2309
|
+
name: z49.string(),
|
|
2310
|
+
image: z49.string().optional(),
|
|
2311
|
+
description: z49.string().optional(),
|
|
2312
|
+
documentationLink: z49.string().optional(),
|
|
2299
2313
|
layout: PageBlockDefinitionLayout,
|
|
2300
|
-
maxColumns:
|
|
2301
|
-
defaultColumns:
|
|
2314
|
+
maxColumns: z49.number().optional(),
|
|
2315
|
+
defaultColumns: z49.number().optional(),
|
|
2302
2316
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2303
2317
|
});
|
|
2304
|
-
var PageBlockDefinitionPropertyType =
|
|
2318
|
+
var PageBlockDefinitionPropertyType = z50.enum([
|
|
2305
2319
|
"RichText",
|
|
2306
2320
|
"MultiRichText",
|
|
2307
2321
|
"RichTextEditor",
|
|
@@ -2331,7 +2345,7 @@ var PageBlockDefinitionPropertyType = z49.enum([
|
|
|
2331
2345
|
"FigmaComponent",
|
|
2332
2346
|
"File"
|
|
2333
2347
|
]);
|
|
2334
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
2348
|
+
var PageBlockDefinitionRichTextPropertyStyle = z50.enum([
|
|
2335
2349
|
"Title1",
|
|
2336
2350
|
"Title2",
|
|
2337
2351
|
"Title3",
|
|
@@ -2341,8 +2355,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z49.enum([
|
|
|
2341
2355
|
"Callout",
|
|
2342
2356
|
"Default"
|
|
2343
2357
|
]);
|
|
2344
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
2345
|
-
var PageBlockDefinitionRichTextEditorPropertyStyle =
|
|
2358
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z50.enum(["OL", "UL"]);
|
|
2359
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z50.enum([
|
|
2346
2360
|
"OL",
|
|
2347
2361
|
"UL",
|
|
2348
2362
|
"Bold",
|
|
@@ -2351,7 +2365,7 @@ var PageBlockDefinitionRichTextEditorPropertyStyle = z49.enum([
|
|
|
2351
2365
|
"Strikethrough",
|
|
2352
2366
|
"InlineCode"
|
|
2353
2367
|
]);
|
|
2354
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
2368
|
+
var PageBlockDefinitionTextPropertyStyle = z50.enum([
|
|
2355
2369
|
"Title1",
|
|
2356
2370
|
"Title2",
|
|
2357
2371
|
"Title3",
|
|
@@ -2365,15 +2379,15 @@ var PageBlockDefinitionTextPropertyStyle = z49.enum([
|
|
|
2365
2379
|
"SmallSemibold",
|
|
2366
2380
|
"Custom"
|
|
2367
2381
|
]);
|
|
2368
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
2369
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2370
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2382
|
+
var PageBlockDefinitionTextPropertyColor = z50.enum(["Neutral", "NeutralFaded"]);
|
|
2383
|
+
var PageBlockDefinitionBooleanPropertyStyle = z50.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2384
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z50.enum([
|
|
2371
2385
|
"SegmentedControl",
|
|
2372
2386
|
"ToggleButton",
|
|
2373
2387
|
"Select",
|
|
2374
2388
|
"Checkbox"
|
|
2375
2389
|
]);
|
|
2376
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
2390
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z50.enum([
|
|
2377
2391
|
"Green",
|
|
2378
2392
|
"Red",
|
|
2379
2393
|
"Yellow",
|
|
@@ -2388,364 +2402,364 @@ var PageBlockDefinitionSingleSelectPropertyColor = z49.enum([
|
|
|
2388
2402
|
"Cyan",
|
|
2389
2403
|
"Fuchsia"
|
|
2390
2404
|
]);
|
|
2391
|
-
var IconSet =
|
|
2392
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2393
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2394
|
-
var PageBlockDefinitionImageWidth =
|
|
2395
|
-
var PageBlockDefinitionSelectChoice =
|
|
2396
|
-
value:
|
|
2397
|
-
name:
|
|
2405
|
+
var IconSet = z50.enum(["CheckCircle", "CrossCircle", "Alert"]);
|
|
2406
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z50.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2407
|
+
var PageBlockDefinitionImageAspectRatio = z50.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2408
|
+
var PageBlockDefinitionImageWidth = z50.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2409
|
+
var PageBlockDefinitionSelectChoice = z50.object({
|
|
2410
|
+
value: z50.string(),
|
|
2411
|
+
name: z50.string(),
|
|
2398
2412
|
icon: IconSet.optional(),
|
|
2399
|
-
customIconUrl:
|
|
2413
|
+
customIconUrl: z50.string().optional(),
|
|
2400
2414
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2401
2415
|
});
|
|
2402
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2403
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2416
|
+
var PageBlockDefinitionUntypedPropertyOptions = z50.record(z50.any());
|
|
2417
|
+
var PageBlockDefinitionRichTextOptions = z50.object({
|
|
2404
2418
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2405
2419
|
});
|
|
2406
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2420
|
+
var PageBlockDefinitionMutiRichTextOptions = z50.object({
|
|
2407
2421
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2408
2422
|
});
|
|
2409
|
-
var PageBlockDefinitionRichTextEditorOptions =
|
|
2410
|
-
placeholder:
|
|
2411
|
-
allowedInlineStyles:
|
|
2423
|
+
var PageBlockDefinitionRichTextEditorOptions = z50.object({
|
|
2424
|
+
placeholder: z50.string().optional(),
|
|
2425
|
+
allowedInlineStyles: z50.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
2412
2426
|
});
|
|
2413
|
-
var PageBlockDefinitionTextOptions =
|
|
2414
|
-
placeholder:
|
|
2415
|
-
defaultValue:
|
|
2427
|
+
var PageBlockDefinitionTextOptions = z50.object({
|
|
2428
|
+
placeholder: z50.string().optional(),
|
|
2429
|
+
defaultValue: z50.string().optional(),
|
|
2416
2430
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2417
2431
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2418
|
-
allowLineBreaks:
|
|
2432
|
+
allowLineBreaks: z50.boolean().optional()
|
|
2419
2433
|
});
|
|
2420
|
-
var PageBlockDefinitionSelectOptions =
|
|
2434
|
+
var PageBlockDefinitionSelectOptions = z50.object({
|
|
2421
2435
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2422
|
-
defaultChoice:
|
|
2423
|
-
choices:
|
|
2436
|
+
defaultChoice: z50.string(),
|
|
2437
|
+
choices: z50.array(PageBlockDefinitionSelectChoice)
|
|
2424
2438
|
});
|
|
2425
|
-
var PageBlockDefinitionImageOptions =
|
|
2439
|
+
var PageBlockDefinitionImageOptions = z50.object({
|
|
2426
2440
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2427
2441
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2428
|
-
allowCaption:
|
|
2429
|
-
recommendation:
|
|
2442
|
+
allowCaption: z50.boolean().optional(),
|
|
2443
|
+
recommendation: z50.string().optional()
|
|
2430
2444
|
});
|
|
2431
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2432
|
-
defaultvalue:
|
|
2445
|
+
var PageBlockDefinitionBooleanOptions = z50.object({
|
|
2446
|
+
defaultvalue: z50.boolean().optional(),
|
|
2433
2447
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2434
2448
|
});
|
|
2435
|
-
var PageBlockDefinitionNumberOptions =
|
|
2436
|
-
defaultValue:
|
|
2437
|
-
min:
|
|
2438
|
-
max:
|
|
2439
|
-
step:
|
|
2440
|
-
placeholder:
|
|
2449
|
+
var PageBlockDefinitionNumberOptions = z50.object({
|
|
2450
|
+
defaultValue: z50.number(),
|
|
2451
|
+
min: z50.number().optional(),
|
|
2452
|
+
max: z50.number().optional(),
|
|
2453
|
+
step: z50.number().optional(),
|
|
2454
|
+
placeholder: z50.string().optional()
|
|
2441
2455
|
});
|
|
2442
|
-
var PageBlockDefinitionComponentOptions =
|
|
2443
|
-
renderLayoutAs:
|
|
2444
|
-
allowPropertySelection:
|
|
2456
|
+
var PageBlockDefinitionComponentOptions = z50.object({
|
|
2457
|
+
renderLayoutAs: z50.enum(["List", "Table"]).optional(),
|
|
2458
|
+
allowPropertySelection: z50.boolean().optional()
|
|
2445
2459
|
});
|
|
2446
|
-
var PageBlockDefinitionFigmaComponentOptions =
|
|
2447
|
-
renderLayoutAs:
|
|
2448
|
-
invertPropertySelection:
|
|
2460
|
+
var PageBlockDefinitionFigmaComponentOptions = z50.object({
|
|
2461
|
+
renderLayoutAs: z50.enum(["Grid", "PropsTable", "Canvas", "Playground"]),
|
|
2462
|
+
invertPropertySelection: z50.boolean().optional()
|
|
2449
2463
|
});
|
|
2450
|
-
var PageBlockDefinitionProperty =
|
|
2451
|
-
id:
|
|
2452
|
-
name:
|
|
2464
|
+
var PageBlockDefinitionProperty = z50.object({
|
|
2465
|
+
id: z50.string(),
|
|
2466
|
+
name: z50.string(),
|
|
2453
2467
|
type: PageBlockDefinitionPropertyType,
|
|
2454
|
-
description:
|
|
2468
|
+
description: z50.string().optional(),
|
|
2455
2469
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2456
|
-
variantOptions:
|
|
2470
|
+
variantOptions: z50.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2457
2471
|
});
|
|
2458
|
-
var PageBlockDefinitionItem =
|
|
2459
|
-
properties:
|
|
2472
|
+
var PageBlockDefinitionItem = z50.object({
|
|
2473
|
+
properties: z50.array(PageBlockDefinitionProperty),
|
|
2460
2474
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2461
|
-
variants:
|
|
2462
|
-
defaultVariantKey:
|
|
2463
|
-
});
|
|
2464
|
-
var PageBlockLinkType =
|
|
2465
|
-
var PageBlockImageType =
|
|
2466
|
-
var PageBlockImageAlignment =
|
|
2467
|
-
var PageBlockTableCellAlignment =
|
|
2468
|
-
var PageBlockPreviewContainerSize =
|
|
2469
|
-
var PageBlockThemeDisplayMode =
|
|
2470
|
-
var PageBlockTokenValueFormat =
|
|
2471
|
-
var PageBlockImageResourceReference =
|
|
2472
|
-
resourceId:
|
|
2473
|
-
url:
|
|
2474
|
-
});
|
|
2475
|
-
var PageBlockResourceFrameNodeReference =
|
|
2476
|
-
sourceId:
|
|
2477
|
-
frameReferenceId:
|
|
2478
|
-
});
|
|
2479
|
-
var PageBlockImageReference =
|
|
2475
|
+
variants: z50.array(PageBlockDefinitionVariant),
|
|
2476
|
+
defaultVariantKey: z50.string()
|
|
2477
|
+
});
|
|
2478
|
+
var PageBlockLinkType = z51.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
2479
|
+
var PageBlockImageType = z51.enum(["Resource", "FigmaNode"]);
|
|
2480
|
+
var PageBlockImageAlignment = z51.enum(["Left", "Center", "Stretch"]);
|
|
2481
|
+
var PageBlockTableCellAlignment = z51.enum(["Left", "Center", "Right"]);
|
|
2482
|
+
var PageBlockPreviewContainerSize = z51.enum(["Centered", "NaturalHeight"]);
|
|
2483
|
+
var PageBlockThemeDisplayMode = z51.enum(["Split", "Override"]);
|
|
2484
|
+
var PageBlockTokenValueFormat = z51.enum(["ResolvedValue", "ReferenceName", "NoValue"]);
|
|
2485
|
+
var PageBlockImageResourceReference = z51.object({
|
|
2486
|
+
resourceId: z51.string(),
|
|
2487
|
+
url: z51.string()
|
|
2488
|
+
});
|
|
2489
|
+
var PageBlockResourceFrameNodeReference = z51.object({
|
|
2490
|
+
sourceId: z51.string(),
|
|
2491
|
+
frameReferenceId: z51.string()
|
|
2492
|
+
});
|
|
2493
|
+
var PageBlockImageReference = z51.object({
|
|
2480
2494
|
type: PageBlockImageType,
|
|
2481
2495
|
resource: PageBlockImageResourceReference.optional(),
|
|
2482
2496
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
2483
2497
|
});
|
|
2484
|
-
var PageBlockColorV2 =
|
|
2485
|
-
value:
|
|
2486
|
-
referencedTokenId:
|
|
2498
|
+
var PageBlockColorV2 = z51.object({
|
|
2499
|
+
value: z51.string(),
|
|
2500
|
+
referencedTokenId: z51.string().optional()
|
|
2487
2501
|
});
|
|
2488
|
-
var PageBlockAssetEntityMeta =
|
|
2489
|
-
title:
|
|
2490
|
-
description:
|
|
2502
|
+
var PageBlockAssetEntityMeta = z51.object({
|
|
2503
|
+
title: z51.string().optional(),
|
|
2504
|
+
description: z51.string().optional(),
|
|
2491
2505
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2492
|
-
showNestedGroups:
|
|
2506
|
+
showNestedGroups: z51.boolean().optional()
|
|
2493
2507
|
});
|
|
2494
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
2495
|
-
title:
|
|
2496
|
-
description:
|
|
2508
|
+
var PageBlockFigmaComponentEntityMeta = z51.object({
|
|
2509
|
+
title: z51.string().optional(),
|
|
2510
|
+
description: z51.string().optional(),
|
|
2497
2511
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2498
|
-
selectedComponentProperties:
|
|
2512
|
+
selectedComponentProperties: z51.array(z51.string()).optional()
|
|
2499
2513
|
});
|
|
2500
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
2501
|
-
title:
|
|
2502
|
-
description:
|
|
2514
|
+
var PageBlockFigmaNodeEntityMeta = z51.object({
|
|
2515
|
+
title: z51.string().optional(),
|
|
2516
|
+
description: z51.string().optional(),
|
|
2503
2517
|
backgroundColor: PageBlockColorV2.optional()
|
|
2504
2518
|
});
|
|
2505
|
-
var PageBlockAppearanceV2 =
|
|
2519
|
+
var PageBlockAppearanceV2 = z51.object({
|
|
2506
2520
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
2507
|
-
numberOfColumns:
|
|
2521
|
+
numberOfColumns: z51.number().optional()
|
|
2508
2522
|
});
|
|
2509
|
-
var PageBlockItemUntypedValue =
|
|
2510
|
-
value:
|
|
2511
|
-
}).and(
|
|
2512
|
-
var PageBlockLinkV2 =
|
|
2523
|
+
var PageBlockItemUntypedValue = z51.object({
|
|
2524
|
+
value: z51.any()
|
|
2525
|
+
}).and(z51.record(z51.any()));
|
|
2526
|
+
var PageBlockLinkV2 = z51.object({
|
|
2513
2527
|
type: PageBlockLinkType,
|
|
2514
|
-
documentationItemId:
|
|
2515
|
-
pageHeadingId:
|
|
2516
|
-
url:
|
|
2517
|
-
openInNewTab:
|
|
2528
|
+
documentationItemId: z51.string().optional(),
|
|
2529
|
+
pageHeadingId: z51.string().optional(),
|
|
2530
|
+
url: z51.string().optional(),
|
|
2531
|
+
openInNewTab: z51.boolean().optional()
|
|
2518
2532
|
});
|
|
2519
|
-
var PageBlockItemV2 =
|
|
2520
|
-
id:
|
|
2533
|
+
var PageBlockItemV2 = z51.object({
|
|
2534
|
+
id: z51.string(),
|
|
2521
2535
|
linksTo: PageBlockLinkV2.optional(),
|
|
2522
|
-
props:
|
|
2536
|
+
props: z51.record(PageBlockItemUntypedValue)
|
|
2523
2537
|
});
|
|
2524
|
-
var PageBlockDataV2 =
|
|
2525
|
-
packageId:
|
|
2526
|
-
variantId:
|
|
2527
|
-
indentLevel:
|
|
2538
|
+
var PageBlockDataV2 = z51.object({
|
|
2539
|
+
packageId: z51.string(),
|
|
2540
|
+
variantId: z51.string().optional(),
|
|
2541
|
+
indentLevel: z51.number(),
|
|
2528
2542
|
appearance: PageBlockAppearanceV2.optional(),
|
|
2529
|
-
items:
|
|
2543
|
+
items: z51.array(PageBlockItemV2)
|
|
2530
2544
|
});
|
|
2531
|
-
var PageBlockItemAssetValue =
|
|
2532
|
-
selectedPropertyIds:
|
|
2533
|
-
showSearch:
|
|
2534
|
-
showAssetDescription:
|
|
2545
|
+
var PageBlockItemAssetValue = z51.object({
|
|
2546
|
+
selectedPropertyIds: z51.array(z51.string()).optional(),
|
|
2547
|
+
showSearch: z51.boolean().optional(),
|
|
2548
|
+
showAssetDescription: z51.boolean().optional(),
|
|
2535
2549
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2536
|
-
previewContainerHeight:
|
|
2550
|
+
previewContainerHeight: z51.number().optional(),
|
|
2537
2551
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2538
|
-
value:
|
|
2539
|
-
|
|
2540
|
-
entityId:
|
|
2541
|
-
entityType:
|
|
2552
|
+
value: z51.array(
|
|
2553
|
+
z51.object({
|
|
2554
|
+
entityId: z51.string(),
|
|
2555
|
+
entityType: z51.enum(["Asset", "AssetGroup"]),
|
|
2542
2556
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
2543
2557
|
})
|
|
2544
2558
|
).default([])
|
|
2545
2559
|
});
|
|
2546
|
-
var PageBlockItemAssetPropertyValue =
|
|
2547
|
-
value:
|
|
2560
|
+
var PageBlockItemAssetPropertyValue = z51.object({
|
|
2561
|
+
value: z51.array(z51.string()).default([])
|
|
2548
2562
|
});
|
|
2549
|
-
var PageBlockItemFigmaComponentValue =
|
|
2550
|
-
showComponentName:
|
|
2551
|
-
showComponentDescription:
|
|
2552
|
-
showPropertyList:
|
|
2553
|
-
previewOrderIds:
|
|
2563
|
+
var PageBlockItemFigmaComponentValue = z51.object({
|
|
2564
|
+
showComponentName: z51.boolean().optional(),
|
|
2565
|
+
showComponentDescription: z51.boolean().optional(),
|
|
2566
|
+
showPropertyList: z51.boolean().optional(),
|
|
2567
|
+
previewOrderIds: z51.array(z51.string()).optional(),
|
|
2554
2568
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2555
|
-
previewContainerHeight:
|
|
2569
|
+
previewContainerHeight: z51.number().optional(),
|
|
2556
2570
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2557
|
-
value:
|
|
2558
|
-
|
|
2559
|
-
entityId:
|
|
2560
|
-
entityType:
|
|
2561
|
-
entityMeta:
|
|
2562
|
-
selectedComponentProperties:
|
|
2563
|
-
selectedComponentVariants:
|
|
2571
|
+
value: z51.array(
|
|
2572
|
+
z51.object({
|
|
2573
|
+
entityId: z51.string(),
|
|
2574
|
+
entityType: z51.enum(["FigmaComponent"]),
|
|
2575
|
+
entityMeta: z51.object({
|
|
2576
|
+
selectedComponentProperties: z51.string().array().optional(),
|
|
2577
|
+
selectedComponentVariants: z51.record(z51.string().array()).optional()
|
|
2564
2578
|
}).optional()
|
|
2565
2579
|
})
|
|
2566
2580
|
).default([])
|
|
2567
2581
|
});
|
|
2568
|
-
var PageBlockItemBooleanValue =
|
|
2569
|
-
value:
|
|
2582
|
+
var PageBlockItemBooleanValue = z51.object({
|
|
2583
|
+
value: z51.boolean()
|
|
2570
2584
|
});
|
|
2571
|
-
var PageBlockItemCodeValue =
|
|
2585
|
+
var PageBlockItemCodeValue = z51.object({
|
|
2572
2586
|
format: PageBlockCodeLanguage.optional(),
|
|
2573
|
-
caption:
|
|
2574
|
-
value:
|
|
2575
|
-
});
|
|
2576
|
-
var PageBlockItemSandboxValue =
|
|
2577
|
-
showCode:
|
|
2578
|
-
showControls:
|
|
2579
|
-
backgroundColor:
|
|
2580
|
-
alignPreview:
|
|
2581
|
-
previewHeight:
|
|
2582
|
-
value:
|
|
2583
|
-
});
|
|
2584
|
-
var PageBlockItemColorValue =
|
|
2585
|
-
var PageBlockItemComponentValue =
|
|
2586
|
-
selectedPropertyIds:
|
|
2587
|
-
selectedBrandId:
|
|
2588
|
-
value:
|
|
2589
|
-
|
|
2590
|
-
entityId:
|
|
2591
|
-
entityType:
|
|
2587
|
+
caption: z51.string().optional(),
|
|
2588
|
+
value: z51.string()
|
|
2589
|
+
});
|
|
2590
|
+
var PageBlockItemSandboxValue = z51.object({
|
|
2591
|
+
showCode: z51.boolean().optional(),
|
|
2592
|
+
showControls: z51.boolean().optional(),
|
|
2593
|
+
backgroundColor: z51.string().optional(),
|
|
2594
|
+
alignPreview: z51.enum(["Left", "Center"]).optional(),
|
|
2595
|
+
previewHeight: z51.number().optional(),
|
|
2596
|
+
value: z51.string()
|
|
2597
|
+
});
|
|
2598
|
+
var PageBlockItemColorValue = z51.record(z51.any());
|
|
2599
|
+
var PageBlockItemComponentValue = z51.object({
|
|
2600
|
+
selectedPropertyIds: z51.array(z51.string()).optional(),
|
|
2601
|
+
selectedBrandId: z51.string().optional(),
|
|
2602
|
+
value: z51.array(
|
|
2603
|
+
z51.object({
|
|
2604
|
+
entityId: z51.string(),
|
|
2605
|
+
entityType: z51.enum(["Component", "ComponentGroup"])
|
|
2592
2606
|
})
|
|
2593
2607
|
).default([])
|
|
2594
2608
|
});
|
|
2595
|
-
var PageBlockItemComponentPropertyValue =
|
|
2596
|
-
value:
|
|
2597
|
-
});
|
|
2598
|
-
var PageBlockItemDividerValue =
|
|
2599
|
-
var PageBlockItemEmbedValue =
|
|
2600
|
-
value:
|
|
2601
|
-
caption:
|
|
2602
|
-
height:
|
|
2603
|
-
alt:
|
|
2604
|
-
openGraph:
|
|
2605
|
-
title:
|
|
2606
|
-
description:
|
|
2607
|
-
imageUrl:
|
|
2609
|
+
var PageBlockItemComponentPropertyValue = z51.object({
|
|
2610
|
+
value: z51.string()
|
|
2611
|
+
});
|
|
2612
|
+
var PageBlockItemDividerValue = z51.object({});
|
|
2613
|
+
var PageBlockItemEmbedValue = z51.object({
|
|
2614
|
+
value: z51.string().optional(),
|
|
2615
|
+
caption: z51.string().optional(),
|
|
2616
|
+
height: z51.number().optional(),
|
|
2617
|
+
alt: z51.string().optional(),
|
|
2618
|
+
openGraph: z51.object({
|
|
2619
|
+
title: z51.string().optional(),
|
|
2620
|
+
description: z51.string().optional(),
|
|
2621
|
+
imageUrl: z51.string().optional()
|
|
2608
2622
|
}).optional()
|
|
2609
2623
|
});
|
|
2610
|
-
var PageBlockItemFigmaNodeValue =
|
|
2611
|
-
showSearch:
|
|
2624
|
+
var PageBlockItemFigmaNodeValue = z51.object({
|
|
2625
|
+
showSearch: z51.boolean().optional(),
|
|
2612
2626
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
2613
|
-
previewContainerHeight:
|
|
2627
|
+
previewContainerHeight: z51.number().optional(),
|
|
2614
2628
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2615
|
-
showFrameDetails:
|
|
2616
|
-
value:
|
|
2617
|
-
|
|
2618
|
-
entityId:
|
|
2629
|
+
showFrameDetails: z51.boolean().optional(),
|
|
2630
|
+
value: z51.array(
|
|
2631
|
+
z51.object({
|
|
2632
|
+
entityId: z51.string(),
|
|
2619
2633
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
2620
2634
|
})
|
|
2621
2635
|
).default([])
|
|
2622
2636
|
});
|
|
2623
|
-
var PageBlockItemImageValue =
|
|
2624
|
-
alt:
|
|
2625
|
-
caption:
|
|
2637
|
+
var PageBlockItemImageValue = z51.object({
|
|
2638
|
+
alt: z51.string().optional(),
|
|
2639
|
+
caption: z51.string().optional(),
|
|
2626
2640
|
alignment: PageBlockImageAlignment.optional(),
|
|
2627
|
-
openLightbox:
|
|
2628
|
-
isBordered:
|
|
2641
|
+
openLightbox: z51.boolean().optional(),
|
|
2642
|
+
isBordered: z51.boolean().optional(),
|
|
2629
2643
|
value: PageBlockImageReference.optional()
|
|
2630
2644
|
});
|
|
2631
|
-
var PageBlockItemMarkdownValue =
|
|
2632
|
-
value:
|
|
2645
|
+
var PageBlockItemMarkdownValue = z51.object({
|
|
2646
|
+
value: z51.string()
|
|
2633
2647
|
});
|
|
2634
|
-
var PageBlockItemMultiRichTextValue =
|
|
2648
|
+
var PageBlockItemMultiRichTextValue = z51.object({
|
|
2635
2649
|
value: PageBlockText.array()
|
|
2636
2650
|
});
|
|
2637
|
-
var PageBlockItemMultiSelectValue =
|
|
2638
|
-
value:
|
|
2651
|
+
var PageBlockItemMultiSelectValue = z51.object({
|
|
2652
|
+
value: z51.array(z51.string()).default([])
|
|
2639
2653
|
});
|
|
2640
|
-
var PageBlockItemNumberValue =
|
|
2641
|
-
value:
|
|
2654
|
+
var PageBlockItemNumberValue = z51.object({
|
|
2655
|
+
value: z51.number()
|
|
2642
2656
|
});
|
|
2643
|
-
var PageBlockItemRichTextValue =
|
|
2657
|
+
var PageBlockItemRichTextValue = z51.object({
|
|
2644
2658
|
value: PageBlockText,
|
|
2645
2659
|
calloutType: PageBlockCalloutType.optional()
|
|
2646
2660
|
});
|
|
2647
|
-
var PageBlockItemSingleSelectValue =
|
|
2648
|
-
value:
|
|
2649
|
-
});
|
|
2650
|
-
var PageBlockItemStorybookValueOld =
|
|
2651
|
-
value:
|
|
2652
|
-
caption:
|
|
2653
|
-
height:
|
|
2654
|
-
embedUrl:
|
|
2655
|
-
storyId:
|
|
2656
|
-
sourceId:
|
|
2657
|
-
});
|
|
2658
|
-
var PageBlockItemStorybookValue =
|
|
2659
|
-
value:
|
|
2660
|
-
|
|
2661
|
-
entityId:
|
|
2662
|
-
embed:
|
|
2663
|
-
inputUrl:
|
|
2664
|
-
embedUrl:
|
|
2661
|
+
var PageBlockItemSingleSelectValue = z51.object({
|
|
2662
|
+
value: z51.string()
|
|
2663
|
+
});
|
|
2664
|
+
var PageBlockItemStorybookValueOld = z51.object({
|
|
2665
|
+
value: z51.string().optional(),
|
|
2666
|
+
caption: z51.string().optional(),
|
|
2667
|
+
height: z51.number().optional(),
|
|
2668
|
+
embedUrl: z51.string().optional(),
|
|
2669
|
+
storyId: z51.string().optional(),
|
|
2670
|
+
sourceId: z51.string().optional()
|
|
2671
|
+
});
|
|
2672
|
+
var PageBlockItemStorybookValue = z51.object({
|
|
2673
|
+
value: z51.array(
|
|
2674
|
+
z51.object({
|
|
2675
|
+
entityId: z51.string().optional(),
|
|
2676
|
+
embed: z51.object({
|
|
2677
|
+
inputUrl: z51.string(),
|
|
2678
|
+
embedUrl: z51.string()
|
|
2665
2679
|
}).optional(),
|
|
2666
|
-
entityMeta:
|
|
2667
|
-
caption:
|
|
2668
|
-
height:
|
|
2669
|
-
hiddenProps:
|
|
2670
|
-
propValues:
|
|
2680
|
+
entityMeta: z51.object({
|
|
2681
|
+
caption: z51.string().optional(),
|
|
2682
|
+
height: z51.number().optional(),
|
|
2683
|
+
hiddenProps: z51.array(z51.string()).optional(),
|
|
2684
|
+
propValues: z51.record(z51.unknown()).optional()
|
|
2671
2685
|
}).optional()
|
|
2672
2686
|
})
|
|
2673
2687
|
).optional(),
|
|
2674
|
-
showCode:
|
|
2675
|
-
showFooter:
|
|
2676
|
-
showProperties:
|
|
2677
|
-
showDescription:
|
|
2678
|
-
showDefaults:
|
|
2679
|
-
});
|
|
2680
|
-
var PageBlockItemTextValue =
|
|
2681
|
-
value:
|
|
2682
|
-
});
|
|
2683
|
-
var PageBlockItemSwatch =
|
|
2684
|
-
id:
|
|
2685
|
-
selectedThemeIds:
|
|
2686
|
-
});
|
|
2687
|
-
var PageBlockItemTokenValue =
|
|
2688
|
-
selectedPropertyIds:
|
|
2689
|
-
selectedThemeIds:
|
|
2690
|
-
swatches:
|
|
2688
|
+
showCode: z51.boolean().optional(),
|
|
2689
|
+
showFooter: z51.boolean().optional(),
|
|
2690
|
+
showProperties: z51.boolean().optional(),
|
|
2691
|
+
showDescription: z51.boolean().optional(),
|
|
2692
|
+
showDefaults: z51.boolean().optional()
|
|
2693
|
+
});
|
|
2694
|
+
var PageBlockItemTextValue = z51.object({
|
|
2695
|
+
value: z51.string()
|
|
2696
|
+
});
|
|
2697
|
+
var PageBlockItemSwatch = z51.object({
|
|
2698
|
+
id: z51.string(),
|
|
2699
|
+
selectedThemeIds: z51.string().array()
|
|
2700
|
+
});
|
|
2701
|
+
var PageBlockItemTokenValue = z51.object({
|
|
2702
|
+
selectedPropertyIds: z51.array(z51.string()).optional(),
|
|
2703
|
+
selectedThemeIds: z51.array(z51.string()).optional(),
|
|
2704
|
+
swatches: z51.array(PageBlockItemSwatch).optional(),
|
|
2691
2705
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
2692
2706
|
tokenNameFormat: PageBlockTokenNameFormat.optional(),
|
|
2693
|
-
tokenNameCustomPropertyId:
|
|
2707
|
+
tokenNameCustomPropertyId: z51.string().optional(),
|
|
2694
2708
|
tokenValueFormat: PageBlockTokenValueFormat.optional(),
|
|
2695
|
-
value:
|
|
2696
|
-
|
|
2697
|
-
entityId:
|
|
2698
|
-
entityType:
|
|
2699
|
-
entityMeta:
|
|
2700
|
-
showNestedGroups:
|
|
2709
|
+
value: z51.array(
|
|
2710
|
+
z51.object({
|
|
2711
|
+
entityId: z51.string(),
|
|
2712
|
+
entityType: z51.enum(["Token", "TokenGroup"]),
|
|
2713
|
+
entityMeta: z51.object({
|
|
2714
|
+
showNestedGroups: z51.boolean().optional()
|
|
2701
2715
|
}).optional()
|
|
2702
2716
|
})
|
|
2703
2717
|
).default([])
|
|
2704
2718
|
});
|
|
2705
|
-
var PageBlockItemFileValue =
|
|
2706
|
-
value:
|
|
2707
|
-
entityId:
|
|
2708
|
-
entityMeta:
|
|
2709
|
-
title:
|
|
2710
|
-
description:
|
|
2719
|
+
var PageBlockItemFileValue = z51.object({
|
|
2720
|
+
value: z51.object({
|
|
2721
|
+
entityId: z51.string(),
|
|
2722
|
+
entityMeta: z51.object({
|
|
2723
|
+
title: z51.string().optional(),
|
|
2724
|
+
description: z51.string().optional()
|
|
2711
2725
|
}).optional()
|
|
2712
2726
|
}).array()
|
|
2713
2727
|
});
|
|
2714
|
-
var PageBlockItemTokenPropertyValue =
|
|
2715
|
-
selectedPropertyIds:
|
|
2716
|
-
selectedThemeIds:
|
|
2717
|
-
value:
|
|
2728
|
+
var PageBlockItemTokenPropertyValue = z51.object({
|
|
2729
|
+
selectedPropertyIds: z51.array(z51.string()).optional(),
|
|
2730
|
+
selectedThemeIds: z51.array(z51.string()).optional(),
|
|
2731
|
+
value: z51.array(z51.string()).default([])
|
|
2718
2732
|
});
|
|
2719
|
-
var PageBlockItemTokenTypeValue =
|
|
2720
|
-
value:
|
|
2733
|
+
var PageBlockItemTokenTypeValue = z51.object({
|
|
2734
|
+
value: z51.array(DesignTokenType).default([])
|
|
2721
2735
|
});
|
|
2722
|
-
var PageBlockItemUrlValue =
|
|
2723
|
-
value:
|
|
2736
|
+
var PageBlockItemUrlValue = z51.object({
|
|
2737
|
+
value: z51.string()
|
|
2724
2738
|
});
|
|
2725
|
-
var PageBlockItemRichTextEditorParagraphNode =
|
|
2726
|
-
type:
|
|
2739
|
+
var PageBlockItemRichTextEditorParagraphNode = z51.object({
|
|
2740
|
+
type: z51.literal("Paragraph"),
|
|
2727
2741
|
value: PageBlockItemRichTextValue.shape.value
|
|
2728
2742
|
});
|
|
2729
|
-
var PageBlockItemRichTextEditorListNode =
|
|
2730
|
-
type:
|
|
2743
|
+
var PageBlockItemRichTextEditorListNode = z51.object({
|
|
2744
|
+
type: z51.literal("List"),
|
|
2731
2745
|
listType: PageBlockDefinitionMultiRichTextPropertyStyle,
|
|
2732
2746
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
2733
2747
|
});
|
|
2734
|
-
var PageBlockItemRichTextEditorNode =
|
|
2748
|
+
var PageBlockItemRichTextEditorNode = z51.discriminatedUnion("type", [
|
|
2735
2749
|
PageBlockItemRichTextEditorParagraphNode,
|
|
2736
2750
|
PageBlockItemRichTextEditorListNode
|
|
2737
2751
|
]);
|
|
2738
|
-
var PageBlockItemRichTextEditorValue =
|
|
2752
|
+
var PageBlockItemRichTextEditorValue = z51.object({
|
|
2739
2753
|
value: PageBlockItemRichTextEditorNode.array()
|
|
2740
2754
|
});
|
|
2741
|
-
var PageBlockItemTableRichTextNode =
|
|
2742
|
-
type:
|
|
2743
|
-
id:
|
|
2755
|
+
var PageBlockItemTableRichTextNode = z51.object({
|
|
2756
|
+
type: z51.literal("RichText"),
|
|
2757
|
+
id: z51.string(),
|
|
2744
2758
|
value: PageBlockItemRichTextValue.shape.value
|
|
2745
2759
|
});
|
|
2746
|
-
var PageBlockItemTableImageNode =
|
|
2747
|
-
type:
|
|
2748
|
-
id:
|
|
2760
|
+
var PageBlockItemTableImageNode = z51.object({
|
|
2761
|
+
type: z51.literal("Image"),
|
|
2762
|
+
id: z51.string(),
|
|
2749
2763
|
caption: PageBlockItemImageValue.shape.caption,
|
|
2750
2764
|
alt: PageBlockItemImageValue.shape.alt,
|
|
2751
2765
|
value: PageBlockItemImageValue.shape.value,
|
|
@@ -2753,24 +2767,24 @@ var PageBlockItemTableImageNode = z50.object({
|
|
|
2753
2767
|
openLightbox: PageBlockItemImageValue.shape.openLightbox,
|
|
2754
2768
|
isBordered: PageBlockItemImageValue.shape.isBordered
|
|
2755
2769
|
});
|
|
2756
|
-
var PageBlockItemTableNode =
|
|
2770
|
+
var PageBlockItemTableNode = z51.discriminatedUnion("type", [
|
|
2757
2771
|
PageBlockItemTableRichTextNode,
|
|
2758
2772
|
PageBlockItemTableImageNode
|
|
2759
2773
|
]);
|
|
2760
|
-
var PageBlockItemTableCell =
|
|
2761
|
-
id:
|
|
2762
|
-
nodes:
|
|
2763
|
-
columnWidth:
|
|
2774
|
+
var PageBlockItemTableCell = z51.object({
|
|
2775
|
+
id: z51.string(),
|
|
2776
|
+
nodes: z51.array(PageBlockItemTableNode),
|
|
2777
|
+
columnWidth: z51.number().optional(),
|
|
2764
2778
|
alignment: PageBlockTableCellAlignment
|
|
2765
2779
|
});
|
|
2766
|
-
var PageBlockItemTableRow =
|
|
2767
|
-
cells:
|
|
2780
|
+
var PageBlockItemTableRow = z51.object({
|
|
2781
|
+
cells: z51.array(PageBlockItemTableCell)
|
|
2768
2782
|
});
|
|
2769
|
-
var PageBlockItemTableValue =
|
|
2770
|
-
highlightHeaderColumn:
|
|
2771
|
-
highlightHeaderRow:
|
|
2772
|
-
showBorder:
|
|
2773
|
-
value:
|
|
2783
|
+
var PageBlockItemTableValue = z51.object({
|
|
2784
|
+
highlightHeaderColumn: z51.boolean().optional(),
|
|
2785
|
+
highlightHeaderRow: z51.boolean().optional(),
|
|
2786
|
+
showBorder: z51.boolean().optional(),
|
|
2787
|
+
value: z51.array(PageBlockItemTableRow).default([])
|
|
2774
2788
|
});
|
|
2775
2789
|
function storybookValueFromOldValue(oldValue) {
|
|
2776
2790
|
return {
|
|
@@ -2792,20 +2806,20 @@ function storybookValueFromOldValue(oldValue) {
|
|
|
2792
2806
|
]
|
|
2793
2807
|
};
|
|
2794
2808
|
}
|
|
2795
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
2796
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
2809
|
+
var DocumentationItemHeaderAlignmentSchema = z52.enum(["Left", "Center"]);
|
|
2810
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z52.enum(["AspectFill", "AspectFit"]);
|
|
2797
2811
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
2798
2812
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
2799
|
-
var DocumentationItemHeaderV1 =
|
|
2800
|
-
description:
|
|
2813
|
+
var DocumentationItemHeaderV1 = z53.object({
|
|
2814
|
+
description: z53.string(),
|
|
2801
2815
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2802
2816
|
foregroundColor: ColorTokenData.nullish(),
|
|
2803
2817
|
backgroundColor: ColorTokenData.nullish(),
|
|
2804
2818
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
2805
2819
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2806
|
-
showBackgroundOverlay:
|
|
2807
|
-
showCoverText:
|
|
2808
|
-
minHeight:
|
|
2820
|
+
showBackgroundOverlay: z53.boolean(),
|
|
2821
|
+
showCoverText: z53.boolean(),
|
|
2822
|
+
minHeight: z53.number().nullish()
|
|
2809
2823
|
});
|
|
2810
2824
|
var defaultDocumentationItemHeaderV1 = {
|
|
2811
2825
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2814,26 +2828,26 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
2814
2828
|
showBackgroundOverlay: false,
|
|
2815
2829
|
showCoverText: true
|
|
2816
2830
|
};
|
|
2817
|
-
var DocumentationItemConfigurationV1 =
|
|
2818
|
-
showSidebar:
|
|
2819
|
-
isPrivate:
|
|
2820
|
-
isHidden:
|
|
2831
|
+
var DocumentationItemConfigurationV1 = z54.object({
|
|
2832
|
+
showSidebar: z54.boolean(),
|
|
2833
|
+
isPrivate: z54.boolean().optional(),
|
|
2834
|
+
isHidden: z54.boolean().optional(),
|
|
2821
2835
|
header: DocumentationItemHeaderV1
|
|
2822
2836
|
});
|
|
2823
|
-
var DocumentationPageDataV1 =
|
|
2824
|
-
blocks:
|
|
2837
|
+
var DocumentationPageDataV1 = z55.object({
|
|
2838
|
+
blocks: z55.array(PageBlockV1),
|
|
2825
2839
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
2826
2840
|
});
|
|
2827
|
-
var DocumentationItemHeaderV2 =
|
|
2828
|
-
description:
|
|
2841
|
+
var DocumentationItemHeaderV2 = z56.object({
|
|
2842
|
+
description: z56.string(),
|
|
2829
2843
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
2830
2844
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
2831
2845
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
2832
2846
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
2833
2847
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
2834
|
-
showBackgroundOverlay:
|
|
2835
|
-
showCoverText:
|
|
2836
|
-
minHeight:
|
|
2848
|
+
showBackgroundOverlay: z56.boolean(),
|
|
2849
|
+
showCoverText: z56.boolean(),
|
|
2850
|
+
minHeight: z56.number().nullish()
|
|
2837
2851
|
});
|
|
2838
2852
|
var defaultDocumentationItemHeaderV2 = {
|
|
2839
2853
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -2842,10 +2856,10 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
2842
2856
|
showBackgroundOverlay: false,
|
|
2843
2857
|
showCoverText: true
|
|
2844
2858
|
};
|
|
2845
|
-
var DocumentationItemConfigurationV2 =
|
|
2846
|
-
showSidebar:
|
|
2847
|
-
isPrivate:
|
|
2848
|
-
isHidden:
|
|
2859
|
+
var DocumentationItemConfigurationV2 = z57.object({
|
|
2860
|
+
showSidebar: z57.boolean(),
|
|
2861
|
+
isPrivate: z57.boolean().optional(),
|
|
2862
|
+
isHidden: z57.boolean().optional(),
|
|
2849
2863
|
header: DocumentationItemHeaderV2
|
|
2850
2864
|
});
|
|
2851
2865
|
var defaultDocumentationItemConfigurationV2 = {
|
|
@@ -2854,200 +2868,200 @@ var defaultDocumentationItemConfigurationV2 = {
|
|
|
2854
2868
|
isPrivate: false,
|
|
2855
2869
|
showSidebar: true
|
|
2856
2870
|
};
|
|
2857
|
-
var DocumentationPageDataV2 =
|
|
2871
|
+
var DocumentationPageDataV2 = z58.object({
|
|
2858
2872
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
2859
2873
|
});
|
|
2860
|
-
var DesignElementOrigin =
|
|
2861
|
-
id:
|
|
2862
|
-
sourceId:
|
|
2863
|
-
name:
|
|
2874
|
+
var DesignElementOrigin = z59.object({
|
|
2875
|
+
id: z59.string(),
|
|
2876
|
+
sourceId: z59.string(),
|
|
2877
|
+
name: z59.string()
|
|
2864
2878
|
});
|
|
2865
|
-
var DesignElementBase =
|
|
2866
|
-
id:
|
|
2867
|
-
persistentId:
|
|
2879
|
+
var DesignElementBase = z59.object({
|
|
2880
|
+
id: z59.string(),
|
|
2881
|
+
persistentId: z59.string(),
|
|
2868
2882
|
meta: ObjectMeta,
|
|
2869
|
-
designSystemVersionId:
|
|
2870
|
-
createdAt:
|
|
2871
|
-
updatedAt:
|
|
2883
|
+
designSystemVersionId: z59.string(),
|
|
2884
|
+
createdAt: z59.coerce.date(),
|
|
2885
|
+
updatedAt: z59.coerce.date()
|
|
2872
2886
|
});
|
|
2873
2887
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
2874
2888
|
origin: DesignElementOrigin
|
|
2875
2889
|
});
|
|
2876
|
-
var DesignElementGroupablePart =
|
|
2877
|
-
parentPersistentId:
|
|
2878
|
-
sortOrder:
|
|
2890
|
+
var DesignElementGroupablePart = z59.object({
|
|
2891
|
+
parentPersistentId: z59.string().optional(),
|
|
2892
|
+
sortOrder: z59.number()
|
|
2879
2893
|
});
|
|
2880
2894
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
2881
2895
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
2882
|
-
parentPersistentId:
|
|
2896
|
+
parentPersistentId: z59.string()
|
|
2883
2897
|
});
|
|
2884
|
-
var DesignElementBrandedPart =
|
|
2885
|
-
brandPersistentId:
|
|
2898
|
+
var DesignElementBrandedPart = z59.object({
|
|
2899
|
+
brandPersistentId: z59.string()
|
|
2886
2900
|
});
|
|
2887
|
-
var DesignElementSlugPart =
|
|
2888
|
-
slug:
|
|
2889
|
-
userSlug:
|
|
2901
|
+
var DesignElementSlugPart = z59.object({
|
|
2902
|
+
slug: z59.string().optional(),
|
|
2903
|
+
userSlug: z59.string().optional()
|
|
2890
2904
|
});
|
|
2891
2905
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
2892
2906
|
data: PageBlockDataV2
|
|
2893
2907
|
});
|
|
2894
|
-
var PageBlockEditorModelV2 =
|
|
2895
|
-
id: z59.string(),
|
|
2896
|
-
type: z59.literal("Block"),
|
|
2897
|
-
data: PageBlockDataV2
|
|
2898
|
-
});
|
|
2899
|
-
var PageSectionTypeV2 = z60.enum(["Tabs"]);
|
|
2900
|
-
var PageSectionColumnV2 = z60.object({
|
|
2908
|
+
var PageBlockEditorModelV2 = z60.object({
|
|
2901
2909
|
id: z60.string(),
|
|
2902
|
-
|
|
2910
|
+
type: z60.literal("Block"),
|
|
2911
|
+
data: PageBlockDataV2
|
|
2903
2912
|
});
|
|
2904
|
-
var
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
});
|
|
2909
|
-
var
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2913
|
+
var PageSectionTypeV2 = z61.enum(["Tabs"]);
|
|
2914
|
+
var PageSectionColumnV2 = z61.object({
|
|
2915
|
+
id: z61.string(),
|
|
2916
|
+
blocks: z61.array(PageBlockEditorModelV2)
|
|
2917
|
+
});
|
|
2918
|
+
var PageSectionItemV2 = z61.object({
|
|
2919
|
+
id: z61.string(),
|
|
2920
|
+
title: z61.string(),
|
|
2921
|
+
columns: z61.array(PageSectionColumnV2)
|
|
2922
|
+
});
|
|
2923
|
+
var PageSectionPaddingV2 = z61.object({
|
|
2924
|
+
top: z61.number().optional(),
|
|
2925
|
+
bottom: z61.number().optional(),
|
|
2926
|
+
left: z61.number().optional(),
|
|
2927
|
+
right: z61.number().optional()
|
|
2928
|
+
});
|
|
2929
|
+
var PageSectionAppearanceV2 = z61.object({
|
|
2930
|
+
expandToEdges: z61.boolean(),
|
|
2931
|
+
contentExpandToEdges: z61.boolean(),
|
|
2918
2932
|
backgroundColor: PageBlockColorV2.optional(),
|
|
2919
2933
|
foregroundColor: PageBlockColorV2.optional(),
|
|
2920
2934
|
padding: PageSectionPaddingV2.optional()
|
|
2921
2935
|
});
|
|
2922
|
-
var PageSectionEditorModelV2 =
|
|
2923
|
-
id:
|
|
2924
|
-
type:
|
|
2925
|
-
variantId:
|
|
2936
|
+
var PageSectionEditorModelV2 = z61.object({
|
|
2937
|
+
id: z61.string(),
|
|
2938
|
+
type: z61.literal("Section"),
|
|
2939
|
+
variantId: z61.string().optional(),
|
|
2926
2940
|
sectionType: PageSectionTypeV2,
|
|
2927
2941
|
appearance: PageSectionAppearanceV2,
|
|
2928
|
-
items:
|
|
2942
|
+
items: z61.array(PageSectionItemV2)
|
|
2929
2943
|
});
|
|
2930
|
-
var DurationUnit =
|
|
2931
|
-
var DurationValue =
|
|
2944
|
+
var DurationUnit = z62.enum(["Ms"]);
|
|
2945
|
+
var DurationValue = z62.object({
|
|
2932
2946
|
unit: DimensionUnit,
|
|
2933
|
-
measure:
|
|
2947
|
+
measure: z62.number()
|
|
2934
2948
|
});
|
|
2935
2949
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
2936
|
-
var FigmaFileStructureNodeType =
|
|
2937
|
-
var FigmaFileStructureNodeBase =
|
|
2938
|
-
id:
|
|
2939
|
-
name:
|
|
2950
|
+
var FigmaFileStructureNodeType = z63.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
2951
|
+
var FigmaFileStructureNodeBase = z63.object({
|
|
2952
|
+
id: z63.string(),
|
|
2953
|
+
name: z63.string(),
|
|
2940
2954
|
type: FigmaFileStructureNodeType,
|
|
2941
2955
|
size: SizeOrUndefined,
|
|
2942
|
-
parentComponentSetId:
|
|
2956
|
+
parentComponentSetId: z63.string().optional()
|
|
2943
2957
|
});
|
|
2944
2958
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
2945
|
-
children:
|
|
2959
|
+
children: z63.lazy(() => FigmaFileStructureNode.array())
|
|
2946
2960
|
});
|
|
2947
|
-
var FigmaFileStructureStatistics =
|
|
2948
|
-
frames:
|
|
2949
|
-
components:
|
|
2950
|
-
componentSets:
|
|
2961
|
+
var FigmaFileStructureStatistics = z63.object({
|
|
2962
|
+
frames: z63.number().nullable().optional().transform((v) => v ?? 0),
|
|
2963
|
+
components: z63.number().nullable().optional().transform((v) => v ?? 0),
|
|
2964
|
+
componentSets: z63.number().nullable().optional().transform((v) => v ?? 0)
|
|
2951
2965
|
});
|
|
2952
|
-
var FigmaFileStructureElementData =
|
|
2953
|
-
value:
|
|
2966
|
+
var FigmaFileStructureElementData = z63.object({
|
|
2967
|
+
value: z63.object({
|
|
2954
2968
|
structure: FigmaFileStructureNode,
|
|
2955
2969
|
assetsInFile: FigmaFileStructureStatistics
|
|
2956
2970
|
})
|
|
2957
2971
|
});
|
|
2958
|
-
var FigmaNodeRenderState =
|
|
2959
|
-
var FigmaNodeRenderFormat =
|
|
2960
|
-
var FigmaNodeRenderErrorType =
|
|
2961
|
-
var FigmaNodeRelinkData =
|
|
2962
|
-
fileId:
|
|
2972
|
+
var FigmaNodeRenderState = z64.enum(["InProgress", "Success", "Failed"]);
|
|
2973
|
+
var FigmaNodeRenderFormat = z64.enum(["Png", "Svg"]);
|
|
2974
|
+
var FigmaNodeRenderErrorType = z64.enum(["MissingIntegration", "NodeNotFound", "RenderError"]);
|
|
2975
|
+
var FigmaNodeRelinkData = z64.object({
|
|
2976
|
+
fileId: z64.string()
|
|
2963
2977
|
});
|
|
2964
|
-
var FigmaNodeRenderedImage =
|
|
2965
|
-
resourceId:
|
|
2978
|
+
var FigmaNodeRenderedImage = z64.object({
|
|
2979
|
+
resourceId: z64.string(),
|
|
2966
2980
|
format: FigmaNodeRenderFormat,
|
|
2967
|
-
scale: nullishToOptional(
|
|
2968
|
-
width: nullishToOptional(
|
|
2969
|
-
height: nullishToOptional(
|
|
2970
|
-
url: nullishToOptional(
|
|
2971
|
-
originKey: nullishToOptional(
|
|
2981
|
+
scale: nullishToOptional(z64.number()),
|
|
2982
|
+
width: nullishToOptional(z64.number()),
|
|
2983
|
+
height: nullishToOptional(z64.number()),
|
|
2984
|
+
url: nullishToOptional(z64.string()),
|
|
2985
|
+
originKey: nullishToOptional(z64.string())
|
|
2972
2986
|
});
|
|
2973
|
-
var FigmaNodeRenderError =
|
|
2987
|
+
var FigmaNodeRenderError = z64.object({
|
|
2974
2988
|
type: FigmaNodeRenderErrorType
|
|
2975
2989
|
});
|
|
2976
|
-
var FigmaNodeReferenceData =
|
|
2977
|
-
sceneNodeId:
|
|
2990
|
+
var FigmaNodeReferenceData = z64.object({
|
|
2991
|
+
sceneNodeId: z64.string(),
|
|
2978
2992
|
format: FigmaNodeRenderFormat,
|
|
2979
|
-
scale: nullishToOptional(
|
|
2993
|
+
scale: nullishToOptional(z64.number()),
|
|
2980
2994
|
renderState: FigmaNodeRenderState,
|
|
2981
2995
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
2982
2996
|
renderError: FigmaNodeRenderError.optional(),
|
|
2983
|
-
hasSource:
|
|
2997
|
+
hasSource: z64.boolean(),
|
|
2984
2998
|
relinkData: FigmaNodeRelinkData.optional()
|
|
2985
2999
|
});
|
|
2986
|
-
var FontFamilyValue =
|
|
3000
|
+
var FontFamilyValue = z65.string();
|
|
2987
3001
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
2988
|
-
var FontSizeUnit =
|
|
2989
|
-
var FontSizeValue =
|
|
3002
|
+
var FontSizeUnit = z66.enum(["Pixels", "Rem", "Percent"]);
|
|
3003
|
+
var FontSizeValue = z66.object({
|
|
2990
3004
|
unit: DimensionUnit,
|
|
2991
|
-
measure:
|
|
3005
|
+
measure: z66.number()
|
|
2992
3006
|
});
|
|
2993
3007
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
2994
|
-
var FontWeightValue =
|
|
3008
|
+
var FontWeightValue = z67.string();
|
|
2995
3009
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
2996
|
-
var FontValue =
|
|
3010
|
+
var FontValue = z68.unknown();
|
|
2997
3011
|
var FontTokenData = tokenAliasOrValue(FontValue);
|
|
2998
|
-
var GradientType =
|
|
2999
|
-
var GradientStop =
|
|
3000
|
-
position:
|
|
3012
|
+
var GradientType = z69.enum(["Linear", "Radial", "Angular"]);
|
|
3013
|
+
var GradientStop = z69.object({
|
|
3014
|
+
position: z69.number(),
|
|
3001
3015
|
color: ColorTokenData
|
|
3002
3016
|
});
|
|
3003
|
-
var GradientLayerValue =
|
|
3017
|
+
var GradientLayerValue = z69.object({
|
|
3004
3018
|
from: Point2D,
|
|
3005
3019
|
to: Point2D,
|
|
3006
3020
|
type: GradientType,
|
|
3007
|
-
aspectRatio: nullishToOptional(
|
|
3021
|
+
aspectRatio: nullishToOptional(z69.number()),
|
|
3008
3022
|
// z.number(),
|
|
3009
|
-
stops:
|
|
3023
|
+
stops: z69.array(GradientStop).min(2)
|
|
3010
3024
|
});
|
|
3011
3025
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
3012
|
-
var GradientTokenValue =
|
|
3026
|
+
var GradientTokenValue = z69.array(GradientLayerData);
|
|
3013
3027
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
3014
|
-
var DocumentationGroupBehavior =
|
|
3015
|
-
var ElementGroupDataV1 =
|
|
3028
|
+
var DocumentationGroupBehavior = z70.enum(["Group", "Tabs"]);
|
|
3029
|
+
var ElementGroupDataV1 = z70.object({
|
|
3016
3030
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
3017
3031
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
3018
3032
|
});
|
|
3019
|
-
var ElementGroupDataV2 =
|
|
3033
|
+
var ElementGroupDataV2 = z70.object({
|
|
3020
3034
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
3021
3035
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
3022
3036
|
});
|
|
3023
|
-
var LetterSpacingUnit =
|
|
3024
|
-
var LetterSpacingValue =
|
|
3037
|
+
var LetterSpacingUnit = z71.enum(["Pixels", "Rem", "Percent"]);
|
|
3038
|
+
var LetterSpacingValue = z71.object({
|
|
3025
3039
|
unit: DimensionUnit,
|
|
3026
|
-
measure:
|
|
3040
|
+
measure: z71.number()
|
|
3027
3041
|
});
|
|
3028
3042
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
3029
|
-
var LineHeightUnit =
|
|
3030
|
-
var LineHeightValue =
|
|
3043
|
+
var LineHeightUnit = z72.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
3044
|
+
var LineHeightValue = z72.object({
|
|
3031
3045
|
unit: DimensionUnit,
|
|
3032
|
-
measure:
|
|
3046
|
+
measure: z72.number()
|
|
3033
3047
|
});
|
|
3034
3048
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
3035
|
-
var ParagraphIndentUnit =
|
|
3036
|
-
var ParagraphIndentValue =
|
|
3049
|
+
var ParagraphIndentUnit = z73.enum(["Pixels", "Rem", "Percent"]);
|
|
3050
|
+
var ParagraphIndentValue = z73.object({
|
|
3037
3051
|
unit: DimensionUnit,
|
|
3038
|
-
measure:
|
|
3052
|
+
measure: z73.number()
|
|
3039
3053
|
});
|
|
3040
3054
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
3041
|
-
var ParagraphSpacingUnit =
|
|
3042
|
-
var ParagraphSpacingValue =
|
|
3055
|
+
var ParagraphSpacingUnit = z74.enum(["Pixels", "Rem", "Percent"]);
|
|
3056
|
+
var ParagraphSpacingValue = z74.object({
|
|
3043
3057
|
unit: DimensionUnit,
|
|
3044
|
-
measure:
|
|
3058
|
+
measure: z74.number()
|
|
3045
3059
|
});
|
|
3046
3060
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
3047
|
-
var ProductCopyValue =
|
|
3061
|
+
var ProductCopyValue = z75.string();
|
|
3048
3062
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
3049
3063
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
3050
|
-
var SafeIdSchema =
|
|
3064
|
+
var SafeIdSchema = z76.string().refine(
|
|
3051
3065
|
(value) => {
|
|
3052
3066
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
3053
3067
|
},
|
|
@@ -3055,40 +3069,40 @@ var SafeIdSchema = z75.string().refine(
|
|
|
3055
3069
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
3056
3070
|
}
|
|
3057
3071
|
);
|
|
3058
|
-
var ShadowType =
|
|
3059
|
-
var ShadowLayerValue =
|
|
3072
|
+
var ShadowType = z77.enum(["Drop", "Inner"]);
|
|
3073
|
+
var ShadowLayerValue = z77.object({
|
|
3060
3074
|
color: ColorTokenData,
|
|
3061
|
-
x:
|
|
3062
|
-
y:
|
|
3063
|
-
radius:
|
|
3064
|
-
spread:
|
|
3075
|
+
x: z77.number(),
|
|
3076
|
+
y: z77.number(),
|
|
3077
|
+
radius: z77.number(),
|
|
3078
|
+
spread: z77.number(),
|
|
3065
3079
|
opacity: OpacityTokenData.optional(),
|
|
3066
3080
|
type: ShadowType
|
|
3067
3081
|
});
|
|
3068
3082
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
3069
|
-
var ShadowValue =
|
|
3070
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
3071
|
-
var SizeUnit =
|
|
3072
|
-
var SizeValue =
|
|
3083
|
+
var ShadowValue = z77.array(ShadowTokenDataBase);
|
|
3084
|
+
var ShadowTokenData = tokenAliasOrValue(z77.array(ShadowTokenDataBase));
|
|
3085
|
+
var SizeUnit = z78.enum(["Pixels", "Rem", "Percent"]);
|
|
3086
|
+
var SizeValue = z78.object({
|
|
3073
3087
|
unit: DimensionUnit,
|
|
3074
|
-
measure:
|
|
3088
|
+
measure: z78.number()
|
|
3075
3089
|
});
|
|
3076
3090
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
3077
|
-
var SpaceUnit =
|
|
3078
|
-
var SpaceValue =
|
|
3091
|
+
var SpaceUnit = z79.enum(["Pixels", "Rem", "Percent"]);
|
|
3092
|
+
var SpaceValue = z79.object({
|
|
3079
3093
|
unit: DimensionUnit,
|
|
3080
|
-
measure:
|
|
3094
|
+
measure: z79.number()
|
|
3081
3095
|
});
|
|
3082
3096
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
3083
|
-
var StringValue =
|
|
3097
|
+
var StringValue = z80.string();
|
|
3084
3098
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
3085
|
-
var TextCase =
|
|
3099
|
+
var TextCase = z81.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
3086
3100
|
var TextCaseValue = TextCase;
|
|
3087
3101
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
3088
|
-
var TextDecoration =
|
|
3102
|
+
var TextDecoration = z82.enum(["None", "Underline", "Strikethrough"]);
|
|
3089
3103
|
var TextDecorationValue = TextDecoration;
|
|
3090
3104
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
3091
|
-
var TypographyValue =
|
|
3105
|
+
var TypographyValue = z83.object({
|
|
3092
3106
|
fontSize: FontSizeTokenData,
|
|
3093
3107
|
fontFamily: FontFamilyTokenData,
|
|
3094
3108
|
fontWeight: FontWeightTokenData,
|
|
@@ -3100,23 +3114,23 @@ var TypographyValue = z82.object({
|
|
|
3100
3114
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
3101
3115
|
});
|
|
3102
3116
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
3103
|
-
var Visibility =
|
|
3117
|
+
var Visibility = z84.enum(["Hidden", "Visible"]);
|
|
3104
3118
|
var VisibilityValue = Visibility;
|
|
3105
3119
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
3106
|
-
var ZIndexUnit =
|
|
3107
|
-
var ZIndexValue =
|
|
3120
|
+
var ZIndexUnit = z85.enum(["Raw"]);
|
|
3121
|
+
var ZIndexValue = z85.object({
|
|
3108
3122
|
unit: DimensionUnit,
|
|
3109
|
-
measure:
|
|
3123
|
+
measure: z85.number()
|
|
3110
3124
|
});
|
|
3111
3125
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
3112
3126
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
3113
|
-
shortPersistentId:
|
|
3127
|
+
shortPersistentId: z86.string().optional(),
|
|
3114
3128
|
childType: DesignElementType,
|
|
3115
3129
|
data: ElementGroupDataV2.optional()
|
|
3116
3130
|
});
|
|
3117
3131
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
3118
3132
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
3119
|
-
shortPersistentId:
|
|
3133
|
+
shortPersistentId: z87.string(),
|
|
3120
3134
|
data: DocumentationPageDataV1
|
|
3121
3135
|
});
|
|
3122
3136
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -3125,36 +3139,36 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
3125
3139
|
data: ElementGroupDataV1.optional()
|
|
3126
3140
|
});
|
|
3127
3141
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
3128
|
-
shortPersistentId:
|
|
3142
|
+
shortPersistentId: z88.string(),
|
|
3129
3143
|
data: DocumentationPageDataV2.extend({
|
|
3130
|
-
oldBlocks:
|
|
3144
|
+
oldBlocks: z88.array(PageBlockV1).optional()
|
|
3131
3145
|
})
|
|
3132
3146
|
});
|
|
3133
|
-
var FigmaComponentOriginPart =
|
|
3134
|
-
nodeId:
|
|
3135
|
-
width:
|
|
3136
|
-
height:
|
|
3147
|
+
var FigmaComponentOriginPart = z89.object({
|
|
3148
|
+
nodeId: z89.string().optional(),
|
|
3149
|
+
width: z89.number().optional(),
|
|
3150
|
+
height: z89.number().optional()
|
|
3137
3151
|
});
|
|
3138
|
-
var FigmaComponentAsset =
|
|
3139
|
-
assetId:
|
|
3140
|
-
assetPath:
|
|
3152
|
+
var FigmaComponentAsset = z89.object({
|
|
3153
|
+
assetId: z89.string(),
|
|
3154
|
+
assetPath: z89.string()
|
|
3141
3155
|
});
|
|
3142
3156
|
var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
|
|
3143
3157
|
var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
3144
3158
|
origin: FigmaComponentOrigin.optional(),
|
|
3145
3159
|
thumbnail: FigmaComponentAsset,
|
|
3146
3160
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3147
|
-
variantPropertyValues:
|
|
3161
|
+
variantPropertyValues: z89.record(z89.string()).optional(),
|
|
3148
3162
|
svg: FigmaComponentAsset.optional(),
|
|
3149
|
-
isAsset:
|
|
3150
|
-
parentComponentPersistentId: nullishToOptional(
|
|
3151
|
-
renderNodeId:
|
|
3163
|
+
isAsset: z89.boolean(),
|
|
3164
|
+
parentComponentPersistentId: nullishToOptional(z89.string()),
|
|
3165
|
+
renderNodeId: z89.string().optional()
|
|
3152
3166
|
});
|
|
3153
|
-
var FigmaFileStructureOrigin =
|
|
3154
|
-
sourceId:
|
|
3155
|
-
fileId:
|
|
3167
|
+
var FigmaFileStructureOrigin = z90.object({
|
|
3168
|
+
sourceId: z90.string(),
|
|
3169
|
+
fileId: z90.string().optional()
|
|
3156
3170
|
});
|
|
3157
|
-
var FigmaFileStructureData =
|
|
3171
|
+
var FigmaFileStructureData = z90.object({
|
|
3158
3172
|
rootNode: FigmaFileStructureNode,
|
|
3159
3173
|
assetsInFile: FigmaFileStructureStatistics
|
|
3160
3174
|
});
|
|
@@ -3162,28 +3176,28 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
3162
3176
|
origin: FigmaFileStructureOrigin,
|
|
3163
3177
|
data: FigmaFileStructureData
|
|
3164
3178
|
});
|
|
3165
|
-
var FigmaNodeReferenceOrigin =
|
|
3166
|
-
sourceId:
|
|
3167
|
-
parentName:
|
|
3179
|
+
var FigmaNodeReferenceOrigin = z91.object({
|
|
3180
|
+
sourceId: z91.string(),
|
|
3181
|
+
parentName: z91.string().optional()
|
|
3168
3182
|
});
|
|
3169
3183
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
3170
3184
|
data: FigmaNodeReferenceData,
|
|
3171
3185
|
origin: FigmaNodeReferenceOrigin
|
|
3172
3186
|
});
|
|
3173
|
-
var DesignTokenOriginPart =
|
|
3174
|
-
referenceOriginId:
|
|
3175
|
-
referenceOriginKey:
|
|
3176
|
-
referenceOriginName:
|
|
3177
|
-
referenceOriginRemote:
|
|
3178
|
-
referencePersistentId:
|
|
3179
|
-
referenceResolutionFailed:
|
|
3180
|
-
key:
|
|
3181
|
-
sortOrder:
|
|
3187
|
+
var DesignTokenOriginPart = z92.object({
|
|
3188
|
+
referenceOriginId: z92.string().optional(),
|
|
3189
|
+
referenceOriginKey: z92.string().optional(),
|
|
3190
|
+
referenceOriginName: z92.string().optional(),
|
|
3191
|
+
referenceOriginRemote: z92.boolean().optional(),
|
|
3192
|
+
referencePersistentId: z92.string().optional(),
|
|
3193
|
+
referenceResolutionFailed: z92.boolean().optional(),
|
|
3194
|
+
key: z92.string().optional(),
|
|
3195
|
+
sortOrder: z92.number().optional()
|
|
3182
3196
|
});
|
|
3183
3197
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
3184
3198
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
3185
3199
|
origin: DesignTokenOrigin.optional(),
|
|
3186
|
-
collectionPersistentId:
|
|
3200
|
+
collectionPersistentId: z92.string().optional()
|
|
3187
3201
|
});
|
|
3188
3202
|
var CreateDesignTokenBase = DesignTokenBase.omit(zodCreateInputOmit());
|
|
3189
3203
|
var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
@@ -3191,111 +3205,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
3191
3205
|
brandPersistentId: true,
|
|
3192
3206
|
designSystemVersionId: true
|
|
3193
3207
|
});
|
|
3194
|
-
var BlurTokenTypedData =
|
|
3195
|
-
type:
|
|
3208
|
+
var BlurTokenTypedData = z92.object({
|
|
3209
|
+
type: z92.literal("Blur"),
|
|
3196
3210
|
data: BlurTokenData
|
|
3197
3211
|
});
|
|
3198
|
-
var ColorTokenTypedData =
|
|
3199
|
-
type:
|
|
3212
|
+
var ColorTokenTypedData = z92.object({
|
|
3213
|
+
type: z92.literal("Color"),
|
|
3200
3214
|
data: ColorTokenData
|
|
3201
3215
|
});
|
|
3202
|
-
var GradientTokenTypedData =
|
|
3203
|
-
type:
|
|
3216
|
+
var GradientTokenTypedData = z92.object({
|
|
3217
|
+
type: z92.literal("Gradient"),
|
|
3204
3218
|
data: GradientTokenData
|
|
3205
3219
|
});
|
|
3206
|
-
var OpacityTokenTypedData =
|
|
3207
|
-
type:
|
|
3220
|
+
var OpacityTokenTypedData = z92.object({
|
|
3221
|
+
type: z92.literal("Opacity"),
|
|
3208
3222
|
data: OpacityTokenData
|
|
3209
3223
|
});
|
|
3210
|
-
var ShadowTokenTypedData =
|
|
3211
|
-
type:
|
|
3224
|
+
var ShadowTokenTypedData = z92.object({
|
|
3225
|
+
type: z92.literal("Shadow"),
|
|
3212
3226
|
data: ShadowTokenData
|
|
3213
3227
|
});
|
|
3214
|
-
var TypographyTokenTypedData =
|
|
3215
|
-
type:
|
|
3228
|
+
var TypographyTokenTypedData = z92.object({
|
|
3229
|
+
type: z92.literal("Typography"),
|
|
3216
3230
|
data: TypographyTokenData
|
|
3217
3231
|
});
|
|
3218
|
-
var StringTokenTypedData =
|
|
3219
|
-
type:
|
|
3232
|
+
var StringTokenTypedData = z92.object({
|
|
3233
|
+
type: z92.literal("String"),
|
|
3220
3234
|
data: StringTokenData
|
|
3221
3235
|
});
|
|
3222
|
-
var DimensionTokenTypedData =
|
|
3223
|
-
type:
|
|
3236
|
+
var DimensionTokenTypedData = z92.object({
|
|
3237
|
+
type: z92.literal("Dimension"),
|
|
3224
3238
|
data: DimensionTokenData
|
|
3225
3239
|
});
|
|
3226
|
-
var FontSizeTokenTypedData =
|
|
3227
|
-
type:
|
|
3240
|
+
var FontSizeTokenTypedData = z92.object({
|
|
3241
|
+
type: z92.literal("FontSize"),
|
|
3228
3242
|
data: FontSizeTokenData
|
|
3229
3243
|
});
|
|
3230
|
-
var FontFamilyTokenTypedData =
|
|
3231
|
-
type:
|
|
3244
|
+
var FontFamilyTokenTypedData = z92.object({
|
|
3245
|
+
type: z92.literal("FontFamily"),
|
|
3232
3246
|
data: FontFamilyTokenData
|
|
3233
3247
|
});
|
|
3234
|
-
var FontWeightTokenTypedData =
|
|
3235
|
-
type:
|
|
3248
|
+
var FontWeightTokenTypedData = z92.object({
|
|
3249
|
+
type: z92.literal("FontWeight"),
|
|
3236
3250
|
data: FontWeightTokenData
|
|
3237
3251
|
});
|
|
3238
|
-
var LetterSpacingTokenTypedData =
|
|
3239
|
-
type:
|
|
3252
|
+
var LetterSpacingTokenTypedData = z92.object({
|
|
3253
|
+
type: z92.literal("LetterSpacing"),
|
|
3240
3254
|
data: LetterSpacingTokenData
|
|
3241
3255
|
});
|
|
3242
|
-
var LineHeightTokenTypedData =
|
|
3243
|
-
type:
|
|
3256
|
+
var LineHeightTokenTypedData = z92.object({
|
|
3257
|
+
type: z92.literal("LineHeight"),
|
|
3244
3258
|
data: LineHeightTokenData
|
|
3245
3259
|
});
|
|
3246
|
-
var ParagraphSpacingTokenTypedData =
|
|
3247
|
-
type:
|
|
3260
|
+
var ParagraphSpacingTokenTypedData = z92.object({
|
|
3261
|
+
type: z92.literal("ParagraphSpacing"),
|
|
3248
3262
|
data: ParagraphSpacingTokenData
|
|
3249
3263
|
});
|
|
3250
|
-
var TextCaseTokenTypedData =
|
|
3251
|
-
type:
|
|
3264
|
+
var TextCaseTokenTypedData = z92.object({
|
|
3265
|
+
type: z92.literal("TextCase"),
|
|
3252
3266
|
data: TextCaseTokenData
|
|
3253
3267
|
});
|
|
3254
|
-
var TextDecorationTokenTypedData =
|
|
3255
|
-
type:
|
|
3268
|
+
var TextDecorationTokenTypedData = z92.object({
|
|
3269
|
+
type: z92.literal("TextDecoration"),
|
|
3256
3270
|
data: TextDecorationTokenData
|
|
3257
3271
|
});
|
|
3258
|
-
var BorderRadiusTokenTypedData =
|
|
3259
|
-
type:
|
|
3272
|
+
var BorderRadiusTokenTypedData = z92.object({
|
|
3273
|
+
type: z92.literal("BorderRadius"),
|
|
3260
3274
|
data: BorderRadiusTokenData
|
|
3261
3275
|
});
|
|
3262
|
-
var BorderWidthTokenTypedData =
|
|
3263
|
-
type:
|
|
3276
|
+
var BorderWidthTokenTypedData = z92.object({
|
|
3277
|
+
type: z92.literal("BorderWidth"),
|
|
3264
3278
|
data: BorderWidthTokenData
|
|
3265
3279
|
});
|
|
3266
|
-
var BorderTypedData =
|
|
3267
|
-
type:
|
|
3280
|
+
var BorderTypedData = z92.object({
|
|
3281
|
+
type: z92.literal("Border"),
|
|
3268
3282
|
data: BorderTokenData
|
|
3269
3283
|
});
|
|
3270
|
-
var ProductCopyTypedData =
|
|
3271
|
-
type:
|
|
3284
|
+
var ProductCopyTypedData = z92.object({
|
|
3285
|
+
type: z92.literal("ProductCopy"),
|
|
3272
3286
|
data: ProductCopyTokenData
|
|
3273
3287
|
});
|
|
3274
|
-
var SizeTypedData =
|
|
3275
|
-
type:
|
|
3288
|
+
var SizeTypedData = z92.object({
|
|
3289
|
+
type: z92.literal("Size"),
|
|
3276
3290
|
data: SizeTokenData
|
|
3277
3291
|
});
|
|
3278
|
-
var SpaceTypedData =
|
|
3279
|
-
type:
|
|
3292
|
+
var SpaceTypedData = z92.object({
|
|
3293
|
+
type: z92.literal("Space"),
|
|
3280
3294
|
data: SpaceTokenData
|
|
3281
3295
|
});
|
|
3282
|
-
var VisibilityTypedData =
|
|
3283
|
-
type:
|
|
3296
|
+
var VisibilityTypedData = z92.object({
|
|
3297
|
+
type: z92.literal("Visibility"),
|
|
3284
3298
|
data: VisibilityTokenData
|
|
3285
3299
|
});
|
|
3286
|
-
var ZIndexTypedData =
|
|
3287
|
-
type:
|
|
3300
|
+
var ZIndexTypedData = z92.object({
|
|
3301
|
+
type: z92.literal("ZIndex"),
|
|
3288
3302
|
data: ZIndexTokenData
|
|
3289
3303
|
});
|
|
3290
|
-
var DurationTypedData =
|
|
3291
|
-
type:
|
|
3304
|
+
var DurationTypedData = z92.object({
|
|
3305
|
+
type: z92.literal("Duration"),
|
|
3292
3306
|
data: DurationTokenData
|
|
3293
3307
|
});
|
|
3294
|
-
var FontTypedData =
|
|
3295
|
-
type:
|
|
3308
|
+
var FontTypedData = z92.object({
|
|
3309
|
+
type: z92.literal("Font"),
|
|
3296
3310
|
data: FontTokenData
|
|
3297
3311
|
});
|
|
3298
|
-
var DesignTokenTypedData =
|
|
3312
|
+
var DesignTokenTypedData = z92.discriminatedUnion("type", [
|
|
3299
3313
|
BlurTokenTypedData,
|
|
3300
3314
|
BorderRadiusTokenTypedData,
|
|
3301
3315
|
BorderWidthTokenTypedData,
|
|
@@ -3328,32 +3342,32 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
3328
3342
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
3329
3343
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
3330
3344
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
3331
|
-
|
|
3332
|
-
tokenPersistentId:
|
|
3345
|
+
z93.object({
|
|
3346
|
+
tokenPersistentId: z93.string(),
|
|
3333
3347
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
3334
3348
|
})
|
|
3335
3349
|
);
|
|
3336
|
-
var ThemeElementData =
|
|
3337
|
-
value:
|
|
3338
|
-
overrides:
|
|
3350
|
+
var ThemeElementData = z93.object({
|
|
3351
|
+
value: z93.object({
|
|
3352
|
+
overrides: z93.array(ThemeOverride)
|
|
3339
3353
|
})
|
|
3340
3354
|
});
|
|
3341
|
-
var ThemeOriginPart =
|
|
3342
|
-
var ThemeOriginObject =
|
|
3343
|
-
id:
|
|
3344
|
-
name:
|
|
3355
|
+
var ThemeOriginPart = z93.object({});
|
|
3356
|
+
var ThemeOriginObject = z93.object({
|
|
3357
|
+
id: z93.string(),
|
|
3358
|
+
name: z93.string()
|
|
3345
3359
|
});
|
|
3346
|
-
var ThemeOriginSource =
|
|
3347
|
-
sourceId:
|
|
3348
|
-
sourceObjects:
|
|
3360
|
+
var ThemeOriginSource = z93.object({
|
|
3361
|
+
sourceId: z93.string(),
|
|
3362
|
+
sourceObjects: z93.array(ThemeOriginObject)
|
|
3349
3363
|
});
|
|
3350
|
-
var ThemeOrigin =
|
|
3351
|
-
sources:
|
|
3364
|
+
var ThemeOrigin = z93.object({
|
|
3365
|
+
sources: z93.array(ThemeOriginSource)
|
|
3352
3366
|
});
|
|
3353
3367
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
3354
3368
|
origin: ThemeOrigin.optional(),
|
|
3355
|
-
overrides:
|
|
3356
|
-
codeName:
|
|
3369
|
+
overrides: z93.array(ThemeOverride),
|
|
3370
|
+
codeName: z93.string()
|
|
3357
3371
|
});
|
|
3358
3372
|
function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
3359
3373
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
@@ -3408,17 +3422,17 @@ var PageBlockDefinitionsMap = class {
|
|
|
3408
3422
|
return `${defId}.${propId}`;
|
|
3409
3423
|
}
|
|
3410
3424
|
};
|
|
3411
|
-
var FileStructureStats =
|
|
3425
|
+
var FileStructureStats = z94.object({
|
|
3412
3426
|
frames: zeroNumberByDefault(),
|
|
3413
3427
|
components: zeroNumberByDefault(),
|
|
3414
3428
|
componentSets: zeroNumberByDefault()
|
|
3415
3429
|
});
|
|
3416
3430
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
3417
3431
|
// Backward compatibility
|
|
3418
|
-
|
|
3432
|
+
z94.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
3419
3433
|
);
|
|
3420
|
-
var SourceImportSummaryByTokenType =
|
|
3421
|
-
var SourceImportTokenSummary =
|
|
3434
|
+
var SourceImportSummaryByTokenType = z94.record(SourceImportSummaryByTokenTypeKey, z94.number());
|
|
3435
|
+
var SourceImportTokenSummary = z94.object({
|
|
3422
3436
|
tokensCreated: zeroNumberByDefault(),
|
|
3423
3437
|
tokensUpdated: zeroNumberByDefault(),
|
|
3424
3438
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -3426,7 +3440,7 @@ var SourceImportTokenSummary = z93.object({
|
|
|
3426
3440
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
3427
3441
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
3428
3442
|
});
|
|
3429
|
-
var SourceImportComponentSummary =
|
|
3443
|
+
var SourceImportComponentSummary = z94.object({
|
|
3430
3444
|
componentsCreated: zeroNumberByDefault(),
|
|
3431
3445
|
componentsUpdated: zeroNumberByDefault(),
|
|
3432
3446
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -3434,187 +3448,187 @@ var SourceImportComponentSummary = z93.object({
|
|
|
3434
3448
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
3435
3449
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
3436
3450
|
});
|
|
3437
|
-
var SourceImportStorybookSummary =
|
|
3451
|
+
var SourceImportStorybookSummary = z94.object({
|
|
3438
3452
|
created: zeroNumberByDefault(),
|
|
3439
3453
|
updated: zeroNumberByDefault(),
|
|
3440
3454
|
deleted: zeroNumberByDefault()
|
|
3441
3455
|
});
|
|
3442
|
-
var SourceImportFrameSummary =
|
|
3456
|
+
var SourceImportFrameSummary = z94.object({
|
|
3443
3457
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
3444
|
-
invalidReferencesCount: nullishToOptional(
|
|
3445
|
-
});
|
|
3446
|
-
var SourceImportSummary =
|
|
3447
|
-
sourceId: nullishToOptional(
|
|
3448
|
-
brandId: nullishToOptional(
|
|
3449
|
-
versionId: nullishToOptional(
|
|
3450
|
-
error: nullishToOptional(
|
|
3451
|
-
isFailed:
|
|
3452
|
-
warnings:
|
|
3458
|
+
invalidReferencesCount: nullishToOptional(z94.number().optional())
|
|
3459
|
+
});
|
|
3460
|
+
var SourceImportSummary = z94.object({
|
|
3461
|
+
sourceId: nullishToOptional(z94.string()),
|
|
3462
|
+
brandId: nullishToOptional(z94.string()),
|
|
3463
|
+
versionId: nullishToOptional(z94.string()),
|
|
3464
|
+
error: nullishToOptional(z94.any()),
|
|
3465
|
+
isFailed: z94.boolean(),
|
|
3466
|
+
warnings: z94.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
3453
3467
|
...SourceImportTokenSummary.shape,
|
|
3454
3468
|
...SourceImportComponentSummary.shape,
|
|
3455
3469
|
...FileStructureStats.shape
|
|
3456
3470
|
});
|
|
3457
3471
|
function zeroNumberByDefault() {
|
|
3458
|
-
return
|
|
3472
|
+
return z94.number().nullish().transform((v) => v ?? 0);
|
|
3459
3473
|
}
|
|
3460
|
-
var DataSourceRemoteType =
|
|
3461
|
-
var DataSourceUploadRemoteSource =
|
|
3462
|
-
var DataSourceFigmaState =
|
|
3463
|
-
var DataSourceAutoImportMode =
|
|
3464
|
-
var DataSourceStats =
|
|
3474
|
+
var DataSourceRemoteType = z95.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
3475
|
+
var DataSourceUploadRemoteSource = z95.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3476
|
+
var DataSourceFigmaState = z95.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3477
|
+
var DataSourceAutoImportMode = z95.enum(["Never", "Hourly"]);
|
|
3478
|
+
var DataSourceStats = z95.object({
|
|
3465
3479
|
tokens: zeroNumberByDefault2(),
|
|
3466
3480
|
components: zeroNumberByDefault2(),
|
|
3467
3481
|
assets: zeroNumberByDefault2(),
|
|
3468
3482
|
frames: zeroNumberByDefault2()
|
|
3469
3483
|
});
|
|
3470
|
-
var DataSourceFigmaFileData =
|
|
3471
|
-
lastUpdatedAt:
|
|
3472
|
-
});
|
|
3473
|
-
var DataSourceFigmaFileVersionData = z94.object({
|
|
3474
|
-
id: z94.string(),
|
|
3475
|
-
label: z94.string().optional(),
|
|
3476
|
-
description: z94.string().optional(),
|
|
3477
|
-
createdAt: z94.coerce.date()
|
|
3478
|
-
});
|
|
3479
|
-
var DataSourceFigmaScope = z94.object({
|
|
3480
|
-
assets: z94.boolean(),
|
|
3481
|
-
components: z94.boolean(),
|
|
3482
|
-
documentationFrames: z94.boolean(),
|
|
3483
|
-
tokens: z94.boolean(),
|
|
3484
|
-
themePersistentId: z94.string().optional(),
|
|
3485
|
-
isUnpublishedContentFallbackEnabled: z94.boolean()
|
|
3484
|
+
var DataSourceFigmaFileData = z95.object({
|
|
3485
|
+
lastUpdatedAt: z95.coerce.date()
|
|
3486
3486
|
});
|
|
3487
|
-
var
|
|
3487
|
+
var DataSourceFigmaFileVersionData = z95.object({
|
|
3488
|
+
id: z95.string(),
|
|
3489
|
+
label: z95.string().optional(),
|
|
3490
|
+
description: z95.string().optional(),
|
|
3491
|
+
createdAt: z95.coerce.date()
|
|
3492
|
+
});
|
|
3493
|
+
var DataSourceFigmaScope = z95.object({
|
|
3494
|
+
assets: z95.boolean(),
|
|
3495
|
+
components: z95.boolean(),
|
|
3496
|
+
documentationFrames: z95.boolean(),
|
|
3497
|
+
tokens: z95.boolean(),
|
|
3498
|
+
themePersistentId: z95.string().optional(),
|
|
3499
|
+
isUnpublishedContentFallbackEnabled: z95.boolean()
|
|
3500
|
+
});
|
|
3501
|
+
var DataSourceFigmaImportMetadata = z95.object({
|
|
3488
3502
|
fileData: DataSourceFigmaFileData.optional(),
|
|
3489
3503
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
3490
3504
|
});
|
|
3491
|
-
var DataSourceFigmaRemote =
|
|
3492
|
-
type:
|
|
3493
|
-
fileId:
|
|
3494
|
-
preferredCredentialId:
|
|
3495
|
-
ownerId:
|
|
3505
|
+
var DataSourceFigmaRemote = z95.object({
|
|
3506
|
+
type: z95.literal(DataSourceRemoteType.Enum.Figma),
|
|
3507
|
+
fileId: z95.string(),
|
|
3508
|
+
preferredCredentialId: z95.string().optional(),
|
|
3509
|
+
ownerId: z95.string(),
|
|
3496
3510
|
// todo remove or keep to reference who created data source
|
|
3497
|
-
ownerName:
|
|
3511
|
+
ownerName: z95.string(),
|
|
3498
3512
|
// todo probably remove
|
|
3499
3513
|
scope: DataSourceFigmaScope,
|
|
3500
3514
|
state: DataSourceFigmaState,
|
|
3501
|
-
requiresSync:
|
|
3515
|
+
requiresSync: z95.boolean().optional().transform((v) => v ?? false),
|
|
3502
3516
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
3503
|
-
downloadChunkSize:
|
|
3504
|
-
figmaRenderChunkSize:
|
|
3505
|
-
maxFileDepth:
|
|
3517
|
+
downloadChunkSize: z95.number().optional(),
|
|
3518
|
+
figmaRenderChunkSize: z95.number().optional(),
|
|
3519
|
+
maxFileDepth: z95.number().optional()
|
|
3506
3520
|
});
|
|
3507
|
-
var DataSourceTokenStudioRemote =
|
|
3508
|
-
type:
|
|
3521
|
+
var DataSourceTokenStudioRemote = z95.object({
|
|
3522
|
+
type: z95.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
3509
3523
|
});
|
|
3510
|
-
var DataSourceUploadImportMetadata =
|
|
3511
|
-
var DataSourceUploadRemote =
|
|
3512
|
-
type:
|
|
3513
|
-
remoteId:
|
|
3524
|
+
var DataSourceUploadImportMetadata = z95.record(z95.any());
|
|
3525
|
+
var DataSourceUploadRemote = z95.object({
|
|
3526
|
+
type: z95.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
3527
|
+
remoteId: z95.string(),
|
|
3514
3528
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
3515
3529
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
3516
3530
|
warnings: nullishToOptional(ImportWarning.array()),
|
|
3517
|
-
isTokenTypeSplitEnabled:
|
|
3518
|
-
isCollectionsMigrationCompleted:
|
|
3519
|
-
});
|
|
3520
|
-
var DataSourceStorybookRemote =
|
|
3521
|
-
type:
|
|
3522
|
-
indexUrl:
|
|
3523
|
-
userUrl:
|
|
3524
|
-
ownerId:
|
|
3525
|
-
lastImportedAt:
|
|
3526
|
-
lastImportedSuccessfully:
|
|
3531
|
+
isTokenTypeSplitEnabled: z95.boolean(),
|
|
3532
|
+
isCollectionsMigrationCompleted: z95.boolean()
|
|
3533
|
+
});
|
|
3534
|
+
var DataSourceStorybookRemote = z95.object({
|
|
3535
|
+
type: z95.literal(DataSourceRemoteType.Enum.Storybook),
|
|
3536
|
+
indexUrl: z95.string(),
|
|
3537
|
+
userUrl: z95.string(),
|
|
3538
|
+
ownerId: z95.string().optional(),
|
|
3539
|
+
lastImportedAt: z95.coerce.date().optional(),
|
|
3540
|
+
lastImportedSuccessfully: z95.coerce.date().optional(),
|
|
3527
3541
|
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
3528
|
-
isFailed:
|
|
3529
|
-
storiesCount:
|
|
3530
|
-
docsCount:
|
|
3531
|
-
description:
|
|
3532
|
-
isUsingVpn:
|
|
3542
|
+
isFailed: z95.boolean(),
|
|
3543
|
+
storiesCount: z95.number(),
|
|
3544
|
+
docsCount: z95.number(),
|
|
3545
|
+
description: z95.string().optional(),
|
|
3546
|
+
isUsingVpn: z95.boolean().optional()
|
|
3533
3547
|
});
|
|
3534
|
-
var DataSourceRemote =
|
|
3548
|
+
var DataSourceRemote = z95.discriminatedUnion("type", [
|
|
3535
3549
|
DataSourceFigmaRemote,
|
|
3536
3550
|
DataSourceUploadRemote,
|
|
3537
3551
|
DataSourceTokenStudioRemote,
|
|
3538
3552
|
DataSourceStorybookRemote
|
|
3539
3553
|
]);
|
|
3540
|
-
var DataSource =
|
|
3541
|
-
id:
|
|
3542
|
-
name:
|
|
3543
|
-
thumbnailUrl:
|
|
3544
|
-
createdAt:
|
|
3545
|
-
lastImportedAt:
|
|
3554
|
+
var DataSource = z95.object({
|
|
3555
|
+
id: z95.string(),
|
|
3556
|
+
name: z95.string(),
|
|
3557
|
+
thumbnailUrl: z95.string().optional(),
|
|
3558
|
+
createdAt: z95.coerce.date().optional(),
|
|
3559
|
+
lastImportedAt: z95.coerce.date().optional(),
|
|
3546
3560
|
lastImportSummary: SourceImportSummary.optional(),
|
|
3547
|
-
designSystemId:
|
|
3548
|
-
brandPersistentId:
|
|
3561
|
+
designSystemId: z95.string(),
|
|
3562
|
+
brandPersistentId: z95.string(),
|
|
3549
3563
|
autoImportMode: DataSourceAutoImportMode,
|
|
3550
3564
|
stats: DataSourceStats,
|
|
3551
3565
|
remote: DataSourceRemote,
|
|
3552
|
-
sortOrder:
|
|
3566
|
+
sortOrder: z95.number()
|
|
3553
3567
|
});
|
|
3554
|
-
var DataSourceVersion =
|
|
3555
|
-
id:
|
|
3556
|
-
createdAt:
|
|
3557
|
-
label:
|
|
3558
|
-
description:
|
|
3568
|
+
var DataSourceVersion = z95.object({
|
|
3569
|
+
id: z95.string(),
|
|
3570
|
+
createdAt: z95.coerce.date(),
|
|
3571
|
+
label: z95.string().nullish(),
|
|
3572
|
+
description: z95.string().nullish()
|
|
3559
3573
|
});
|
|
3560
3574
|
function zeroNumberByDefault2() {
|
|
3561
|
-
return
|
|
3575
|
+
return z95.number().nullish().transform((v) => v ?? 0);
|
|
3562
3576
|
}
|
|
3563
|
-
var FigmaFile =
|
|
3564
|
-
id:
|
|
3565
|
-
name:
|
|
3566
|
-
lastModifiedAt:
|
|
3567
|
-
thumbnailUrl:
|
|
3568
|
-
});
|
|
3569
|
-
var ImportJobState =
|
|
3570
|
-
var ImportJobOperation =
|
|
3577
|
+
var FigmaFile = z96.object({
|
|
3578
|
+
id: z96.string(),
|
|
3579
|
+
name: z96.string(),
|
|
3580
|
+
lastModifiedAt: z96.coerce.date(),
|
|
3581
|
+
thumbnailUrl: z96.string().optional()
|
|
3582
|
+
});
|
|
3583
|
+
var ImportJobState = z97.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
3584
|
+
var ImportJobOperation = z97.enum(["Check", "Import"]);
|
|
3571
3585
|
var ImportJob = Entity.extend({
|
|
3572
|
-
designSystemId:
|
|
3573
|
-
designSystemVersionId:
|
|
3574
|
-
sourceIds:
|
|
3586
|
+
designSystemId: z97.string(),
|
|
3587
|
+
designSystemVersionId: z97.string(),
|
|
3588
|
+
sourceIds: z97.array(z97.string()),
|
|
3575
3589
|
state: ImportJobState,
|
|
3576
|
-
createdByUserId:
|
|
3577
|
-
importContextId:
|
|
3578
|
-
error:
|
|
3590
|
+
createdByUserId: z97.string().optional(),
|
|
3591
|
+
importContextId: z97.string(),
|
|
3592
|
+
error: z97.string().optional(),
|
|
3579
3593
|
sourceType: DataSourceRemoteType,
|
|
3580
|
-
importContextCleanedUp:
|
|
3594
|
+
importContextCleanedUp: z97.boolean()
|
|
3581
3595
|
});
|
|
3582
|
-
var ImportFunctionInput =
|
|
3583
|
-
importJobId:
|
|
3584
|
-
importContextId:
|
|
3585
|
-
designSystemId:
|
|
3596
|
+
var ImportFunctionInput = z98.object({
|
|
3597
|
+
importJobId: z98.string(),
|
|
3598
|
+
importContextId: z98.string(),
|
|
3599
|
+
designSystemId: z98.string()
|
|
3586
3600
|
});
|
|
3587
|
-
var ImportedFigmaSourceData =
|
|
3588
|
-
sourceId:
|
|
3601
|
+
var ImportedFigmaSourceData = z98.object({
|
|
3602
|
+
sourceId: z98.string(),
|
|
3589
3603
|
figmaRemote: DataSourceFigmaRemote
|
|
3590
3604
|
});
|
|
3591
|
-
var FigmaImportBaseContext =
|
|
3592
|
-
designSystemId:
|
|
3605
|
+
var FigmaImportBaseContext = z98.object({
|
|
3606
|
+
designSystemId: z98.string(),
|
|
3593
3607
|
/**
|
|
3594
3608
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
3595
3609
|
* mentioned in the `importedSourceDataBySourceId`
|
|
3596
3610
|
*
|
|
3597
3611
|
* fileId: file data
|
|
3598
3612
|
*/
|
|
3599
|
-
fileAccessByFileId:
|
|
3613
|
+
fileAccessByFileId: z98.record(FigmaFileAccessData),
|
|
3600
3614
|
/**
|
|
3601
3615
|
* Figma source data for which import was requested
|
|
3602
3616
|
*
|
|
3603
3617
|
* sourceId: source data
|
|
3604
3618
|
*/
|
|
3605
|
-
importedSourceDataBySourceId:
|
|
3619
|
+
importedSourceDataBySourceId: z98.record(ImportedFigmaSourceData),
|
|
3606
3620
|
/**
|
|
3607
3621
|
* Array of warnings that will be written into the import result summary at the end
|
|
3608
3622
|
* of import job execution and displayed by the client.
|
|
3609
3623
|
*/
|
|
3610
|
-
importWarnings:
|
|
3624
|
+
importWarnings: z98.record(ImportWarning.array()).default({})
|
|
3611
3625
|
});
|
|
3612
|
-
var FeatureFlagsKeepAliases =
|
|
3613
|
-
isNonCompatibleTypeChangesEnabled:
|
|
3614
|
-
isTypographyUseFontStyleEnabled:
|
|
3626
|
+
var FeatureFlagsKeepAliases = z98.object({
|
|
3627
|
+
isNonCompatibleTypeChangesEnabled: z98.boolean().default(false),
|
|
3628
|
+
isTypographyUseFontStyleEnabled: z98.boolean().default(false)
|
|
3615
3629
|
});
|
|
3616
3630
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3617
|
-
sourcesWithMissingAccess:
|
|
3631
|
+
sourcesWithMissingAccess: z98.array(z98.string()).default([]),
|
|
3618
3632
|
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
3619
3633
|
});
|
|
3620
3634
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
@@ -3627,25 +3641,25 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
3627
3641
|
*
|
|
3628
3642
|
* File id -> file download scope
|
|
3629
3643
|
*/
|
|
3630
|
-
fileDownloadScopesByFileId:
|
|
3644
|
+
fileDownloadScopesByFileId: z98.record(FigmaFileDownloadScope),
|
|
3631
3645
|
/**
|
|
3632
3646
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
3633
3647
|
* imported again.
|
|
3634
3648
|
*
|
|
3635
3649
|
* Source id -> import metadata
|
|
3636
3650
|
*/
|
|
3637
|
-
changedImportedSourceDataBySourceId:
|
|
3638
|
-
});
|
|
3639
|
-
var CollectionOrigin =
|
|
3640
|
-
id:
|
|
3641
|
-
sourceId:
|
|
3642
|
-
});
|
|
3643
|
-
var Collection =
|
|
3644
|
-
id:
|
|
3645
|
-
persistentId:
|
|
3646
|
-
designSystemVersionId:
|
|
3647
|
-
name:
|
|
3648
|
-
description:
|
|
3651
|
+
changedImportedSourceDataBySourceId: z98.record(ChangedImportedFigmaSourceData)
|
|
3652
|
+
});
|
|
3653
|
+
var CollectionOrigin = z99.object({
|
|
3654
|
+
id: z99.string(),
|
|
3655
|
+
sourceId: z99.string()
|
|
3656
|
+
});
|
|
3657
|
+
var Collection = z99.object({
|
|
3658
|
+
id: z99.string(),
|
|
3659
|
+
persistentId: z99.string(),
|
|
3660
|
+
designSystemVersionId: z99.string(),
|
|
3661
|
+
name: z99.string(),
|
|
3662
|
+
description: z99.string(),
|
|
3649
3663
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
3650
3664
|
/**
|
|
3651
3665
|
* ID of Select element property definition's option that corresponds to this collection.
|
|
@@ -3658,93 +3672,93 @@ var Collection = z98.object({
|
|
|
3658
3672
|
* can be selected (e.g. documentation blocks) with the concept of collection without having to add
|
|
3659
3673
|
* specific logic for collection selection.
|
|
3660
3674
|
*/
|
|
3661
|
-
elementPropertyOptionId:
|
|
3662
|
-
createdAt:
|
|
3663
|
-
updatedAt:
|
|
3664
|
-
sortOrder:
|
|
3675
|
+
elementPropertyOptionId: z99.string(),
|
|
3676
|
+
createdAt: z99.coerce.date(),
|
|
3677
|
+
updatedAt: z99.coerce.date(),
|
|
3678
|
+
sortOrder: z99.string(),
|
|
3665
3679
|
origin: CollectionOrigin.optional()
|
|
3666
3680
|
});
|
|
3667
|
-
var CollectionImportModelInput =
|
|
3668
|
-
id:
|
|
3669
|
-
name:
|
|
3681
|
+
var CollectionImportModelInput = z100.object({
|
|
3682
|
+
id: z100.string(),
|
|
3683
|
+
name: z100.string()
|
|
3670
3684
|
});
|
|
3671
|
-
var CollectionImportModel =
|
|
3672
|
-
id:
|
|
3673
|
-
name:
|
|
3685
|
+
var CollectionImportModel = z100.object({
|
|
3686
|
+
id: z100.string(),
|
|
3687
|
+
name: z100.string(),
|
|
3674
3688
|
origin: CollectionOrigin
|
|
3675
3689
|
});
|
|
3676
|
-
var ImportModelBase =
|
|
3677
|
-
id:
|
|
3690
|
+
var ImportModelBase = z101.object({
|
|
3691
|
+
id: z101.string(),
|
|
3678
3692
|
meta: ObjectMeta,
|
|
3679
3693
|
origin: DesignElementOrigin,
|
|
3680
|
-
brandPersistentId:
|
|
3681
|
-
sortOrder:
|
|
3694
|
+
brandPersistentId: z101.string(),
|
|
3695
|
+
sortOrder: z101.number()
|
|
3682
3696
|
});
|
|
3683
3697
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
3684
3698
|
brandPersistentId: true,
|
|
3685
3699
|
origin: true,
|
|
3686
3700
|
sortOrder: true
|
|
3687
3701
|
}).extend({
|
|
3688
|
-
originId:
|
|
3689
|
-
originMetadata:
|
|
3702
|
+
originId: z101.string(),
|
|
3703
|
+
originMetadata: z101.record(z101.any())
|
|
3690
3704
|
});
|
|
3691
|
-
var ImageImportModelType =
|
|
3692
|
-
var ImageImportModelBase =
|
|
3705
|
+
var ImageImportModelType = z102.enum(["Url", "FigmaRender"]);
|
|
3706
|
+
var ImageImportModelBase = z102.object({
|
|
3693
3707
|
scope: AssetScope
|
|
3694
3708
|
});
|
|
3695
3709
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
3696
|
-
type:
|
|
3697
|
-
url:
|
|
3698
|
-
originKey:
|
|
3699
|
-
extension:
|
|
3710
|
+
type: z102.literal(ImageImportModelType.enum.Url),
|
|
3711
|
+
url: z102.string(),
|
|
3712
|
+
originKey: z102.string(),
|
|
3713
|
+
extension: z102.string()
|
|
3700
3714
|
});
|
|
3701
|
-
var FigmaRenderFormat =
|
|
3715
|
+
var FigmaRenderFormat = z102.enum(["Svg", "Png", "Pdf"]);
|
|
3702
3716
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
3703
|
-
type:
|
|
3704
|
-
fileId:
|
|
3705
|
-
fileVersionId:
|
|
3706
|
-
nodeId:
|
|
3707
|
-
originKey:
|
|
3717
|
+
type: z102.literal(ImageImportModelType.enum.FigmaRender),
|
|
3718
|
+
fileId: z102.string(),
|
|
3719
|
+
fileVersionId: z102.string().optional(),
|
|
3720
|
+
nodeId: z102.string(),
|
|
3721
|
+
originKey: z102.string()
|
|
3708
3722
|
});
|
|
3709
3723
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
3710
|
-
format:
|
|
3711
|
-
scale:
|
|
3724
|
+
format: z102.literal(FigmaRenderFormat.enum.Png),
|
|
3725
|
+
scale: z102.number()
|
|
3712
3726
|
});
|
|
3713
3727
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
3714
|
-
format:
|
|
3728
|
+
format: z102.literal(FigmaRenderFormat.enum.Svg)
|
|
3715
3729
|
});
|
|
3716
|
-
var FigmaRenderImportModel =
|
|
3730
|
+
var FigmaRenderImportModel = z102.discriminatedUnion("format", [
|
|
3717
3731
|
FigmaPngRenderImportModel,
|
|
3718
3732
|
FigmaSvgRenderImportModel
|
|
3719
3733
|
]);
|
|
3720
|
-
var ImageImportModel =
|
|
3721
|
-
var FigmaComponentImportModelPart =
|
|
3734
|
+
var ImageImportModel = z102.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
3735
|
+
var FigmaComponentImportModelPart = z103.object({
|
|
3722
3736
|
thumbnail: ImageImportModel,
|
|
3723
|
-
parentComponentId:
|
|
3737
|
+
parentComponentId: z103.string().optional(),
|
|
3724
3738
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3725
|
-
variantPropertyValues:
|
|
3726
|
-
renderNodeId:
|
|
3739
|
+
variantPropertyValues: z103.record(z103.string()).optional(),
|
|
3740
|
+
renderNodeId: z103.string(),
|
|
3727
3741
|
svg: FigmaSvgRenderImportModel.optional()
|
|
3728
3742
|
});
|
|
3729
3743
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3730
3744
|
origin: FigmaComponentOrigin,
|
|
3731
|
-
isAsset:
|
|
3745
|
+
isAsset: z103.boolean()
|
|
3732
3746
|
});
|
|
3733
3747
|
var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3734
3748
|
originMetadata: FigmaComponentOriginPart,
|
|
3735
|
-
isAsset:
|
|
3749
|
+
isAsset: z103.boolean().optional()
|
|
3736
3750
|
});
|
|
3737
3751
|
var AssetImportModelInput = FigmaComponentImportModelInput;
|
|
3738
|
-
var DataSourceImportModel =
|
|
3739
|
-
id:
|
|
3740
|
-
fileName:
|
|
3741
|
-
thumbnailUrl:
|
|
3752
|
+
var DataSourceImportModel = z104.object({
|
|
3753
|
+
id: z104.string(),
|
|
3754
|
+
fileName: z104.string().optional(),
|
|
3755
|
+
thumbnailUrl: z104.string().optional()
|
|
3742
3756
|
});
|
|
3743
3757
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeBase.extend({
|
|
3744
|
-
children:
|
|
3758
|
+
children: z105.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3745
3759
|
});
|
|
3746
|
-
var FigmaFileStructureImportModelPart =
|
|
3747
|
-
data:
|
|
3760
|
+
var FigmaFileStructureImportModelPart = z105.object({
|
|
3761
|
+
data: z105.object({
|
|
3748
3762
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
3749
3763
|
assetsInFile: FigmaFileStructureStatistics
|
|
3750
3764
|
})
|
|
@@ -3755,49 +3769,49 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
3755
3769
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
3756
3770
|
FigmaFileStructureImportModelPart.shape
|
|
3757
3771
|
).extend({
|
|
3758
|
-
fileVersionId:
|
|
3772
|
+
fileVersionId: z105.string()
|
|
3759
3773
|
});
|
|
3760
3774
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
3761
|
-
|
|
3762
|
-
id:
|
|
3775
|
+
z106.object({
|
|
3776
|
+
id: z106.string(),
|
|
3763
3777
|
meta: ObjectMeta
|
|
3764
3778
|
})
|
|
3765
3779
|
);
|
|
3766
3780
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
3767
|
-
|
|
3781
|
+
z106.object({
|
|
3768
3782
|
origin: ThemeOverrideOrigin
|
|
3769
3783
|
})
|
|
3770
3784
|
);
|
|
3771
3785
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
3772
|
-
|
|
3773
|
-
originId:
|
|
3786
|
+
z106.object({
|
|
3787
|
+
originId: z106.string(),
|
|
3774
3788
|
originMetadata: ThemeOverrideOriginPart
|
|
3775
3789
|
})
|
|
3776
3790
|
);
|
|
3777
|
-
var ThemeImportModel =
|
|
3791
|
+
var ThemeImportModel = z106.object({
|
|
3778
3792
|
meta: ObjectMeta,
|
|
3779
|
-
brandPersistentId:
|
|
3793
|
+
brandPersistentId: z106.string(),
|
|
3780
3794
|
originSource: ThemeOriginSource,
|
|
3781
|
-
overrides:
|
|
3782
|
-
sortOrder:
|
|
3795
|
+
overrides: z106.array(ThemeOverrideImportModel),
|
|
3796
|
+
sortOrder: z106.number()
|
|
3783
3797
|
});
|
|
3784
|
-
var ThemeImportModelInput =
|
|
3798
|
+
var ThemeImportModelInput = z106.object({
|
|
3785
3799
|
meta: ObjectMeta,
|
|
3786
|
-
originObjects:
|
|
3787
|
-
overrides:
|
|
3800
|
+
originObjects: z106.array(ThemeOriginObject),
|
|
3801
|
+
overrides: z106.array(ThemeOverrideImportModelInput)
|
|
3788
3802
|
});
|
|
3789
|
-
var ThemeUpdateImportModel =
|
|
3790
|
-
themePersistentId:
|
|
3791
|
-
overrides:
|
|
3803
|
+
var ThemeUpdateImportModel = z106.object({
|
|
3804
|
+
themePersistentId: z106.string(),
|
|
3805
|
+
overrides: z106.array(ThemeOverrideImportModel)
|
|
3792
3806
|
});
|
|
3793
|
-
var ThemeUpdateImportModelInput =
|
|
3794
|
-
themePersistentId:
|
|
3795
|
-
overrides:
|
|
3807
|
+
var ThemeUpdateImportModelInput = z106.object({
|
|
3808
|
+
themePersistentId: z106.string(),
|
|
3809
|
+
overrides: z106.array(ThemeOverrideImportModelInput)
|
|
3796
3810
|
});
|
|
3797
|
-
var DesignTokenImportModelPart =
|
|
3798
|
-
collectionId:
|
|
3799
|
-
codeSyntax:
|
|
3800
|
-
scopes:
|
|
3811
|
+
var DesignTokenImportModelPart = z107.object({
|
|
3812
|
+
collectionId: z107.string().optional(),
|
|
3813
|
+
codeSyntax: z107.record(z107.coerce.string()).optional(),
|
|
3814
|
+
scopes: z107.array(z107.string()).optional()
|
|
3801
3815
|
});
|
|
3802
3816
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3803
3817
|
origin: DesignTokenOrigin
|
|
@@ -3807,51 +3821,51 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
|
|
|
3807
3821
|
});
|
|
3808
3822
|
var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
|
|
3809
3823
|
var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
|
|
3810
|
-
var ImportModelInputCollection =
|
|
3824
|
+
var ImportModelInputCollection = z108.object({
|
|
3811
3825
|
source: DataSourceImportModel,
|
|
3812
|
-
tokens:
|
|
3813
|
-
components:
|
|
3814
|
-
assets:
|
|
3815
|
-
themeUpdates:
|
|
3816
|
-
themes:
|
|
3826
|
+
tokens: z108.array(DesignTokenImportModelInput).default([]),
|
|
3827
|
+
components: z108.array(FigmaComponentImportModelInput).default([]),
|
|
3828
|
+
assets: z108.array(AssetImportModelInput).default([]),
|
|
3829
|
+
themeUpdates: z108.array(ThemeUpdateImportModelInput).default([]),
|
|
3830
|
+
themes: z108.array(ThemeImportModelInput).default([]),
|
|
3817
3831
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional(),
|
|
3818
|
-
collections:
|
|
3819
|
-
});
|
|
3820
|
-
var ImportModelCollection =
|
|
3821
|
-
sources:
|
|
3822
|
-
tokens:
|
|
3823
|
-
components:
|
|
3824
|
-
themeUpdates:
|
|
3825
|
-
themes:
|
|
3826
|
-
figmaFileStructures:
|
|
3827
|
-
collections:
|
|
3828
|
-
});
|
|
3829
|
-
var AssetRenderConfiguration =
|
|
3830
|
-
prefix:
|
|
3831
|
-
suffix:
|
|
3832
|
-
scale:
|
|
3832
|
+
collections: z108.array(CollectionImportModelInput)
|
|
3833
|
+
});
|
|
3834
|
+
var ImportModelCollection = z108.object({
|
|
3835
|
+
sources: z108.array(DataSourceImportModel),
|
|
3836
|
+
tokens: z108.array(DesignTokenImportModel).default([]),
|
|
3837
|
+
components: z108.array(FigmaComponentImportModel).default([]),
|
|
3838
|
+
themeUpdates: z108.array(ThemeUpdateImportModel).default([]),
|
|
3839
|
+
themes: z108.array(ThemeImportModel).default([]),
|
|
3840
|
+
figmaFileStructures: z108.array(FigmaFileStructureImportModel),
|
|
3841
|
+
collections: z108.array(CollectionImportModel)
|
|
3842
|
+
});
|
|
3843
|
+
var AssetRenderConfiguration = z109.object({
|
|
3844
|
+
prefix: z109.string().optional(),
|
|
3845
|
+
suffix: z109.string().optional(),
|
|
3846
|
+
scale: z109.number(),
|
|
3833
3847
|
format: FigmaRenderFormat
|
|
3834
3848
|
});
|
|
3835
|
-
var RenderedAssetFile =
|
|
3836
|
-
assetPersistentId:
|
|
3837
|
-
assetName:
|
|
3838
|
-
renderedImageFileName:
|
|
3839
|
-
renderedImageUrl:
|
|
3849
|
+
var RenderedAssetFile = z109.object({
|
|
3850
|
+
assetPersistentId: z109.string(),
|
|
3851
|
+
assetName: z109.string(),
|
|
3852
|
+
renderedImageFileName: z109.string(),
|
|
3853
|
+
renderedImageUrl: z109.string(),
|
|
3840
3854
|
settings: AssetRenderConfiguration
|
|
3841
3855
|
});
|
|
3842
|
-
var DocumentationPageApprovalState =
|
|
3843
|
-
var DocumentationPageApproval =
|
|
3844
|
-
id:
|
|
3856
|
+
var DocumentationPageApprovalState = z110.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3857
|
+
var DocumentationPageApproval = z111.object({
|
|
3858
|
+
id: z111.string(),
|
|
3845
3859
|
approvalState: DocumentationPageApprovalState,
|
|
3846
|
-
persistentId:
|
|
3847
|
-
pageId:
|
|
3848
|
-
pagePersistentId:
|
|
3849
|
-
updatedByUserId:
|
|
3850
|
-
designSystemVersionId:
|
|
3851
|
-
updatedAt:
|
|
3852
|
-
createdAt:
|
|
3853
|
-
});
|
|
3854
|
-
var PageBlockCategory =
|
|
3860
|
+
persistentId: z111.string(),
|
|
3861
|
+
pageId: z111.string(),
|
|
3862
|
+
pagePersistentId: z111.string(),
|
|
3863
|
+
updatedByUserId: z111.string(),
|
|
3864
|
+
designSystemVersionId: z111.string(),
|
|
3865
|
+
updatedAt: z111.coerce.date(),
|
|
3866
|
+
createdAt: z111.coerce.date()
|
|
3867
|
+
});
|
|
3868
|
+
var PageBlockCategory = z112.enum([
|
|
3855
3869
|
"Text",
|
|
3856
3870
|
"Layout",
|
|
3857
3871
|
"Media",
|
|
@@ -3865,7 +3879,7 @@ var PageBlockCategory = z111.enum([
|
|
|
3865
3879
|
"Data",
|
|
3866
3880
|
"Other"
|
|
3867
3881
|
]);
|
|
3868
|
-
var PageBlockBehaviorDataType =
|
|
3882
|
+
var PageBlockBehaviorDataType = z112.enum([
|
|
3869
3883
|
"Item",
|
|
3870
3884
|
"Token",
|
|
3871
3885
|
"Asset",
|
|
@@ -3874,170 +3888,170 @@ var PageBlockBehaviorDataType = z111.enum([
|
|
|
3874
3888
|
"FigmaComponent",
|
|
3875
3889
|
"File"
|
|
3876
3890
|
]);
|
|
3877
|
-
var PageBlockBehaviorSelectionType =
|
|
3878
|
-
var PageBlockDefinitionBehavior =
|
|
3891
|
+
var PageBlockBehaviorSelectionType = z112.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
3892
|
+
var PageBlockDefinitionBehavior = z112.object({
|
|
3879
3893
|
dataType: PageBlockBehaviorDataType,
|
|
3880
|
-
items:
|
|
3881
|
-
numberOfItems:
|
|
3882
|
-
allowLinks:
|
|
3883
|
-
newItemLabel:
|
|
3894
|
+
items: z112.object({
|
|
3895
|
+
numberOfItems: z112.number(),
|
|
3896
|
+
allowLinks: z112.boolean(),
|
|
3897
|
+
newItemLabel: z112.string().optional()
|
|
3884
3898
|
}).optional(),
|
|
3885
|
-
entities:
|
|
3899
|
+
entities: z112.object({
|
|
3886
3900
|
selectionType: PageBlockBehaviorSelectionType,
|
|
3887
|
-
maxSelected:
|
|
3901
|
+
maxSelected: z112.number()
|
|
3888
3902
|
}).optional()
|
|
3889
3903
|
});
|
|
3890
|
-
var PageBlockDefinitionOnboarding =
|
|
3891
|
-
helpText:
|
|
3892
|
-
documentationLink:
|
|
3904
|
+
var PageBlockDefinitionOnboarding = z112.object({
|
|
3905
|
+
helpText: z112.string(),
|
|
3906
|
+
documentationLink: z112.string().optional()
|
|
3893
3907
|
});
|
|
3894
|
-
var PageBlockDefinition =
|
|
3895
|
-
id:
|
|
3896
|
-
name:
|
|
3897
|
-
description:
|
|
3908
|
+
var PageBlockDefinition = z112.object({
|
|
3909
|
+
id: z112.string(),
|
|
3910
|
+
name: z112.string(),
|
|
3911
|
+
description: z112.string(),
|
|
3898
3912
|
category: PageBlockCategory,
|
|
3899
|
-
icon:
|
|
3900
|
-
documentationLink:
|
|
3901
|
-
searchKeywords:
|
|
3913
|
+
icon: z112.string().optional(),
|
|
3914
|
+
documentationLink: z112.string().optional(),
|
|
3915
|
+
searchKeywords: z112.array(z112.string()).optional(),
|
|
3902
3916
|
item: PageBlockDefinitionItem,
|
|
3903
3917
|
behavior: PageBlockDefinitionBehavior,
|
|
3904
|
-
editorOptions:
|
|
3918
|
+
editorOptions: z112.object({
|
|
3905
3919
|
onboarding: PageBlockDefinitionOnboarding.optional(),
|
|
3906
|
-
newItemLabel:
|
|
3920
|
+
newItemLabel: z112.string().optional()
|
|
3907
3921
|
}),
|
|
3908
3922
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3909
3923
|
});
|
|
3910
|
-
var DocumentationPageGroup =
|
|
3911
|
-
type:
|
|
3912
|
-
childType:
|
|
3913
|
-
id:
|
|
3914
|
-
persistentId:
|
|
3915
|
-
shortPersistentId:
|
|
3916
|
-
designSystemVersionId:
|
|
3917
|
-
parentPersistentId:
|
|
3918
|
-
sortOrder:
|
|
3919
|
-
title:
|
|
3920
|
-
slug:
|
|
3921
|
-
userSlug:
|
|
3922
|
-
createdAt:
|
|
3923
|
-
updatedAt:
|
|
3924
|
-
});
|
|
3925
|
-
var DocumentationLinkPreview =
|
|
3926
|
-
title:
|
|
3927
|
-
description:
|
|
3924
|
+
var DocumentationPageGroup = z113.object({
|
|
3925
|
+
type: z113.literal("ElementGroup"),
|
|
3926
|
+
childType: z113.literal("DocumentationPage"),
|
|
3927
|
+
id: z113.string(),
|
|
3928
|
+
persistentId: z113.string(),
|
|
3929
|
+
shortPersistentId: z113.string(),
|
|
3930
|
+
designSystemVersionId: z113.string(),
|
|
3931
|
+
parentPersistentId: z113.string().nullish(),
|
|
3932
|
+
sortOrder: z113.number(),
|
|
3933
|
+
title: z113.string(),
|
|
3934
|
+
slug: z113.string(),
|
|
3935
|
+
userSlug: z113.string().nullish(),
|
|
3936
|
+
createdAt: z113.coerce.date(),
|
|
3937
|
+
updatedAt: z113.coerce.date()
|
|
3938
|
+
});
|
|
3939
|
+
var DocumentationLinkPreview = z114.object({
|
|
3940
|
+
title: z114.string().optional(),
|
|
3941
|
+
description: z114.string().optional(),
|
|
3928
3942
|
thumbnail: PageBlockImageReference.optional()
|
|
3929
3943
|
});
|
|
3930
|
-
var DocumentationPageAnchor =
|
|
3931
|
-
blockId:
|
|
3932
|
-
level:
|
|
3933
|
-
text:
|
|
3934
|
-
});
|
|
3935
|
-
var DocumentationPageContentBackup = z115.object({
|
|
3936
|
-
id: z115.string(),
|
|
3937
|
-
designSystemVersionId: z115.string(),
|
|
3938
|
-
createdAt: z115.coerce.date(),
|
|
3939
|
-
updatedAt: z115.coerce.date(),
|
|
3940
|
-
documentationPageId: z115.string(),
|
|
3941
|
-
documentationPageName: z115.string(),
|
|
3942
|
-
storagePath: z115.string()
|
|
3943
|
-
});
|
|
3944
|
-
var DocumentationPageContentItem = z116.discriminatedUnion("type", [
|
|
3945
|
-
PageBlockEditorModelV2,
|
|
3946
|
-
PageSectionEditorModelV2
|
|
3947
|
-
]);
|
|
3948
|
-
var DocumentationPageContentData = z116.object({
|
|
3949
|
-
items: z116.array(DocumentationPageContentItem)
|
|
3944
|
+
var DocumentationPageAnchor = z115.object({
|
|
3945
|
+
blockId: z115.string(),
|
|
3946
|
+
level: z115.number(),
|
|
3947
|
+
text: z115.string()
|
|
3950
3948
|
});
|
|
3951
|
-
var
|
|
3949
|
+
var DocumentationPageContentBackup = z116.object({
|
|
3952
3950
|
id: z116.string(),
|
|
3953
3951
|
designSystemVersionId: z116.string(),
|
|
3954
3952
|
createdAt: z116.coerce.date(),
|
|
3955
3953
|
updatedAt: z116.coerce.date(),
|
|
3956
3954
|
documentationPageId: z116.string(),
|
|
3957
|
-
|
|
3955
|
+
documentationPageName: z116.string(),
|
|
3956
|
+
storagePath: z116.string()
|
|
3957
|
+
});
|
|
3958
|
+
var DocumentationPageContentItem = z117.discriminatedUnion("type", [
|
|
3959
|
+
PageBlockEditorModelV2,
|
|
3960
|
+
PageSectionEditorModelV2
|
|
3961
|
+
]);
|
|
3962
|
+
var DocumentationPageContentData = z117.object({
|
|
3963
|
+
items: z117.array(DocumentationPageContentItem)
|
|
3958
3964
|
});
|
|
3959
|
-
var
|
|
3965
|
+
var DocumentationPageContent = z117.object({
|
|
3960
3966
|
id: z117.string(),
|
|
3961
3967
|
designSystemVersionId: z117.string(),
|
|
3962
3968
|
createdAt: z117.coerce.date(),
|
|
3963
3969
|
updatedAt: z117.coerce.date(),
|
|
3964
3970
|
documentationPageId: z117.string(),
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
figmaNodePersistentIds: z117.set(z117.string()),
|
|
3969
|
-
groupPersistentIds: z117.set(z117.string()),
|
|
3970
|
-
propertyPersistentIds: z117.set(z117.string()),
|
|
3971
|
-
themePersistentIds: z117.set(z117.string()),
|
|
3972
|
-
documentationPagePersistentIds: z117.set(z117.string()),
|
|
3973
|
-
storybookEntriesStoryIds: z117.array(z117.string())
|
|
3974
|
-
});
|
|
3975
|
-
var DocumentationPage = z118.object({
|
|
3976
|
-
type: z118.literal("DocumentationPage"),
|
|
3971
|
+
data: DocumentationPageContentData
|
|
3972
|
+
});
|
|
3973
|
+
var DocumentationPageDependencies = z118.object({
|
|
3977
3974
|
id: z118.string(),
|
|
3978
|
-
persistentId: z118.string(),
|
|
3979
|
-
shortPersistentId: z118.string(),
|
|
3980
3975
|
designSystemVersionId: z118.string(),
|
|
3981
|
-
parentPersistentId: z118.string().nullish(),
|
|
3982
|
-
sortOrder: z118.number(),
|
|
3983
|
-
title: z118.string(),
|
|
3984
|
-
slug: z118.string(),
|
|
3985
|
-
userSlug: z118.string().nullish(),
|
|
3986
3976
|
createdAt: z118.coerce.date(),
|
|
3987
|
-
updatedAt: z118.coerce.date()
|
|
3988
|
-
|
|
3989
|
-
|
|
3977
|
+
updatedAt: z118.coerce.date(),
|
|
3978
|
+
documentationPageId: z118.string(),
|
|
3979
|
+
tokenPersistentIds: z118.set(z118.string()),
|
|
3980
|
+
figmaComponentPersistentIds: z118.set(z118.string()),
|
|
3981
|
+
componentPersistentIds: z118.set(z118.string()),
|
|
3982
|
+
figmaNodePersistentIds: z118.set(z118.string()),
|
|
3983
|
+
groupPersistentIds: z118.set(z118.string()),
|
|
3984
|
+
propertyPersistentIds: z118.set(z118.string()),
|
|
3985
|
+
themePersistentIds: z118.set(z118.string()),
|
|
3986
|
+
documentationPagePersistentIds: z118.set(z118.string()),
|
|
3987
|
+
storybookEntriesStoryIds: z118.array(z118.string())
|
|
3988
|
+
});
|
|
3989
|
+
var DocumentationPage = z119.object({
|
|
3990
|
+
type: z119.literal("DocumentationPage"),
|
|
3990
3991
|
id: z119.string(),
|
|
3991
|
-
|
|
3992
|
-
|
|
3992
|
+
persistentId: z119.string(),
|
|
3993
|
+
shortPersistentId: z119.string(),
|
|
3994
|
+
designSystemVersionId: z119.string(),
|
|
3995
|
+
parentPersistentId: z119.string().nullish(),
|
|
3996
|
+
sortOrder: z119.number(),
|
|
3997
|
+
title: z119.string(),
|
|
3998
|
+
slug: z119.string(),
|
|
3999
|
+
userSlug: z119.string().nullish(),
|
|
3993
4000
|
createdAt: z119.coerce.date(),
|
|
3994
|
-
updatedAt: z119.coerce.date()
|
|
3995
|
-
designSystemId: z119.string()
|
|
4001
|
+
updatedAt: z119.coerce.date()
|
|
3996
4002
|
});
|
|
3997
|
-
var
|
|
3998
|
-
|
|
3999
|
-
|
|
4003
|
+
var PageRedirect = z120.object({
|
|
4004
|
+
id: z120.string(),
|
|
4005
|
+
pagePersistentId: z120.string(),
|
|
4006
|
+
path: z120.string(),
|
|
4000
4007
|
createdAt: z120.coerce.date(),
|
|
4001
4008
|
updatedAt: z120.coerce.date(),
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
selectedBrandPersistentId: z120.string().optional(),
|
|
4007
|
-
serveDefaultVersionOnly: z120.boolean(),
|
|
4008
|
-
isPublic: z120.boolean()
|
|
4009
|
-
});
|
|
4010
|
-
var DocumentationComment = z121.object({
|
|
4011
|
-
id: z121.string(),
|
|
4012
|
-
authorId: z121.string(),
|
|
4013
|
-
threadId: z121.string(),
|
|
4014
|
-
roomId: z121.string(),
|
|
4015
|
-
createdAt: z121.coerce.date(),
|
|
4016
|
-
editedAt: z121.coerce.date().optional(),
|
|
4017
|
-
deletedAt: z121.coerce.date().optional(),
|
|
4018
|
-
body: z121.string()
|
|
4019
|
-
});
|
|
4020
|
-
var DocumentationCommentThread = z121.object({
|
|
4021
|
-
id: z121.string(),
|
|
4022
|
-
roomId: z121.string(),
|
|
4023
|
-
pagePersistentId: z121.string(),
|
|
4024
|
-
brandId: z121.string(),
|
|
4009
|
+
designSystemId: z120.string()
|
|
4010
|
+
});
|
|
4011
|
+
var DocumentationSettings = z121.object({
|
|
4012
|
+
// Basic
|
|
4025
4013
|
designSystemVersionId: z121.string(),
|
|
4026
|
-
designSystemId: z121.string(),
|
|
4027
|
-
blockId: z121.string().optional(),
|
|
4028
|
-
resolved: z121.boolean(),
|
|
4029
4014
|
createdAt: z121.coerce.date(),
|
|
4030
|
-
updatedAt: z121.coerce.date()
|
|
4015
|
+
updatedAt: z121.coerce.date(),
|
|
4016
|
+
// Configuration
|
|
4017
|
+
isTabbedLayoutEnabled: z121.boolean(),
|
|
4018
|
+
storybookEmbedErrorMessage: z121.string().optional(),
|
|
4019
|
+
renderCodePackageJson: z121.string().optional(),
|
|
4020
|
+
selectedBrandPersistentId: z121.string().optional(),
|
|
4021
|
+
serveDefaultVersionOnly: z121.boolean(),
|
|
4022
|
+
isPublic: z121.boolean()
|
|
4023
|
+
});
|
|
4024
|
+
var DocumentationComment = z122.object({
|
|
4025
|
+
id: z122.string(),
|
|
4026
|
+
authorId: z122.string(),
|
|
4027
|
+
threadId: z122.string(),
|
|
4028
|
+
roomId: z122.string(),
|
|
4029
|
+
createdAt: z122.coerce.date(),
|
|
4030
|
+
editedAt: z122.coerce.date().optional(),
|
|
4031
|
+
deletedAt: z122.coerce.date().optional(),
|
|
4032
|
+
body: z122.string()
|
|
4031
4033
|
});
|
|
4032
|
-
var
|
|
4033
|
-
var DesignElementSnapshotBase = z122.object({
|
|
4034
|
+
var DocumentationCommentThread = z122.object({
|
|
4034
4035
|
id: z122.string(),
|
|
4035
|
-
|
|
4036
|
+
roomId: z122.string(),
|
|
4037
|
+
pagePersistentId: z122.string(),
|
|
4038
|
+
brandId: z122.string(),
|
|
4036
4039
|
designSystemVersionId: z122.string(),
|
|
4040
|
+
designSystemId: z122.string(),
|
|
4041
|
+
blockId: z122.string().optional(),
|
|
4042
|
+
resolved: z122.boolean(),
|
|
4037
4043
|
createdAt: z122.coerce.date(),
|
|
4038
|
-
updatedAt: z122.coerce.date()
|
|
4044
|
+
updatedAt: z122.coerce.date()
|
|
4045
|
+
});
|
|
4046
|
+
var DesignElementSnapshotReason = z123.enum(["Publish", "Deletion"]);
|
|
4047
|
+
var DesignElementSnapshotBase = z123.object({
|
|
4048
|
+
id: z123.string(),
|
|
4049
|
+
persistentId: z123.string(),
|
|
4050
|
+
designSystemVersionId: z123.string(),
|
|
4051
|
+
createdAt: z123.coerce.date(),
|
|
4052
|
+
updatedAt: z123.coerce.date(),
|
|
4039
4053
|
reason: DesignElementSnapshotReason,
|
|
4040
|
-
createdByUserId:
|
|
4054
|
+
createdByUserId: z123.string()
|
|
4041
4055
|
});
|
|
4042
4056
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
4043
4057
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -4048,8 +4062,8 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
4048
4062
|
}
|
|
4049
4063
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
4050
4064
|
page: DocumentationPageV2,
|
|
4051
|
-
pageContentHash:
|
|
4052
|
-
pageContentStorageKey:
|
|
4065
|
+
pageContentHash: z124.string(),
|
|
4066
|
+
pageContentStorageKey: z124.string()
|
|
4053
4067
|
});
|
|
4054
4068
|
function pickLatestPageSnapshots(snapshots) {
|
|
4055
4069
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -4060,348 +4074,345 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
4060
4074
|
function pickLatestGroupSnapshots(snapshots) {
|
|
4061
4075
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
4062
4076
|
}
|
|
4063
|
-
var FigmaExporterProcessedStylesSchema =
|
|
4064
|
-
display:
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4077
|
+
var FigmaExporterProcessedStylesSchema = z125.object({
|
|
4078
|
+
display: z125.union([
|
|
4079
|
+
z125.literal("block"),
|
|
4080
|
+
z125.literal("inline-block"),
|
|
4081
|
+
z125.literal("inline"),
|
|
4082
|
+
z125.literal("flex"),
|
|
4083
|
+
z125.literal("grid"),
|
|
4084
|
+
z125.literal("none")
|
|
4071
4085
|
]).optional(),
|
|
4072
|
-
position:
|
|
4073
|
-
top:
|
|
4074
|
-
right:
|
|
4075
|
-
bottom:
|
|
4076
|
-
left:
|
|
4077
|
-
width:
|
|
4078
|
-
height:
|
|
4079
|
-
minWidth:
|
|
4080
|
-
minHeight:
|
|
4081
|
-
maxWidth:
|
|
4082
|
-
maxHeight:
|
|
4083
|
-
zIndex:
|
|
4084
|
-
overflow:
|
|
4085
|
-
overflowX:
|
|
4086
|
-
overflowY:
|
|
4087
|
-
aspectRatio:
|
|
4088
|
-
flexDirection:
|
|
4089
|
-
justifyContent:
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4086
|
+
position: z125.union([z125.literal("absolute"), z125.literal("relative"), z125.literal("fixed"), z125.literal("static"), z125.literal("sticky")]).optional(),
|
|
4087
|
+
top: z125.string().optional(),
|
|
4088
|
+
right: z125.string().optional(),
|
|
4089
|
+
bottom: z125.string().optional(),
|
|
4090
|
+
left: z125.string().optional(),
|
|
4091
|
+
width: z125.string().optional(),
|
|
4092
|
+
height: z125.string().optional(),
|
|
4093
|
+
minWidth: z125.string().optional(),
|
|
4094
|
+
minHeight: z125.string().optional(),
|
|
4095
|
+
maxWidth: z125.string().optional(),
|
|
4096
|
+
maxHeight: z125.string().optional(),
|
|
4097
|
+
zIndex: z125.number().optional(),
|
|
4098
|
+
overflow: z125.union([z125.literal("visible"), z125.literal("hidden"), z125.literal("scroll"), z125.literal("auto"), z125.literal("clip")]).optional(),
|
|
4099
|
+
overflowX: z125.union([z125.literal("visible"), z125.literal("hidden"), z125.literal("scroll"), z125.literal("auto"), z125.literal("clip")]).optional(),
|
|
4100
|
+
overflowY: z125.union([z125.literal("visible"), z125.literal("hidden"), z125.literal("scroll"), z125.literal("auto"), z125.literal("clip")]).optional(),
|
|
4101
|
+
aspectRatio: z125.string().optional(),
|
|
4102
|
+
flexDirection: z125.union([z125.literal("row"), z125.literal("row-reverse"), z125.literal("column"), z125.literal("column-reverse")]).optional(),
|
|
4103
|
+
justifyContent: z125.union([
|
|
4104
|
+
z125.literal("flex-start"),
|
|
4105
|
+
z125.literal("flex-end"),
|
|
4106
|
+
z125.literal("center"),
|
|
4107
|
+
z125.literal("space-between"),
|
|
4108
|
+
z125.literal("space-around"),
|
|
4109
|
+
z125.literal("space-evenly")
|
|
4096
4110
|
]).optional(),
|
|
4097
|
-
alignItems:
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4111
|
+
alignItems: z125.union([
|
|
4112
|
+
z125.literal("stretch"),
|
|
4113
|
+
z125.literal("flex-start"),
|
|
4114
|
+
z125.literal("flex-end"),
|
|
4115
|
+
z125.literal("center"),
|
|
4116
|
+
z125.literal("baseline")
|
|
4103
4117
|
]).optional(),
|
|
4104
|
-
alignSelf:
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4118
|
+
alignSelf: z125.union([
|
|
4119
|
+
z125.literal("auto"),
|
|
4120
|
+
z125.literal("stretch"),
|
|
4121
|
+
z125.literal("flex-start"),
|
|
4122
|
+
z125.literal("flex-end"),
|
|
4123
|
+
z125.literal("center"),
|
|
4124
|
+
z125.literal("baseline")
|
|
4111
4125
|
]).optional(),
|
|
4112
|
-
flexGrow:
|
|
4113
|
-
flexShrink:
|
|
4114
|
-
flexBasis:
|
|
4115
|
-
flexWrap:
|
|
4116
|
-
gap:
|
|
4117
|
-
rowGap:
|
|
4118
|
-
columnGap:
|
|
4119
|
-
gridTemplateColumns:
|
|
4120
|
-
gridTemplateRows:
|
|
4121
|
-
gridColumn:
|
|
4122
|
-
gridRow:
|
|
4123
|
-
gridAutoFlow:
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4126
|
+
flexGrow: z125.number().optional(),
|
|
4127
|
+
flexShrink: z125.number().optional(),
|
|
4128
|
+
flexBasis: z125.string().optional(),
|
|
4129
|
+
flexWrap: z125.union([z125.literal("nowrap"), z125.literal("wrap"), z125.literal("wrap-reverse")]).optional(),
|
|
4130
|
+
gap: z125.string().optional(),
|
|
4131
|
+
rowGap: z125.string().optional(),
|
|
4132
|
+
columnGap: z125.string().optional(),
|
|
4133
|
+
gridTemplateColumns: z125.string().optional(),
|
|
4134
|
+
gridTemplateRows: z125.string().optional(),
|
|
4135
|
+
gridColumn: z125.string().optional(),
|
|
4136
|
+
gridRow: z125.string().optional(),
|
|
4137
|
+
gridAutoFlow: z125.union([
|
|
4138
|
+
z125.literal("row"),
|
|
4139
|
+
z125.literal("column"),
|
|
4140
|
+
z125.literal("dense"),
|
|
4141
|
+
z125.literal("row dense"),
|
|
4142
|
+
z125.literal("column dense")
|
|
4129
4143
|
]).optional(),
|
|
4130
|
-
alignContent:
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4144
|
+
alignContent: z125.union([
|
|
4145
|
+
z125.literal("flex-start"),
|
|
4146
|
+
z125.literal("flex-end"),
|
|
4147
|
+
z125.literal("center"),
|
|
4148
|
+
z125.literal("space-between"),
|
|
4149
|
+
z125.literal("space-around"),
|
|
4150
|
+
z125.literal("stretch")
|
|
4137
4151
|
]).optional(),
|
|
4138
|
-
padding:
|
|
4139
|
-
paddingTop:
|
|
4140
|
-
paddingRight:
|
|
4141
|
-
paddingBottom:
|
|
4142
|
-
paddingLeft:
|
|
4143
|
-
margin:
|
|
4144
|
-
marginTop:
|
|
4145
|
-
marginRight:
|
|
4146
|
-
marginBottom:
|
|
4147
|
-
marginLeft:
|
|
4148
|
-
border:
|
|
4149
|
-
borderWidth:
|
|
4150
|
-
borderStyle:
|
|
4151
|
-
borderColor:
|
|
4152
|
-
borderTop:
|
|
4153
|
-
borderRight:
|
|
4154
|
-
borderBottom:
|
|
4155
|
-
borderLeft:
|
|
4156
|
-
borderRadius:
|
|
4157
|
-
borderTopLeftRadius:
|
|
4158
|
-
borderTopRightRadius:
|
|
4159
|
-
borderBottomRightRadius:
|
|
4160
|
-
borderBottomLeftRadius:
|
|
4161
|
-
backgroundColor:
|
|
4162
|
-
backgroundImage:
|
|
4163
|
-
backgroundSize:
|
|
4164
|
-
backgroundPosition:
|
|
4165
|
-
backgroundRepeat:
|
|
4166
|
-
backgroundClip:
|
|
4167
|
-
backgroundOrigin:
|
|
4168
|
-
opacity:
|
|
4169
|
-
boxShadow:
|
|
4170
|
-
filter:
|
|
4171
|
-
backdropFilter:
|
|
4172
|
-
mixBlendMode:
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4152
|
+
padding: z125.string().optional(),
|
|
4153
|
+
paddingTop: z125.string().optional(),
|
|
4154
|
+
paddingRight: z125.string().optional(),
|
|
4155
|
+
paddingBottom: z125.string().optional(),
|
|
4156
|
+
paddingLeft: z125.string().optional(),
|
|
4157
|
+
margin: z125.string().optional(),
|
|
4158
|
+
marginTop: z125.string().optional(),
|
|
4159
|
+
marginRight: z125.string().optional(),
|
|
4160
|
+
marginBottom: z125.string().optional(),
|
|
4161
|
+
marginLeft: z125.string().optional(),
|
|
4162
|
+
border: z125.string().optional(),
|
|
4163
|
+
borderWidth: z125.string().optional(),
|
|
4164
|
+
borderStyle: z125.string().optional(),
|
|
4165
|
+
borderColor: z125.string().optional(),
|
|
4166
|
+
borderTop: z125.string().optional(),
|
|
4167
|
+
borderRight: z125.string().optional(),
|
|
4168
|
+
borderBottom: z125.string().optional(),
|
|
4169
|
+
borderLeft: z125.string().optional(),
|
|
4170
|
+
borderRadius: z125.string().optional(),
|
|
4171
|
+
borderTopLeftRadius: z125.string().optional(),
|
|
4172
|
+
borderTopRightRadius: z125.string().optional(),
|
|
4173
|
+
borderBottomRightRadius: z125.string().optional(),
|
|
4174
|
+
borderBottomLeftRadius: z125.string().optional(),
|
|
4175
|
+
backgroundColor: z125.string().optional(),
|
|
4176
|
+
backgroundImage: z125.string().optional(),
|
|
4177
|
+
backgroundSize: z125.string().optional(),
|
|
4178
|
+
backgroundPosition: z125.string().optional(),
|
|
4179
|
+
backgroundRepeat: z125.string().optional(),
|
|
4180
|
+
backgroundClip: z125.union([z125.literal("border-box"), z125.literal("padding-box"), z125.literal("content-box"), z125.literal("text")]).optional(),
|
|
4181
|
+
backgroundOrigin: z125.union([z125.literal("border-box"), z125.literal("padding-box"), z125.literal("content-box")]).optional(),
|
|
4182
|
+
opacity: z125.number().optional(),
|
|
4183
|
+
boxShadow: z125.string().optional(),
|
|
4184
|
+
filter: z125.string().optional(),
|
|
4185
|
+
backdropFilter: z125.string().optional(),
|
|
4186
|
+
mixBlendMode: z125.union([
|
|
4187
|
+
z125.literal("normal"),
|
|
4188
|
+
z125.literal("multiply"),
|
|
4189
|
+
z125.literal("screen"),
|
|
4190
|
+
z125.literal("overlay"),
|
|
4191
|
+
z125.literal("darken"),
|
|
4192
|
+
z125.literal("lighten"),
|
|
4193
|
+
z125.literal("color-dodge"),
|
|
4194
|
+
z125.literal("color-burn"),
|
|
4195
|
+
z125.literal("hard-light"),
|
|
4196
|
+
z125.literal("soft-light"),
|
|
4197
|
+
z125.literal("difference"),
|
|
4198
|
+
z125.literal("exclusion"),
|
|
4199
|
+
z125.literal("hue"),
|
|
4200
|
+
z125.literal("saturation"),
|
|
4201
|
+
z125.literal("color"),
|
|
4202
|
+
z125.literal("luminosity"),
|
|
4203
|
+
z125.literal("plus-lighter")
|
|
4190
4204
|
]).optional(),
|
|
4191
|
-
transform:
|
|
4192
|
-
transformOrigin:
|
|
4193
|
-
rotate:
|
|
4194
|
-
clipPath:
|
|
4195
|
-
color:
|
|
4196
|
-
fontFamily:
|
|
4197
|
-
fontSize:
|
|
4198
|
-
fontWeight:
|
|
4199
|
-
fontStyle:
|
|
4200
|
-
fontStretch:
|
|
4201
|
-
fontVariantCaps:
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4205
|
+
transform: z125.string().optional(),
|
|
4206
|
+
transformOrigin: z125.string().optional(),
|
|
4207
|
+
rotate: z125.string().optional(),
|
|
4208
|
+
clipPath: z125.string().optional(),
|
|
4209
|
+
color: z125.string().optional(),
|
|
4210
|
+
fontFamily: z125.string().optional(),
|
|
4211
|
+
fontSize: z125.string().optional(),
|
|
4212
|
+
fontWeight: z125.union([z125.string(), z125.number()]).optional(),
|
|
4213
|
+
fontStyle: z125.union([z125.literal("normal"), z125.literal("italic"), z125.literal("oblique")]).optional(),
|
|
4214
|
+
fontStretch: z125.string().optional(),
|
|
4215
|
+
fontVariantCaps: z125.union([
|
|
4216
|
+
z125.literal("normal"),
|
|
4217
|
+
z125.literal("small-caps"),
|
|
4218
|
+
z125.literal("all-small-caps"),
|
|
4219
|
+
z125.literal("petite-caps"),
|
|
4220
|
+
z125.literal("all-petite-caps"),
|
|
4221
|
+
z125.literal("unicase"),
|
|
4222
|
+
z125.literal("titling-caps")
|
|
4209
4223
|
]).optional(),
|
|
4210
|
-
lineHeight:
|
|
4211
|
-
letterSpacing:
|
|
4212
|
-
textAlign:
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4224
|
+
lineHeight: z125.union([z125.string(), z125.number()]).optional(),
|
|
4225
|
+
letterSpacing: z125.string().optional(),
|
|
4226
|
+
textAlign: z125.union([
|
|
4227
|
+
z125.literal("left"),
|
|
4228
|
+
z125.literal("center"),
|
|
4229
|
+
z125.literal("right"),
|
|
4230
|
+
z125.literal("justify"),
|
|
4231
|
+
z125.literal("start"),
|
|
4232
|
+
z125.literal("end")
|
|
4219
4233
|
]).optional(),
|
|
4220
|
-
textDecorationLine:
|
|
4221
|
-
textDecorationColor:
|
|
4222
|
-
textDecorationStyle:
|
|
4223
|
-
textDecorationThickness:
|
|
4224
|
-
textTransform:
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4234
|
+
textDecorationLine: z125.union([z125.literal("none"), z125.literal("underline"), z125.literal("overline"), z125.literal("line-through")]).optional(),
|
|
4235
|
+
textDecorationColor: z125.string().optional(),
|
|
4236
|
+
textDecorationStyle: z125.union([z125.literal("solid"), z125.literal("double"), z125.literal("dotted"), z125.literal("dashed"), z125.literal("wavy")]).optional(),
|
|
4237
|
+
textDecorationThickness: z125.string().optional(),
|
|
4238
|
+
textTransform: z125.union([
|
|
4239
|
+
z125.literal("none"),
|
|
4240
|
+
z125.literal("uppercase"),
|
|
4241
|
+
z125.literal("lowercase"),
|
|
4242
|
+
z125.literal("capitalize"),
|
|
4243
|
+
z125.literal("full-width")
|
|
4230
4244
|
]).optional(),
|
|
4231
|
-
whiteSpace:
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4245
|
+
whiteSpace: z125.union([
|
|
4246
|
+
z125.literal("normal"),
|
|
4247
|
+
z125.literal("nowrap"),
|
|
4248
|
+
z125.literal("pre"),
|
|
4249
|
+
z125.literal("pre-wrap"),
|
|
4250
|
+
z125.literal("pre-line"),
|
|
4251
|
+
z125.literal("break-spaces")
|
|
4238
4252
|
]).optional(),
|
|
4239
|
-
wordBreak:
|
|
4240
|
-
textOverflow:
|
|
4241
|
-
WebkitLineClamp:
|
|
4242
|
-
WebkitBoxOrient:
|
|
4243
|
-
fontFeatureSettings:
|
|
4244
|
-
fill:
|
|
4245
|
-
stroke:
|
|
4246
|
-
strokeWidth:
|
|
4247
|
-
strokeLinecap:
|
|
4248
|
-
strokeLinejoin:
|
|
4249
|
-
strokeDasharray:
|
|
4250
|
-
strokeDashoffset:
|
|
4251
|
-
transition:
|
|
4252
|
-
animation:
|
|
4253
|
-
cursor:
|
|
4254
|
-
userSelect:
|
|
4255
|
-
pointerEvents:
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4253
|
+
wordBreak: z125.union([z125.literal("normal"), z125.literal("break-all"), z125.literal("keep-all"), z125.literal("break-word")]).optional(),
|
|
4254
|
+
textOverflow: z125.union([z125.literal("clip"), z125.literal("ellipsis")]).optional(),
|
|
4255
|
+
WebkitLineClamp: z125.number().optional(),
|
|
4256
|
+
WebkitBoxOrient: z125.literal("vertical").optional(),
|
|
4257
|
+
fontFeatureSettings: z125.string().optional(),
|
|
4258
|
+
fill: z125.string().optional(),
|
|
4259
|
+
stroke: z125.string().optional(),
|
|
4260
|
+
strokeWidth: z125.string().optional(),
|
|
4261
|
+
strokeLinecap: z125.union([z125.literal("butt"), z125.literal("round"), z125.literal("square")]).optional(),
|
|
4262
|
+
strokeLinejoin: z125.union([z125.literal("miter"), z125.literal("round"), z125.literal("bevel")]).optional(),
|
|
4263
|
+
strokeDasharray: z125.string().optional(),
|
|
4264
|
+
strokeDashoffset: z125.string().optional(),
|
|
4265
|
+
transition: z125.string().optional(),
|
|
4266
|
+
animation: z125.string().optional(),
|
|
4267
|
+
cursor: z125.string().optional(),
|
|
4268
|
+
userSelect: z125.union([z125.literal("auto"), z125.literal("none"), z125.literal("text"), z125.literal("all")]).optional(),
|
|
4269
|
+
pointerEvents: z125.union([
|
|
4270
|
+
z125.literal("auto"),
|
|
4271
|
+
z125.literal("none"),
|
|
4272
|
+
z125.literal("visiblePainted"),
|
|
4273
|
+
z125.literal("visibleFill"),
|
|
4274
|
+
z125.literal("visibleStroke"),
|
|
4275
|
+
z125.literal("visible"),
|
|
4276
|
+
z125.literal("painted"),
|
|
4277
|
+
z125.literal("fill"),
|
|
4278
|
+
z125.literal("stroke"),
|
|
4279
|
+
z125.literal("all"),
|
|
4280
|
+
z125.literal("inherit")
|
|
4267
4281
|
]).optional(),
|
|
4268
|
-
visibility:
|
|
4282
|
+
visibility: z125.union([z125.literal("visible"), z125.literal("hidden"), z125.literal("collapse")]).optional()
|
|
4269
4283
|
});
|
|
4270
|
-
var FigmaExporterDesignNodeTypeSchema =
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4284
|
+
var FigmaExporterDesignNodeTypeSchema = z125.union([
|
|
4285
|
+
z125.literal("FRAME"),
|
|
4286
|
+
z125.literal("TEXT"),
|
|
4287
|
+
z125.literal("SVG"),
|
|
4288
|
+
z125.literal("COMPONENT_INSTANCE")
|
|
4275
4289
|
]);
|
|
4276
|
-
var baseDesignNodeObjectSchema =
|
|
4277
|
-
id:
|
|
4290
|
+
var baseDesignNodeObjectSchema = z125.object({
|
|
4291
|
+
id: z125.string(),
|
|
4278
4292
|
type: FigmaExporterDesignNodeTypeSchema,
|
|
4279
|
-
parentId:
|
|
4293
|
+
parentId: z125.string().nullable(),
|
|
4280
4294
|
styles: FigmaExporterProcessedStylesSchema.partial()
|
|
4281
4295
|
});
|
|
4282
4296
|
var frameNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4283
|
-
type:
|
|
4297
|
+
type: z125.literal("FRAME")
|
|
4284
4298
|
});
|
|
4285
4299
|
var textNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4286
|
-
type:
|
|
4287
|
-
characters:
|
|
4300
|
+
type: z125.literal("TEXT"),
|
|
4301
|
+
characters: z125.string()
|
|
4288
4302
|
});
|
|
4289
4303
|
var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4290
|
-
type:
|
|
4291
|
-
svgString:
|
|
4304
|
+
type: z125.literal("SVG"),
|
|
4305
|
+
svgString: z125.string()
|
|
4292
4306
|
});
|
|
4293
4307
|
var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
|
|
4294
|
-
type:
|
|
4295
|
-
supernovaId:
|
|
4296
|
-
componentSetName:
|
|
4297
|
-
componentSetDescription:
|
|
4298
|
-
componentName:
|
|
4299
|
-
componentDescription:
|
|
4300
|
-
props:
|
|
4301
|
-
});
|
|
4302
|
-
var frameNodeSchema =
|
|
4308
|
+
type: z125.literal("COMPONENT_INSTANCE"),
|
|
4309
|
+
supernovaId: z125.string(),
|
|
4310
|
+
componentSetName: z125.string(),
|
|
4311
|
+
componentSetDescription: z125.string(),
|
|
4312
|
+
componentName: z125.string(),
|
|
4313
|
+
componentDescription: z125.string(),
|
|
4314
|
+
props: z125.record(z125.string(), z125.union([z125.string(), z125.boolean()]))
|
|
4315
|
+
});
|
|
4316
|
+
var frameNodeSchema = z125.lazy(
|
|
4303
4317
|
() => frameNodeObjectSchema.extend({
|
|
4304
4318
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4305
4319
|
})
|
|
4306
4320
|
);
|
|
4307
4321
|
var textNodeSchema = textNodeObjectSchema;
|
|
4308
|
-
var svgNodeSchema =
|
|
4322
|
+
var svgNodeSchema = z125.lazy(
|
|
4309
4323
|
() => svgNodeObjectSchema.extend({
|
|
4310
4324
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4311
4325
|
})
|
|
4312
4326
|
);
|
|
4313
|
-
var componentInstanceNodeSchema =
|
|
4327
|
+
var componentInstanceNodeSchema = z125.lazy(
|
|
4314
4328
|
() => componentInstanceObjectSchema.extend({
|
|
4315
4329
|
children: FigmaExporterAnyDesignNodeSchema.array()
|
|
4316
4330
|
})
|
|
4317
4331
|
);
|
|
4318
|
-
var FigmaExporterAnyDesignNodeSchema =
|
|
4332
|
+
var FigmaExporterAnyDesignNodeSchema = z125.union([
|
|
4319
4333
|
frameNodeSchema,
|
|
4320
4334
|
textNodeSchema,
|
|
4321
4335
|
svgNodeSchema,
|
|
4322
4336
|
componentInstanceNodeSchema
|
|
4323
4337
|
]);
|
|
4324
|
-
var FigmaNodeRendererPayload =
|
|
4325
|
-
designSystemId:
|
|
4326
|
-
versionId:
|
|
4327
|
-
figmaNodePersistentIds:
|
|
4338
|
+
var FigmaNodeRendererPayload = z126.object({
|
|
4339
|
+
designSystemId: z126.string(),
|
|
4340
|
+
versionId: z126.string(),
|
|
4341
|
+
figmaNodePersistentIds: z126.string().array()
|
|
4328
4342
|
});
|
|
4329
|
-
var FigmaNodeStructureDataV2 =
|
|
4343
|
+
var FigmaNodeStructureDataV2 = z127.object({
|
|
4330
4344
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
4331
|
-
assetsInFile:
|
|
4332
|
-
components:
|
|
4333
|
-
componentSets:
|
|
4334
|
-
frames:
|
|
4345
|
+
assetsInFile: z127.object({
|
|
4346
|
+
components: z127.number(),
|
|
4347
|
+
componentSets: z127.number(),
|
|
4348
|
+
frames: z127.number()
|
|
4335
4349
|
})
|
|
4336
4350
|
});
|
|
4337
|
-
var FigmaNodeStructureStateV2 =
|
|
4338
|
-
var FigmaNodeStructureV2 =
|
|
4339
|
-
id:
|
|
4340
|
-
designSystemId:
|
|
4341
|
-
sourceId:
|
|
4342
|
-
storagePath:
|
|
4343
|
-
createdAt:
|
|
4344
|
-
updatedAt:
|
|
4351
|
+
var FigmaNodeStructureStateV2 = z128.enum(["InProgress", "Success", "Failed"]);
|
|
4352
|
+
var FigmaNodeStructureV2 = z128.object({
|
|
4353
|
+
id: z128.string(),
|
|
4354
|
+
designSystemId: z128.string(),
|
|
4355
|
+
sourceId: z128.string(),
|
|
4356
|
+
storagePath: z128.string().optional(),
|
|
4357
|
+
createdAt: z128.coerce.date(),
|
|
4358
|
+
updatedAt: z128.coerce.date(),
|
|
4345
4359
|
importState: FigmaNodeStructureStateV2,
|
|
4346
|
-
error:
|
|
4347
|
-
chunkSize:
|
|
4360
|
+
error: z128.string().optional(),
|
|
4361
|
+
chunkSize: z128.number().optional(),
|
|
4348
4362
|
// TODO Artem: remove after migration
|
|
4349
|
-
isFromLegacyStorage:
|
|
4363
|
+
isFromLegacyStorage: z128.boolean()
|
|
4350
4364
|
});
|
|
4351
|
-
var NpmRegistryAuthType =
|
|
4352
|
-
var NpmRegistryType =
|
|
4353
|
-
var NpmRegistryBasicAuthConfig =
|
|
4354
|
-
authType:
|
|
4355
|
-
username:
|
|
4356
|
-
password:
|
|
4365
|
+
var NpmRegistryAuthType = z129.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4366
|
+
var NpmRegistryType = z129.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4367
|
+
var NpmRegistryBasicAuthConfig = z129.object({
|
|
4368
|
+
authType: z129.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4369
|
+
username: z129.string(),
|
|
4370
|
+
password: z129.string()
|
|
4357
4371
|
});
|
|
4358
|
-
var NpmRegistryBearerAuthConfig =
|
|
4359
|
-
authType:
|
|
4360
|
-
accessToken:
|
|
4372
|
+
var NpmRegistryBearerAuthConfig = z129.object({
|
|
4373
|
+
authType: z129.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4374
|
+
accessToken: z129.string()
|
|
4361
4375
|
});
|
|
4362
|
-
var NpmRegistryNoAuthConfig =
|
|
4363
|
-
authType:
|
|
4376
|
+
var NpmRegistryNoAuthConfig = z129.object({
|
|
4377
|
+
authType: z129.literal(NpmRegistryAuthType.Enum.None)
|
|
4364
4378
|
});
|
|
4365
|
-
var NpmRegistrCustomAuthConfig =
|
|
4366
|
-
authType:
|
|
4367
|
-
authHeaderName:
|
|
4368
|
-
authHeaderValue:
|
|
4379
|
+
var NpmRegistrCustomAuthConfig = z129.object({
|
|
4380
|
+
authType: z129.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4381
|
+
authHeaderName: z129.string(),
|
|
4382
|
+
authHeaderValue: z129.string()
|
|
4369
4383
|
});
|
|
4370
|
-
var NpmRegistryAuthConfig =
|
|
4384
|
+
var NpmRegistryAuthConfig = z129.discriminatedUnion("authType", [
|
|
4371
4385
|
NpmRegistryBasicAuthConfig,
|
|
4372
4386
|
NpmRegistryBearerAuthConfig,
|
|
4373
4387
|
NpmRegistryNoAuthConfig,
|
|
4374
4388
|
NpmRegistrCustomAuthConfig
|
|
4375
4389
|
]);
|
|
4376
|
-
var NpmRegistryConfigBase =
|
|
4390
|
+
var NpmRegistryConfigBase = z129.object({
|
|
4377
4391
|
registryType: NpmRegistryType,
|
|
4378
|
-
enabledScopes:
|
|
4379
|
-
customRegistryUrl:
|
|
4380
|
-
bypassProxy:
|
|
4381
|
-
npmProxyRegistryConfigId:
|
|
4382
|
-
npmProxyVersion:
|
|
4392
|
+
enabledScopes: z129.array(z129.string()),
|
|
4393
|
+
customRegistryUrl: z129.string().optional(),
|
|
4394
|
+
bypassProxy: z129.boolean().default(false),
|
|
4395
|
+
npmProxyRegistryConfigId: z129.string().optional(),
|
|
4396
|
+
npmProxyVersion: z129.number().optional()
|
|
4383
4397
|
});
|
|
4384
4398
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4385
|
-
var SsoProvider =
|
|
4386
|
-
providerId:
|
|
4387
|
-
defaultAutoInviteValue:
|
|
4388
|
-
autoInviteDomains:
|
|
4389
|
-
skipDocsSupernovaLogin:
|
|
4390
|
-
areInvitesDisabled:
|
|
4391
|
-
isTestMode:
|
|
4392
|
-
emailDomains:
|
|
4393
|
-
metadataXml:
|
|
4394
|
-
});
|
|
4395
|
-
var WorkspaceUntypedData =
|
|
4396
|
-
id:
|
|
4397
|
-
workspaceId:
|
|
4398
|
-
value:
|
|
4399
|
-
createdAt:
|
|
4400
|
-
updatedAt:
|
|
4401
|
-
});
|
|
4402
|
-
var WorkspaceRoleSchema = z131.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4403
|
-
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4404
|
-
var WorkspaceSeatType = z131.enum(["Full", "Builder", "None"]);
|
|
4399
|
+
var SsoProvider = z130.object({
|
|
4400
|
+
providerId: z130.string(),
|
|
4401
|
+
defaultAutoInviteValue: z130.boolean(),
|
|
4402
|
+
autoInviteDomains: z130.record(z130.string(), z130.boolean()),
|
|
4403
|
+
skipDocsSupernovaLogin: z130.boolean(),
|
|
4404
|
+
areInvitesDisabled: z130.boolean(),
|
|
4405
|
+
isTestMode: z130.boolean(),
|
|
4406
|
+
emailDomains: z130.array(z130.string()),
|
|
4407
|
+
metadataXml: z130.string().nullish()
|
|
4408
|
+
});
|
|
4409
|
+
var WorkspaceUntypedData = z131.object({
|
|
4410
|
+
id: z131.string(),
|
|
4411
|
+
workspaceId: z131.string(),
|
|
4412
|
+
value: z131.unknown(),
|
|
4413
|
+
createdAt: z131.coerce.date(),
|
|
4414
|
+
updatedAt: z131.coerce.date()
|
|
4415
|
+
});
|
|
4405
4416
|
var MAX_MEMBERS_COUNT = 100;
|
|
4406
4417
|
var UserInvite = z132.object({
|
|
4407
4418
|
email: z132.string().email().trim().transform((value) => value.toLowerCase()),
|