@supernova-studio/client 0.47.34 → 0.47.35
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 +799 -799
- package/dist/index.d.ts +799 -799
- package/dist/index.js +427 -427
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1817 -1817
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20,43 +20,44 @@ import { z as z11 } from "zod";
|
|
|
20
20
|
import { z as z12 } from "zod";
|
|
21
21
|
import { z as z13 } from "zod";
|
|
22
22
|
import { z as z14 } from "zod";
|
|
23
|
-
import { z as
|
|
24
|
-
import { z as
|
|
23
|
+
import { z as z119 } from "zod";
|
|
24
|
+
import { z as z17 } from "zod";
|
|
25
25
|
import { z as z15 } from "zod";
|
|
26
26
|
import { z as z16 } from "zod";
|
|
27
|
-
import { z as
|
|
27
|
+
import { z as z118 } from "zod";
|
|
28
|
+
import { z as z117 } from "zod";
|
|
28
29
|
import { z as z18 } from "zod";
|
|
29
|
-
import { z as z88 } from "zod";
|
|
30
|
-
import { z as z87 } from "zod";
|
|
31
30
|
import { z as z19 } from "zod";
|
|
32
|
-
import { z as z21 } from "zod";
|
|
33
31
|
import { z as z20 } from "zod";
|
|
32
|
+
import { z as z21 } from "zod";
|
|
33
|
+
import { z as z91 } from "zod";
|
|
34
|
+
import { z as z90 } from "zod";
|
|
34
35
|
import { z as z22 } from "zod";
|
|
36
|
+
import { z as z24 } from "zod";
|
|
35
37
|
import { z as z23 } from "zod";
|
|
36
|
-
import { z as z26 } from "zod";
|
|
37
38
|
import { z as z25 } from "zod";
|
|
38
|
-
import { z as
|
|
39
|
-
import { z as z27 } from "zod";
|
|
40
|
-
import { z as z33 } from "zod";
|
|
41
|
-
import { z as z28 } from "zod";
|
|
39
|
+
import { z as z26 } from "zod";
|
|
42
40
|
import { z as z29 } from "zod";
|
|
41
|
+
import { z as z28 } from "zod";
|
|
42
|
+
import { z as z27 } from "zod";
|
|
43
43
|
import { z as z30 } from "zod";
|
|
44
|
+
import { z as z36 } from "zod";
|
|
44
45
|
import { z as z31 } from "zod";
|
|
45
46
|
import { z as z32 } from "zod";
|
|
47
|
+
import { z as z33 } from "zod";
|
|
46
48
|
import { z as z34 } from "zod";
|
|
47
|
-
import { z as z38 } from "zod";
|
|
48
|
-
import { z as z37 } from "zod";
|
|
49
|
-
import { z as z36 } from "zod";
|
|
50
49
|
import { z as z35 } from "zod";
|
|
50
|
+
import { z as z37 } from "zod";
|
|
51
51
|
import { z as z41 } from "zod";
|
|
52
52
|
import { z as z40 } from "zod";
|
|
53
53
|
import { z as z39 } from "zod";
|
|
54
|
+
import { z as z38 } from "zod";
|
|
54
55
|
import { z as z44 } from "zod";
|
|
55
56
|
import { z as z43 } from "zod";
|
|
56
57
|
import { z as z42 } from "zod";
|
|
57
|
-
import { z as z45 } from "zod";
|
|
58
|
-
import { z as z46 } from "zod";
|
|
59
58
|
import { z as z47 } from "zod";
|
|
59
|
+
import { z as z46 } from "zod";
|
|
60
|
+
import { z as z45 } from "zod";
|
|
60
61
|
import { z as z48 } from "zod";
|
|
61
62
|
import { z as z49 } from "zod";
|
|
62
63
|
import { z as z50 } from "zod";
|
|
@@ -78,32 +79,32 @@ import { z as z65 } from "zod";
|
|
|
78
79
|
import { z as z66 } from "zod";
|
|
79
80
|
import { z as z67 } from "zod";
|
|
80
81
|
import { z as z68 } from "zod";
|
|
81
|
-
import { z as z70 } from "zod";
|
|
82
82
|
import { z as z69 } from "zod";
|
|
83
|
+
import { z as z70 } from "zod";
|
|
83
84
|
import { z as z71 } from "zod";
|
|
84
|
-
import { z as z72 } from "zod";
|
|
85
85
|
import { z as z73 } from "zod";
|
|
86
|
-
import { z as
|
|
86
|
+
import { z as z72 } from "zod";
|
|
87
87
|
import { z as z74 } from "zod";
|
|
88
|
+
import { z as z75 } from "zod";
|
|
88
89
|
import { z as z76 } from "zod";
|
|
89
90
|
import { z as z78 } from "zod";
|
|
90
91
|
import { z as z77 } from "zod";
|
|
91
|
-
import { z as z86 } from "zod";
|
|
92
92
|
import { z as z79 } from "zod";
|
|
93
93
|
import { z as z81 } from "zod";
|
|
94
94
|
import { z as z80 } from "zod";
|
|
95
|
+
import { z as z89 } from "zod";
|
|
95
96
|
import { z as z82 } from "zod";
|
|
96
|
-
import { z as z83 } from "zod";
|
|
97
97
|
import { z as z84 } from "zod";
|
|
98
|
+
import { z as z83 } from "zod";
|
|
98
99
|
import { z as z85 } from "zod";
|
|
99
|
-
import { z as
|
|
100
|
-
import { z as
|
|
101
|
-
import { z as
|
|
100
|
+
import { z as z86 } from "zod";
|
|
101
|
+
import { z as z87 } from "zod";
|
|
102
|
+
import { z as z88 } from "zod";
|
|
102
103
|
import { z as z92 } from "zod";
|
|
103
|
-
import { z as
|
|
104
|
-
import { z as z94 } from "zod";
|
|
105
|
-
import { z as z95 } from "zod";
|
|
104
|
+
import { z as z93 } from "zod";
|
|
106
105
|
import { z as z96 } from "zod";
|
|
106
|
+
import { z as z95 } from "zod";
|
|
107
|
+
import { z as z94 } from "zod";
|
|
107
108
|
import { z as z97 } from "zod";
|
|
108
109
|
import { z as z98 } from "zod";
|
|
109
110
|
import { z as z99 } from "zod";
|
|
@@ -111,63 +112,62 @@ import { z as z100 } from "zod";
|
|
|
111
112
|
import { z as z101 } from "zod";
|
|
112
113
|
import { z as z102 } from "zod";
|
|
113
114
|
import { z as z103 } from "zod";
|
|
114
|
-
import { z as z123 } from "zod";
|
|
115
115
|
import { z as z104 } from "zod";
|
|
116
116
|
import { z as z105 } from "zod";
|
|
117
|
-
import { z as z107 } from "zod";
|
|
118
117
|
import { z as z106 } from "zod";
|
|
119
|
-
import { z as
|
|
118
|
+
import { z as z110 } from "zod";
|
|
120
119
|
import IPCIDR from "ip-cidr";
|
|
120
|
+
import { z as z109 } from "zod";
|
|
121
|
+
import { z as z107 } from "zod";
|
|
121
122
|
import { z as z108 } from "zod";
|
|
122
|
-
import { z as z110 } from "zod";
|
|
123
123
|
import { z as z111 } from "zod";
|
|
124
124
|
import { z as z112 } from "zod";
|
|
125
125
|
import { z as z113 } from "zod";
|
|
126
126
|
import { z as z114 } from "zod";
|
|
127
127
|
import { z as z115 } from "zod";
|
|
128
128
|
import { z as z116 } from "zod";
|
|
129
|
-
import { z as
|
|
130
|
-
import { z as
|
|
131
|
-
import { z as z119 } from "zod";
|
|
129
|
+
import { z as z126 } from "zod";
|
|
130
|
+
import { z as z125 } from "zod";
|
|
132
131
|
import { z as z120 } from "zod";
|
|
133
132
|
import { z as z121 } from "zod";
|
|
134
133
|
import { z as z122 } from "zod";
|
|
134
|
+
import { z as z123 } from "zod";
|
|
135
135
|
import { z as z124 } from "zod";
|
|
136
|
-
import { z as
|
|
137
|
-
import { z as
|
|
136
|
+
import { z as z130 } from "zod";
|
|
137
|
+
import { z as z129 } from "zod";
|
|
138
138
|
import { z as z127 } from "zod";
|
|
139
139
|
import { z as z128 } from "zod";
|
|
140
|
-
import
|
|
140
|
+
import slugifyImplementation from "@sindresorhus/slugify";
|
|
141
|
+
import { z as z139 } from "zod";
|
|
141
142
|
import { z as z131 } from "zod";
|
|
142
143
|
import { z as z132 } from "zod";
|
|
143
144
|
import { z as z133 } from "zod";
|
|
144
145
|
import { z as z134 } from "zod";
|
|
145
146
|
import { z as z135 } from "zod";
|
|
146
|
-
import { z as z138 } from "zod";
|
|
147
147
|
import { z as z136 } from "zod";
|
|
148
148
|
import { z as z137 } from "zod";
|
|
149
|
-
import { z as
|
|
150
|
-
import { z as
|
|
151
|
-
import { z as z146 } from "zod";
|
|
149
|
+
import { z as z138 } from "zod";
|
|
150
|
+
import { z as z140 } from "zod";
|
|
152
151
|
import { z as z141 } from "zod";
|
|
153
152
|
import { z as z142 } from "zod";
|
|
154
153
|
import { z as z143 } from "zod";
|
|
155
154
|
import { z as z144 } from "zod";
|
|
156
155
|
import { z as z145 } from "zod";
|
|
157
|
-
import { z as
|
|
158
|
-
import { z as
|
|
156
|
+
import { z as z147 } from "zod";
|
|
157
|
+
import { z as z146 } from "zod";
|
|
159
158
|
import { z as z148 } from "zod";
|
|
159
|
+
import { z as z149 } from "zod";
|
|
160
160
|
import { z as z150 } from "zod";
|
|
161
|
-
import { z as z152 } from "zod";
|
|
162
161
|
import { z as z151 } from "zod";
|
|
163
|
-
import
|
|
164
|
-
import { z as
|
|
162
|
+
import { z as z152 } from "zod";
|
|
163
|
+
import { z as z160 } from "zod";
|
|
165
164
|
import { z as z154 } from "zod";
|
|
165
|
+
import { z as z153 } from "zod";
|
|
166
|
+
import { z as z155 } from "zod";
|
|
166
167
|
import { z as z156 } from "zod";
|
|
167
168
|
import { z as z157 } from "zod";
|
|
168
169
|
import { z as z158 } from "zod";
|
|
169
170
|
import { z as z159 } from "zod";
|
|
170
|
-
import { z as z160 } from "zod";
|
|
171
171
|
var AssetDeleteScheduleStatus = z.enum(["InProgress", "Pending"]);
|
|
172
172
|
var AssetDeleteSchedule = z.object({
|
|
173
173
|
id: z.string(),
|
|
@@ -398,123 +398,211 @@ var CustomDomain = z14.object({
|
|
|
398
398
|
error: z14.string().nullish(),
|
|
399
399
|
errorCode: z14.string().nullish()
|
|
400
400
|
});
|
|
401
|
-
var
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
401
|
+
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
402
|
+
GitProviderNames2["Azure"] = "azure";
|
|
403
|
+
GitProviderNames2["Github"] = "github";
|
|
404
|
+
GitProviderNames2["Gitlab"] = "gitlab";
|
|
405
|
+
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
406
|
+
return GitProviderNames2;
|
|
407
|
+
})(GitProviderNames || {});
|
|
408
|
+
var GitProvider = z15.nativeEnum(GitProviderNames);
|
|
409
|
+
var PulsarPropertyType = z16.enum([
|
|
410
|
+
"string",
|
|
411
|
+
"number",
|
|
412
|
+
"boolean",
|
|
413
|
+
"image",
|
|
414
|
+
"enum",
|
|
415
|
+
"color",
|
|
416
|
+
"typography",
|
|
417
|
+
"component",
|
|
418
|
+
"componentProperties",
|
|
419
|
+
"tokenProperties",
|
|
420
|
+
"tokenType"
|
|
421
|
+
]);
|
|
422
|
+
var PulsarBaseProperty = z16.object({
|
|
423
|
+
label: z16.string(),
|
|
424
|
+
key: z16.string(),
|
|
425
|
+
description: z16.string().nullish(),
|
|
426
|
+
type: PulsarPropertyType,
|
|
427
|
+
values: z16.array(z16.string()).nullish(),
|
|
428
|
+
default: z16.union([z16.string(), z16.boolean(), z16.number()]).nullish(),
|
|
429
|
+
// PulsarPropertyValueType //is optional?
|
|
430
|
+
inputType: z16.enum(["code", "plain"]).optional(),
|
|
431
|
+
//is optional?
|
|
432
|
+
isMultiline: z16.boolean().nullish()
|
|
433
|
+
});
|
|
434
|
+
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
435
|
+
category: z16.string()
|
|
436
|
+
});
|
|
437
|
+
var PulsarContributionVariant = z16.object({
|
|
438
|
+
key: z16.string(),
|
|
439
|
+
name: z16.string(),
|
|
440
|
+
isDefault: nullishToOptional(z16.boolean()),
|
|
441
|
+
description: nullishToOptional(z16.string()),
|
|
442
|
+
thumbnailURL: nullishToOptional(z16.string())
|
|
443
|
+
});
|
|
444
|
+
var PulsarCustomBlock = z16.object({
|
|
445
|
+
title: nullishToOptional(z16.string()),
|
|
446
|
+
key: z16.string(),
|
|
447
|
+
category: nullishToOptional(z16.string()),
|
|
448
|
+
description: nullishToOptional(z16.string()),
|
|
449
|
+
iconURL: nullishToOptional(z16.string()),
|
|
450
|
+
mode: nullishToOptional(z16.enum(["array", "block"])),
|
|
451
|
+
properties: nullishToOptional(z16.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
452
|
+
});
|
|
453
|
+
var ExporterType = z17.enum(["code", "documentation"]);
|
|
454
|
+
var ExporterSource = z17.enum(["git", "upload"]);
|
|
455
|
+
var ExporterTag = z17.string();
|
|
456
|
+
var ExporterPulsarDetails = z17.object({
|
|
457
|
+
description: z17.string(),
|
|
458
|
+
version: z17.string(),
|
|
459
|
+
routingVersion: nullishToOptional(z17.string()),
|
|
460
|
+
author: nullishToOptional(z17.string()),
|
|
461
|
+
organization: nullishToOptional(z17.string()),
|
|
462
|
+
homepage: nullishToOptional(z17.string()),
|
|
463
|
+
readme: nullishToOptional(z17.string()),
|
|
464
|
+
tags: nullishToOptional(z17.array(ExporterTag)).default([]),
|
|
465
|
+
packageId: nullishToOptional(z17.string().max(255)),
|
|
466
|
+
iconURL: nullishToOptional(z17.string()),
|
|
467
|
+
configurationProperties: nullishToOptional(z17.array(PulsarContributionConfigurationProperty)).default([]),
|
|
468
|
+
customBlocks: nullishToOptional(z17.array(PulsarCustomBlock)).default([]),
|
|
469
|
+
blockVariants: nullishToOptional(z17.record(z17.string(), z17.array(PulsarContributionVariant))).default({}),
|
|
470
|
+
usesBrands: nullishToOptional(z17.boolean()).default(false),
|
|
471
|
+
usesThemes: nullishToOptional(z17.boolean()).default(false)
|
|
472
|
+
});
|
|
473
|
+
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
474
|
+
source: ExporterSource,
|
|
475
|
+
gitProvider: nullishToOptional(GitProvider),
|
|
476
|
+
gitUrl: nullishToOptional(z17.string()),
|
|
477
|
+
gitBranch: nullishToOptional(z17.string()),
|
|
478
|
+
gitDirectory: nullishToOptional(z17.string())
|
|
479
|
+
});
|
|
480
|
+
var Exporter = z17.object({
|
|
481
|
+
id: z17.string(),
|
|
482
|
+
createdAt: z17.coerce.date(),
|
|
483
|
+
name: z17.string(),
|
|
484
|
+
isPrivate: z17.boolean(),
|
|
485
|
+
details: ExporterDetails,
|
|
486
|
+
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
487
|
+
storagePath: nullishToOptional(z17.string()).default("")
|
|
488
|
+
});
|
|
489
|
+
var AssetDynamoRecord = z18.object({
|
|
490
|
+
path: z18.string(),
|
|
491
|
+
id: z18.string(),
|
|
492
|
+
designSystemId: z18.string(),
|
|
493
|
+
expiresAt: z18.number()
|
|
494
|
+
});
|
|
495
|
+
var AssetReference = z19.object({
|
|
496
|
+
id: z19.string(),
|
|
497
|
+
designSystemVersionId: z19.string(),
|
|
498
|
+
assetId: z19.string(),
|
|
499
|
+
persistentId: z19.string()
|
|
500
|
+
});
|
|
501
|
+
var AssetValue = z20.object({});
|
|
502
|
+
var AssetType = z21.enum(["Image", "Font"]);
|
|
503
|
+
var AssetScope = z21.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
|
|
504
|
+
var AssetFontProperties = z21.object({
|
|
505
|
+
family: z21.string(),
|
|
506
|
+
subfamily: z21.string()
|
|
507
|
+
});
|
|
508
|
+
var AssetProperties = z21.union([
|
|
509
|
+
z21.object({
|
|
510
|
+
fontProperties: z21.array(AssetFontProperties)
|
|
423
511
|
}),
|
|
424
|
-
|
|
425
|
-
width:
|
|
426
|
-
height:
|
|
512
|
+
z21.object({
|
|
513
|
+
width: z21.number(),
|
|
514
|
+
height: z21.number()
|
|
427
515
|
})
|
|
428
516
|
]);
|
|
429
|
-
var AssetOrigin =
|
|
430
|
-
originKey:
|
|
517
|
+
var AssetOrigin = z21.object({
|
|
518
|
+
originKey: z21.string()
|
|
431
519
|
});
|
|
432
|
-
var AssetProcessStatus =
|
|
433
|
-
var Asset =
|
|
434
|
-
id:
|
|
435
|
-
designSystemId:
|
|
520
|
+
var AssetProcessStatus = z21.enum(["Pending", "Uploaded", "Processed"]);
|
|
521
|
+
var Asset = z21.object({
|
|
522
|
+
id: z21.string(),
|
|
523
|
+
designSystemId: z21.string().nullish(),
|
|
436
524
|
type: AssetType,
|
|
437
|
-
originalFileName:
|
|
438
|
-
filePath:
|
|
525
|
+
originalFileName: z21.string().nullish(),
|
|
526
|
+
filePath: z21.string(),
|
|
439
527
|
scope: AssetScope,
|
|
440
528
|
properties: AssetProperties.nullish(),
|
|
441
529
|
state: AssetProcessStatus.optional(),
|
|
442
530
|
origin: AssetOrigin.optional(),
|
|
443
|
-
originKey:
|
|
531
|
+
originKey: z21.string().optional()
|
|
444
532
|
});
|
|
445
533
|
var ResolvedAsset = Asset.omit({
|
|
446
534
|
filePath: true
|
|
447
535
|
}).extend({
|
|
448
|
-
url:
|
|
536
|
+
url: z21.string()
|
|
449
537
|
});
|
|
450
|
-
var TokenDataAliasSchema =
|
|
451
|
-
aliasTo:
|
|
538
|
+
var TokenDataAliasSchema = z22.object({
|
|
539
|
+
aliasTo: z22.string().optional().nullable().transform((v) => v ?? void 0)
|
|
452
540
|
});
|
|
453
541
|
function tokenAliasOrValue(value) {
|
|
454
542
|
return TokenDataAliasSchema.extend({
|
|
455
543
|
value: value.optional().nullable().transform((v) => v ?? void 0)
|
|
456
544
|
});
|
|
457
545
|
}
|
|
458
|
-
var DimensionUnit =
|
|
459
|
-
var DimensionValue =
|
|
546
|
+
var DimensionUnit = z23.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
|
|
547
|
+
var DimensionValue = z23.object({
|
|
460
548
|
unit: DimensionUnit,
|
|
461
|
-
measure:
|
|
549
|
+
measure: z23.number()
|
|
462
550
|
});
|
|
463
551
|
var DimensionTokenData = tokenAliasOrValue(DimensionValue);
|
|
464
|
-
var BlurType =
|
|
465
|
-
var BlurValue =
|
|
552
|
+
var BlurType = z24.enum(["Layer", "Background"]);
|
|
553
|
+
var BlurValue = z24.object({
|
|
466
554
|
type: BlurType,
|
|
467
555
|
radius: DimensionTokenData
|
|
468
556
|
});
|
|
469
557
|
var BlurTokenData = tokenAliasOrValue(BlurValue);
|
|
470
|
-
var BorderRadiusUnit =
|
|
471
|
-
var BorderRadiusValue =
|
|
558
|
+
var BorderRadiusUnit = z25.enum(["Pixels", "Rem", "Percent"]);
|
|
559
|
+
var BorderRadiusValue = z25.object({
|
|
472
560
|
unit: BorderRadiusUnit,
|
|
473
|
-
measure:
|
|
561
|
+
measure: z25.number()
|
|
474
562
|
});
|
|
475
563
|
var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
|
|
476
|
-
var BorderWidthUnit =
|
|
477
|
-
var BorderWidthValue =
|
|
564
|
+
var BorderWidthUnit = z26.enum(["Pixels"]);
|
|
565
|
+
var BorderWidthValue = z26.object({
|
|
478
566
|
unit: BorderWidthUnit,
|
|
479
|
-
measure:
|
|
567
|
+
measure: z26.number()
|
|
480
568
|
});
|
|
481
569
|
var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
|
|
482
|
-
var OpacityValue =
|
|
483
|
-
unit:
|
|
484
|
-
measure:
|
|
570
|
+
var OpacityValue = z27.object({
|
|
571
|
+
unit: z27.enum(["Raw", "Pixels"]),
|
|
572
|
+
measure: z27.number()
|
|
485
573
|
});
|
|
486
574
|
var OpacityTokenData = tokenAliasOrValue(OpacityValue);
|
|
487
|
-
var ColorValue =
|
|
575
|
+
var ColorValue = z28.object({
|
|
488
576
|
opacity: OpacityTokenData,
|
|
489
|
-
color:
|
|
577
|
+
color: z28.string().or(TokenDataAliasSchema)
|
|
490
578
|
});
|
|
491
579
|
var ColorTokenData = tokenAliasOrValue(ColorValue);
|
|
492
|
-
var BorderPosition =
|
|
493
|
-
var BorderStyle =
|
|
494
|
-
var BorderValue =
|
|
580
|
+
var BorderPosition = z29.enum(["Inside", "Center", "Outside"]);
|
|
581
|
+
var BorderStyle = z29.enum(["Dashed", "Dotted", "Solid", "Groove"]);
|
|
582
|
+
var BorderValue = z29.object({
|
|
495
583
|
color: ColorTokenData,
|
|
496
584
|
width: BorderWidthTokenData,
|
|
497
585
|
position: BorderPosition,
|
|
498
586
|
style: BorderStyle.optional()
|
|
499
587
|
});
|
|
500
588
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
501
|
-
var ComponentElementData =
|
|
502
|
-
value:
|
|
503
|
-
thumbnailImage:
|
|
504
|
-
value:
|
|
505
|
-
url:
|
|
506
|
-
assetId:
|
|
589
|
+
var ComponentElementData = z30.object({
|
|
590
|
+
value: z30.object({
|
|
591
|
+
thumbnailImage: z30.object({
|
|
592
|
+
value: z30.object({
|
|
593
|
+
url: z30.string(),
|
|
594
|
+
assetId: z30.string()
|
|
507
595
|
})
|
|
508
596
|
}),
|
|
509
|
-
svg:
|
|
510
|
-
value:
|
|
511
|
-
url:
|
|
512
|
-
assetId:
|
|
597
|
+
svg: z30.object({
|
|
598
|
+
value: z30.object({
|
|
599
|
+
url: z30.string(),
|
|
600
|
+
assetId: z30.string()
|
|
513
601
|
})
|
|
514
602
|
}).optional()
|
|
515
603
|
})
|
|
516
604
|
});
|
|
517
|
-
var DesignTokenType =
|
|
605
|
+
var DesignTokenType = z31.enum([
|
|
518
606
|
"Color",
|
|
519
607
|
"Border",
|
|
520
608
|
"Gradient",
|
|
@@ -546,7 +634,7 @@ var DesignTokenType = z28.enum([
|
|
|
546
634
|
]);
|
|
547
635
|
var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
|
|
548
636
|
var DesignElementType = DesignTokenType.or(
|
|
549
|
-
|
|
637
|
+
z31.enum([
|
|
550
638
|
"Component",
|
|
551
639
|
"Theme",
|
|
552
640
|
"Documentation",
|
|
@@ -558,7 +646,7 @@ var DesignElementType = DesignTokenType.or(
|
|
|
558
646
|
"PageBlock"
|
|
559
647
|
])
|
|
560
648
|
);
|
|
561
|
-
var DesignElementCategory =
|
|
649
|
+
var DesignElementCategory = z31.enum([
|
|
562
650
|
"Token",
|
|
563
651
|
"Component",
|
|
564
652
|
"DesignSystemComponent",
|
|
@@ -566,82 +654,82 @@ var DesignElementCategory = z28.enum([
|
|
|
566
654
|
"Theme",
|
|
567
655
|
"PageBlock"
|
|
568
656
|
]);
|
|
569
|
-
var DesignSystemElementExportProps =
|
|
570
|
-
isAsset:
|
|
571
|
-
codeName:
|
|
572
|
-
});
|
|
573
|
-
var ShallowDesignElement =
|
|
574
|
-
id:
|
|
575
|
-
persistentId:
|
|
576
|
-
designSystemVersionId:
|
|
657
|
+
var DesignSystemElementExportProps = z31.object({
|
|
658
|
+
isAsset: z31.boolean().nullish().transform((v) => v ?? false),
|
|
659
|
+
codeName: z31.string().nullish()
|
|
660
|
+
});
|
|
661
|
+
var ShallowDesignElement = z31.object({
|
|
662
|
+
id: z31.string(),
|
|
663
|
+
persistentId: z31.string(),
|
|
664
|
+
designSystemVersionId: z31.string(),
|
|
577
665
|
type: DesignElementType,
|
|
578
|
-
brandPersistentId:
|
|
579
|
-
parentPersistentId:
|
|
580
|
-
shortPersistentId:
|
|
666
|
+
brandPersistentId: z31.string().optional(),
|
|
667
|
+
parentPersistentId: z31.string().optional(),
|
|
668
|
+
shortPersistentId: z31.string().optional(),
|
|
581
669
|
childType: DesignElementType.optional(),
|
|
582
|
-
sortOrder:
|
|
583
|
-
origin:
|
|
670
|
+
sortOrder: z31.number(),
|
|
671
|
+
origin: z31.record(z31.any()).optional()
|
|
584
672
|
});
|
|
585
673
|
var DesignElement = ShallowDesignElement.extend({
|
|
586
674
|
meta: ObjectMeta,
|
|
587
|
-
slug:
|
|
588
|
-
userSlug:
|
|
589
|
-
createdAt:
|
|
590
|
-
updatedAt:
|
|
675
|
+
slug: z31.string().optional(),
|
|
676
|
+
userSlug: z31.string().optional(),
|
|
677
|
+
createdAt: z31.coerce.date(),
|
|
678
|
+
updatedAt: z31.coerce.date(),
|
|
591
679
|
exportProperties: DesignSystemElementExportProps.optional(),
|
|
592
|
-
data:
|
|
593
|
-
origin:
|
|
680
|
+
data: z31.record(z31.any()),
|
|
681
|
+
origin: z31.record(z31.any()).optional()
|
|
594
682
|
});
|
|
595
683
|
var HierarchicalElements = DesignTokenType.or(
|
|
596
|
-
|
|
684
|
+
z31.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
|
|
597
685
|
);
|
|
598
|
-
var ElementPropertyTypeSchema =
|
|
599
|
-
var ElementPropertyTargetType =
|
|
600
|
-
var ElementPropertyLinkType =
|
|
686
|
+
var ElementPropertyTypeSchema = z32.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
687
|
+
var ElementPropertyTargetType = z32.enum(["Token", "Component", "DocumentationPage"]);
|
|
688
|
+
var ElementPropertyLinkType = z32.enum(["FigmaComponent", "DocumentationPage"]);
|
|
601
689
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
602
|
-
var ColorTokenInlineData =
|
|
603
|
-
value:
|
|
690
|
+
var ColorTokenInlineData = z32.object({
|
|
691
|
+
value: z32.string()
|
|
604
692
|
});
|
|
605
|
-
var ElementPropertyDefinitionOption =
|
|
606
|
-
id:
|
|
607
|
-
name:
|
|
693
|
+
var ElementPropertyDefinitionOption = z32.object({
|
|
694
|
+
id: z32.string(),
|
|
695
|
+
name: z32.string(),
|
|
608
696
|
backgroundColor: ColorTokenInlineData.optional()
|
|
609
697
|
});
|
|
610
|
-
var ElementPropertyDefinition =
|
|
611
|
-
id:
|
|
612
|
-
designSystemVersionId:
|
|
613
|
-
persistentId:
|
|
614
|
-
name:
|
|
615
|
-
codeName:
|
|
616
|
-
description:
|
|
698
|
+
var ElementPropertyDefinition = z32.object({
|
|
699
|
+
id: z32.string(),
|
|
700
|
+
designSystemVersionId: z32.string(),
|
|
701
|
+
persistentId: z32.string(),
|
|
702
|
+
name: z32.string(),
|
|
703
|
+
codeName: z32.string().regex(CODE_NAME_REGEX),
|
|
704
|
+
description: z32.string(),
|
|
617
705
|
type: ElementPropertyTypeSchema,
|
|
618
706
|
targetElementType: ElementPropertyTargetType,
|
|
619
|
-
options:
|
|
707
|
+
options: z32.array(ElementPropertyDefinitionOption).optional(),
|
|
620
708
|
linkElementType: ElementPropertyLinkType.optional()
|
|
621
709
|
});
|
|
622
710
|
var ElementPropertyType = ElementPropertyTypeSchema.enum;
|
|
623
|
-
var ElementPropertyValue =
|
|
624
|
-
id:
|
|
625
|
-
designSystemVersionId:
|
|
626
|
-
targetElementPersistentId:
|
|
627
|
-
definitionPersistentId:
|
|
628
|
-
stringValue:
|
|
629
|
-
numberValue:
|
|
630
|
-
booleanValue:
|
|
631
|
-
referenceValue:
|
|
632
|
-
referenceValuePreview:
|
|
633
|
-
});
|
|
634
|
-
var Point2D =
|
|
635
|
-
x:
|
|
636
|
-
y:
|
|
711
|
+
var ElementPropertyValue = z33.object({
|
|
712
|
+
id: z33.string(),
|
|
713
|
+
designSystemVersionId: z33.string(),
|
|
714
|
+
targetElementPersistentId: z33.string(),
|
|
715
|
+
definitionPersistentId: z33.string(),
|
|
716
|
+
stringValue: z33.string().nullish(),
|
|
717
|
+
numberValue: z33.number().nullish(),
|
|
718
|
+
booleanValue: z33.boolean().nullish(),
|
|
719
|
+
referenceValue: z33.string().nullish(),
|
|
720
|
+
referenceValuePreview: z33.string().optional()
|
|
721
|
+
});
|
|
722
|
+
var Point2D = z34.object({
|
|
723
|
+
x: z34.number(),
|
|
724
|
+
y: z34.number()
|
|
637
725
|
});
|
|
638
726
|
var nullSize = { height: -1, width: -1 };
|
|
639
727
|
function isNullSize(size) {
|
|
640
728
|
return size.height === nullSize.height && size.width === nullSize.width;
|
|
641
729
|
}
|
|
642
|
-
var Size =
|
|
643
|
-
width:
|
|
644
|
-
height:
|
|
730
|
+
var Size = z35.object({
|
|
731
|
+
width: z35.number().nullish().transform((v) => v ?? nullSize.width),
|
|
732
|
+
height: z35.number().nullish().transform((v) => v ?? nullSize.height)
|
|
645
733
|
});
|
|
646
734
|
var SizeOrUndefined = Size.optional().transform((v) => {
|
|
647
735
|
if (!v)
|
|
@@ -650,8 +738,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
|
|
|
650
738
|
return void 0;
|
|
651
739
|
return v;
|
|
652
740
|
});
|
|
653
|
-
var PageBlockCalloutType =
|
|
654
|
-
var PageBlockTypeV1 =
|
|
741
|
+
var PageBlockCalloutType = z36.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
742
|
+
var PageBlockTypeV1 = z36.enum([
|
|
655
743
|
"Text",
|
|
656
744
|
"Heading",
|
|
657
745
|
"Code",
|
|
@@ -684,7 +772,7 @@ var PageBlockTypeV1 = z33.enum([
|
|
|
684
772
|
"TableRow",
|
|
685
773
|
"TableCell"
|
|
686
774
|
]);
|
|
687
|
-
var PageBlockCodeLanguage =
|
|
775
|
+
var PageBlockCodeLanguage = z36.enum([
|
|
688
776
|
"Angular",
|
|
689
777
|
"Bash",
|
|
690
778
|
"C",
|
|
@@ -718,70 +806,70 @@ var PageBlockCodeLanguage = z33.enum([
|
|
|
718
806
|
"XML",
|
|
719
807
|
"YAML"
|
|
720
808
|
]);
|
|
721
|
-
var PageBlockAlignment =
|
|
722
|
-
var PageBlockThemeType =
|
|
723
|
-
var PageBlockAssetType =
|
|
724
|
-
var PageBlockTilesAlignment =
|
|
725
|
-
var PageBlockTilesLayout =
|
|
726
|
-
var PageBlockTheme =
|
|
727
|
-
themeIds:
|
|
809
|
+
var PageBlockAlignment = z36.enum(["Left", "Center", "Stretch", "Right"]);
|
|
810
|
+
var PageBlockThemeType = z36.enum(["Override", "Comparison"]);
|
|
811
|
+
var PageBlockAssetType = z36.enum(["image", "figmaFrame"]);
|
|
812
|
+
var PageBlockTilesAlignment = z36.enum(["Center", "FrameHeight"]);
|
|
813
|
+
var PageBlockTilesLayout = z36.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
|
|
814
|
+
var PageBlockTheme = z36.object({
|
|
815
|
+
themeIds: z36.array(z36.string()),
|
|
728
816
|
type: PageBlockThemeType
|
|
729
817
|
});
|
|
730
|
-
var PageBlockUrlPreview =
|
|
731
|
-
title: nullishToOptional(
|
|
732
|
-
description: nullishToOptional(
|
|
733
|
-
thumbnailUrl: nullishToOptional(
|
|
734
|
-
});
|
|
735
|
-
var PageBlockFrameOrigin =
|
|
736
|
-
sourceFileName: nullishToOptional(
|
|
737
|
-
title: nullishToOptional(
|
|
738
|
-
previewUrl: nullishToOptional(
|
|
739
|
-
valid: nullishToOptional(
|
|
740
|
-
referenceId: nullishToOptional(
|
|
741
|
-
assetId: nullishToOptional(
|
|
742
|
-
assetScale: nullishToOptional(
|
|
743
|
-
width: nullishToOptional(
|
|
744
|
-
height: nullishToOptional(
|
|
745
|
-
});
|
|
746
|
-
var PageBlockFrame =
|
|
747
|
-
persistentId:
|
|
748
|
-
sourceId:
|
|
749
|
-
sourceFrameId:
|
|
750
|
-
title: nullishToOptional(
|
|
751
|
-
description: nullishToOptional(
|
|
818
|
+
var PageBlockUrlPreview = z36.object({
|
|
819
|
+
title: nullishToOptional(z36.string()),
|
|
820
|
+
description: nullishToOptional(z36.string()),
|
|
821
|
+
thumbnailUrl: nullishToOptional(z36.string())
|
|
822
|
+
});
|
|
823
|
+
var PageBlockFrameOrigin = z36.object({
|
|
824
|
+
sourceFileName: nullishToOptional(z36.string()),
|
|
825
|
+
title: nullishToOptional(z36.string()),
|
|
826
|
+
previewUrl: nullishToOptional(z36.string()),
|
|
827
|
+
valid: nullishToOptional(z36.boolean()),
|
|
828
|
+
referenceId: nullishToOptional(z36.string()),
|
|
829
|
+
assetId: nullishToOptional(z36.string()),
|
|
830
|
+
assetScale: nullishToOptional(z36.number()),
|
|
831
|
+
width: nullishToOptional(z36.number()),
|
|
832
|
+
height: nullishToOptional(z36.number())
|
|
833
|
+
});
|
|
834
|
+
var PageBlockFrame = z36.object({
|
|
835
|
+
persistentId: z36.string(),
|
|
836
|
+
sourceId: z36.string(),
|
|
837
|
+
sourceFrameId: z36.string(),
|
|
838
|
+
title: nullishToOptional(z36.string()),
|
|
839
|
+
description: nullishToOptional(z36.string()),
|
|
752
840
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
753
841
|
origin: nullishToOptional(PageBlockFrameOrigin)
|
|
754
842
|
});
|
|
755
|
-
var PageBlockAsset =
|
|
843
|
+
var PageBlockAsset = z36.object({
|
|
756
844
|
type: PageBlockAssetType,
|
|
757
|
-
id: nullishToOptional(
|
|
758
|
-
url: nullishToOptional(
|
|
845
|
+
id: nullishToOptional(z36.string()),
|
|
846
|
+
url: nullishToOptional(z36.string()),
|
|
759
847
|
figmaFrame: nullishToOptional(PageBlockFrame)
|
|
760
848
|
});
|
|
761
|
-
var PageBlockLinkPreview =
|
|
762
|
-
title: nullishToOptional(
|
|
763
|
-
valid: nullishToOptional(
|
|
849
|
+
var PageBlockLinkPreview = z36.object({
|
|
850
|
+
title: nullishToOptional(z36.string()),
|
|
851
|
+
valid: nullishToOptional(z36.boolean())
|
|
764
852
|
});
|
|
765
|
-
var PageBlockShortcut =
|
|
766
|
-
persistentId:
|
|
767
|
-
title: nullishToOptional(
|
|
768
|
-
description: nullishToOptional(
|
|
853
|
+
var PageBlockShortcut = z36.object({
|
|
854
|
+
persistentId: z36.string(),
|
|
855
|
+
title: nullishToOptional(z36.string()),
|
|
856
|
+
description: nullishToOptional(z36.string()),
|
|
769
857
|
asset: nullishToOptional(PageBlockAsset),
|
|
770
|
-
documentationItemId: nullishToOptional(
|
|
771
|
-
pageHeadingId: nullishToOptional(
|
|
772
|
-
url: nullishToOptional(
|
|
773
|
-
openInNewTab: nullishToOptional(
|
|
858
|
+
documentationItemId: nullishToOptional(z36.string()),
|
|
859
|
+
pageHeadingId: nullishToOptional(z36.string()),
|
|
860
|
+
url: nullishToOptional(z36.string()),
|
|
861
|
+
openInNewTab: nullishToOptional(z36.boolean()),
|
|
774
862
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
775
863
|
documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
|
|
776
864
|
});
|
|
777
|
-
var PageBlockCustomBlockPropertyImageValue =
|
|
865
|
+
var PageBlockCustomBlockPropertyImageValue = z36.object({
|
|
778
866
|
asset: nullishToOptional(PageBlockAsset),
|
|
779
|
-
assetId: nullishToOptional(
|
|
780
|
-
assetUrl: nullishToOptional(
|
|
867
|
+
assetId: nullishToOptional(z36.string()),
|
|
868
|
+
assetUrl: nullishToOptional(z36.string())
|
|
781
869
|
});
|
|
782
|
-
var PageBlockCustomBlockPropertyValue =
|
|
783
|
-
key:
|
|
784
|
-
value:
|
|
870
|
+
var PageBlockCustomBlockPropertyValue = z36.object({
|
|
871
|
+
key: z36.string(),
|
|
872
|
+
value: z36.any()
|
|
785
873
|
// TODO Artem: for some reason there are cases when there's an array here in the DB
|
|
786
874
|
// e.g. element id 67451 in the dev db
|
|
787
875
|
// value: z
|
|
@@ -792,360 +880,360 @@ var PageBlockCustomBlockPropertyValue = z33.object({
|
|
|
792
880
|
// .or(TypographyTokenData)
|
|
793
881
|
// .or(PageBlockCustomBlockPropertyImageValue),
|
|
794
882
|
});
|
|
795
|
-
var PageBlockFigmaFrameProperties =
|
|
883
|
+
var PageBlockFigmaFrameProperties = z36.object({
|
|
796
884
|
color: nullishToOptional(
|
|
797
|
-
|
|
798
|
-
value:
|
|
885
|
+
z36.object({
|
|
886
|
+
value: z36.string()
|
|
799
887
|
})
|
|
800
888
|
),
|
|
801
889
|
alignment: PageBlockTilesAlignment,
|
|
802
890
|
layout: PageBlockTilesLayout,
|
|
803
891
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
804
|
-
showTitles:
|
|
892
|
+
showTitles: z36.boolean()
|
|
805
893
|
});
|
|
806
|
-
var PageBlockRenderCodeProperties =
|
|
807
|
-
showCode:
|
|
808
|
-
showControls:
|
|
894
|
+
var PageBlockRenderCodeProperties = z36.object({
|
|
895
|
+
showCode: z36.boolean(),
|
|
896
|
+
showControls: z36.boolean().optional()
|
|
809
897
|
});
|
|
810
|
-
var PageBlockAssetComponent =
|
|
811
|
-
persistentId:
|
|
812
|
-
componentAssetId:
|
|
813
|
-
title: nullishToOptional(
|
|
814
|
-
description: nullishToOptional(
|
|
898
|
+
var PageBlockAssetComponent = z36.object({
|
|
899
|
+
persistentId: z36.string(),
|
|
900
|
+
componentAssetId: z36.string(),
|
|
901
|
+
title: nullishToOptional(z36.string()),
|
|
902
|
+
description: nullishToOptional(z36.string()),
|
|
815
903
|
backgroundColor: nullishToOptional(ColorTokenInlineData)
|
|
816
904
|
});
|
|
817
|
-
var PageBlockTableColumn =
|
|
818
|
-
id:
|
|
905
|
+
var PageBlockTableColumn = z36.object({
|
|
906
|
+
id: z36.string(),
|
|
819
907
|
width: DimensionTokenData
|
|
820
908
|
});
|
|
821
|
-
var PageBlockTableProperties =
|
|
822
|
-
showBorders:
|
|
823
|
-
showHeaderRow:
|
|
824
|
-
showHeaderColumn:
|
|
825
|
-
columns:
|
|
909
|
+
var PageBlockTableProperties = z36.object({
|
|
910
|
+
showBorders: z36.boolean(),
|
|
911
|
+
showHeaderRow: z36.boolean(),
|
|
912
|
+
showHeaderColumn: z36.boolean(),
|
|
913
|
+
columns: z36.array(PageBlockTableColumn)
|
|
826
914
|
});
|
|
827
|
-
var PageBlockTextSpanAttributeType =
|
|
828
|
-
var PageBlockTextSpanAttribute =
|
|
915
|
+
var PageBlockTextSpanAttributeType = z36.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
|
|
916
|
+
var PageBlockTextSpanAttribute = z36.object({
|
|
829
917
|
type: PageBlockTextSpanAttributeType,
|
|
830
|
-
link: nullishToOptional(
|
|
831
|
-
documentationItemId: nullishToOptional(
|
|
832
|
-
openInNewWindow: nullishToOptional(
|
|
918
|
+
link: nullishToOptional(z36.string()),
|
|
919
|
+
documentationItemId: nullishToOptional(z36.string()),
|
|
920
|
+
openInNewWindow: nullishToOptional(z36.boolean()),
|
|
833
921
|
// deprecated. use openInNewTab
|
|
834
|
-
openInNewTab: nullishToOptional(
|
|
922
|
+
openInNewTab: nullishToOptional(z36.boolean())
|
|
835
923
|
});
|
|
836
|
-
var PageBlockTextSpan =
|
|
837
|
-
text:
|
|
838
|
-
attributes:
|
|
924
|
+
var PageBlockTextSpan = z36.object({
|
|
925
|
+
text: z36.string(),
|
|
926
|
+
attributes: z36.array(PageBlockTextSpanAttribute)
|
|
839
927
|
});
|
|
840
|
-
var PageBlockText =
|
|
841
|
-
spans:
|
|
928
|
+
var PageBlockText = z36.object({
|
|
929
|
+
spans: z36.array(PageBlockTextSpan)
|
|
842
930
|
});
|
|
843
|
-
var PageBlockBaseV1 =
|
|
844
|
-
persistentId:
|
|
931
|
+
var PageBlockBaseV1 = z36.object({
|
|
932
|
+
persistentId: z36.string(),
|
|
845
933
|
type: PageBlockTypeV1,
|
|
846
934
|
// Element linking
|
|
847
|
-
designObjectId: nullishToOptional(
|
|
848
|
-
designObjectIds: nullishToOptional(
|
|
849
|
-
tokenType: nullishToOptional(DesignTokenType.or(
|
|
850
|
-
showNestedGroups: nullishToOptional(
|
|
851
|
-
brandId: nullishToOptional(
|
|
935
|
+
designObjectId: nullishToOptional(z36.string()),
|
|
936
|
+
designObjectIds: nullishToOptional(z36.array(z36.string())),
|
|
937
|
+
tokenType: nullishToOptional(DesignTokenType.or(z36.literal("Font"))),
|
|
938
|
+
showNestedGroups: nullishToOptional(z36.boolean()),
|
|
939
|
+
brandId: nullishToOptional(z36.string()),
|
|
852
940
|
// Rich text
|
|
853
941
|
text: nullishToOptional(PageBlockText),
|
|
854
|
-
caption: nullishToOptional(
|
|
855
|
-
headingType: nullishToOptional(
|
|
942
|
+
caption: nullishToOptional(z36.string()),
|
|
943
|
+
headingType: nullishToOptional(z36.number().min(1).max(3)),
|
|
856
944
|
codeLanguage: nullishToOptional(PageBlockCodeLanguage),
|
|
857
945
|
calloutType: nullishToOptional(PageBlockCalloutType),
|
|
858
|
-
urlInput: nullishToOptional(
|
|
859
|
-
url: nullishToOptional(
|
|
946
|
+
urlInput: nullishToOptional(z36.string()),
|
|
947
|
+
url: nullishToOptional(z36.string()),
|
|
860
948
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
861
949
|
// Image
|
|
862
950
|
asset: nullishToOptional(PageBlockAsset),
|
|
863
951
|
alignment: nullishToOptional(PageBlockAlignment),
|
|
864
952
|
// Shortcuts block
|
|
865
|
-
shortcuts: nullishToOptional(
|
|
953
|
+
shortcuts: nullishToOptional(z36.array(PageBlockShortcut)),
|
|
866
954
|
// Custom blocks
|
|
867
|
-
customBlockKey: nullishToOptional(
|
|
868
|
-
customBlockProperties: nullishToOptional(
|
|
869
|
-
variantKey: nullishToOptional(
|
|
955
|
+
customBlockKey: nullishToOptional(z36.string()),
|
|
956
|
+
customBlockProperties: nullishToOptional(z36.array(PageBlockCustomBlockPropertyValue)),
|
|
957
|
+
variantKey: nullishToOptional(z36.string()),
|
|
870
958
|
// Figma frames
|
|
871
959
|
figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
|
|
872
|
-
figmaFrames: nullishToOptional(
|
|
960
|
+
figmaFrames: nullishToOptional(z36.array(PageBlockFrame)),
|
|
873
961
|
// Generic
|
|
874
962
|
size: nullishToOptional(Size),
|
|
875
963
|
backgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
876
964
|
// Render code
|
|
877
965
|
renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
|
|
878
966
|
// Component assets
|
|
879
|
-
componentAssets: nullishToOptional(
|
|
967
|
+
componentAssets: nullishToOptional(z36.array(PageBlockAssetComponent)),
|
|
880
968
|
// Tables
|
|
881
969
|
tableProperties: nullishToOptional(PageBlockTableProperties),
|
|
882
|
-
columnId: nullishToOptional(
|
|
970
|
+
columnId: nullishToOptional(z36.string()),
|
|
883
971
|
// Token spreadsheet
|
|
884
972
|
theme: nullishToOptional(PageBlockTheme),
|
|
885
|
-
blacklistedElementProperties: nullishToOptional(
|
|
973
|
+
blacklistedElementProperties: nullishToOptional(z36.array(z36.string())),
|
|
886
974
|
// Arbitrary
|
|
887
|
-
userMetadata: nullishToOptional(
|
|
975
|
+
userMetadata: nullishToOptional(z36.string())
|
|
888
976
|
});
|
|
889
977
|
var PageBlockV1 = PageBlockBaseV1.extend({
|
|
890
|
-
children:
|
|
978
|
+
children: z36.lazy(
|
|
891
979
|
() => PageBlockV1.array().nullish().transform((t) => t ?? [])
|
|
892
980
|
)
|
|
893
981
|
});
|
|
894
|
-
var PageBlockLinkType =
|
|
895
|
-
var PageBlockImageType =
|
|
896
|
-
var PageBlockImageAlignment =
|
|
897
|
-
var PageBlockTableCellAlignment =
|
|
898
|
-
var PageBlockPreviewContainerSize =
|
|
899
|
-
var PageBlockThemeDisplayMode =
|
|
900
|
-
var PageBlockImageResourceReference =
|
|
901
|
-
resourceId:
|
|
902
|
-
url:
|
|
903
|
-
});
|
|
904
|
-
var PageBlockResourceFrameNodeReference =
|
|
905
|
-
sourceId:
|
|
906
|
-
frameReferenceId:
|
|
907
|
-
});
|
|
908
|
-
var PageBlockImageReference =
|
|
982
|
+
var PageBlockLinkType = z37.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
983
|
+
var PageBlockImageType = z37.enum(["Resource", "FigmaNode"]);
|
|
984
|
+
var PageBlockImageAlignment = z37.enum(["Left", "Center", "Stretch"]);
|
|
985
|
+
var PageBlockTableCellAlignment = z37.enum(["Left", "Center", "Right"]);
|
|
986
|
+
var PageBlockPreviewContainerSize = z37.enum(["Centered", "NaturalHeight"]);
|
|
987
|
+
var PageBlockThemeDisplayMode = z37.enum(["Split", "Override"]);
|
|
988
|
+
var PageBlockImageResourceReference = z37.object({
|
|
989
|
+
resourceId: z37.string(),
|
|
990
|
+
url: z37.string()
|
|
991
|
+
});
|
|
992
|
+
var PageBlockResourceFrameNodeReference = z37.object({
|
|
993
|
+
sourceId: z37.string(),
|
|
994
|
+
frameReferenceId: z37.string()
|
|
995
|
+
});
|
|
996
|
+
var PageBlockImageReference = z37.object({
|
|
909
997
|
type: PageBlockImageType,
|
|
910
998
|
resource: PageBlockImageResourceReference.optional(),
|
|
911
999
|
figmaNode: PageBlockResourceFrameNodeReference.optional()
|
|
912
1000
|
});
|
|
913
|
-
var PageBlockColorV2 =
|
|
914
|
-
value:
|
|
915
|
-
referencedTokenId:
|
|
1001
|
+
var PageBlockColorV2 = z37.object({
|
|
1002
|
+
value: z37.string(),
|
|
1003
|
+
referencedTokenId: z37.string().optional()
|
|
916
1004
|
});
|
|
917
|
-
var PageBlockAssetEntityMeta =
|
|
918
|
-
title:
|
|
919
|
-
description:
|
|
1005
|
+
var PageBlockAssetEntityMeta = z37.object({
|
|
1006
|
+
title: z37.string().optional(),
|
|
1007
|
+
description: z37.string().optional(),
|
|
920
1008
|
backgroundColor: PageBlockColorV2.optional()
|
|
921
1009
|
});
|
|
922
|
-
var PageBlockFigmaComponentEntityMeta =
|
|
923
|
-
title:
|
|
924
|
-
description:
|
|
1010
|
+
var PageBlockFigmaComponentEntityMeta = z37.object({
|
|
1011
|
+
title: z37.string().optional(),
|
|
1012
|
+
description: z37.string().optional(),
|
|
925
1013
|
backgroundColor: PageBlockColorV2.optional(),
|
|
926
|
-
selectedComponentProperties:
|
|
1014
|
+
selectedComponentProperties: z37.array(z37.string()).optional()
|
|
927
1015
|
});
|
|
928
|
-
var PageBlockFigmaNodeEntityMeta =
|
|
929
|
-
title:
|
|
930
|
-
description:
|
|
1016
|
+
var PageBlockFigmaNodeEntityMeta = z37.object({
|
|
1017
|
+
title: z37.string().optional(),
|
|
1018
|
+
description: z37.string().optional(),
|
|
931
1019
|
backgroundColor: PageBlockColorV2.optional()
|
|
932
1020
|
});
|
|
933
|
-
var PageBlockAppearanceV2 =
|
|
1021
|
+
var PageBlockAppearanceV2 = z37.object({
|
|
934
1022
|
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
935
|
-
numberOfColumns:
|
|
1023
|
+
numberOfColumns: z37.number().optional()
|
|
936
1024
|
});
|
|
937
|
-
var PageBlockItemUntypedValue =
|
|
938
|
-
value:
|
|
939
|
-
}).and(
|
|
940
|
-
var PageBlockLinkV2 =
|
|
1025
|
+
var PageBlockItemUntypedValue = z37.object({
|
|
1026
|
+
value: z37.any()
|
|
1027
|
+
}).and(z37.record(z37.any()));
|
|
1028
|
+
var PageBlockLinkV2 = z37.object({
|
|
941
1029
|
type: PageBlockLinkType,
|
|
942
|
-
documentationItemId:
|
|
943
|
-
pageHeadingId:
|
|
944
|
-
url:
|
|
945
|
-
openInNewTab:
|
|
1030
|
+
documentationItemId: z37.string().optional(),
|
|
1031
|
+
pageHeadingId: z37.string().optional(),
|
|
1032
|
+
url: z37.string().optional(),
|
|
1033
|
+
openInNewTab: z37.boolean().optional()
|
|
946
1034
|
});
|
|
947
|
-
var PageBlockItemV2 =
|
|
948
|
-
id:
|
|
1035
|
+
var PageBlockItemV2 = z37.object({
|
|
1036
|
+
id: z37.string(),
|
|
949
1037
|
linksTo: PageBlockLinkV2.optional(),
|
|
950
|
-
props:
|
|
1038
|
+
props: z37.record(PageBlockItemUntypedValue)
|
|
951
1039
|
});
|
|
952
|
-
var PageBlockDataV2 =
|
|
953
|
-
packageId:
|
|
954
|
-
variantId:
|
|
955
|
-
indentLevel:
|
|
1040
|
+
var PageBlockDataV2 = z37.object({
|
|
1041
|
+
packageId: z37.string(),
|
|
1042
|
+
variantId: z37.string().optional(),
|
|
1043
|
+
indentLevel: z37.number(),
|
|
956
1044
|
appearance: PageBlockAppearanceV2.optional(),
|
|
957
|
-
items:
|
|
1045
|
+
items: z37.array(PageBlockItemV2)
|
|
958
1046
|
});
|
|
959
|
-
var PageBlockItemAssetValue =
|
|
960
|
-
selectedPropertyIds:
|
|
961
|
-
showSearch:
|
|
1047
|
+
var PageBlockItemAssetValue = z37.object({
|
|
1048
|
+
selectedPropertyIds: z37.array(z37.string()).optional(),
|
|
1049
|
+
showSearch: z37.boolean().optional(),
|
|
962
1050
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
963
1051
|
backgroundColor: PageBlockColorV2.optional(),
|
|
964
|
-
value:
|
|
965
|
-
|
|
966
|
-
entityId:
|
|
967
|
-
entityType:
|
|
1052
|
+
value: z37.array(
|
|
1053
|
+
z37.object({
|
|
1054
|
+
entityId: z37.string(),
|
|
1055
|
+
entityType: z37.enum(["Asset", "AssetGroup"]),
|
|
968
1056
|
entityMeta: PageBlockAssetEntityMeta.optional()
|
|
969
1057
|
})
|
|
970
1058
|
).default([])
|
|
971
1059
|
});
|
|
972
|
-
var PageBlockItemAssetPropertyValue =
|
|
973
|
-
value:
|
|
1060
|
+
var PageBlockItemAssetPropertyValue = z37.object({
|
|
1061
|
+
value: z37.array(z37.string()).default([])
|
|
974
1062
|
});
|
|
975
|
-
var PageBlockItemFigmaComponentValue =
|
|
976
|
-
showComponentName:
|
|
977
|
-
showComponentDescription:
|
|
978
|
-
showPropertyList:
|
|
1063
|
+
var PageBlockItemFigmaComponentValue = z37.object({
|
|
1064
|
+
showComponentName: z37.boolean().optional(),
|
|
1065
|
+
showComponentDescription: z37.boolean().optional(),
|
|
1066
|
+
showPropertyList: z37.boolean().optional(),
|
|
979
1067
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
980
1068
|
backgroundColor: PageBlockColorV2.optional(),
|
|
981
|
-
value:
|
|
982
|
-
|
|
983
|
-
entityId:
|
|
984
|
-
entityType:
|
|
1069
|
+
value: z37.array(
|
|
1070
|
+
z37.object({
|
|
1071
|
+
entityId: z37.string(),
|
|
1072
|
+
entityType: z37.enum(["FigmaComponent"]),
|
|
985
1073
|
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
986
1074
|
})
|
|
987
1075
|
).default([])
|
|
988
1076
|
});
|
|
989
|
-
var PageBlockItemBooleanValue =
|
|
990
|
-
value:
|
|
1077
|
+
var PageBlockItemBooleanValue = z37.object({
|
|
1078
|
+
value: z37.boolean()
|
|
991
1079
|
});
|
|
992
|
-
var PageBlockItemCodeValue =
|
|
1080
|
+
var PageBlockItemCodeValue = z37.object({
|
|
993
1081
|
format: PageBlockCodeLanguage.optional(),
|
|
994
|
-
caption:
|
|
995
|
-
value:
|
|
996
|
-
});
|
|
997
|
-
var PageBlockItemSandboxValue =
|
|
998
|
-
showCode:
|
|
999
|
-
showControls:
|
|
1000
|
-
backgroundColor:
|
|
1001
|
-
alignPreview:
|
|
1002
|
-
previewHeight:
|
|
1003
|
-
value:
|
|
1004
|
-
});
|
|
1005
|
-
var PageBlockItemColorValue =
|
|
1006
|
-
var PageBlockItemComponentValue =
|
|
1007
|
-
selectedPropertyIds:
|
|
1008
|
-
value:
|
|
1009
|
-
|
|
1010
|
-
entityId:
|
|
1011
|
-
entityType:
|
|
1082
|
+
caption: z37.string().optional(),
|
|
1083
|
+
value: z37.string()
|
|
1084
|
+
});
|
|
1085
|
+
var PageBlockItemSandboxValue = z37.object({
|
|
1086
|
+
showCode: z37.boolean().optional(),
|
|
1087
|
+
showControls: z37.boolean().optional(),
|
|
1088
|
+
backgroundColor: z37.string().optional(),
|
|
1089
|
+
alignPreview: z37.enum(["Left", "Center"]).optional(),
|
|
1090
|
+
previewHeight: z37.number().optional(),
|
|
1091
|
+
value: z37.string()
|
|
1092
|
+
});
|
|
1093
|
+
var PageBlockItemColorValue = z37.record(z37.any());
|
|
1094
|
+
var PageBlockItemComponentValue = z37.object({
|
|
1095
|
+
selectedPropertyIds: z37.array(z37.string()).optional(),
|
|
1096
|
+
value: z37.array(
|
|
1097
|
+
z37.object({
|
|
1098
|
+
entityId: z37.string(),
|
|
1099
|
+
entityType: z37.enum(["Component", "ComponentGroup"])
|
|
1012
1100
|
})
|
|
1013
1101
|
).default([])
|
|
1014
1102
|
});
|
|
1015
|
-
var PageBlockItemComponentPropertyValue =
|
|
1016
|
-
value:
|
|
1017
|
-
});
|
|
1018
|
-
var PageBlockItemDividerValue =
|
|
1019
|
-
var PageBlockItemEmbedValue =
|
|
1020
|
-
value:
|
|
1021
|
-
caption:
|
|
1022
|
-
height:
|
|
1023
|
-
openGraph:
|
|
1024
|
-
title:
|
|
1025
|
-
description:
|
|
1026
|
-
imageUrl:
|
|
1103
|
+
var PageBlockItemComponentPropertyValue = z37.object({
|
|
1104
|
+
value: z37.string()
|
|
1105
|
+
});
|
|
1106
|
+
var PageBlockItemDividerValue = z37.object({});
|
|
1107
|
+
var PageBlockItemEmbedValue = z37.object({
|
|
1108
|
+
value: z37.string().optional(),
|
|
1109
|
+
caption: z37.string().optional(),
|
|
1110
|
+
height: z37.number().optional(),
|
|
1111
|
+
openGraph: z37.object({
|
|
1112
|
+
title: z37.string().optional(),
|
|
1113
|
+
description: z37.string().optional(),
|
|
1114
|
+
imageUrl: z37.string().optional()
|
|
1027
1115
|
}).optional()
|
|
1028
1116
|
});
|
|
1029
|
-
var PageBlockItemFigmaNodeValue =
|
|
1030
|
-
showSearch:
|
|
1117
|
+
var PageBlockItemFigmaNodeValue = z37.object({
|
|
1118
|
+
showSearch: z37.boolean().optional(),
|
|
1031
1119
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1032
1120
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1033
|
-
showFrameDetails:
|
|
1034
|
-
value:
|
|
1035
|
-
|
|
1036
|
-
entityId:
|
|
1121
|
+
showFrameDetails: z37.boolean().optional(),
|
|
1122
|
+
value: z37.array(
|
|
1123
|
+
z37.object({
|
|
1124
|
+
entityId: z37.string(),
|
|
1037
1125
|
entityMeta: PageBlockFigmaNodeEntityMeta.optional()
|
|
1038
1126
|
})
|
|
1039
1127
|
).default([])
|
|
1040
1128
|
});
|
|
1041
|
-
var PageBlockItemImageValue =
|
|
1042
|
-
alt:
|
|
1043
|
-
caption:
|
|
1129
|
+
var PageBlockItemImageValue = z37.object({
|
|
1130
|
+
alt: z37.string().optional(),
|
|
1131
|
+
caption: z37.string().optional(),
|
|
1044
1132
|
alignment: PageBlockImageAlignment.optional(),
|
|
1045
1133
|
value: PageBlockImageReference.optional()
|
|
1046
1134
|
});
|
|
1047
|
-
var PageBlockItemMarkdownValue =
|
|
1048
|
-
value:
|
|
1135
|
+
var PageBlockItemMarkdownValue = z37.object({
|
|
1136
|
+
value: z37.string()
|
|
1049
1137
|
});
|
|
1050
|
-
var PageBlockItemMultiRichTextValue =
|
|
1138
|
+
var PageBlockItemMultiRichTextValue = z37.object({
|
|
1051
1139
|
value: PageBlockText.array()
|
|
1052
1140
|
});
|
|
1053
|
-
var PageBlockItemMultiSelectValue =
|
|
1054
|
-
value:
|
|
1141
|
+
var PageBlockItemMultiSelectValue = z37.object({
|
|
1142
|
+
value: z37.array(z37.string()).default([])
|
|
1055
1143
|
});
|
|
1056
|
-
var PageBlockItemNumberValue =
|
|
1057
|
-
value:
|
|
1144
|
+
var PageBlockItemNumberValue = z37.object({
|
|
1145
|
+
value: z37.number()
|
|
1058
1146
|
});
|
|
1059
|
-
var PageBlockItemRichTextValue =
|
|
1147
|
+
var PageBlockItemRichTextValue = z37.object({
|
|
1060
1148
|
value: PageBlockText,
|
|
1061
1149
|
calloutType: PageBlockCalloutType.optional()
|
|
1062
1150
|
});
|
|
1063
|
-
var PageBlockItemSingleSelectValue =
|
|
1064
|
-
value:
|
|
1151
|
+
var PageBlockItemSingleSelectValue = z37.object({
|
|
1152
|
+
value: z37.string()
|
|
1065
1153
|
});
|
|
1066
|
-
var PageBlockItemStorybookValue =
|
|
1067
|
-
caption:
|
|
1068
|
-
height:
|
|
1069
|
-
embedUrl:
|
|
1070
|
-
value:
|
|
1154
|
+
var PageBlockItemStorybookValue = z37.object({
|
|
1155
|
+
caption: z37.string().optional(),
|
|
1156
|
+
height: z37.number().optional(),
|
|
1157
|
+
embedUrl: z37.string().optional(),
|
|
1158
|
+
value: z37.string().optional()
|
|
1071
1159
|
});
|
|
1072
|
-
var PageBlockItemTextValue =
|
|
1073
|
-
value:
|
|
1160
|
+
var PageBlockItemTextValue = z37.object({
|
|
1161
|
+
value: z37.string()
|
|
1074
1162
|
});
|
|
1075
|
-
var PageBlockItemTokenValue =
|
|
1076
|
-
selectedPropertyIds:
|
|
1077
|
-
selectedThemeIds:
|
|
1163
|
+
var PageBlockItemTokenValue = z37.object({
|
|
1164
|
+
selectedPropertyIds: z37.array(z37.string()).optional(),
|
|
1165
|
+
selectedThemeIds: z37.array(z37.string()).optional(),
|
|
1078
1166
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
1079
|
-
value:
|
|
1080
|
-
|
|
1081
|
-
entityId:
|
|
1082
|
-
entityType:
|
|
1083
|
-
entityMeta:
|
|
1084
|
-
showNestedGroups:
|
|
1167
|
+
value: z37.array(
|
|
1168
|
+
z37.object({
|
|
1169
|
+
entityId: z37.string(),
|
|
1170
|
+
entityType: z37.enum(["Token", "TokenGroup"]),
|
|
1171
|
+
entityMeta: z37.object({
|
|
1172
|
+
showNestedGroups: z37.boolean().optional()
|
|
1085
1173
|
}).optional()
|
|
1086
1174
|
})
|
|
1087
1175
|
).default([])
|
|
1088
1176
|
});
|
|
1089
|
-
var PageBlockItemTokenPropertyValue =
|
|
1090
|
-
selectedPropertyIds:
|
|
1091
|
-
selectedThemeIds:
|
|
1092
|
-
value:
|
|
1177
|
+
var PageBlockItemTokenPropertyValue = z37.object({
|
|
1178
|
+
selectedPropertyIds: z37.array(z37.string()).optional(),
|
|
1179
|
+
selectedThemeIds: z37.array(z37.string()).optional(),
|
|
1180
|
+
value: z37.array(z37.string()).default([])
|
|
1093
1181
|
});
|
|
1094
|
-
var PageBlockItemTokenTypeValue =
|
|
1095
|
-
value:
|
|
1182
|
+
var PageBlockItemTokenTypeValue = z37.object({
|
|
1183
|
+
value: z37.array(DesignTokenType).default([])
|
|
1096
1184
|
});
|
|
1097
|
-
var PageBlockItemUrlValue =
|
|
1098
|
-
value:
|
|
1185
|
+
var PageBlockItemUrlValue = z37.object({
|
|
1186
|
+
value: z37.string()
|
|
1099
1187
|
});
|
|
1100
|
-
var PageBlockItemTableRichTextNode =
|
|
1101
|
-
type:
|
|
1102
|
-
id:
|
|
1188
|
+
var PageBlockItemTableRichTextNode = z37.object({
|
|
1189
|
+
type: z37.literal("RichText"),
|
|
1190
|
+
id: z37.string(),
|
|
1103
1191
|
value: PageBlockItemRichTextValue.shape.value
|
|
1104
1192
|
});
|
|
1105
|
-
var PageBlockItemTableMultiRichTextNode =
|
|
1106
|
-
type:
|
|
1193
|
+
var PageBlockItemTableMultiRichTextNode = z37.object({
|
|
1194
|
+
type: z37.literal("MultiRichText"),
|
|
1107
1195
|
value: PageBlockItemMultiRichTextValue.shape.value
|
|
1108
1196
|
});
|
|
1109
|
-
var PageBlockItemTableImageNode =
|
|
1110
|
-
type:
|
|
1111
|
-
id:
|
|
1197
|
+
var PageBlockItemTableImageNode = z37.object({
|
|
1198
|
+
type: z37.literal("Image"),
|
|
1199
|
+
id: z37.string(),
|
|
1112
1200
|
caption: PageBlockItemImageValue.shape.caption,
|
|
1113
1201
|
value: PageBlockItemImageValue.shape.value
|
|
1114
1202
|
});
|
|
1115
|
-
var PageBlockItemTableNode =
|
|
1203
|
+
var PageBlockItemTableNode = z37.discriminatedUnion("type", [
|
|
1116
1204
|
PageBlockItemTableRichTextNode,
|
|
1117
1205
|
// PageBlockItemTableMultiRichTextNode,
|
|
1118
1206
|
PageBlockItemTableImageNode
|
|
1119
1207
|
]);
|
|
1120
|
-
var PageBlockItemTableCell =
|
|
1121
|
-
id:
|
|
1122
|
-
nodes:
|
|
1123
|
-
columnWidth:
|
|
1208
|
+
var PageBlockItemTableCell = z37.object({
|
|
1209
|
+
id: z37.string(),
|
|
1210
|
+
nodes: z37.array(PageBlockItemTableNode),
|
|
1211
|
+
columnWidth: z37.number().optional(),
|
|
1124
1212
|
alignment: PageBlockTableCellAlignment
|
|
1125
1213
|
});
|
|
1126
|
-
var PageBlockItemTableRow =
|
|
1127
|
-
cells:
|
|
1214
|
+
var PageBlockItemTableRow = z37.object({
|
|
1215
|
+
cells: z37.array(PageBlockItemTableCell)
|
|
1128
1216
|
});
|
|
1129
|
-
var PageBlockItemTableValue =
|
|
1130
|
-
highlightHeaderColumn:
|
|
1131
|
-
highlightHeaderRow:
|
|
1132
|
-
showBorder:
|
|
1133
|
-
value:
|
|
1217
|
+
var PageBlockItemTableValue = z37.object({
|
|
1218
|
+
highlightHeaderColumn: z37.boolean().optional(),
|
|
1219
|
+
highlightHeaderRow: z37.boolean().optional(),
|
|
1220
|
+
showBorder: z37.boolean().optional(),
|
|
1221
|
+
value: z37.array(PageBlockItemTableRow).default([])
|
|
1134
1222
|
});
|
|
1135
|
-
var DocumentationItemHeaderAlignmentSchema =
|
|
1136
|
-
var DocumentationItemHeaderImageScaleTypeSchema =
|
|
1223
|
+
var DocumentationItemHeaderAlignmentSchema = z38.enum(["Left", "Center"]);
|
|
1224
|
+
var DocumentationItemHeaderImageScaleTypeSchema = z38.enum(["AspectFill", "AspectFit"]);
|
|
1137
1225
|
var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
|
|
1138
1226
|
var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
|
|
1139
|
-
var DocumentationItemHeaderV1 =
|
|
1140
|
-
description:
|
|
1227
|
+
var DocumentationItemHeaderV1 = z39.object({
|
|
1228
|
+
description: z39.string(),
|
|
1141
1229
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1142
1230
|
foregroundColor: ColorTokenData.nullish(),
|
|
1143
1231
|
backgroundColor: ColorTokenData.nullish(),
|
|
1144
1232
|
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
1145
1233
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1146
|
-
showBackgroundOverlay:
|
|
1147
|
-
showCoverText:
|
|
1148
|
-
minHeight:
|
|
1234
|
+
showBackgroundOverlay: z39.boolean(),
|
|
1235
|
+
showCoverText: z39.boolean(),
|
|
1236
|
+
minHeight: z39.number().nullish()
|
|
1149
1237
|
});
|
|
1150
1238
|
var defaultDocumentationItemHeaderV1 = {
|
|
1151
1239
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1154,26 +1242,26 @@ var defaultDocumentationItemHeaderV1 = {
|
|
|
1154
1242
|
showBackgroundOverlay: false,
|
|
1155
1243
|
showCoverText: true
|
|
1156
1244
|
};
|
|
1157
|
-
var DocumentationItemConfigurationV1 =
|
|
1158
|
-
showSidebar:
|
|
1159
|
-
isPrivate:
|
|
1160
|
-
isHidden:
|
|
1245
|
+
var DocumentationItemConfigurationV1 = z40.object({
|
|
1246
|
+
showSidebar: z40.boolean(),
|
|
1247
|
+
isPrivate: z40.boolean().optional(),
|
|
1248
|
+
isHidden: z40.boolean().optional(),
|
|
1161
1249
|
header: DocumentationItemHeaderV1
|
|
1162
1250
|
});
|
|
1163
|
-
var DocumentationPageDataV1 =
|
|
1164
|
-
blocks:
|
|
1251
|
+
var DocumentationPageDataV1 = z41.object({
|
|
1252
|
+
blocks: z41.array(PageBlockV1),
|
|
1165
1253
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1166
1254
|
});
|
|
1167
|
-
var DocumentationItemHeaderV2 =
|
|
1168
|
-
description:
|
|
1255
|
+
var DocumentationItemHeaderV2 = z42.object({
|
|
1256
|
+
description: z42.string(),
|
|
1169
1257
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1170
1258
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
1171
1259
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
1172
1260
|
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
1173
1261
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1174
|
-
showBackgroundOverlay:
|
|
1175
|
-
showCoverText:
|
|
1176
|
-
minHeight:
|
|
1262
|
+
showBackgroundOverlay: z42.boolean(),
|
|
1263
|
+
showCoverText: z42.boolean(),
|
|
1264
|
+
minHeight: z42.number().nullish()
|
|
1177
1265
|
});
|
|
1178
1266
|
var defaultDocumentationItemHeaderV2 = {
|
|
1179
1267
|
alignment: DocumentationItemHeaderAlignment.Left,
|
|
@@ -1182,192 +1270,192 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1182
1270
|
showBackgroundOverlay: false,
|
|
1183
1271
|
showCoverText: true
|
|
1184
1272
|
};
|
|
1185
|
-
var DocumentationItemConfigurationV2 =
|
|
1186
|
-
showSidebar:
|
|
1187
|
-
isPrivate:
|
|
1188
|
-
isHidden:
|
|
1273
|
+
var DocumentationItemConfigurationV2 = z43.object({
|
|
1274
|
+
showSidebar: z43.boolean(),
|
|
1275
|
+
isPrivate: z43.boolean().optional(),
|
|
1276
|
+
isHidden: z43.boolean().optional(),
|
|
1189
1277
|
header: DocumentationItemHeaderV2
|
|
1190
1278
|
});
|
|
1191
|
-
var DocumentationPageDataV2 =
|
|
1279
|
+
var DocumentationPageDataV2 = z44.object({
|
|
1192
1280
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1193
1281
|
});
|
|
1194
|
-
var DesignElementOrigin =
|
|
1195
|
-
id:
|
|
1196
|
-
sourceId:
|
|
1197
|
-
name:
|
|
1282
|
+
var DesignElementOrigin = z45.object({
|
|
1283
|
+
id: z45.string(),
|
|
1284
|
+
sourceId: z45.string(),
|
|
1285
|
+
name: z45.string()
|
|
1198
1286
|
});
|
|
1199
|
-
var DesignElementBase =
|
|
1200
|
-
id:
|
|
1201
|
-
persistentId:
|
|
1287
|
+
var DesignElementBase = z45.object({
|
|
1288
|
+
id: z45.string(),
|
|
1289
|
+
persistentId: z45.string(),
|
|
1202
1290
|
meta: ObjectMeta,
|
|
1203
|
-
designSystemVersionId:
|
|
1204
|
-
createdAt:
|
|
1205
|
-
updatedAt:
|
|
1291
|
+
designSystemVersionId: z45.string(),
|
|
1292
|
+
createdAt: z45.coerce.date(),
|
|
1293
|
+
updatedAt: z45.coerce.date()
|
|
1206
1294
|
});
|
|
1207
1295
|
var DesignElementImportedBase = DesignElementBase.extend({
|
|
1208
1296
|
origin: DesignElementOrigin
|
|
1209
1297
|
});
|
|
1210
|
-
var DesignElementGroupablePart =
|
|
1211
|
-
parentPersistentId:
|
|
1212
|
-
sortOrder:
|
|
1298
|
+
var DesignElementGroupablePart = z45.object({
|
|
1299
|
+
parentPersistentId: z45.string().optional(),
|
|
1300
|
+
sortOrder: z45.number()
|
|
1213
1301
|
});
|
|
1214
1302
|
var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
|
|
1215
1303
|
var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
|
|
1216
|
-
parentPersistentId:
|
|
1304
|
+
parentPersistentId: z45.string()
|
|
1217
1305
|
});
|
|
1218
|
-
var DesignElementBrandedPart =
|
|
1219
|
-
brandPersistentId:
|
|
1306
|
+
var DesignElementBrandedPart = z45.object({
|
|
1307
|
+
brandPersistentId: z45.string()
|
|
1220
1308
|
});
|
|
1221
|
-
var DesignElementSlugPart =
|
|
1222
|
-
slug:
|
|
1223
|
-
userSlug:
|
|
1309
|
+
var DesignElementSlugPart = z45.object({
|
|
1310
|
+
slug: z45.string().optional(),
|
|
1311
|
+
userSlug: z45.string().optional()
|
|
1224
1312
|
});
|
|
1225
1313
|
var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
|
|
1226
1314
|
data: PageBlockDataV2
|
|
1227
1315
|
});
|
|
1228
|
-
var PageBlockEditorModelV2 =
|
|
1229
|
-
id:
|
|
1230
|
-
type:
|
|
1316
|
+
var PageBlockEditorModelV2 = z46.object({
|
|
1317
|
+
id: z46.string(),
|
|
1318
|
+
type: z46.literal("Block"),
|
|
1231
1319
|
data: PageBlockDataV2
|
|
1232
1320
|
});
|
|
1233
|
-
var PageSectionTypeV2 =
|
|
1234
|
-
var PageSectionColumnV2 =
|
|
1235
|
-
id:
|
|
1236
|
-
blocks:
|
|
1237
|
-
});
|
|
1238
|
-
var PageSectionItemV2 =
|
|
1239
|
-
id:
|
|
1240
|
-
title:
|
|
1241
|
-
columns:
|
|
1242
|
-
});
|
|
1243
|
-
var PageSectionPaddingV2 =
|
|
1244
|
-
top:
|
|
1245
|
-
bottom:
|
|
1246
|
-
left:
|
|
1247
|
-
right:
|
|
1248
|
-
});
|
|
1249
|
-
var PageSectionAppearanceV2 =
|
|
1250
|
-
expandToEdges:
|
|
1251
|
-
contentExpandToEdges:
|
|
1321
|
+
var PageSectionTypeV2 = z47.enum(["Tabs"]);
|
|
1322
|
+
var PageSectionColumnV2 = z47.object({
|
|
1323
|
+
id: z47.string(),
|
|
1324
|
+
blocks: z47.array(PageBlockEditorModelV2)
|
|
1325
|
+
});
|
|
1326
|
+
var PageSectionItemV2 = z47.object({
|
|
1327
|
+
id: z47.string(),
|
|
1328
|
+
title: z47.string(),
|
|
1329
|
+
columns: z47.array(PageSectionColumnV2)
|
|
1330
|
+
});
|
|
1331
|
+
var PageSectionPaddingV2 = z47.object({
|
|
1332
|
+
top: z47.number().optional(),
|
|
1333
|
+
bottom: z47.number().optional(),
|
|
1334
|
+
left: z47.number().optional(),
|
|
1335
|
+
right: z47.number().optional()
|
|
1336
|
+
});
|
|
1337
|
+
var PageSectionAppearanceV2 = z47.object({
|
|
1338
|
+
expandToEdges: z47.boolean(),
|
|
1339
|
+
contentExpandToEdges: z47.boolean(),
|
|
1252
1340
|
backgroundColor: PageBlockColorV2.optional(),
|
|
1253
1341
|
foregroundColor: PageBlockColorV2.optional(),
|
|
1254
1342
|
padding: PageSectionPaddingV2.optional()
|
|
1255
1343
|
});
|
|
1256
|
-
var PageSectionEditorModelV2 =
|
|
1257
|
-
id:
|
|
1258
|
-
type:
|
|
1259
|
-
variantId:
|
|
1344
|
+
var PageSectionEditorModelV2 = z47.object({
|
|
1345
|
+
id: z47.string(),
|
|
1346
|
+
type: z47.literal("Section"),
|
|
1347
|
+
variantId: z47.string().optional(),
|
|
1260
1348
|
sectionType: PageSectionTypeV2,
|
|
1261
1349
|
appearance: PageSectionAppearanceV2,
|
|
1262
|
-
items:
|
|
1350
|
+
items: z47.array(PageSectionItemV2)
|
|
1263
1351
|
});
|
|
1264
|
-
var DurationUnit =
|
|
1265
|
-
var DurationValue =
|
|
1352
|
+
var DurationUnit = z48.enum(["Ms"]);
|
|
1353
|
+
var DurationValue = z48.object({
|
|
1266
1354
|
unit: DurationUnit,
|
|
1267
|
-
measure:
|
|
1355
|
+
measure: z48.number()
|
|
1268
1356
|
});
|
|
1269
1357
|
var DurationTokenData = tokenAliasOrValue(DurationValue);
|
|
1270
|
-
var FigmaFileStructureNodeType =
|
|
1271
|
-
var FigmaFileStructureNodeBase =
|
|
1272
|
-
id:
|
|
1273
|
-
name:
|
|
1358
|
+
var FigmaFileStructureNodeType = z49.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
|
|
1359
|
+
var FigmaFileStructureNodeBase = z49.object({
|
|
1360
|
+
id: z49.string(),
|
|
1361
|
+
name: z49.string(),
|
|
1274
1362
|
type: FigmaFileStructureNodeType,
|
|
1275
1363
|
size: SizeOrUndefined,
|
|
1276
|
-
parentComponentSetId:
|
|
1364
|
+
parentComponentSetId: z49.string().optional()
|
|
1277
1365
|
});
|
|
1278
1366
|
var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
|
|
1279
|
-
children:
|
|
1367
|
+
children: z49.lazy(() => FigmaFileStructureNode.array())
|
|
1280
1368
|
});
|
|
1281
|
-
var FigmaFileStructureStatistics =
|
|
1282
|
-
frames:
|
|
1283
|
-
components:
|
|
1284
|
-
componentSets:
|
|
1369
|
+
var FigmaFileStructureStatistics = z49.object({
|
|
1370
|
+
frames: z49.number().nullable().optional().transform((v) => v ?? 0),
|
|
1371
|
+
components: z49.number().nullable().optional().transform((v) => v ?? 0),
|
|
1372
|
+
componentSets: z49.number().nullable().optional().transform((v) => v ?? 0)
|
|
1285
1373
|
});
|
|
1286
|
-
var FigmaFileStructureElementData =
|
|
1287
|
-
value:
|
|
1374
|
+
var FigmaFileStructureElementData = z49.object({
|
|
1375
|
+
value: z49.object({
|
|
1288
1376
|
structure: FigmaFileStructureNode,
|
|
1289
1377
|
assetsInFile: FigmaFileStructureStatistics
|
|
1290
1378
|
})
|
|
1291
1379
|
});
|
|
1292
|
-
var FigmaNodeReferenceData =
|
|
1293
|
-
structureElementId:
|
|
1294
|
-
nodeId:
|
|
1295
|
-
fileId:
|
|
1296
|
-
valid:
|
|
1380
|
+
var FigmaNodeReferenceData = z50.object({
|
|
1381
|
+
structureElementId: z50.string(),
|
|
1382
|
+
nodeId: z50.string(),
|
|
1383
|
+
fileId: z50.string().optional(),
|
|
1384
|
+
valid: z50.boolean(),
|
|
1297
1385
|
// Asset data
|
|
1298
|
-
assetId:
|
|
1299
|
-
assetScale:
|
|
1300
|
-
assetWidth:
|
|
1301
|
-
assetHeight:
|
|
1302
|
-
assetUrl:
|
|
1303
|
-
assetOriginKey:
|
|
1304
|
-
});
|
|
1305
|
-
var FigmaNodeReferenceElementData =
|
|
1386
|
+
assetId: z50.string().optional(),
|
|
1387
|
+
assetScale: z50.number().optional(),
|
|
1388
|
+
assetWidth: z50.number().optional(),
|
|
1389
|
+
assetHeight: z50.number().optional(),
|
|
1390
|
+
assetUrl: z50.string().optional(),
|
|
1391
|
+
assetOriginKey: z50.string().optional()
|
|
1392
|
+
});
|
|
1393
|
+
var FigmaNodeReferenceElementData = z50.object({
|
|
1306
1394
|
value: FigmaNodeReferenceData
|
|
1307
1395
|
});
|
|
1308
|
-
var FontFamilyValue =
|
|
1396
|
+
var FontFamilyValue = z51.string();
|
|
1309
1397
|
var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
|
|
1310
|
-
var FontSizeUnit =
|
|
1311
|
-
var FontSizeValue =
|
|
1398
|
+
var FontSizeUnit = z52.enum(["Pixels", "Rem", "Percent"]);
|
|
1399
|
+
var FontSizeValue = z52.object({
|
|
1312
1400
|
unit: FontSizeUnit,
|
|
1313
|
-
measure:
|
|
1401
|
+
measure: z52.number()
|
|
1314
1402
|
});
|
|
1315
1403
|
var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
|
|
1316
|
-
var FontWeightValue =
|
|
1404
|
+
var FontWeightValue = z53.string();
|
|
1317
1405
|
var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
|
|
1318
|
-
var GradientType =
|
|
1319
|
-
var GradientStop =
|
|
1320
|
-
position:
|
|
1406
|
+
var GradientType = z54.enum(["Linear", "Radial", "Angular"]);
|
|
1407
|
+
var GradientStop = z54.object({
|
|
1408
|
+
position: z54.number(),
|
|
1321
1409
|
color: ColorTokenData
|
|
1322
1410
|
});
|
|
1323
|
-
var GradientLayerValue =
|
|
1411
|
+
var GradientLayerValue = z54.object({
|
|
1324
1412
|
from: Point2D,
|
|
1325
1413
|
to: Point2D,
|
|
1326
1414
|
type: GradientType,
|
|
1327
|
-
aspectRatio: nullishToOptional(
|
|
1415
|
+
aspectRatio: nullishToOptional(z54.number()),
|
|
1328
1416
|
// z.number(),
|
|
1329
|
-
stops:
|
|
1417
|
+
stops: z54.array(GradientStop).min(2)
|
|
1330
1418
|
});
|
|
1331
1419
|
var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
|
|
1332
|
-
var GradientTokenValue =
|
|
1420
|
+
var GradientTokenValue = z54.array(GradientLayerData);
|
|
1333
1421
|
var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
|
|
1334
|
-
var DocumentationGroupBehavior =
|
|
1335
|
-
var ElementGroupDataV1 =
|
|
1422
|
+
var DocumentationGroupBehavior = z55.enum(["Group", "Tabs"]);
|
|
1423
|
+
var ElementGroupDataV1 = z55.object({
|
|
1336
1424
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1337
1425
|
configuration: nullishToOptional(DocumentationItemConfigurationV1)
|
|
1338
1426
|
});
|
|
1339
|
-
var ElementGroupDataV2 =
|
|
1427
|
+
var ElementGroupDataV2 = z55.object({
|
|
1340
1428
|
behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
|
|
1341
1429
|
configuration: nullishToOptional(DocumentationItemConfigurationV2)
|
|
1342
1430
|
});
|
|
1343
|
-
var LetterSpacingUnit =
|
|
1344
|
-
var LetterSpacingValue =
|
|
1431
|
+
var LetterSpacingUnit = z56.enum(["Pixels", "Rem", "Percent"]);
|
|
1432
|
+
var LetterSpacingValue = z56.object({
|
|
1345
1433
|
unit: LetterSpacingUnit,
|
|
1346
|
-
measure:
|
|
1434
|
+
measure: z56.number()
|
|
1347
1435
|
});
|
|
1348
1436
|
var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
|
|
1349
|
-
var LineHeightUnit =
|
|
1350
|
-
var LineHeightValue =
|
|
1437
|
+
var LineHeightUnit = z57.enum(["Pixels", "Rem", "Percent", "Raw"]);
|
|
1438
|
+
var LineHeightValue = z57.object({
|
|
1351
1439
|
unit: LineHeightUnit,
|
|
1352
|
-
measure:
|
|
1440
|
+
measure: z57.number()
|
|
1353
1441
|
});
|
|
1354
1442
|
var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
|
|
1355
|
-
var ParagraphIndentUnit =
|
|
1356
|
-
var ParagraphIndentValue =
|
|
1443
|
+
var ParagraphIndentUnit = z58.enum(["Pixels", "Rem", "Percent"]);
|
|
1444
|
+
var ParagraphIndentValue = z58.object({
|
|
1357
1445
|
unit: ParagraphIndentUnit,
|
|
1358
|
-
measure:
|
|
1446
|
+
measure: z58.number()
|
|
1359
1447
|
});
|
|
1360
1448
|
var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
|
|
1361
|
-
var ParagraphSpacingUnit =
|
|
1362
|
-
var ParagraphSpacingValue =
|
|
1449
|
+
var ParagraphSpacingUnit = z59.enum(["Pixels", "Rem", "Percent"]);
|
|
1450
|
+
var ParagraphSpacingValue = z59.object({
|
|
1363
1451
|
unit: ParagraphSpacingUnit,
|
|
1364
|
-
measure:
|
|
1452
|
+
measure: z59.number()
|
|
1365
1453
|
});
|
|
1366
1454
|
var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
|
|
1367
|
-
var ProductCopyValue =
|
|
1455
|
+
var ProductCopyValue = z60.string();
|
|
1368
1456
|
var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
|
|
1369
1457
|
var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
|
|
1370
|
-
var SafeIdSchema =
|
|
1458
|
+
var SafeIdSchema = z61.string().refine(
|
|
1371
1459
|
(value) => {
|
|
1372
1460
|
return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
|
|
1373
1461
|
},
|
|
@@ -1375,39 +1463,39 @@ var SafeIdSchema = z58.string().refine(
|
|
|
1375
1463
|
message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
|
|
1376
1464
|
}
|
|
1377
1465
|
);
|
|
1378
|
-
var ShadowType =
|
|
1379
|
-
var ShadowLayerValue =
|
|
1466
|
+
var ShadowType = z62.enum(["Drop", "Inner"]);
|
|
1467
|
+
var ShadowLayerValue = z62.object({
|
|
1380
1468
|
color: ColorTokenData,
|
|
1381
|
-
x:
|
|
1382
|
-
y:
|
|
1383
|
-
radius:
|
|
1384
|
-
spread:
|
|
1469
|
+
x: z62.number(),
|
|
1470
|
+
y: z62.number(),
|
|
1471
|
+
radius: z62.number(),
|
|
1472
|
+
spread: z62.number(),
|
|
1385
1473
|
opacity: OpacityTokenData.optional(),
|
|
1386
1474
|
type: ShadowType
|
|
1387
1475
|
});
|
|
1388
1476
|
var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
1389
|
-
var ShadowTokenData = tokenAliasOrValue(
|
|
1390
|
-
var SizeUnit =
|
|
1391
|
-
var SizeValue =
|
|
1477
|
+
var ShadowTokenData = tokenAliasOrValue(z62.array(ShadowTokenDataBase));
|
|
1478
|
+
var SizeUnit = z63.enum(["Pixels", "Rem", "Percent"]);
|
|
1479
|
+
var SizeValue = z63.object({
|
|
1392
1480
|
unit: SizeUnit,
|
|
1393
|
-
measure:
|
|
1481
|
+
measure: z63.number()
|
|
1394
1482
|
});
|
|
1395
1483
|
var SizeTokenData = tokenAliasOrValue(SizeValue);
|
|
1396
|
-
var SpaceUnit =
|
|
1397
|
-
var SpaceValue =
|
|
1484
|
+
var SpaceUnit = z64.enum(["Pixels", "Rem", "Percent"]);
|
|
1485
|
+
var SpaceValue = z64.object({
|
|
1398
1486
|
unit: SpaceUnit,
|
|
1399
|
-
measure:
|
|
1487
|
+
measure: z64.number()
|
|
1400
1488
|
});
|
|
1401
1489
|
var SpaceTokenData = tokenAliasOrValue(SpaceValue);
|
|
1402
|
-
var StringValue =
|
|
1490
|
+
var StringValue = z65.string();
|
|
1403
1491
|
var StringTokenData = tokenAliasOrValue(StringValue);
|
|
1404
|
-
var TextCase =
|
|
1492
|
+
var TextCase = z66.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
|
|
1405
1493
|
var TextCaseValue = TextCase;
|
|
1406
1494
|
var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
|
|
1407
|
-
var TextDecoration =
|
|
1495
|
+
var TextDecoration = z67.enum(["None", "Underline", "Strikethrough"]);
|
|
1408
1496
|
var TextDecorationValue = TextDecoration;
|
|
1409
1497
|
var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
|
|
1410
|
-
var TypographyValue =
|
|
1498
|
+
var TypographyValue = z68.object({
|
|
1411
1499
|
fontSize: FontSizeTokenData,
|
|
1412
1500
|
fontFamily: FontFamilyTokenData,
|
|
1413
1501
|
fontWeight: FontWeightTokenData,
|
|
@@ -1419,39 +1507,39 @@ var TypographyValue = z65.object({
|
|
|
1419
1507
|
paragraphSpacing: ParagraphSpacingTokenData.optional()
|
|
1420
1508
|
});
|
|
1421
1509
|
var TypographyTokenData = tokenAliasOrValue(TypographyValue);
|
|
1422
|
-
var Visibility =
|
|
1510
|
+
var Visibility = z69.enum(["Hidden", "Visible"]);
|
|
1423
1511
|
var VisibilityValue = Visibility;
|
|
1424
1512
|
var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
|
|
1425
|
-
var ZIndexUnit =
|
|
1426
|
-
var ZIndexValue =
|
|
1513
|
+
var ZIndexUnit = z70.enum(["Raw"]);
|
|
1514
|
+
var ZIndexValue = z70.object({
|
|
1427
1515
|
unit: ZIndexUnit,
|
|
1428
|
-
measure:
|
|
1516
|
+
measure: z70.number()
|
|
1429
1517
|
});
|
|
1430
1518
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1431
|
-
var ComponentOriginPart =
|
|
1432
|
-
nodeId:
|
|
1433
|
-
width:
|
|
1434
|
-
height:
|
|
1519
|
+
var ComponentOriginPart = z71.object({
|
|
1520
|
+
nodeId: z71.string().optional(),
|
|
1521
|
+
width: z71.number().optional(),
|
|
1522
|
+
height: z71.number().optional()
|
|
1435
1523
|
});
|
|
1436
|
-
var ComponentAsset =
|
|
1437
|
-
assetId:
|
|
1438
|
-
assetPath:
|
|
1524
|
+
var ComponentAsset = z71.object({
|
|
1525
|
+
assetId: z71.string(),
|
|
1526
|
+
assetPath: z71.string()
|
|
1439
1527
|
});
|
|
1440
1528
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1441
1529
|
var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1442
1530
|
origin: ComponentOrigin.optional(),
|
|
1443
1531
|
thumbnail: ComponentAsset,
|
|
1444
1532
|
svg: ComponentAsset.optional(),
|
|
1445
|
-
isAsset:
|
|
1533
|
+
isAsset: z71.boolean()
|
|
1446
1534
|
});
|
|
1447
1535
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1448
|
-
shortPersistentId:
|
|
1536
|
+
shortPersistentId: z72.string().optional(),
|
|
1449
1537
|
childType: DesignElementType,
|
|
1450
1538
|
data: ElementGroupDataV2.optional()
|
|
1451
1539
|
});
|
|
1452
1540
|
var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
|
|
1453
1541
|
var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1454
|
-
shortPersistentId:
|
|
1542
|
+
shortPersistentId: z73.string(),
|
|
1455
1543
|
data: DocumentationPageDataV1
|
|
1456
1544
|
});
|
|
1457
1545
|
var DocumentationGroupV1 = ElementGroup.omit({
|
|
@@ -1460,16 +1548,16 @@ var DocumentationGroupV1 = ElementGroup.omit({
|
|
|
1460
1548
|
data: ElementGroupDataV1.optional()
|
|
1461
1549
|
});
|
|
1462
1550
|
var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
|
|
1463
|
-
shortPersistentId:
|
|
1551
|
+
shortPersistentId: z74.string(),
|
|
1464
1552
|
data: DocumentationPageDataV2.extend({
|
|
1465
|
-
oldBlocks:
|
|
1553
|
+
oldBlocks: z74.array(PageBlockV1).optional()
|
|
1466
1554
|
})
|
|
1467
1555
|
});
|
|
1468
|
-
var FigmaFileStructureOrigin =
|
|
1469
|
-
sourceId:
|
|
1470
|
-
fileId:
|
|
1556
|
+
var FigmaFileStructureOrigin = z75.object({
|
|
1557
|
+
sourceId: z75.string(),
|
|
1558
|
+
fileId: z75.string().optional()
|
|
1471
1559
|
});
|
|
1472
|
-
var FigmaFileStructureData =
|
|
1560
|
+
var FigmaFileStructureData = z75.object({
|
|
1473
1561
|
rootNode: FigmaFileStructureNode,
|
|
1474
1562
|
assetsInFile: FigmaFileStructureStatistics
|
|
1475
1563
|
});
|
|
@@ -1477,17 +1565,17 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
1477
1565
|
origin: FigmaFileStructureOrigin,
|
|
1478
1566
|
data: FigmaFileStructureData
|
|
1479
1567
|
});
|
|
1480
|
-
var FigmaNodeReferenceOrigin =
|
|
1481
|
-
sourceId:
|
|
1482
|
-
parentName:
|
|
1568
|
+
var FigmaNodeReferenceOrigin = z76.object({
|
|
1569
|
+
sourceId: z76.string(),
|
|
1570
|
+
parentName: z76.string().optional()
|
|
1483
1571
|
});
|
|
1484
1572
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1485
1573
|
data: FigmaNodeReferenceData,
|
|
1486
1574
|
origin: FigmaNodeReferenceOrigin
|
|
1487
1575
|
});
|
|
1488
|
-
var DesignTokenOriginPart =
|
|
1489
|
-
referenceOriginId:
|
|
1490
|
-
referencePersistentId:
|
|
1576
|
+
var DesignTokenOriginPart = z77.object({
|
|
1577
|
+
referenceOriginId: z77.string().optional(),
|
|
1578
|
+
referencePersistentId: z77.string().optional()
|
|
1491
1579
|
});
|
|
1492
1580
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1493
1581
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1499,111 +1587,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1499
1587
|
brandPersistentId: true,
|
|
1500
1588
|
designSystemVersionId: true
|
|
1501
1589
|
});
|
|
1502
|
-
var BlurTokenTypedData =
|
|
1503
|
-
type:
|
|
1590
|
+
var BlurTokenTypedData = z77.object({
|
|
1591
|
+
type: z77.literal("Blur"),
|
|
1504
1592
|
data: BlurTokenData
|
|
1505
1593
|
});
|
|
1506
|
-
var ColorTokenTypedData =
|
|
1507
|
-
type:
|
|
1594
|
+
var ColorTokenTypedData = z77.object({
|
|
1595
|
+
type: z77.literal("Color"),
|
|
1508
1596
|
data: ColorTokenData
|
|
1509
1597
|
});
|
|
1510
|
-
var GradientTokenTypedData =
|
|
1511
|
-
type:
|
|
1598
|
+
var GradientTokenTypedData = z77.object({
|
|
1599
|
+
type: z77.literal("Gradient"),
|
|
1512
1600
|
data: GradientTokenData
|
|
1513
1601
|
});
|
|
1514
|
-
var OpacityTokenTypedData =
|
|
1515
|
-
type:
|
|
1602
|
+
var OpacityTokenTypedData = z77.object({
|
|
1603
|
+
type: z77.literal("Opacity"),
|
|
1516
1604
|
data: OpacityTokenData
|
|
1517
1605
|
});
|
|
1518
|
-
var ShadowTokenTypedData =
|
|
1519
|
-
type:
|
|
1606
|
+
var ShadowTokenTypedData = z77.object({
|
|
1607
|
+
type: z77.literal("Shadow"),
|
|
1520
1608
|
data: ShadowTokenData
|
|
1521
1609
|
});
|
|
1522
|
-
var TypographyTokenTypedData =
|
|
1523
|
-
type:
|
|
1610
|
+
var TypographyTokenTypedData = z77.object({
|
|
1611
|
+
type: z77.literal("Typography"),
|
|
1524
1612
|
data: TypographyTokenData
|
|
1525
1613
|
});
|
|
1526
|
-
var StringTokenTypedData =
|
|
1527
|
-
type:
|
|
1614
|
+
var StringTokenTypedData = z77.object({
|
|
1615
|
+
type: z77.literal("String"),
|
|
1528
1616
|
data: StringTokenData
|
|
1529
1617
|
});
|
|
1530
|
-
var DimensionTokenTypedData =
|
|
1531
|
-
type:
|
|
1618
|
+
var DimensionTokenTypedData = z77.object({
|
|
1619
|
+
type: z77.literal("Dimension"),
|
|
1532
1620
|
data: DimensionTokenData
|
|
1533
1621
|
});
|
|
1534
|
-
var FontSizeTokenTypedData =
|
|
1535
|
-
type:
|
|
1622
|
+
var FontSizeTokenTypedData = z77.object({
|
|
1623
|
+
type: z77.literal("FontSize"),
|
|
1536
1624
|
data: FontSizeTokenData
|
|
1537
1625
|
});
|
|
1538
|
-
var FontFamilyTokenTypedData =
|
|
1539
|
-
type:
|
|
1626
|
+
var FontFamilyTokenTypedData = z77.object({
|
|
1627
|
+
type: z77.literal("FontFamily"),
|
|
1540
1628
|
data: FontFamilyTokenData
|
|
1541
1629
|
});
|
|
1542
|
-
var FontWeightTokenTypedData =
|
|
1543
|
-
type:
|
|
1630
|
+
var FontWeightTokenTypedData = z77.object({
|
|
1631
|
+
type: z77.literal("FontWeight"),
|
|
1544
1632
|
data: FontWeightTokenData
|
|
1545
1633
|
});
|
|
1546
|
-
var LetterSpacingTokenTypedData =
|
|
1547
|
-
type:
|
|
1634
|
+
var LetterSpacingTokenTypedData = z77.object({
|
|
1635
|
+
type: z77.literal("LetterSpacing"),
|
|
1548
1636
|
data: LetterSpacingTokenData
|
|
1549
1637
|
});
|
|
1550
|
-
var LineHeightTokenTypedData =
|
|
1551
|
-
type:
|
|
1638
|
+
var LineHeightTokenTypedData = z77.object({
|
|
1639
|
+
type: z77.literal("LineHeight"),
|
|
1552
1640
|
data: LineHeightTokenData
|
|
1553
1641
|
});
|
|
1554
|
-
var ParagraphSpacingTokenTypedData =
|
|
1555
|
-
type:
|
|
1642
|
+
var ParagraphSpacingTokenTypedData = z77.object({
|
|
1643
|
+
type: z77.literal("ParagraphSpacing"),
|
|
1556
1644
|
data: ParagraphSpacingTokenData
|
|
1557
1645
|
});
|
|
1558
|
-
var TextCaseTokenTypedData =
|
|
1559
|
-
type:
|
|
1646
|
+
var TextCaseTokenTypedData = z77.object({
|
|
1647
|
+
type: z77.literal("TextCase"),
|
|
1560
1648
|
data: TextCaseTokenData
|
|
1561
1649
|
});
|
|
1562
|
-
var TextDecorationTokenTypedData =
|
|
1563
|
-
type:
|
|
1650
|
+
var TextDecorationTokenTypedData = z77.object({
|
|
1651
|
+
type: z77.literal("TextDecoration"),
|
|
1564
1652
|
data: TextDecorationTokenData
|
|
1565
1653
|
});
|
|
1566
|
-
var BorderRadiusTokenTypedData =
|
|
1567
|
-
type:
|
|
1654
|
+
var BorderRadiusTokenTypedData = z77.object({
|
|
1655
|
+
type: z77.literal("BorderRadius"),
|
|
1568
1656
|
data: BorderRadiusTokenData
|
|
1569
1657
|
});
|
|
1570
|
-
var BorderWidthTokenTypedData =
|
|
1571
|
-
type:
|
|
1658
|
+
var BorderWidthTokenTypedData = z77.object({
|
|
1659
|
+
type: z77.literal("BorderWidth"),
|
|
1572
1660
|
data: BorderWidthTokenData
|
|
1573
1661
|
});
|
|
1574
|
-
var BorderTypedData =
|
|
1575
|
-
type:
|
|
1662
|
+
var BorderTypedData = z77.object({
|
|
1663
|
+
type: z77.literal("Border"),
|
|
1576
1664
|
data: BorderTokenData
|
|
1577
1665
|
});
|
|
1578
|
-
var ProductCopyTypedData =
|
|
1579
|
-
type:
|
|
1666
|
+
var ProductCopyTypedData = z77.object({
|
|
1667
|
+
type: z77.literal("ProductCopy"),
|
|
1580
1668
|
data: ProductCopyTokenData
|
|
1581
1669
|
});
|
|
1582
|
-
var SizeTypedData =
|
|
1583
|
-
type:
|
|
1670
|
+
var SizeTypedData = z77.object({
|
|
1671
|
+
type: z77.literal("Size"),
|
|
1584
1672
|
data: SizeTokenData
|
|
1585
1673
|
});
|
|
1586
|
-
var SpaceTypedData =
|
|
1587
|
-
type:
|
|
1674
|
+
var SpaceTypedData = z77.object({
|
|
1675
|
+
type: z77.literal("Space"),
|
|
1588
1676
|
data: SpaceTokenData
|
|
1589
1677
|
});
|
|
1590
|
-
var VisibilityTypedData =
|
|
1591
|
-
type:
|
|
1678
|
+
var VisibilityTypedData = z77.object({
|
|
1679
|
+
type: z77.literal("Visibility"),
|
|
1592
1680
|
data: VisibilityTokenData
|
|
1593
1681
|
});
|
|
1594
|
-
var ZIndexTypedData =
|
|
1595
|
-
type:
|
|
1682
|
+
var ZIndexTypedData = z77.object({
|
|
1683
|
+
type: z77.literal("ZIndex"),
|
|
1596
1684
|
data: ZIndexTokenData
|
|
1597
1685
|
});
|
|
1598
|
-
var DurationTypedData =
|
|
1599
|
-
type:
|
|
1686
|
+
var DurationTypedData = z77.object({
|
|
1687
|
+
type: z77.literal("Duration"),
|
|
1600
1688
|
data: DurationTokenData
|
|
1601
1689
|
});
|
|
1602
|
-
var FontTypedData =
|
|
1603
|
-
type:
|
|
1604
|
-
data:
|
|
1690
|
+
var FontTypedData = z77.object({
|
|
1691
|
+
type: z77.literal("Font"),
|
|
1692
|
+
data: z77.record(z77.any())
|
|
1605
1693
|
});
|
|
1606
|
-
var DesignTokenTypedData =
|
|
1694
|
+
var DesignTokenTypedData = z77.discriminatedUnion("type", [
|
|
1607
1695
|
BlurTokenTypedData,
|
|
1608
1696
|
BorderRadiusTokenTypedData,
|
|
1609
1697
|
BorderWidthTokenTypedData,
|
|
@@ -1636,45 +1724,45 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
1636
1724
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1637
1725
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1638
1726
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1639
|
-
|
|
1640
|
-
tokenPersistentId:
|
|
1727
|
+
z78.object({
|
|
1728
|
+
tokenPersistentId: z78.string(),
|
|
1641
1729
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1642
1730
|
})
|
|
1643
1731
|
);
|
|
1644
|
-
var ThemeElementData =
|
|
1645
|
-
value:
|
|
1646
|
-
overrides:
|
|
1732
|
+
var ThemeElementData = z78.object({
|
|
1733
|
+
value: z78.object({
|
|
1734
|
+
overrides: z78.array(ThemeOverride)
|
|
1647
1735
|
})
|
|
1648
1736
|
});
|
|
1649
|
-
var ThemeOriginPart =
|
|
1650
|
-
var ThemeOriginObject =
|
|
1651
|
-
id:
|
|
1652
|
-
name:
|
|
1737
|
+
var ThemeOriginPart = z78.object({});
|
|
1738
|
+
var ThemeOriginObject = z78.object({
|
|
1739
|
+
id: z78.string(),
|
|
1740
|
+
name: z78.string()
|
|
1653
1741
|
});
|
|
1654
|
-
var ThemeOriginSource =
|
|
1655
|
-
sourceId:
|
|
1656
|
-
sourceObjects:
|
|
1742
|
+
var ThemeOriginSource = z78.object({
|
|
1743
|
+
sourceId: z78.string(),
|
|
1744
|
+
sourceObjects: z78.array(ThemeOriginObject)
|
|
1657
1745
|
});
|
|
1658
|
-
var ThemeOrigin =
|
|
1659
|
-
sources:
|
|
1746
|
+
var ThemeOrigin = z78.object({
|
|
1747
|
+
sources: z78.array(ThemeOriginSource)
|
|
1660
1748
|
});
|
|
1661
1749
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1662
1750
|
origin: ThemeOrigin.optional(),
|
|
1663
|
-
overrides:
|
|
1664
|
-
codeName:
|
|
1751
|
+
overrides: z78.array(ThemeOverride),
|
|
1752
|
+
codeName: z78.string()
|
|
1665
1753
|
});
|
|
1666
|
-
var FigmaFileDownloadScope =
|
|
1667
|
-
styles:
|
|
1668
|
-
components:
|
|
1669
|
-
currentVersion:
|
|
1670
|
-
publishedVersion:
|
|
1671
|
-
downloadChunkSize:
|
|
1672
|
-
maxFileDepth:
|
|
1754
|
+
var FigmaFileDownloadScope = z79.object({
|
|
1755
|
+
styles: z79.boolean(),
|
|
1756
|
+
components: z79.boolean(),
|
|
1757
|
+
currentVersion: z79.literal("__latest__").nullable(),
|
|
1758
|
+
publishedVersion: z79.string().nullable(),
|
|
1759
|
+
downloadChunkSize: z79.number().optional(),
|
|
1760
|
+
maxFileDepth: z79.number().optional()
|
|
1673
1761
|
});
|
|
1674
|
-
var FigmaFileAccessData =
|
|
1675
|
-
accessToken:
|
|
1762
|
+
var FigmaFileAccessData = z79.object({
|
|
1763
|
+
accessToken: z79.string()
|
|
1676
1764
|
});
|
|
1677
|
-
var ImportWarningType =
|
|
1765
|
+
var ImportWarningType = z80.enum([
|
|
1678
1766
|
"NoVersionFound",
|
|
1679
1767
|
"UnsupportedFill",
|
|
1680
1768
|
"UnsupportedStroke",
|
|
@@ -1689,47 +1777,47 @@ var ImportWarningType = z77.enum([
|
|
|
1689
1777
|
"DuplicateImportedStylePath",
|
|
1690
1778
|
"NoUnpublishedStyles"
|
|
1691
1779
|
]);
|
|
1692
|
-
var ImportWarning =
|
|
1780
|
+
var ImportWarning = z80.object({
|
|
1693
1781
|
warningType: ImportWarningType,
|
|
1694
|
-
componentId:
|
|
1695
|
-
componentName:
|
|
1696
|
-
styleId:
|
|
1697
|
-
styleName:
|
|
1698
|
-
unsupportedStyleValueType:
|
|
1699
|
-
});
|
|
1700
|
-
var ImportFunctionInput =
|
|
1701
|
-
importJobId:
|
|
1702
|
-
importContextId:
|
|
1703
|
-
designSystemId:
|
|
1704
|
-
});
|
|
1705
|
-
var ImportedFigmaSourceData =
|
|
1706
|
-
sourceId:
|
|
1782
|
+
componentId: z80.string().optional(),
|
|
1783
|
+
componentName: z80.string().optional(),
|
|
1784
|
+
styleId: z80.string().optional(),
|
|
1785
|
+
styleName: z80.string().optional(),
|
|
1786
|
+
unsupportedStyleValueType: z80.string().optional()
|
|
1787
|
+
});
|
|
1788
|
+
var ImportFunctionInput = z81.object({
|
|
1789
|
+
importJobId: z81.string(),
|
|
1790
|
+
importContextId: z81.string(),
|
|
1791
|
+
designSystemId: z81.string().optional()
|
|
1792
|
+
});
|
|
1793
|
+
var ImportedFigmaSourceData = z81.object({
|
|
1794
|
+
sourceId: z81.string(),
|
|
1707
1795
|
figmaRemote: DataSourceFigmaRemote
|
|
1708
1796
|
});
|
|
1709
|
-
var FigmaImportBaseContext =
|
|
1710
|
-
designSystemId:
|
|
1797
|
+
var FigmaImportBaseContext = z81.object({
|
|
1798
|
+
designSystemId: z81.string(),
|
|
1711
1799
|
/**
|
|
1712
1800
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
1713
1801
|
* mentioned in the `importedSourceDataBySourceId`
|
|
1714
1802
|
*
|
|
1715
1803
|
* fileId: file data
|
|
1716
1804
|
*/
|
|
1717
|
-
fileAccessByFileId:
|
|
1805
|
+
fileAccessByFileId: z81.record(FigmaFileAccessData),
|
|
1718
1806
|
/**
|
|
1719
1807
|
* Figma source data for which import was requested
|
|
1720
1808
|
*
|
|
1721
1809
|
* sourceId: source data
|
|
1722
1810
|
*/
|
|
1723
|
-
importedSourceDataBySourceId:
|
|
1811
|
+
importedSourceDataBySourceId: z81.record(ImportedFigmaSourceData),
|
|
1724
1812
|
/**
|
|
1725
1813
|
* Array of warnings that will be written into the import result summary at the end
|
|
1726
1814
|
* of import job execution and displayed by the client.
|
|
1727
1815
|
*/
|
|
1728
|
-
importWarnings:
|
|
1816
|
+
importWarnings: z81.record(ImportWarning.array()).default({})
|
|
1729
1817
|
});
|
|
1730
1818
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
1731
|
-
sourcesWithMissingAccess:
|
|
1732
|
-
shadowOpacityOptional:
|
|
1819
|
+
sourcesWithMissingAccess: z81.array(z81.string()).default([]),
|
|
1820
|
+
shadowOpacityOptional: z81.boolean().default(false)
|
|
1733
1821
|
});
|
|
1734
1822
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
1735
1823
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -1741,65 +1829,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
1741
1829
|
*
|
|
1742
1830
|
* File id -> file download scope
|
|
1743
1831
|
*/
|
|
1744
|
-
fileDownloadScopesByFileId:
|
|
1832
|
+
fileDownloadScopesByFileId: z81.record(FigmaFileDownloadScope),
|
|
1745
1833
|
/**
|
|
1746
1834
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
1747
1835
|
* imported again.
|
|
1748
1836
|
*
|
|
1749
1837
|
* Source id -> import metadata
|
|
1750
1838
|
*/
|
|
1751
|
-
changedImportedSourceDataBySourceId:
|
|
1839
|
+
changedImportedSourceDataBySourceId: z81.record(ChangedImportedFigmaSourceData)
|
|
1752
1840
|
});
|
|
1753
|
-
var ImageImportModelType =
|
|
1754
|
-
var ImageImportModelBase =
|
|
1841
|
+
var ImageImportModelType = z82.enum(["Url", "FigmaRender"]);
|
|
1842
|
+
var ImageImportModelBase = z82.object({
|
|
1755
1843
|
scope: AssetScope
|
|
1756
1844
|
});
|
|
1757
1845
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
1758
|
-
type:
|
|
1759
|
-
url:
|
|
1760
|
-
originKey:
|
|
1761
|
-
extension:
|
|
1846
|
+
type: z82.literal(ImageImportModelType.enum.Url),
|
|
1847
|
+
url: z82.string(),
|
|
1848
|
+
originKey: z82.string(),
|
|
1849
|
+
extension: z82.string()
|
|
1762
1850
|
});
|
|
1763
|
-
var FigmaRenderFormat =
|
|
1851
|
+
var FigmaRenderFormat = z82.enum(["Svg", "Png"]);
|
|
1764
1852
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
1765
|
-
type:
|
|
1766
|
-
fileId:
|
|
1767
|
-
fileVersionId:
|
|
1768
|
-
nodeId:
|
|
1769
|
-
originKey:
|
|
1853
|
+
type: z82.literal(ImageImportModelType.enum.FigmaRender),
|
|
1854
|
+
fileId: z82.string(),
|
|
1855
|
+
fileVersionId: z82.string().optional(),
|
|
1856
|
+
nodeId: z82.string(),
|
|
1857
|
+
originKey: z82.string()
|
|
1770
1858
|
});
|
|
1771
1859
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
1772
|
-
format:
|
|
1773
|
-
scale:
|
|
1860
|
+
format: z82.literal(FigmaRenderFormat.enum.Png),
|
|
1861
|
+
scale: z82.number()
|
|
1774
1862
|
});
|
|
1775
1863
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
1776
|
-
format:
|
|
1864
|
+
format: z82.literal(FigmaRenderFormat.enum.Svg)
|
|
1777
1865
|
});
|
|
1778
|
-
var FigmaRenderImportModel =
|
|
1866
|
+
var FigmaRenderImportModel = z82.discriminatedUnion("format", [
|
|
1779
1867
|
FigmaPngRenderImportModel,
|
|
1780
1868
|
FigmaSvgRenderImportModel
|
|
1781
1869
|
]);
|
|
1782
|
-
var ImageImportModel =
|
|
1783
|
-
var ImportModelBase =
|
|
1784
|
-
id:
|
|
1870
|
+
var ImageImportModel = z82.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
1871
|
+
var ImportModelBase = z83.object({
|
|
1872
|
+
id: z83.string(),
|
|
1785
1873
|
meta: ObjectMeta,
|
|
1786
1874
|
origin: DesignElementOrigin,
|
|
1787
|
-
brandPersistentId:
|
|
1788
|
-
sortOrder:
|
|
1875
|
+
brandPersistentId: z83.string(),
|
|
1876
|
+
sortOrder: z83.number()
|
|
1789
1877
|
});
|
|
1790
1878
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
1791
1879
|
brandPersistentId: true,
|
|
1792
1880
|
origin: true,
|
|
1793
1881
|
sortOrder: true
|
|
1794
1882
|
}).extend({
|
|
1795
|
-
originId:
|
|
1796
|
-
originMetadata:
|
|
1883
|
+
originId: z83.string(),
|
|
1884
|
+
originMetadata: z83.record(z83.any())
|
|
1797
1885
|
});
|
|
1798
|
-
var ComponentImportModelPart =
|
|
1886
|
+
var ComponentImportModelPart = z84.object({
|
|
1799
1887
|
thumbnail: ImageImportModel
|
|
1800
1888
|
});
|
|
1801
1889
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
1802
|
-
isAsset:
|
|
1890
|
+
isAsset: z84.boolean(),
|
|
1803
1891
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
1804
1892
|
origin: ComponentOrigin
|
|
1805
1893
|
});
|
|
@@ -1811,44 +1899,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
1811
1899
|
originMetadata: ComponentOriginPart
|
|
1812
1900
|
});
|
|
1813
1901
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
1814
|
-
|
|
1815
|
-
id:
|
|
1902
|
+
z85.object({
|
|
1903
|
+
id: z85.string(),
|
|
1816
1904
|
meta: ObjectMeta
|
|
1817
1905
|
})
|
|
1818
1906
|
);
|
|
1819
1907
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
1820
|
-
|
|
1908
|
+
z85.object({
|
|
1821
1909
|
origin: ThemeOverrideOrigin
|
|
1822
1910
|
})
|
|
1823
1911
|
);
|
|
1824
1912
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
1825
|
-
|
|
1826
|
-
originId:
|
|
1913
|
+
z85.object({
|
|
1914
|
+
originId: z85.string(),
|
|
1827
1915
|
originMetadata: ThemeOverrideOriginPart
|
|
1828
1916
|
})
|
|
1829
1917
|
);
|
|
1830
|
-
var ThemeImportModel =
|
|
1918
|
+
var ThemeImportModel = z85.object({
|
|
1831
1919
|
meta: ObjectMeta,
|
|
1832
|
-
brandPersistentId:
|
|
1920
|
+
brandPersistentId: z85.string(),
|
|
1833
1921
|
originSource: ThemeOriginSource,
|
|
1834
|
-
overrides:
|
|
1835
|
-
sortOrder:
|
|
1922
|
+
overrides: z85.array(ThemeOverrideImportModel),
|
|
1923
|
+
sortOrder: z85.number()
|
|
1836
1924
|
});
|
|
1837
|
-
var ThemeImportModelInput =
|
|
1925
|
+
var ThemeImportModelInput = z85.object({
|
|
1838
1926
|
meta: ObjectMeta,
|
|
1839
|
-
originObjects:
|
|
1840
|
-
overrides:
|
|
1927
|
+
originObjects: z85.array(ThemeOriginObject),
|
|
1928
|
+
overrides: z85.array(ThemeOverrideImportModelInput)
|
|
1841
1929
|
});
|
|
1842
|
-
var ThemeUpdateImportModel =
|
|
1843
|
-
themePersistentId:
|
|
1844
|
-
overrides:
|
|
1930
|
+
var ThemeUpdateImportModel = z85.object({
|
|
1931
|
+
themePersistentId: z85.string(),
|
|
1932
|
+
overrides: z85.array(ThemeOverrideImportModel)
|
|
1845
1933
|
});
|
|
1846
|
-
var ThemeUpdateImportModelInput =
|
|
1847
|
-
themePersistentId:
|
|
1848
|
-
overrides:
|
|
1934
|
+
var ThemeUpdateImportModelInput = z85.object({
|
|
1935
|
+
themePersistentId: z85.string(),
|
|
1936
|
+
overrides: z85.array(ThemeOverrideImportModelInput)
|
|
1849
1937
|
});
|
|
1850
|
-
var DesignTokenImportModelPart =
|
|
1851
|
-
collection:
|
|
1938
|
+
var DesignTokenImportModelPart = z86.object({
|
|
1939
|
+
collection: z86.string().optional()
|
|
1852
1940
|
});
|
|
1853
1941
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
1854
1942
|
origin: DesignTokenOrigin
|
|
@@ -1862,10 +1950,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
|
1862
1950
|
image: FigmaPngRenderImportModel
|
|
1863
1951
|
});
|
|
1864
1952
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
1865
|
-
children:
|
|
1953
|
+
children: z87.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
1866
1954
|
});
|
|
1867
|
-
var FigmaFileStructureImportModelPart =
|
|
1868
|
-
data:
|
|
1955
|
+
var FigmaFileStructureImportModelPart = z87.object({
|
|
1956
|
+
data: z87.object({
|
|
1869
1957
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
1870
1958
|
assetsInFile: FigmaFileStructureStatistics
|
|
1871
1959
|
})
|
|
@@ -1876,41 +1964,41 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
1876
1964
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
1877
1965
|
FigmaFileStructureImportModelPart.shape
|
|
1878
1966
|
).extend({
|
|
1879
|
-
fileVersionId:
|
|
1967
|
+
fileVersionId: z87.string()
|
|
1880
1968
|
});
|
|
1881
|
-
var DataSourceImportModel =
|
|
1882
|
-
id:
|
|
1883
|
-
fileName:
|
|
1884
|
-
thumbnailUrl:
|
|
1969
|
+
var DataSourceImportModel = z88.object({
|
|
1970
|
+
id: z88.string(),
|
|
1971
|
+
fileName: z88.string().optional(),
|
|
1972
|
+
thumbnailUrl: z88.string().optional()
|
|
1885
1973
|
});
|
|
1886
|
-
var ImportModelInputCollection =
|
|
1974
|
+
var ImportModelInputCollection = z89.object({
|
|
1887
1975
|
source: DataSourceImportModel,
|
|
1888
|
-
tokens:
|
|
1889
|
-
components:
|
|
1890
|
-
assets:
|
|
1891
|
-
themeUpdates:
|
|
1892
|
-
themes:
|
|
1976
|
+
tokens: z89.array(DesignTokenImportModelInput).default([]),
|
|
1977
|
+
components: z89.array(ComponentImportModelInput).default([]),
|
|
1978
|
+
assets: z89.array(AssetImportModelInput).default([]),
|
|
1979
|
+
themeUpdates: z89.array(ThemeUpdateImportModelInput).default([]),
|
|
1980
|
+
themes: z89.array(ThemeImportModelInput).default([]),
|
|
1893
1981
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
1894
1982
|
});
|
|
1895
|
-
var ImportModelCollection =
|
|
1896
|
-
sources:
|
|
1897
|
-
tokens:
|
|
1898
|
-
components:
|
|
1899
|
-
themeUpdates:
|
|
1900
|
-
themes:
|
|
1901
|
-
figmaFileStructures:
|
|
1983
|
+
var ImportModelCollection = z89.object({
|
|
1984
|
+
sources: z89.array(DataSourceImportModel),
|
|
1985
|
+
tokens: z89.array(DesignTokenImportModel).default([]),
|
|
1986
|
+
components: z89.array(ComponentImportModel).default([]),
|
|
1987
|
+
themeUpdates: z89.array(ThemeUpdateImportModel).default([]),
|
|
1988
|
+
themes: z89.array(ThemeImportModel).default([]),
|
|
1989
|
+
figmaFileStructures: z89.array(FigmaFileStructureImportModel)
|
|
1902
1990
|
});
|
|
1903
|
-
var FileStructureStats =
|
|
1991
|
+
var FileStructureStats = z90.object({
|
|
1904
1992
|
frames: zeroNumberByDefault(),
|
|
1905
1993
|
components: zeroNumberByDefault(),
|
|
1906
1994
|
componentSets: zeroNumberByDefault()
|
|
1907
1995
|
});
|
|
1908
1996
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1909
1997
|
// Backward compatibility
|
|
1910
|
-
|
|
1998
|
+
z90.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1911
1999
|
);
|
|
1912
|
-
var SourceImportSummaryByTokenType =
|
|
1913
|
-
var SourceImportTokenSummary =
|
|
2000
|
+
var SourceImportSummaryByTokenType = z90.record(SourceImportSummaryByTokenTypeKey, z90.number());
|
|
2001
|
+
var SourceImportTokenSummary = z90.object({
|
|
1914
2002
|
tokensCreated: zeroNumberByDefault(),
|
|
1915
2003
|
tokensUpdated: zeroNumberByDefault(),
|
|
1916
2004
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -1918,7 +2006,7 @@ var SourceImportTokenSummary = z87.object({
|
|
|
1918
2006
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
1919
2007
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
1920
2008
|
});
|
|
1921
|
-
var SourceImportComponentSummary =
|
|
2009
|
+
var SourceImportComponentSummary = z90.object({
|
|
1922
2010
|
componentsCreated: zeroNumberByDefault(),
|
|
1923
2011
|
componentsUpdated: zeroNumberByDefault(),
|
|
1924
2012
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -1926,153 +2014,153 @@ var SourceImportComponentSummary = z87.object({
|
|
|
1926
2014
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
1927
2015
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
1928
2016
|
});
|
|
1929
|
-
var SourceImportFrameSummary =
|
|
2017
|
+
var SourceImportFrameSummary = z90.object({
|
|
1930
2018
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1931
|
-
invalidReferencesCount: nullishToOptional(
|
|
1932
|
-
});
|
|
1933
|
-
var SourceImportSummary =
|
|
1934
|
-
sourceId: nullishToOptional(
|
|
1935
|
-
brandId: nullishToOptional(
|
|
1936
|
-
versionId: nullishToOptional(
|
|
1937
|
-
error: nullishToOptional(
|
|
1938
|
-
isFailed:
|
|
1939
|
-
warnings:
|
|
2019
|
+
invalidReferencesCount: nullishToOptional(z90.number().optional())
|
|
2020
|
+
});
|
|
2021
|
+
var SourceImportSummary = z90.object({
|
|
2022
|
+
sourceId: nullishToOptional(z90.string()),
|
|
2023
|
+
brandId: nullishToOptional(z90.string()),
|
|
2024
|
+
versionId: nullishToOptional(z90.string()),
|
|
2025
|
+
error: nullishToOptional(z90.any()),
|
|
2026
|
+
isFailed: z90.boolean(),
|
|
2027
|
+
warnings: z90.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
1940
2028
|
...SourceImportTokenSummary.shape,
|
|
1941
2029
|
...SourceImportComponentSummary.shape,
|
|
1942
2030
|
...FileStructureStats.shape
|
|
1943
2031
|
});
|
|
1944
2032
|
function zeroNumberByDefault() {
|
|
1945
|
-
return
|
|
2033
|
+
return z90.number().nullish().transform((v) => v ?? 0);
|
|
1946
2034
|
}
|
|
1947
|
-
var DataSourceRemoteType =
|
|
1948
|
-
var DataSourceUploadRemoteSource =
|
|
1949
|
-
var DataSourceFigmaState =
|
|
1950
|
-
var DataSourceAutoImportMode =
|
|
1951
|
-
var DataSourceStats =
|
|
2035
|
+
var DataSourceRemoteType = z91.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
2036
|
+
var DataSourceUploadRemoteSource = z91.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
2037
|
+
var DataSourceFigmaState = z91.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
2038
|
+
var DataSourceAutoImportMode = z91.enum(["Never", "Hourly"]);
|
|
2039
|
+
var DataSourceStats = z91.object({
|
|
1952
2040
|
tokens: zeroNumberByDefault2(),
|
|
1953
2041
|
components: zeroNumberByDefault2(),
|
|
1954
2042
|
assets: zeroNumberByDefault2(),
|
|
1955
2043
|
frames: zeroNumberByDefault2()
|
|
1956
2044
|
});
|
|
1957
|
-
var DataSourceFigmaFileData =
|
|
1958
|
-
lastUpdatedAt:
|
|
2045
|
+
var DataSourceFigmaFileData = z91.object({
|
|
2046
|
+
lastUpdatedAt: z91.coerce.date()
|
|
1959
2047
|
});
|
|
1960
|
-
var DataSourceFigmaFileVersionData =
|
|
1961
|
-
id:
|
|
1962
|
-
label:
|
|
1963
|
-
description:
|
|
1964
|
-
createdAt:
|
|
1965
|
-
});
|
|
1966
|
-
var DataSourceFigmaScope =
|
|
1967
|
-
assets:
|
|
1968
|
-
components:
|
|
1969
|
-
documentationFrames:
|
|
1970
|
-
tokens:
|
|
1971
|
-
themePersistentId:
|
|
1972
|
-
isUnpublishedContentFallbackEnabled:
|
|
1973
|
-
});
|
|
1974
|
-
var DataSourceFigmaImportMetadata =
|
|
2048
|
+
var DataSourceFigmaFileVersionData = z91.object({
|
|
2049
|
+
id: z91.string(),
|
|
2050
|
+
label: z91.string().optional(),
|
|
2051
|
+
description: z91.string().optional(),
|
|
2052
|
+
createdAt: z91.coerce.date()
|
|
2053
|
+
});
|
|
2054
|
+
var DataSourceFigmaScope = z91.object({
|
|
2055
|
+
assets: z91.boolean(),
|
|
2056
|
+
components: z91.boolean(),
|
|
2057
|
+
documentationFrames: z91.boolean(),
|
|
2058
|
+
tokens: z91.boolean(),
|
|
2059
|
+
themePersistentId: z91.string().optional(),
|
|
2060
|
+
isUnpublishedContentFallbackEnabled: z91.boolean()
|
|
2061
|
+
});
|
|
2062
|
+
var DataSourceFigmaImportMetadata = z91.object({
|
|
1975
2063
|
fileData: DataSourceFigmaFileData.optional(),
|
|
1976
2064
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
1977
2065
|
});
|
|
1978
|
-
var DataSourceFigmaRemote =
|
|
1979
|
-
type:
|
|
1980
|
-
fileId:
|
|
1981
|
-
preferredCredentialId:
|
|
1982
|
-
ownerId:
|
|
2066
|
+
var DataSourceFigmaRemote = z91.object({
|
|
2067
|
+
type: z91.literal(DataSourceRemoteType.Enum.Figma),
|
|
2068
|
+
fileId: z91.string(),
|
|
2069
|
+
preferredCredentialId: z91.string().optional(),
|
|
2070
|
+
ownerId: z91.string(),
|
|
1983
2071
|
// todo remove or keep to reference who created data source
|
|
1984
|
-
ownerName:
|
|
2072
|
+
ownerName: z91.string(),
|
|
1985
2073
|
// todo probably remove
|
|
1986
2074
|
scope: DataSourceFigmaScope,
|
|
1987
2075
|
state: DataSourceFigmaState,
|
|
1988
|
-
requiresSync:
|
|
2076
|
+
requiresSync: z91.boolean().optional().transform((v) => v ?? false),
|
|
1989
2077
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
1990
|
-
downloadChunkSize:
|
|
1991
|
-
figmaRenderChunkSize:
|
|
1992
|
-
maxFileDepth:
|
|
2078
|
+
downloadChunkSize: z91.number().optional(),
|
|
2079
|
+
figmaRenderChunkSize: z91.number().optional(),
|
|
2080
|
+
maxFileDepth: z91.number().optional()
|
|
1993
2081
|
});
|
|
1994
|
-
var DataSourceTokenStudioRemote =
|
|
1995
|
-
type:
|
|
2082
|
+
var DataSourceTokenStudioRemote = z91.object({
|
|
2083
|
+
type: z91.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
1996
2084
|
});
|
|
1997
|
-
var DataSourceUploadImportMetadata =
|
|
1998
|
-
var DataSourceUploadRemote =
|
|
1999
|
-
type:
|
|
2000
|
-
remoteId:
|
|
2085
|
+
var DataSourceUploadImportMetadata = z91.record(z91.any());
|
|
2086
|
+
var DataSourceUploadRemote = z91.object({
|
|
2087
|
+
type: z91.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
2088
|
+
remoteId: z91.string(),
|
|
2001
2089
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
2002
2090
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
2003
2091
|
});
|
|
2004
|
-
var DataSourceRemote =
|
|
2092
|
+
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
2005
2093
|
DataSourceFigmaRemote,
|
|
2006
2094
|
DataSourceUploadRemote,
|
|
2007
2095
|
DataSourceTokenStudioRemote
|
|
2008
2096
|
]);
|
|
2009
|
-
var DataSource =
|
|
2010
|
-
id:
|
|
2011
|
-
name:
|
|
2012
|
-
thumbnailUrl:
|
|
2013
|
-
createdAt:
|
|
2014
|
-
lastImportedAt:
|
|
2097
|
+
var DataSource = z91.object({
|
|
2098
|
+
id: z91.string(),
|
|
2099
|
+
name: z91.string(),
|
|
2100
|
+
thumbnailUrl: z91.string().optional(),
|
|
2101
|
+
createdAt: z91.coerce.date().optional(),
|
|
2102
|
+
lastImportedAt: z91.coerce.date().optional(),
|
|
2015
2103
|
lastImportSummary: SourceImportSummary.optional(),
|
|
2016
|
-
designSystemId:
|
|
2017
|
-
brandPersistentId:
|
|
2104
|
+
designSystemId: z91.string(),
|
|
2105
|
+
brandPersistentId: z91.string(),
|
|
2018
2106
|
autoImportMode: DataSourceAutoImportMode,
|
|
2019
2107
|
stats: DataSourceStats,
|
|
2020
2108
|
remote: DataSourceRemote,
|
|
2021
|
-
sortOrder:
|
|
2109
|
+
sortOrder: z91.number()
|
|
2022
2110
|
});
|
|
2023
|
-
var DataSourceVersion =
|
|
2024
|
-
id:
|
|
2025
|
-
createdAt:
|
|
2026
|
-
label:
|
|
2027
|
-
description:
|
|
2111
|
+
var DataSourceVersion = z91.object({
|
|
2112
|
+
id: z91.string(),
|
|
2113
|
+
createdAt: z91.coerce.date(),
|
|
2114
|
+
label: z91.string().nullish(),
|
|
2115
|
+
description: z91.string().nullish()
|
|
2028
2116
|
});
|
|
2029
2117
|
function zeroNumberByDefault2() {
|
|
2030
|
-
return
|
|
2118
|
+
return z91.number().nullish().transform((v) => v ?? 0);
|
|
2031
2119
|
}
|
|
2032
|
-
var ImportJobState =
|
|
2033
|
-
var ImportJobOperation =
|
|
2120
|
+
var ImportJobState = z92.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
2121
|
+
var ImportJobOperation = z92.enum(["Check", "Import"]);
|
|
2034
2122
|
var ImportJob = Entity.extend({
|
|
2035
|
-
designSystemId:
|
|
2036
|
-
designSystemVersionId:
|
|
2037
|
-
sourceIds:
|
|
2123
|
+
designSystemId: z92.string(),
|
|
2124
|
+
designSystemVersionId: z92.string(),
|
|
2125
|
+
sourceIds: z92.array(z92.string()),
|
|
2038
2126
|
state: ImportJobState,
|
|
2039
|
-
createdByUserId:
|
|
2040
|
-
importContextId:
|
|
2041
|
-
error:
|
|
2127
|
+
createdByUserId: z92.string().optional(),
|
|
2128
|
+
importContextId: z92.string(),
|
|
2129
|
+
error: z92.string().optional(),
|
|
2042
2130
|
sourceType: DataSourceRemoteType,
|
|
2043
|
-
importContextCleanedUp:
|
|
2044
|
-
});
|
|
2045
|
-
var PageBlockDefinitionAppearance =
|
|
2046
|
-
isBordered:
|
|
2047
|
-
hasBackground:
|
|
2048
|
-
isEditorPresentationDifferent:
|
|
2049
|
-
showBlockHeaderInEditor:
|
|
2050
|
-
});
|
|
2051
|
-
var PageBlockDefinitionLayoutType =
|
|
2052
|
-
var PageBlockDefinitionLayoutGap =
|
|
2053
|
-
var PageBlockDefinitionLayoutAlign =
|
|
2054
|
-
var PageBlockDefinitionLayoutResizing =
|
|
2055
|
-
var PageBlockDefinitionLayoutBase =
|
|
2131
|
+
importContextCleanedUp: z92.boolean()
|
|
2132
|
+
});
|
|
2133
|
+
var PageBlockDefinitionAppearance = z93.object({
|
|
2134
|
+
isBordered: z93.boolean().optional(),
|
|
2135
|
+
hasBackground: z93.boolean().optional(),
|
|
2136
|
+
isEditorPresentationDifferent: z93.boolean().optional(),
|
|
2137
|
+
showBlockHeaderInEditor: z93.boolean().optional()
|
|
2138
|
+
});
|
|
2139
|
+
var PageBlockDefinitionLayoutType = z94.enum(["Column", "Row"]);
|
|
2140
|
+
var PageBlockDefinitionLayoutGap = z94.enum(["Small", "Medium", "Large", "None"]);
|
|
2141
|
+
var PageBlockDefinitionLayoutAlign = z94.enum(["Start", "Center", "End"]);
|
|
2142
|
+
var PageBlockDefinitionLayoutResizing = z94.enum(["Fill", "Hug"]);
|
|
2143
|
+
var PageBlockDefinitionLayoutBase = z94.object({
|
|
2056
2144
|
type: PageBlockDefinitionLayoutType,
|
|
2057
2145
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
2058
2146
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
2059
2147
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
2060
2148
|
});
|
|
2061
2149
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
2062
|
-
children:
|
|
2150
|
+
children: z94.lazy(() => z94.array(PageBlockDefinitionLayout.or(z94.string())))
|
|
2063
2151
|
});
|
|
2064
|
-
var PageBlockDefinitionVariant =
|
|
2065
|
-
id:
|
|
2066
|
-
name:
|
|
2067
|
-
image:
|
|
2068
|
-
description:
|
|
2069
|
-
documentationLink:
|
|
2152
|
+
var PageBlockDefinitionVariant = z94.object({
|
|
2153
|
+
id: z94.string(),
|
|
2154
|
+
name: z94.string(),
|
|
2155
|
+
image: z94.string().optional(),
|
|
2156
|
+
description: z94.string().optional(),
|
|
2157
|
+
documentationLink: z94.string().optional(),
|
|
2070
2158
|
layout: PageBlockDefinitionLayout,
|
|
2071
|
-
maxColumns:
|
|
2072
|
-
defaultColumns:
|
|
2159
|
+
maxColumns: z94.number().optional(),
|
|
2160
|
+
defaultColumns: z94.number().optional(),
|
|
2073
2161
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2074
2162
|
});
|
|
2075
|
-
var PageBlockDefinitionPropertyType =
|
|
2163
|
+
var PageBlockDefinitionPropertyType = z95.enum([
|
|
2076
2164
|
"RichText",
|
|
2077
2165
|
"MultiRichText",
|
|
2078
2166
|
"Text",
|
|
@@ -2100,7 +2188,7 @@ var PageBlockDefinitionPropertyType = z92.enum([
|
|
|
2100
2188
|
"Color",
|
|
2101
2189
|
"FigmaComponent"
|
|
2102
2190
|
]);
|
|
2103
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
2191
|
+
var PageBlockDefinitionRichTextPropertyStyle = z95.enum([
|
|
2104
2192
|
"Title1",
|
|
2105
2193
|
"Title2",
|
|
2106
2194
|
"Title3",
|
|
@@ -2110,8 +2198,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z92.enum([
|
|
|
2110
2198
|
"Callout",
|
|
2111
2199
|
"Default"
|
|
2112
2200
|
]);
|
|
2113
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
2114
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
2201
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z95.enum(["OL", "UL", "Default"]);
|
|
2202
|
+
var PageBlockDefinitionTextPropertyStyle = z95.enum([
|
|
2115
2203
|
"Title1",
|
|
2116
2204
|
"Title2",
|
|
2117
2205
|
"Title3",
|
|
@@ -2125,15 +2213,15 @@ var PageBlockDefinitionTextPropertyStyle = z92.enum([
|
|
|
2125
2213
|
"SmallSemibold",
|
|
2126
2214
|
"Custom"
|
|
2127
2215
|
]);
|
|
2128
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
2129
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2130
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2216
|
+
var PageBlockDefinitionTextPropertyColor = z95.enum(["Neutral", "NeutralFaded"]);
|
|
2217
|
+
var PageBlockDefinitionBooleanPropertyStyle = z95.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2218
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z95.enum([
|
|
2131
2219
|
"SegmentedControl",
|
|
2132
2220
|
"ToggleButton",
|
|
2133
2221
|
"Select",
|
|
2134
2222
|
"Checkbox"
|
|
2135
2223
|
]);
|
|
2136
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
2224
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z95.enum([
|
|
2137
2225
|
"Green",
|
|
2138
2226
|
"Red",
|
|
2139
2227
|
"Yellow",
|
|
@@ -2148,76 +2236,76 @@ var PageBlockDefinitionSingleSelectPropertyColor = z92.enum([
|
|
|
2148
2236
|
"Cyan",
|
|
2149
2237
|
"Fuchsia"
|
|
2150
2238
|
]);
|
|
2151
|
-
var IconSet =
|
|
2239
|
+
var IconSet = z95.enum([
|
|
2152
2240
|
"CheckCircle",
|
|
2153
2241
|
"CrossCircle",
|
|
2154
2242
|
"Alert"
|
|
2155
2243
|
]);
|
|
2156
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2157
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2158
|
-
var PageBlockDefinitionImageWidth =
|
|
2159
|
-
var PageBlockDefinitionSelectChoice =
|
|
2160
|
-
value:
|
|
2161
|
-
name:
|
|
2244
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z95.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2245
|
+
var PageBlockDefinitionImageAspectRatio = z95.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2246
|
+
var PageBlockDefinitionImageWidth = z95.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2247
|
+
var PageBlockDefinitionSelectChoice = z95.object({
|
|
2248
|
+
value: z95.string(),
|
|
2249
|
+
name: z95.string(),
|
|
2162
2250
|
icon: IconSet.optional(),
|
|
2163
|
-
customIconUrl:
|
|
2251
|
+
customIconUrl: z95.string().optional(),
|
|
2164
2252
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2165
2253
|
});
|
|
2166
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2167
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2254
|
+
var PageBlockDefinitionUntypedPropertyOptions = z95.record(z95.any());
|
|
2255
|
+
var PageBlockDefinitionRichTextOptions = z95.object({
|
|
2168
2256
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2169
2257
|
});
|
|
2170
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2258
|
+
var PageBlockDefinitionMutiRichTextOptions = z95.object({
|
|
2171
2259
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2172
2260
|
});
|
|
2173
|
-
var PageBlockDefinitionTextOptions =
|
|
2174
|
-
placeholder:
|
|
2175
|
-
defaultValue:
|
|
2261
|
+
var PageBlockDefinitionTextOptions = z95.object({
|
|
2262
|
+
placeholder: z95.string().optional(),
|
|
2263
|
+
defaultValue: z95.string().optional(),
|
|
2176
2264
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2177
2265
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2178
|
-
allowLineBreaks:
|
|
2266
|
+
allowLineBreaks: z95.boolean().optional()
|
|
2179
2267
|
});
|
|
2180
|
-
var PageBlockDefinitionSelectOptions =
|
|
2268
|
+
var PageBlockDefinitionSelectOptions = z95.object({
|
|
2181
2269
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2182
|
-
defaultChoice:
|
|
2183
|
-
choices:
|
|
2270
|
+
defaultChoice: z95.string(),
|
|
2271
|
+
choices: z95.array(PageBlockDefinitionSelectChoice)
|
|
2184
2272
|
});
|
|
2185
|
-
var PageBlockDefinitionImageOptions =
|
|
2273
|
+
var PageBlockDefinitionImageOptions = z95.object({
|
|
2186
2274
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2187
2275
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2188
|
-
allowCaption:
|
|
2189
|
-
recommendation:
|
|
2276
|
+
allowCaption: z95.boolean().optional(),
|
|
2277
|
+
recommendation: z95.string().optional()
|
|
2190
2278
|
});
|
|
2191
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2192
|
-
defaultvalue:
|
|
2279
|
+
var PageBlockDefinitionBooleanOptions = z95.object({
|
|
2280
|
+
defaultvalue: z95.boolean().optional(),
|
|
2193
2281
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2194
2282
|
});
|
|
2195
|
-
var PageBlockDefinitionNumberOptions =
|
|
2196
|
-
defaultValue:
|
|
2197
|
-
min:
|
|
2198
|
-
max:
|
|
2199
|
-
step:
|
|
2200
|
-
placeholder:
|
|
2283
|
+
var PageBlockDefinitionNumberOptions = z95.object({
|
|
2284
|
+
defaultValue: z95.number(),
|
|
2285
|
+
min: z95.number().optional(),
|
|
2286
|
+
max: z95.number().optional(),
|
|
2287
|
+
step: z95.number().optional(),
|
|
2288
|
+
placeholder: z95.string().optional()
|
|
2201
2289
|
});
|
|
2202
|
-
var PageBlockDefinitionComponentOptions =
|
|
2203
|
-
renderLayoutAs:
|
|
2204
|
-
allowPropertySelection:
|
|
2290
|
+
var PageBlockDefinitionComponentOptions = z95.object({
|
|
2291
|
+
renderLayoutAs: z95.enum(["List", "Table"]).optional(),
|
|
2292
|
+
allowPropertySelection: z95.boolean().optional()
|
|
2205
2293
|
});
|
|
2206
|
-
var PageBlockDefinitionProperty =
|
|
2207
|
-
id:
|
|
2208
|
-
name:
|
|
2294
|
+
var PageBlockDefinitionProperty = z95.object({
|
|
2295
|
+
id: z95.string(),
|
|
2296
|
+
name: z95.string(),
|
|
2209
2297
|
type: PageBlockDefinitionPropertyType,
|
|
2210
|
-
description:
|
|
2298
|
+
description: z95.string().optional(),
|
|
2211
2299
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2212
|
-
variantOptions:
|
|
2300
|
+
variantOptions: z95.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2213
2301
|
});
|
|
2214
|
-
var PageBlockDefinitionItem =
|
|
2215
|
-
properties:
|
|
2302
|
+
var PageBlockDefinitionItem = z95.object({
|
|
2303
|
+
properties: z95.array(PageBlockDefinitionProperty),
|
|
2216
2304
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2217
|
-
variants:
|
|
2218
|
-
defaultVariantKey:
|
|
2305
|
+
variants: z95.array(PageBlockDefinitionVariant),
|
|
2306
|
+
defaultVariantKey: z95.string()
|
|
2219
2307
|
});
|
|
2220
|
-
var PageBlockCategory =
|
|
2308
|
+
var PageBlockCategory = z96.enum([
|
|
2221
2309
|
"Text",
|
|
2222
2310
|
"Layout",
|
|
2223
2311
|
"Media",
|
|
@@ -2231,626 +2319,444 @@ var PageBlockCategory = z93.enum([
|
|
|
2231
2319
|
"Data",
|
|
2232
2320
|
"Other"
|
|
2233
2321
|
]);
|
|
2234
|
-
var PageBlockBehaviorDataType =
|
|
2235
|
-
var PageBlockBehaviorSelectionType =
|
|
2236
|
-
var PageBlockDefinitionBehavior =
|
|
2322
|
+
var PageBlockBehaviorDataType = z96.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2323
|
+
var PageBlockBehaviorSelectionType = z96.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2324
|
+
var PageBlockDefinitionBehavior = z96.object({
|
|
2237
2325
|
dataType: PageBlockBehaviorDataType,
|
|
2238
|
-
items:
|
|
2239
|
-
numberOfItems:
|
|
2240
|
-
allowLinks:
|
|
2241
|
-
newItemLabel:
|
|
2326
|
+
items: z96.object({
|
|
2327
|
+
numberOfItems: z96.number(),
|
|
2328
|
+
allowLinks: z96.boolean(),
|
|
2329
|
+
newItemLabel: z96.string().optional()
|
|
2242
2330
|
}).optional(),
|
|
2243
|
-
entities:
|
|
2331
|
+
entities: z96.object({
|
|
2244
2332
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2245
|
-
maxSelected:
|
|
2333
|
+
maxSelected: z96.number()
|
|
2246
2334
|
}).optional()
|
|
2247
2335
|
});
|
|
2248
|
-
var PageBlockDefinitionOnboarding =
|
|
2249
|
-
helpText:
|
|
2250
|
-
documentationLink:
|
|
2336
|
+
var PageBlockDefinitionOnboarding = z96.object({
|
|
2337
|
+
helpText: z96.string(),
|
|
2338
|
+
documentationLink: z96.string().optional()
|
|
2251
2339
|
});
|
|
2252
|
-
var PageBlockDefinition =
|
|
2253
|
-
id:
|
|
2254
|
-
name:
|
|
2255
|
-
description:
|
|
2340
|
+
var PageBlockDefinition = z96.object({
|
|
2341
|
+
id: z96.string(),
|
|
2342
|
+
name: z96.string(),
|
|
2343
|
+
description: z96.string(),
|
|
2256
2344
|
category: PageBlockCategory,
|
|
2257
|
-
icon:
|
|
2258
|
-
documentationLink:
|
|
2259
|
-
searchKeywords:
|
|
2345
|
+
icon: z96.string().optional(),
|
|
2346
|
+
documentationLink: z96.string().optional(),
|
|
2347
|
+
searchKeywords: z96.array(z96.string()).optional(),
|
|
2260
2348
|
item: PageBlockDefinitionItem,
|
|
2261
2349
|
behavior: PageBlockDefinitionBehavior,
|
|
2262
|
-
editorOptions:
|
|
2350
|
+
editorOptions: z96.object({
|
|
2263
2351
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2264
2352
|
}),
|
|
2265
2353
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2266
2354
|
});
|
|
2267
|
-
var DocumentationPageGroup =
|
|
2268
|
-
type:
|
|
2269
|
-
childType:
|
|
2270
|
-
id: z94.string(),
|
|
2271
|
-
persistentId: z94.string(),
|
|
2272
|
-
shortPersistentId: z94.string(),
|
|
2273
|
-
designSystemVersionId: z94.string(),
|
|
2274
|
-
parentPersistentId: z94.string().nullish(),
|
|
2275
|
-
sortOrder: z94.number(),
|
|
2276
|
-
title: z94.string(),
|
|
2277
|
-
slug: z94.string(),
|
|
2278
|
-
userSlug: z94.string().nullish(),
|
|
2279
|
-
createdAt: z94.coerce.date(),
|
|
2280
|
-
updatedAt: z94.coerce.date()
|
|
2281
|
-
});
|
|
2282
|
-
var DocumentationLinkPreview = z95.object({
|
|
2283
|
-
title: z95.string().optional(),
|
|
2284
|
-
description: z95.string().optional(),
|
|
2285
|
-
thumbnail: PageBlockImageReference.optional()
|
|
2286
|
-
});
|
|
2287
|
-
var DocumentationPageAnchor = z96.object({
|
|
2288
|
-
blockId: z96.string(),
|
|
2289
|
-
level: z96.number(),
|
|
2290
|
-
text: z96.string()
|
|
2291
|
-
});
|
|
2292
|
-
var DocumentationPageContentBackup = z97.object({
|
|
2355
|
+
var DocumentationPageGroup = z97.object({
|
|
2356
|
+
type: z97.literal("ElementGroup"),
|
|
2357
|
+
childType: z97.literal("DocumentationPage"),
|
|
2293
2358
|
id: z97.string(),
|
|
2359
|
+
persistentId: z97.string(),
|
|
2360
|
+
shortPersistentId: z97.string(),
|
|
2294
2361
|
designSystemVersionId: z97.string(),
|
|
2362
|
+
parentPersistentId: z97.string().nullish(),
|
|
2363
|
+
sortOrder: z97.number(),
|
|
2364
|
+
title: z97.string(),
|
|
2365
|
+
slug: z97.string(),
|
|
2366
|
+
userSlug: z97.string().nullish(),
|
|
2295
2367
|
createdAt: z97.coerce.date(),
|
|
2296
|
-
updatedAt: z97.coerce.date()
|
|
2297
|
-
documentationPageId: z97.string(),
|
|
2298
|
-
documentationPageName: z97.string(),
|
|
2299
|
-
storagePath: z97.string()
|
|
2368
|
+
updatedAt: z97.coerce.date()
|
|
2300
2369
|
});
|
|
2301
|
-
var
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
var DocumentationPageContentData = z98.object({
|
|
2306
|
-
items: z98.array(DocumentationPageContentItem)
|
|
2307
|
-
});
|
|
2308
|
-
var DocumentationPageContent = z98.object({
|
|
2309
|
-
id: z98.string(),
|
|
2310
|
-
designSystemVersionId: z98.string(),
|
|
2311
|
-
createdAt: z98.coerce.date(),
|
|
2312
|
-
updatedAt: z98.coerce.date(),
|
|
2313
|
-
documentationPageId: z98.string(),
|
|
2314
|
-
data: DocumentationPageContentData
|
|
2370
|
+
var DocumentationLinkPreview = z98.object({
|
|
2371
|
+
title: z98.string().optional(),
|
|
2372
|
+
description: z98.string().optional(),
|
|
2373
|
+
thumbnail: PageBlockImageReference.optional()
|
|
2315
2374
|
});
|
|
2316
|
-
var
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
shortPersistentId: z99.string(),
|
|
2321
|
-
designSystemVersionId: z99.string(),
|
|
2322
|
-
parentPersistentId: z99.string().nullish(),
|
|
2323
|
-
sortOrder: z99.number(),
|
|
2324
|
-
title: z99.string(),
|
|
2325
|
-
slug: z99.string(),
|
|
2326
|
-
userSlug: z99.string().nullish(),
|
|
2327
|
-
createdAt: z99.coerce.date(),
|
|
2328
|
-
updatedAt: z99.coerce.date()
|
|
2329
|
-
});
|
|
2330
|
-
var DocumentationComment = z100.object({
|
|
2331
|
-
id: z100.string(),
|
|
2332
|
-
authorId: z100.string(),
|
|
2333
|
-
threadId: z100.string(),
|
|
2334
|
-
roomId: z100.string(),
|
|
2335
|
-
createdAt: z100.coerce.date(),
|
|
2336
|
-
editedAt: z100.coerce.date().optional(),
|
|
2337
|
-
deletedAt: z100.coerce.date().optional(),
|
|
2338
|
-
body: z100.string()
|
|
2375
|
+
var DocumentationPageAnchor = z99.object({
|
|
2376
|
+
blockId: z99.string(),
|
|
2377
|
+
level: z99.number(),
|
|
2378
|
+
text: z99.string()
|
|
2339
2379
|
});
|
|
2340
|
-
var
|
|
2380
|
+
var DocumentationPageContentBackup = z100.object({
|
|
2341
2381
|
id: z100.string(),
|
|
2342
|
-
roomId: z100.string(),
|
|
2343
|
-
pagePersistentId: z100.string(),
|
|
2344
|
-
brandId: z100.string(),
|
|
2345
2382
|
designSystemVersionId: z100.string(),
|
|
2346
|
-
designSystemId: z100.string(),
|
|
2347
|
-
blockId: z100.string().optional(),
|
|
2348
|
-
resolved: z100.boolean(),
|
|
2349
2383
|
createdAt: z100.coerce.date(),
|
|
2350
|
-
updatedAt: z100.coerce.date()
|
|
2384
|
+
updatedAt: z100.coerce.date(),
|
|
2385
|
+
documentationPageId: z100.string(),
|
|
2386
|
+
documentationPageName: z100.string(),
|
|
2387
|
+
storagePath: z100.string()
|
|
2351
2388
|
});
|
|
2352
|
-
var
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
z101.literal("PropertyDefinition"),
|
|
2356
|
-
z101.literal("Theme")
|
|
2389
|
+
var DocumentationPageContentItem = z101.discriminatedUnion("type", [
|
|
2390
|
+
PageBlockEditorModelV2,
|
|
2391
|
+
PageSectionEditorModelV2
|
|
2357
2392
|
]);
|
|
2358
|
-
var
|
|
2393
|
+
var DocumentationPageContentData = z101.object({
|
|
2394
|
+
items: z101.array(DocumentationPageContentItem)
|
|
2395
|
+
});
|
|
2396
|
+
var DocumentationPageContent = z101.object({
|
|
2359
2397
|
id: z101.string(),
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2398
|
+
designSystemVersionId: z101.string(),
|
|
2399
|
+
createdAt: z101.coerce.date(),
|
|
2400
|
+
updatedAt: z101.coerce.date(),
|
|
2401
|
+
documentationPageId: z101.string(),
|
|
2402
|
+
data: DocumentationPageContentData
|
|
2403
|
+
});
|
|
2404
|
+
var DocumentationPage = z102.object({
|
|
2405
|
+
type: z102.literal("DocumentationPage"),
|
|
2406
|
+
id: z102.string(),
|
|
2407
|
+
persistentId: z102.string(),
|
|
2408
|
+
shortPersistentId: z102.string(),
|
|
2409
|
+
designSystemVersionId: z102.string(),
|
|
2410
|
+
parentPersistentId: z102.string().nullish(),
|
|
2411
|
+
sortOrder: z102.number(),
|
|
2412
|
+
title: z102.string(),
|
|
2413
|
+
slug: z102.string(),
|
|
2414
|
+
userSlug: z102.string().nullish(),
|
|
2415
|
+
createdAt: z102.coerce.date(),
|
|
2416
|
+
updatedAt: z102.coerce.date()
|
|
2417
|
+
});
|
|
2418
|
+
var DocumentationComment = z103.object({
|
|
2419
|
+
id: z103.string(),
|
|
2420
|
+
authorId: z103.string(),
|
|
2421
|
+
threadId: z103.string(),
|
|
2422
|
+
roomId: z103.string(),
|
|
2423
|
+
createdAt: z103.coerce.date(),
|
|
2424
|
+
editedAt: z103.coerce.date().optional(),
|
|
2425
|
+
deletedAt: z103.coerce.date().optional(),
|
|
2426
|
+
body: z103.string()
|
|
2427
|
+
});
|
|
2428
|
+
var DocumentationCommentThread = z103.object({
|
|
2429
|
+
id: z103.string(),
|
|
2430
|
+
roomId: z103.string(),
|
|
2431
|
+
pagePersistentId: z103.string(),
|
|
2432
|
+
brandId: z103.string(),
|
|
2433
|
+
designSystemVersionId: z103.string(),
|
|
2434
|
+
designSystemId: z103.string(),
|
|
2435
|
+
blockId: z103.string().optional(),
|
|
2436
|
+
resolved: z103.boolean(),
|
|
2437
|
+
createdAt: z103.coerce.date(),
|
|
2438
|
+
updatedAt: z103.coerce.date()
|
|
2439
|
+
});
|
|
2440
|
+
var ElementViewBaseColumnType = z104.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2441
|
+
var ElementViewColumnType = z104.union([
|
|
2442
|
+
z104.literal("BaseProperty"),
|
|
2443
|
+
z104.literal("PropertyDefinition"),
|
|
2444
|
+
z104.literal("Theme")
|
|
2445
|
+
]);
|
|
2446
|
+
var ElementViewColumnSharedAttributes = z104.object({
|
|
2447
|
+
id: z104.string(),
|
|
2448
|
+
persistentId: z104.string(),
|
|
2449
|
+
elementDataViewId: z104.string(),
|
|
2450
|
+
sortPosition: z104.number(),
|
|
2451
|
+
width: z104.number()
|
|
2364
2452
|
});
|
|
2365
2453
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2366
|
-
type:
|
|
2454
|
+
type: z104.literal("BaseProperty"),
|
|
2367
2455
|
basePropertyType: ElementViewBaseColumnType
|
|
2368
2456
|
});
|
|
2369
2457
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2370
|
-
type:
|
|
2371
|
-
propertyDefinitionId:
|
|
2458
|
+
type: z104.literal("PropertyDefinition"),
|
|
2459
|
+
propertyDefinitionId: z104.string()
|
|
2372
2460
|
});
|
|
2373
2461
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2374
|
-
type:
|
|
2375
|
-
themeId:
|
|
2462
|
+
type: z104.literal("Theme"),
|
|
2463
|
+
themeId: z104.string()
|
|
2376
2464
|
});
|
|
2377
|
-
var ElementViewColumn =
|
|
2465
|
+
var ElementViewColumn = z104.discriminatedUnion("type", [
|
|
2378
2466
|
ElementViewBasePropertyColumn,
|
|
2379
2467
|
ElementViewPropertyDefinitionColumn,
|
|
2380
2468
|
ElementViewThemeColumn
|
|
2381
2469
|
]);
|
|
2382
|
-
var ElementView =
|
|
2383
|
-
id:
|
|
2384
|
-
persistentId:
|
|
2385
|
-
designSystemVersionId:
|
|
2386
|
-
name:
|
|
2387
|
-
description:
|
|
2470
|
+
var ElementView = z105.object({
|
|
2471
|
+
id: z105.string(),
|
|
2472
|
+
persistentId: z105.string(),
|
|
2473
|
+
designSystemVersionId: z105.string(),
|
|
2474
|
+
name: z105.string(),
|
|
2475
|
+
description: z105.string(),
|
|
2388
2476
|
targetElementType: ElementPropertyTargetType,
|
|
2389
|
-
isDefault:
|
|
2390
|
-
});
|
|
2391
|
-
var Brand =
|
|
2392
|
-
id:
|
|
2393
|
-
designSystemVersionId:
|
|
2394
|
-
persistentId:
|
|
2395
|
-
name:
|
|
2396
|
-
description:
|
|
2397
|
-
});
|
|
2398
|
-
var NpmRegistryAuthType =
|
|
2399
|
-
var NpmRegistryType =
|
|
2400
|
-
var NpmRegistryBasicAuthConfig =
|
|
2401
|
-
authType:
|
|
2402
|
-
username:
|
|
2403
|
-
password:
|
|
2404
|
-
});
|
|
2405
|
-
var NpmRegistryBearerAuthConfig =
|
|
2406
|
-
authType:
|
|
2407
|
-
accessToken:
|
|
2408
|
-
});
|
|
2409
|
-
var NpmRegistryNoAuthConfig =
|
|
2410
|
-
authType:
|
|
2411
|
-
});
|
|
2412
|
-
var NpmRegistrCustomAuthConfig =
|
|
2413
|
-
authType:
|
|
2414
|
-
authHeaderName:
|
|
2415
|
-
authHeaderValue:
|
|
2416
|
-
});
|
|
2417
|
-
var NpmRegistryAuthConfig =
|
|
2477
|
+
isDefault: z105.boolean()
|
|
2478
|
+
});
|
|
2479
|
+
var Brand = z106.object({
|
|
2480
|
+
id: z106.string(),
|
|
2481
|
+
designSystemVersionId: z106.string(),
|
|
2482
|
+
persistentId: z106.string(),
|
|
2483
|
+
name: z106.string(),
|
|
2484
|
+
description: z106.string()
|
|
2485
|
+
});
|
|
2486
|
+
var NpmRegistryAuthType = z107.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2487
|
+
var NpmRegistryType = z107.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2488
|
+
var NpmRegistryBasicAuthConfig = z107.object({
|
|
2489
|
+
authType: z107.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2490
|
+
username: z107.string(),
|
|
2491
|
+
password: z107.string()
|
|
2492
|
+
});
|
|
2493
|
+
var NpmRegistryBearerAuthConfig = z107.object({
|
|
2494
|
+
authType: z107.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2495
|
+
accessToken: z107.string()
|
|
2496
|
+
});
|
|
2497
|
+
var NpmRegistryNoAuthConfig = z107.object({
|
|
2498
|
+
authType: z107.literal(NpmRegistryAuthType.Enum.None)
|
|
2499
|
+
});
|
|
2500
|
+
var NpmRegistrCustomAuthConfig = z107.object({
|
|
2501
|
+
authType: z107.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2502
|
+
authHeaderName: z107.string(),
|
|
2503
|
+
authHeaderValue: z107.string()
|
|
2504
|
+
});
|
|
2505
|
+
var NpmRegistryAuthConfig = z107.discriminatedUnion("authType", [
|
|
2418
2506
|
NpmRegistryBasicAuthConfig,
|
|
2419
2507
|
NpmRegistryBearerAuthConfig,
|
|
2420
2508
|
NpmRegistryNoAuthConfig,
|
|
2421
2509
|
NpmRegistrCustomAuthConfig
|
|
2422
2510
|
]);
|
|
2423
|
-
var NpmRegistryConfigBase =
|
|
2511
|
+
var NpmRegistryConfigBase = z107.object({
|
|
2424
2512
|
registryType: NpmRegistryType,
|
|
2425
|
-
enabledScopes:
|
|
2426
|
-
customRegistryUrl:
|
|
2427
|
-
bypassProxy:
|
|
2428
|
-
npmProxyRegistryConfigId:
|
|
2429
|
-
npmProxyVersion:
|
|
2513
|
+
enabledScopes: z107.array(z107.string()),
|
|
2514
|
+
customRegistryUrl: z107.string().optional(),
|
|
2515
|
+
bypassProxy: z107.boolean().default(false),
|
|
2516
|
+
npmProxyRegistryConfigId: z107.string().optional(),
|
|
2517
|
+
npmProxyVersion: z107.number().optional()
|
|
2430
2518
|
});
|
|
2431
2519
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2432
|
-
var SsoProvider =
|
|
2433
|
-
providerId:
|
|
2434
|
-
defaultAutoInviteValue:
|
|
2435
|
-
autoInviteDomains:
|
|
2436
|
-
skipDocsSupernovaLogin:
|
|
2437
|
-
areInvitesDisabled:
|
|
2438
|
-
isTestMode:
|
|
2439
|
-
emailDomains:
|
|
2440
|
-
metadataXml:
|
|
2441
|
-
});
|
|
2442
|
-
var WorkspaceRoleSchema = z106.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2443
|
-
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2444
|
-
var MAX_MEMBERS_COUNT = 100;
|
|
2445
|
-
var UserInvite = z107.object({
|
|
2446
|
-
email: z107.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2447
|
-
role: WorkspaceRoleSchema
|
|
2520
|
+
var SsoProvider = z108.object({
|
|
2521
|
+
providerId: z108.string(),
|
|
2522
|
+
defaultAutoInviteValue: z108.boolean(),
|
|
2523
|
+
autoInviteDomains: z108.record(z108.string(), z108.boolean()),
|
|
2524
|
+
skipDocsSupernovaLogin: z108.boolean(),
|
|
2525
|
+
areInvitesDisabled: z108.boolean(),
|
|
2526
|
+
isTestMode: z108.boolean(),
|
|
2527
|
+
emailDomains: z108.array(z108.string()),
|
|
2528
|
+
metadataXml: z108.string().nullish()
|
|
2448
2529
|
});
|
|
2449
|
-
var UserInvites = z107.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2450
2530
|
var isValidCIDR = (value) => {
|
|
2451
2531
|
return IPCIDR.isValidAddress(value);
|
|
2452
2532
|
};
|
|
2453
|
-
var WorkspaceIpWhitelistEntry =
|
|
2454
|
-
isEnabled:
|
|
2455
|
-
name:
|
|
2456
|
-
range:
|
|
2533
|
+
var WorkspaceIpWhitelistEntry = z109.object({
|
|
2534
|
+
isEnabled: z109.boolean(),
|
|
2535
|
+
name: z109.string(),
|
|
2536
|
+
range: z109.string().refine(isValidCIDR, {
|
|
2457
2537
|
message: "Invalid IP CIDR"
|
|
2458
2538
|
})
|
|
2459
2539
|
});
|
|
2460
|
-
var WorkspaceIpSettings =
|
|
2461
|
-
isEnabledForCloud:
|
|
2462
|
-
isEnabledForDocs:
|
|
2463
|
-
entries:
|
|
2540
|
+
var WorkspaceIpSettings = z109.object({
|
|
2541
|
+
isEnabledForCloud: z109.boolean(),
|
|
2542
|
+
isEnabledForDocs: z109.boolean(),
|
|
2543
|
+
entries: z109.array(WorkspaceIpWhitelistEntry)
|
|
2464
2544
|
});
|
|
2465
|
-
var WorkspaceProfile =
|
|
2466
|
-
name:
|
|
2467
|
-
handle:
|
|
2468
|
-
color:
|
|
2469
|
-
avatar: nullishToOptional(
|
|
2545
|
+
var WorkspaceProfile = z109.object({
|
|
2546
|
+
name: z109.string(),
|
|
2547
|
+
handle: z109.string(),
|
|
2548
|
+
color: z109.string(),
|
|
2549
|
+
avatar: nullishToOptional(z109.string()),
|
|
2470
2550
|
billingDetails: nullishToOptional(BillingDetails)
|
|
2471
2551
|
});
|
|
2472
2552
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
2473
2553
|
avatar: true
|
|
2474
2554
|
});
|
|
2475
|
-
var Workspace =
|
|
2476
|
-
id:
|
|
2555
|
+
var Workspace = z109.object({
|
|
2556
|
+
id: z109.string(),
|
|
2477
2557
|
profile: WorkspaceProfile,
|
|
2478
2558
|
subscription: Subscription,
|
|
2479
2559
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2480
2560
|
sso: nullishToOptional(SsoProvider),
|
|
2481
2561
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
2482
2562
|
});
|
|
2483
|
-
var WorkspaceWithDesignSystems =
|
|
2563
|
+
var WorkspaceWithDesignSystems = z109.object({
|
|
2484
2564
|
workspace: Workspace,
|
|
2485
|
-
designSystems:
|
|
2565
|
+
designSystems: z109.array(DesignSystem)
|
|
2486
2566
|
});
|
|
2487
|
-
var
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
sso: SsoProvider.optional(),
|
|
2491
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2492
|
-
profile: WorkspaceProfileUpdate.optional()
|
|
2567
|
+
var DesignSystemSwitcher = z110.object({
|
|
2568
|
+
isEnabled: z110.boolean(),
|
|
2569
|
+
designSystemIds: z110.array(z110.string())
|
|
2493
2570
|
});
|
|
2494
|
-
var
|
|
2571
|
+
var DesignSystem = z110.object({
|
|
2572
|
+
id: z110.string(),
|
|
2495
2573
|
workspaceId: z110.string(),
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
billingEmail: z111.string().email().optional(),
|
|
2510
|
-
handle: z111.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2511
|
-
invites: UserInvites.optional(),
|
|
2512
|
-
promoCode: z111.string().optional(),
|
|
2513
|
-
status: InternalStatusSchema.optional(),
|
|
2514
|
-
planInterval: BillingIntervalSchema.optional(),
|
|
2515
|
-
seats: z111.number().optional(),
|
|
2516
|
-
seatLimit: z111.number().optional(),
|
|
2517
|
-
card: CardSchema.optional(),
|
|
2518
|
-
sso: SsoProvider.optional(),
|
|
2519
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2520
|
-
ipWhitelist: WorkspaceIpSettings.optional()
|
|
2521
|
-
});
|
|
2522
|
-
var WorkspaceInvitation = z112.object({
|
|
2523
|
-
id: z112.string(),
|
|
2524
|
-
email: z112.string().email(),
|
|
2525
|
-
createdAt: z112.coerce.date(),
|
|
2526
|
-
resentAt: z112.coerce.date().nullish(),
|
|
2527
|
-
role: z112.nativeEnum(WorkspaceRole),
|
|
2528
|
-
workspaceId: z112.string(),
|
|
2529
|
-
invitedBy: z112.string()
|
|
2530
|
-
});
|
|
2531
|
-
var IntegrationAuthType = z113.union([z113.literal("OAuth2"), z113.literal("PAT")]);
|
|
2532
|
-
var ExternalServiceType = z113.union([
|
|
2533
|
-
z113.literal("figma"),
|
|
2534
|
-
z113.literal("github"),
|
|
2535
|
-
z113.literal("azure"),
|
|
2536
|
-
z113.literal("gitlab"),
|
|
2537
|
-
z113.literal("bitbucket")
|
|
2538
|
-
]);
|
|
2539
|
-
var IntegrationUserInfo = z113.object({
|
|
2540
|
-
id: z113.string(),
|
|
2541
|
-
handle: z113.string().optional(),
|
|
2542
|
-
avatarUrl: z113.string().optional(),
|
|
2543
|
-
email: z113.string().optional(),
|
|
2544
|
-
authType: IntegrationAuthType.optional(),
|
|
2545
|
-
customUrl: z113.string().optional()
|
|
2546
|
-
});
|
|
2547
|
-
var UserLinkedIntegrations = z113.object({
|
|
2548
|
-
figma: IntegrationUserInfo.optional(),
|
|
2549
|
-
github: IntegrationUserInfo.array().optional(),
|
|
2550
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
2551
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
2552
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
2574
|
+
name: z110.string(),
|
|
2575
|
+
description: z110.string(),
|
|
2576
|
+
docExporterId: nullishToOptional(z110.string()),
|
|
2577
|
+
docSlug: z110.string(),
|
|
2578
|
+
docUserSlug: nullishToOptional(z110.string()),
|
|
2579
|
+
docSlugDeprecated: z110.string(),
|
|
2580
|
+
isPublic: z110.boolean(),
|
|
2581
|
+
isMultibrand: z110.boolean(),
|
|
2582
|
+
docViewUrl: nullishToOptional(z110.string()),
|
|
2583
|
+
basePrefixes: z110.array(z110.string()),
|
|
2584
|
+
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2585
|
+
createdAt: z110.coerce.date(),
|
|
2586
|
+
updatedAt: z110.coerce.date()
|
|
2553
2587
|
});
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
deleteAt: z114.coerce.date()
|
|
2588
|
+
var DesignSystemWithWorkspace = z110.object({
|
|
2589
|
+
designSystem: DesignSystem,
|
|
2590
|
+
workspace: Workspace
|
|
2558
2591
|
});
|
|
2559
|
-
var
|
|
2560
|
-
|
|
2592
|
+
var DS_NAME_MIN_LENGTH = 2;
|
|
2593
|
+
var DS_NAME_MAX_LENGTH = 64;
|
|
2594
|
+
var DS_DESC_MAX_LENGTH = 64;
|
|
2595
|
+
var DesignSystemCreateInputMetadata = z111.object({
|
|
2596
|
+
name: z111.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2597
|
+
description: z111.string().max(DS_DESC_MAX_LENGTH).trim()
|
|
2561
2598
|
});
|
|
2562
|
-
var
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2599
|
+
var DesignSystemCreateInput = z111.object({
|
|
2600
|
+
meta: DesignSystemCreateInputMetadata,
|
|
2601
|
+
workspaceId: z111.string(),
|
|
2602
|
+
isPublic: z111.boolean().optional(),
|
|
2603
|
+
basePrefixes: z111.array(z111.string()).optional(),
|
|
2604
|
+
docUserSlug: z111.string().nullish().optional(),
|
|
2605
|
+
source: z111.array(z111.string()).optional()
|
|
2566
2606
|
});
|
|
2567
|
-
var
|
|
2568
|
-
|
|
2569
|
-
|
|
2607
|
+
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2608
|
+
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2609
|
+
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2610
|
+
var DesignSystemUpdateInputMetadata = z112.object({
|
|
2611
|
+
name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2612
|
+
description: z112.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2570
2613
|
});
|
|
2571
|
-
var
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2614
|
+
var DesignSystemUpdateInput = z112.object({
|
|
2615
|
+
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2616
|
+
workspaceId: z112.string().optional(),
|
|
2617
|
+
isPublic: z112.boolean().optional(),
|
|
2618
|
+
basePrefixes: z112.array(z112.string()).optional(),
|
|
2619
|
+
docUserSlug: z112.string().nullish().optional(),
|
|
2620
|
+
source: z112.array(z112.string()).optional(),
|
|
2621
|
+
name: z112.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2622
|
+
description: z112.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2623
|
+
docExporterId: z112.string().optional()
|
|
2624
|
+
});
|
|
2625
|
+
var ExporterPropertyImageValue = z113.object({
|
|
2626
|
+
asset: PageBlockAsset.optional(),
|
|
2627
|
+
assetId: z113.string().optional(),
|
|
2628
|
+
assetUrl: z113.string().optional()
|
|
2629
|
+
});
|
|
2630
|
+
var ExporterPropertyValue = z113.object({
|
|
2631
|
+
key: z113.string(),
|
|
2632
|
+
value: z113.union([
|
|
2633
|
+
z113.number(),
|
|
2634
|
+
z113.string(),
|
|
2635
|
+
z113.boolean(),
|
|
2636
|
+
ExporterPropertyImageValue,
|
|
2637
|
+
ColorTokenData,
|
|
2638
|
+
TypographyTokenData
|
|
2639
|
+
])
|
|
2576
2640
|
});
|
|
2577
|
-
var
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
});
|
|
2583
|
-
var
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
figmaUrl: z119.string().optional()
|
|
2596
|
-
});
|
|
2597
|
-
var UserProfile = z119.object({
|
|
2598
|
-
name: z119.string(),
|
|
2599
|
-
avatar: z119.string().optional(),
|
|
2600
|
-
nickname: z119.string().optional(),
|
|
2601
|
-
onboarding: UserOnboarding.optional()
|
|
2602
|
-
});
|
|
2603
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
2604
|
-
avatar: true
|
|
2605
|
-
});
|
|
2606
|
-
var UserTest = z120.object({
|
|
2607
|
-
id: z120.string(),
|
|
2608
|
-
email: z120.string()
|
|
2609
|
-
});
|
|
2610
|
-
var User = z121.object({
|
|
2611
|
-
id: z121.string(),
|
|
2612
|
-
email: z121.string(),
|
|
2613
|
-
emailVerified: z121.boolean(),
|
|
2614
|
-
createdAt: z121.coerce.date(),
|
|
2615
|
-
trialExpiresAt: z121.coerce.date().optional(),
|
|
2616
|
-
profile: UserProfile,
|
|
2617
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2618
|
-
loggedOutAt: z121.coerce.date().optional(),
|
|
2619
|
-
isProtected: z121.boolean()
|
|
2620
|
-
});
|
|
2621
|
-
var WorkspaceMembership = z122.object({
|
|
2622
|
-
id: z122.string(),
|
|
2623
|
-
userId: z122.string(),
|
|
2624
|
-
workspaceId: z122.string(),
|
|
2625
|
-
workspaceRole: z122.nativeEnum(WorkspaceRole),
|
|
2626
|
-
notificationSettings: UserNotificationSettings
|
|
2627
|
-
});
|
|
2628
|
-
var UpdateMembershipRolesInput = z122.object({
|
|
2629
|
-
members: z122.array(
|
|
2630
|
-
z122.object({
|
|
2631
|
-
userId: z122.string(),
|
|
2632
|
-
role: z122.nativeEnum(WorkspaceRole)
|
|
2633
|
-
})
|
|
2634
|
-
)
|
|
2635
|
-
});
|
|
2636
|
-
var DesignSystemSwitcher = z123.object({
|
|
2637
|
-
isEnabled: z123.boolean(),
|
|
2638
|
-
designSystemIds: z123.array(z123.string())
|
|
2639
|
-
});
|
|
2640
|
-
var DesignSystem = z123.object({
|
|
2641
|
-
id: z123.string(),
|
|
2642
|
-
workspaceId: z123.string(),
|
|
2643
|
-
name: z123.string(),
|
|
2644
|
-
description: z123.string(),
|
|
2645
|
-
docExporterId: nullishToOptional(z123.string()),
|
|
2646
|
-
docSlug: z123.string(),
|
|
2647
|
-
docUserSlug: nullishToOptional(z123.string()),
|
|
2648
|
-
docSlugDeprecated: z123.string(),
|
|
2649
|
-
isPublic: z123.boolean(),
|
|
2650
|
-
isMultibrand: z123.boolean(),
|
|
2651
|
-
docViewUrl: nullishToOptional(z123.string()),
|
|
2652
|
-
basePrefixes: z123.array(z123.string()),
|
|
2653
|
-
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2654
|
-
createdAt: z123.coerce.date(),
|
|
2655
|
-
updatedAt: z123.coerce.date()
|
|
2656
|
-
});
|
|
2657
|
-
var DesignSystemWithWorkspace = z123.object({
|
|
2658
|
-
designSystem: DesignSystem,
|
|
2659
|
-
workspace: Workspace
|
|
2660
|
-
});
|
|
2661
|
-
var DS_NAME_MIN_LENGTH = 2;
|
|
2662
|
-
var DS_NAME_MAX_LENGTH = 64;
|
|
2663
|
-
var DS_DESC_MAX_LENGTH = 64;
|
|
2664
|
-
var DesignSystemCreateInputMetadata = z124.object({
|
|
2665
|
-
name: z124.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2666
|
-
description: z124.string().max(DS_DESC_MAX_LENGTH).trim()
|
|
2667
|
-
});
|
|
2668
|
-
var DesignSystemCreateInput = z124.object({
|
|
2669
|
-
meta: DesignSystemCreateInputMetadata,
|
|
2670
|
-
workspaceId: z124.string(),
|
|
2671
|
-
isPublic: z124.boolean().optional(),
|
|
2672
|
-
basePrefixes: z124.array(z124.string()).optional(),
|
|
2673
|
-
docUserSlug: z124.string().nullish().optional(),
|
|
2674
|
-
source: z124.array(z124.string()).optional()
|
|
2675
|
-
});
|
|
2676
|
-
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2677
|
-
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2678
|
-
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2679
|
-
var DesignSystemUpdateInputMetadata = z125.object({
|
|
2680
|
-
name: z125.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2681
|
-
description: z125.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2682
|
-
});
|
|
2683
|
-
var DesignSystemUpdateInput = z125.object({
|
|
2684
|
-
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2685
|
-
workspaceId: z125.string().optional(),
|
|
2686
|
-
isPublic: z125.boolean().optional(),
|
|
2687
|
-
basePrefixes: z125.array(z125.string()).optional(),
|
|
2688
|
-
docUserSlug: z125.string().nullish().optional(),
|
|
2689
|
-
source: z125.array(z125.string()).optional(),
|
|
2690
|
-
name: z125.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2691
|
-
description: z125.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2692
|
-
docExporterId: z125.string().optional()
|
|
2693
|
-
});
|
|
2694
|
-
var ExporterPropertyImageValue = z126.object({
|
|
2695
|
-
asset: PageBlockAsset.optional(),
|
|
2696
|
-
assetId: z126.string().optional(),
|
|
2697
|
-
assetUrl: z126.string().optional()
|
|
2698
|
-
});
|
|
2699
|
-
var ExporterPropertyValue = z126.object({
|
|
2700
|
-
key: z126.string(),
|
|
2701
|
-
value: z126.union([
|
|
2702
|
-
z126.number(),
|
|
2703
|
-
z126.string(),
|
|
2704
|
-
z126.boolean(),
|
|
2705
|
-
ExporterPropertyImageValue,
|
|
2706
|
-
ColorTokenData,
|
|
2707
|
-
TypographyTokenData
|
|
2708
|
-
])
|
|
2709
|
-
});
|
|
2710
|
-
var ExporterPropertyValuesCollection = z126.object({
|
|
2711
|
-
id: z126.string(),
|
|
2712
|
-
designSystemId: z126.string(),
|
|
2713
|
-
exporterId: z126.string(),
|
|
2714
|
-
values: z126.array(ExporterPropertyValue)
|
|
2715
|
-
});
|
|
2716
|
-
var PublishedDocPage = z127.object({
|
|
2717
|
-
id: z127.string(),
|
|
2718
|
-
publishedDocId: z127.string(),
|
|
2719
|
-
pageShortPersistentId: z127.string(),
|
|
2720
|
-
pathV1: z127.string(),
|
|
2721
|
-
pathV2: z127.string(),
|
|
2722
|
-
storagePath: z127.string(),
|
|
2723
|
-
locale: z127.string().optional(),
|
|
2724
|
-
isPrivate: z127.boolean(),
|
|
2725
|
-
isHidden: z127.boolean(),
|
|
2726
|
-
createdAt: z127.coerce.date(),
|
|
2727
|
-
updatedAt: z127.coerce.date()
|
|
2641
|
+
var ExporterPropertyValuesCollection = z113.object({
|
|
2642
|
+
id: z113.string(),
|
|
2643
|
+
designSystemId: z113.string(),
|
|
2644
|
+
exporterId: z113.string(),
|
|
2645
|
+
values: z113.array(ExporterPropertyValue)
|
|
2646
|
+
});
|
|
2647
|
+
var PublishedDocPage = z114.object({
|
|
2648
|
+
id: z114.string(),
|
|
2649
|
+
publishedDocId: z114.string(),
|
|
2650
|
+
pageShortPersistentId: z114.string(),
|
|
2651
|
+
pathV1: z114.string(),
|
|
2652
|
+
pathV2: z114.string(),
|
|
2653
|
+
storagePath: z114.string(),
|
|
2654
|
+
locale: z114.string().optional(),
|
|
2655
|
+
isPrivate: z114.boolean(),
|
|
2656
|
+
isHidden: z114.boolean(),
|
|
2657
|
+
createdAt: z114.coerce.date(),
|
|
2658
|
+
updatedAt: z114.coerce.date()
|
|
2728
2659
|
});
|
|
2729
2660
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2730
|
-
var PublishedDocEnvironment =
|
|
2731
|
-
var PublishedDocsChecksums =
|
|
2732
|
-
var PublishedDocRoutingVersion =
|
|
2733
|
-
var PublishedDoc =
|
|
2734
|
-
id:
|
|
2735
|
-
designSystemVersionId:
|
|
2736
|
-
createdAt:
|
|
2737
|
-
updatedAt:
|
|
2738
|
-
lastPublishedAt:
|
|
2739
|
-
isDefault:
|
|
2740
|
-
isPublic:
|
|
2661
|
+
var PublishedDocEnvironment = z115.enum(publishedDocEnvironments);
|
|
2662
|
+
var PublishedDocsChecksums = z115.record(z115.string());
|
|
2663
|
+
var PublishedDocRoutingVersion = z115.enum(["1", "2"]);
|
|
2664
|
+
var PublishedDoc = z115.object({
|
|
2665
|
+
id: z115.string(),
|
|
2666
|
+
designSystemVersionId: z115.string(),
|
|
2667
|
+
createdAt: z115.coerce.date(),
|
|
2668
|
+
updatedAt: z115.coerce.date(),
|
|
2669
|
+
lastPublishedAt: z115.coerce.date(),
|
|
2670
|
+
isDefault: z115.boolean(),
|
|
2671
|
+
isPublic: z115.boolean(),
|
|
2741
2672
|
environment: PublishedDocEnvironment,
|
|
2742
2673
|
checksums: PublishedDocsChecksums,
|
|
2743
|
-
storagePath:
|
|
2744
|
-
wasMigrated:
|
|
2674
|
+
storagePath: z115.string(),
|
|
2675
|
+
wasMigrated: z115.boolean(),
|
|
2745
2676
|
routingVersion: PublishedDocRoutingVersion,
|
|
2746
|
-
usesLocalizations:
|
|
2747
|
-
wasPublishedWithLocalizations:
|
|
2677
|
+
usesLocalizations: z115.boolean(),
|
|
2678
|
+
wasPublishedWithLocalizations: z115.boolean()
|
|
2748
2679
|
});
|
|
2749
|
-
var DesignSystemVersion =
|
|
2750
|
-
id:
|
|
2751
|
-
version:
|
|
2752
|
-
createdAt:
|
|
2753
|
-
designSystemId:
|
|
2754
|
-
name:
|
|
2755
|
-
comment:
|
|
2756
|
-
isReadonly:
|
|
2757
|
-
changeLog:
|
|
2758
|
-
parentId:
|
|
2759
|
-
});
|
|
2760
|
-
var VersionCreationJobStatus =
|
|
2761
|
-
var VersionCreationJob =
|
|
2762
|
-
id:
|
|
2763
|
-
version:
|
|
2764
|
-
designSystemId:
|
|
2765
|
-
designSystemVersionId: nullishToOptional(
|
|
2680
|
+
var DesignSystemVersion = z116.object({
|
|
2681
|
+
id: z116.string(),
|
|
2682
|
+
version: z116.string(),
|
|
2683
|
+
createdAt: z116.date(),
|
|
2684
|
+
designSystemId: z116.string(),
|
|
2685
|
+
name: z116.string(),
|
|
2686
|
+
comment: z116.string(),
|
|
2687
|
+
isReadonly: z116.boolean(),
|
|
2688
|
+
changeLog: z116.string(),
|
|
2689
|
+
parentId: z116.string().optional()
|
|
2690
|
+
});
|
|
2691
|
+
var VersionCreationJobStatus = z116.enum(["Success", "InProgress", "Error"]);
|
|
2692
|
+
var VersionCreationJob = z116.object({
|
|
2693
|
+
id: z116.string(),
|
|
2694
|
+
version: z116.string(),
|
|
2695
|
+
designSystemId: z116.string(),
|
|
2696
|
+
designSystemVersionId: nullishToOptional(z116.string()),
|
|
2766
2697
|
status: VersionCreationJobStatus,
|
|
2767
|
-
errorMessage: nullishToOptional(
|
|
2768
|
-
});
|
|
2769
|
-
var ExportJobDocumentationContext = z130.object({
|
|
2770
|
-
isSingleVersionDocs: z130.boolean(),
|
|
2771
|
-
versionSlug: z130.string(),
|
|
2772
|
-
environment: PublishedDocEnvironment
|
|
2773
|
-
});
|
|
2774
|
-
var ExportJobContext = z130.object({
|
|
2775
|
-
apiUrl: z130.string(),
|
|
2776
|
-
accessToken: z130.string(),
|
|
2777
|
-
designSystemId: z130.string(),
|
|
2778
|
-
designSystemName: z130.string(),
|
|
2779
|
-
exporterId: z130.string(),
|
|
2780
|
-
versionId: z130.string(),
|
|
2781
|
-
brandId: z130.string().optional(),
|
|
2782
|
-
themeId: z130.string().optional(),
|
|
2783
|
-
exporterName: z130.string(),
|
|
2784
|
-
exporterPackageUrl: z130.string(),
|
|
2785
|
-
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
2786
|
-
documentation: ExportJobDocumentationContext.optional()
|
|
2787
|
-
});
|
|
2788
|
-
var ExporterFunctionPayload = z131.object({
|
|
2789
|
-
exportJobId: z131.string(),
|
|
2790
|
-
exportContextId: z131.string(),
|
|
2791
|
-
designSystemId: z131.string(),
|
|
2792
|
-
workspaceId: z131.string()
|
|
2698
|
+
errorMessage: nullishToOptional(z116.string())
|
|
2793
2699
|
});
|
|
2794
2700
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2795
2701
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
2796
|
-
var ExporterDestinationDocs =
|
|
2702
|
+
var ExporterDestinationDocs = z117.object({
|
|
2797
2703
|
environment: PublishedDocEnvironment
|
|
2798
2704
|
});
|
|
2799
|
-
var ExporterDestinationS3 =
|
|
2800
|
-
var ExporterDestinationGithub =
|
|
2801
|
-
credentialId:
|
|
2705
|
+
var ExporterDestinationS3 = z117.object({});
|
|
2706
|
+
var ExporterDestinationGithub = z117.object({
|
|
2707
|
+
credentialId: z117.string().optional(),
|
|
2802
2708
|
// Repository
|
|
2803
|
-
url:
|
|
2709
|
+
url: z117.string(),
|
|
2804
2710
|
// Location
|
|
2805
|
-
branch:
|
|
2806
|
-
relativePath: nullishToOptional(
|
|
2711
|
+
branch: z117.string(),
|
|
2712
|
+
relativePath: nullishToOptional(z117.string()),
|
|
2807
2713
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2808
|
-
connectionId: nullishToOptional(
|
|
2809
|
-
userId: nullishToOptional(
|
|
2714
|
+
connectionId: nullishToOptional(z117.string()),
|
|
2715
|
+
userId: nullishToOptional(z117.number())
|
|
2810
2716
|
});
|
|
2811
|
-
var ExporterDestinationAzure =
|
|
2812
|
-
credentialId:
|
|
2717
|
+
var ExporterDestinationAzure = z117.object({
|
|
2718
|
+
credentialId: z117.string().optional(),
|
|
2813
2719
|
// Repository
|
|
2814
|
-
organizationId:
|
|
2815
|
-
projectId:
|
|
2816
|
-
repositoryId:
|
|
2720
|
+
organizationId: z117.string(),
|
|
2721
|
+
projectId: z117.string(),
|
|
2722
|
+
repositoryId: z117.string(),
|
|
2817
2723
|
// Location
|
|
2818
|
-
branch:
|
|
2819
|
-
relativePath: nullishToOptional(
|
|
2724
|
+
branch: z117.string(),
|
|
2725
|
+
relativePath: nullishToOptional(z117.string()),
|
|
2820
2726
|
// Maybe not needed
|
|
2821
|
-
url: nullishToOptional(
|
|
2727
|
+
url: nullishToOptional(z117.string()),
|
|
2822
2728
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2823
|
-
connectionId: nullishToOptional(
|
|
2824
|
-
userId: nullishToOptional(
|
|
2729
|
+
connectionId: nullishToOptional(z117.string()),
|
|
2730
|
+
userId: nullishToOptional(z117.number())
|
|
2825
2731
|
});
|
|
2826
|
-
var ExporterDestinationGitlab =
|
|
2827
|
-
credentialId:
|
|
2732
|
+
var ExporterDestinationGitlab = z117.object({
|
|
2733
|
+
credentialId: z117.string().optional(),
|
|
2828
2734
|
// Repository
|
|
2829
|
-
projectId:
|
|
2735
|
+
projectId: z117.string(),
|
|
2830
2736
|
// Location
|
|
2831
|
-
branch:
|
|
2832
|
-
relativePath: nullishToOptional(
|
|
2737
|
+
branch: z117.string(),
|
|
2738
|
+
relativePath: nullishToOptional(z117.string()),
|
|
2833
2739
|
// Maybe not needed
|
|
2834
|
-
url: nullishToOptional(
|
|
2740
|
+
url: nullishToOptional(z117.string()),
|
|
2835
2741
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2836
|
-
connectionId: nullishToOptional(
|
|
2837
|
-
userId: nullishToOptional(
|
|
2742
|
+
connectionId: nullishToOptional(z117.string()),
|
|
2743
|
+
userId: nullishToOptional(z117.number())
|
|
2838
2744
|
});
|
|
2839
|
-
var ExporterDestinationBitbucket =
|
|
2840
|
-
credentialId:
|
|
2745
|
+
var ExporterDestinationBitbucket = z117.object({
|
|
2746
|
+
credentialId: z117.string().optional(),
|
|
2841
2747
|
// Repository
|
|
2842
|
-
workspaceSlug:
|
|
2843
|
-
projectKey:
|
|
2844
|
-
repoSlug:
|
|
2748
|
+
workspaceSlug: z117.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2749
|
+
projectKey: z117.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2750
|
+
repoSlug: z117.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2845
2751
|
// Location
|
|
2846
|
-
branch:
|
|
2847
|
-
relativePath: nullishToOptional(
|
|
2752
|
+
branch: z117.string(),
|
|
2753
|
+
relativePath: nullishToOptional(z117.string()),
|
|
2848
2754
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2849
|
-
connectionId: nullishToOptional(
|
|
2850
|
-
userId: nullishToOptional(
|
|
2755
|
+
connectionId: nullishToOptional(z117.string()),
|
|
2756
|
+
userId: nullishToOptional(z117.number())
|
|
2851
2757
|
});
|
|
2852
|
-
var ExportDestinationsMap =
|
|
2853
|
-
webhookUrl:
|
|
2758
|
+
var ExportDestinationsMap = z117.object({
|
|
2759
|
+
webhookUrl: z117.string().optional(),
|
|
2854
2760
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
2855
2761
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2856
2762
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2858,236 +2764,69 @@ var ExportDestinationsMap = z132.object({
|
|
|
2858
2764
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2859
2765
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2860
2766
|
});
|
|
2861
|
-
var
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
"bitbucket"
|
|
2869
|
-
]);
|
|
2870
|
-
var ExportJobStatus = z133.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2871
|
-
var ExportJobLogEntryType = z133.enum(["success", "info", "warning", "error", "user"]);
|
|
2872
|
-
var ExportJobLogEntry = z133.object({
|
|
2873
|
-
id: z133.string().optional(),
|
|
2874
|
-
time: z133.coerce.date(),
|
|
2875
|
-
type: ExportJobLogEntryType,
|
|
2876
|
-
message: z133.string()
|
|
2877
|
-
});
|
|
2878
|
-
var ExportJobPullRequestDestinationResult = z133.object({
|
|
2879
|
-
pullRequestUrl: z133.string()
|
|
2880
|
-
});
|
|
2881
|
-
var ExportJobS3DestinationResult = z133.object({
|
|
2882
|
-
bucket: z133.string(),
|
|
2883
|
-
urlPrefix: z133.string().optional(),
|
|
2884
|
-
path: z133.string(),
|
|
2885
|
-
files: z133.array(z133.string()),
|
|
2886
|
-
url: nullishToOptional(z133.string()),
|
|
2887
|
-
urls: nullishToOptional(z133.string().array())
|
|
2888
|
-
});
|
|
2889
|
-
var ExportJobDocsDestinationResult = z133.object({
|
|
2890
|
-
url: z133.string()
|
|
2891
|
-
});
|
|
2892
|
-
var ExportJobResult = z133.object({
|
|
2893
|
-
error: z133.string().optional(),
|
|
2894
|
-
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
2895
|
-
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2896
|
-
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2897
|
-
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2898
|
-
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2899
|
-
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
2900
|
-
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
2901
|
-
});
|
|
2902
|
-
var ExportJob = z133.object({
|
|
2903
|
-
id: z133.string(),
|
|
2904
|
-
createdAt: z133.coerce.date(),
|
|
2905
|
-
finishedAt: z133.coerce.date().optional(),
|
|
2906
|
-
designSystemId: z133.string(),
|
|
2907
|
-
designSystemVersionId: z133.string(),
|
|
2908
|
-
workspaceId: z133.string(),
|
|
2909
|
-
scheduleId: z133.string().nullish(),
|
|
2910
|
-
exporterId: z133.string(),
|
|
2911
|
-
brandId: z133.string().optional(),
|
|
2912
|
-
themeId: z133.string().optional(),
|
|
2913
|
-
estimatedExecutionTime: z133.number().optional(),
|
|
2914
|
-
status: ExportJobStatus,
|
|
2915
|
-
result: ExportJobResult.optional(),
|
|
2916
|
-
createdByUserId: z133.string().optional(),
|
|
2917
|
-
// Destinations
|
|
2918
|
-
...ExportDestinationsMap.shape
|
|
2919
|
-
});
|
|
2920
|
-
var ExportJobFindByFilter = ExportJob.pick({
|
|
2921
|
-
exporterId: true,
|
|
2922
|
-
designSystemVersionId: true,
|
|
2923
|
-
createdByUserId: true,
|
|
2924
|
-
status: true,
|
|
2925
|
-
scheduleId: true,
|
|
2926
|
-
designSystemId: true,
|
|
2927
|
-
themeId: true,
|
|
2928
|
-
brandId: true
|
|
2929
|
-
}).extend({
|
|
2930
|
-
destinations: z133.array(ExportJobDestinationType),
|
|
2931
|
-
docsEnvironment: PublishedDocEnvironment
|
|
2932
|
-
}).partial();
|
|
2933
|
-
var ExporterWorkspaceMembershipRole = z134.enum(["Owner", "OwnerArchived", "User"]);
|
|
2934
|
-
var ExporterWorkspaceMembership = z135.object({
|
|
2935
|
-
id: z135.string(),
|
|
2936
|
-
workspaceId: z135.string(),
|
|
2937
|
-
exporterId: z135.string(),
|
|
2938
|
-
role: ExporterWorkspaceMembershipRole
|
|
2939
|
-
});
|
|
2940
|
-
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
2941
|
-
GitProviderNames2["Azure"] = "azure";
|
|
2942
|
-
GitProviderNames2["Github"] = "github";
|
|
2943
|
-
GitProviderNames2["Gitlab"] = "gitlab";
|
|
2944
|
-
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2945
|
-
return GitProviderNames2;
|
|
2946
|
-
})(GitProviderNames || {});
|
|
2947
|
-
var GitProvider = z136.nativeEnum(GitProviderNames);
|
|
2948
|
-
var PulsarPropertyType = z137.enum([
|
|
2949
|
-
"string",
|
|
2950
|
-
"number",
|
|
2951
|
-
"boolean",
|
|
2952
|
-
"image",
|
|
2953
|
-
"enum",
|
|
2954
|
-
"color",
|
|
2955
|
-
"typography",
|
|
2956
|
-
"component",
|
|
2957
|
-
"componentProperties",
|
|
2958
|
-
"tokenProperties",
|
|
2959
|
-
"tokenType"
|
|
2960
|
-
]);
|
|
2961
|
-
var PulsarBaseProperty = z137.object({
|
|
2962
|
-
label: z137.string(),
|
|
2963
|
-
key: z137.string(),
|
|
2964
|
-
description: z137.string().nullish(),
|
|
2965
|
-
type: PulsarPropertyType,
|
|
2966
|
-
values: z137.array(z137.string()).nullish(),
|
|
2967
|
-
default: z137.union([z137.string(), z137.boolean(), z137.number()]).nullish(),
|
|
2968
|
-
// PulsarPropertyValueType //is optional?
|
|
2969
|
-
inputType: z137.enum(["code", "plain"]).optional(),
|
|
2970
|
-
//is optional?
|
|
2971
|
-
isMultiline: z137.boolean().nullish()
|
|
2972
|
-
});
|
|
2973
|
-
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2974
|
-
category: z137.string()
|
|
2975
|
-
});
|
|
2976
|
-
var PulsarContributionVariant = z137.object({
|
|
2977
|
-
key: z137.string(),
|
|
2978
|
-
name: z137.string(),
|
|
2979
|
-
isDefault: nullishToOptional(z137.boolean()),
|
|
2980
|
-
description: nullishToOptional(z137.string()),
|
|
2981
|
-
thumbnailURL: nullishToOptional(z137.string())
|
|
2982
|
-
});
|
|
2983
|
-
var PulsarCustomBlock = z137.object({
|
|
2984
|
-
title: nullishToOptional(z137.string()),
|
|
2985
|
-
key: z137.string(),
|
|
2986
|
-
category: nullishToOptional(z137.string()),
|
|
2987
|
-
description: nullishToOptional(z137.string()),
|
|
2988
|
-
iconURL: nullishToOptional(z137.string()),
|
|
2989
|
-
mode: nullishToOptional(z137.enum(["array", "block"])),
|
|
2990
|
-
properties: nullishToOptional(z137.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
2991
|
-
});
|
|
2992
|
-
var ExporterType = z138.enum(["code", "documentation"]);
|
|
2993
|
-
var ExporterSource = z138.enum(["git", "upload"]);
|
|
2994
|
-
var ExporterTag = z138.string();
|
|
2995
|
-
var ExporterPulsarDetails = z138.object({
|
|
2996
|
-
description: z138.string(),
|
|
2997
|
-
version: z138.string(),
|
|
2998
|
-
routingVersion: nullishToOptional(z138.string()),
|
|
2999
|
-
author: nullishToOptional(z138.string()),
|
|
3000
|
-
organization: nullishToOptional(z138.string()),
|
|
3001
|
-
homepage: nullishToOptional(z138.string()),
|
|
3002
|
-
readme: nullishToOptional(z138.string()),
|
|
3003
|
-
tags: nullishToOptional(z138.array(ExporterTag)).default([]),
|
|
3004
|
-
packageId: nullishToOptional(z138.string().max(255)),
|
|
3005
|
-
iconURL: nullishToOptional(z138.string()),
|
|
3006
|
-
configurationProperties: nullishToOptional(z138.array(PulsarContributionConfigurationProperty)).default([]),
|
|
3007
|
-
customBlocks: nullishToOptional(z138.array(PulsarCustomBlock)).default([]),
|
|
3008
|
-
blockVariants: nullishToOptional(z138.record(z138.string(), z138.array(PulsarContributionVariant))).default({}),
|
|
3009
|
-
usesBrands: nullishToOptional(z138.boolean()).default(false),
|
|
3010
|
-
usesThemes: nullishToOptional(z138.boolean()).default(false)
|
|
3011
|
-
});
|
|
3012
|
-
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
3013
|
-
source: ExporterSource,
|
|
3014
|
-
gitProvider: nullishToOptional(GitProvider),
|
|
3015
|
-
gitUrl: nullishToOptional(z138.string()),
|
|
3016
|
-
gitBranch: nullishToOptional(z138.string()),
|
|
3017
|
-
gitDirectory: nullishToOptional(z138.string())
|
|
3018
|
-
});
|
|
3019
|
-
var Exporter = z138.object({
|
|
3020
|
-
id: z138.string(),
|
|
3021
|
-
createdAt: z138.coerce.date(),
|
|
3022
|
-
name: z138.string(),
|
|
3023
|
-
isPrivate: z138.boolean(),
|
|
3024
|
-
details: ExporterDetails,
|
|
3025
|
-
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
3026
|
-
storagePath: nullishToOptional(z138.string()).default("")
|
|
3027
|
-
});
|
|
3028
|
-
var PipelineEventType = z139.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3029
|
-
var PipelineDestinationGitType = z139.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3030
|
-
var PipelineDestinationExtraType = z139.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3031
|
-
var PipelineDestinationType = z139.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3032
|
-
var Pipeline = z139.object({
|
|
3033
|
-
id: z139.string(),
|
|
3034
|
-
name: z139.string(),
|
|
2767
|
+
var PipelineEventType = z118.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
2768
|
+
var PipelineDestinationGitType = z118.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2769
|
+
var PipelineDestinationExtraType = z118.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
2770
|
+
var PipelineDestinationType = z118.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
2771
|
+
var Pipeline = z118.object({
|
|
2772
|
+
id: z118.string(),
|
|
2773
|
+
name: z118.string(),
|
|
3035
2774
|
eventType: PipelineEventType,
|
|
3036
|
-
isEnabled:
|
|
3037
|
-
workspaceId:
|
|
3038
|
-
designSystemId:
|
|
3039
|
-
exporterId:
|
|
3040
|
-
brandPersistentId:
|
|
3041
|
-
themePersistentId:
|
|
2775
|
+
isEnabled: z118.boolean(),
|
|
2776
|
+
workspaceId: z118.string(),
|
|
2777
|
+
designSystemId: z118.string(),
|
|
2778
|
+
exporterId: z118.string(),
|
|
2779
|
+
brandPersistentId: z118.string().optional(),
|
|
2780
|
+
themePersistentId: z118.string().optional(),
|
|
3042
2781
|
// Destinations
|
|
3043
2782
|
...ExportDestinationsMap.shape
|
|
3044
2783
|
});
|
|
3045
|
-
var ExportJobDump =
|
|
3046
|
-
id:
|
|
3047
|
-
createdAt:
|
|
3048
|
-
finishedAt:
|
|
3049
|
-
exportArtefacts:
|
|
2784
|
+
var ExportJobDump = z119.object({
|
|
2785
|
+
id: z119.string(),
|
|
2786
|
+
createdAt: z119.coerce.date(),
|
|
2787
|
+
finishedAt: z119.coerce.date(),
|
|
2788
|
+
exportArtefacts: z119.string()
|
|
3050
2789
|
});
|
|
3051
|
-
var CodeIntegrationDump =
|
|
2790
|
+
var CodeIntegrationDump = z119.object({
|
|
3052
2791
|
exporters: Exporter.array(),
|
|
3053
2792
|
pipelines: Pipeline.array(),
|
|
3054
2793
|
exportJobs: ExportJobDump.array()
|
|
3055
2794
|
});
|
|
3056
2795
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3057
|
-
designSystemVersionId:
|
|
3058
|
-
liveblocksId:
|
|
2796
|
+
designSystemVersionId: z120.string(),
|
|
2797
|
+
liveblocksId: z120.string()
|
|
3059
2798
|
});
|
|
3060
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3061
|
-
routingVersion:
|
|
2799
|
+
var DesignSystemVersionRoomInternalSettings = z120.object({
|
|
2800
|
+
routingVersion: z120.string()
|
|
3062
2801
|
});
|
|
3063
|
-
var DesignSystemVersionRoomInitialState =
|
|
3064
|
-
pages:
|
|
3065
|
-
groups:
|
|
2802
|
+
var DesignSystemVersionRoomInitialState = z120.object({
|
|
2803
|
+
pages: z120.array(DocumentationPageV2),
|
|
2804
|
+
groups: z120.array(ElementGroup),
|
|
3066
2805
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3067
2806
|
});
|
|
3068
|
-
var DesignSystemVersionRoomUpdate =
|
|
3069
|
-
pages:
|
|
3070
|
-
groups:
|
|
3071
|
-
deletedPageIds:
|
|
3072
|
-
deletedGroupIds:
|
|
2807
|
+
var DesignSystemVersionRoomUpdate = z120.object({
|
|
2808
|
+
pages: z120.array(DocumentationPageV2),
|
|
2809
|
+
groups: z120.array(ElementGroup),
|
|
2810
|
+
deletedPageIds: z120.array(z120.string()),
|
|
2811
|
+
deletedGroupIds: z120.array(z120.string())
|
|
3073
2812
|
});
|
|
3074
2813
|
var DocumentationPageRoom = Entity.extend({
|
|
3075
|
-
designSystemVersionId:
|
|
3076
|
-
documentationPageId:
|
|
3077
|
-
liveblocksId:
|
|
3078
|
-
isDirty:
|
|
2814
|
+
designSystemVersionId: z121.string(),
|
|
2815
|
+
documentationPageId: z121.string(),
|
|
2816
|
+
liveblocksId: z121.string(),
|
|
2817
|
+
isDirty: z121.boolean()
|
|
3079
2818
|
});
|
|
3080
|
-
var DocumentationPageRoomState =
|
|
3081
|
-
pageItems:
|
|
2819
|
+
var DocumentationPageRoomState = z121.object({
|
|
2820
|
+
pageItems: z121.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3082
2821
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3083
2822
|
});
|
|
3084
|
-
var DocumentationPageRoomRoomUpdate =
|
|
2823
|
+
var DocumentationPageRoomRoomUpdate = z121.object({
|
|
3085
2824
|
page: DocumentationPageV2,
|
|
3086
2825
|
pageParent: ElementGroup
|
|
3087
2826
|
});
|
|
3088
2827
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3089
|
-
pageItems:
|
|
3090
|
-
blockDefinitions:
|
|
2828
|
+
pageItems: z121.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2829
|
+
blockDefinitions: z121.array(PageBlockDefinition)
|
|
3091
2830
|
});
|
|
3092
2831
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3093
2832
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
@@ -3095,28 +2834,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
3095
2834
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3096
2835
|
return RoomTypeEnum2;
|
|
3097
2836
|
})(RoomTypeEnum || {});
|
|
3098
|
-
var RoomTypeSchema =
|
|
2837
|
+
var RoomTypeSchema = z122.nativeEnum(RoomTypeEnum);
|
|
3099
2838
|
var RoomType = RoomTypeSchema.enum;
|
|
3100
2839
|
var WorkspaceRoom = Entity.extend({
|
|
3101
|
-
workspaceId:
|
|
3102
|
-
liveblocksId:
|
|
2840
|
+
workspaceId: z123.string(),
|
|
2841
|
+
liveblocksId: z123.string()
|
|
3103
2842
|
});
|
|
3104
|
-
var PublishedDocsDump =
|
|
2843
|
+
var PublishedDocsDump = z124.object({
|
|
3105
2844
|
documentation: PublishedDoc,
|
|
3106
2845
|
pages: PublishedDocPage.array()
|
|
3107
2846
|
});
|
|
3108
|
-
var DocumentationThreadDump =
|
|
2847
|
+
var DocumentationThreadDump = z125.object({
|
|
3109
2848
|
thread: DocumentationCommentThread,
|
|
3110
2849
|
comments: DocumentationComment.array()
|
|
3111
2850
|
});
|
|
3112
|
-
var DocumentationPageRoomDump =
|
|
2851
|
+
var DocumentationPageRoomDump = z125.object({
|
|
3113
2852
|
room: DocumentationPageRoom,
|
|
3114
2853
|
threads: DocumentationThreadDump.array()
|
|
3115
2854
|
});
|
|
3116
|
-
var DesignSystemVersionMultiplayerDump =
|
|
2855
|
+
var DesignSystemVersionMultiplayerDump = z125.object({
|
|
3117
2856
|
documentationPages: DocumentationPageRoomDump.array()
|
|
3118
2857
|
});
|
|
3119
|
-
var DesignSystemVersionDump =
|
|
2858
|
+
var DesignSystemVersionDump = z125.object({
|
|
3120
2859
|
version: DesignSystemVersion,
|
|
3121
2860
|
brands: Brand.array(),
|
|
3122
2861
|
elements: DesignElement.array(),
|
|
@@ -3128,69 +2867,18 @@ var DesignSystemVersionDump = z146.object({
|
|
|
3128
2867
|
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
3129
2868
|
publishedDocumentations: PublishedDocsDump.array()
|
|
3130
2869
|
});
|
|
3131
|
-
var DesignSystemDump =
|
|
2870
|
+
var DesignSystemDump = z126.object({
|
|
3132
2871
|
designSystem: DesignSystem,
|
|
3133
2872
|
dataSources: DataSource.array(),
|
|
3134
2873
|
versions: DesignSystemVersionDump.array(),
|
|
3135
2874
|
customDomain: CustomDomain.optional(),
|
|
3136
2875
|
files: ResolvedAsset.array()
|
|
3137
2876
|
});
|
|
3138
|
-
var
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3144
|
-
return OAuthProviderNames2;
|
|
3145
|
-
})(OAuthProviderNames || {});
|
|
3146
|
-
var OAuthProviderSchema = z148.nativeEnum(OAuthProviderNames);
|
|
3147
|
-
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3148
|
-
var ExternalOAuthRequest = z149.object({
|
|
3149
|
-
id: z149.string(),
|
|
3150
|
-
provider: OAuthProviderSchema,
|
|
3151
|
-
userId: z149.string(),
|
|
3152
|
-
state: z149.string(),
|
|
3153
|
-
createdAt: z149.coerce.date()
|
|
3154
|
-
});
|
|
3155
|
-
var GitObjectsQuery = z150.object({
|
|
3156
|
-
organization: z150.string().optional(),
|
|
3157
|
-
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3158
|
-
project: z150.string().optional(),
|
|
3159
|
-
// Only for Bitbucket and Azure
|
|
3160
|
-
repository: z150.string().optional(),
|
|
3161
|
-
// For all providers. For Gitlab, it's called "project".
|
|
3162
|
-
branch: z150.string().optional(),
|
|
3163
|
-
// For all providers.
|
|
3164
|
-
user: z150.string().optional()
|
|
3165
|
-
// Gitlab user
|
|
3166
|
-
});
|
|
3167
|
-
var GitOrganization = z150.object({
|
|
3168
|
-
id: z150.string(),
|
|
3169
|
-
name: z150.string(),
|
|
3170
|
-
url: z150.string(),
|
|
3171
|
-
slug: z150.string()
|
|
3172
|
-
});
|
|
3173
|
-
var GitProject = z150.object({
|
|
3174
|
-
id: z150.string(),
|
|
3175
|
-
name: z150.string(),
|
|
3176
|
-
url: z150.string(),
|
|
3177
|
-
slug: z150.string()
|
|
3178
|
-
});
|
|
3179
|
-
var GitRepository = z150.object({
|
|
3180
|
-
id: z150.string(),
|
|
3181
|
-
name: z150.string(),
|
|
3182
|
-
url: z150.string(),
|
|
3183
|
-
slug: z150.string(),
|
|
3184
|
-
/**
|
|
3185
|
-
* Can be undefined when:
|
|
3186
|
-
* - there are no branches in the repository yet
|
|
3187
|
-
* - Git provider doesn't expose this information on a repository via their API
|
|
3188
|
-
*/
|
|
3189
|
-
defaultBranch: z150.string().optional()
|
|
3190
|
-
});
|
|
3191
|
-
var GitBranch = z150.object({
|
|
3192
|
-
name: z150.string(),
|
|
3193
|
-
lastCommitId: z150.string()
|
|
2877
|
+
var UserMinified = z127.object({
|
|
2878
|
+
id: z127.string(),
|
|
2879
|
+
name: z127.string(),
|
|
2880
|
+
email: z127.string(),
|
|
2881
|
+
avatar: z127.string().optional()
|
|
3194
2882
|
});
|
|
3195
2883
|
var SupernovaException = class _SupernovaException extends Error {
|
|
3196
2884
|
//
|
|
@@ -3299,25 +2987,25 @@ function groupBy(items, keyFn) {
|
|
|
3299
2987
|
}
|
|
3300
2988
|
return result;
|
|
3301
2989
|
}
|
|
3302
|
-
var ContentLoadInstruction =
|
|
3303
|
-
from:
|
|
3304
|
-
to:
|
|
3305
|
-
authorizationHeaderKvsId:
|
|
3306
|
-
timeout:
|
|
2990
|
+
var ContentLoadInstruction = z128.object({
|
|
2991
|
+
from: z128.string(),
|
|
2992
|
+
to: z128.string(),
|
|
2993
|
+
authorizationHeaderKvsId: z128.string().optional(),
|
|
2994
|
+
timeout: z128.number().optional()
|
|
3307
2995
|
});
|
|
3308
|
-
var ContentLoaderPayload =
|
|
3309
|
-
type:
|
|
2996
|
+
var ContentLoaderPayload = z128.object({
|
|
2997
|
+
type: z128.literal("Single"),
|
|
3310
2998
|
instruction: ContentLoadInstruction
|
|
3311
2999
|
}).or(
|
|
3312
|
-
|
|
3313
|
-
type:
|
|
3314
|
-
loadingChunkSize:
|
|
3315
|
-
instructions:
|
|
3000
|
+
z128.object({
|
|
3001
|
+
type: z128.literal("Multiple"),
|
|
3002
|
+
loadingChunkSize: z128.number().optional(),
|
|
3003
|
+
instructions: z128.array(ContentLoadInstruction)
|
|
3316
3004
|
})
|
|
3317
3005
|
).or(
|
|
3318
|
-
|
|
3319
|
-
type:
|
|
3320
|
-
location:
|
|
3006
|
+
z128.object({
|
|
3007
|
+
type: z128.literal("S3"),
|
|
3008
|
+
location: z128.string()
|
|
3321
3009
|
})
|
|
3322
3010
|
);
|
|
3323
3011
|
function slugify(str, options) {
|
|
@@ -3944,43 +3632,44 @@ var RESERVED_SLUGS = [
|
|
|
3944
3632
|
"super-nova"
|
|
3945
3633
|
];
|
|
3946
3634
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3947
|
-
var
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
var
|
|
3956
|
-
var
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3635
|
+
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3636
|
+
var IntegrationDesignSystem = z129.object({
|
|
3637
|
+
designSystemId: z129.string(),
|
|
3638
|
+
brandId: z129.string(),
|
|
3639
|
+
title: z129.string().optional(),
|
|
3640
|
+
userId: z129.string().optional(),
|
|
3641
|
+
date: z129.coerce.date().optional()
|
|
3642
|
+
});
|
|
3643
|
+
var IntegrationCredentialsType = z129.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
3644
|
+
var IntegrationCredentialsState = z129.enum(["Active", "Inactive"]);
|
|
3645
|
+
var IntegrationCredentialsProfile = z129.object({
|
|
3646
|
+
id: nullishToOptional(z129.string()),
|
|
3647
|
+
email: nullishToOptional(z129.string()),
|
|
3648
|
+
handle: nullishToOptional(z129.string()),
|
|
3649
|
+
type: nullishToOptional(z129.string()),
|
|
3650
|
+
avatarUrl: nullishToOptional(z129.string()),
|
|
3651
|
+
organization: nullishToOptional(z129.string()),
|
|
3652
|
+
collection: nullishToOptional(z129.string())
|
|
3653
|
+
});
|
|
3654
|
+
var IntegrationCredentials = z129.object({
|
|
3655
|
+
id: z129.string(),
|
|
3967
3656
|
type: IntegrationCredentialsType,
|
|
3968
|
-
integrationId:
|
|
3969
|
-
accessToken:
|
|
3970
|
-
userId:
|
|
3971
|
-
createdAt:
|
|
3972
|
-
refreshToken:
|
|
3973
|
-
tokenName:
|
|
3974
|
-
expiresAt:
|
|
3975
|
-
refreshedAt:
|
|
3976
|
-
username:
|
|
3977
|
-
appInstallationId:
|
|
3657
|
+
integrationId: z129.string(),
|
|
3658
|
+
accessToken: z129.string(),
|
|
3659
|
+
userId: z129.string(),
|
|
3660
|
+
createdAt: z129.coerce.date(),
|
|
3661
|
+
refreshToken: z129.string().optional(),
|
|
3662
|
+
tokenName: z129.string().optional(),
|
|
3663
|
+
expiresAt: z129.coerce.date().optional(),
|
|
3664
|
+
refreshedAt: z129.coerce.date().optional(),
|
|
3665
|
+
username: z129.string().optional(),
|
|
3666
|
+
appInstallationId: z129.string().optional(),
|
|
3978
3667
|
profile: IntegrationCredentialsProfile.optional(),
|
|
3979
|
-
customUrl:
|
|
3668
|
+
customUrl: z129.string().optional(),
|
|
3980
3669
|
state: IntegrationCredentialsState,
|
|
3981
3670
|
user: UserMinified.optional()
|
|
3982
3671
|
});
|
|
3983
|
-
var ExtendedIntegrationType =
|
|
3672
|
+
var ExtendedIntegrationType = z129.enum([
|
|
3984
3673
|
"Figma",
|
|
3985
3674
|
"Github",
|
|
3986
3675
|
"Gitlab",
|
|
@@ -3991,26 +3680,26 @@ var ExtendedIntegrationType = z152.enum([
|
|
|
3991
3680
|
]);
|
|
3992
3681
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
3993
3682
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
3994
|
-
var Integration =
|
|
3995
|
-
id:
|
|
3996
|
-
workspaceId:
|
|
3683
|
+
var Integration = z129.object({
|
|
3684
|
+
id: z129.string(),
|
|
3685
|
+
workspaceId: z129.string(),
|
|
3997
3686
|
type: IntegrationType,
|
|
3998
|
-
createdAt:
|
|
3999
|
-
integrationCredentials:
|
|
4000
|
-
});
|
|
4001
|
-
var IntegrationToken =
|
|
4002
|
-
access_token:
|
|
4003
|
-
refresh_token:
|
|
4004
|
-
expires_in:
|
|
4005
|
-
token_type:
|
|
4006
|
-
token_name:
|
|
4007
|
-
token_azure_organization_name:
|
|
3687
|
+
createdAt: z129.coerce.date(),
|
|
3688
|
+
integrationCredentials: z129.array(IntegrationCredentials).optional()
|
|
3689
|
+
});
|
|
3690
|
+
var IntegrationToken = z129.object({
|
|
3691
|
+
access_token: z129.string(),
|
|
3692
|
+
refresh_token: z129.string().optional(),
|
|
3693
|
+
expires_in: z129.union([z129.number().optional(), z129.string().optional()]),
|
|
3694
|
+
token_type: z129.string().optional(),
|
|
3695
|
+
token_name: z129.string().optional(),
|
|
3696
|
+
token_azure_organization_name: z129.string().optional(),
|
|
4008
3697
|
// Azure Cloud PAT only
|
|
4009
|
-
token_azure_collection_name:
|
|
3698
|
+
token_azure_collection_name: z129.string().optional(),
|
|
4010
3699
|
// Azure Server PAT only
|
|
4011
|
-
token_bitbucket_username:
|
|
3700
|
+
token_bitbucket_username: z129.string().optional(),
|
|
4012
3701
|
// Bitbucket only
|
|
4013
|
-
custom_url:
|
|
3702
|
+
custom_url: z129.string().optional().transform((value) => {
|
|
4014
3703
|
if (!value?.trim())
|
|
4015
3704
|
return void 0;
|
|
4016
3705
|
return formatCustomUrl(value);
|
|
@@ -4046,83 +3735,394 @@ function formatCustomUrl(url) {
|
|
|
4046
3735
|
}
|
|
4047
3736
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4048
3737
|
}
|
|
4049
|
-
var
|
|
4050
|
-
id: z153.string(),
|
|
4051
|
-
provider: OAuthProviderSchema,
|
|
4052
|
-
scope: z153.string(),
|
|
4053
|
-
userId: z153.string(),
|
|
4054
|
-
accessToken: z153.string(),
|
|
4055
|
-
refreshToken: z153.string(),
|
|
4056
|
-
expiresAt: z153.coerce.date(),
|
|
4057
|
-
externalUserId: z153.string().nullish()
|
|
4058
|
-
});
|
|
4059
|
-
var WorkspaceOAuthRequestSchema = z154.object({
|
|
4060
|
-
id: z154.string(),
|
|
4061
|
-
workspaceId: z154.string(),
|
|
4062
|
-
provider: OAuthProviderSchema,
|
|
4063
|
-
userId: z154.string(),
|
|
4064
|
-
createdAt: z154.coerce.date()
|
|
4065
|
-
});
|
|
4066
|
-
var WorkspaceDump = z155.object({
|
|
3738
|
+
var WorkspaceDump = z130.object({
|
|
4067
3739
|
workspace: Workspace,
|
|
4068
3740
|
designSystems: DesignSystemDump.array(),
|
|
4069
3741
|
codeIntegration: CodeIntegrationDump,
|
|
4070
3742
|
integrations: Integration.array()
|
|
4071
3743
|
});
|
|
4072
|
-
var
|
|
4073
|
-
|
|
4074
|
-
|
|
3744
|
+
var IntegrationAuthType = z131.union([z131.literal("OAuth2"), z131.literal("PAT")]);
|
|
3745
|
+
var ExternalServiceType = z131.union([
|
|
3746
|
+
z131.literal("figma"),
|
|
3747
|
+
z131.literal("github"),
|
|
3748
|
+
z131.literal("azure"),
|
|
3749
|
+
z131.literal("gitlab"),
|
|
3750
|
+
z131.literal("bitbucket")
|
|
3751
|
+
]);
|
|
3752
|
+
var IntegrationUserInfo = z131.object({
|
|
3753
|
+
id: z131.string(),
|
|
3754
|
+
handle: z131.string().optional(),
|
|
3755
|
+
avatarUrl: z131.string().optional(),
|
|
3756
|
+
email: z131.string().optional(),
|
|
3757
|
+
authType: IntegrationAuthType.optional(),
|
|
3758
|
+
customUrl: z131.string().optional()
|
|
3759
|
+
});
|
|
3760
|
+
var UserLinkedIntegrations = z131.object({
|
|
3761
|
+
figma: IntegrationUserInfo.optional(),
|
|
3762
|
+
github: IntegrationUserInfo.array().optional(),
|
|
3763
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
3764
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
3765
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
3766
|
+
});
|
|
3767
|
+
var UserAnalyticsCleanupSchedule = z132.object({
|
|
3768
|
+
userId: z132.string(),
|
|
3769
|
+
createdAt: z132.coerce.date(),
|
|
3770
|
+
deleteAt: z132.coerce.date()
|
|
3771
|
+
});
|
|
3772
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3773
|
+
createdAt: true
|
|
3774
|
+
});
|
|
3775
|
+
var CreateUserInput = z133.object({
|
|
3776
|
+
email: z133.string(),
|
|
3777
|
+
name: z133.string(),
|
|
3778
|
+
username: z133.string()
|
|
3779
|
+
});
|
|
3780
|
+
var UserIdentity = z134.object({
|
|
3781
|
+
id: z134.string(),
|
|
3782
|
+
userId: z134.string()
|
|
3783
|
+
});
|
|
3784
|
+
var LiveblocksNotificationSettings = z135.object({
|
|
3785
|
+
sendCommentNotificationEmails: z135.boolean()
|
|
3786
|
+
});
|
|
3787
|
+
var UserNotificationSettings = z135.object({
|
|
3788
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3789
|
+
});
|
|
3790
|
+
var UserOnboardingDepartment = z136.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3791
|
+
var UserOnboardingJobLevel = z136.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3792
|
+
var UserOnboarding = z136.object({
|
|
3793
|
+
companyName: z136.string().optional(),
|
|
3794
|
+
numberOfPeopleInOrg: z136.string().optional(),
|
|
3795
|
+
numberOfPeopleInDesignTeam: z136.string().optional(),
|
|
3796
|
+
department: UserOnboardingDepartment.optional(),
|
|
3797
|
+
jobTitle: z136.string().optional(),
|
|
3798
|
+
phase: z136.string().optional(),
|
|
3799
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3800
|
+
designSystemName: z136.string().optional(),
|
|
3801
|
+
defaultDestination: z136.string().optional(),
|
|
3802
|
+
figmaUrl: z136.string().optional()
|
|
3803
|
+
});
|
|
3804
|
+
var UserProfile = z136.object({
|
|
3805
|
+
name: z136.string(),
|
|
3806
|
+
avatar: z136.string().optional(),
|
|
3807
|
+
nickname: z136.string().optional(),
|
|
3808
|
+
onboarding: UserOnboarding.optional()
|
|
3809
|
+
});
|
|
3810
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3811
|
+
avatar: true
|
|
3812
|
+
});
|
|
3813
|
+
var UserTest = z137.object({
|
|
3814
|
+
id: z137.string(),
|
|
3815
|
+
email: z137.string()
|
|
4075
3816
|
});
|
|
4076
|
-
var
|
|
4077
|
-
|
|
3817
|
+
var User = z138.object({
|
|
3818
|
+
id: z138.string(),
|
|
3819
|
+
email: z138.string(),
|
|
3820
|
+
emailVerified: z138.boolean(),
|
|
3821
|
+
createdAt: z138.coerce.date(),
|
|
3822
|
+
trialExpiresAt: z138.coerce.date().optional(),
|
|
3823
|
+
profile: UserProfile,
|
|
3824
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3825
|
+
loggedOutAt: z138.coerce.date().optional(),
|
|
3826
|
+
isProtected: z138.boolean()
|
|
3827
|
+
});
|
|
3828
|
+
var NpmProxyToken = z139.object({
|
|
3829
|
+
access: z139.string(),
|
|
3830
|
+
expiresAt: z139.number()
|
|
3831
|
+
});
|
|
3832
|
+
var SessionData = z139.object({
|
|
3833
|
+
returnToUrl: z139.string().optional(),
|
|
4078
3834
|
npmProxyToken: NpmProxyToken.optional()
|
|
4079
3835
|
});
|
|
4080
|
-
var Session =
|
|
4081
|
-
id:
|
|
4082
|
-
expiresAt:
|
|
4083
|
-
userId:
|
|
3836
|
+
var Session = z139.object({
|
|
3837
|
+
id: z139.string(),
|
|
3838
|
+
expiresAt: z139.coerce.date(),
|
|
3839
|
+
userId: z139.string().nullable(),
|
|
4084
3840
|
data: SessionData
|
|
4085
3841
|
});
|
|
4086
|
-
var AuthTokens =
|
|
4087
|
-
access:
|
|
4088
|
-
refresh:
|
|
3842
|
+
var AuthTokens = z139.object({
|
|
3843
|
+
access: z139.string(),
|
|
3844
|
+
refresh: z139.string()
|
|
4089
3845
|
});
|
|
4090
|
-
var UserSession =
|
|
3846
|
+
var UserSession = z139.object({
|
|
4091
3847
|
session: Session,
|
|
4092
3848
|
user: User.nullable()
|
|
4093
3849
|
});
|
|
4094
|
-
var
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
3850
|
+
var ExportJobDocumentationContext = z140.object({
|
|
3851
|
+
isSingleVersionDocs: z140.boolean(),
|
|
3852
|
+
versionSlug: z140.string(),
|
|
3853
|
+
environment: PublishedDocEnvironment
|
|
3854
|
+
});
|
|
3855
|
+
var ExportJobContext = z140.object({
|
|
3856
|
+
apiUrl: z140.string(),
|
|
3857
|
+
accessToken: z140.string(),
|
|
3858
|
+
designSystemId: z140.string(),
|
|
3859
|
+
designSystemName: z140.string(),
|
|
3860
|
+
exporterId: z140.string(),
|
|
3861
|
+
versionId: z140.string(),
|
|
3862
|
+
brandId: z140.string().optional(),
|
|
3863
|
+
themeId: z140.string().optional(),
|
|
3864
|
+
exporterName: z140.string(),
|
|
3865
|
+
exporterPackageUrl: z140.string(),
|
|
3866
|
+
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
3867
|
+
documentation: ExportJobDocumentationContext.optional()
|
|
3868
|
+
});
|
|
3869
|
+
var ExporterFunctionPayload = z141.object({
|
|
3870
|
+
exportJobId: z141.string(),
|
|
3871
|
+
exportContextId: z141.string(),
|
|
3872
|
+
designSystemId: z141.string(),
|
|
3873
|
+
workspaceId: z141.string()
|
|
3874
|
+
});
|
|
3875
|
+
var ExportJobDestinationType = z142.enum([
|
|
3876
|
+
"s3",
|
|
3877
|
+
"webhookUrl",
|
|
3878
|
+
"github",
|
|
3879
|
+
"documentation",
|
|
3880
|
+
"azure",
|
|
3881
|
+
"gitlab",
|
|
3882
|
+
"bitbucket"
|
|
3883
|
+
]);
|
|
3884
|
+
var ExportJobStatus = z142.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
3885
|
+
var ExportJobLogEntryType = z142.enum(["success", "info", "warning", "error", "user"]);
|
|
3886
|
+
var ExportJobLogEntry = z142.object({
|
|
3887
|
+
id: z142.string().optional(),
|
|
3888
|
+
time: z142.coerce.date(),
|
|
3889
|
+
type: ExportJobLogEntryType,
|
|
3890
|
+
message: z142.string()
|
|
3891
|
+
});
|
|
3892
|
+
var ExportJobPullRequestDestinationResult = z142.object({
|
|
3893
|
+
pullRequestUrl: z142.string()
|
|
3894
|
+
});
|
|
3895
|
+
var ExportJobS3DestinationResult = z142.object({
|
|
3896
|
+
bucket: z142.string(),
|
|
3897
|
+
urlPrefix: z142.string().optional(),
|
|
3898
|
+
path: z142.string(),
|
|
3899
|
+
files: z142.array(z142.string()),
|
|
3900
|
+
url: nullishToOptional(z142.string()),
|
|
3901
|
+
urls: nullishToOptional(z142.string().array())
|
|
3902
|
+
});
|
|
3903
|
+
var ExportJobDocsDestinationResult = z142.object({
|
|
3904
|
+
url: z142.string()
|
|
3905
|
+
});
|
|
3906
|
+
var ExportJobResult = z142.object({
|
|
3907
|
+
error: z142.string().optional(),
|
|
3908
|
+
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
3909
|
+
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3910
|
+
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3911
|
+
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3912
|
+
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3913
|
+
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
3914
|
+
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
3915
|
+
});
|
|
3916
|
+
var ExportJob = z142.object({
|
|
3917
|
+
id: z142.string(),
|
|
3918
|
+
createdAt: z142.coerce.date(),
|
|
3919
|
+
finishedAt: z142.coerce.date().optional(),
|
|
3920
|
+
designSystemId: z142.string(),
|
|
3921
|
+
designSystemVersionId: z142.string(),
|
|
3922
|
+
workspaceId: z142.string(),
|
|
3923
|
+
scheduleId: z142.string().nullish(),
|
|
3924
|
+
exporterId: z142.string(),
|
|
3925
|
+
brandId: z142.string().optional(),
|
|
3926
|
+
themeId: z142.string().optional(),
|
|
3927
|
+
estimatedExecutionTime: z142.number().optional(),
|
|
3928
|
+
status: ExportJobStatus,
|
|
3929
|
+
result: ExportJobResult.optional(),
|
|
3930
|
+
createdByUserId: z142.string().optional(),
|
|
3931
|
+
// Destinations
|
|
3932
|
+
...ExportDestinationsMap.shape
|
|
3933
|
+
});
|
|
3934
|
+
var ExportJobFindByFilter = ExportJob.pick({
|
|
3935
|
+
exporterId: true,
|
|
3936
|
+
designSystemVersionId: true,
|
|
3937
|
+
createdByUserId: true,
|
|
3938
|
+
status: true,
|
|
3939
|
+
scheduleId: true,
|
|
3940
|
+
designSystemId: true,
|
|
3941
|
+
themeId: true,
|
|
3942
|
+
brandId: true
|
|
3943
|
+
}).extend({
|
|
3944
|
+
destinations: z142.array(ExportJobDestinationType),
|
|
3945
|
+
docsEnvironment: PublishedDocEnvironment
|
|
3946
|
+
}).partial();
|
|
3947
|
+
var ExporterWorkspaceMembershipRole = z143.enum(["Owner", "OwnerArchived", "User"]);
|
|
3948
|
+
var ExporterWorkspaceMembership = z144.object({
|
|
3949
|
+
id: z144.string(),
|
|
3950
|
+
workspaceId: z144.string(),
|
|
3951
|
+
exporterId: z144.string(),
|
|
3952
|
+
role: ExporterWorkspaceMembershipRole
|
|
3953
|
+
});
|
|
3954
|
+
var FlaggedFeature = z145.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
3955
|
+
var FeatureFlagMap = z145.record(FlaggedFeature, z145.boolean());
|
|
3956
|
+
var FeatureFlag = z145.object({
|
|
3957
|
+
id: z145.string(),
|
|
4098
3958
|
feature: FlaggedFeature,
|
|
4099
|
-
createdAt:
|
|
4100
|
-
enabled:
|
|
4101
|
-
designSystemId:
|
|
3959
|
+
createdAt: z145.coerce.date(),
|
|
3960
|
+
enabled: z145.boolean(),
|
|
3961
|
+
designSystemId: z145.string().optional()
|
|
3962
|
+
});
|
|
3963
|
+
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
3964
|
+
OAuthProviderNames2["Figma"] = "figma";
|
|
3965
|
+
OAuthProviderNames2["Azure"] = "azure";
|
|
3966
|
+
OAuthProviderNames2["Github"] = "github";
|
|
3967
|
+
OAuthProviderNames2["Gitlab"] = "gitlab";
|
|
3968
|
+
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3969
|
+
return OAuthProviderNames2;
|
|
3970
|
+
})(OAuthProviderNames || {});
|
|
3971
|
+
var OAuthProviderSchema = z146.nativeEnum(OAuthProviderNames);
|
|
3972
|
+
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3973
|
+
var ExternalOAuthRequest = z147.object({
|
|
3974
|
+
id: z147.string(),
|
|
3975
|
+
provider: OAuthProviderSchema,
|
|
3976
|
+
userId: z147.string(),
|
|
3977
|
+
state: z147.string(),
|
|
3978
|
+
createdAt: z147.coerce.date()
|
|
3979
|
+
});
|
|
3980
|
+
var GitObjectsQuery = z148.object({
|
|
3981
|
+
organization: z148.string().optional(),
|
|
3982
|
+
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3983
|
+
project: z148.string().optional(),
|
|
3984
|
+
// Only for Bitbucket and Azure
|
|
3985
|
+
repository: z148.string().optional(),
|
|
3986
|
+
// For all providers. For Gitlab, it's called "project".
|
|
3987
|
+
branch: z148.string().optional(),
|
|
3988
|
+
// For all providers.
|
|
3989
|
+
user: z148.string().optional()
|
|
3990
|
+
// Gitlab user
|
|
3991
|
+
});
|
|
3992
|
+
var GitOrganization = z148.object({
|
|
3993
|
+
id: z148.string(),
|
|
3994
|
+
name: z148.string(),
|
|
3995
|
+
url: z148.string(),
|
|
3996
|
+
slug: z148.string()
|
|
3997
|
+
});
|
|
3998
|
+
var GitProject = z148.object({
|
|
3999
|
+
id: z148.string(),
|
|
4000
|
+
name: z148.string(),
|
|
4001
|
+
url: z148.string(),
|
|
4002
|
+
slug: z148.string()
|
|
4003
|
+
});
|
|
4004
|
+
var GitRepository = z148.object({
|
|
4005
|
+
id: z148.string(),
|
|
4006
|
+
name: z148.string(),
|
|
4007
|
+
url: z148.string(),
|
|
4008
|
+
slug: z148.string(),
|
|
4009
|
+
/**
|
|
4010
|
+
* Can be undefined when:
|
|
4011
|
+
* - there are no branches in the repository yet
|
|
4012
|
+
* - Git provider doesn't expose this information on a repository via their API
|
|
4013
|
+
*/
|
|
4014
|
+
defaultBranch: z148.string().optional()
|
|
4102
4015
|
});
|
|
4103
|
-
var
|
|
4016
|
+
var GitBranch = z148.object({
|
|
4017
|
+
name: z148.string(),
|
|
4018
|
+
lastCommitId: z148.string()
|
|
4019
|
+
});
|
|
4020
|
+
var IntegrationTokenSchemaOld = z149.object({
|
|
4021
|
+
id: z149.string(),
|
|
4022
|
+
provider: OAuthProviderSchema,
|
|
4023
|
+
scope: z149.string(),
|
|
4024
|
+
userId: z149.string(),
|
|
4025
|
+
accessToken: z149.string(),
|
|
4026
|
+
refreshToken: z149.string(),
|
|
4027
|
+
expiresAt: z149.coerce.date(),
|
|
4028
|
+
externalUserId: z149.string().nullish()
|
|
4029
|
+
});
|
|
4030
|
+
var WorkspaceOAuthRequestSchema = z150.object({
|
|
4031
|
+
id: z150.string(),
|
|
4032
|
+
workspaceId: z150.string(),
|
|
4033
|
+
provider: OAuthProviderSchema,
|
|
4034
|
+
userId: z150.string(),
|
|
4035
|
+
createdAt: z150.coerce.date()
|
|
4036
|
+
});
|
|
4037
|
+
var AnyRecord = z151.record(z151.any());
|
|
4104
4038
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4105
|
-
|
|
4106
|
-
tarball:
|
|
4039
|
+
z151.object({
|
|
4040
|
+
tarball: z151.string()
|
|
4107
4041
|
})
|
|
4108
4042
|
);
|
|
4109
4043
|
var NpmPackageVersion = AnyRecord.and(
|
|
4110
|
-
|
|
4044
|
+
z151.object({
|
|
4111
4045
|
dist: NpmPackageVersionDist
|
|
4112
4046
|
})
|
|
4113
4047
|
);
|
|
4114
4048
|
var NpmPackage = AnyRecord.and(
|
|
4115
|
-
|
|
4116
|
-
_id:
|
|
4117
|
-
name:
|
|
4049
|
+
z151.object({
|
|
4050
|
+
_id: z151.string(),
|
|
4051
|
+
name: z151.string(),
|
|
4118
4052
|
// e.g. "latest": "1.2.3"
|
|
4119
|
-
"dist-tags":
|
|
4053
|
+
"dist-tags": z151.record(z151.string(), z151.string()),
|
|
4120
4054
|
// "1.2.3": {...}
|
|
4121
|
-
versions:
|
|
4055
|
+
versions: z151.record(NpmPackageVersion)
|
|
4122
4056
|
})
|
|
4123
4057
|
);
|
|
4124
|
-
var NpmProxyTokenPayload =
|
|
4125
|
-
npmProxyRegistryConfigId:
|
|
4058
|
+
var NpmProxyTokenPayload = z152.object({
|
|
4059
|
+
npmProxyRegistryConfigId: z152.string()
|
|
4060
|
+
});
|
|
4061
|
+
var WorkspaceRoleSchema = z153.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4062
|
+
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4063
|
+
var MAX_MEMBERS_COUNT = 100;
|
|
4064
|
+
var UserInvite = z154.object({
|
|
4065
|
+
email: z154.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4066
|
+
role: WorkspaceRoleSchema
|
|
4067
|
+
});
|
|
4068
|
+
var UserInvites = z154.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4069
|
+
var WorkspaceConfigurationUpdate = z155.object({
|
|
4070
|
+
id: z155.string(),
|
|
4071
|
+
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4072
|
+
sso: SsoProvider.optional(),
|
|
4073
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4074
|
+
profile: WorkspaceProfileUpdate.optional()
|
|
4075
|
+
});
|
|
4076
|
+
var WorkspaceContext = z156.object({
|
|
4077
|
+
workspaceId: z156.string(),
|
|
4078
|
+
product: ProductCodeSchema,
|
|
4079
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4080
|
+
publicDesignSystem: z156.boolean().optional()
|
|
4081
|
+
});
|
|
4082
|
+
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4083
|
+
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4084
|
+
var HANDLE_MIN_LENGTH = 2;
|
|
4085
|
+
var HANDLE_MAX_LENGTH = 64;
|
|
4086
|
+
var CreateWorkspaceInput = z157.object({
|
|
4087
|
+
name: z157.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4088
|
+
product: ProductCodeSchema,
|
|
4089
|
+
priceId: z157.string(),
|
|
4090
|
+
billingEmail: z157.string().email().optional(),
|
|
4091
|
+
handle: z157.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4092
|
+
invites: UserInvites.optional(),
|
|
4093
|
+
promoCode: z157.string().optional(),
|
|
4094
|
+
status: InternalStatusSchema.optional(),
|
|
4095
|
+
planInterval: BillingIntervalSchema.optional(),
|
|
4096
|
+
seats: z157.number().optional(),
|
|
4097
|
+
seatLimit: z157.number().optional(),
|
|
4098
|
+
card: CardSchema.optional(),
|
|
4099
|
+
sso: SsoProvider.optional(),
|
|
4100
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4101
|
+
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4102
|
+
});
|
|
4103
|
+
var WorkspaceInvitation = z158.object({
|
|
4104
|
+
id: z158.string(),
|
|
4105
|
+
email: z158.string().email(),
|
|
4106
|
+
createdAt: z158.coerce.date(),
|
|
4107
|
+
resentAt: z158.coerce.date().nullish(),
|
|
4108
|
+
role: z158.nativeEnum(WorkspaceRole),
|
|
4109
|
+
workspaceId: z158.string(),
|
|
4110
|
+
invitedBy: z158.string()
|
|
4111
|
+
});
|
|
4112
|
+
var WorkspaceMembership = z159.object({
|
|
4113
|
+
id: z159.string(),
|
|
4114
|
+
userId: z159.string(),
|
|
4115
|
+
workspaceId: z159.string(),
|
|
4116
|
+
workspaceRole: z159.nativeEnum(WorkspaceRole),
|
|
4117
|
+
notificationSettings: UserNotificationSettings
|
|
4118
|
+
});
|
|
4119
|
+
var UpdateMembershipRolesInput = z159.object({
|
|
4120
|
+
members: z159.array(
|
|
4121
|
+
z159.object({
|
|
4122
|
+
userId: z159.string(),
|
|
4123
|
+
role: z159.nativeEnum(WorkspaceRole)
|
|
4124
|
+
})
|
|
4125
|
+
)
|
|
4126
4126
|
});
|
|
4127
4127
|
var PersonalAccessToken = z160.object({
|
|
4128
4128
|
id: z160.string(),
|