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