@supernova-studio/client 0.48.37 → 0.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +366 -3
- package/dist/index.d.ts +366 -3
- package/dist/index.js +92 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1525 -1441
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/documentation/approvals.ts +5 -0
- package/src/api/dto/documentation/index.ts +1 -0
- package/src/api/dto/elements/documentation/page-actions-v2.ts +14 -1
- package/src/api/dto/elements/documentation/page-v2.ts +11 -0
- package/src/api/dto/elements/elements-action-v2.ts +8 -0
- package/src/yjs/design-system-content/documentation-hierarchy.ts +1 -0
- package/src/yjs/version-room/backend.ts +7 -0
- package/src/yjs/version-room/base.ts +21 -0
- package/src/yjs/version-room/frontend.ts +27 -0
package/dist/index.mjs
CHANGED
|
@@ -20,12 +20,12 @@ 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
|
|
23
|
+
import { z as z127 } from "zod";
|
|
24
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
|
|
28
|
-
import { z as
|
|
27
|
+
import { z as z126 } from "zod";
|
|
28
|
+
import { z as z125 } from "zod";
|
|
29
29
|
import { z as z18 } from "zod";
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
@@ -107,11 +107,11 @@ import { z as z91 } from "zod";
|
|
|
107
107
|
import { z as z92 } from "zod";
|
|
108
108
|
import { z as z93 } from "zod";
|
|
109
109
|
import { z as z96 } from "zod";
|
|
110
|
-
import { z as z99 } from "zod";
|
|
111
|
-
import { z as z98 } from "zod";
|
|
112
110
|
import { z as z97 } from "zod";
|
|
113
|
-
import { z as
|
|
111
|
+
import { z as z98 } from "zod";
|
|
114
112
|
import { z as z101 } from "zod";
|
|
113
|
+
import { z as z100 } from "zod";
|
|
114
|
+
import { z as z99 } from "zod";
|
|
115
115
|
import { z as z102 } from "zod";
|
|
116
116
|
import { z as z103 } from "zod";
|
|
117
117
|
import { z as z104 } from "zod";
|
|
@@ -123,27 +123,27 @@ import { z as z109 } from "zod";
|
|
|
123
123
|
import { z as z110 } from "zod";
|
|
124
124
|
import { z as z111 } from "zod";
|
|
125
125
|
import { z as z112 } from "zod";
|
|
126
|
-
import { z as z117 } from "zod";
|
|
127
|
-
import { z as z116 } from "zod";
|
|
128
|
-
import IPCIDR from "ip-cidr";
|
|
129
|
-
import { z as z115 } from "zod";
|
|
130
126
|
import { z as z113 } from "zod";
|
|
131
127
|
import { z as z114 } from "zod";
|
|
132
|
-
import { z as z118 } from "zod";
|
|
133
128
|
import { z as z119 } from "zod";
|
|
129
|
+
import { z as z118 } from "zod";
|
|
130
|
+
import IPCIDR from "ip-cidr";
|
|
131
|
+
import { z as z117 } from "zod";
|
|
132
|
+
import { z as z115 } from "zod";
|
|
133
|
+
import { z as z116 } from "zod";
|
|
134
134
|
import { z as z120 } from "zod";
|
|
135
135
|
import { z as z121 } from "zod";
|
|
136
136
|
import { z as z122 } from "zod";
|
|
137
|
-
import { z as
|
|
138
|
-
import { z as
|
|
139
|
-
import { z as
|
|
140
|
-
import { z as
|
|
137
|
+
import { z as z123 } from "zod";
|
|
138
|
+
import { z as z124 } from "zod";
|
|
139
|
+
import { z as z134 } from "zod";
|
|
140
|
+
import { z as z133 } from "zod";
|
|
141
141
|
import { z as z128 } from "zod";
|
|
142
142
|
import { z as z129 } from "zod";
|
|
143
143
|
import { z as z130 } from "zod";
|
|
144
|
-
import { z as
|
|
145
|
-
import { z as
|
|
146
|
-
import { z as
|
|
144
|
+
import { z as z131 } from "zod";
|
|
145
|
+
import { z as z132 } from "zod";
|
|
146
|
+
import { z as z146 } from "zod";
|
|
147
147
|
import { z as z135 } from "zod";
|
|
148
148
|
import { z as z136 } from "zod";
|
|
149
149
|
import { z as z137 } from "zod";
|
|
@@ -151,33 +151,35 @@ import { z as z138 } from "zod";
|
|
|
151
151
|
import { z as z139 } from "zod";
|
|
152
152
|
import { z as z140 } from "zod";
|
|
153
153
|
import { z as z141 } from "zod";
|
|
154
|
-
import { z as z143 } from "zod";
|
|
155
154
|
import { z as z142 } from "zod";
|
|
155
|
+
import { z as z143 } from "zod";
|
|
156
156
|
import { z as z145 } from "zod";
|
|
157
|
-
import { z as
|
|
158
|
-
import { z as z146 } from "zod";
|
|
157
|
+
import { z as z144 } from "zod";
|
|
159
158
|
import { z as z147 } from "zod";
|
|
160
|
-
import { z as z149 } from "zod";
|
|
161
159
|
import { z as z150 } from "zod";
|
|
160
|
+
import { z as z148 } from "zod";
|
|
161
|
+
import { z as z149 } from "zod";
|
|
162
162
|
import { z as z151 } from "zod";
|
|
163
163
|
import { z as z152 } from "zod";
|
|
164
164
|
import { z as z153 } from "zod";
|
|
165
165
|
import { z as z154 } from "zod";
|
|
166
|
-
import { z as z156 } from "zod";
|
|
167
166
|
import { z as z155 } from "zod";
|
|
168
|
-
import { z as
|
|
167
|
+
import { z as z156 } from "zod";
|
|
169
168
|
import { z as z158 } from "zod";
|
|
169
|
+
import { z as z157 } from "zod";
|
|
170
170
|
import { z as z159 } from "zod";
|
|
171
171
|
import { z as z160 } from "zod";
|
|
172
172
|
import { z as z161 } from "zod";
|
|
173
|
-
import { z as z169 } from "zod";
|
|
174
|
-
import { z as z163 } from "zod";
|
|
175
173
|
import { z as z162 } from "zod";
|
|
176
|
-
import { z as
|
|
174
|
+
import { z as z163 } from "zod";
|
|
175
|
+
import { z as z171 } from "zod";
|
|
177
176
|
import { z as z165 } from "zod";
|
|
177
|
+
import { z as z164 } from "zod";
|
|
178
178
|
import { z as z166 } from "zod";
|
|
179
179
|
import { z as z167 } from "zod";
|
|
180
180
|
import { z as z168 } from "zod";
|
|
181
|
+
import { z as z169 } from "zod";
|
|
182
|
+
import { z as z170 } from "zod";
|
|
181
183
|
var __defProp2 = Object.defineProperty;
|
|
182
184
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
183
185
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -3121,37 +3123,49 @@ var RenderedAssetFile = z95.object({
|
|
|
3121
3123
|
renderedImageUrl: z95.string(),
|
|
3122
3124
|
settings: AssetRenderConfiguration
|
|
3123
3125
|
});
|
|
3124
|
-
var
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3126
|
+
var DocumentationPageApprovalState = z96.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3127
|
+
var DocumentationPageApproval = z97.object({
|
|
3128
|
+
id: z97.string(),
|
|
3129
|
+
approvalState: DocumentationPageApprovalState,
|
|
3130
|
+
persistentId: z97.string(),
|
|
3131
|
+
pageId: z97.string(),
|
|
3132
|
+
pagePersistentId: z97.string(),
|
|
3133
|
+
updatedByUserId: z97.string(),
|
|
3134
|
+
designSystemVersionId: z97.string(),
|
|
3135
|
+
updatedAt: z97.coerce.date(),
|
|
3136
|
+
createdAt: z97.coerce.date()
|
|
3137
|
+
});
|
|
3138
|
+
var PageBlockDefinitionAppearance = z98.object({
|
|
3139
|
+
isBordered: z98.boolean().optional(),
|
|
3140
|
+
hasBackground: z98.boolean().optional(),
|
|
3141
|
+
isEditorPresentationDifferent: z98.boolean().optional(),
|
|
3142
|
+
showBlockHeaderInEditor: z98.boolean().optional()
|
|
3143
|
+
});
|
|
3144
|
+
var PageBlockDefinitionLayoutType = z99.enum(["Column", "Row"]);
|
|
3145
|
+
var PageBlockDefinitionLayoutGap = z99.enum(["Small", "Medium", "Large", "None"]);
|
|
3146
|
+
var PageBlockDefinitionLayoutAlign = z99.enum(["Start", "Center", "End"]);
|
|
3147
|
+
var PageBlockDefinitionLayoutResizing = z99.enum(["Fill", "Hug"]);
|
|
3148
|
+
var PageBlockDefinitionLayoutBase = z99.object({
|
|
3135
3149
|
type: PageBlockDefinitionLayoutType,
|
|
3136
3150
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
3137
3151
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
3138
3152
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
3139
3153
|
});
|
|
3140
3154
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
3141
|
-
children:
|
|
3155
|
+
children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
|
|
3142
3156
|
});
|
|
3143
|
-
var PageBlockDefinitionVariant =
|
|
3144
|
-
id:
|
|
3145
|
-
name:
|
|
3146
|
-
image:
|
|
3147
|
-
description:
|
|
3148
|
-
documentationLink:
|
|
3157
|
+
var PageBlockDefinitionVariant = z99.object({
|
|
3158
|
+
id: z99.string(),
|
|
3159
|
+
name: z99.string(),
|
|
3160
|
+
image: z99.string().optional(),
|
|
3161
|
+
description: z99.string().optional(),
|
|
3162
|
+
documentationLink: z99.string().optional(),
|
|
3149
3163
|
layout: PageBlockDefinitionLayout,
|
|
3150
|
-
maxColumns:
|
|
3151
|
-
defaultColumns:
|
|
3164
|
+
maxColumns: z99.number().optional(),
|
|
3165
|
+
defaultColumns: z99.number().optional(),
|
|
3152
3166
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3153
3167
|
});
|
|
3154
|
-
var PageBlockDefinitionPropertyType =
|
|
3168
|
+
var PageBlockDefinitionPropertyType = z100.enum([
|
|
3155
3169
|
"RichText",
|
|
3156
3170
|
"MultiRichText",
|
|
3157
3171
|
"Text",
|
|
@@ -3179,7 +3193,7 @@ var PageBlockDefinitionPropertyType = z98.enum([
|
|
|
3179
3193
|
"Color",
|
|
3180
3194
|
"FigmaComponent"
|
|
3181
3195
|
]);
|
|
3182
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
3196
|
+
var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
3183
3197
|
"Title1",
|
|
3184
3198
|
"Title2",
|
|
3185
3199
|
"Title3",
|
|
@@ -3189,8 +3203,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z98.enum([
|
|
|
3189
3203
|
"Callout",
|
|
3190
3204
|
"Default"
|
|
3191
3205
|
]);
|
|
3192
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
3193
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
3206
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3207
|
+
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3194
3208
|
"Title1",
|
|
3195
3209
|
"Title2",
|
|
3196
3210
|
"Title3",
|
|
@@ -3204,15 +3218,15 @@ var PageBlockDefinitionTextPropertyStyle = z98.enum([
|
|
|
3204
3218
|
"SmallSemibold",
|
|
3205
3219
|
"Custom"
|
|
3206
3220
|
]);
|
|
3207
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
3208
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
3209
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
3221
|
+
var PageBlockDefinitionTextPropertyColor = z100.enum(["Neutral", "NeutralFaded"]);
|
|
3222
|
+
var PageBlockDefinitionBooleanPropertyStyle = z100.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
3223
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z100.enum([
|
|
3210
3224
|
"SegmentedControl",
|
|
3211
3225
|
"ToggleButton",
|
|
3212
3226
|
"Select",
|
|
3213
3227
|
"Checkbox"
|
|
3214
3228
|
]);
|
|
3215
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
3229
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z100.enum([
|
|
3216
3230
|
"Green",
|
|
3217
3231
|
"Red",
|
|
3218
3232
|
"Yellow",
|
|
@@ -3227,76 +3241,76 @@ var PageBlockDefinitionSingleSelectPropertyColor = z98.enum([
|
|
|
3227
3241
|
"Cyan",
|
|
3228
3242
|
"Fuchsia"
|
|
3229
3243
|
]);
|
|
3230
|
-
var IconSet =
|
|
3244
|
+
var IconSet = z100.enum([
|
|
3231
3245
|
"CheckCircle",
|
|
3232
3246
|
"CrossCircle",
|
|
3233
3247
|
"Alert"
|
|
3234
3248
|
]);
|
|
3235
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
3236
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
3237
|
-
var PageBlockDefinitionImageWidth =
|
|
3238
|
-
var PageBlockDefinitionSelectChoice =
|
|
3239
|
-
value:
|
|
3240
|
-
name:
|
|
3249
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
3250
|
+
var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
3251
|
+
var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
3252
|
+
var PageBlockDefinitionSelectChoice = z100.object({
|
|
3253
|
+
value: z100.string(),
|
|
3254
|
+
name: z100.string(),
|
|
3241
3255
|
icon: IconSet.optional(),
|
|
3242
|
-
customIconUrl:
|
|
3256
|
+
customIconUrl: z100.string().optional(),
|
|
3243
3257
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
3244
3258
|
});
|
|
3245
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
3246
|
-
var PageBlockDefinitionRichTextOptions =
|
|
3259
|
+
var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
|
|
3260
|
+
var PageBlockDefinitionRichTextOptions = z100.object({
|
|
3247
3261
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
3248
3262
|
});
|
|
3249
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
3263
|
+
var PageBlockDefinitionMutiRichTextOptions = z100.object({
|
|
3250
3264
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
3251
3265
|
});
|
|
3252
|
-
var PageBlockDefinitionTextOptions =
|
|
3253
|
-
placeholder:
|
|
3254
|
-
defaultValue:
|
|
3266
|
+
var PageBlockDefinitionTextOptions = z100.object({
|
|
3267
|
+
placeholder: z100.string().optional(),
|
|
3268
|
+
defaultValue: z100.string().optional(),
|
|
3255
3269
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
3256
3270
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
3257
|
-
allowLineBreaks:
|
|
3271
|
+
allowLineBreaks: z100.boolean().optional()
|
|
3258
3272
|
});
|
|
3259
|
-
var PageBlockDefinitionSelectOptions =
|
|
3273
|
+
var PageBlockDefinitionSelectOptions = z100.object({
|
|
3260
3274
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
3261
|
-
defaultChoice:
|
|
3262
|
-
choices:
|
|
3275
|
+
defaultChoice: z100.string(),
|
|
3276
|
+
choices: z100.array(PageBlockDefinitionSelectChoice)
|
|
3263
3277
|
});
|
|
3264
|
-
var PageBlockDefinitionImageOptions =
|
|
3278
|
+
var PageBlockDefinitionImageOptions = z100.object({
|
|
3265
3279
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
3266
3280
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
3267
|
-
allowCaption:
|
|
3268
|
-
recommendation:
|
|
3281
|
+
allowCaption: z100.boolean().optional(),
|
|
3282
|
+
recommendation: z100.string().optional()
|
|
3269
3283
|
});
|
|
3270
|
-
var PageBlockDefinitionBooleanOptions =
|
|
3271
|
-
defaultvalue:
|
|
3284
|
+
var PageBlockDefinitionBooleanOptions = z100.object({
|
|
3285
|
+
defaultvalue: z100.boolean().optional(),
|
|
3272
3286
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
3273
3287
|
});
|
|
3274
|
-
var PageBlockDefinitionNumberOptions =
|
|
3275
|
-
defaultValue:
|
|
3276
|
-
min:
|
|
3277
|
-
max:
|
|
3278
|
-
step:
|
|
3279
|
-
placeholder:
|
|
3288
|
+
var PageBlockDefinitionNumberOptions = z100.object({
|
|
3289
|
+
defaultValue: z100.number(),
|
|
3290
|
+
min: z100.number().optional(),
|
|
3291
|
+
max: z100.number().optional(),
|
|
3292
|
+
step: z100.number().optional(),
|
|
3293
|
+
placeholder: z100.string().optional()
|
|
3280
3294
|
});
|
|
3281
|
-
var PageBlockDefinitionComponentOptions =
|
|
3282
|
-
renderLayoutAs:
|
|
3283
|
-
allowPropertySelection:
|
|
3295
|
+
var PageBlockDefinitionComponentOptions = z100.object({
|
|
3296
|
+
renderLayoutAs: z100.enum(["List", "Table"]).optional(),
|
|
3297
|
+
allowPropertySelection: z100.boolean().optional()
|
|
3284
3298
|
});
|
|
3285
|
-
var PageBlockDefinitionProperty =
|
|
3286
|
-
id:
|
|
3287
|
-
name:
|
|
3299
|
+
var PageBlockDefinitionProperty = z100.object({
|
|
3300
|
+
id: z100.string(),
|
|
3301
|
+
name: z100.string(),
|
|
3288
3302
|
type: PageBlockDefinitionPropertyType,
|
|
3289
|
-
description:
|
|
3303
|
+
description: z100.string().optional(),
|
|
3290
3304
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
3291
|
-
variantOptions:
|
|
3305
|
+
variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
3292
3306
|
});
|
|
3293
|
-
var PageBlockDefinitionItem =
|
|
3294
|
-
properties:
|
|
3307
|
+
var PageBlockDefinitionItem = z100.object({
|
|
3308
|
+
properties: z100.array(PageBlockDefinitionProperty),
|
|
3295
3309
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
3296
|
-
variants:
|
|
3297
|
-
defaultVariantKey:
|
|
3310
|
+
variants: z100.array(PageBlockDefinitionVariant),
|
|
3311
|
+
defaultVariantKey: z100.string()
|
|
3298
3312
|
});
|
|
3299
|
-
var PageBlockCategory =
|
|
3313
|
+
var PageBlockCategory = z101.enum([
|
|
3300
3314
|
"Text",
|
|
3301
3315
|
"Layout",
|
|
3302
3316
|
"Media",
|
|
@@ -3310,147 +3324,147 @@ var PageBlockCategory = z99.enum([
|
|
|
3310
3324
|
"Data",
|
|
3311
3325
|
"Other"
|
|
3312
3326
|
]);
|
|
3313
|
-
var PageBlockBehaviorDataType =
|
|
3314
|
-
var PageBlockBehaviorSelectionType =
|
|
3315
|
-
var PageBlockDefinitionBehavior =
|
|
3327
|
+
var PageBlockBehaviorDataType = z101.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
3328
|
+
var PageBlockBehaviorSelectionType = z101.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
3329
|
+
var PageBlockDefinitionBehavior = z101.object({
|
|
3316
3330
|
dataType: PageBlockBehaviorDataType,
|
|
3317
|
-
items:
|
|
3318
|
-
numberOfItems:
|
|
3319
|
-
allowLinks:
|
|
3320
|
-
newItemLabel:
|
|
3331
|
+
items: z101.object({
|
|
3332
|
+
numberOfItems: z101.number(),
|
|
3333
|
+
allowLinks: z101.boolean(),
|
|
3334
|
+
newItemLabel: z101.string().optional()
|
|
3321
3335
|
}).optional(),
|
|
3322
|
-
entities:
|
|
3336
|
+
entities: z101.object({
|
|
3323
3337
|
selectionType: PageBlockBehaviorSelectionType,
|
|
3324
|
-
maxSelected:
|
|
3338
|
+
maxSelected: z101.number()
|
|
3325
3339
|
}).optional()
|
|
3326
3340
|
});
|
|
3327
|
-
var PageBlockDefinitionOnboarding =
|
|
3328
|
-
helpText:
|
|
3329
|
-
documentationLink:
|
|
3341
|
+
var PageBlockDefinitionOnboarding = z101.object({
|
|
3342
|
+
helpText: z101.string(),
|
|
3343
|
+
documentationLink: z101.string().optional()
|
|
3330
3344
|
});
|
|
3331
|
-
var PageBlockDefinition =
|
|
3332
|
-
id:
|
|
3333
|
-
name:
|
|
3334
|
-
description:
|
|
3345
|
+
var PageBlockDefinition = z101.object({
|
|
3346
|
+
id: z101.string(),
|
|
3347
|
+
name: z101.string(),
|
|
3348
|
+
description: z101.string(),
|
|
3335
3349
|
category: PageBlockCategory,
|
|
3336
|
-
icon:
|
|
3337
|
-
documentationLink:
|
|
3338
|
-
searchKeywords:
|
|
3350
|
+
icon: z101.string().optional(),
|
|
3351
|
+
documentationLink: z101.string().optional(),
|
|
3352
|
+
searchKeywords: z101.array(z101.string()).optional(),
|
|
3339
3353
|
item: PageBlockDefinitionItem,
|
|
3340
3354
|
behavior: PageBlockDefinitionBehavior,
|
|
3341
|
-
editorOptions:
|
|
3355
|
+
editorOptions: z101.object({
|
|
3342
3356
|
onboarding: PageBlockDefinitionOnboarding.optional(),
|
|
3343
|
-
newItemLabel:
|
|
3357
|
+
newItemLabel: z101.string().optional()
|
|
3344
3358
|
}),
|
|
3345
3359
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3346
3360
|
});
|
|
3347
|
-
var DocumentationPageGroup =
|
|
3348
|
-
type:
|
|
3349
|
-
childType:
|
|
3350
|
-
id:
|
|
3351
|
-
persistentId:
|
|
3352
|
-
shortPersistentId:
|
|
3353
|
-
designSystemVersionId:
|
|
3354
|
-
parentPersistentId:
|
|
3355
|
-
sortOrder:
|
|
3356
|
-
title:
|
|
3357
|
-
slug:
|
|
3358
|
-
userSlug:
|
|
3359
|
-
createdAt:
|
|
3360
|
-
updatedAt:
|
|
3361
|
-
});
|
|
3362
|
-
var DocumentationLinkPreview =
|
|
3363
|
-
title:
|
|
3364
|
-
description:
|
|
3361
|
+
var DocumentationPageGroup = z102.object({
|
|
3362
|
+
type: z102.literal("ElementGroup"),
|
|
3363
|
+
childType: z102.literal("DocumentationPage"),
|
|
3364
|
+
id: z102.string(),
|
|
3365
|
+
persistentId: z102.string(),
|
|
3366
|
+
shortPersistentId: z102.string(),
|
|
3367
|
+
designSystemVersionId: z102.string(),
|
|
3368
|
+
parentPersistentId: z102.string().nullish(),
|
|
3369
|
+
sortOrder: z102.number(),
|
|
3370
|
+
title: z102.string(),
|
|
3371
|
+
slug: z102.string(),
|
|
3372
|
+
userSlug: z102.string().nullish(),
|
|
3373
|
+
createdAt: z102.coerce.date(),
|
|
3374
|
+
updatedAt: z102.coerce.date()
|
|
3375
|
+
});
|
|
3376
|
+
var DocumentationLinkPreview = z103.object({
|
|
3377
|
+
title: z103.string().optional(),
|
|
3378
|
+
description: z103.string().optional(),
|
|
3365
3379
|
thumbnail: PageBlockImageReference.optional()
|
|
3366
3380
|
});
|
|
3367
|
-
var DocumentationPageAnchor =
|
|
3368
|
-
blockId:
|
|
3369
|
-
level:
|
|
3370
|
-
text:
|
|
3371
|
-
});
|
|
3372
|
-
var DocumentationPageContentBackup = z103.object({
|
|
3373
|
-
id: z103.string(),
|
|
3374
|
-
designSystemVersionId: z103.string(),
|
|
3375
|
-
createdAt: z103.coerce.date(),
|
|
3376
|
-
updatedAt: z103.coerce.date(),
|
|
3377
|
-
documentationPageId: z103.string(),
|
|
3378
|
-
documentationPageName: z103.string(),
|
|
3379
|
-
storagePath: z103.string()
|
|
3380
|
-
});
|
|
3381
|
-
var DocumentationPageContentItem = z104.discriminatedUnion("type", [
|
|
3382
|
-
PageBlockEditorModelV2,
|
|
3383
|
-
PageSectionEditorModelV2
|
|
3384
|
-
]);
|
|
3385
|
-
var DocumentationPageContentData = z104.object({
|
|
3386
|
-
items: z104.array(DocumentationPageContentItem)
|
|
3387
|
-
});
|
|
3388
|
-
var DocumentationPageContent = z104.object({
|
|
3389
|
-
id: z104.string(),
|
|
3390
|
-
designSystemVersionId: z104.string(),
|
|
3391
|
-
createdAt: z104.coerce.date(),
|
|
3392
|
-
updatedAt: z104.coerce.date(),
|
|
3393
|
-
documentationPageId: z104.string(),
|
|
3394
|
-
data: DocumentationPageContentData
|
|
3381
|
+
var DocumentationPageAnchor = z104.object({
|
|
3382
|
+
blockId: z104.string(),
|
|
3383
|
+
level: z104.number(),
|
|
3384
|
+
text: z104.string()
|
|
3395
3385
|
});
|
|
3396
|
-
var
|
|
3397
|
-
type: z105.literal("DocumentationPage"),
|
|
3386
|
+
var DocumentationPageContentBackup = z105.object({
|
|
3398
3387
|
id: z105.string(),
|
|
3399
|
-
persistentId: z105.string(),
|
|
3400
|
-
shortPersistentId: z105.string(),
|
|
3401
3388
|
designSystemVersionId: z105.string(),
|
|
3402
|
-
parentPersistentId: z105.string().nullish(),
|
|
3403
|
-
sortOrder: z105.number(),
|
|
3404
|
-
title: z105.string(),
|
|
3405
|
-
slug: z105.string(),
|
|
3406
|
-
userSlug: z105.string().nullish(),
|
|
3407
3389
|
createdAt: z105.coerce.date(),
|
|
3408
|
-
updatedAt: z105.coerce.date()
|
|
3390
|
+
updatedAt: z105.coerce.date(),
|
|
3391
|
+
documentationPageId: z105.string(),
|
|
3392
|
+
documentationPageName: z105.string(),
|
|
3393
|
+
storagePath: z105.string()
|
|
3409
3394
|
});
|
|
3410
|
-
var
|
|
3411
|
-
|
|
3395
|
+
var DocumentationPageContentItem = z106.discriminatedUnion("type", [
|
|
3396
|
+
PageBlockEditorModelV2,
|
|
3397
|
+
PageSectionEditorModelV2
|
|
3398
|
+
]);
|
|
3399
|
+
var DocumentationPageContentData = z106.object({
|
|
3400
|
+
items: z106.array(DocumentationPageContentItem)
|
|
3401
|
+
});
|
|
3402
|
+
var DocumentationPageContent = z106.object({
|
|
3403
|
+
id: z106.string(),
|
|
3412
3404
|
designSystemVersionId: z106.string(),
|
|
3413
3405
|
createdAt: z106.coerce.date(),
|
|
3414
3406
|
updatedAt: z106.coerce.date(),
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
storybookEmbedErrorMessage: z106.string().optional(),
|
|
3418
|
-
renderCodePackageJson: z106.string().optional(),
|
|
3419
|
-
selectedBrandPersistentId: z106.string().optional(),
|
|
3420
|
-
serveDefaultVersionOnly: z106.boolean(),
|
|
3421
|
-
isPublic: z106.boolean()
|
|
3422
|
-
});
|
|
3423
|
-
var DocumentationComment = z107.object({
|
|
3424
|
-
id: z107.string(),
|
|
3425
|
-
authorId: z107.string(),
|
|
3426
|
-
threadId: z107.string(),
|
|
3427
|
-
roomId: z107.string(),
|
|
3428
|
-
createdAt: z107.coerce.date(),
|
|
3429
|
-
editedAt: z107.coerce.date().optional(),
|
|
3430
|
-
deletedAt: z107.coerce.date().optional(),
|
|
3431
|
-
body: z107.string()
|
|
3407
|
+
documentationPageId: z106.string(),
|
|
3408
|
+
data: DocumentationPageContentData
|
|
3432
3409
|
});
|
|
3433
|
-
var
|
|
3410
|
+
var DocumentationPage = z107.object({
|
|
3411
|
+
type: z107.literal("DocumentationPage"),
|
|
3434
3412
|
id: z107.string(),
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
brandId: z107.string(),
|
|
3413
|
+
persistentId: z107.string(),
|
|
3414
|
+
shortPersistentId: z107.string(),
|
|
3438
3415
|
designSystemVersionId: z107.string(),
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3416
|
+
parentPersistentId: z107.string().nullish(),
|
|
3417
|
+
sortOrder: z107.number(),
|
|
3418
|
+
title: z107.string(),
|
|
3419
|
+
slug: z107.string(),
|
|
3420
|
+
userSlug: z107.string().nullish(),
|
|
3442
3421
|
createdAt: z107.coerce.date(),
|
|
3443
3422
|
updatedAt: z107.coerce.date()
|
|
3444
3423
|
});
|
|
3445
|
-
var
|
|
3446
|
-
|
|
3447
|
-
id: z108.string(),
|
|
3448
|
-
persistentId: z108.string(),
|
|
3424
|
+
var DocumentationSettings = z108.object({
|
|
3425
|
+
// Basic
|
|
3449
3426
|
designSystemVersionId: z108.string(),
|
|
3450
3427
|
createdAt: z108.coerce.date(),
|
|
3451
3428
|
updatedAt: z108.coerce.date(),
|
|
3429
|
+
// Configuration
|
|
3430
|
+
isTabbedLayoutEnabled: z108.boolean(),
|
|
3431
|
+
storybookEmbedErrorMessage: z108.string().optional(),
|
|
3432
|
+
renderCodePackageJson: z108.string().optional(),
|
|
3433
|
+
selectedBrandPersistentId: z108.string().optional(),
|
|
3434
|
+
serveDefaultVersionOnly: z108.boolean(),
|
|
3435
|
+
isPublic: z108.boolean()
|
|
3436
|
+
});
|
|
3437
|
+
var DocumentationComment = z109.object({
|
|
3438
|
+
id: z109.string(),
|
|
3439
|
+
authorId: z109.string(),
|
|
3440
|
+
threadId: z109.string(),
|
|
3441
|
+
roomId: z109.string(),
|
|
3442
|
+
createdAt: z109.coerce.date(),
|
|
3443
|
+
editedAt: z109.coerce.date().optional(),
|
|
3444
|
+
deletedAt: z109.coerce.date().optional(),
|
|
3445
|
+
body: z109.string()
|
|
3446
|
+
});
|
|
3447
|
+
var DocumentationCommentThread = z109.object({
|
|
3448
|
+
id: z109.string(),
|
|
3449
|
+
roomId: z109.string(),
|
|
3450
|
+
pagePersistentId: z109.string(),
|
|
3451
|
+
brandId: z109.string(),
|
|
3452
|
+
designSystemVersionId: z109.string(),
|
|
3453
|
+
designSystemId: z109.string(),
|
|
3454
|
+
blockId: z109.string().optional(),
|
|
3455
|
+
resolved: z109.boolean(),
|
|
3456
|
+
createdAt: z109.coerce.date(),
|
|
3457
|
+
updatedAt: z109.coerce.date()
|
|
3458
|
+
});
|
|
3459
|
+
var DesignElementSnapshotReason = z110.enum(["Publish", "Deletion"]);
|
|
3460
|
+
var DesignElementSnapshotBase = z110.object({
|
|
3461
|
+
id: z110.string(),
|
|
3462
|
+
persistentId: z110.string(),
|
|
3463
|
+
designSystemVersionId: z110.string(),
|
|
3464
|
+
createdAt: z110.coerce.date(),
|
|
3465
|
+
updatedAt: z110.coerce.date(),
|
|
3452
3466
|
reason: DesignElementSnapshotReason,
|
|
3453
|
-
createdByUserId:
|
|
3467
|
+
createdByUserId: z110.string()
|
|
3454
3468
|
});
|
|
3455
3469
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3456
3470
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -3461,8 +3475,8 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
3461
3475
|
}
|
|
3462
3476
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3463
3477
|
page: DocumentationPageV2,
|
|
3464
|
-
pageContentHash:
|
|
3465
|
-
pageContentStorageKey:
|
|
3478
|
+
pageContentHash: z111.string(),
|
|
3479
|
+
pageContentStorageKey: z111.string()
|
|
3466
3480
|
});
|
|
3467
3481
|
function pickLatestPageSnapshots(snapshots) {
|
|
3468
3482
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -3473,164 +3487,165 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3473
3487
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3474
3488
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3475
3489
|
}
|
|
3476
|
-
var ElementViewBaseColumnType =
|
|
3477
|
-
var ElementViewColumnType =
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3490
|
+
var ElementViewBaseColumnType = z112.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3491
|
+
var ElementViewColumnType = z112.union([
|
|
3492
|
+
z112.literal("BaseProperty"),
|
|
3493
|
+
z112.literal("PropertyDefinition"),
|
|
3494
|
+
z112.literal("Theme")
|
|
3481
3495
|
]);
|
|
3482
|
-
var ElementViewColumnSharedAttributes =
|
|
3483
|
-
id:
|
|
3484
|
-
persistentId:
|
|
3485
|
-
elementDataViewId:
|
|
3486
|
-
sortPosition:
|
|
3487
|
-
width:
|
|
3496
|
+
var ElementViewColumnSharedAttributes = z112.object({
|
|
3497
|
+
id: z112.string(),
|
|
3498
|
+
persistentId: z112.string(),
|
|
3499
|
+
elementDataViewId: z112.string(),
|
|
3500
|
+
sortPosition: z112.number(),
|
|
3501
|
+
width: z112.number()
|
|
3488
3502
|
});
|
|
3489
3503
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3490
|
-
type:
|
|
3504
|
+
type: z112.literal("BaseProperty"),
|
|
3491
3505
|
basePropertyType: ElementViewBaseColumnType
|
|
3492
3506
|
});
|
|
3493
3507
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3494
|
-
type:
|
|
3495
|
-
propertyDefinitionId:
|
|
3508
|
+
type: z112.literal("PropertyDefinition"),
|
|
3509
|
+
propertyDefinitionId: z112.string()
|
|
3496
3510
|
});
|
|
3497
3511
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3498
|
-
type:
|
|
3499
|
-
themeId:
|
|
3512
|
+
type: z112.literal("Theme"),
|
|
3513
|
+
themeId: z112.string()
|
|
3500
3514
|
});
|
|
3501
|
-
var ElementViewColumn =
|
|
3515
|
+
var ElementViewColumn = z112.discriminatedUnion("type", [
|
|
3502
3516
|
ElementViewBasePropertyColumn,
|
|
3503
3517
|
ElementViewPropertyDefinitionColumn,
|
|
3504
3518
|
ElementViewThemeColumn
|
|
3505
3519
|
]);
|
|
3506
|
-
var ElementView =
|
|
3507
|
-
id:
|
|
3508
|
-
persistentId:
|
|
3509
|
-
designSystemVersionId:
|
|
3510
|
-
name:
|
|
3511
|
-
description:
|
|
3520
|
+
var ElementView = z113.object({
|
|
3521
|
+
id: z113.string(),
|
|
3522
|
+
persistentId: z113.string(),
|
|
3523
|
+
designSystemVersionId: z113.string(),
|
|
3524
|
+
name: z113.string(),
|
|
3525
|
+
description: z113.string(),
|
|
3512
3526
|
targetElementType: ElementPropertyTargetType,
|
|
3513
|
-
isDefault:
|
|
3514
|
-
});
|
|
3515
|
-
var Brand =
|
|
3516
|
-
id:
|
|
3517
|
-
designSystemVersionId:
|
|
3518
|
-
persistentId:
|
|
3519
|
-
name:
|
|
3520
|
-
description:
|
|
3521
|
-
});
|
|
3522
|
-
var NpmRegistryAuthType =
|
|
3523
|
-
var NpmRegistryType =
|
|
3524
|
-
var NpmRegistryBasicAuthConfig =
|
|
3525
|
-
authType:
|
|
3526
|
-
username:
|
|
3527
|
-
password:
|
|
3528
|
-
});
|
|
3529
|
-
var NpmRegistryBearerAuthConfig =
|
|
3530
|
-
authType:
|
|
3531
|
-
accessToken:
|
|
3532
|
-
});
|
|
3533
|
-
var NpmRegistryNoAuthConfig =
|
|
3534
|
-
authType:
|
|
3535
|
-
});
|
|
3536
|
-
var NpmRegistrCustomAuthConfig =
|
|
3537
|
-
authType:
|
|
3538
|
-
authHeaderName:
|
|
3539
|
-
authHeaderValue:
|
|
3540
|
-
});
|
|
3541
|
-
var NpmRegistryAuthConfig =
|
|
3527
|
+
isDefault: z113.boolean()
|
|
3528
|
+
});
|
|
3529
|
+
var Brand = z114.object({
|
|
3530
|
+
id: z114.string(),
|
|
3531
|
+
designSystemVersionId: z114.string(),
|
|
3532
|
+
persistentId: z114.string(),
|
|
3533
|
+
name: z114.string(),
|
|
3534
|
+
description: z114.string()
|
|
3535
|
+
});
|
|
3536
|
+
var NpmRegistryAuthType = z115.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3537
|
+
var NpmRegistryType = z115.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3538
|
+
var NpmRegistryBasicAuthConfig = z115.object({
|
|
3539
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3540
|
+
username: z115.string(),
|
|
3541
|
+
password: z115.string()
|
|
3542
|
+
});
|
|
3543
|
+
var NpmRegistryBearerAuthConfig = z115.object({
|
|
3544
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3545
|
+
accessToken: z115.string()
|
|
3546
|
+
});
|
|
3547
|
+
var NpmRegistryNoAuthConfig = z115.object({
|
|
3548
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.None)
|
|
3549
|
+
});
|
|
3550
|
+
var NpmRegistrCustomAuthConfig = z115.object({
|
|
3551
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3552
|
+
authHeaderName: z115.string(),
|
|
3553
|
+
authHeaderValue: z115.string()
|
|
3554
|
+
});
|
|
3555
|
+
var NpmRegistryAuthConfig = z115.discriminatedUnion("authType", [
|
|
3542
3556
|
NpmRegistryBasicAuthConfig,
|
|
3543
3557
|
NpmRegistryBearerAuthConfig,
|
|
3544
3558
|
NpmRegistryNoAuthConfig,
|
|
3545
3559
|
NpmRegistrCustomAuthConfig
|
|
3546
3560
|
]);
|
|
3547
|
-
var NpmRegistryConfigBase =
|
|
3561
|
+
var NpmRegistryConfigBase = z115.object({
|
|
3548
3562
|
registryType: NpmRegistryType,
|
|
3549
|
-
enabledScopes:
|
|
3550
|
-
customRegistryUrl:
|
|
3551
|
-
bypassProxy:
|
|
3552
|
-
npmProxyRegistryConfigId:
|
|
3553
|
-
npmProxyVersion:
|
|
3563
|
+
enabledScopes: z115.array(z115.string()),
|
|
3564
|
+
customRegistryUrl: z115.string().optional(),
|
|
3565
|
+
bypassProxy: z115.boolean().default(false),
|
|
3566
|
+
npmProxyRegistryConfigId: z115.string().optional(),
|
|
3567
|
+
npmProxyVersion: z115.number().optional()
|
|
3554
3568
|
});
|
|
3555
3569
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3556
|
-
var SsoProvider =
|
|
3557
|
-
providerId:
|
|
3558
|
-
defaultAutoInviteValue:
|
|
3559
|
-
autoInviteDomains:
|
|
3560
|
-
skipDocsSupernovaLogin:
|
|
3561
|
-
areInvitesDisabled:
|
|
3562
|
-
isTestMode:
|
|
3563
|
-
emailDomains:
|
|
3564
|
-
metadataXml:
|
|
3570
|
+
var SsoProvider = z116.object({
|
|
3571
|
+
providerId: z116.string(),
|
|
3572
|
+
defaultAutoInviteValue: z116.boolean(),
|
|
3573
|
+
autoInviteDomains: z116.record(z116.string(), z116.boolean()),
|
|
3574
|
+
skipDocsSupernovaLogin: z116.boolean(),
|
|
3575
|
+
areInvitesDisabled: z116.boolean(),
|
|
3576
|
+
isTestMode: z116.boolean(),
|
|
3577
|
+
emailDomains: z116.array(z116.string()),
|
|
3578
|
+
metadataXml: z116.string().nullish()
|
|
3565
3579
|
});
|
|
3566
3580
|
var isValidCIDR = (value) => {
|
|
3567
3581
|
return IPCIDR.isValidAddress(value);
|
|
3568
3582
|
};
|
|
3569
|
-
var WorkspaceIpWhitelistEntry =
|
|
3570
|
-
isEnabled:
|
|
3571
|
-
name:
|
|
3572
|
-
range:
|
|
3583
|
+
var WorkspaceIpWhitelistEntry = z117.object({
|
|
3584
|
+
isEnabled: z117.boolean(),
|
|
3585
|
+
name: z117.string(),
|
|
3586
|
+
range: z117.string().refine(isValidCIDR, {
|
|
3573
3587
|
message: "Invalid IP CIDR"
|
|
3574
3588
|
})
|
|
3575
3589
|
});
|
|
3576
|
-
var WorkspaceIpSettings =
|
|
3577
|
-
isEnabledForCloud:
|
|
3578
|
-
isEnabledForDocs:
|
|
3579
|
-
entries:
|
|
3590
|
+
var WorkspaceIpSettings = z117.object({
|
|
3591
|
+
isEnabledForCloud: z117.boolean(),
|
|
3592
|
+
isEnabledForDocs: z117.boolean(),
|
|
3593
|
+
entries: z117.array(WorkspaceIpWhitelistEntry)
|
|
3580
3594
|
});
|
|
3581
|
-
var WorkspaceProfile =
|
|
3582
|
-
name:
|
|
3583
|
-
handle:
|
|
3584
|
-
color:
|
|
3585
|
-
avatar: nullishToOptional(
|
|
3595
|
+
var WorkspaceProfile = z117.object({
|
|
3596
|
+
name: z117.string(),
|
|
3597
|
+
handle: z117.string(),
|
|
3598
|
+
color: z117.string(),
|
|
3599
|
+
avatar: nullishToOptional(z117.string()),
|
|
3586
3600
|
billingDetails: nullishToOptional(BillingDetails)
|
|
3587
3601
|
});
|
|
3588
3602
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3589
3603
|
avatar: true
|
|
3590
3604
|
});
|
|
3591
|
-
var Workspace =
|
|
3592
|
-
id:
|
|
3605
|
+
var Workspace = z117.object({
|
|
3606
|
+
id: z117.string(),
|
|
3593
3607
|
profile: WorkspaceProfile,
|
|
3594
3608
|
subscription: Subscription,
|
|
3595
3609
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3596
3610
|
sso: nullishToOptional(SsoProvider),
|
|
3597
3611
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3598
3612
|
});
|
|
3599
|
-
var WorkspaceWithDesignSystems =
|
|
3613
|
+
var WorkspaceWithDesignSystems = z117.object({
|
|
3600
3614
|
workspace: Workspace,
|
|
3601
|
-
designSystems:
|
|
3602
|
-
});
|
|
3603
|
-
var DesignSystemSwitcher =
|
|
3604
|
-
isEnabled:
|
|
3605
|
-
designSystemIds:
|
|
3606
|
-
});
|
|
3607
|
-
var DesignSystem =
|
|
3608
|
-
id:
|
|
3609
|
-
workspaceId:
|
|
3610
|
-
name:
|
|
3611
|
-
description:
|
|
3612
|
-
docExporterId: nullishToOptional(
|
|
3613
|
-
docSlug:
|
|
3614
|
-
docUserSlug: nullishToOptional(
|
|
3615
|
-
docSlugDeprecated:
|
|
3616
|
-
isPublic:
|
|
3617
|
-
isMultibrand:
|
|
3618
|
-
docViewUrl: nullishToOptional(
|
|
3619
|
-
basePrefixes:
|
|
3615
|
+
designSystems: z117.array(DesignSystem)
|
|
3616
|
+
});
|
|
3617
|
+
var DesignSystemSwitcher = z118.object({
|
|
3618
|
+
isEnabled: z118.boolean(),
|
|
3619
|
+
designSystemIds: z118.array(z118.string())
|
|
3620
|
+
});
|
|
3621
|
+
var DesignSystem = z118.object({
|
|
3622
|
+
id: z118.string(),
|
|
3623
|
+
workspaceId: z118.string(),
|
|
3624
|
+
name: z118.string(),
|
|
3625
|
+
description: z118.string(),
|
|
3626
|
+
docExporterId: nullishToOptional(z118.string()),
|
|
3627
|
+
docSlug: z118.string(),
|
|
3628
|
+
docUserSlug: nullishToOptional(z118.string()),
|
|
3629
|
+
docSlugDeprecated: z118.string(),
|
|
3630
|
+
isPublic: z118.boolean(),
|
|
3631
|
+
isMultibrand: z118.boolean(),
|
|
3632
|
+
docViewUrl: nullishToOptional(z118.string()),
|
|
3633
|
+
basePrefixes: z118.array(z118.string()),
|
|
3620
3634
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3621
|
-
|
|
3622
|
-
|
|
3635
|
+
isApprovalFeatureEnabled: z118.boolean(),
|
|
3636
|
+
createdAt: z118.coerce.date(),
|
|
3637
|
+
updatedAt: z118.coerce.date()
|
|
3623
3638
|
});
|
|
3624
|
-
var DesignSystemWithWorkspace =
|
|
3639
|
+
var DesignSystemWithWorkspace = z118.object({
|
|
3625
3640
|
designSystem: DesignSystem,
|
|
3626
3641
|
workspace: Workspace
|
|
3627
3642
|
});
|
|
3628
3643
|
var DS_NAME_MIN_LENGTH = 2;
|
|
3629
3644
|
var DS_NAME_MAX_LENGTH = 64;
|
|
3630
3645
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
3631
|
-
var DesignSystemUpdateInputMetadata =
|
|
3632
|
-
name:
|
|
3633
|
-
description:
|
|
3646
|
+
var DesignSystemUpdateInputMetadata = z119.object({
|
|
3647
|
+
name: z119.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3648
|
+
description: z119.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3634
3649
|
});
|
|
3635
3650
|
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3636
3651
|
id: true,
|
|
@@ -3645,161 +3660,161 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
3645
3660
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3646
3661
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3647
3662
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3648
|
-
var DesignSystemCreateInputMetadata =
|
|
3649
|
-
name:
|
|
3650
|
-
description:
|
|
3663
|
+
var DesignSystemCreateInputMetadata = z120.object({
|
|
3664
|
+
name: z120.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3665
|
+
description: z120.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3651
3666
|
});
|
|
3652
|
-
var DesignSystemCreateInput =
|
|
3667
|
+
var DesignSystemCreateInput = z120.object({
|
|
3653
3668
|
meta: DesignSystemCreateInputMetadata,
|
|
3654
|
-
workspaceId:
|
|
3655
|
-
isPublic:
|
|
3656
|
-
basePrefixes:
|
|
3657
|
-
docUserSlug:
|
|
3658
|
-
source:
|
|
3669
|
+
workspaceId: z120.string(),
|
|
3670
|
+
isPublic: z120.boolean().optional(),
|
|
3671
|
+
basePrefixes: z120.array(z120.string()).optional(),
|
|
3672
|
+
docUserSlug: z120.string().nullish().optional(),
|
|
3673
|
+
source: z120.array(z120.string()).optional()
|
|
3659
3674
|
});
|
|
3660
|
-
var ExporterPropertyImageValue =
|
|
3675
|
+
var ExporterPropertyImageValue = z121.object({
|
|
3661
3676
|
asset: PageBlockAsset.optional(),
|
|
3662
|
-
assetId:
|
|
3663
|
-
assetUrl:
|
|
3664
|
-
});
|
|
3665
|
-
var ExporterPropertyValue =
|
|
3666
|
-
key:
|
|
3667
|
-
value:
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3677
|
+
assetId: z121.string().optional(),
|
|
3678
|
+
assetUrl: z121.string().optional()
|
|
3679
|
+
});
|
|
3680
|
+
var ExporterPropertyValue = z121.object({
|
|
3681
|
+
key: z121.string(),
|
|
3682
|
+
value: z121.union([
|
|
3683
|
+
z121.number(),
|
|
3684
|
+
z121.string(),
|
|
3685
|
+
z121.boolean(),
|
|
3671
3686
|
ExporterPropertyImageValue,
|
|
3672
3687
|
ColorTokenData,
|
|
3673
3688
|
TypographyTokenData
|
|
3674
3689
|
])
|
|
3675
3690
|
});
|
|
3676
|
-
var ExporterPropertyValuesCollection =
|
|
3677
|
-
id:
|
|
3678
|
-
designSystemId:
|
|
3679
|
-
exporterId:
|
|
3680
|
-
values:
|
|
3681
|
-
});
|
|
3682
|
-
var PublishedDocPage =
|
|
3683
|
-
id:
|
|
3684
|
-
publishedDocId:
|
|
3685
|
-
pageShortPersistentId:
|
|
3686
|
-
pathV1:
|
|
3687
|
-
pathV2:
|
|
3688
|
-
storagePath:
|
|
3689
|
-
locale:
|
|
3690
|
-
isPrivate:
|
|
3691
|
-
isHidden:
|
|
3692
|
-
createdAt:
|
|
3693
|
-
updatedAt:
|
|
3691
|
+
var ExporterPropertyValuesCollection = z121.object({
|
|
3692
|
+
id: z121.string(),
|
|
3693
|
+
designSystemId: z121.string(),
|
|
3694
|
+
exporterId: z121.string(),
|
|
3695
|
+
values: z121.array(ExporterPropertyValue)
|
|
3696
|
+
});
|
|
3697
|
+
var PublishedDocPage = z122.object({
|
|
3698
|
+
id: z122.string(),
|
|
3699
|
+
publishedDocId: z122.string(),
|
|
3700
|
+
pageShortPersistentId: z122.string(),
|
|
3701
|
+
pathV1: z122.string(),
|
|
3702
|
+
pathV2: z122.string(),
|
|
3703
|
+
storagePath: z122.string(),
|
|
3704
|
+
locale: z122.string().optional(),
|
|
3705
|
+
isPrivate: z122.boolean(),
|
|
3706
|
+
isHidden: z122.boolean(),
|
|
3707
|
+
createdAt: z122.coerce.date(),
|
|
3708
|
+
updatedAt: z122.coerce.date()
|
|
3694
3709
|
});
|
|
3695
3710
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3696
|
-
var PublishedDocEnvironment =
|
|
3697
|
-
var PublishedDocsChecksums =
|
|
3698
|
-
var PublishedDocRoutingVersion =
|
|
3699
|
-
var PublishedDoc =
|
|
3700
|
-
id:
|
|
3701
|
-
designSystemVersionId:
|
|
3702
|
-
createdAt:
|
|
3703
|
-
updatedAt:
|
|
3704
|
-
lastPublishedAt:
|
|
3705
|
-
isDefault:
|
|
3706
|
-
isPublic:
|
|
3711
|
+
var PublishedDocEnvironment = z123.enum(publishedDocEnvironments);
|
|
3712
|
+
var PublishedDocsChecksums = z123.record(z123.string());
|
|
3713
|
+
var PublishedDocRoutingVersion = z123.enum(["1", "2"]);
|
|
3714
|
+
var PublishedDoc = z123.object({
|
|
3715
|
+
id: z123.string(),
|
|
3716
|
+
designSystemVersionId: z123.string(),
|
|
3717
|
+
createdAt: z123.coerce.date(),
|
|
3718
|
+
updatedAt: z123.coerce.date(),
|
|
3719
|
+
lastPublishedAt: z123.coerce.date(),
|
|
3720
|
+
isDefault: z123.boolean(),
|
|
3721
|
+
isPublic: z123.boolean(),
|
|
3707
3722
|
environment: PublishedDocEnvironment,
|
|
3708
3723
|
checksums: PublishedDocsChecksums,
|
|
3709
|
-
storagePath:
|
|
3710
|
-
wasMigrated:
|
|
3724
|
+
storagePath: z123.string(),
|
|
3725
|
+
wasMigrated: z123.boolean(),
|
|
3711
3726
|
routingVersion: PublishedDocRoutingVersion,
|
|
3712
|
-
usesLocalizations:
|
|
3713
|
-
wasPublishedWithLocalizations:
|
|
3714
|
-
tokenCount:
|
|
3715
|
-
assetCount:
|
|
3727
|
+
usesLocalizations: z123.boolean(),
|
|
3728
|
+
wasPublishedWithLocalizations: z123.boolean(),
|
|
3729
|
+
tokenCount: z123.number(),
|
|
3730
|
+
assetCount: z123.number()
|
|
3716
3731
|
});
|
|
3717
|
-
var DesignSystemVersion =
|
|
3718
|
-
id:
|
|
3719
|
-
version:
|
|
3720
|
-
createdAt:
|
|
3721
|
-
designSystemId:
|
|
3722
|
-
name:
|
|
3723
|
-
comment:
|
|
3724
|
-
isReadonly:
|
|
3725
|
-
changeLog:
|
|
3726
|
-
parentId:
|
|
3727
|
-
isDraftsFeatureAdopted:
|
|
3728
|
-
});
|
|
3729
|
-
var VersionCreationJobStatus =
|
|
3730
|
-
var VersionCreationJob =
|
|
3731
|
-
id:
|
|
3732
|
-
version:
|
|
3733
|
-
designSystemId:
|
|
3734
|
-
designSystemVersionId: nullishToOptional(
|
|
3732
|
+
var DesignSystemVersion = z124.object({
|
|
3733
|
+
id: z124.string(),
|
|
3734
|
+
version: z124.string(),
|
|
3735
|
+
createdAt: z124.date(),
|
|
3736
|
+
designSystemId: z124.string(),
|
|
3737
|
+
name: z124.string(),
|
|
3738
|
+
comment: z124.string(),
|
|
3739
|
+
isReadonly: z124.boolean(),
|
|
3740
|
+
changeLog: z124.string(),
|
|
3741
|
+
parentId: z124.string().optional(),
|
|
3742
|
+
isDraftsFeatureAdopted: z124.boolean()
|
|
3743
|
+
});
|
|
3744
|
+
var VersionCreationJobStatus = z124.enum(["Success", "InProgress", "Error"]);
|
|
3745
|
+
var VersionCreationJob = z124.object({
|
|
3746
|
+
id: z124.string(),
|
|
3747
|
+
version: z124.string(),
|
|
3748
|
+
designSystemId: z124.string(),
|
|
3749
|
+
designSystemVersionId: nullishToOptional(z124.string()),
|
|
3735
3750
|
status: VersionCreationJobStatus,
|
|
3736
|
-
errorMessage: nullishToOptional(
|
|
3751
|
+
errorMessage: nullishToOptional(z124.string())
|
|
3737
3752
|
});
|
|
3738
3753
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3739
3754
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
3740
|
-
var ExportJobDocumentationChanges =
|
|
3741
|
-
pagePersistentIds:
|
|
3742
|
-
groupPersistentIds:
|
|
3755
|
+
var ExportJobDocumentationChanges = z125.object({
|
|
3756
|
+
pagePersistentIds: z125.string().array(),
|
|
3757
|
+
groupPersistentIds: z125.string().array()
|
|
3743
3758
|
});
|
|
3744
|
-
var ExporterDestinationDocs =
|
|
3759
|
+
var ExporterDestinationDocs = z125.object({
|
|
3745
3760
|
environment: PublishedDocEnvironment,
|
|
3746
3761
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3747
3762
|
});
|
|
3748
|
-
var ExporterDestinationS3 =
|
|
3749
|
-
var ExporterDestinationGithub =
|
|
3750
|
-
credentialId:
|
|
3763
|
+
var ExporterDestinationS3 = z125.object({});
|
|
3764
|
+
var ExporterDestinationGithub = z125.object({
|
|
3765
|
+
credentialId: z125.string().optional(),
|
|
3751
3766
|
// Repository
|
|
3752
|
-
url:
|
|
3767
|
+
url: z125.string(),
|
|
3753
3768
|
// Location
|
|
3754
|
-
branch:
|
|
3755
|
-
relativePath: nullishToOptional(
|
|
3769
|
+
branch: z125.string(),
|
|
3770
|
+
relativePath: nullishToOptional(z125.string()),
|
|
3756
3771
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3757
|
-
connectionId: nullishToOptional(
|
|
3758
|
-
userId: nullishToOptional(
|
|
3772
|
+
connectionId: nullishToOptional(z125.string()),
|
|
3773
|
+
userId: nullishToOptional(z125.number())
|
|
3759
3774
|
});
|
|
3760
|
-
var ExporterDestinationAzure =
|
|
3761
|
-
credentialId:
|
|
3775
|
+
var ExporterDestinationAzure = z125.object({
|
|
3776
|
+
credentialId: z125.string().optional(),
|
|
3762
3777
|
// Repository
|
|
3763
|
-
organizationId:
|
|
3764
|
-
projectId:
|
|
3765
|
-
repositoryId:
|
|
3778
|
+
organizationId: z125.string(),
|
|
3779
|
+
projectId: z125.string(),
|
|
3780
|
+
repositoryId: z125.string(),
|
|
3766
3781
|
// Location
|
|
3767
|
-
branch:
|
|
3768
|
-
relativePath: nullishToOptional(
|
|
3782
|
+
branch: z125.string(),
|
|
3783
|
+
relativePath: nullishToOptional(z125.string()),
|
|
3769
3784
|
// Maybe not needed
|
|
3770
|
-
url: nullishToOptional(
|
|
3785
|
+
url: nullishToOptional(z125.string()),
|
|
3771
3786
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3772
|
-
connectionId: nullishToOptional(
|
|
3773
|
-
userId: nullishToOptional(
|
|
3787
|
+
connectionId: nullishToOptional(z125.string()),
|
|
3788
|
+
userId: nullishToOptional(z125.number())
|
|
3774
3789
|
});
|
|
3775
|
-
var ExporterDestinationGitlab =
|
|
3776
|
-
credentialId:
|
|
3790
|
+
var ExporterDestinationGitlab = z125.object({
|
|
3791
|
+
credentialId: z125.string().optional(),
|
|
3777
3792
|
// Repository
|
|
3778
|
-
projectId:
|
|
3793
|
+
projectId: z125.string(),
|
|
3779
3794
|
// Location
|
|
3780
|
-
branch:
|
|
3781
|
-
relativePath: nullishToOptional(
|
|
3795
|
+
branch: z125.string(),
|
|
3796
|
+
relativePath: nullishToOptional(z125.string()),
|
|
3782
3797
|
// Maybe not needed
|
|
3783
|
-
url: nullishToOptional(
|
|
3798
|
+
url: nullishToOptional(z125.string()),
|
|
3784
3799
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3785
|
-
connectionId: nullishToOptional(
|
|
3786
|
-
userId: nullishToOptional(
|
|
3800
|
+
connectionId: nullishToOptional(z125.string()),
|
|
3801
|
+
userId: nullishToOptional(z125.number())
|
|
3787
3802
|
});
|
|
3788
|
-
var ExporterDestinationBitbucket =
|
|
3789
|
-
credentialId:
|
|
3803
|
+
var ExporterDestinationBitbucket = z125.object({
|
|
3804
|
+
credentialId: z125.string().optional(),
|
|
3790
3805
|
// Repository
|
|
3791
|
-
workspaceSlug:
|
|
3792
|
-
projectKey:
|
|
3793
|
-
repoSlug:
|
|
3806
|
+
workspaceSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3807
|
+
projectKey: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3808
|
+
repoSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3794
3809
|
// Location
|
|
3795
|
-
branch:
|
|
3796
|
-
relativePath: nullishToOptional(
|
|
3810
|
+
branch: z125.string(),
|
|
3811
|
+
relativePath: nullishToOptional(z125.string()),
|
|
3797
3812
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3798
|
-
connectionId: nullishToOptional(
|
|
3799
|
-
userId: nullishToOptional(
|
|
3813
|
+
connectionId: nullishToOptional(z125.string()),
|
|
3814
|
+
userId: nullishToOptional(z125.number())
|
|
3800
3815
|
});
|
|
3801
|
-
var ExportDestinationsMap =
|
|
3802
|
-
webhookUrl:
|
|
3816
|
+
var ExportDestinationsMap = z125.object({
|
|
3817
|
+
webhookUrl: z125.string().optional(),
|
|
3803
3818
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3804
3819
|
destinationS3: ExporterDestinationS3.optional(),
|
|
3805
3820
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -3807,87 +3822,91 @@ var ExportDestinationsMap = z123.object({
|
|
|
3807
3822
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3808
3823
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3809
3824
|
});
|
|
3810
|
-
var PipelineEventType =
|
|
3811
|
-
var PipelineDestinationGitType =
|
|
3812
|
-
var PipelineDestinationExtraType =
|
|
3813
|
-
var PipelineDestinationType =
|
|
3814
|
-
var Pipeline =
|
|
3815
|
-
id:
|
|
3816
|
-
name:
|
|
3825
|
+
var PipelineEventType = z126.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3826
|
+
var PipelineDestinationGitType = z126.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3827
|
+
var PipelineDestinationExtraType = z126.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3828
|
+
var PipelineDestinationType = z126.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3829
|
+
var Pipeline = z126.object({
|
|
3830
|
+
id: z126.string(),
|
|
3831
|
+
name: z126.string(),
|
|
3817
3832
|
eventType: PipelineEventType,
|
|
3818
|
-
isEnabled:
|
|
3819
|
-
workspaceId:
|
|
3820
|
-
designSystemId:
|
|
3821
|
-
exporterId:
|
|
3822
|
-
brandPersistentId:
|
|
3823
|
-
themePersistentId:
|
|
3833
|
+
isEnabled: z126.boolean(),
|
|
3834
|
+
workspaceId: z126.string(),
|
|
3835
|
+
designSystemId: z126.string(),
|
|
3836
|
+
exporterId: z126.string(),
|
|
3837
|
+
brandPersistentId: z126.string().optional(),
|
|
3838
|
+
themePersistentId: z126.string().optional(),
|
|
3824
3839
|
// Destinations
|
|
3825
3840
|
...ExportDestinationsMap.shape
|
|
3826
3841
|
});
|
|
3827
|
-
var ExportJobDump =
|
|
3828
|
-
id:
|
|
3829
|
-
createdAt:
|
|
3830
|
-
finishedAt:
|
|
3831
|
-
exportArtefacts:
|
|
3842
|
+
var ExportJobDump = z127.object({
|
|
3843
|
+
id: z127.string(),
|
|
3844
|
+
createdAt: z127.coerce.date(),
|
|
3845
|
+
finishedAt: z127.coerce.date(),
|
|
3846
|
+
exportArtefacts: z127.string()
|
|
3832
3847
|
});
|
|
3833
|
-
var CodeIntegrationDump =
|
|
3848
|
+
var CodeIntegrationDump = z127.object({
|
|
3834
3849
|
exporters: Exporter.array(),
|
|
3835
3850
|
pipelines: Pipeline.array(),
|
|
3836
3851
|
exportJobs: ExportJobDump.array()
|
|
3837
3852
|
});
|
|
3838
3853
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3839
|
-
designSystemVersionId:
|
|
3840
|
-
liveblocksId:
|
|
3841
|
-
});
|
|
3842
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3843
|
-
routingVersion:
|
|
3844
|
-
isDraftFeatureAdopted:
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3854
|
+
designSystemVersionId: z128.string(),
|
|
3855
|
+
liveblocksId: z128.string()
|
|
3856
|
+
});
|
|
3857
|
+
var DesignSystemVersionRoomInternalSettings = z128.object({
|
|
3858
|
+
routingVersion: z128.string(),
|
|
3859
|
+
isDraftFeatureAdopted: z128.boolean(),
|
|
3860
|
+
isApprovalFeatureEnabled: z128.boolean()
|
|
3861
|
+
});
|
|
3862
|
+
var DesignSystemVersionRoomInitialState = z128.object({
|
|
3863
|
+
pages: z128.array(DocumentationPageV2),
|
|
3864
|
+
groups: z128.array(ElementGroup),
|
|
3865
|
+
pageSnapshots: z128.array(DocumentationPageSnapshot),
|
|
3866
|
+
groupSnapshots: z128.array(ElementGroupSnapshot),
|
|
3867
|
+
pageApprovals: z128.array(DocumentationPageApproval),
|
|
3851
3868
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3852
3869
|
});
|
|
3853
|
-
var DesignSystemVersionRoomUpdate =
|
|
3854
|
-
pages:
|
|
3855
|
-
groups:
|
|
3856
|
-
pageIdsToDelete:
|
|
3857
|
-
groupIdsToDelete:
|
|
3858
|
-
pageSnapshots:
|
|
3859
|
-
groupSnapshots:
|
|
3860
|
-
pageSnapshotIdsToDelete:
|
|
3861
|
-
groupSnapshotIdsToDelete:
|
|
3862
|
-
pageHashesToUpdate:
|
|
3870
|
+
var DesignSystemVersionRoomUpdate = z128.object({
|
|
3871
|
+
pages: z128.array(DocumentationPageV2),
|
|
3872
|
+
groups: z128.array(ElementGroup),
|
|
3873
|
+
pageIdsToDelete: z128.array(z128.string()),
|
|
3874
|
+
groupIdsToDelete: z128.array(z128.string()),
|
|
3875
|
+
pageSnapshots: z128.array(DocumentationPageSnapshot),
|
|
3876
|
+
groupSnapshots: z128.array(ElementGroupSnapshot),
|
|
3877
|
+
pageSnapshotIdsToDelete: z128.array(z128.string()),
|
|
3878
|
+
groupSnapshotIdsToDelete: z128.array(z128.string()),
|
|
3879
|
+
pageHashesToUpdate: z128.record(z128.string(), z128.string()),
|
|
3880
|
+
pageApprovals: z128.array(DocumentationPageApproval),
|
|
3881
|
+
pageApprovalIdsToDelete: z128.array(z128.string())
|
|
3863
3882
|
});
|
|
3864
3883
|
var DocumentationPageRoom = Entity.extend({
|
|
3865
|
-
designSystemVersionId:
|
|
3866
|
-
documentationPageId:
|
|
3867
|
-
liveblocksId:
|
|
3868
|
-
isDirty:
|
|
3884
|
+
designSystemVersionId: z129.string(),
|
|
3885
|
+
documentationPageId: z129.string(),
|
|
3886
|
+
liveblocksId: z129.string(),
|
|
3887
|
+
isDirty: z129.boolean()
|
|
3869
3888
|
});
|
|
3870
|
-
var DocumentationPageRoomState =
|
|
3871
|
-
pageItems:
|
|
3889
|
+
var DocumentationPageRoomState = z129.object({
|
|
3890
|
+
pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3872
3891
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3873
3892
|
});
|
|
3874
|
-
var DocumentationPageRoomRoomUpdate =
|
|
3893
|
+
var DocumentationPageRoomRoomUpdate = z129.object({
|
|
3875
3894
|
page: DocumentationPageV2,
|
|
3876
3895
|
pageParent: ElementGroup
|
|
3877
3896
|
});
|
|
3878
3897
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3879
|
-
pageItems:
|
|
3880
|
-
blockDefinitions:
|
|
3898
|
+
pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3899
|
+
blockDefinitions: z129.array(PageBlockDefinition)
|
|
3881
3900
|
});
|
|
3882
|
-
var RestoredDocumentationPage =
|
|
3901
|
+
var RestoredDocumentationPage = z129.object({
|
|
3883
3902
|
page: DocumentationPageV2,
|
|
3884
3903
|
pageParent: ElementGroup,
|
|
3885
3904
|
pageContent: DocumentationPageContentData,
|
|
3886
|
-
contentHash:
|
|
3887
|
-
snapshotId:
|
|
3888
|
-
roomId:
|
|
3905
|
+
contentHash: z129.string(),
|
|
3906
|
+
snapshotId: z129.string(),
|
|
3907
|
+
roomId: z129.string().optional()
|
|
3889
3908
|
});
|
|
3890
|
-
var RestoredDocumentationGroup =
|
|
3909
|
+
var RestoredDocumentationGroup = z129.object({
|
|
3891
3910
|
group: ElementGroup,
|
|
3892
3911
|
parent: ElementGroup
|
|
3893
3912
|
});
|
|
@@ -3897,28 +3916,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
3897
3916
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3898
3917
|
return RoomTypeEnum2;
|
|
3899
3918
|
})(RoomTypeEnum || {});
|
|
3900
|
-
var RoomTypeSchema =
|
|
3919
|
+
var RoomTypeSchema = z130.nativeEnum(RoomTypeEnum);
|
|
3901
3920
|
var RoomType = RoomTypeSchema.enum;
|
|
3902
3921
|
var WorkspaceRoom = Entity.extend({
|
|
3903
|
-
workspaceId:
|
|
3904
|
-
liveblocksId:
|
|
3922
|
+
workspaceId: z131.string(),
|
|
3923
|
+
liveblocksId: z131.string()
|
|
3905
3924
|
});
|
|
3906
|
-
var PublishedDocsDump =
|
|
3925
|
+
var PublishedDocsDump = z132.object({
|
|
3907
3926
|
documentation: PublishedDoc,
|
|
3908
3927
|
pages: PublishedDocPage.array()
|
|
3909
3928
|
});
|
|
3910
|
-
var DocumentationThreadDump =
|
|
3929
|
+
var DocumentationThreadDump = z133.object({
|
|
3911
3930
|
thread: DocumentationCommentThread,
|
|
3912
3931
|
comments: DocumentationComment.array()
|
|
3913
3932
|
});
|
|
3914
|
-
var DocumentationPageRoomDump =
|
|
3933
|
+
var DocumentationPageRoomDump = z133.object({
|
|
3915
3934
|
room: DocumentationPageRoom,
|
|
3916
3935
|
threads: DocumentationThreadDump.array()
|
|
3917
3936
|
});
|
|
3918
|
-
var DesignSystemVersionMultiplayerDump =
|
|
3937
|
+
var DesignSystemVersionMultiplayerDump = z133.object({
|
|
3919
3938
|
documentationPages: DocumentationPageRoomDump.array()
|
|
3920
3939
|
});
|
|
3921
|
-
var DesignSystemVersionDump =
|
|
3940
|
+
var DesignSystemVersionDump = z133.object({
|
|
3922
3941
|
version: DesignSystemVersion,
|
|
3923
3942
|
brands: Brand.array(),
|
|
3924
3943
|
elements: DesignElement.array(),
|
|
@@ -3931,141 +3950,141 @@ var DesignSystemVersionDump = z131.object({
|
|
|
3931
3950
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
3932
3951
|
assetReferences: AssetReference.array()
|
|
3933
3952
|
});
|
|
3934
|
-
var DesignSystemDump =
|
|
3953
|
+
var DesignSystemDump = z134.object({
|
|
3935
3954
|
designSystem: DesignSystem,
|
|
3936
3955
|
dataSources: DataSource.array(),
|
|
3937
3956
|
versions: DesignSystemVersionDump.array(),
|
|
3938
3957
|
customDomain: CustomDomain.optional(),
|
|
3939
3958
|
files: Asset.array()
|
|
3940
3959
|
});
|
|
3941
|
-
var IntegrationAuthType =
|
|
3942
|
-
var ExternalServiceType =
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3960
|
+
var IntegrationAuthType = z135.union([z135.literal("OAuth2"), z135.literal("PAT")]);
|
|
3961
|
+
var ExternalServiceType = z135.union([
|
|
3962
|
+
z135.literal("figma"),
|
|
3963
|
+
z135.literal("github"),
|
|
3964
|
+
z135.literal("azure"),
|
|
3965
|
+
z135.literal("gitlab"),
|
|
3966
|
+
z135.literal("bitbucket")
|
|
3948
3967
|
]);
|
|
3949
|
-
var IntegrationUserInfo =
|
|
3950
|
-
id:
|
|
3951
|
-
handle:
|
|
3952
|
-
avatarUrl:
|
|
3953
|
-
email:
|
|
3968
|
+
var IntegrationUserInfo = z135.object({
|
|
3969
|
+
id: z135.string(),
|
|
3970
|
+
handle: z135.string().optional(),
|
|
3971
|
+
avatarUrl: z135.string().optional(),
|
|
3972
|
+
email: z135.string().optional(),
|
|
3954
3973
|
authType: IntegrationAuthType.optional(),
|
|
3955
|
-
customUrl:
|
|
3974
|
+
customUrl: z135.string().optional()
|
|
3956
3975
|
});
|
|
3957
|
-
var UserLinkedIntegrations =
|
|
3976
|
+
var UserLinkedIntegrations = z135.object({
|
|
3958
3977
|
figma: IntegrationUserInfo.optional(),
|
|
3959
3978
|
github: IntegrationUserInfo.array().optional(),
|
|
3960
3979
|
azure: IntegrationUserInfo.array().optional(),
|
|
3961
3980
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
3962
3981
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
3963
3982
|
});
|
|
3964
|
-
var UserAnalyticsCleanupSchedule =
|
|
3965
|
-
userId:
|
|
3966
|
-
createdAt:
|
|
3967
|
-
deleteAt:
|
|
3983
|
+
var UserAnalyticsCleanupSchedule = z136.object({
|
|
3984
|
+
userId: z136.string(),
|
|
3985
|
+
createdAt: z136.coerce.date(),
|
|
3986
|
+
deleteAt: z136.coerce.date()
|
|
3968
3987
|
});
|
|
3969
3988
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3970
3989
|
createdAt: true
|
|
3971
3990
|
});
|
|
3972
|
-
var CreateUserInput =
|
|
3973
|
-
email:
|
|
3974
|
-
name:
|
|
3975
|
-
username:
|
|
3991
|
+
var CreateUserInput = z137.object({
|
|
3992
|
+
email: z137.string(),
|
|
3993
|
+
name: z137.string(),
|
|
3994
|
+
username: z137.string()
|
|
3976
3995
|
});
|
|
3977
|
-
var UserIdentity =
|
|
3978
|
-
id:
|
|
3979
|
-
userId:
|
|
3996
|
+
var UserIdentity = z138.object({
|
|
3997
|
+
id: z138.string(),
|
|
3998
|
+
userId: z138.string()
|
|
3980
3999
|
});
|
|
3981
|
-
var UserMinified =
|
|
3982
|
-
id:
|
|
3983
|
-
name:
|
|
3984
|
-
email:
|
|
3985
|
-
avatar:
|
|
4000
|
+
var UserMinified = z139.object({
|
|
4001
|
+
id: z139.string(),
|
|
4002
|
+
name: z139.string(),
|
|
4003
|
+
email: z139.string(),
|
|
4004
|
+
avatar: z139.string().optional()
|
|
3986
4005
|
});
|
|
3987
|
-
var LiveblocksNotificationSettings =
|
|
3988
|
-
sendCommentNotificationEmails:
|
|
4006
|
+
var LiveblocksNotificationSettings = z140.object({
|
|
4007
|
+
sendCommentNotificationEmails: z140.boolean()
|
|
3989
4008
|
});
|
|
3990
|
-
var UserNotificationSettings =
|
|
4009
|
+
var UserNotificationSettings = z140.object({
|
|
3991
4010
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3992
4011
|
});
|
|
3993
|
-
var UserOnboardingDepartment =
|
|
3994
|
-
var UserOnboardingJobLevel =
|
|
3995
|
-
var UserOnboarding =
|
|
3996
|
-
companyName:
|
|
3997
|
-
numberOfPeopleInOrg:
|
|
3998
|
-
numberOfPeopleInDesignTeam:
|
|
4012
|
+
var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4013
|
+
var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4014
|
+
var UserOnboarding = z141.object({
|
|
4015
|
+
companyName: z141.string().optional(),
|
|
4016
|
+
numberOfPeopleInOrg: z141.string().optional(),
|
|
4017
|
+
numberOfPeopleInDesignTeam: z141.string().optional(),
|
|
3999
4018
|
department: UserOnboardingDepartment.optional(),
|
|
4000
|
-
jobTitle:
|
|
4001
|
-
phase:
|
|
4019
|
+
jobTitle: z141.string().optional(),
|
|
4020
|
+
phase: z141.string().optional(),
|
|
4002
4021
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4003
|
-
designSystemName:
|
|
4004
|
-
defaultDestination:
|
|
4005
|
-
figmaUrl:
|
|
4006
|
-
isPageDraftOnboardingFinished:
|
|
4007
|
-
});
|
|
4008
|
-
var UserProfile =
|
|
4009
|
-
name:
|
|
4010
|
-
avatar:
|
|
4011
|
-
nickname:
|
|
4022
|
+
designSystemName: z141.string().optional(),
|
|
4023
|
+
defaultDestination: z141.string().optional(),
|
|
4024
|
+
figmaUrl: z141.string().optional(),
|
|
4025
|
+
isPageDraftOnboardingFinished: z141.boolean().optional()
|
|
4026
|
+
});
|
|
4027
|
+
var UserProfile = z141.object({
|
|
4028
|
+
name: z141.string(),
|
|
4029
|
+
avatar: z141.string().optional(),
|
|
4030
|
+
nickname: z141.string().optional(),
|
|
4012
4031
|
onboarding: UserOnboarding.optional()
|
|
4013
4032
|
});
|
|
4014
4033
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4015
4034
|
avatar: true
|
|
4016
4035
|
});
|
|
4017
|
-
var UserTest =
|
|
4018
|
-
id:
|
|
4019
|
-
email:
|
|
4020
|
-
});
|
|
4021
|
-
var User =
|
|
4022
|
-
id:
|
|
4023
|
-
email:
|
|
4024
|
-
emailVerified:
|
|
4025
|
-
createdAt:
|
|
4026
|
-
trialExpiresAt:
|
|
4036
|
+
var UserTest = z142.object({
|
|
4037
|
+
id: z142.string(),
|
|
4038
|
+
email: z142.string()
|
|
4039
|
+
});
|
|
4040
|
+
var User = z143.object({
|
|
4041
|
+
id: z143.string(),
|
|
4042
|
+
email: z143.string(),
|
|
4043
|
+
emailVerified: z143.boolean(),
|
|
4044
|
+
createdAt: z143.coerce.date(),
|
|
4045
|
+
trialExpiresAt: z143.coerce.date().optional(),
|
|
4027
4046
|
profile: UserProfile,
|
|
4028
4047
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4029
|
-
loggedOutAt:
|
|
4030
|
-
isProtected:
|
|
4031
|
-
});
|
|
4032
|
-
var IntegrationDesignSystem =
|
|
4033
|
-
designSystemId:
|
|
4034
|
-
brandId:
|
|
4035
|
-
title:
|
|
4036
|
-
userId:
|
|
4037
|
-
date:
|
|
4038
|
-
});
|
|
4039
|
-
var IntegrationCredentialsType =
|
|
4040
|
-
var IntegrationCredentialsState =
|
|
4041
|
-
var IntegrationCredentialsProfile =
|
|
4042
|
-
id: nullishToOptional(
|
|
4043
|
-
email: nullishToOptional(
|
|
4044
|
-
handle: nullishToOptional(
|
|
4045
|
-
type: nullishToOptional(
|
|
4046
|
-
avatarUrl: nullishToOptional(
|
|
4047
|
-
organization: nullishToOptional(
|
|
4048
|
-
collection: nullishToOptional(
|
|
4049
|
-
});
|
|
4050
|
-
var IntegrationCredentials =
|
|
4051
|
-
id:
|
|
4048
|
+
loggedOutAt: z143.coerce.date().optional(),
|
|
4049
|
+
isProtected: z143.boolean()
|
|
4050
|
+
});
|
|
4051
|
+
var IntegrationDesignSystem = z144.object({
|
|
4052
|
+
designSystemId: z144.string(),
|
|
4053
|
+
brandId: z144.string(),
|
|
4054
|
+
title: z144.string().optional(),
|
|
4055
|
+
userId: z144.string().optional(),
|
|
4056
|
+
date: z144.coerce.date().optional()
|
|
4057
|
+
});
|
|
4058
|
+
var IntegrationCredentialsType = z144.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4059
|
+
var IntegrationCredentialsState = z144.enum(["Active", "Inactive"]);
|
|
4060
|
+
var IntegrationCredentialsProfile = z144.object({
|
|
4061
|
+
id: nullishToOptional(z144.string()),
|
|
4062
|
+
email: nullishToOptional(z144.string()),
|
|
4063
|
+
handle: nullishToOptional(z144.string()),
|
|
4064
|
+
type: nullishToOptional(z144.string()),
|
|
4065
|
+
avatarUrl: nullishToOptional(z144.string()),
|
|
4066
|
+
organization: nullishToOptional(z144.string()),
|
|
4067
|
+
collection: nullishToOptional(z144.string())
|
|
4068
|
+
});
|
|
4069
|
+
var IntegrationCredentials = z144.object({
|
|
4070
|
+
id: z144.string(),
|
|
4052
4071
|
type: IntegrationCredentialsType,
|
|
4053
|
-
integrationId:
|
|
4054
|
-
accessToken:
|
|
4055
|
-
userId:
|
|
4056
|
-
createdAt:
|
|
4057
|
-
refreshToken:
|
|
4058
|
-
tokenName:
|
|
4059
|
-
expiresAt:
|
|
4060
|
-
refreshedAt:
|
|
4061
|
-
username:
|
|
4062
|
-
appInstallationId:
|
|
4072
|
+
integrationId: z144.string(),
|
|
4073
|
+
accessToken: z144.string(),
|
|
4074
|
+
userId: z144.string(),
|
|
4075
|
+
createdAt: z144.coerce.date(),
|
|
4076
|
+
refreshToken: z144.string().optional(),
|
|
4077
|
+
tokenName: z144.string().optional(),
|
|
4078
|
+
expiresAt: z144.coerce.date().optional(),
|
|
4079
|
+
refreshedAt: z144.coerce.date().optional(),
|
|
4080
|
+
username: z144.string().optional(),
|
|
4081
|
+
appInstallationId: z144.string().optional(),
|
|
4063
4082
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4064
|
-
customUrl:
|
|
4083
|
+
customUrl: z144.string().optional(),
|
|
4065
4084
|
state: IntegrationCredentialsState,
|
|
4066
4085
|
user: UserMinified.optional()
|
|
4067
4086
|
});
|
|
4068
|
-
var ExtendedIntegrationType =
|
|
4087
|
+
var ExtendedIntegrationType = z144.enum([
|
|
4069
4088
|
"Figma",
|
|
4070
4089
|
"Github",
|
|
4071
4090
|
"Gitlab",
|
|
@@ -4076,26 +4095,26 @@ var ExtendedIntegrationType = z142.enum([
|
|
|
4076
4095
|
]);
|
|
4077
4096
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4078
4097
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4079
|
-
var Integration =
|
|
4080
|
-
id:
|
|
4081
|
-
workspaceId:
|
|
4098
|
+
var Integration = z144.object({
|
|
4099
|
+
id: z144.string(),
|
|
4100
|
+
workspaceId: z144.string(),
|
|
4082
4101
|
type: IntegrationType,
|
|
4083
|
-
createdAt:
|
|
4084
|
-
integrationCredentials:
|
|
4085
|
-
});
|
|
4086
|
-
var IntegrationToken =
|
|
4087
|
-
access_token:
|
|
4088
|
-
refresh_token:
|
|
4089
|
-
expires_in:
|
|
4090
|
-
token_type:
|
|
4091
|
-
token_name:
|
|
4092
|
-
token_azure_organization_name:
|
|
4102
|
+
createdAt: z144.coerce.date(),
|
|
4103
|
+
integrationCredentials: z144.array(IntegrationCredentials).optional()
|
|
4104
|
+
});
|
|
4105
|
+
var IntegrationToken = z144.object({
|
|
4106
|
+
access_token: z144.string(),
|
|
4107
|
+
refresh_token: z144.string().optional(),
|
|
4108
|
+
expires_in: z144.union([z144.number().optional(), z144.string().optional()]),
|
|
4109
|
+
token_type: z144.string().optional(),
|
|
4110
|
+
token_name: z144.string().optional(),
|
|
4111
|
+
token_azure_organization_name: z144.string().optional(),
|
|
4093
4112
|
// Azure Cloud PAT only
|
|
4094
|
-
token_azure_collection_name:
|
|
4113
|
+
token_azure_collection_name: z144.string().optional(),
|
|
4095
4114
|
// Azure Server PAT only
|
|
4096
|
-
token_bitbucket_username:
|
|
4115
|
+
token_bitbucket_username: z144.string().optional(),
|
|
4097
4116
|
// Bitbucket only
|
|
4098
|
-
custom_url:
|
|
4117
|
+
custom_url: z144.string().optional().transform((value) => {
|
|
4099
4118
|
if (!value?.trim())
|
|
4100
4119
|
return void 0;
|
|
4101
4120
|
return formatCustomUrl(value);
|
|
@@ -4131,76 +4150,76 @@ function formatCustomUrl(url) {
|
|
|
4131
4150
|
}
|
|
4132
4151
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4133
4152
|
}
|
|
4134
|
-
var WorkspaceDump =
|
|
4153
|
+
var WorkspaceDump = z145.object({
|
|
4135
4154
|
workspace: Workspace,
|
|
4136
4155
|
designSystems: DesignSystemDump.array(),
|
|
4137
4156
|
codeIntegration: CodeIntegrationDump,
|
|
4138
4157
|
integrations: Integration.array()
|
|
4139
4158
|
});
|
|
4140
|
-
var UserDump =
|
|
4159
|
+
var UserDump = z146.object({
|
|
4141
4160
|
user: User,
|
|
4142
4161
|
workspaces: WorkspaceDump.array()
|
|
4143
4162
|
});
|
|
4144
|
-
var NpmProxyToken =
|
|
4145
|
-
access:
|
|
4146
|
-
expiresAt:
|
|
4163
|
+
var NpmProxyToken = z147.object({
|
|
4164
|
+
access: z147.string(),
|
|
4165
|
+
expiresAt: z147.number()
|
|
4147
4166
|
});
|
|
4148
|
-
var SessionData =
|
|
4149
|
-
returnToUrl:
|
|
4167
|
+
var SessionData = z147.object({
|
|
4168
|
+
returnToUrl: z147.string().optional(),
|
|
4150
4169
|
npmProxyToken: NpmProxyToken.optional()
|
|
4151
4170
|
});
|
|
4152
|
-
var Session =
|
|
4153
|
-
id:
|
|
4154
|
-
expiresAt:
|
|
4155
|
-
userId:
|
|
4171
|
+
var Session = z147.object({
|
|
4172
|
+
id: z147.string(),
|
|
4173
|
+
expiresAt: z147.coerce.date(),
|
|
4174
|
+
userId: z147.string().nullable(),
|
|
4156
4175
|
data: SessionData
|
|
4157
4176
|
});
|
|
4158
|
-
var AuthTokens =
|
|
4159
|
-
access:
|
|
4160
|
-
refresh:
|
|
4177
|
+
var AuthTokens = z147.object({
|
|
4178
|
+
access: z147.string(),
|
|
4179
|
+
refresh: z147.string()
|
|
4161
4180
|
});
|
|
4162
|
-
var UserSession =
|
|
4181
|
+
var UserSession = z147.object({
|
|
4163
4182
|
session: Session,
|
|
4164
4183
|
user: User.nullable()
|
|
4165
4184
|
});
|
|
4166
|
-
var EventDataSourceImported =
|
|
4167
|
-
type:
|
|
4168
|
-
workspaceId:
|
|
4169
|
-
designSystemId:
|
|
4170
|
-
});
|
|
4171
|
-
var EventVersionReleased = z147.object({
|
|
4172
|
-
type: z147.literal("DesignSystemVersionReleased"),
|
|
4173
|
-
workspaceId: z147.string(),
|
|
4174
|
-
designSystemId: z147.string(),
|
|
4175
|
-
versionId: z147.string()
|
|
4176
|
-
});
|
|
4177
|
-
var Event = z148.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4178
|
-
var ExportJobDocumentationContext = z149.object({
|
|
4179
|
-
isSingleVersionDocs: z149.boolean(),
|
|
4180
|
-
versionSlug: z149.string(),
|
|
4181
|
-
environment: PublishedDocEnvironment
|
|
4185
|
+
var EventDataSourceImported = z148.object({
|
|
4186
|
+
type: z148.literal("DataSourceImported"),
|
|
4187
|
+
workspaceId: z148.string(),
|
|
4188
|
+
designSystemId: z148.string()
|
|
4182
4189
|
});
|
|
4183
|
-
var
|
|
4184
|
-
|
|
4185
|
-
|
|
4190
|
+
var EventVersionReleased = z149.object({
|
|
4191
|
+
type: z149.literal("DesignSystemVersionReleased"),
|
|
4192
|
+
workspaceId: z149.string(),
|
|
4186
4193
|
designSystemId: z149.string(),
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
+
versionId: z149.string()
|
|
4195
|
+
});
|
|
4196
|
+
var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4197
|
+
var ExportJobDocumentationContext = z151.object({
|
|
4198
|
+
isSingleVersionDocs: z151.boolean(),
|
|
4199
|
+
versionSlug: z151.string(),
|
|
4200
|
+
environment: PublishedDocEnvironment
|
|
4201
|
+
});
|
|
4202
|
+
var ExportJobContext = z151.object({
|
|
4203
|
+
apiUrl: z151.string(),
|
|
4204
|
+
accessToken: z151.string(),
|
|
4205
|
+
designSystemId: z151.string(),
|
|
4206
|
+
designSystemName: z151.string(),
|
|
4207
|
+
exporterId: z151.string(),
|
|
4208
|
+
versionId: z151.string(),
|
|
4209
|
+
brandId: z151.string().optional(),
|
|
4210
|
+
themeId: z151.string().optional(),
|
|
4211
|
+
exporterName: z151.string(),
|
|
4212
|
+
exporterPackageUrl: z151.string(),
|
|
4194
4213
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4195
4214
|
documentation: ExportJobDocumentationContext.optional()
|
|
4196
4215
|
});
|
|
4197
|
-
var ExporterFunctionPayload =
|
|
4198
|
-
exportJobId:
|
|
4199
|
-
exportContextId:
|
|
4200
|
-
designSystemId:
|
|
4201
|
-
workspaceId:
|
|
4216
|
+
var ExporterFunctionPayload = z152.object({
|
|
4217
|
+
exportJobId: z152.string(),
|
|
4218
|
+
exportContextId: z152.string(),
|
|
4219
|
+
designSystemId: z152.string(),
|
|
4220
|
+
workspaceId: z152.string()
|
|
4202
4221
|
});
|
|
4203
|
-
var ExportJobDestinationType =
|
|
4222
|
+
var ExportJobDestinationType = z153.enum([
|
|
4204
4223
|
"s3",
|
|
4205
4224
|
"webhookUrl",
|
|
4206
4225
|
"github",
|
|
@@ -4209,30 +4228,30 @@ var ExportJobDestinationType = z151.enum([
|
|
|
4209
4228
|
"gitlab",
|
|
4210
4229
|
"bitbucket"
|
|
4211
4230
|
]);
|
|
4212
|
-
var ExportJobStatus =
|
|
4213
|
-
var ExportJobLogEntryType =
|
|
4214
|
-
var ExportJobLogEntry =
|
|
4215
|
-
id:
|
|
4216
|
-
time:
|
|
4231
|
+
var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4232
|
+
var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
|
|
4233
|
+
var ExportJobLogEntry = z153.object({
|
|
4234
|
+
id: z153.string().optional(),
|
|
4235
|
+
time: z153.coerce.date(),
|
|
4217
4236
|
type: ExportJobLogEntryType,
|
|
4218
|
-
message:
|
|
4237
|
+
message: z153.string()
|
|
4219
4238
|
});
|
|
4220
|
-
var ExportJobPullRequestDestinationResult =
|
|
4221
|
-
pullRequestUrl:
|
|
4239
|
+
var ExportJobPullRequestDestinationResult = z153.object({
|
|
4240
|
+
pullRequestUrl: z153.string()
|
|
4222
4241
|
});
|
|
4223
|
-
var ExportJobS3DestinationResult =
|
|
4224
|
-
bucket:
|
|
4225
|
-
urlPrefix:
|
|
4226
|
-
path:
|
|
4227
|
-
files:
|
|
4228
|
-
url: nullishToOptional(
|
|
4229
|
-
urls: nullishToOptional(
|
|
4242
|
+
var ExportJobS3DestinationResult = z153.object({
|
|
4243
|
+
bucket: z153.string(),
|
|
4244
|
+
urlPrefix: z153.string().optional(),
|
|
4245
|
+
path: z153.string(),
|
|
4246
|
+
files: z153.array(z153.string()),
|
|
4247
|
+
url: nullishToOptional(z153.string()),
|
|
4248
|
+
urls: nullishToOptional(z153.string().array())
|
|
4230
4249
|
});
|
|
4231
|
-
var ExportJobDocsDestinationResult =
|
|
4232
|
-
url:
|
|
4250
|
+
var ExportJobDocsDestinationResult = z153.object({
|
|
4251
|
+
url: z153.string()
|
|
4233
4252
|
});
|
|
4234
|
-
var ExportJobResult =
|
|
4235
|
-
error:
|
|
4253
|
+
var ExportJobResult = z153.object({
|
|
4254
|
+
error: z153.string().optional(),
|
|
4236
4255
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4237
4256
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4238
4257
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4241,21 +4260,21 @@ var ExportJobResult = z151.object({
|
|
|
4241
4260
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4242
4261
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4243
4262
|
});
|
|
4244
|
-
var ExportJob =
|
|
4245
|
-
id:
|
|
4246
|
-
createdAt:
|
|
4247
|
-
finishedAt:
|
|
4248
|
-
designSystemId:
|
|
4249
|
-
designSystemVersionId:
|
|
4250
|
-
workspaceId:
|
|
4251
|
-
scheduleId:
|
|
4252
|
-
exporterId:
|
|
4253
|
-
brandId:
|
|
4254
|
-
themeId:
|
|
4255
|
-
estimatedExecutionTime:
|
|
4263
|
+
var ExportJob = z153.object({
|
|
4264
|
+
id: z153.string(),
|
|
4265
|
+
createdAt: z153.coerce.date(),
|
|
4266
|
+
finishedAt: z153.coerce.date().optional(),
|
|
4267
|
+
designSystemId: z153.string(),
|
|
4268
|
+
designSystemVersionId: z153.string(),
|
|
4269
|
+
workspaceId: z153.string(),
|
|
4270
|
+
scheduleId: z153.string().nullish(),
|
|
4271
|
+
exporterId: z153.string(),
|
|
4272
|
+
brandId: z153.string().optional(),
|
|
4273
|
+
themeId: z153.string().optional(),
|
|
4274
|
+
estimatedExecutionTime: z153.number().optional(),
|
|
4256
4275
|
status: ExportJobStatus,
|
|
4257
4276
|
result: ExportJobResult.optional(),
|
|
4258
|
-
createdByUserId:
|
|
4277
|
+
createdByUserId: z153.string().optional(),
|
|
4259
4278
|
// Destinations
|
|
4260
4279
|
...ExportDestinationsMap.shape
|
|
4261
4280
|
});
|
|
@@ -4269,24 +4288,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4269
4288
|
themeId: true,
|
|
4270
4289
|
brandId: true
|
|
4271
4290
|
}).extend({
|
|
4272
|
-
destinations:
|
|
4291
|
+
destinations: z153.array(ExportJobDestinationType),
|
|
4273
4292
|
docsEnvironment: PublishedDocEnvironment
|
|
4274
4293
|
}).partial();
|
|
4275
|
-
var ExporterWorkspaceMembershipRole =
|
|
4276
|
-
var ExporterWorkspaceMembership =
|
|
4277
|
-
id:
|
|
4278
|
-
workspaceId:
|
|
4279
|
-
exporterId:
|
|
4294
|
+
var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
|
|
4295
|
+
var ExporterWorkspaceMembership = z155.object({
|
|
4296
|
+
id: z155.string(),
|
|
4297
|
+
workspaceId: z155.string(),
|
|
4298
|
+
exporterId: z155.string(),
|
|
4280
4299
|
role: ExporterWorkspaceMembershipRole
|
|
4281
4300
|
});
|
|
4282
|
-
var FlaggedFeature =
|
|
4283
|
-
var FeatureFlagMap =
|
|
4284
|
-
var FeatureFlag =
|
|
4285
|
-
id:
|
|
4301
|
+
var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
4302
|
+
var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
|
|
4303
|
+
var FeatureFlag = z156.object({
|
|
4304
|
+
id: z156.string(),
|
|
4286
4305
|
feature: FlaggedFeature,
|
|
4287
|
-
createdAt:
|
|
4288
|
-
enabled:
|
|
4289
|
-
designSystemId:
|
|
4306
|
+
createdAt: z156.coerce.date(),
|
|
4307
|
+
enabled: z156.boolean(),
|
|
4308
|
+
designSystemId: z156.string().optional()
|
|
4290
4309
|
});
|
|
4291
4310
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4292
4311
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4296,173 +4315,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4296
4315
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4297
4316
|
return OAuthProviderNames2;
|
|
4298
4317
|
})(OAuthProviderNames || {});
|
|
4299
|
-
var OAuthProviderSchema =
|
|
4318
|
+
var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
|
|
4300
4319
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4301
|
-
var ExternalOAuthRequest =
|
|
4302
|
-
id:
|
|
4320
|
+
var ExternalOAuthRequest = z158.object({
|
|
4321
|
+
id: z158.string(),
|
|
4303
4322
|
provider: OAuthProviderSchema,
|
|
4304
|
-
userId:
|
|
4305
|
-
state:
|
|
4306
|
-
createdAt:
|
|
4323
|
+
userId: z158.string(),
|
|
4324
|
+
state: z158.string(),
|
|
4325
|
+
createdAt: z158.coerce.date()
|
|
4307
4326
|
});
|
|
4308
|
-
var GitObjectsQuery =
|
|
4309
|
-
organization:
|
|
4327
|
+
var GitObjectsQuery = z159.object({
|
|
4328
|
+
organization: z159.string().optional(),
|
|
4310
4329
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4311
|
-
project:
|
|
4330
|
+
project: z159.string().optional(),
|
|
4312
4331
|
// Only for Bitbucket and Azure
|
|
4313
|
-
repository:
|
|
4332
|
+
repository: z159.string().optional(),
|
|
4314
4333
|
// For all providers. For Gitlab, it's called "project".
|
|
4315
|
-
branch:
|
|
4334
|
+
branch: z159.string().optional(),
|
|
4316
4335
|
// For all providers.
|
|
4317
|
-
user:
|
|
4336
|
+
user: z159.string().optional()
|
|
4318
4337
|
// Gitlab user
|
|
4319
4338
|
});
|
|
4320
|
-
var GitOrganization =
|
|
4321
|
-
id:
|
|
4322
|
-
name:
|
|
4323
|
-
url:
|
|
4324
|
-
slug:
|
|
4325
|
-
});
|
|
4326
|
-
var GitProject =
|
|
4327
|
-
id:
|
|
4328
|
-
name:
|
|
4329
|
-
url:
|
|
4330
|
-
slug:
|
|
4331
|
-
});
|
|
4332
|
-
var GitRepository =
|
|
4333
|
-
id:
|
|
4334
|
-
name:
|
|
4335
|
-
url:
|
|
4336
|
-
slug:
|
|
4339
|
+
var GitOrganization = z159.object({
|
|
4340
|
+
id: z159.string(),
|
|
4341
|
+
name: z159.string(),
|
|
4342
|
+
url: z159.string(),
|
|
4343
|
+
slug: z159.string()
|
|
4344
|
+
});
|
|
4345
|
+
var GitProject = z159.object({
|
|
4346
|
+
id: z159.string(),
|
|
4347
|
+
name: z159.string(),
|
|
4348
|
+
url: z159.string(),
|
|
4349
|
+
slug: z159.string()
|
|
4350
|
+
});
|
|
4351
|
+
var GitRepository = z159.object({
|
|
4352
|
+
id: z159.string(),
|
|
4353
|
+
name: z159.string(),
|
|
4354
|
+
url: z159.string(),
|
|
4355
|
+
slug: z159.string(),
|
|
4337
4356
|
/**
|
|
4338
4357
|
* Can be undefined when:
|
|
4339
4358
|
* - there are no branches in the repository yet
|
|
4340
4359
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4341
4360
|
*/
|
|
4342
|
-
defaultBranch:
|
|
4361
|
+
defaultBranch: z159.string().optional()
|
|
4343
4362
|
});
|
|
4344
|
-
var GitBranch =
|
|
4345
|
-
name:
|
|
4346
|
-
lastCommitId:
|
|
4363
|
+
var GitBranch = z159.object({
|
|
4364
|
+
name: z159.string(),
|
|
4365
|
+
lastCommitId: z159.string()
|
|
4347
4366
|
});
|
|
4348
|
-
var IntegrationTokenSchemaOld =
|
|
4349
|
-
id:
|
|
4367
|
+
var IntegrationTokenSchemaOld = z160.object({
|
|
4368
|
+
id: z160.string(),
|
|
4350
4369
|
provider: OAuthProviderSchema,
|
|
4351
|
-
scope:
|
|
4352
|
-
userId:
|
|
4353
|
-
accessToken:
|
|
4354
|
-
refreshToken:
|
|
4355
|
-
expiresAt:
|
|
4356
|
-
externalUserId:
|
|
4357
|
-
});
|
|
4358
|
-
var WorkspaceOAuthRequestSchema =
|
|
4359
|
-
id:
|
|
4360
|
-
workspaceId:
|
|
4370
|
+
scope: z160.string(),
|
|
4371
|
+
userId: z160.string(),
|
|
4372
|
+
accessToken: z160.string(),
|
|
4373
|
+
refreshToken: z160.string(),
|
|
4374
|
+
expiresAt: z160.coerce.date(),
|
|
4375
|
+
externalUserId: z160.string().nullish()
|
|
4376
|
+
});
|
|
4377
|
+
var WorkspaceOAuthRequestSchema = z161.object({
|
|
4378
|
+
id: z161.string(),
|
|
4379
|
+
workspaceId: z161.string(),
|
|
4361
4380
|
provider: OAuthProviderSchema,
|
|
4362
|
-
userId:
|
|
4363
|
-
createdAt:
|
|
4381
|
+
userId: z161.string(),
|
|
4382
|
+
createdAt: z161.coerce.date()
|
|
4364
4383
|
});
|
|
4365
|
-
var AnyRecord =
|
|
4384
|
+
var AnyRecord = z162.record(z162.any());
|
|
4366
4385
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4367
|
-
|
|
4368
|
-
tarball:
|
|
4386
|
+
z162.object({
|
|
4387
|
+
tarball: z162.string()
|
|
4369
4388
|
})
|
|
4370
4389
|
);
|
|
4371
4390
|
var NpmPackageVersion = AnyRecord.and(
|
|
4372
|
-
|
|
4391
|
+
z162.object({
|
|
4373
4392
|
dist: NpmPackageVersionDist
|
|
4374
4393
|
})
|
|
4375
4394
|
);
|
|
4376
4395
|
var NpmPackage = AnyRecord.and(
|
|
4377
|
-
|
|
4378
|
-
_id:
|
|
4379
|
-
name:
|
|
4396
|
+
z162.object({
|
|
4397
|
+
_id: z162.string(),
|
|
4398
|
+
name: z162.string(),
|
|
4380
4399
|
// e.g. "latest": "1.2.3"
|
|
4381
|
-
"dist-tags":
|
|
4400
|
+
"dist-tags": z162.record(z162.string(), z162.string()),
|
|
4382
4401
|
// "1.2.3": {...}
|
|
4383
|
-
versions:
|
|
4402
|
+
versions: z162.record(NpmPackageVersion)
|
|
4384
4403
|
})
|
|
4385
4404
|
);
|
|
4386
|
-
var NpmProxyTokenPayload =
|
|
4387
|
-
npmProxyRegistryConfigId:
|
|
4405
|
+
var NpmProxyTokenPayload = z163.object({
|
|
4406
|
+
npmProxyRegistryConfigId: z163.string()
|
|
4388
4407
|
});
|
|
4389
|
-
var WorkspaceRoleSchema =
|
|
4408
|
+
var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4390
4409
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4391
4410
|
var MAX_MEMBERS_COUNT = 100;
|
|
4392
|
-
var UserInvite =
|
|
4393
|
-
email:
|
|
4411
|
+
var UserInvite = z165.object({
|
|
4412
|
+
email: z165.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4394
4413
|
role: WorkspaceRoleSchema
|
|
4395
4414
|
});
|
|
4396
|
-
var UserInvites =
|
|
4397
|
-
var WorkspaceConfigurationUpdate =
|
|
4398
|
-
id:
|
|
4415
|
+
var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4416
|
+
var WorkspaceConfigurationUpdate = z166.object({
|
|
4417
|
+
id: z166.string(),
|
|
4399
4418
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4400
4419
|
sso: SsoProvider.optional(),
|
|
4401
4420
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4402
4421
|
profile: WorkspaceProfileUpdate.optional()
|
|
4403
4422
|
});
|
|
4404
|
-
var WorkspaceContext =
|
|
4405
|
-
workspaceId:
|
|
4423
|
+
var WorkspaceContext = z167.object({
|
|
4424
|
+
workspaceId: z167.string(),
|
|
4406
4425
|
product: ProductCodeSchema,
|
|
4407
4426
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4408
|
-
publicDesignSystem:
|
|
4427
|
+
publicDesignSystem: z167.boolean().optional()
|
|
4409
4428
|
});
|
|
4410
4429
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4411
4430
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4412
4431
|
var HANDLE_MIN_LENGTH = 2;
|
|
4413
4432
|
var HANDLE_MAX_LENGTH = 64;
|
|
4414
|
-
var CreateWorkspaceInput =
|
|
4415
|
-
name:
|
|
4433
|
+
var CreateWorkspaceInput = z168.object({
|
|
4434
|
+
name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4416
4435
|
product: ProductCodeSchema,
|
|
4417
|
-
priceId:
|
|
4418
|
-
billingEmail:
|
|
4419
|
-
handle:
|
|
4436
|
+
priceId: z168.string(),
|
|
4437
|
+
billingEmail: z168.string().email().optional(),
|
|
4438
|
+
handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4420
4439
|
invites: UserInvites.optional(),
|
|
4421
|
-
promoCode:
|
|
4440
|
+
promoCode: z168.string().optional(),
|
|
4422
4441
|
status: InternalStatusSchema.optional(),
|
|
4423
4442
|
planInterval: BillingIntervalSchema.optional(),
|
|
4424
|
-
seats:
|
|
4425
|
-
seatLimit:
|
|
4443
|
+
seats: z168.number().optional(),
|
|
4444
|
+
seatLimit: z168.number().optional(),
|
|
4426
4445
|
card: CardSchema.optional(),
|
|
4427
4446
|
sso: SsoProvider.optional(),
|
|
4428
4447
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4429
4448
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4430
4449
|
});
|
|
4431
|
-
var WorkspaceInvitation =
|
|
4432
|
-
id:
|
|
4433
|
-
email:
|
|
4434
|
-
createdAt:
|
|
4435
|
-
resentAt:
|
|
4436
|
-
role:
|
|
4437
|
-
workspaceId:
|
|
4438
|
-
invitedBy:
|
|
4439
|
-
});
|
|
4440
|
-
var WorkspaceMembership =
|
|
4441
|
-
id:
|
|
4442
|
-
userId:
|
|
4443
|
-
workspaceId:
|
|
4444
|
-
workspaceRole:
|
|
4450
|
+
var WorkspaceInvitation = z169.object({
|
|
4451
|
+
id: z169.string(),
|
|
4452
|
+
email: z169.string().email(),
|
|
4453
|
+
createdAt: z169.coerce.date(),
|
|
4454
|
+
resentAt: z169.coerce.date().nullish(),
|
|
4455
|
+
role: z169.nativeEnum(WorkspaceRole),
|
|
4456
|
+
workspaceId: z169.string(),
|
|
4457
|
+
invitedBy: z169.string()
|
|
4458
|
+
});
|
|
4459
|
+
var WorkspaceMembership = z170.object({
|
|
4460
|
+
id: z170.string(),
|
|
4461
|
+
userId: z170.string(),
|
|
4462
|
+
workspaceId: z170.string(),
|
|
4463
|
+
workspaceRole: z170.nativeEnum(WorkspaceRole),
|
|
4445
4464
|
notificationSettings: UserNotificationSettings
|
|
4446
4465
|
});
|
|
4447
|
-
var UpdateMembershipRolesInput =
|
|
4448
|
-
members:
|
|
4449
|
-
|
|
4450
|
-
userId:
|
|
4451
|
-
role:
|
|
4466
|
+
var UpdateMembershipRolesInput = z170.object({
|
|
4467
|
+
members: z170.array(
|
|
4468
|
+
z170.object({
|
|
4469
|
+
userId: z170.string(),
|
|
4470
|
+
role: z170.nativeEnum(WorkspaceRole)
|
|
4452
4471
|
})
|
|
4453
4472
|
)
|
|
4454
4473
|
});
|
|
4455
|
-
var PersonalAccessToken =
|
|
4456
|
-
id:
|
|
4457
|
-
userId:
|
|
4458
|
-
workspaceId:
|
|
4474
|
+
var PersonalAccessToken = z171.object({
|
|
4475
|
+
id: z171.string(),
|
|
4476
|
+
userId: z171.string(),
|
|
4477
|
+
workspaceId: z171.string().optional(),
|
|
4459
4478
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4460
|
-
name:
|
|
4461
|
-
hidden:
|
|
4462
|
-
token:
|
|
4463
|
-
scope:
|
|
4464
|
-
createdAt:
|
|
4465
|
-
expireAt:
|
|
4479
|
+
name: z171.string(),
|
|
4480
|
+
hidden: z171.boolean(),
|
|
4481
|
+
token: z171.string(),
|
|
4482
|
+
scope: z171.string().optional(),
|
|
4483
|
+
createdAt: z171.coerce.date(),
|
|
4484
|
+
expireAt: z171.coerce.date().optional()
|
|
4466
4485
|
});
|
|
4467
4486
|
|
|
4468
4487
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -4878,163 +4897,163 @@ function integrationCredentialToDto(credential) {
|
|
|
4878
4897
|
}
|
|
4879
4898
|
|
|
4880
4899
|
// src/api/dto/aux/pagination.ts
|
|
4881
|
-
import { z as
|
|
4882
|
-
var DTOPagination =
|
|
4883
|
-
limit:
|
|
4884
|
-
offset:
|
|
4900
|
+
import { z as z172 } from "zod";
|
|
4901
|
+
var DTOPagination = z172.object({
|
|
4902
|
+
limit: z172.string().optional(),
|
|
4903
|
+
offset: z172.string().optional()
|
|
4885
4904
|
});
|
|
4886
4905
|
|
|
4887
4906
|
// src/api/dto/design-systems/brand.ts
|
|
4888
|
-
import { z as
|
|
4889
|
-
var DTOBrand =
|
|
4890
|
-
id:
|
|
4891
|
-
designSystemVersionId:
|
|
4892
|
-
persistentId:
|
|
4907
|
+
import { z as z173 } from "zod";
|
|
4908
|
+
var DTOBrand = z173.object({
|
|
4909
|
+
id: z173.string(),
|
|
4910
|
+
designSystemVersionId: z173.string(),
|
|
4911
|
+
persistentId: z173.string(),
|
|
4893
4912
|
meta: ObjectMeta
|
|
4894
4913
|
});
|
|
4895
|
-
var DTOBrandGetResponse =
|
|
4896
|
-
var DTOBrandCreateResponse =
|
|
4914
|
+
var DTOBrandGetResponse = z173.object({ brand: DTOBrand });
|
|
4915
|
+
var DTOBrandCreateResponse = z173.object({
|
|
4897
4916
|
brand: DTOBrand
|
|
4898
4917
|
});
|
|
4899
|
-
var DTOBrandsListResponse =
|
|
4918
|
+
var DTOBrandsListResponse = z173.object({ brands: z173.array(DTOBrand) });
|
|
4900
4919
|
|
|
4901
4920
|
// src/api/dto/design-systems/data-source.ts
|
|
4902
|
-
import { z as
|
|
4903
|
-
var DTODataSourceFigmaFileVersion =
|
|
4904
|
-
id:
|
|
4905
|
-
created_at:
|
|
4906
|
-
label:
|
|
4907
|
-
description:
|
|
4908
|
-
});
|
|
4909
|
-
var DTODataSourceFigmaCloud =
|
|
4910
|
-
fileId:
|
|
4921
|
+
import { z as z174 } from "zod";
|
|
4922
|
+
var DTODataSourceFigmaFileVersion = z174.object({
|
|
4923
|
+
id: z174.string(),
|
|
4924
|
+
created_at: z174.coerce.date(),
|
|
4925
|
+
label: z174.string(),
|
|
4926
|
+
description: z174.string()
|
|
4927
|
+
});
|
|
4928
|
+
var DTODataSourceFigmaCloud = z174.object({
|
|
4929
|
+
fileId: z174.string(),
|
|
4911
4930
|
state: DataSourceFigmaState,
|
|
4912
4931
|
autoImportMode: DataSourceAutoImportMode,
|
|
4913
|
-
fileThumbnailUrl:
|
|
4932
|
+
fileThumbnailUrl: z174.string().optional(),
|
|
4914
4933
|
lastImportResult: SourceImportSummary.nullish(),
|
|
4915
|
-
lastImportedAt:
|
|
4934
|
+
lastImportedAt: z174.date().nullish(),
|
|
4916
4935
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
4917
|
-
lastUpdatesCheckedAt:
|
|
4918
|
-
ownerId:
|
|
4919
|
-
ownerUserName:
|
|
4920
|
-
preferredCredentialId:
|
|
4936
|
+
lastUpdatesCheckedAt: z174.date().nullish(),
|
|
4937
|
+
ownerId: z174.string(),
|
|
4938
|
+
ownerUserName: z174.string().optional(),
|
|
4939
|
+
preferredCredentialId: z174.string().optional(),
|
|
4921
4940
|
stats: DataSourceStats
|
|
4922
4941
|
});
|
|
4923
|
-
var DTODataSourceFigma =
|
|
4924
|
-
id:
|
|
4925
|
-
type:
|
|
4926
|
-
fileName:
|
|
4942
|
+
var DTODataSourceFigma = z174.object({
|
|
4943
|
+
id: z174.string(),
|
|
4944
|
+
type: z174.literal(DataSourceRemoteType.Enum.Figma),
|
|
4945
|
+
fileName: z174.string(),
|
|
4927
4946
|
scope: DataSourceFigmaScope,
|
|
4928
|
-
brandId:
|
|
4929
|
-
themeId:
|
|
4947
|
+
brandId: z174.string(),
|
|
4948
|
+
themeId: z174.string().nullish(),
|
|
4930
4949
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
4931
|
-
tokenStudio:
|
|
4932
|
-
upload:
|
|
4933
|
-
figmaVariablesPlugin:
|
|
4934
|
-
});
|
|
4935
|
-
var DTODataSourceTokenStudio =
|
|
4936
|
-
id:
|
|
4937
|
-
type:
|
|
4938
|
-
fileName:
|
|
4939
|
-
brandId:
|
|
4940
|
-
themeId:
|
|
4941
|
-
cloud:
|
|
4942
|
-
tokenStudio:
|
|
4943
|
-
settings:
|
|
4944
|
-
dryRun:
|
|
4945
|
-
verbose:
|
|
4946
|
-
preciseCopy:
|
|
4950
|
+
tokenStudio: z174.literal(null),
|
|
4951
|
+
upload: z174.literal(null),
|
|
4952
|
+
figmaVariablesPlugin: z174.literal(null)
|
|
4953
|
+
});
|
|
4954
|
+
var DTODataSourceTokenStudio = z174.object({
|
|
4955
|
+
id: z174.string(),
|
|
4956
|
+
type: z174.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
4957
|
+
fileName: z174.string(),
|
|
4958
|
+
brandId: z174.string(),
|
|
4959
|
+
themeId: z174.string().nullish(),
|
|
4960
|
+
cloud: z174.literal(null),
|
|
4961
|
+
tokenStudio: z174.object({
|
|
4962
|
+
settings: z174.object({
|
|
4963
|
+
dryRun: z174.boolean(),
|
|
4964
|
+
verbose: z174.boolean(),
|
|
4965
|
+
preciseCopy: z174.boolean()
|
|
4947
4966
|
}),
|
|
4948
|
-
connectionName:
|
|
4949
|
-
lastImportedAt:
|
|
4950
|
-
lastImportedResults:
|
|
4951
|
-
|
|
4952
|
-
mapping:
|
|
4953
|
-
tokenSets:
|
|
4954
|
-
supernovaBrand:
|
|
4955
|
-
supernovaTheme:
|
|
4967
|
+
connectionName: z174.string(),
|
|
4968
|
+
lastImportedAt: z174.date(),
|
|
4969
|
+
lastImportedResults: z174.array(
|
|
4970
|
+
z174.object({
|
|
4971
|
+
mapping: z174.object({
|
|
4972
|
+
tokenSets: z174.array(z174.string()),
|
|
4973
|
+
supernovaBrand: z174.string(),
|
|
4974
|
+
supernovaTheme: z174.string().optional()
|
|
4956
4975
|
}),
|
|
4957
|
-
isFailed:
|
|
4958
|
-
tokensCreated:
|
|
4959
|
-
tokensDeleted:
|
|
4960
|
-
tokensUpdated:
|
|
4976
|
+
isFailed: z174.boolean(),
|
|
4977
|
+
tokensCreated: z174.number(),
|
|
4978
|
+
tokensDeleted: z174.number(),
|
|
4979
|
+
tokensUpdated: z174.number()
|
|
4961
4980
|
})
|
|
4962
4981
|
)
|
|
4963
4982
|
}),
|
|
4964
|
-
upload:
|
|
4965
|
-
figmaVariablesPlugin:
|
|
4966
|
-
});
|
|
4967
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
4968
|
-
id:
|
|
4969
|
-
type:
|
|
4970
|
-
fileName:
|
|
4971
|
-
brandId:
|
|
4972
|
-
themeId:
|
|
4973
|
-
cloud:
|
|
4974
|
-
tokenStudio:
|
|
4975
|
-
upload:
|
|
4976
|
-
remoteId:
|
|
4983
|
+
upload: z174.literal(null),
|
|
4984
|
+
figmaVariablesPlugin: z174.literal(null)
|
|
4985
|
+
});
|
|
4986
|
+
var DTODataSourceFigmaVariablesPlugin = z174.object({
|
|
4987
|
+
id: z174.string(),
|
|
4988
|
+
type: z174.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
4989
|
+
fileName: z174.string(),
|
|
4990
|
+
brandId: z174.string(),
|
|
4991
|
+
themeId: z174.literal(null),
|
|
4992
|
+
cloud: z174.literal(null),
|
|
4993
|
+
tokenStudio: z174.literal(null),
|
|
4994
|
+
upload: z174.object({
|
|
4995
|
+
remoteId: z174.string(),
|
|
4977
4996
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
4978
|
-
lastImportedAt:
|
|
4997
|
+
lastImportedAt: z174.date().optional(),
|
|
4979
4998
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4980
4999
|
}),
|
|
4981
|
-
figmaVariablesPlugin:
|
|
4982
|
-
fileId:
|
|
4983
|
-
lastImportedAt:
|
|
5000
|
+
figmaVariablesPlugin: z174.object({
|
|
5001
|
+
fileId: z174.string(),
|
|
5002
|
+
lastImportedAt: z174.date().optional(),
|
|
4984
5003
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4985
5004
|
})
|
|
4986
5005
|
});
|
|
4987
|
-
var DTODataSource =
|
|
5006
|
+
var DTODataSource = z174.discriminatedUnion("type", [
|
|
4988
5007
|
DTODataSourceFigma,
|
|
4989
5008
|
DTODataSourceFigmaVariablesPlugin,
|
|
4990
5009
|
DTODataSourceTokenStudio
|
|
4991
5010
|
]);
|
|
4992
|
-
var DTODataSourcesListResponse =
|
|
4993
|
-
sources:
|
|
5011
|
+
var DTODataSourcesListResponse = z174.object({
|
|
5012
|
+
sources: z174.array(DTODataSource)
|
|
4994
5013
|
});
|
|
4995
|
-
var DTODataSourceCreationResponse =
|
|
5014
|
+
var DTODataSourceCreationResponse = z174.object({
|
|
4996
5015
|
source: DTODataSource
|
|
4997
5016
|
});
|
|
4998
5017
|
|
|
4999
5018
|
// src/api/dto/design-systems/design-system.ts
|
|
5000
|
-
import { z as
|
|
5019
|
+
import { z as z175 } from "zod";
|
|
5001
5020
|
var DTODesignSystem = DesignSystem.omit({
|
|
5002
5021
|
name: true,
|
|
5003
5022
|
description: true,
|
|
5004
5023
|
docExporterId: true
|
|
5005
5024
|
}).extend({
|
|
5006
5025
|
meta: ObjectMeta,
|
|
5007
|
-
docExporterId:
|
|
5008
|
-
sources:
|
|
5026
|
+
docExporterId: z175.string(),
|
|
5027
|
+
sources: z175.array(z175.any())
|
|
5009
5028
|
});
|
|
5010
5029
|
|
|
5011
5030
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5012
|
-
import { z as
|
|
5013
|
-
var DTODiffCountBase =
|
|
5014
|
-
created:
|
|
5015
|
-
updated:
|
|
5016
|
-
deleted:
|
|
5031
|
+
import { z as z176 } from "zod";
|
|
5032
|
+
var DTODiffCountBase = z176.object({
|
|
5033
|
+
created: z176.number(),
|
|
5034
|
+
updated: z176.number(),
|
|
5035
|
+
deleted: z176.number()
|
|
5017
5036
|
});
|
|
5018
|
-
var DTODesignElementsDataDiffResponse =
|
|
5037
|
+
var DTODesignElementsDataDiffResponse = z176.object({
|
|
5019
5038
|
tokens: DTODiffCountBase,
|
|
5020
5039
|
assets: DTODiffCountBase
|
|
5021
5040
|
});
|
|
5022
5041
|
|
|
5023
5042
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5024
|
-
import { z as
|
|
5025
|
-
var DTOExporterProperty =
|
|
5026
|
-
var DTOExporterPropertyListResponse =
|
|
5043
|
+
import { z as z177 } from "zod";
|
|
5044
|
+
var DTOExporterProperty = z177.any({});
|
|
5045
|
+
var DTOExporterPropertyListResponse = z177.object({ items: z177.array(DTOExporterProperty) });
|
|
5027
5046
|
|
|
5028
5047
|
// src/api/dto/design-systems/version.ts
|
|
5029
|
-
import { z as
|
|
5048
|
+
import { z as z187 } from "zod";
|
|
5030
5049
|
|
|
5031
5050
|
// src/api/payloads/design-systems/brand.ts
|
|
5032
|
-
import { z as
|
|
5033
|
-
var DTOCreateBrandInput =
|
|
5034
|
-
persistentId:
|
|
5035
|
-
meta:
|
|
5036
|
-
name:
|
|
5037
|
-
description:
|
|
5051
|
+
import { z as z178 } from "zod";
|
|
5052
|
+
var DTOCreateBrandInput = z178.object({
|
|
5053
|
+
persistentId: z178.string().uuid(),
|
|
5054
|
+
meta: z178.object({
|
|
5055
|
+
name: z178.string(),
|
|
5056
|
+
description: z178.string()
|
|
5038
5057
|
})
|
|
5039
5058
|
});
|
|
5040
5059
|
|
|
@@ -5042,31 +5061,31 @@ var DTOCreateBrandInput = z176.object({
|
|
|
5042
5061
|
var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
|
|
5043
5062
|
|
|
5044
5063
|
// src/api/payloads/design-systems/version.ts
|
|
5045
|
-
import { z as
|
|
5046
|
-
var ObjectMeta2 =
|
|
5047
|
-
name:
|
|
5048
|
-
description:
|
|
5064
|
+
import { z as z179 } from "zod";
|
|
5065
|
+
var ObjectMeta2 = z179.object({
|
|
5066
|
+
name: z179.string().max(150).optional(),
|
|
5067
|
+
description: z179.string().max(2e3).optional()
|
|
5049
5068
|
});
|
|
5050
5069
|
function validateDesignSystemVersion(version) {
|
|
5051
5070
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5052
5071
|
return urlCompliantRegex.test(version);
|
|
5053
5072
|
}
|
|
5054
|
-
var DTOCreateVersionInput =
|
|
5073
|
+
var DTOCreateVersionInput = z179.object({
|
|
5055
5074
|
meta: ObjectMeta2,
|
|
5056
|
-
version:
|
|
5075
|
+
version: z179.string().refine(validateDesignSystemVersion, {
|
|
5057
5076
|
message: "Invalid semantic versioning format"
|
|
5058
5077
|
}),
|
|
5059
|
-
changeLog:
|
|
5078
|
+
changeLog: z179.string().optional()
|
|
5060
5079
|
});
|
|
5061
|
-
var DTOUpdateVersionInput =
|
|
5080
|
+
var DTOUpdateVersionInput = z179.object({
|
|
5062
5081
|
meta: ObjectMeta2,
|
|
5063
|
-
version:
|
|
5082
|
+
version: z179.string(),
|
|
5064
5083
|
// required for PUT, but not editable
|
|
5065
|
-
changeLog:
|
|
5084
|
+
changeLog: z179.string()
|
|
5066
5085
|
});
|
|
5067
5086
|
|
|
5068
5087
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5069
|
-
import { z as
|
|
5088
|
+
import { z as z180 } from "zod";
|
|
5070
5089
|
|
|
5071
5090
|
// src/api/dto/documentation/block-definition.ts
|
|
5072
5091
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5078,59 +5097,59 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5078
5097
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5079
5098
|
|
|
5080
5099
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5081
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5082
|
-
definitions:
|
|
5100
|
+
var DTOGetBlockDefinitionsOutput = z180.object({
|
|
5101
|
+
definitions: z180.array(DTOPageBlockDefinition)
|
|
5083
5102
|
});
|
|
5084
5103
|
|
|
5085
5104
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5086
|
-
import { z as
|
|
5087
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5088
|
-
environment:
|
|
5105
|
+
import { z as z181 } from "zod";
|
|
5106
|
+
var DTODocumentationPublishTypeQueryParams = z181.object({
|
|
5107
|
+
environment: z181.enum(["Live", "Preview"])
|
|
5089
5108
|
});
|
|
5090
5109
|
|
|
5091
5110
|
// src/api/payloads/export/pipeline.ts
|
|
5092
|
-
import { z as
|
|
5093
|
-
var DTOPipelineCreateBody =
|
|
5094
|
-
name:
|
|
5095
|
-
exporterId:
|
|
5096
|
-
designSystemId:
|
|
5097
|
-
isEnabled:
|
|
5111
|
+
import { z as z182 } from "zod";
|
|
5112
|
+
var DTOPipelineCreateBody = z182.object({
|
|
5113
|
+
name: z182.string(),
|
|
5114
|
+
exporterId: z182.string(),
|
|
5115
|
+
designSystemId: z182.string(),
|
|
5116
|
+
isEnabled: z182.boolean(),
|
|
5098
5117
|
eventType: PipelineEventType,
|
|
5099
|
-
brandPersistentId:
|
|
5100
|
-
themePersistentId:
|
|
5118
|
+
brandPersistentId: z182.string().optional(),
|
|
5119
|
+
themePersistentId: z182.string().optional(),
|
|
5101
5120
|
destination: PipelineDestinationType.optional(),
|
|
5102
5121
|
gitQuery: GitObjectsQuery,
|
|
5103
|
-
destinations:
|
|
5122
|
+
destinations: z182.object({
|
|
5104
5123
|
s3: ExporterDestinationS3.nullish(),
|
|
5105
5124
|
azure: ExporterDestinationAzure.nullish(),
|
|
5106
5125
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5107
5126
|
github: ExporterDestinationGithub.nullish(),
|
|
5108
5127
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5109
5128
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5110
|
-
webhookUrl:
|
|
5129
|
+
webhookUrl: z182.string().nullish()
|
|
5111
5130
|
})
|
|
5112
5131
|
});
|
|
5113
5132
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5114
|
-
id:
|
|
5133
|
+
id: z182.string()
|
|
5115
5134
|
});
|
|
5116
|
-
var DTOPipelineTriggerBody =
|
|
5117
|
-
designSystemVersionId:
|
|
5135
|
+
var DTOPipelineTriggerBody = z182.object({
|
|
5136
|
+
designSystemVersionId: z182.string()
|
|
5118
5137
|
});
|
|
5119
5138
|
|
|
5120
5139
|
// src/api/payloads/liveblocks/auth.ts
|
|
5121
|
-
import { z as
|
|
5122
|
-
var DTOLiveblocksAuthRequest =
|
|
5123
|
-
room:
|
|
5140
|
+
import { z as z183 } from "zod";
|
|
5141
|
+
var DTOLiveblocksAuthRequest = z183.object({
|
|
5142
|
+
room: z183.string().optional()
|
|
5124
5143
|
});
|
|
5125
5144
|
|
|
5126
5145
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5127
|
-
import { z as
|
|
5128
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5146
|
+
import { z as z184 } from "zod";
|
|
5147
|
+
var DTOUpdateUserNotificationSettingsPayload = z184.object({
|
|
5129
5148
|
notificationSettings: UserNotificationSettings
|
|
5130
5149
|
});
|
|
5131
|
-
var DTOUserNotificationSettingsResponse =
|
|
5132
|
-
userId:
|
|
5133
|
-
workspaceId:
|
|
5150
|
+
var DTOUserNotificationSettingsResponse = z184.object({
|
|
5151
|
+
userId: z184.string(),
|
|
5152
|
+
workspaceId: z184.string(),
|
|
5134
5153
|
notificationSettings: UserNotificationSettings
|
|
5135
5154
|
});
|
|
5136
5155
|
|
|
@@ -5138,7 +5157,7 @@ var DTOUserNotificationSettingsResponse = z182.object({
|
|
|
5138
5157
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5139
5158
|
|
|
5140
5159
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5141
|
-
import { z as
|
|
5160
|
+
import { z as z185 } from "zod";
|
|
5142
5161
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5143
5162
|
function validateSsoPayload(ssoPayload) {
|
|
5144
5163
|
const keys = [];
|
|
@@ -5161,21 +5180,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5161
5180
|
keys
|
|
5162
5181
|
};
|
|
5163
5182
|
}
|
|
5164
|
-
var NpmRegistryInput =
|
|
5165
|
-
enabledScopes:
|
|
5166
|
-
customRegistryUrl:
|
|
5167
|
-
bypassProxy:
|
|
5168
|
-
npmProxyRegistryConfigId:
|
|
5169
|
-
npmProxyVersion:
|
|
5170
|
-
registryType:
|
|
5171
|
-
authType:
|
|
5172
|
-
authHeaderName:
|
|
5173
|
-
authHeaderValue:
|
|
5174
|
-
accessToken:
|
|
5175
|
-
username:
|
|
5176
|
-
password:
|
|
5177
|
-
});
|
|
5178
|
-
var WorkspaceConfigurationPayload =
|
|
5183
|
+
var NpmRegistryInput = z185.object({
|
|
5184
|
+
enabledScopes: z185.array(z185.string()),
|
|
5185
|
+
customRegistryUrl: z185.string().optional(),
|
|
5186
|
+
bypassProxy: z185.boolean().optional(),
|
|
5187
|
+
npmProxyRegistryConfigId: z185.string().optional(),
|
|
5188
|
+
npmProxyVersion: z185.number().optional(),
|
|
5189
|
+
registryType: z185.string(),
|
|
5190
|
+
authType: z185.string(),
|
|
5191
|
+
authHeaderName: z185.string(),
|
|
5192
|
+
authHeaderValue: z185.string(),
|
|
5193
|
+
accessToken: z185.string(),
|
|
5194
|
+
username: z185.string(),
|
|
5195
|
+
password: z185.string()
|
|
5196
|
+
});
|
|
5197
|
+
var WorkspaceConfigurationPayload = z185.object({
|
|
5179
5198
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5180
5199
|
sso: SsoProvider.partial().optional(),
|
|
5181
5200
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5183,363 +5202,372 @@ var WorkspaceConfigurationPayload = z183.object({
|
|
|
5183
5202
|
});
|
|
5184
5203
|
|
|
5185
5204
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5186
|
-
import { z as
|
|
5187
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5205
|
+
import { z as z186 } from "zod";
|
|
5206
|
+
var DTOWorkspaceIntegrationOauthInput = z186.object({
|
|
5188
5207
|
type: IntegrationType
|
|
5189
5208
|
});
|
|
5190
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5191
|
-
userId:
|
|
5209
|
+
var DTOWorkspaceIntegrationPATInput = z186.object({
|
|
5210
|
+
userId: z186.string(),
|
|
5192
5211
|
type: IntegrationType,
|
|
5193
5212
|
token: IntegrationToken
|
|
5194
5213
|
});
|
|
5195
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5196
|
-
organization:
|
|
5214
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z186.object({
|
|
5215
|
+
organization: z186.string().optional(),
|
|
5197
5216
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5198
|
-
project:
|
|
5217
|
+
project: z186.string().optional(),
|
|
5199
5218
|
// Only for Bitbucket and Azure
|
|
5200
|
-
repository:
|
|
5219
|
+
repository: z186.string().optional(),
|
|
5201
5220
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5202
|
-
branch:
|
|
5221
|
+
branch: z186.string().optional(),
|
|
5203
5222
|
// For all providers, useful for PR creations.
|
|
5204
|
-
user:
|
|
5223
|
+
user: z186.string().optional()
|
|
5205
5224
|
// Only for Gitlab User Repositories
|
|
5206
5225
|
});
|
|
5207
5226
|
|
|
5208
5227
|
// src/api/dto/design-systems/version.ts
|
|
5209
|
-
var DTODesignSystemVersion =
|
|
5210
|
-
id:
|
|
5211
|
-
createdAt:
|
|
5228
|
+
var DTODesignSystemVersion = z187.object({
|
|
5229
|
+
id: z187.string(),
|
|
5230
|
+
createdAt: z187.date(),
|
|
5212
5231
|
meta: ObjectMeta,
|
|
5213
|
-
version:
|
|
5214
|
-
isReadonly:
|
|
5215
|
-
changeLog:
|
|
5216
|
-
designSystemId:
|
|
5232
|
+
version: z187.string(),
|
|
5233
|
+
isReadonly: z187.boolean(),
|
|
5234
|
+
changeLog: z187.string(),
|
|
5235
|
+
designSystemId: z187.string()
|
|
5217
5236
|
});
|
|
5218
|
-
var DTODesignSystemVersionsListResponse =
|
|
5219
|
-
designSystemVersions:
|
|
5237
|
+
var DTODesignSystemVersionsListResponse = z187.object({
|
|
5238
|
+
designSystemVersions: z187.array(DTODesignSystemVersion)
|
|
5220
5239
|
});
|
|
5221
|
-
var DTODesignSystemVersionGetResponse =
|
|
5240
|
+
var DTODesignSystemVersionGetResponse = z187.object({
|
|
5222
5241
|
designSystemVersion: DTODesignSystemVersion
|
|
5223
5242
|
});
|
|
5224
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5243
|
+
var DTODesignSystemVersionCreationResponse = z187.object({
|
|
5225
5244
|
meta: ObjectMeta,
|
|
5226
|
-
version:
|
|
5227
|
-
changeLog:
|
|
5228
|
-
isReadOnly:
|
|
5229
|
-
designSystemId:
|
|
5230
|
-
jobId:
|
|
5231
|
-
});
|
|
5232
|
-
var VersionSQSPayload =
|
|
5233
|
-
jobId:
|
|
5234
|
-
designSystemId:
|
|
5245
|
+
version: z187.string(),
|
|
5246
|
+
changeLog: z187.string(),
|
|
5247
|
+
isReadOnly: z187.boolean(),
|
|
5248
|
+
designSystemId: z187.string(),
|
|
5249
|
+
jobId: z187.string()
|
|
5250
|
+
});
|
|
5251
|
+
var VersionSQSPayload = z187.object({
|
|
5252
|
+
jobId: z187.string(),
|
|
5253
|
+
designSystemId: z187.string(),
|
|
5235
5254
|
input: DTOCreateVersionInput
|
|
5236
5255
|
});
|
|
5237
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5238
|
-
jobs:
|
|
5256
|
+
var DTODesignSystemVersionJobsResponse = z187.object({
|
|
5257
|
+
jobs: z187.array(VersionCreationJob)
|
|
5239
5258
|
});
|
|
5240
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5259
|
+
var DTODesignSystemVersionJobStatusResponse = z187.object({
|
|
5241
5260
|
job: VersionCreationJob
|
|
5242
5261
|
});
|
|
5243
5262
|
|
|
5244
5263
|
// src/api/dto/design-systems/view.ts
|
|
5245
|
-
import { z as
|
|
5246
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5247
|
-
id:
|
|
5248
|
-
persistentId:
|
|
5249
|
-
width:
|
|
5264
|
+
import { z as z188 } from "zod";
|
|
5265
|
+
var DTOElementViewColumnSharedAttributes = z188.object({
|
|
5266
|
+
id: z188.string(),
|
|
5267
|
+
persistentId: z188.string(),
|
|
5268
|
+
width: z188.number()
|
|
5250
5269
|
});
|
|
5251
5270
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5252
|
-
type:
|
|
5271
|
+
type: z188.literal("BaseProperty"),
|
|
5253
5272
|
basePropertyType: ElementViewBaseColumnType
|
|
5254
5273
|
});
|
|
5255
5274
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5256
|
-
type:
|
|
5257
|
-
propertyDefinitionId:
|
|
5275
|
+
type: z188.literal("PropertyDefinition"),
|
|
5276
|
+
propertyDefinitionId: z188.string()
|
|
5258
5277
|
});
|
|
5259
5278
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5260
|
-
type:
|
|
5261
|
-
themeId:
|
|
5279
|
+
type: z188.literal("Theme"),
|
|
5280
|
+
themeId: z188.string()
|
|
5262
5281
|
});
|
|
5263
|
-
var DTOElementViewColumn =
|
|
5282
|
+
var DTOElementViewColumn = z188.discriminatedUnion("type", [
|
|
5264
5283
|
DTOElementViewBasePropertyColumn,
|
|
5265
5284
|
DTOElementViewPropertyDefinitionColumn,
|
|
5266
5285
|
DTOElementViewThemeColumn
|
|
5267
5286
|
]);
|
|
5268
|
-
var DTOElementView =
|
|
5287
|
+
var DTOElementView = z188.object({
|
|
5269
5288
|
meta: ObjectMeta,
|
|
5270
|
-
persistentId:
|
|
5289
|
+
persistentId: z188.string(),
|
|
5271
5290
|
targetElementType: ElementPropertyTargetType,
|
|
5272
|
-
id:
|
|
5273
|
-
isDefault:
|
|
5274
|
-
columns:
|
|
5291
|
+
id: z188.string(),
|
|
5292
|
+
isDefault: z188.boolean(),
|
|
5293
|
+
columns: z188.array(DTOElementViewColumn)
|
|
5275
5294
|
});
|
|
5276
|
-
var DTOElementViewsListResponse =
|
|
5277
|
-
elementDataViews:
|
|
5295
|
+
var DTOElementViewsListResponse = z188.object({
|
|
5296
|
+
elementDataViews: z188.array(DTOElementView)
|
|
5278
5297
|
});
|
|
5279
5298
|
|
|
5280
5299
|
// src/api/dto/documentation/anchor.ts
|
|
5281
|
-
import { z as
|
|
5300
|
+
import { z as z189 } from "zod";
|
|
5282
5301
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5283
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5284
|
-
anchors:
|
|
5302
|
+
var DTOGetDocumentationPageAnchorsResponse = z189.object({
|
|
5303
|
+
anchors: z189.array(DTODocumentationPageAnchor)
|
|
5285
5304
|
});
|
|
5286
5305
|
|
|
5306
|
+
// src/api/dto/documentation/approvals.ts
|
|
5307
|
+
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5308
|
+
|
|
5287
5309
|
// src/api/dto/documentation/block.ts
|
|
5288
5310
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5289
5311
|
|
|
5290
5312
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5291
|
-
import { z as
|
|
5313
|
+
import { z as z194 } from "zod";
|
|
5292
5314
|
|
|
5293
5315
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5294
|
-
import { z as
|
|
5316
|
+
import { z as z193 } from "zod";
|
|
5295
5317
|
|
|
5296
5318
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5297
|
-
import { z as
|
|
5319
|
+
import { z as z191 } from "zod";
|
|
5298
5320
|
|
|
5299
5321
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5300
|
-
import { z as
|
|
5322
|
+
import { z as z190 } from "zod";
|
|
5301
5323
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5302
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5303
|
-
showSidebar:
|
|
5304
|
-
isPrivate:
|
|
5305
|
-
isHidden:
|
|
5324
|
+
var DTODocumentationItemConfigurationV2 = z190.object({
|
|
5325
|
+
showSidebar: z190.boolean(),
|
|
5326
|
+
isPrivate: z190.boolean(),
|
|
5327
|
+
isHidden: z190.boolean(),
|
|
5306
5328
|
header: DTODocumentationItemHeaderV2
|
|
5307
5329
|
});
|
|
5308
5330
|
|
|
5309
5331
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5310
|
-
var DTODocumentationDraftChangeType =
|
|
5311
|
-
var DTODocumentationDraftStateCreated =
|
|
5312
|
-
changeType:
|
|
5313
|
-
});
|
|
5314
|
-
var DTODocumentationDraftStateUpdated =
|
|
5315
|
-
changeType:
|
|
5316
|
-
changes:
|
|
5317
|
-
previousTitle:
|
|
5332
|
+
var DTODocumentationDraftChangeType = z191.enum(["Created", "Updated", "Deleted"]);
|
|
5333
|
+
var DTODocumentationDraftStateCreated = z191.object({
|
|
5334
|
+
changeType: z191.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5335
|
+
});
|
|
5336
|
+
var DTODocumentationDraftStateUpdated = z191.object({
|
|
5337
|
+
changeType: z191.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5338
|
+
changes: z191.object({
|
|
5339
|
+
previousTitle: z191.string().optional(),
|
|
5318
5340
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5319
|
-
previousContentHash:
|
|
5341
|
+
previousContentHash: z191.string().optional()
|
|
5320
5342
|
})
|
|
5321
5343
|
});
|
|
5322
|
-
var DTODocumentationDraftStateDeleted =
|
|
5323
|
-
changeType:
|
|
5324
|
-
deletedAt:
|
|
5325
|
-
deletedByUserId:
|
|
5344
|
+
var DTODocumentationDraftStateDeleted = z191.object({
|
|
5345
|
+
changeType: z191.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5346
|
+
deletedAt: z191.coerce.date(),
|
|
5347
|
+
deletedByUserId: z191.string()
|
|
5326
5348
|
});
|
|
5327
|
-
var DTODocumentationDraftState =
|
|
5349
|
+
var DTODocumentationDraftState = z191.discriminatedUnion("changeType", [
|
|
5328
5350
|
DTODocumentationDraftStateCreated,
|
|
5329
5351
|
DTODocumentationDraftStateUpdated,
|
|
5330
5352
|
DTODocumentationDraftStateDeleted
|
|
5331
5353
|
]);
|
|
5332
5354
|
|
|
5333
5355
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5334
|
-
import { z as
|
|
5335
|
-
var DTODocumentationPublishMetadata =
|
|
5336
|
-
lastPublishedByUserId:
|
|
5337
|
-
lastPublishedAt:
|
|
5356
|
+
import { z as z192 } from "zod";
|
|
5357
|
+
var DTODocumentationPublishMetadata = z192.object({
|
|
5358
|
+
lastPublishedByUserId: z192.string(),
|
|
5359
|
+
lastPublishedAt: z192.coerce.date()
|
|
5338
5360
|
});
|
|
5339
5361
|
|
|
5340
5362
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5341
|
-
var DTODocumentationPageV2 =
|
|
5342
|
-
id:
|
|
5343
|
-
persistentId:
|
|
5344
|
-
designSystemVersionId:
|
|
5345
|
-
title:
|
|
5363
|
+
var DTODocumentationPageV2 = z193.object({
|
|
5364
|
+
id: z193.string(),
|
|
5365
|
+
persistentId: z193.string(),
|
|
5366
|
+
designSystemVersionId: z193.string(),
|
|
5367
|
+
title: z193.string(),
|
|
5346
5368
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5347
|
-
shortPersistentId:
|
|
5348
|
-
slug:
|
|
5349
|
-
userSlug:
|
|
5350
|
-
createdAt:
|
|
5351
|
-
updatedAt:
|
|
5352
|
-
path:
|
|
5369
|
+
shortPersistentId: z193.string(),
|
|
5370
|
+
slug: z193.string().optional(),
|
|
5371
|
+
userSlug: z193.string().optional(),
|
|
5372
|
+
createdAt: z193.coerce.date(),
|
|
5373
|
+
updatedAt: z193.coerce.date(),
|
|
5374
|
+
path: z193.string(),
|
|
5353
5375
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5354
5376
|
draftState: DTODocumentationDraftState.optional(),
|
|
5355
5377
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
5356
5378
|
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
5379
|
+
/** Defines the approval state of the documentation page */
|
|
5380
|
+
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5357
5381
|
// Backward compatibility
|
|
5358
|
-
type:
|
|
5382
|
+
type: z193.literal("Page")
|
|
5359
5383
|
});
|
|
5360
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5384
|
+
var DTOCreateDocumentationPageInputV2 = z193.object({
|
|
5361
5385
|
// Identifier
|
|
5362
|
-
persistentId:
|
|
5386
|
+
persistentId: z193.string().uuid(),
|
|
5363
5387
|
// Page properties
|
|
5364
|
-
title:
|
|
5388
|
+
title: z193.string(),
|
|
5365
5389
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5366
5390
|
// Page placement properties
|
|
5367
|
-
parentPersistentId:
|
|
5368
|
-
afterPersistentId:
|
|
5391
|
+
parentPersistentId: z193.string().uuid(),
|
|
5392
|
+
afterPersistentId: z193.string().uuid().nullish()
|
|
5369
5393
|
});
|
|
5370
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5394
|
+
var DTOUpdateDocumentationPageInputV2 = z193.object({
|
|
5371
5395
|
// Identifier of the group to update
|
|
5372
|
-
id:
|
|
5396
|
+
id: z193.string(),
|
|
5373
5397
|
// Page properties
|
|
5374
|
-
title:
|
|
5398
|
+
title: z193.string().optional(),
|
|
5375
5399
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5376
5400
|
});
|
|
5377
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5401
|
+
var DTOMoveDocumentationPageInputV2 = z193.object({
|
|
5378
5402
|
// Identifier of the group to update
|
|
5379
|
-
id:
|
|
5403
|
+
id: z193.string(),
|
|
5380
5404
|
// Page placement properties
|
|
5381
|
-
parentPersistentId:
|
|
5382
|
-
afterPersistentId:
|
|
5405
|
+
parentPersistentId: z193.string().uuid(),
|
|
5406
|
+
afterPersistentId: z193.string().uuid().nullish()
|
|
5383
5407
|
});
|
|
5384
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5408
|
+
var DTODuplicateDocumentationPageInputV2 = z193.object({
|
|
5385
5409
|
// Identifier of the page to duplicate from
|
|
5386
|
-
id:
|
|
5410
|
+
id: z193.string(),
|
|
5387
5411
|
// New page persistent id
|
|
5388
|
-
persistentId:
|
|
5412
|
+
persistentId: z193.string().uuid(),
|
|
5389
5413
|
// Page placement properties
|
|
5390
|
-
parentPersistentId:
|
|
5391
|
-
afterPersistentId:
|
|
5414
|
+
parentPersistentId: z193.string().uuid(),
|
|
5415
|
+
afterPersistentId: z193.string().uuid().nullish()
|
|
5392
5416
|
});
|
|
5393
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5417
|
+
var DTODeleteDocumentationPageInputV2 = z193.object({
|
|
5394
5418
|
// Identifier
|
|
5395
|
-
id:
|
|
5419
|
+
id: z193.string()
|
|
5396
5420
|
});
|
|
5397
|
-
var DTORestoreDocumentationPageInput =
|
|
5398
|
-
persistentId:
|
|
5399
|
-
snapshotId:
|
|
5421
|
+
var DTORestoreDocumentationPageInput = z193.object({
|
|
5422
|
+
persistentId: z193.string(),
|
|
5423
|
+
snapshotId: z193.string().optional()
|
|
5400
5424
|
});
|
|
5401
|
-
var DTORestoreDocumentationGroupInput =
|
|
5402
|
-
persistentId:
|
|
5403
|
-
snapshotId:
|
|
5425
|
+
var DTORestoreDocumentationGroupInput = z193.object({
|
|
5426
|
+
persistentId: z193.string(),
|
|
5427
|
+
snapshotId: z193.string().optional()
|
|
5428
|
+
});
|
|
5429
|
+
var DTODocumentationPageApprovalStateChangeInput = z193.object({
|
|
5430
|
+
persistentId: z193.string(),
|
|
5431
|
+
approvalState: DocumentationPageApprovalState.optional()
|
|
5404
5432
|
});
|
|
5405
5433
|
|
|
5406
5434
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5407
|
-
var DTODocumentationPageSnapshot =
|
|
5408
|
-
id:
|
|
5409
|
-
designSystemVersionId:
|
|
5410
|
-
createdAt:
|
|
5411
|
-
updatedAt:
|
|
5435
|
+
var DTODocumentationPageSnapshot = z194.object({
|
|
5436
|
+
id: z194.string(),
|
|
5437
|
+
designSystemVersionId: z194.string(),
|
|
5438
|
+
createdAt: z194.string(),
|
|
5439
|
+
updatedAt: z194.string(),
|
|
5412
5440
|
documentationPage: DTODocumentationPageV2,
|
|
5413
|
-
pageContentHash:
|
|
5441
|
+
pageContentHash: z194.string(),
|
|
5414
5442
|
reason: DesignElementSnapshotReason
|
|
5415
5443
|
});
|
|
5416
5444
|
|
|
5417
5445
|
// src/api/dto/documentation/link-preview.ts
|
|
5418
|
-
import { z as
|
|
5419
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5446
|
+
import { z as z195 } from "zod";
|
|
5447
|
+
var DTODocumentationLinkPreviewResponse = z195.object({
|
|
5420
5448
|
linkPreview: DocumentationLinkPreview
|
|
5421
5449
|
});
|
|
5422
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5423
|
-
url:
|
|
5424
|
-
documentationItemPersistentId:
|
|
5450
|
+
var DTODocumentationLinkPreviewRequest = z195.object({
|
|
5451
|
+
url: z195.string().optional(),
|
|
5452
|
+
documentationItemPersistentId: z195.string().optional()
|
|
5425
5453
|
});
|
|
5426
5454
|
|
|
5427
5455
|
// src/api/dto/documentation/publish.ts
|
|
5428
|
-
import { z as
|
|
5456
|
+
import { z as z199 } from "zod";
|
|
5429
5457
|
|
|
5430
5458
|
// src/api/dto/export/exporter.ts
|
|
5431
|
-
import { z as
|
|
5432
|
-
var DTOExporterType =
|
|
5433
|
-
var DTOExporterSource =
|
|
5434
|
-
var DTOExporterMembershipRole =
|
|
5435
|
-
var DTOExporter =
|
|
5436
|
-
id:
|
|
5437
|
-
name:
|
|
5438
|
-
isPrivate:
|
|
5459
|
+
import { z as z196 } from "zod";
|
|
5460
|
+
var DTOExporterType = z196.enum(["documentation", "code"]);
|
|
5461
|
+
var DTOExporterSource = z196.enum(["git", "upload"]);
|
|
5462
|
+
var DTOExporterMembershipRole = z196.enum(["Owner", "OwnerArchived", "User"]);
|
|
5463
|
+
var DTOExporter = z196.object({
|
|
5464
|
+
id: z196.string(),
|
|
5465
|
+
name: z196.string(),
|
|
5466
|
+
isPrivate: z196.boolean(),
|
|
5439
5467
|
exporterType: DTOExporterType,
|
|
5440
|
-
isDefaultDocumentationExporter:
|
|
5441
|
-
iconURL:
|
|
5468
|
+
isDefaultDocumentationExporter: z196.boolean(),
|
|
5469
|
+
iconURL: z196.string().optional(),
|
|
5442
5470
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5443
5471
|
customBlocks: PulsarCustomBlock.array(),
|
|
5444
|
-
blockVariants:
|
|
5445
|
-
usesBrands:
|
|
5446
|
-
usesThemes:
|
|
5472
|
+
blockVariants: z196.record(z196.string(), PulsarContributionVariant.array()),
|
|
5473
|
+
usesBrands: z196.boolean(),
|
|
5474
|
+
usesThemes: z196.boolean(),
|
|
5447
5475
|
source: DTOExporterSource,
|
|
5448
|
-
gitUrl:
|
|
5449
|
-
gitBranch:
|
|
5450
|
-
gitDirectory:
|
|
5476
|
+
gitUrl: z196.string().optional(),
|
|
5477
|
+
gitBranch: z196.string().optional(),
|
|
5478
|
+
gitDirectory: z196.string().optional()
|
|
5451
5479
|
});
|
|
5452
|
-
var DTOExporterMembership =
|
|
5453
|
-
workspaceId:
|
|
5454
|
-
exporterId:
|
|
5480
|
+
var DTOExporterMembership = z196.object({
|
|
5481
|
+
workspaceId: z196.string(),
|
|
5482
|
+
exporterId: z196.string(),
|
|
5455
5483
|
role: DTOExporterMembershipRole
|
|
5456
5484
|
});
|
|
5457
|
-
var DTOExporterCreateOutput =
|
|
5485
|
+
var DTOExporterCreateOutput = z196.object({
|
|
5458
5486
|
exporter: DTOExporter,
|
|
5459
5487
|
membership: DTOExporterMembership
|
|
5460
5488
|
});
|
|
5461
|
-
var DTOExporterGitProviderEnum =
|
|
5462
|
-
var DTOExporterCreateInput =
|
|
5463
|
-
url:
|
|
5489
|
+
var DTOExporterGitProviderEnum = z196.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5490
|
+
var DTOExporterCreateInput = z196.object({
|
|
5491
|
+
url: z196.string(),
|
|
5464
5492
|
provider: DTOExporterGitProviderEnum
|
|
5465
5493
|
});
|
|
5466
|
-
var DTOExporterUpdateInput =
|
|
5467
|
-
url:
|
|
5494
|
+
var DTOExporterUpdateInput = z196.object({
|
|
5495
|
+
url: z196.string().optional()
|
|
5468
5496
|
});
|
|
5469
5497
|
|
|
5470
5498
|
// src/api/dto/export/filter.ts
|
|
5471
5499
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5472
5500
|
|
|
5473
5501
|
// src/api/dto/export/job.ts
|
|
5474
|
-
import { z as
|
|
5475
|
-
var DTOExportJobCreatedBy =
|
|
5476
|
-
userId:
|
|
5477
|
-
userName:
|
|
5502
|
+
import { z as z197 } from "zod";
|
|
5503
|
+
var DTOExportJobCreatedBy = z197.object({
|
|
5504
|
+
userId: z197.string(),
|
|
5505
|
+
userName: z197.string()
|
|
5478
5506
|
});
|
|
5479
|
-
var DTOExportJobDesignSystemPreview =
|
|
5480
|
-
id:
|
|
5507
|
+
var DTOExportJobDesignSystemPreview = z197.object({
|
|
5508
|
+
id: z197.string(),
|
|
5481
5509
|
meta: ObjectMeta
|
|
5482
5510
|
});
|
|
5483
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5484
|
-
id:
|
|
5511
|
+
var DTOExportJobDesignSystemVersionPreview = z197.object({
|
|
5512
|
+
id: z197.string(),
|
|
5485
5513
|
meta: ObjectMeta,
|
|
5486
|
-
version:
|
|
5487
|
-
isReadonly:
|
|
5514
|
+
version: z197.string(),
|
|
5515
|
+
isReadonly: z197.boolean()
|
|
5488
5516
|
});
|
|
5489
|
-
var DTOExportJobDestinations =
|
|
5517
|
+
var DTOExportJobDestinations = z197.object({
|
|
5490
5518
|
s3: ExporterDestinationS3.optional(),
|
|
5491
5519
|
azure: ExporterDestinationAzure.optional(),
|
|
5492
5520
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5493
5521
|
github: ExporterDestinationGithub.optional(),
|
|
5494
5522
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5495
5523
|
documentation: ExporterDestinationDocs.optional(),
|
|
5496
|
-
webhookUrl:
|
|
5524
|
+
webhookUrl: z197.string().optional()
|
|
5497
5525
|
});
|
|
5498
5526
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5499
5527
|
sndocs: true
|
|
5500
5528
|
}).extend({
|
|
5501
5529
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5502
5530
|
});
|
|
5503
|
-
var DTOExportJob =
|
|
5504
|
-
id:
|
|
5505
|
-
createdAt:
|
|
5506
|
-
finishedAt:
|
|
5507
|
-
index:
|
|
5531
|
+
var DTOExportJob = z197.object({
|
|
5532
|
+
id: z197.string(),
|
|
5533
|
+
createdAt: z197.coerce.date(),
|
|
5534
|
+
finishedAt: z197.coerce.date().optional(),
|
|
5535
|
+
index: z197.number().optional(),
|
|
5508
5536
|
status: ExportJobStatus,
|
|
5509
|
-
estimatedExecutionTime:
|
|
5537
|
+
estimatedExecutionTime: z197.number().optional(),
|
|
5510
5538
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5511
5539
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5512
5540
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5513
5541
|
destinations: DTOExportJobDestinations,
|
|
5514
|
-
exporterId:
|
|
5515
|
-
scheduleId:
|
|
5542
|
+
exporterId: z197.string(),
|
|
5543
|
+
scheduleId: z197.string().optional(),
|
|
5516
5544
|
result: DTOExportJobResult.optional(),
|
|
5517
|
-
brandPersistentId:
|
|
5518
|
-
themePersistentId:
|
|
5545
|
+
brandPersistentId: z197.string().optional(),
|
|
5546
|
+
themePersistentId: z197.string().optional()
|
|
5519
5547
|
});
|
|
5520
|
-
var DTOExportJobResponse =
|
|
5548
|
+
var DTOExportJobResponse = z197.object({
|
|
5521
5549
|
job: DTOExportJob
|
|
5522
5550
|
});
|
|
5523
5551
|
|
|
5524
5552
|
// src/api/dto/export/pipeline.ts
|
|
5525
|
-
import { z as
|
|
5526
|
-
var DTOPipeline =
|
|
5527
|
-
id:
|
|
5528
|
-
name:
|
|
5553
|
+
import { z as z198 } from "zod";
|
|
5554
|
+
var DTOPipeline = z198.object({
|
|
5555
|
+
id: z198.string(),
|
|
5556
|
+
name: z198.string(),
|
|
5529
5557
|
eventType: PipelineEventType,
|
|
5530
|
-
isEnabled:
|
|
5531
|
-
workspaceId:
|
|
5532
|
-
designSystemId:
|
|
5533
|
-
exporterId:
|
|
5534
|
-
brandPersistentId:
|
|
5535
|
-
themePersistentId:
|
|
5558
|
+
isEnabled: z198.boolean(),
|
|
5559
|
+
workspaceId: z198.string(),
|
|
5560
|
+
designSystemId: z198.string(),
|
|
5561
|
+
exporterId: z198.string(),
|
|
5562
|
+
brandPersistentId: z198.string().optional(),
|
|
5563
|
+
themePersistentId: z198.string().optional(),
|
|
5536
5564
|
...ExportDestinationsMap.shape,
|
|
5537
5565
|
latestJobs: DTOExportJob.array()
|
|
5538
5566
|
});
|
|
5539
5567
|
|
|
5540
5568
|
// src/api/dto/documentation/publish.ts
|
|
5541
5569
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5542
|
-
var DTOPublishDocumentationRequest =
|
|
5570
|
+
var DTOPublishDocumentationRequest = z199.object({
|
|
5543
5571
|
environment: PublishedDocEnvironment,
|
|
5544
5572
|
/**
|
|
5545
5573
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5547,15 +5575,15 @@ var DTOPublishDocumentationRequest = z197.object({
|
|
|
5547
5575
|
*/
|
|
5548
5576
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5549
5577
|
});
|
|
5550
|
-
var DTOPublishDocumentationResponse =
|
|
5578
|
+
var DTOPublishDocumentationResponse = z199.object({
|
|
5551
5579
|
job: DTOExportJob
|
|
5552
5580
|
});
|
|
5553
5581
|
|
|
5554
5582
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5555
|
-
import { z as
|
|
5583
|
+
import { z as z201 } from "zod";
|
|
5556
5584
|
|
|
5557
5585
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5558
|
-
import { z as
|
|
5586
|
+
import { z as z200 } from "zod";
|
|
5559
5587
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5560
5588
|
sortOrder: true,
|
|
5561
5589
|
parentPersistentId: true,
|
|
@@ -5565,139 +5593,139 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5565
5593
|
data: true,
|
|
5566
5594
|
shortPersistentId: true
|
|
5567
5595
|
}).extend({
|
|
5568
|
-
title:
|
|
5569
|
-
isRoot:
|
|
5570
|
-
childrenIds:
|
|
5596
|
+
title: z200.string(),
|
|
5597
|
+
isRoot: z200.boolean(),
|
|
5598
|
+
childrenIds: z200.array(z200.string()),
|
|
5571
5599
|
groupBehavior: DocumentationGroupBehavior,
|
|
5572
|
-
shortPersistentId:
|
|
5600
|
+
shortPersistentId: z200.string(),
|
|
5573
5601
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5574
|
-
type:
|
|
5602
|
+
type: z200.literal("Group"),
|
|
5575
5603
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5576
5604
|
draftState: DTODocumentationDraftState.optional(),
|
|
5577
5605
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
5578
5606
|
publishMetadata: DTODocumentationPublishMetadata.optional()
|
|
5579
5607
|
});
|
|
5580
|
-
var DTOCreateDocumentationGroupInput =
|
|
5608
|
+
var DTOCreateDocumentationGroupInput = z200.object({
|
|
5581
5609
|
// Identifier
|
|
5582
|
-
persistentId:
|
|
5610
|
+
persistentId: z200.string().uuid(),
|
|
5583
5611
|
// Group properties
|
|
5584
|
-
title:
|
|
5612
|
+
title: z200.string(),
|
|
5585
5613
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5586
5614
|
// Group placement properties
|
|
5587
|
-
afterPersistentId:
|
|
5588
|
-
parentPersistentId:
|
|
5615
|
+
afterPersistentId: z200.string().uuid().nullish(),
|
|
5616
|
+
parentPersistentId: z200.string().uuid()
|
|
5589
5617
|
});
|
|
5590
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5618
|
+
var DTOUpdateDocumentationGroupInput = z200.object({
|
|
5591
5619
|
// Identifier of the group to update
|
|
5592
|
-
id:
|
|
5620
|
+
id: z200.string(),
|
|
5593
5621
|
// Group properties
|
|
5594
|
-
title:
|
|
5622
|
+
title: z200.string().optional(),
|
|
5595
5623
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5596
5624
|
});
|
|
5597
|
-
var DTOMoveDocumentationGroupInput =
|
|
5625
|
+
var DTOMoveDocumentationGroupInput = z200.object({
|
|
5598
5626
|
// Identifier of the group to update
|
|
5599
|
-
id:
|
|
5627
|
+
id: z200.string(),
|
|
5600
5628
|
// Group placement properties
|
|
5601
|
-
parentPersistentId:
|
|
5602
|
-
afterPersistentId:
|
|
5629
|
+
parentPersistentId: z200.string().uuid(),
|
|
5630
|
+
afterPersistentId: z200.string().uuid().nullish()
|
|
5603
5631
|
});
|
|
5604
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5632
|
+
var DTODuplicateDocumentationGroupInput = z200.object({
|
|
5605
5633
|
// Identifier of the group to duplicate from
|
|
5606
|
-
id:
|
|
5634
|
+
id: z200.string(),
|
|
5607
5635
|
// New group persistent id
|
|
5608
|
-
persistentId:
|
|
5636
|
+
persistentId: z200.string().uuid(),
|
|
5609
5637
|
// Group placement properties
|
|
5610
|
-
afterPersistentId:
|
|
5611
|
-
parentPersistentId:
|
|
5638
|
+
afterPersistentId: z200.string().uuid().nullish(),
|
|
5639
|
+
parentPersistentId: z200.string().uuid()
|
|
5612
5640
|
});
|
|
5613
|
-
var DTOCreateDocumentationTabInput =
|
|
5641
|
+
var DTOCreateDocumentationTabInput = z200.object({
|
|
5614
5642
|
// New group persistent id
|
|
5615
|
-
persistentId:
|
|
5643
|
+
persistentId: z200.string().uuid(),
|
|
5616
5644
|
// If this is page, we will attempt to convert it to tab
|
|
5617
5645
|
// If this is tab group, we will add a new tab to it
|
|
5618
|
-
fromItemPersistentId:
|
|
5619
|
-
tabName:
|
|
5646
|
+
fromItemPersistentId: z200.string(),
|
|
5647
|
+
tabName: z200.string()
|
|
5620
5648
|
});
|
|
5621
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5649
|
+
var DTODeleteDocumentationTabGroupInput = z200.object({
|
|
5622
5650
|
// Deleted group id
|
|
5623
|
-
id:
|
|
5651
|
+
id: z200.string()
|
|
5624
5652
|
});
|
|
5625
|
-
var DTODeleteDocumentationGroupInput =
|
|
5653
|
+
var DTODeleteDocumentationGroupInput = z200.object({
|
|
5626
5654
|
// Identifier
|
|
5627
|
-
id:
|
|
5655
|
+
id: z200.string(),
|
|
5628
5656
|
// Deletion options
|
|
5629
|
-
deleteSubtree:
|
|
5657
|
+
deleteSubtree: z200.boolean().default(false)
|
|
5630
5658
|
});
|
|
5631
5659
|
|
|
5632
5660
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5633
|
-
var SuccessPayload =
|
|
5634
|
-
success:
|
|
5661
|
+
var SuccessPayload = z201.object({
|
|
5662
|
+
success: z201.literal(true)
|
|
5635
5663
|
});
|
|
5636
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5637
|
-
type:
|
|
5664
|
+
var DTODocumentationGroupCreateActionOutputV2 = z201.object({
|
|
5665
|
+
type: z201.literal("DocumentationGroupCreate"),
|
|
5638
5666
|
output: SuccessPayload
|
|
5639
5667
|
});
|
|
5640
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5641
|
-
type:
|
|
5668
|
+
var DTODocumentationTabCreateActionOutputV2 = z201.object({
|
|
5669
|
+
type: z201.literal("DocumentationTabCreate"),
|
|
5642
5670
|
output: SuccessPayload
|
|
5643
5671
|
});
|
|
5644
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5645
|
-
type:
|
|
5672
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z201.object({
|
|
5673
|
+
type: z201.literal("DocumentationGroupUpdate"),
|
|
5646
5674
|
output: SuccessPayload
|
|
5647
5675
|
});
|
|
5648
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5649
|
-
type:
|
|
5676
|
+
var DTODocumentationGroupMoveActionOutputV2 = z201.object({
|
|
5677
|
+
type: z201.literal("DocumentationGroupMove"),
|
|
5650
5678
|
output: SuccessPayload
|
|
5651
5679
|
});
|
|
5652
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5653
|
-
type:
|
|
5680
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z201.object({
|
|
5681
|
+
type: z201.literal("DocumentationGroupDuplicate"),
|
|
5654
5682
|
output: SuccessPayload
|
|
5655
5683
|
});
|
|
5656
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5657
|
-
type:
|
|
5684
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z201.object({
|
|
5685
|
+
type: z201.literal("DocumentationGroupDelete"),
|
|
5658
5686
|
output: SuccessPayload
|
|
5659
5687
|
});
|
|
5660
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5661
|
-
type:
|
|
5688
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z201.object({
|
|
5689
|
+
type: z201.literal("DocumentationTabGroupDelete"),
|
|
5662
5690
|
output: SuccessPayload
|
|
5663
5691
|
});
|
|
5664
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5665
|
-
type:
|
|
5692
|
+
var DTODocumentationGroupCreateActionInputV2 = z201.object({
|
|
5693
|
+
type: z201.literal("DocumentationGroupCreate"),
|
|
5666
5694
|
input: DTOCreateDocumentationGroupInput
|
|
5667
5695
|
});
|
|
5668
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5669
|
-
type:
|
|
5696
|
+
var DTODocumentationTabCreateActionInputV2 = z201.object({
|
|
5697
|
+
type: z201.literal("DocumentationTabCreate"),
|
|
5670
5698
|
input: DTOCreateDocumentationTabInput
|
|
5671
5699
|
});
|
|
5672
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5673
|
-
type:
|
|
5700
|
+
var DTODocumentationGroupUpdateActionInputV2 = z201.object({
|
|
5701
|
+
type: z201.literal("DocumentationGroupUpdate"),
|
|
5674
5702
|
input: DTOUpdateDocumentationGroupInput
|
|
5675
5703
|
});
|
|
5676
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5677
|
-
type:
|
|
5704
|
+
var DTODocumentationGroupMoveActionInputV2 = z201.object({
|
|
5705
|
+
type: z201.literal("DocumentationGroupMove"),
|
|
5678
5706
|
input: DTOMoveDocumentationGroupInput
|
|
5679
5707
|
});
|
|
5680
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5681
|
-
type:
|
|
5708
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z201.object({
|
|
5709
|
+
type: z201.literal("DocumentationGroupDuplicate"),
|
|
5682
5710
|
input: DTODuplicateDocumentationGroupInput
|
|
5683
5711
|
});
|
|
5684
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5685
|
-
type:
|
|
5712
|
+
var DTODocumentationGroupDeleteActionInputV2 = z201.object({
|
|
5713
|
+
type: z201.literal("DocumentationGroupDelete"),
|
|
5686
5714
|
input: DTODeleteDocumentationGroupInput
|
|
5687
5715
|
});
|
|
5688
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5689
|
-
type:
|
|
5716
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z201.object({
|
|
5717
|
+
type: z201.literal("DocumentationTabGroupDelete"),
|
|
5690
5718
|
input: DTODeleteDocumentationTabGroupInput
|
|
5691
5719
|
});
|
|
5692
5720
|
|
|
5693
5721
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5694
|
-
import { z as
|
|
5722
|
+
import { z as z203 } from "zod";
|
|
5695
5723
|
|
|
5696
5724
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5697
|
-
import { z as
|
|
5698
|
-
var DocumentationColorV1 =
|
|
5699
|
-
aliasTo:
|
|
5700
|
-
value:
|
|
5725
|
+
import { z as z202 } from "zod";
|
|
5726
|
+
var DocumentationColorV1 = z202.object({
|
|
5727
|
+
aliasTo: z202.string().optional(),
|
|
5728
|
+
value: z202.string().optional()
|
|
5701
5729
|
});
|
|
5702
5730
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5703
5731
|
foregroundColor: true,
|
|
@@ -5706,10 +5734,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5706
5734
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5707
5735
|
backgroundColor: DocumentationColorV1.optional()
|
|
5708
5736
|
});
|
|
5709
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5710
|
-
showSidebar:
|
|
5711
|
-
isPrivate:
|
|
5712
|
-
isHidden:
|
|
5737
|
+
var DTODocumentationItemConfigurationV1 = z202.object({
|
|
5738
|
+
showSidebar: z202.boolean(),
|
|
5739
|
+
isPrivate: z202.boolean(),
|
|
5740
|
+
isHidden: z202.boolean(),
|
|
5713
5741
|
header: DTODocumentationItemHeaderV1
|
|
5714
5742
|
});
|
|
5715
5743
|
|
|
@@ -5723,27 +5751,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5723
5751
|
data: true,
|
|
5724
5752
|
shortPersistentId: true
|
|
5725
5753
|
}).extend({
|
|
5726
|
-
title:
|
|
5727
|
-
isRoot:
|
|
5728
|
-
childrenIds:
|
|
5754
|
+
title: z203.string(),
|
|
5755
|
+
isRoot: z203.boolean(),
|
|
5756
|
+
childrenIds: z203.array(z203.string()),
|
|
5729
5757
|
groupBehavior: DocumentationGroupBehavior,
|
|
5730
|
-
shortPersistentId:
|
|
5731
|
-
type:
|
|
5758
|
+
shortPersistentId: z203.string(),
|
|
5759
|
+
type: z203.literal("Group")
|
|
5732
5760
|
});
|
|
5733
5761
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5734
5762
|
configuration: DTODocumentationItemConfigurationV1
|
|
5735
5763
|
});
|
|
5736
5764
|
|
|
5737
5765
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
5738
|
-
import { z as
|
|
5739
|
-
var DTODocumentationHierarchyV2 =
|
|
5740
|
-
pages:
|
|
5766
|
+
import { z as z204 } from "zod";
|
|
5767
|
+
var DTODocumentationHierarchyV2 = z204.object({
|
|
5768
|
+
pages: z204.array(
|
|
5741
5769
|
DTODocumentationPageV2.extend({
|
|
5742
5770
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5743
5771
|
draftState: DTODocumentationDraftState.optional()
|
|
5744
5772
|
})
|
|
5745
5773
|
),
|
|
5746
|
-
groups:
|
|
5774
|
+
groups: z204.array(
|
|
5747
5775
|
DTODocumentationGroupV2.extend({
|
|
5748
5776
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5749
5777
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -5752,76 +5780,84 @@ var DTODocumentationHierarchyV2 = z202.object({
|
|
|
5752
5780
|
});
|
|
5753
5781
|
|
|
5754
5782
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5755
|
-
import { z as
|
|
5756
|
-
var SuccessPayload2 =
|
|
5757
|
-
success:
|
|
5783
|
+
import { z as z205 } from "zod";
|
|
5784
|
+
var SuccessPayload2 = z205.object({
|
|
5785
|
+
success: z205.literal(true)
|
|
5786
|
+
});
|
|
5787
|
+
var DTODocumentationPageCreateActionOutputV2 = z205.object({
|
|
5788
|
+
type: z205.literal("DocumentationPageCreate"),
|
|
5789
|
+
output: SuccessPayload2
|
|
5758
5790
|
});
|
|
5759
|
-
var
|
|
5760
|
-
type:
|
|
5791
|
+
var DTODocumentationPageUpdateActionOutputV2 = z205.object({
|
|
5792
|
+
type: z205.literal("DocumentationPageUpdate"),
|
|
5761
5793
|
output: SuccessPayload2
|
|
5762
5794
|
});
|
|
5763
|
-
var
|
|
5764
|
-
type:
|
|
5795
|
+
var DTODocumentationPageMoveActionOutputV2 = z205.object({
|
|
5796
|
+
type: z205.literal("DocumentationPageMove"),
|
|
5765
5797
|
output: SuccessPayload2
|
|
5766
5798
|
});
|
|
5767
|
-
var
|
|
5768
|
-
type:
|
|
5799
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z205.object({
|
|
5800
|
+
type: z205.literal("DocumentationPageDuplicate"),
|
|
5769
5801
|
output: SuccessPayload2
|
|
5770
5802
|
});
|
|
5771
|
-
var
|
|
5772
|
-
type:
|
|
5803
|
+
var DTODocumentationPageDeleteActionOutputV2 = z205.object({
|
|
5804
|
+
type: z205.literal("DocumentationPageDelete"),
|
|
5773
5805
|
output: SuccessPayload2
|
|
5774
5806
|
});
|
|
5775
|
-
var
|
|
5776
|
-
type:
|
|
5807
|
+
var DTODocumentationPageRestoreActionOutput = z205.object({
|
|
5808
|
+
type: z205.literal("DocumentationPageRestore"),
|
|
5777
5809
|
output: SuccessPayload2
|
|
5778
5810
|
});
|
|
5779
|
-
var
|
|
5780
|
-
type:
|
|
5811
|
+
var DTODocumentationGroupRestoreActionOutput = z205.object({
|
|
5812
|
+
type: z205.literal("DocumentationGroupRestore"),
|
|
5781
5813
|
output: SuccessPayload2
|
|
5782
5814
|
});
|
|
5783
|
-
var
|
|
5784
|
-
type:
|
|
5815
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z205.object({
|
|
5816
|
+
type: z205.literal("DocumentationPageApprovalStateChange"),
|
|
5785
5817
|
output: SuccessPayload2
|
|
5786
5818
|
});
|
|
5787
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5788
|
-
type:
|
|
5819
|
+
var DTODocumentationPageCreateActionInputV2 = z205.object({
|
|
5820
|
+
type: z205.literal("DocumentationPageCreate"),
|
|
5789
5821
|
input: DTOCreateDocumentationPageInputV2
|
|
5790
5822
|
});
|
|
5791
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5792
|
-
type:
|
|
5823
|
+
var DTODocumentationPageUpdateActionInputV2 = z205.object({
|
|
5824
|
+
type: z205.literal("DocumentationPageUpdate"),
|
|
5793
5825
|
input: DTOUpdateDocumentationPageInputV2
|
|
5794
5826
|
});
|
|
5795
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5796
|
-
type:
|
|
5827
|
+
var DTODocumentationPageMoveActionInputV2 = z205.object({
|
|
5828
|
+
type: z205.literal("DocumentationPageMove"),
|
|
5797
5829
|
input: DTOMoveDocumentationPageInputV2
|
|
5798
5830
|
});
|
|
5799
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5800
|
-
type:
|
|
5831
|
+
var DTODocumentationPageDuplicateActionInputV2 = z205.object({
|
|
5832
|
+
type: z205.literal("DocumentationPageDuplicate"),
|
|
5801
5833
|
input: DTODuplicateDocumentationPageInputV2
|
|
5802
5834
|
});
|
|
5803
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5804
|
-
type:
|
|
5835
|
+
var DTODocumentationPageDeleteActionInputV2 = z205.object({
|
|
5836
|
+
type: z205.literal("DocumentationPageDelete"),
|
|
5805
5837
|
input: DTODeleteDocumentationPageInputV2
|
|
5806
5838
|
});
|
|
5807
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5808
|
-
type:
|
|
5839
|
+
var DTODocumentationPageRestoreActionInput = z205.object({
|
|
5840
|
+
type: z205.literal("DocumentationPageRestore"),
|
|
5809
5841
|
input: DTORestoreDocumentationPageInput
|
|
5810
5842
|
});
|
|
5811
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5812
|
-
type:
|
|
5843
|
+
var DTODocumentationGroupRestoreActionInput = z205.object({
|
|
5844
|
+
type: z205.literal("DocumentationGroupRestore"),
|
|
5813
5845
|
input: DTORestoreDocumentationGroupInput
|
|
5814
5846
|
});
|
|
5847
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z205.object({
|
|
5848
|
+
type: z205.literal("DocumentationPageApprovalStateChange"),
|
|
5849
|
+
input: DTODocumentationPageApprovalStateChangeInput
|
|
5850
|
+
});
|
|
5815
5851
|
|
|
5816
5852
|
// src/api/dto/elements/documentation/page-content.ts
|
|
5817
|
-
import { z as
|
|
5853
|
+
import { z as z206 } from "zod";
|
|
5818
5854
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5819
|
-
var DTODocumentationPageContentGetResponse =
|
|
5855
|
+
var DTODocumentationPageContentGetResponse = z206.object({
|
|
5820
5856
|
pageContent: DTODocumentationPageContent
|
|
5821
5857
|
});
|
|
5822
5858
|
|
|
5823
5859
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
5824
|
-
import { z as
|
|
5860
|
+
import { z as z207 } from "zod";
|
|
5825
5861
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
5826
5862
|
data: true,
|
|
5827
5863
|
meta: true,
|
|
@@ -5829,30 +5865,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
5829
5865
|
sortOrder: true
|
|
5830
5866
|
}).extend({
|
|
5831
5867
|
configuration: DTODocumentationItemConfigurationV1,
|
|
5832
|
-
blocks:
|
|
5833
|
-
title:
|
|
5834
|
-
path:
|
|
5868
|
+
blocks: z207.array(PageBlockV1),
|
|
5869
|
+
title: z207.string(),
|
|
5870
|
+
path: z207.string()
|
|
5835
5871
|
});
|
|
5836
5872
|
|
|
5837
5873
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
5838
|
-
import { z as
|
|
5839
|
-
var DTOFigmaNodeOrigin =
|
|
5840
|
-
sourceId:
|
|
5841
|
-
fileId:
|
|
5842
|
-
parentName:
|
|
5874
|
+
import { z as z208 } from "zod";
|
|
5875
|
+
var DTOFigmaNodeOrigin = z208.object({
|
|
5876
|
+
sourceId: z208.string(),
|
|
5877
|
+
fileId: z208.string().optional(),
|
|
5878
|
+
parentName: z208.string().optional()
|
|
5843
5879
|
});
|
|
5844
|
-
var DTOFigmaNodeData =
|
|
5880
|
+
var DTOFigmaNodeData = z208.object({
|
|
5845
5881
|
// Id of the node in the Figma file
|
|
5846
|
-
figmaNodeId:
|
|
5882
|
+
figmaNodeId: z208.string(),
|
|
5847
5883
|
// Validity
|
|
5848
|
-
isValid:
|
|
5884
|
+
isValid: z208.boolean(),
|
|
5849
5885
|
// Asset data
|
|
5850
|
-
assetId:
|
|
5851
|
-
assetUrl:
|
|
5886
|
+
assetId: z208.string(),
|
|
5887
|
+
assetUrl: z208.string(),
|
|
5852
5888
|
// Asset metadata
|
|
5853
|
-
assetScale:
|
|
5854
|
-
assetWidth:
|
|
5855
|
-
assetHeight:
|
|
5889
|
+
assetScale: z208.number(),
|
|
5890
|
+
assetWidth: z208.number().optional(),
|
|
5891
|
+
assetHeight: z208.number().optional()
|
|
5856
5892
|
});
|
|
5857
5893
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
5858
5894
|
data: true,
|
|
@@ -5861,105 +5897,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
5861
5897
|
data: DTOFigmaNodeData,
|
|
5862
5898
|
origin: DTOFigmaNodeOrigin
|
|
5863
5899
|
});
|
|
5864
|
-
var DTOFigmaNodeRenderInput =
|
|
5900
|
+
var DTOFigmaNodeRenderInput = z208.object({
|
|
5865
5901
|
// Id of a design system's data source representing a linked Figma file
|
|
5866
|
-
sourceId:
|
|
5902
|
+
sourceId: z208.string(),
|
|
5867
5903
|
// Id of a node within the Figma file
|
|
5868
|
-
figmaFileNodeId:
|
|
5904
|
+
figmaFileNodeId: z208.string()
|
|
5869
5905
|
});
|
|
5870
5906
|
|
|
5871
5907
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5872
|
-
import { z as
|
|
5873
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5874
|
-
type:
|
|
5875
|
-
figmaNodes:
|
|
5908
|
+
import { z as z209 } from "zod";
|
|
5909
|
+
var DTOFigmaNodeRenderActionOutput = z209.object({
|
|
5910
|
+
type: z209.literal("FigmaNodeRender"),
|
|
5911
|
+
figmaNodes: z209.array(DTOFigmaNode)
|
|
5876
5912
|
});
|
|
5877
|
-
var DTOFigmaNodeRenderActionInput =
|
|
5878
|
-
type:
|
|
5913
|
+
var DTOFigmaNodeRenderActionInput = z209.object({
|
|
5914
|
+
type: z209.literal("FigmaNodeRender"),
|
|
5879
5915
|
input: DTOFigmaNodeRenderInput.array()
|
|
5880
5916
|
});
|
|
5881
5917
|
|
|
5882
5918
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5883
|
-
import { z as
|
|
5919
|
+
import { z as z211 } from "zod";
|
|
5884
5920
|
|
|
5885
5921
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5886
|
-
import { z as
|
|
5922
|
+
import { z as z210 } from "zod";
|
|
5887
5923
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
5888
|
-
var DTOElementPropertyDefinition =
|
|
5889
|
-
id:
|
|
5890
|
-
designSystemVersionId:
|
|
5924
|
+
var DTOElementPropertyDefinition = z210.object({
|
|
5925
|
+
id: z210.string(),
|
|
5926
|
+
designSystemVersionId: z210.string(),
|
|
5891
5927
|
meta: ObjectMeta,
|
|
5892
|
-
persistentId:
|
|
5928
|
+
persistentId: z210.string(),
|
|
5893
5929
|
type: ElementPropertyTypeSchema,
|
|
5894
5930
|
targetElementType: ElementPropertyTargetType,
|
|
5895
|
-
codeName:
|
|
5896
|
-
options:
|
|
5931
|
+
codeName: z210.string().regex(CODE_NAME_REGEX2),
|
|
5932
|
+
options: z210.array(ElementPropertyDefinitionOption).optional(),
|
|
5897
5933
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5898
5934
|
});
|
|
5899
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5900
|
-
definitions:
|
|
5935
|
+
var DTOElementPropertyDefinitionsGetResponse = z210.object({
|
|
5936
|
+
definitions: z210.array(DTOElementPropertyDefinition)
|
|
5901
5937
|
});
|
|
5902
5938
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
5903
5939
|
id: true,
|
|
5904
5940
|
designSystemVersionId: true
|
|
5905
5941
|
});
|
|
5906
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
5907
|
-
id:
|
|
5908
|
-
name:
|
|
5909
|
-
description:
|
|
5910
|
-
codeName:
|
|
5911
|
-
options:
|
|
5942
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z210.object({
|
|
5943
|
+
id: z210.string(),
|
|
5944
|
+
name: z210.string().optional(),
|
|
5945
|
+
description: z210.string().optional(),
|
|
5946
|
+
codeName: z210.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5947
|
+
options: z210.array(ElementPropertyDefinitionOption).optional()
|
|
5912
5948
|
});
|
|
5913
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
5914
|
-
id:
|
|
5949
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z210.object({
|
|
5950
|
+
id: z210.string()
|
|
5915
5951
|
});
|
|
5916
5952
|
|
|
5917
5953
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5918
|
-
var SuccessPayload3 =
|
|
5919
|
-
success:
|
|
5954
|
+
var SuccessPayload3 = z211.object({
|
|
5955
|
+
success: z211.literal(true)
|
|
5920
5956
|
});
|
|
5921
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5922
|
-
type:
|
|
5957
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z211.object({
|
|
5958
|
+
type: z211.literal("PropertyDefinitionCreate"),
|
|
5923
5959
|
definition: DTOElementPropertyDefinition
|
|
5924
5960
|
});
|
|
5925
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5926
|
-
type:
|
|
5961
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z211.object({
|
|
5962
|
+
type: z211.literal("PropertyDefinitionUpdate"),
|
|
5927
5963
|
definition: DTOElementPropertyDefinition
|
|
5928
5964
|
});
|
|
5929
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5930
|
-
type:
|
|
5965
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z211.object({
|
|
5966
|
+
type: z211.literal("PropertyDefinitionDelete"),
|
|
5931
5967
|
output: SuccessPayload3
|
|
5932
5968
|
});
|
|
5933
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5934
|
-
type:
|
|
5969
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z211.object({
|
|
5970
|
+
type: z211.literal("PropertyDefinitionCreate"),
|
|
5935
5971
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5936
5972
|
});
|
|
5937
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5938
|
-
type:
|
|
5973
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z211.object({
|
|
5974
|
+
type: z211.literal("PropertyDefinitionUpdate"),
|
|
5939
5975
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5940
5976
|
});
|
|
5941
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5942
|
-
type:
|
|
5977
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z211.object({
|
|
5978
|
+
type: z211.literal("PropertyDefinitionDelete"),
|
|
5943
5979
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5944
5980
|
});
|
|
5945
5981
|
|
|
5946
5982
|
// src/api/dto/elements/properties/property-values.ts
|
|
5947
|
-
import { z as
|
|
5948
|
-
var DTOElementPropertyValue =
|
|
5949
|
-
id:
|
|
5950
|
-
designSystemVersionId:
|
|
5951
|
-
definitionId:
|
|
5952
|
-
targetElementId:
|
|
5953
|
-
value:
|
|
5954
|
-
valuePreview:
|
|
5983
|
+
import { z as z212 } from "zod";
|
|
5984
|
+
var DTOElementPropertyValue = z212.object({
|
|
5985
|
+
id: z212.string(),
|
|
5986
|
+
designSystemVersionId: z212.string(),
|
|
5987
|
+
definitionId: z212.string(),
|
|
5988
|
+
targetElementId: z212.string(),
|
|
5989
|
+
value: z212.union([z212.string(), z212.number(), z212.boolean()]).optional(),
|
|
5990
|
+
valuePreview: z212.string().optional()
|
|
5955
5991
|
});
|
|
5956
|
-
var DTOElementPropertyValuesGetResponse =
|
|
5957
|
-
values:
|
|
5992
|
+
var DTOElementPropertyValuesGetResponse = z212.object({
|
|
5993
|
+
values: z212.array(DTOElementPropertyValue)
|
|
5958
5994
|
});
|
|
5959
5995
|
|
|
5960
5996
|
// src/api/dto/elements/elements-action-v2.ts
|
|
5961
|
-
import { z as
|
|
5962
|
-
var DTOElementActionOutput =
|
|
5997
|
+
import { z as z213 } from "zod";
|
|
5998
|
+
var DTOElementActionOutput = z213.discriminatedUnion("type", [
|
|
5963
5999
|
// Documentation pages
|
|
5964
6000
|
DTODocumentationPageCreateActionOutputV2,
|
|
5965
6001
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -5982,9 +6018,11 @@ var DTOElementActionOutput = z211.discriminatedUnion("type", [
|
|
|
5982
6018
|
DTOPropertyDefinitionDeleteActionOutputV2,
|
|
5983
6019
|
// Restore
|
|
5984
6020
|
DTODocumentationPageRestoreActionOutput,
|
|
5985
|
-
DTODocumentationGroupRestoreActionOutput
|
|
6021
|
+
DTODocumentationGroupRestoreActionOutput,
|
|
6022
|
+
// Approvals
|
|
6023
|
+
DTODocumentationPageApprovalStateChangeActionOutput
|
|
5986
6024
|
]);
|
|
5987
|
-
var DTOElementActionInput =
|
|
6025
|
+
var DTOElementActionInput = z213.discriminatedUnion("type", [
|
|
5988
6026
|
// Documentation pages
|
|
5989
6027
|
DTODocumentationPageCreateActionInputV2,
|
|
5990
6028
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6007,145 +6045,147 @@ var DTOElementActionInput = z211.discriminatedUnion("type", [
|
|
|
6007
6045
|
DTOPropertyDefinitionDeleteActionInputV2,
|
|
6008
6046
|
// Restore
|
|
6009
6047
|
DTODocumentationPageRestoreActionInput,
|
|
6010
|
-
DTODocumentationGroupRestoreActionInput
|
|
6048
|
+
DTODocumentationGroupRestoreActionInput,
|
|
6049
|
+
// Approval
|
|
6050
|
+
DTODocumentationPageApprovalStateChangeActionInput
|
|
6011
6051
|
]);
|
|
6012
6052
|
|
|
6013
6053
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6014
|
-
import { z as
|
|
6015
|
-
var DTOElementsGetTypeFilter =
|
|
6016
|
-
var DTOElementsGetQuerySchema =
|
|
6017
|
-
types:
|
|
6054
|
+
import { z as z214 } from "zod";
|
|
6055
|
+
var DTOElementsGetTypeFilter = z214.enum(["FigmaNode"]);
|
|
6056
|
+
var DTOElementsGetQuerySchema = z214.object({
|
|
6057
|
+
types: z214.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6018
6058
|
});
|
|
6019
|
-
var DTOElementsGetOutput =
|
|
6020
|
-
figmaNodes:
|
|
6059
|
+
var DTOElementsGetOutput = z214.object({
|
|
6060
|
+
figmaNodes: z214.array(DTOFigmaNode).optional()
|
|
6021
6061
|
});
|
|
6022
6062
|
|
|
6023
6063
|
// src/api/dto/figma-components/assets/download.ts
|
|
6024
|
-
import { z as
|
|
6025
|
-
var DTOAssetRenderConfiguration =
|
|
6026
|
-
prefix:
|
|
6027
|
-
suffix:
|
|
6028
|
-
scale:
|
|
6029
|
-
format:
|
|
6030
|
-
});
|
|
6031
|
-
var DTORenderedAssetFile =
|
|
6032
|
-
assetId:
|
|
6033
|
-
fileName:
|
|
6034
|
-
sourceUrl:
|
|
6064
|
+
import { z as z215 } from "zod";
|
|
6065
|
+
var DTOAssetRenderConfiguration = z215.object({
|
|
6066
|
+
prefix: z215.string().optional(),
|
|
6067
|
+
suffix: z215.string().optional(),
|
|
6068
|
+
scale: z215.enum(["x1", "x2", "x3", "x4"]),
|
|
6069
|
+
format: z215.enum(["png", "pdf", "svg"])
|
|
6070
|
+
});
|
|
6071
|
+
var DTORenderedAssetFile = z215.object({
|
|
6072
|
+
assetId: z215.string(),
|
|
6073
|
+
fileName: z215.string(),
|
|
6074
|
+
sourceUrl: z215.string(),
|
|
6035
6075
|
settings: DTOAssetRenderConfiguration,
|
|
6036
|
-
originalName:
|
|
6076
|
+
originalName: z215.string()
|
|
6037
6077
|
});
|
|
6038
|
-
var DTODownloadAssetsRequest =
|
|
6039
|
-
persistentIds:
|
|
6078
|
+
var DTODownloadAssetsRequest = z215.object({
|
|
6079
|
+
persistentIds: z215.array(z215.string().uuid()).optional(),
|
|
6040
6080
|
settings: DTOAssetRenderConfiguration.array()
|
|
6041
6081
|
});
|
|
6042
|
-
var DTODownloadAssetsResponse =
|
|
6082
|
+
var DTODownloadAssetsResponse = z215.object({
|
|
6043
6083
|
items: DTORenderedAssetFile.array()
|
|
6044
6084
|
});
|
|
6045
6085
|
|
|
6046
6086
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6047
|
-
import { z as
|
|
6048
|
-
var DTOLiveblocksAuthResponse =
|
|
6049
|
-
token:
|
|
6087
|
+
import { z as z216 } from "zod";
|
|
6088
|
+
var DTOLiveblocksAuthResponse = z216.object({
|
|
6089
|
+
token: z216.string()
|
|
6050
6090
|
});
|
|
6051
6091
|
|
|
6052
6092
|
// src/api/dto/users/profile/update.ts
|
|
6053
|
-
import { z as
|
|
6054
|
-
var DTOUserProfileUpdateResponse =
|
|
6093
|
+
import { z as z217 } from "zod";
|
|
6094
|
+
var DTOUserProfileUpdateResponse = z217.object({
|
|
6055
6095
|
user: User
|
|
6056
6096
|
});
|
|
6057
6097
|
|
|
6058
6098
|
// src/api/dto/workspaces/git.ts
|
|
6059
|
-
import { z as
|
|
6060
|
-
var DTOGitOrganization =
|
|
6061
|
-
id:
|
|
6062
|
-
name:
|
|
6063
|
-
url:
|
|
6064
|
-
slug:
|
|
6065
|
-
});
|
|
6066
|
-
var DTOGitProject =
|
|
6067
|
-
id:
|
|
6068
|
-
name:
|
|
6069
|
-
url:
|
|
6070
|
-
slug:
|
|
6071
|
-
});
|
|
6072
|
-
var DTOGitRepository =
|
|
6073
|
-
id:
|
|
6074
|
-
name:
|
|
6075
|
-
url:
|
|
6076
|
-
slug:
|
|
6077
|
-
defaultBranch:
|
|
6078
|
-
});
|
|
6079
|
-
var DTOGitBranch =
|
|
6080
|
-
name:
|
|
6081
|
-
lastCommitId:
|
|
6099
|
+
import { z as z218 } from "zod";
|
|
6100
|
+
var DTOGitOrganization = z218.object({
|
|
6101
|
+
id: z218.string(),
|
|
6102
|
+
name: z218.string(),
|
|
6103
|
+
url: z218.string(),
|
|
6104
|
+
slug: z218.string()
|
|
6105
|
+
});
|
|
6106
|
+
var DTOGitProject = z218.object({
|
|
6107
|
+
id: z218.string(),
|
|
6108
|
+
name: z218.string(),
|
|
6109
|
+
url: z218.string(),
|
|
6110
|
+
slug: z218.string()
|
|
6111
|
+
});
|
|
6112
|
+
var DTOGitRepository = z218.object({
|
|
6113
|
+
id: z218.string(),
|
|
6114
|
+
name: z218.string(),
|
|
6115
|
+
url: z218.string(),
|
|
6116
|
+
slug: z218.string(),
|
|
6117
|
+
defaultBranch: z218.string().optional()
|
|
6118
|
+
});
|
|
6119
|
+
var DTOGitBranch = z218.object({
|
|
6120
|
+
name: z218.string(),
|
|
6121
|
+
lastCommitId: z218.string()
|
|
6082
6122
|
});
|
|
6083
6123
|
|
|
6084
6124
|
// src/api/dto/workspaces/integrations.ts
|
|
6085
|
-
import { z as
|
|
6125
|
+
import { z as z219 } from "zod";
|
|
6086
6126
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6087
6127
|
accessToken: true,
|
|
6088
6128
|
refreshToken: true
|
|
6089
6129
|
});
|
|
6090
|
-
var DTOIntegration =
|
|
6091
|
-
id:
|
|
6092
|
-
workspaceId:
|
|
6130
|
+
var DTOIntegration = z219.object({
|
|
6131
|
+
id: z219.string(),
|
|
6132
|
+
workspaceId: z219.string(),
|
|
6093
6133
|
type: ExtendedIntegrationType,
|
|
6094
|
-
createdAt:
|
|
6095
|
-
integrationCredentials:
|
|
6096
|
-
integrationDesignSystems:
|
|
6134
|
+
createdAt: z219.coerce.date(),
|
|
6135
|
+
integrationCredentials: z219.array(DTOIntegrationCredentials).optional(),
|
|
6136
|
+
integrationDesignSystems: z219.array(IntegrationDesignSystem).optional()
|
|
6097
6137
|
});
|
|
6098
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6099
|
-
url:
|
|
6138
|
+
var DTOIntegrationOAuthGetResponse = z219.object({
|
|
6139
|
+
url: z219.string()
|
|
6100
6140
|
});
|
|
6101
|
-
var DTOIntegrationPostResponse =
|
|
6141
|
+
var DTOIntegrationPostResponse = z219.object({
|
|
6102
6142
|
integration: DTOIntegration
|
|
6103
6143
|
});
|
|
6104
|
-
var DTOIntegrationsGetListResponse =
|
|
6144
|
+
var DTOIntegrationsGetListResponse = z219.object({
|
|
6105
6145
|
integrations: DTOIntegration.array()
|
|
6106
6146
|
});
|
|
6107
6147
|
|
|
6108
6148
|
// src/api/dto/workspaces/membership.ts
|
|
6109
|
-
import { z as
|
|
6149
|
+
import { z as z222 } from "zod";
|
|
6110
6150
|
|
|
6111
6151
|
// src/api/dto/workspaces/workspace.ts
|
|
6112
|
-
import { z as
|
|
6152
|
+
import { z as z221 } from "zod";
|
|
6113
6153
|
|
|
6114
6154
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6115
|
-
import { z as
|
|
6155
|
+
import { z as z220 } from "zod";
|
|
6116
6156
|
var DTONpmRegistryConfigConstants = {
|
|
6117
6157
|
passwordPlaceholder: "redacted"
|
|
6118
6158
|
};
|
|
6119
|
-
var DTONpmRegistryConfig =
|
|
6159
|
+
var DTONpmRegistryConfig = z220.object({
|
|
6120
6160
|
// Registry basic configuration
|
|
6121
6161
|
registryType: NpmRegistryType,
|
|
6122
|
-
registryUrl:
|
|
6123
|
-
customRegistryUrl:
|
|
6162
|
+
registryUrl: z220.string(),
|
|
6163
|
+
customRegistryUrl: z220.string().optional(),
|
|
6124
6164
|
// URL of Supernova NPM packages proxy
|
|
6125
|
-
proxyUrl:
|
|
6165
|
+
proxyUrl: z220.string(),
|
|
6126
6166
|
// Auth configuration
|
|
6127
6167
|
authType: NpmRegistryAuthType,
|
|
6128
|
-
accessToken:
|
|
6129
|
-
username:
|
|
6130
|
-
password:
|
|
6168
|
+
accessToken: z220.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6169
|
+
username: z220.string().optional(),
|
|
6170
|
+
password: z220.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6131
6171
|
// NPM package scopes for whih the proxy should be enabled
|
|
6132
|
-
enabledScopes:
|
|
6172
|
+
enabledScopes: z220.array(z220.string()),
|
|
6133
6173
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6134
6174
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6135
|
-
bypassProxy:
|
|
6175
|
+
bypassProxy: z220.boolean()
|
|
6136
6176
|
});
|
|
6137
6177
|
|
|
6138
6178
|
// src/api/dto/workspaces/workspace.ts
|
|
6139
|
-
var DTOWorkspace =
|
|
6140
|
-
id:
|
|
6179
|
+
var DTOWorkspace = z221.object({
|
|
6180
|
+
id: z221.string(),
|
|
6141
6181
|
profile: WorkspaceProfile,
|
|
6142
6182
|
subscription: Subscription,
|
|
6143
6183
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6144
6184
|
});
|
|
6145
6185
|
|
|
6146
6186
|
// src/api/dto/workspaces/membership.ts
|
|
6147
|
-
var DTOWorkspaceRole =
|
|
6148
|
-
var DTOUserWorkspaceMembership =
|
|
6187
|
+
var DTOWorkspaceRole = z222.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
6188
|
+
var DTOUserWorkspaceMembership = z222.object({
|
|
6149
6189
|
// Workspace the user is a member of
|
|
6150
6190
|
workspace: DTOWorkspace,
|
|
6151
6191
|
// Assigned role the user has in the workspace
|
|
@@ -6155,8 +6195,8 @@ var DTOUserWorkspaceMembership = z220.object({
|
|
|
6155
6195
|
// when a workspace's subscription is downgraded to free tier
|
|
6156
6196
|
effectiveRole: DTOWorkspaceRole
|
|
6157
6197
|
});
|
|
6158
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6159
|
-
membership:
|
|
6198
|
+
var DTOUserWorkspaceMembershipsResponse = z222.object({
|
|
6199
|
+
membership: z222.array(DTOUserWorkspaceMembership)
|
|
6160
6200
|
});
|
|
6161
6201
|
|
|
6162
6202
|
// src/utils/hash.ts
|
|
@@ -6218,7 +6258,7 @@ function generateHash(input, debug = false) {
|
|
|
6218
6258
|
}
|
|
6219
6259
|
|
|
6220
6260
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6221
|
-
import { z as
|
|
6261
|
+
import { z as z223 } from "zod";
|
|
6222
6262
|
|
|
6223
6263
|
// src/yjs/version-room/base.ts
|
|
6224
6264
|
var VersionRoomBaseYDoc = class {
|
|
@@ -6271,13 +6311,15 @@ var VersionRoomBaseYDoc = class {
|
|
|
6271
6311
|
const map = this.internalSettingsYMap;
|
|
6272
6312
|
const rawSettings = {
|
|
6273
6313
|
routingVersion: map.get("routingVersion"),
|
|
6274
|
-
isDraftFeatureAdopted: map.get("isDraftFeatureAdopted") ?? false
|
|
6314
|
+
isDraftFeatureAdopted: map.get("isDraftFeatureAdopted") ?? false,
|
|
6315
|
+
isApprovalFeatureEnabled: map.get("isApprovalFeatureEnabled") ?? false
|
|
6275
6316
|
};
|
|
6276
6317
|
const settingsParseResult = DocumentationHierarchySettings.safeParse(rawSettings);
|
|
6277
6318
|
if (!settingsParseResult.success) {
|
|
6278
6319
|
return {
|
|
6279
6320
|
routingVersion: "2",
|
|
6280
|
-
isDraftFeatureAdopted: false
|
|
6321
|
+
isDraftFeatureAdopted: false,
|
|
6322
|
+
isApprovalFeatureEnabled: false
|
|
6281
6323
|
};
|
|
6282
6324
|
}
|
|
6283
6325
|
return settingsParseResult.data;
|
|
@@ -6286,6 +6328,7 @@ var VersionRoomBaseYDoc = class {
|
|
|
6286
6328
|
const map = this.internalSettingsYMap;
|
|
6287
6329
|
map.set("routingVersion", settings.routingVersion);
|
|
6288
6330
|
map.set("isDraftFeatureAdopted", settings.isDraftFeatureAdopted);
|
|
6331
|
+
map.set("isApprovalFeatureEnabled", settings.isApprovalFeatureEnabled);
|
|
6289
6332
|
}
|
|
6290
6333
|
get internalSettingsYMap() {
|
|
6291
6334
|
return this.yDoc.getMap("documentationInternalSettings");
|
|
@@ -6352,6 +6395,19 @@ var VersionRoomBaseYDoc = class {
|
|
|
6352
6395
|
get documentationPageContentHashesYMap() {
|
|
6353
6396
|
return this.yDoc.getMap("documentationPageHashes");
|
|
6354
6397
|
}
|
|
6398
|
+
// Approval states
|
|
6399
|
+
updateApprovalStates(updates) {
|
|
6400
|
+
this.setObjects(this.documentationPageApprovalsMap, updates);
|
|
6401
|
+
}
|
|
6402
|
+
removeApprovalStates(ids) {
|
|
6403
|
+
this.deleteObjects(this.documentationPageApprovalsMap, ids);
|
|
6404
|
+
}
|
|
6405
|
+
getApprovals() {
|
|
6406
|
+
return this.getObjects(this.documentationPageApprovalsMap, DocumentationPageApproval);
|
|
6407
|
+
}
|
|
6408
|
+
get documentationPageApprovalsMap() {
|
|
6409
|
+
return this.yDoc.getMap("documentationPageApprovals");
|
|
6410
|
+
}
|
|
6355
6411
|
};
|
|
6356
6412
|
|
|
6357
6413
|
// src/yjs/version-room/utils.ts
|
|
@@ -6446,11 +6502,14 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6446
6502
|
const pageDraftStates = this.buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots);
|
|
6447
6503
|
const pageDraftDeletedStates = this.buildPageDraftDeletedStates(pages, pageSnapshots);
|
|
6448
6504
|
const pagePublishedMetadata = this.buildPagePublishedMetadata(pages, pageSnapshots);
|
|
6505
|
+
const pageApprovalStates = this.buildPageApprovalStates(pages);
|
|
6449
6506
|
pageDTOs.forEach((p) => {
|
|
6450
6507
|
const draftState = pageDraftDeletedStates.get(p.id) ?? pageDraftStates.get(p.id);
|
|
6451
6508
|
draftState && (p.draftState = draftState);
|
|
6452
6509
|
const publishMetadata = pagePublishedMetadata.get(p.id);
|
|
6453
6510
|
publishMetadata && (p.publishMetadata = publishMetadata);
|
|
6511
|
+
const approvalState = pageApprovalStates.get(p.id);
|
|
6512
|
+
approvalState && (p.approvalState = approvalState);
|
|
6454
6513
|
});
|
|
6455
6514
|
const groupDraftStates = this.buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots);
|
|
6456
6515
|
const groupDraftDeletedStates = this.buildGroupDraftDeletedStates(groups, groupSnapshots);
|
|
@@ -6670,25 +6729,44 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6670
6729
|
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6671
6730
|
return doc.getPageSnapshots().filter((s) => s.reason === "Publish").length > 0 || doc.getGroupSnapshots().filter((s) => s.reason === "Publish").length > 0;
|
|
6672
6731
|
}
|
|
6732
|
+
isApprovalsFeatureEnabled() {
|
|
6733
|
+
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6734
|
+
const settings = doc.getDocumentationInternalSettings();
|
|
6735
|
+
return settings.isApprovalFeatureEnabled;
|
|
6736
|
+
}
|
|
6737
|
+
buildPageApprovalStates(pages) {
|
|
6738
|
+
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6739
|
+
const pageIds = pages.map((p) => p.id);
|
|
6740
|
+
const result = /* @__PURE__ */ new Map();
|
|
6741
|
+
const approvals = doc.getApprovals();
|
|
6742
|
+
for (const pId of pageIds) {
|
|
6743
|
+
const approval = approvals.find((approval2) => approval2.pageId === pId);
|
|
6744
|
+
if (approval) {
|
|
6745
|
+
result.set(pId, approval);
|
|
6746
|
+
}
|
|
6747
|
+
}
|
|
6748
|
+
return result;
|
|
6749
|
+
}
|
|
6673
6750
|
};
|
|
6674
6751
|
|
|
6675
6752
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6676
|
-
var DocumentationHierarchySettings =
|
|
6677
|
-
routingVersion:
|
|
6678
|
-
isDraftFeatureAdopted:
|
|
6753
|
+
var DocumentationHierarchySettings = z223.object({
|
|
6754
|
+
routingVersion: z223.string(),
|
|
6755
|
+
isDraftFeatureAdopted: z223.boolean(),
|
|
6756
|
+
isApprovalFeatureEnabled: z223.boolean()
|
|
6679
6757
|
});
|
|
6680
6758
|
function yjsToDocumentationHierarchy(doc) {
|
|
6681
6759
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
6682
6760
|
}
|
|
6683
6761
|
|
|
6684
6762
|
// src/yjs/design-system-content/item-configuration.ts
|
|
6685
|
-
import { z as
|
|
6686
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6687
|
-
title:
|
|
6763
|
+
import { z as z224 } from "zod";
|
|
6764
|
+
var DTODocumentationPageRoomHeaderData = z224.object({
|
|
6765
|
+
title: z224.string(),
|
|
6688
6766
|
configuration: DTODocumentationItemConfigurationV2
|
|
6689
6767
|
});
|
|
6690
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
6691
|
-
title:
|
|
6768
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z224.object({
|
|
6769
|
+
title: z224.string().optional(),
|
|
6692
6770
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
6693
6771
|
});
|
|
6694
6772
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -6739,7 +6817,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
6739
6817
|
header: rawHeader
|
|
6740
6818
|
};
|
|
6741
6819
|
return {
|
|
6742
|
-
title:
|
|
6820
|
+
title: z224.string().parse(title),
|
|
6743
6821
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
6744
6822
|
};
|
|
6745
6823
|
}
|
|
@@ -6749,9 +6827,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
6749
6827
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
6750
6828
|
|
|
6751
6829
|
// src/yjs/docs-editor/model/page.ts
|
|
6752
|
-
import { z as
|
|
6753
|
-
var DocumentationPageEditorModel =
|
|
6754
|
-
blocks:
|
|
6830
|
+
import { z as z225 } from "zod";
|
|
6831
|
+
var DocumentationPageEditorModel = z225.object({
|
|
6832
|
+
blocks: z225.array(DocumentationPageContentItem)
|
|
6755
6833
|
});
|
|
6756
6834
|
|
|
6757
6835
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -10429,7 +10507,7 @@ var blocks = [
|
|
|
10429
10507
|
|
|
10430
10508
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10431
10509
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10432
|
-
import { z as
|
|
10510
|
+
import { z as z226 } from "zod";
|
|
10433
10511
|
function yDocToPage(yDoc, definitions) {
|
|
10434
10512
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10435
10513
|
}
|
|
@@ -10472,7 +10550,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10472
10550
|
return null;
|
|
10473
10551
|
return {
|
|
10474
10552
|
id,
|
|
10475
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10553
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z226.string()) ?? "",
|
|
10476
10554
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10477
10555
|
};
|
|
10478
10556
|
}
|
|
@@ -10507,7 +10585,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10507
10585
|
});
|
|
10508
10586
|
}
|
|
10509
10587
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10510
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10588
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z226.string());
|
|
10511
10589
|
if (!definitionId) {
|
|
10512
10590
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10513
10591
|
return [];
|
|
@@ -10549,7 +10627,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
10549
10627
|
if (!id)
|
|
10550
10628
|
return null;
|
|
10551
10629
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10552
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
10630
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z226.string().optional()));
|
|
10553
10631
|
return {
|
|
10554
10632
|
id,
|
|
10555
10633
|
type: "Block",
|
|
@@ -10677,10 +10755,10 @@ function parseRichTextAttribute(mark) {
|
|
|
10677
10755
|
return null;
|
|
10678
10756
|
}
|
|
10679
10757
|
function parseProsemirrorLink(mark) {
|
|
10680
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
10758
|
+
const href = getProsemirrorAttribute(mark, "href", z226.string().optional());
|
|
10681
10759
|
if (!href)
|
|
10682
10760
|
return null;
|
|
10683
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
10761
|
+
const target = getProsemirrorAttribute(mark, "target", z226.string().optional());
|
|
10684
10762
|
const openInNewTab = target === "_blank";
|
|
10685
10763
|
if (href.startsWith("@")) {
|
|
10686
10764
|
return {
|
|
@@ -10699,10 +10777,10 @@ function parseProsemirrorLink(mark) {
|
|
|
10699
10777
|
}
|
|
10700
10778
|
}
|
|
10701
10779
|
function parseProsemirrorCommentHighlight(mark) {
|
|
10702
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
10780
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z226.string().optional());
|
|
10703
10781
|
if (!highlightId)
|
|
10704
10782
|
return null;
|
|
10705
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
10783
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z226.boolean().optional()) ?? false;
|
|
10706
10784
|
return {
|
|
10707
10785
|
type: "Comment",
|
|
10708
10786
|
commentHighlightId: highlightId,
|
|
@@ -10714,7 +10792,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10714
10792
|
if (!id)
|
|
10715
10793
|
return null;
|
|
10716
10794
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10717
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
10795
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z226.boolean().optional()) !== false;
|
|
10718
10796
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
10719
10797
|
if (!tableChild) {
|
|
10720
10798
|
return emptyTable(id, variantId, 0);
|
|
@@ -10761,9 +10839,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
10761
10839
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
10762
10840
|
if (!id)
|
|
10763
10841
|
return null;
|
|
10764
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
10842
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z226.string().optional());
|
|
10765
10843
|
let columnWidth;
|
|
10766
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
10844
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z226.array(z226.number()).optional());
|
|
10767
10845
|
if (columnWidthArray) {
|
|
10768
10846
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
10769
10847
|
}
|
|
@@ -10801,7 +10879,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
10801
10879
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
10802
10880
|
};
|
|
10803
10881
|
case "image":
|
|
10804
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
10882
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z226.string());
|
|
10805
10883
|
if (!items)
|
|
10806
10884
|
return null;
|
|
10807
10885
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -10918,7 +10996,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
10918
10996
|
);
|
|
10919
10997
|
}
|
|
10920
10998
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
10921
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
10999
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z226.string());
|
|
10922
11000
|
if (!itemsString)
|
|
10923
11001
|
return null;
|
|
10924
11002
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -10930,18 +11008,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
10930
11008
|
}
|
|
10931
11009
|
function parseAppearance(prosemirrorNode) {
|
|
10932
11010
|
let appearance = {};
|
|
10933
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11011
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z226.string().optional());
|
|
10934
11012
|
if (rawAppearanceString) {
|
|
10935
11013
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
10936
11014
|
if (parsedAppearance.success) {
|
|
10937
11015
|
appearance = parsedAppearance.data;
|
|
10938
11016
|
}
|
|
10939
11017
|
}
|
|
10940
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11018
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z226.number().optional());
|
|
10941
11019
|
if (columns) {
|
|
10942
11020
|
appearance.numberOfColumns = columns;
|
|
10943
11021
|
}
|
|
10944
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11022
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z226.string().optional());
|
|
10945
11023
|
if (backgroundColor) {
|
|
10946
11024
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
10947
11025
|
if (parsedColor.success) {
|
|
@@ -11034,13 +11112,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11034
11112
|
}
|
|
11035
11113
|
}
|
|
11036
11114
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11037
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11115
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z226.string());
|
|
11038
11116
|
if (!id)
|
|
11039
11117
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11040
11118
|
return id;
|
|
11041
11119
|
}
|
|
11042
11120
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11043
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11121
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z226.string()));
|
|
11044
11122
|
}
|
|
11045
11123
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11046
11124
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11085,6 +11163,8 @@ var BackendVersionRoomYDoc = class {
|
|
|
11085
11163
|
transaction.groupSnapshots && yDoc.updateGroupSnapshots(transaction.groupSnapshots);
|
|
11086
11164
|
transaction.internalSettings && yDoc.updateDocumentationInternalSettings(transaction.internalSettings);
|
|
11087
11165
|
transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
|
|
11166
|
+
transaction.pageApprovals && yDoc.updateApprovalStates(transaction.pageApprovals);
|
|
11167
|
+
transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
|
|
11088
11168
|
});
|
|
11089
11169
|
}
|
|
11090
11170
|
};
|
|
@@ -11151,6 +11231,10 @@ export {
|
|
|
11151
11231
|
DTODocumentationLinkPreviewRequest,
|
|
11152
11232
|
DTODocumentationLinkPreviewResponse,
|
|
11153
11233
|
DTODocumentationPageAnchor,
|
|
11234
|
+
DTODocumentationPageApprovalState,
|
|
11235
|
+
DTODocumentationPageApprovalStateChangeActionInput,
|
|
11236
|
+
DTODocumentationPageApprovalStateChangeActionOutput,
|
|
11237
|
+
DTODocumentationPageApprovalStateChangeInput,
|
|
11154
11238
|
DTODocumentationPageContent,
|
|
11155
11239
|
DTODocumentationPageContentGetResponse,
|
|
11156
11240
|
DTODocumentationPageCreateActionInputV2,
|