@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.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 z125 } from "zod";
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 z124 } from "zod";
28
- import { z as z123 } from "zod";
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 z100 } from "zod";
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 z132 } from "zod";
138
- import { z as z131 } from "zod";
139
- import { z as z126 } from "zod";
140
- import { z as z127 } from "zod";
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 z144 } from "zod";
145
- import { z as z133 } from "zod";
146
- import { z as z134 } from "zod";
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 z148 } from "zod";
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 z157 } from "zod";
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 z164 } from "zod";
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 PageBlockDefinitionAppearance = z96.object({
3125
- isBordered: z96.boolean().optional(),
3126
- hasBackground: z96.boolean().optional(),
3127
- isEditorPresentationDifferent: z96.boolean().optional(),
3128
- showBlockHeaderInEditor: z96.boolean().optional()
3129
- });
3130
- var PageBlockDefinitionLayoutType = z97.enum(["Column", "Row"]);
3131
- var PageBlockDefinitionLayoutGap = z97.enum(["Small", "Medium", "Large", "None"]);
3132
- var PageBlockDefinitionLayoutAlign = z97.enum(["Start", "Center", "End"]);
3133
- var PageBlockDefinitionLayoutResizing = z97.enum(["Fill", "Hug"]);
3134
- var PageBlockDefinitionLayoutBase = z97.object({
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: z97.lazy(() => z97.array(PageBlockDefinitionLayout.or(z97.string())))
3155
+ children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
3142
3156
  });
3143
- var PageBlockDefinitionVariant = z97.object({
3144
- id: z97.string(),
3145
- name: z97.string(),
3146
- image: z97.string().optional(),
3147
- description: z97.string().optional(),
3148
- documentationLink: z97.string().optional(),
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: z97.number().optional(),
3151
- defaultColumns: z97.number().optional(),
3164
+ maxColumns: z99.number().optional(),
3165
+ defaultColumns: z99.number().optional(),
3152
3166
  appearance: PageBlockDefinitionAppearance.optional()
3153
3167
  });
3154
- var PageBlockDefinitionPropertyType = z98.enum([
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 = z98.enum([
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 = z98.enum(["OL", "UL", "Default"]);
3193
- var PageBlockDefinitionTextPropertyStyle = z98.enum([
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 = z98.enum(["Neutral", "NeutralFaded"]);
3208
- var PageBlockDefinitionBooleanPropertyStyle = z98.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
3209
- var PageBlockDefinitionSingleSelectPropertyStyle = z98.enum([
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 = z98.enum([
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 = z98.enum([
3244
+ var IconSet = z100.enum([
3231
3245
  "CheckCircle",
3232
3246
  "CrossCircle",
3233
3247
  "Alert"
3234
3248
  ]);
3235
- var PageBlockDefinitionMultiSelectPropertyStyle = z98.enum(["SegmentedControl", "Select", "Checkbox"]);
3236
- var PageBlockDefinitionImageAspectRatio = z98.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
3237
- var PageBlockDefinitionImageWidth = z98.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
3238
- var PageBlockDefinitionSelectChoice = z98.object({
3239
- value: z98.string(),
3240
- name: z98.string(),
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: z98.string().optional(),
3256
+ customIconUrl: z100.string().optional(),
3243
3257
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
3244
3258
  });
3245
- var PageBlockDefinitionUntypedPropertyOptions = z98.record(z98.any());
3246
- var PageBlockDefinitionRichTextOptions = z98.object({
3259
+ var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
3260
+ var PageBlockDefinitionRichTextOptions = z100.object({
3247
3261
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
3248
3262
  });
3249
- var PageBlockDefinitionMutiRichTextOptions = z98.object({
3263
+ var PageBlockDefinitionMutiRichTextOptions = z100.object({
3250
3264
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
3251
3265
  });
3252
- var PageBlockDefinitionTextOptions = z98.object({
3253
- placeholder: z98.string().optional(),
3254
- defaultValue: z98.string().optional(),
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: z98.boolean().optional()
3271
+ allowLineBreaks: z100.boolean().optional()
3258
3272
  });
3259
- var PageBlockDefinitionSelectOptions = z98.object({
3273
+ var PageBlockDefinitionSelectOptions = z100.object({
3260
3274
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
3261
- defaultChoice: z98.string(),
3262
- choices: z98.array(PageBlockDefinitionSelectChoice)
3275
+ defaultChoice: z100.string(),
3276
+ choices: z100.array(PageBlockDefinitionSelectChoice)
3263
3277
  });
3264
- var PageBlockDefinitionImageOptions = z98.object({
3278
+ var PageBlockDefinitionImageOptions = z100.object({
3265
3279
  width: PageBlockDefinitionImageWidth.optional(),
3266
3280
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
3267
- allowCaption: z98.boolean().optional(),
3268
- recommendation: z98.string().optional()
3281
+ allowCaption: z100.boolean().optional(),
3282
+ recommendation: z100.string().optional()
3269
3283
  });
3270
- var PageBlockDefinitionBooleanOptions = z98.object({
3271
- defaultvalue: z98.boolean().optional(),
3284
+ var PageBlockDefinitionBooleanOptions = z100.object({
3285
+ defaultvalue: z100.boolean().optional(),
3272
3286
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
3273
3287
  });
3274
- var PageBlockDefinitionNumberOptions = z98.object({
3275
- defaultValue: z98.number(),
3276
- min: z98.number().optional(),
3277
- max: z98.number().optional(),
3278
- step: z98.number().optional(),
3279
- placeholder: z98.string().optional()
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 = z98.object({
3282
- renderLayoutAs: z98.enum(["List", "Table"]).optional(),
3283
- allowPropertySelection: z98.boolean().optional()
3295
+ var PageBlockDefinitionComponentOptions = z100.object({
3296
+ renderLayoutAs: z100.enum(["List", "Table"]).optional(),
3297
+ allowPropertySelection: z100.boolean().optional()
3284
3298
  });
3285
- var PageBlockDefinitionProperty = z98.object({
3286
- id: z98.string(),
3287
- name: z98.string(),
3299
+ var PageBlockDefinitionProperty = z100.object({
3300
+ id: z100.string(),
3301
+ name: z100.string(),
3288
3302
  type: PageBlockDefinitionPropertyType,
3289
- description: z98.string().optional(),
3303
+ description: z100.string().optional(),
3290
3304
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
3291
- variantOptions: z98.record(PageBlockDefinitionUntypedPropertyOptions).optional()
3305
+ variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
3292
3306
  });
3293
- var PageBlockDefinitionItem = z98.object({
3294
- properties: z98.array(PageBlockDefinitionProperty),
3307
+ var PageBlockDefinitionItem = z100.object({
3308
+ properties: z100.array(PageBlockDefinitionProperty),
3295
3309
  appearance: PageBlockDefinitionAppearance.optional(),
3296
- variants: z98.array(PageBlockDefinitionVariant),
3297
- defaultVariantKey: z98.string()
3310
+ variants: z100.array(PageBlockDefinitionVariant),
3311
+ defaultVariantKey: z100.string()
3298
3312
  });
3299
- var PageBlockCategory = z99.enum([
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 = z99.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3314
- var PageBlockBehaviorSelectionType = z99.enum(["Entity", "Group", "EntityAndGroup"]);
3315
- var PageBlockDefinitionBehavior = z99.object({
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: z99.object({
3318
- numberOfItems: z99.number(),
3319
- allowLinks: z99.boolean(),
3320
- newItemLabel: z99.string().optional()
3331
+ items: z101.object({
3332
+ numberOfItems: z101.number(),
3333
+ allowLinks: z101.boolean(),
3334
+ newItemLabel: z101.string().optional()
3321
3335
  }).optional(),
3322
- entities: z99.object({
3336
+ entities: z101.object({
3323
3337
  selectionType: PageBlockBehaviorSelectionType,
3324
- maxSelected: z99.number()
3338
+ maxSelected: z101.number()
3325
3339
  }).optional()
3326
3340
  });
3327
- var PageBlockDefinitionOnboarding = z99.object({
3328
- helpText: z99.string(),
3329
- documentationLink: z99.string().optional()
3341
+ var PageBlockDefinitionOnboarding = z101.object({
3342
+ helpText: z101.string(),
3343
+ documentationLink: z101.string().optional()
3330
3344
  });
3331
- var PageBlockDefinition = z99.object({
3332
- id: z99.string(),
3333
- name: z99.string(),
3334
- description: z99.string(),
3345
+ var PageBlockDefinition = z101.object({
3346
+ id: z101.string(),
3347
+ name: z101.string(),
3348
+ description: z101.string(),
3335
3349
  category: PageBlockCategory,
3336
- icon: z99.string().optional(),
3337
- documentationLink: z99.string().optional(),
3338
- searchKeywords: z99.array(z99.string()).optional(),
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: z99.object({
3355
+ editorOptions: z101.object({
3342
3356
  onboarding: PageBlockDefinitionOnboarding.optional(),
3343
- newItemLabel: z99.string().optional()
3357
+ newItemLabel: z101.string().optional()
3344
3358
  }),
3345
3359
  appearance: PageBlockDefinitionAppearance.optional()
3346
3360
  });
3347
- var DocumentationPageGroup = z100.object({
3348
- type: z100.literal("ElementGroup"),
3349
- childType: z100.literal("DocumentationPage"),
3350
- id: z100.string(),
3351
- persistentId: z100.string(),
3352
- shortPersistentId: z100.string(),
3353
- designSystemVersionId: z100.string(),
3354
- parentPersistentId: z100.string().nullish(),
3355
- sortOrder: z100.number(),
3356
- title: z100.string(),
3357
- slug: z100.string(),
3358
- userSlug: z100.string().nullish(),
3359
- createdAt: z100.coerce.date(),
3360
- updatedAt: z100.coerce.date()
3361
- });
3362
- var DocumentationLinkPreview = z101.object({
3363
- title: z101.string().optional(),
3364
- description: z101.string().optional(),
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 = z102.object({
3368
- blockId: z102.string(),
3369
- level: z102.number(),
3370
- text: z102.string()
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 DocumentationPage = z105.object({
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 DocumentationSettings = z106.object({
3411
- // Basic
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
- // Configuration
3416
- isTabbedLayoutEnabled: z106.boolean(),
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 DocumentationCommentThread = z107.object({
3410
+ var DocumentationPage = z107.object({
3411
+ type: z107.literal("DocumentationPage"),
3434
3412
  id: z107.string(),
3435
- roomId: z107.string(),
3436
- pagePersistentId: z107.string(),
3437
- brandId: z107.string(),
3413
+ persistentId: z107.string(),
3414
+ shortPersistentId: z107.string(),
3438
3415
  designSystemVersionId: z107.string(),
3439
- designSystemId: z107.string(),
3440
- blockId: z107.string().optional(),
3441
- resolved: z107.boolean(),
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 DesignElementSnapshotReason = z108.enum(["Publish", "Deletion"]);
3446
- var DesignElementSnapshotBase = z108.object({
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: z108.string()
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: z109.string(),
3465
- pageContentStorageKey: z109.string()
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 = z110.enum(["Name", "Description", "Value", "UpdatedAt"]);
3477
- var ElementViewColumnType = z110.union([
3478
- z110.literal("BaseProperty"),
3479
- z110.literal("PropertyDefinition"),
3480
- z110.literal("Theme")
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 = z110.object({
3483
- id: z110.string(),
3484
- persistentId: z110.string(),
3485
- elementDataViewId: z110.string(),
3486
- sortPosition: z110.number(),
3487
- width: z110.number()
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: z110.literal("BaseProperty"),
3504
+ type: z112.literal("BaseProperty"),
3491
3505
  basePropertyType: ElementViewBaseColumnType
3492
3506
  });
3493
3507
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3494
- type: z110.literal("PropertyDefinition"),
3495
- propertyDefinitionId: z110.string()
3508
+ type: z112.literal("PropertyDefinition"),
3509
+ propertyDefinitionId: z112.string()
3496
3510
  });
3497
3511
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3498
- type: z110.literal("Theme"),
3499
- themeId: z110.string()
3512
+ type: z112.literal("Theme"),
3513
+ themeId: z112.string()
3500
3514
  });
3501
- var ElementViewColumn = z110.discriminatedUnion("type", [
3515
+ var ElementViewColumn = z112.discriminatedUnion("type", [
3502
3516
  ElementViewBasePropertyColumn,
3503
3517
  ElementViewPropertyDefinitionColumn,
3504
3518
  ElementViewThemeColumn
3505
3519
  ]);
3506
- var ElementView = z111.object({
3507
- id: z111.string(),
3508
- persistentId: z111.string(),
3509
- designSystemVersionId: z111.string(),
3510
- name: z111.string(),
3511
- description: z111.string(),
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: z111.boolean()
3514
- });
3515
- var Brand = z112.object({
3516
- id: z112.string(),
3517
- designSystemVersionId: z112.string(),
3518
- persistentId: z112.string(),
3519
- name: z112.string(),
3520
- description: z112.string()
3521
- });
3522
- var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
3523
- var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3524
- var NpmRegistryBasicAuthConfig = z113.object({
3525
- authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
3526
- username: z113.string(),
3527
- password: z113.string()
3528
- });
3529
- var NpmRegistryBearerAuthConfig = z113.object({
3530
- authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
3531
- accessToken: z113.string()
3532
- });
3533
- var NpmRegistryNoAuthConfig = z113.object({
3534
- authType: z113.literal(NpmRegistryAuthType.Enum.None)
3535
- });
3536
- var NpmRegistrCustomAuthConfig = z113.object({
3537
- authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
3538
- authHeaderName: z113.string(),
3539
- authHeaderValue: z113.string()
3540
- });
3541
- var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
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 = z113.object({
3561
+ var NpmRegistryConfigBase = z115.object({
3548
3562
  registryType: NpmRegistryType,
3549
- enabledScopes: z113.array(z113.string()),
3550
- customRegistryUrl: z113.string().optional(),
3551
- bypassProxy: z113.boolean().default(false),
3552
- npmProxyRegistryConfigId: z113.string().optional(),
3553
- npmProxyVersion: z113.number().optional()
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 = z114.object({
3557
- providerId: z114.string(),
3558
- defaultAutoInviteValue: z114.boolean(),
3559
- autoInviteDomains: z114.record(z114.string(), z114.boolean()),
3560
- skipDocsSupernovaLogin: z114.boolean(),
3561
- areInvitesDisabled: z114.boolean(),
3562
- isTestMode: z114.boolean(),
3563
- emailDomains: z114.array(z114.string()),
3564
- metadataXml: z114.string().nullish()
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 = z115.object({
3570
- isEnabled: z115.boolean(),
3571
- name: z115.string(),
3572
- range: z115.string().refine(isValidCIDR, {
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 = z115.object({
3577
- isEnabledForCloud: z115.boolean(),
3578
- isEnabledForDocs: z115.boolean(),
3579
- entries: z115.array(WorkspaceIpWhitelistEntry)
3590
+ var WorkspaceIpSettings = z117.object({
3591
+ isEnabledForCloud: z117.boolean(),
3592
+ isEnabledForDocs: z117.boolean(),
3593
+ entries: z117.array(WorkspaceIpWhitelistEntry)
3580
3594
  });
3581
- var WorkspaceProfile = z115.object({
3582
- name: z115.string(),
3583
- handle: z115.string(),
3584
- color: z115.string(),
3585
- avatar: nullishToOptional(z115.string()),
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 = z115.object({
3592
- id: z115.string(),
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 = z115.object({
3613
+ var WorkspaceWithDesignSystems = z117.object({
3600
3614
  workspace: Workspace,
3601
- designSystems: z115.array(DesignSystem)
3602
- });
3603
- var DesignSystemSwitcher = z116.object({
3604
- isEnabled: z116.boolean(),
3605
- designSystemIds: z116.array(z116.string())
3606
- });
3607
- var DesignSystem = z116.object({
3608
- id: z116.string(),
3609
- workspaceId: z116.string(),
3610
- name: z116.string(),
3611
- description: z116.string(),
3612
- docExporterId: nullishToOptional(z116.string()),
3613
- docSlug: z116.string(),
3614
- docUserSlug: nullishToOptional(z116.string()),
3615
- docSlugDeprecated: z116.string(),
3616
- isPublic: z116.boolean(),
3617
- isMultibrand: z116.boolean(),
3618
- docViewUrl: nullishToOptional(z116.string()),
3619
- basePrefixes: z116.array(z116.string()),
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
- createdAt: z116.coerce.date(),
3622
- updatedAt: z116.coerce.date()
3635
+ isApprovalFeatureEnabled: z118.boolean(),
3636
+ createdAt: z118.coerce.date(),
3637
+ updatedAt: z118.coerce.date()
3623
3638
  });
3624
- var DesignSystemWithWorkspace = z116.object({
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 = z117.object({
3632
- name: z117.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3633
- description: z117.string().max(DS_DESC_MAX_LENGTH).trim().optional()
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 = z118.object({
3649
- name: z118.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3650
- description: z118.string().max(DS_DESC_MAX_LENGTH2).trim()
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 = z118.object({
3667
+ var DesignSystemCreateInput = z120.object({
3653
3668
  meta: DesignSystemCreateInputMetadata,
3654
- workspaceId: z118.string(),
3655
- isPublic: z118.boolean().optional(),
3656
- basePrefixes: z118.array(z118.string()).optional(),
3657
- docUserSlug: z118.string().nullish().optional(),
3658
- source: z118.array(z118.string()).optional()
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 = z119.object({
3675
+ var ExporterPropertyImageValue = z121.object({
3661
3676
  asset: PageBlockAsset.optional(),
3662
- assetId: z119.string().optional(),
3663
- assetUrl: z119.string().optional()
3664
- });
3665
- var ExporterPropertyValue = z119.object({
3666
- key: z119.string(),
3667
- value: z119.union([
3668
- z119.number(),
3669
- z119.string(),
3670
- z119.boolean(),
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 = z119.object({
3677
- id: z119.string(),
3678
- designSystemId: z119.string(),
3679
- exporterId: z119.string(),
3680
- values: z119.array(ExporterPropertyValue)
3681
- });
3682
- var PublishedDocPage = z120.object({
3683
- id: z120.string(),
3684
- publishedDocId: z120.string(),
3685
- pageShortPersistentId: z120.string(),
3686
- pathV1: z120.string(),
3687
- pathV2: z120.string(),
3688
- storagePath: z120.string(),
3689
- locale: z120.string().optional(),
3690
- isPrivate: z120.boolean(),
3691
- isHidden: z120.boolean(),
3692
- createdAt: z120.coerce.date(),
3693
- updatedAt: z120.coerce.date()
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 = z121.enum(publishedDocEnvironments);
3697
- var PublishedDocsChecksums = z121.record(z121.string());
3698
- var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
3699
- var PublishedDoc = z121.object({
3700
- id: z121.string(),
3701
- designSystemVersionId: z121.string(),
3702
- createdAt: z121.coerce.date(),
3703
- updatedAt: z121.coerce.date(),
3704
- lastPublishedAt: z121.coerce.date(),
3705
- isDefault: z121.boolean(),
3706
- isPublic: z121.boolean(),
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: z121.string(),
3710
- wasMigrated: z121.boolean(),
3724
+ storagePath: z123.string(),
3725
+ wasMigrated: z123.boolean(),
3711
3726
  routingVersion: PublishedDocRoutingVersion,
3712
- usesLocalizations: z121.boolean(),
3713
- wasPublishedWithLocalizations: z121.boolean(),
3714
- tokenCount: z121.number(),
3715
- assetCount: z121.number()
3727
+ usesLocalizations: z123.boolean(),
3728
+ wasPublishedWithLocalizations: z123.boolean(),
3729
+ tokenCount: z123.number(),
3730
+ assetCount: z123.number()
3716
3731
  });
3717
- var DesignSystemVersion = z122.object({
3718
- id: z122.string(),
3719
- version: z122.string(),
3720
- createdAt: z122.date(),
3721
- designSystemId: z122.string(),
3722
- name: z122.string(),
3723
- comment: z122.string(),
3724
- isReadonly: z122.boolean(),
3725
- changeLog: z122.string(),
3726
- parentId: z122.string().optional(),
3727
- isDraftsFeatureAdopted: z122.boolean()
3728
- });
3729
- var VersionCreationJobStatus = z122.enum(["Success", "InProgress", "Error"]);
3730
- var VersionCreationJob = z122.object({
3731
- id: z122.string(),
3732
- version: z122.string(),
3733
- designSystemId: z122.string(),
3734
- designSystemVersionId: nullishToOptional(z122.string()),
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(z122.string())
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 = z123.object({
3741
- pagePersistentIds: z123.string().array(),
3742
- groupPersistentIds: z123.string().array()
3755
+ var ExportJobDocumentationChanges = z125.object({
3756
+ pagePersistentIds: z125.string().array(),
3757
+ groupPersistentIds: z125.string().array()
3743
3758
  });
3744
- var ExporterDestinationDocs = z123.object({
3759
+ var ExporterDestinationDocs = z125.object({
3745
3760
  environment: PublishedDocEnvironment,
3746
3761
  changes: nullishToOptional(ExportJobDocumentationChanges)
3747
3762
  });
3748
- var ExporterDestinationS3 = z123.object({});
3749
- var ExporterDestinationGithub = z123.object({
3750
- credentialId: z123.string().optional(),
3763
+ var ExporterDestinationS3 = z125.object({});
3764
+ var ExporterDestinationGithub = z125.object({
3765
+ credentialId: z125.string().optional(),
3751
3766
  // Repository
3752
- url: z123.string(),
3767
+ url: z125.string(),
3753
3768
  // Location
3754
- branch: z123.string(),
3755
- relativePath: nullishToOptional(z123.string()),
3769
+ branch: z125.string(),
3770
+ relativePath: nullishToOptional(z125.string()),
3756
3771
  // Legacy deprecated fields. Use `credentialId` instead
3757
- connectionId: nullishToOptional(z123.string()),
3758
- userId: nullishToOptional(z123.number())
3772
+ connectionId: nullishToOptional(z125.string()),
3773
+ userId: nullishToOptional(z125.number())
3759
3774
  });
3760
- var ExporterDestinationAzure = z123.object({
3761
- credentialId: z123.string().optional(),
3775
+ var ExporterDestinationAzure = z125.object({
3776
+ credentialId: z125.string().optional(),
3762
3777
  // Repository
3763
- organizationId: z123.string(),
3764
- projectId: z123.string(),
3765
- repositoryId: z123.string(),
3778
+ organizationId: z125.string(),
3779
+ projectId: z125.string(),
3780
+ repositoryId: z125.string(),
3766
3781
  // Location
3767
- branch: z123.string(),
3768
- relativePath: nullishToOptional(z123.string()),
3782
+ branch: z125.string(),
3783
+ relativePath: nullishToOptional(z125.string()),
3769
3784
  // Maybe not needed
3770
- url: nullishToOptional(z123.string()),
3785
+ url: nullishToOptional(z125.string()),
3771
3786
  // Legacy deprecated fields. Use `credentialId` instead
3772
- connectionId: nullishToOptional(z123.string()),
3773
- userId: nullishToOptional(z123.number())
3787
+ connectionId: nullishToOptional(z125.string()),
3788
+ userId: nullishToOptional(z125.number())
3774
3789
  });
3775
- var ExporterDestinationGitlab = z123.object({
3776
- credentialId: z123.string().optional(),
3790
+ var ExporterDestinationGitlab = z125.object({
3791
+ credentialId: z125.string().optional(),
3777
3792
  // Repository
3778
- projectId: z123.string(),
3793
+ projectId: z125.string(),
3779
3794
  // Location
3780
- branch: z123.string(),
3781
- relativePath: nullishToOptional(z123.string()),
3795
+ branch: z125.string(),
3796
+ relativePath: nullishToOptional(z125.string()),
3782
3797
  // Maybe not needed
3783
- url: nullishToOptional(z123.string()),
3798
+ url: nullishToOptional(z125.string()),
3784
3799
  // Legacy deprecated fields. Use `credentialId` instead
3785
- connectionId: nullishToOptional(z123.string()),
3786
- userId: nullishToOptional(z123.number())
3800
+ connectionId: nullishToOptional(z125.string()),
3801
+ userId: nullishToOptional(z125.number())
3787
3802
  });
3788
- var ExporterDestinationBitbucket = z123.object({
3789
- credentialId: z123.string().optional(),
3803
+ var ExporterDestinationBitbucket = z125.object({
3804
+ credentialId: z125.string().optional(),
3790
3805
  // Repository
3791
- workspaceSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3792
- projectKey: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3793
- repoSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
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: z123.string(),
3796
- relativePath: nullishToOptional(z123.string()),
3810
+ branch: z125.string(),
3811
+ relativePath: nullishToOptional(z125.string()),
3797
3812
  // Legacy deprecated fields. Use `credentialId` instead
3798
- connectionId: nullishToOptional(z123.string()),
3799
- userId: nullishToOptional(z123.number())
3813
+ connectionId: nullishToOptional(z125.string()),
3814
+ userId: nullishToOptional(z125.number())
3800
3815
  });
3801
- var ExportDestinationsMap = z123.object({
3802
- webhookUrl: z123.string().optional(),
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 = z124.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3811
- var PipelineDestinationGitType = z124.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3812
- var PipelineDestinationExtraType = z124.enum(["WebhookUrl", "S3", "Documentation"]);
3813
- var PipelineDestinationType = z124.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3814
- var Pipeline = z124.object({
3815
- id: z124.string(),
3816
- name: z124.string(),
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: z124.boolean(),
3819
- workspaceId: z124.string(),
3820
- designSystemId: z124.string(),
3821
- exporterId: z124.string(),
3822
- brandPersistentId: z124.string().optional(),
3823
- themePersistentId: z124.string().optional(),
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 = z125.object({
3828
- id: z125.string(),
3829
- createdAt: z125.coerce.date(),
3830
- finishedAt: z125.coerce.date(),
3831
- exportArtefacts: z125.string()
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 = z125.object({
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: z126.string(),
3840
- liveblocksId: z126.string()
3841
- });
3842
- var DesignSystemVersionRoomInternalSettings = z126.object({
3843
- routingVersion: z126.string(),
3844
- isDraftFeatureAdopted: z126.boolean()
3845
- });
3846
- var DesignSystemVersionRoomInitialState = z126.object({
3847
- pages: z126.array(DocumentationPageV2),
3848
- groups: z126.array(ElementGroup),
3849
- pageSnapshots: z126.array(DocumentationPageSnapshot),
3850
- groupSnapshots: z126.array(ElementGroupSnapshot),
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 = z126.object({
3854
- pages: z126.array(DocumentationPageV2),
3855
- groups: z126.array(ElementGroup),
3856
- pageIdsToDelete: z126.array(z126.string()),
3857
- groupIdsToDelete: z126.array(z126.string()),
3858
- pageSnapshots: z126.array(DocumentationPageSnapshot),
3859
- groupSnapshots: z126.array(ElementGroupSnapshot),
3860
- pageSnapshotIdsToDelete: z126.array(z126.string()),
3861
- groupSnapshotIdsToDelete: z126.array(z126.string()),
3862
- pageHashesToUpdate: z126.record(z126.string(), z126.string())
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: z127.string(),
3866
- documentationPageId: z127.string(),
3867
- liveblocksId: z127.string(),
3868
- isDirty: z127.boolean()
3884
+ designSystemVersionId: z129.string(),
3885
+ documentationPageId: z129.string(),
3886
+ liveblocksId: z129.string(),
3887
+ isDirty: z129.boolean()
3869
3888
  });
3870
- var DocumentationPageRoomState = z127.object({
3871
- pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3889
+ var DocumentationPageRoomState = z129.object({
3890
+ pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3872
3891
  itemConfiguration: DocumentationItemConfigurationV2
3873
3892
  });
3874
- var DocumentationPageRoomRoomUpdate = z127.object({
3893
+ var DocumentationPageRoomRoomUpdate = z129.object({
3875
3894
  page: DocumentationPageV2,
3876
3895
  pageParent: ElementGroup
3877
3896
  });
3878
3897
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3879
- pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3880
- blockDefinitions: z127.array(PageBlockDefinition)
3898
+ pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3899
+ blockDefinitions: z129.array(PageBlockDefinition)
3881
3900
  });
3882
- var RestoredDocumentationPage = z127.object({
3901
+ var RestoredDocumentationPage = z129.object({
3883
3902
  page: DocumentationPageV2,
3884
3903
  pageParent: ElementGroup,
3885
3904
  pageContent: DocumentationPageContentData,
3886
- contentHash: z127.string(),
3887
- snapshotId: z127.string(),
3888
- roomId: z127.string().optional()
3905
+ contentHash: z129.string(),
3906
+ snapshotId: z129.string(),
3907
+ roomId: z129.string().optional()
3889
3908
  });
3890
- var RestoredDocumentationGroup = z127.object({
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 = z128.nativeEnum(RoomTypeEnum);
3919
+ var RoomTypeSchema = z130.nativeEnum(RoomTypeEnum);
3901
3920
  var RoomType = RoomTypeSchema.enum;
3902
3921
  var WorkspaceRoom = Entity.extend({
3903
- workspaceId: z129.string(),
3904
- liveblocksId: z129.string()
3922
+ workspaceId: z131.string(),
3923
+ liveblocksId: z131.string()
3905
3924
  });
3906
- var PublishedDocsDump = z130.object({
3925
+ var PublishedDocsDump = z132.object({
3907
3926
  documentation: PublishedDoc,
3908
3927
  pages: PublishedDocPage.array()
3909
3928
  });
3910
- var DocumentationThreadDump = z131.object({
3929
+ var DocumentationThreadDump = z133.object({
3911
3930
  thread: DocumentationCommentThread,
3912
3931
  comments: DocumentationComment.array()
3913
3932
  });
3914
- var DocumentationPageRoomDump = z131.object({
3933
+ var DocumentationPageRoomDump = z133.object({
3915
3934
  room: DocumentationPageRoom,
3916
3935
  threads: DocumentationThreadDump.array()
3917
3936
  });
3918
- var DesignSystemVersionMultiplayerDump = z131.object({
3937
+ var DesignSystemVersionMultiplayerDump = z133.object({
3919
3938
  documentationPages: DocumentationPageRoomDump.array()
3920
3939
  });
3921
- var DesignSystemVersionDump = z131.object({
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 = z132.object({
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 = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
3942
- var ExternalServiceType = z133.union([
3943
- z133.literal("figma"),
3944
- z133.literal("github"),
3945
- z133.literal("azure"),
3946
- z133.literal("gitlab"),
3947
- z133.literal("bitbucket")
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 = z133.object({
3950
- id: z133.string(),
3951
- handle: z133.string().optional(),
3952
- avatarUrl: z133.string().optional(),
3953
- email: z133.string().optional(),
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: z133.string().optional()
3974
+ customUrl: z135.string().optional()
3956
3975
  });
3957
- var UserLinkedIntegrations = z133.object({
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 = z134.object({
3965
- userId: z134.string(),
3966
- createdAt: z134.coerce.date(),
3967
- deleteAt: z134.coerce.date()
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 = z135.object({
3973
- email: z135.string(),
3974
- name: z135.string(),
3975
- username: z135.string()
3991
+ var CreateUserInput = z137.object({
3992
+ email: z137.string(),
3993
+ name: z137.string(),
3994
+ username: z137.string()
3976
3995
  });
3977
- var UserIdentity = z136.object({
3978
- id: z136.string(),
3979
- userId: z136.string()
3996
+ var UserIdentity = z138.object({
3997
+ id: z138.string(),
3998
+ userId: z138.string()
3980
3999
  });
3981
- var UserMinified = z137.object({
3982
- id: z137.string(),
3983
- name: z137.string(),
3984
- email: z137.string(),
3985
- avatar: z137.string().optional()
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 = z138.object({
3988
- sendCommentNotificationEmails: z138.boolean()
4006
+ var LiveblocksNotificationSettings = z140.object({
4007
+ sendCommentNotificationEmails: z140.boolean()
3989
4008
  });
3990
- var UserNotificationSettings = z138.object({
4009
+ var UserNotificationSettings = z140.object({
3991
4010
  liveblocksNotificationSettings: LiveblocksNotificationSettings
3992
4011
  });
3993
- var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3994
- var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3995
- var UserOnboarding = z139.object({
3996
- companyName: z139.string().optional(),
3997
- numberOfPeopleInOrg: z139.string().optional(),
3998
- numberOfPeopleInDesignTeam: z139.string().optional(),
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: z139.string().optional(),
4001
- phase: z139.string().optional(),
4019
+ jobTitle: z141.string().optional(),
4020
+ phase: z141.string().optional(),
4002
4021
  jobLevel: UserOnboardingJobLevel.optional(),
4003
- designSystemName: z139.string().optional(),
4004
- defaultDestination: z139.string().optional(),
4005
- figmaUrl: z139.string().optional(),
4006
- isPageDraftOnboardingFinished: z139.boolean().optional()
4007
- });
4008
- var UserProfile = z139.object({
4009
- name: z139.string(),
4010
- avatar: z139.string().optional(),
4011
- nickname: z139.string().optional(),
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 = z140.object({
4018
- id: z140.string(),
4019
- email: z140.string()
4020
- });
4021
- var User = z141.object({
4022
- id: z141.string(),
4023
- email: z141.string(),
4024
- emailVerified: z141.boolean(),
4025
- createdAt: z141.coerce.date(),
4026
- trialExpiresAt: z141.coerce.date().optional(),
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: z141.coerce.date().optional(),
4030
- isProtected: z141.boolean()
4031
- });
4032
- var IntegrationDesignSystem = z142.object({
4033
- designSystemId: z142.string(),
4034
- brandId: z142.string(),
4035
- title: z142.string().optional(),
4036
- userId: z142.string().optional(),
4037
- date: z142.coerce.date().optional()
4038
- });
4039
- var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
4040
- var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
4041
- var IntegrationCredentialsProfile = z142.object({
4042
- id: nullishToOptional(z142.string()),
4043
- email: nullishToOptional(z142.string()),
4044
- handle: nullishToOptional(z142.string()),
4045
- type: nullishToOptional(z142.string()),
4046
- avatarUrl: nullishToOptional(z142.string()),
4047
- organization: nullishToOptional(z142.string()),
4048
- collection: nullishToOptional(z142.string())
4049
- });
4050
- var IntegrationCredentials = z142.object({
4051
- id: z142.string(),
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: z142.string(),
4054
- accessToken: z142.string(),
4055
- userId: z142.string(),
4056
- createdAt: z142.coerce.date(),
4057
- refreshToken: z142.string().optional(),
4058
- tokenName: z142.string().optional(),
4059
- expiresAt: z142.coerce.date().optional(),
4060
- refreshedAt: z142.coerce.date().optional(),
4061
- username: z142.string().optional(),
4062
- appInstallationId: z142.string().optional(),
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: z142.string().optional(),
4083
+ customUrl: z144.string().optional(),
4065
4084
  state: IntegrationCredentialsState,
4066
4085
  user: UserMinified.optional()
4067
4086
  });
4068
- var ExtendedIntegrationType = z142.enum([
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 = z142.object({
4080
- id: z142.string(),
4081
- workspaceId: z142.string(),
4098
+ var Integration = z144.object({
4099
+ id: z144.string(),
4100
+ workspaceId: z144.string(),
4082
4101
  type: IntegrationType,
4083
- createdAt: z142.coerce.date(),
4084
- integrationCredentials: z142.array(IntegrationCredentials).optional()
4085
- });
4086
- var IntegrationToken = z142.object({
4087
- access_token: z142.string(),
4088
- refresh_token: z142.string().optional(),
4089
- expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
4090
- token_type: z142.string().optional(),
4091
- token_name: z142.string().optional(),
4092
- token_azure_organization_name: z142.string().optional(),
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: z142.string().optional(),
4113
+ token_azure_collection_name: z144.string().optional(),
4095
4114
  // Azure Server PAT only
4096
- token_bitbucket_username: z142.string().optional(),
4115
+ token_bitbucket_username: z144.string().optional(),
4097
4116
  // Bitbucket only
4098
- custom_url: z142.string().optional().transform((value) => {
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 = z143.object({
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 = z144.object({
4159
+ var UserDump = z146.object({
4141
4160
  user: User,
4142
4161
  workspaces: WorkspaceDump.array()
4143
4162
  });
4144
- var NpmProxyToken = z145.object({
4145
- access: z145.string(),
4146
- expiresAt: z145.number()
4163
+ var NpmProxyToken = z147.object({
4164
+ access: z147.string(),
4165
+ expiresAt: z147.number()
4147
4166
  });
4148
- var SessionData = z145.object({
4149
- returnToUrl: z145.string().optional(),
4167
+ var SessionData = z147.object({
4168
+ returnToUrl: z147.string().optional(),
4150
4169
  npmProxyToken: NpmProxyToken.optional()
4151
4170
  });
4152
- var Session = z145.object({
4153
- id: z145.string(),
4154
- expiresAt: z145.coerce.date(),
4155
- userId: z145.string().nullable(),
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 = z145.object({
4159
- access: z145.string(),
4160
- refresh: z145.string()
4177
+ var AuthTokens = z147.object({
4178
+ access: z147.string(),
4179
+ refresh: z147.string()
4161
4180
  });
4162
- var UserSession = z145.object({
4181
+ var UserSession = z147.object({
4163
4182
  session: Session,
4164
4183
  user: User.nullable()
4165
4184
  });
4166
- var EventDataSourceImported = z146.object({
4167
- type: z146.literal("DataSourceImported"),
4168
- workspaceId: z146.string(),
4169
- designSystemId: z146.string()
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 ExportJobContext = z149.object({
4184
- apiUrl: z149.string(),
4185
- accessToken: z149.string(),
4190
+ var EventVersionReleased = z149.object({
4191
+ type: z149.literal("DesignSystemVersionReleased"),
4192
+ workspaceId: z149.string(),
4186
4193
  designSystemId: z149.string(),
4187
- designSystemName: z149.string(),
4188
- exporterId: z149.string(),
4189
- versionId: z149.string(),
4190
- brandId: z149.string().optional(),
4191
- themeId: z149.string().optional(),
4192
- exporterName: z149.string(),
4193
- exporterPackageUrl: z149.string(),
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 = z150.object({
4198
- exportJobId: z150.string(),
4199
- exportContextId: z150.string(),
4200
- designSystemId: z150.string(),
4201
- workspaceId: z150.string()
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 = z151.enum([
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 = z151.enum(["InProgress", "Success", "Failed", "Timeout"]);
4213
- var ExportJobLogEntryType = z151.enum(["success", "info", "warning", "error", "user"]);
4214
- var ExportJobLogEntry = z151.object({
4215
- id: z151.string().optional(),
4216
- time: z151.coerce.date(),
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: z151.string()
4237
+ message: z153.string()
4219
4238
  });
4220
- var ExportJobPullRequestDestinationResult = z151.object({
4221
- pullRequestUrl: z151.string()
4239
+ var ExportJobPullRequestDestinationResult = z153.object({
4240
+ pullRequestUrl: z153.string()
4222
4241
  });
4223
- var ExportJobS3DestinationResult = z151.object({
4224
- bucket: z151.string(),
4225
- urlPrefix: z151.string().optional(),
4226
- path: z151.string(),
4227
- files: z151.array(z151.string()),
4228
- url: nullishToOptional(z151.string()),
4229
- urls: nullishToOptional(z151.string().array())
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 = z151.object({
4232
- url: z151.string()
4250
+ var ExportJobDocsDestinationResult = z153.object({
4251
+ url: z153.string()
4233
4252
  });
4234
- var ExportJobResult = z151.object({
4235
- error: z151.string().optional(),
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 = z151.object({
4245
- id: z151.string(),
4246
- createdAt: z151.coerce.date(),
4247
- finishedAt: z151.coerce.date().optional(),
4248
- designSystemId: z151.string(),
4249
- designSystemVersionId: z151.string(),
4250
- workspaceId: z151.string(),
4251
- scheduleId: z151.string().nullish(),
4252
- exporterId: z151.string(),
4253
- brandId: z151.string().optional(),
4254
- themeId: z151.string().optional(),
4255
- estimatedExecutionTime: z151.number().optional(),
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: z151.string().optional(),
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: z151.array(ExportJobDestinationType),
4291
+ destinations: z153.array(ExportJobDestinationType),
4273
4292
  docsEnvironment: PublishedDocEnvironment
4274
4293
  }).partial();
4275
- var ExporterWorkspaceMembershipRole = z152.enum(["Owner", "OwnerArchived", "User"]);
4276
- var ExporterWorkspaceMembership = z153.object({
4277
- id: z153.string(),
4278
- workspaceId: z153.string(),
4279
- exporterId: z153.string(),
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 = z154.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4283
- var FeatureFlagMap = z154.record(FlaggedFeature, z154.boolean());
4284
- var FeatureFlag = z154.object({
4285
- id: z154.string(),
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: z154.coerce.date(),
4288
- enabled: z154.boolean(),
4289
- designSystemId: z154.string().optional()
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 = z155.nativeEnum(OAuthProviderNames);
4318
+ var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
4300
4319
  var OAuthProvider = OAuthProviderSchema.enum;
4301
- var ExternalOAuthRequest = z156.object({
4302
- id: z156.string(),
4320
+ var ExternalOAuthRequest = z158.object({
4321
+ id: z158.string(),
4303
4322
  provider: OAuthProviderSchema,
4304
- userId: z156.string(),
4305
- state: z156.string(),
4306
- createdAt: z156.coerce.date()
4323
+ userId: z158.string(),
4324
+ state: z158.string(),
4325
+ createdAt: z158.coerce.date()
4307
4326
  });
4308
- var GitObjectsQuery = z157.object({
4309
- organization: z157.string().optional(),
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: z157.string().optional(),
4330
+ project: z159.string().optional(),
4312
4331
  // Only for Bitbucket and Azure
4313
- repository: z157.string().optional(),
4332
+ repository: z159.string().optional(),
4314
4333
  // For all providers. For Gitlab, it's called "project".
4315
- branch: z157.string().optional(),
4334
+ branch: z159.string().optional(),
4316
4335
  // For all providers.
4317
- user: z157.string().optional()
4336
+ user: z159.string().optional()
4318
4337
  // Gitlab user
4319
4338
  });
4320
- var GitOrganization = z157.object({
4321
- id: z157.string(),
4322
- name: z157.string(),
4323
- url: z157.string(),
4324
- slug: z157.string()
4325
- });
4326
- var GitProject = z157.object({
4327
- id: z157.string(),
4328
- name: z157.string(),
4329
- url: z157.string(),
4330
- slug: z157.string()
4331
- });
4332
- var GitRepository = z157.object({
4333
- id: z157.string(),
4334
- name: z157.string(),
4335
- url: z157.string(),
4336
- slug: z157.string(),
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: z157.string().optional()
4361
+ defaultBranch: z159.string().optional()
4343
4362
  });
4344
- var GitBranch = z157.object({
4345
- name: z157.string(),
4346
- lastCommitId: z157.string()
4363
+ var GitBranch = z159.object({
4364
+ name: z159.string(),
4365
+ lastCommitId: z159.string()
4347
4366
  });
4348
- var IntegrationTokenSchemaOld = z158.object({
4349
- id: z158.string(),
4367
+ var IntegrationTokenSchemaOld = z160.object({
4368
+ id: z160.string(),
4350
4369
  provider: OAuthProviderSchema,
4351
- scope: z158.string(),
4352
- userId: z158.string(),
4353
- accessToken: z158.string(),
4354
- refreshToken: z158.string(),
4355
- expiresAt: z158.coerce.date(),
4356
- externalUserId: z158.string().nullish()
4357
- });
4358
- var WorkspaceOAuthRequestSchema = z159.object({
4359
- id: z159.string(),
4360
- workspaceId: z159.string(),
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: z159.string(),
4363
- createdAt: z159.coerce.date()
4381
+ userId: z161.string(),
4382
+ createdAt: z161.coerce.date()
4364
4383
  });
4365
- var AnyRecord = z160.record(z160.any());
4384
+ var AnyRecord = z162.record(z162.any());
4366
4385
  var NpmPackageVersionDist = AnyRecord.and(
4367
- z160.object({
4368
- tarball: z160.string()
4386
+ z162.object({
4387
+ tarball: z162.string()
4369
4388
  })
4370
4389
  );
4371
4390
  var NpmPackageVersion = AnyRecord.and(
4372
- z160.object({
4391
+ z162.object({
4373
4392
  dist: NpmPackageVersionDist
4374
4393
  })
4375
4394
  );
4376
4395
  var NpmPackage = AnyRecord.and(
4377
- z160.object({
4378
- _id: z160.string(),
4379
- name: z160.string(),
4396
+ z162.object({
4397
+ _id: z162.string(),
4398
+ name: z162.string(),
4380
4399
  // e.g. "latest": "1.2.3"
4381
- "dist-tags": z160.record(z160.string(), z160.string()),
4400
+ "dist-tags": z162.record(z162.string(), z162.string()),
4382
4401
  // "1.2.3": {...}
4383
- versions: z160.record(NpmPackageVersion)
4402
+ versions: z162.record(NpmPackageVersion)
4384
4403
  })
4385
4404
  );
4386
- var NpmProxyTokenPayload = z161.object({
4387
- npmProxyRegistryConfigId: z161.string()
4405
+ var NpmProxyTokenPayload = z163.object({
4406
+ npmProxyRegistryConfigId: z163.string()
4388
4407
  });
4389
- var WorkspaceRoleSchema = z162.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
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 = z163.object({
4393
- email: z163.string().email().trim().transform((value) => value.toLowerCase()),
4411
+ var UserInvite = z165.object({
4412
+ email: z165.string().email().trim().transform((value) => value.toLowerCase()),
4394
4413
  role: WorkspaceRoleSchema
4395
4414
  });
4396
- var UserInvites = z163.array(UserInvite).max(MAX_MEMBERS_COUNT);
4397
- var WorkspaceConfigurationUpdate = z164.object({
4398
- id: z164.string(),
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 = z165.object({
4405
- workspaceId: z165.string(),
4423
+ var WorkspaceContext = z167.object({
4424
+ workspaceId: z167.string(),
4406
4425
  product: ProductCodeSchema,
4407
4426
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4408
- publicDesignSystem: z165.boolean().optional()
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 = z166.object({
4415
- name: z166.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
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: z166.string(),
4418
- billingEmail: z166.string().email().optional(),
4419
- handle: z166.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
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: z166.string().optional(),
4440
+ promoCode: z168.string().optional(),
4422
4441
  status: InternalStatusSchema.optional(),
4423
4442
  planInterval: BillingIntervalSchema.optional(),
4424
- seats: z166.number().optional(),
4425
- seatLimit: z166.number().optional(),
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 = z167.object({
4432
- id: z167.string(),
4433
- email: z167.string().email(),
4434
- createdAt: z167.coerce.date(),
4435
- resentAt: z167.coerce.date().nullish(),
4436
- role: z167.nativeEnum(WorkspaceRole),
4437
- workspaceId: z167.string(),
4438
- invitedBy: z167.string()
4439
- });
4440
- var WorkspaceMembership = z168.object({
4441
- id: z168.string(),
4442
- userId: z168.string(),
4443
- workspaceId: z168.string(),
4444
- workspaceRole: z168.nativeEnum(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 = z168.object({
4448
- members: z168.array(
4449
- z168.object({
4450
- userId: z168.string(),
4451
- role: z168.nativeEnum(WorkspaceRole)
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 = z169.object({
4456
- id: z169.string(),
4457
- userId: z169.string(),
4458
- workspaceId: z169.string().optional(),
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: z169.string(),
4461
- hidden: z169.boolean(),
4462
- token: z169.string(),
4463
- scope: z169.string().optional(),
4464
- createdAt: z169.coerce.date(),
4465
- expireAt: z169.coerce.date().optional()
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 z170 } from "zod";
4882
- var DTOPagination = z170.object({
4883
- limit: z170.string().optional(),
4884
- offset: z170.string().optional()
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 z171 } from "zod";
4889
- var DTOBrand = z171.object({
4890
- id: z171.string(),
4891
- designSystemVersionId: z171.string(),
4892
- persistentId: z171.string(),
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 = z171.object({ brand: DTOBrand });
4896
- var DTOBrandCreateResponse = z171.object({
4914
+ var DTOBrandGetResponse = z173.object({ brand: DTOBrand });
4915
+ var DTOBrandCreateResponse = z173.object({
4897
4916
  brand: DTOBrand
4898
4917
  });
4899
- var DTOBrandsListResponse = z171.object({ brands: z171.array(DTOBrand) });
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 z172 } from "zod";
4903
- var DTODataSourceFigmaFileVersion = z172.object({
4904
- id: z172.string(),
4905
- created_at: z172.coerce.date(),
4906
- label: z172.string(),
4907
- description: z172.string()
4908
- });
4909
- var DTODataSourceFigmaCloud = z172.object({
4910
- fileId: z172.string(),
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: z172.string().optional(),
4932
+ fileThumbnailUrl: z174.string().optional(),
4914
4933
  lastImportResult: SourceImportSummary.nullish(),
4915
- lastImportedAt: z172.date().nullish(),
4934
+ lastImportedAt: z174.date().nullish(),
4916
4935
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4917
- lastUpdatesCheckedAt: z172.date().nullish(),
4918
- ownerId: z172.string(),
4919
- ownerUserName: z172.string().optional(),
4920
- preferredCredentialId: z172.string().optional(),
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 = z172.object({
4924
- id: z172.string(),
4925
- type: z172.literal(DataSourceRemoteType.Enum.Figma),
4926
- fileName: z172.string(),
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: z172.string(),
4929
- themeId: z172.string().nullish(),
4947
+ brandId: z174.string(),
4948
+ themeId: z174.string().nullish(),
4930
4949
  cloud: DTODataSourceFigmaCloud.nullish(),
4931
- tokenStudio: z172.literal(null),
4932
- upload: z172.literal(null),
4933
- figmaVariablesPlugin: z172.literal(null)
4934
- });
4935
- var DTODataSourceTokenStudio = z172.object({
4936
- id: z172.string(),
4937
- type: z172.literal(DataSourceRemoteType.Enum.TokenStudio),
4938
- fileName: z172.string(),
4939
- brandId: z172.string(),
4940
- themeId: z172.string().nullish(),
4941
- cloud: z172.literal(null),
4942
- tokenStudio: z172.object({
4943
- settings: z172.object({
4944
- dryRun: z172.boolean(),
4945
- verbose: z172.boolean(),
4946
- preciseCopy: z172.boolean()
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: z172.string(),
4949
- lastImportedAt: z172.date(),
4950
- lastImportedResults: z172.array(
4951
- z172.object({
4952
- mapping: z172.object({
4953
- tokenSets: z172.array(z172.string()),
4954
- supernovaBrand: z172.string(),
4955
- supernovaTheme: z172.string().optional()
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: z172.boolean(),
4958
- tokensCreated: z172.number(),
4959
- tokensDeleted: z172.number(),
4960
- tokensUpdated: z172.number()
4976
+ isFailed: z174.boolean(),
4977
+ tokensCreated: z174.number(),
4978
+ tokensDeleted: z174.number(),
4979
+ tokensUpdated: z174.number()
4961
4980
  })
4962
4981
  )
4963
4982
  }),
4964
- upload: z172.literal(null),
4965
- figmaVariablesPlugin: z172.literal(null)
4966
- });
4967
- var DTODataSourceFigmaVariablesPlugin = z172.object({
4968
- id: z172.string(),
4969
- type: z172.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4970
- fileName: z172.string(),
4971
- brandId: z172.string(),
4972
- themeId: z172.literal(null),
4973
- cloud: z172.literal(null),
4974
- tokenStudio: z172.literal(null),
4975
- upload: z172.object({
4976
- remoteId: z172.string(),
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: z172.date().optional(),
4997
+ lastImportedAt: z174.date().optional(),
4979
4998
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4980
4999
  }),
4981
- figmaVariablesPlugin: z172.object({
4982
- fileId: z172.string(),
4983
- lastImportedAt: z172.date().optional(),
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 = z172.discriminatedUnion("type", [
5006
+ var DTODataSource = z174.discriminatedUnion("type", [
4988
5007
  DTODataSourceFigma,
4989
5008
  DTODataSourceFigmaVariablesPlugin,
4990
5009
  DTODataSourceTokenStudio
4991
5010
  ]);
4992
- var DTODataSourcesListResponse = z172.object({
4993
- sources: z172.array(DTODataSource)
5011
+ var DTODataSourcesListResponse = z174.object({
5012
+ sources: z174.array(DTODataSource)
4994
5013
  });
4995
- var DTODataSourceCreationResponse = z172.object({
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 z173 } from "zod";
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: z173.string(),
5008
- sources: z173.array(z173.any())
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 z174 } from "zod";
5013
- var DTODiffCountBase = z174.object({
5014
- created: z174.number(),
5015
- updated: z174.number(),
5016
- deleted: z174.number()
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 = z174.object({
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 z175 } from "zod";
5025
- var DTOExporterProperty = z175.any({});
5026
- var DTOExporterPropertyListResponse = z175.object({ items: z175.array(DTOExporterProperty) });
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 z185 } from "zod";
5048
+ import { z as z187 } from "zod";
5030
5049
 
5031
5050
  // src/api/payloads/design-systems/brand.ts
5032
- import { z as z176 } from "zod";
5033
- var DTOCreateBrandInput = z176.object({
5034
- persistentId: z176.string().uuid(),
5035
- meta: z176.object({
5036
- name: z176.string(),
5037
- description: z176.string()
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 z177 } from "zod";
5046
- var ObjectMeta2 = z177.object({
5047
- name: z177.string().max(150).optional(),
5048
- description: z177.string().max(2e3).optional()
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 = z177.object({
5073
+ var DTOCreateVersionInput = z179.object({
5055
5074
  meta: ObjectMeta2,
5056
- version: z177.string().refine(validateDesignSystemVersion, {
5075
+ version: z179.string().refine(validateDesignSystemVersion, {
5057
5076
  message: "Invalid semantic versioning format"
5058
5077
  }),
5059
- changeLog: z177.string().optional()
5078
+ changeLog: z179.string().optional()
5060
5079
  });
5061
- var DTOUpdateVersionInput = z177.object({
5080
+ var DTOUpdateVersionInput = z179.object({
5062
5081
  meta: ObjectMeta2,
5063
- version: z177.string(),
5082
+ version: z179.string(),
5064
5083
  // required for PUT, but not editable
5065
- changeLog: z177.string()
5084
+ changeLog: z179.string()
5066
5085
  });
5067
5086
 
5068
5087
  // src/api/payloads/documentation/block-definitions.ts
5069
- import { z as z178 } from "zod";
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 = z178.object({
5082
- definitions: z178.array(DTOPageBlockDefinition)
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 z179 } from "zod";
5087
- var DTODocumentationPublishTypeQueryParams = z179.object({
5088
- environment: z179.enum(["Live", "Preview"])
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 z180 } from "zod";
5093
- var DTOPipelineCreateBody = z180.object({
5094
- name: z180.string(),
5095
- exporterId: z180.string(),
5096
- designSystemId: z180.string(),
5097
- isEnabled: z180.boolean(),
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: z180.string().optional(),
5100
- themePersistentId: z180.string().optional(),
5118
+ brandPersistentId: z182.string().optional(),
5119
+ themePersistentId: z182.string().optional(),
5101
5120
  destination: PipelineDestinationType.optional(),
5102
5121
  gitQuery: GitObjectsQuery,
5103
- destinations: z180.object({
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: z180.string().nullish()
5129
+ webhookUrl: z182.string().nullish()
5111
5130
  })
5112
5131
  });
5113
5132
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5114
- id: z180.string()
5133
+ id: z182.string()
5115
5134
  });
5116
- var DTOPipelineTriggerBody = z180.object({
5117
- designSystemVersionId: z180.string()
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 z181 } from "zod";
5122
- var DTOLiveblocksAuthRequest = z181.object({
5123
- room: z181.string().optional()
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 z182 } from "zod";
5128
- var DTOUpdateUserNotificationSettingsPayload = z182.object({
5146
+ import { z as z184 } from "zod";
5147
+ var DTOUpdateUserNotificationSettingsPayload = z184.object({
5129
5148
  notificationSettings: UserNotificationSettings
5130
5149
  });
5131
- var DTOUserNotificationSettingsResponse = z182.object({
5132
- userId: z182.string(),
5133
- workspaceId: z182.string(),
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 z183 } from "zod";
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 = z183.object({
5165
- enabledScopes: z183.array(z183.string()),
5166
- customRegistryUrl: z183.string().optional(),
5167
- bypassProxy: z183.boolean().optional(),
5168
- npmProxyRegistryConfigId: z183.string().optional(),
5169
- npmProxyVersion: z183.number().optional(),
5170
- registryType: z183.string(),
5171
- authType: z183.string(),
5172
- authHeaderName: z183.string(),
5173
- authHeaderValue: z183.string(),
5174
- accessToken: z183.string(),
5175
- username: z183.string(),
5176
- password: z183.string()
5177
- });
5178
- var WorkspaceConfigurationPayload = z183.object({
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 z184 } from "zod";
5187
- var DTOWorkspaceIntegrationOauthInput = z184.object({
5205
+ import { z as z186 } from "zod";
5206
+ var DTOWorkspaceIntegrationOauthInput = z186.object({
5188
5207
  type: IntegrationType
5189
5208
  });
5190
- var DTOWorkspaceIntegrationPATInput = z184.object({
5191
- userId: z184.string(),
5209
+ var DTOWorkspaceIntegrationPATInput = z186.object({
5210
+ userId: z186.string(),
5192
5211
  type: IntegrationType,
5193
5212
  token: IntegrationToken
5194
5213
  });
5195
- var DTOWorkspaceIntegrationGetGitObjectsInput = z184.object({
5196
- organization: z184.string().optional(),
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: z184.string().optional(),
5217
+ project: z186.string().optional(),
5199
5218
  // Only for Bitbucket and Azure
5200
- repository: z184.string().optional(),
5219
+ repository: z186.string().optional(),
5201
5220
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5202
- branch: z184.string().optional(),
5221
+ branch: z186.string().optional(),
5203
5222
  // For all providers, useful for PR creations.
5204
- user: z184.string().optional()
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 = z185.object({
5210
- id: z185.string(),
5211
- createdAt: z185.date(),
5228
+ var DTODesignSystemVersion = z187.object({
5229
+ id: z187.string(),
5230
+ createdAt: z187.date(),
5212
5231
  meta: ObjectMeta,
5213
- version: z185.string(),
5214
- isReadonly: z185.boolean(),
5215
- changeLog: z185.string(),
5216
- designSystemId: z185.string()
5232
+ version: z187.string(),
5233
+ isReadonly: z187.boolean(),
5234
+ changeLog: z187.string(),
5235
+ designSystemId: z187.string()
5217
5236
  });
5218
- var DTODesignSystemVersionsListResponse = z185.object({
5219
- designSystemVersions: z185.array(DTODesignSystemVersion)
5237
+ var DTODesignSystemVersionsListResponse = z187.object({
5238
+ designSystemVersions: z187.array(DTODesignSystemVersion)
5220
5239
  });
5221
- var DTODesignSystemVersionGetResponse = z185.object({
5240
+ var DTODesignSystemVersionGetResponse = z187.object({
5222
5241
  designSystemVersion: DTODesignSystemVersion
5223
5242
  });
5224
- var DTODesignSystemVersionCreationResponse = z185.object({
5243
+ var DTODesignSystemVersionCreationResponse = z187.object({
5225
5244
  meta: ObjectMeta,
5226
- version: z185.string(),
5227
- changeLog: z185.string(),
5228
- isReadOnly: z185.boolean(),
5229
- designSystemId: z185.string(),
5230
- jobId: z185.string()
5231
- });
5232
- var VersionSQSPayload = z185.object({
5233
- jobId: z185.string(),
5234
- designSystemId: z185.string(),
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 = z185.object({
5238
- jobs: z185.array(VersionCreationJob)
5256
+ var DTODesignSystemVersionJobsResponse = z187.object({
5257
+ jobs: z187.array(VersionCreationJob)
5239
5258
  });
5240
- var DTODesignSystemVersionJobStatusResponse = z185.object({
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 z186 } from "zod";
5246
- var DTOElementViewColumnSharedAttributes = z186.object({
5247
- id: z186.string(),
5248
- persistentId: z186.string(),
5249
- width: z186.number()
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: z186.literal("BaseProperty"),
5271
+ type: z188.literal("BaseProperty"),
5253
5272
  basePropertyType: ElementViewBaseColumnType
5254
5273
  });
5255
5274
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5256
- type: z186.literal("PropertyDefinition"),
5257
- propertyDefinitionId: z186.string()
5275
+ type: z188.literal("PropertyDefinition"),
5276
+ propertyDefinitionId: z188.string()
5258
5277
  });
5259
5278
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5260
- type: z186.literal("Theme"),
5261
- themeId: z186.string()
5279
+ type: z188.literal("Theme"),
5280
+ themeId: z188.string()
5262
5281
  });
5263
- var DTOElementViewColumn = z186.discriminatedUnion("type", [
5282
+ var DTOElementViewColumn = z188.discriminatedUnion("type", [
5264
5283
  DTOElementViewBasePropertyColumn,
5265
5284
  DTOElementViewPropertyDefinitionColumn,
5266
5285
  DTOElementViewThemeColumn
5267
5286
  ]);
5268
- var DTOElementView = z186.object({
5287
+ var DTOElementView = z188.object({
5269
5288
  meta: ObjectMeta,
5270
- persistentId: z186.string(),
5289
+ persistentId: z188.string(),
5271
5290
  targetElementType: ElementPropertyTargetType,
5272
- id: z186.string(),
5273
- isDefault: z186.boolean(),
5274
- columns: z186.array(DTOElementViewColumn)
5291
+ id: z188.string(),
5292
+ isDefault: z188.boolean(),
5293
+ columns: z188.array(DTOElementViewColumn)
5275
5294
  });
5276
- var DTOElementViewsListResponse = z186.object({
5277
- elementDataViews: z186.array(DTOElementView)
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 z187 } from "zod";
5300
+ import { z as z189 } from "zod";
5282
5301
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5283
- var DTOGetDocumentationPageAnchorsResponse = z187.object({
5284
- anchors: z187.array(DTODocumentationPageAnchor)
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 z192 } from "zod";
5313
+ import { z as z194 } from "zod";
5292
5314
 
5293
5315
  // src/api/dto/elements/documentation/page-v2.ts
5294
- import { z as z191 } from "zod";
5316
+ import { z as z193 } from "zod";
5295
5317
 
5296
5318
  // src/api/dto/elements/documentation/draft-state.ts
5297
- import { z as z189 } from "zod";
5319
+ import { z as z191 } from "zod";
5298
5320
 
5299
5321
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5300
- import { z as z188 } from "zod";
5322
+ import { z as z190 } from "zod";
5301
5323
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5302
- var DTODocumentationItemConfigurationV2 = z188.object({
5303
- showSidebar: z188.boolean(),
5304
- isPrivate: z188.boolean(),
5305
- isHidden: z188.boolean(),
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 = z189.enum(["Created", "Updated", "Deleted"]);
5311
- var DTODocumentationDraftStateCreated = z189.object({
5312
- changeType: z189.literal(DTODocumentationDraftChangeType.enum.Created)
5313
- });
5314
- var DTODocumentationDraftStateUpdated = z189.object({
5315
- changeType: z189.literal(DTODocumentationDraftChangeType.enum.Updated),
5316
- changes: z189.object({
5317
- previousTitle: z189.string().optional(),
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: z189.string().optional()
5341
+ previousContentHash: z191.string().optional()
5320
5342
  })
5321
5343
  });
5322
- var DTODocumentationDraftStateDeleted = z189.object({
5323
- changeType: z189.literal(DTODocumentationDraftChangeType.enum.Deleted),
5324
- deletedAt: z189.coerce.date(),
5325
- deletedByUserId: z189.string()
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 = z189.discriminatedUnion("changeType", [
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 z190 } from "zod";
5335
- var DTODocumentationPublishMetadata = z190.object({
5336
- lastPublishedByUserId: z190.string(),
5337
- lastPublishedAt: z190.coerce.date()
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 = z191.object({
5342
- id: z191.string(),
5343
- persistentId: z191.string(),
5344
- designSystemVersionId: z191.string(),
5345
- title: z191.string(),
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: z191.string(),
5348
- slug: z191.string().optional(),
5349
- userSlug: z191.string().optional(),
5350
- createdAt: z191.coerce.date(),
5351
- updatedAt: z191.coerce.date(),
5352
- path: z191.string(),
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: z191.literal("Page")
5382
+ type: z193.literal("Page")
5359
5383
  });
5360
- var DTOCreateDocumentationPageInputV2 = z191.object({
5384
+ var DTOCreateDocumentationPageInputV2 = z193.object({
5361
5385
  // Identifier
5362
- persistentId: z191.string().uuid(),
5386
+ persistentId: z193.string().uuid(),
5363
5387
  // Page properties
5364
- title: z191.string(),
5388
+ title: z193.string(),
5365
5389
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5366
5390
  // Page placement properties
5367
- parentPersistentId: z191.string().uuid(),
5368
- afterPersistentId: z191.string().uuid().nullish()
5391
+ parentPersistentId: z193.string().uuid(),
5392
+ afterPersistentId: z193.string().uuid().nullish()
5369
5393
  });
5370
- var DTOUpdateDocumentationPageInputV2 = z191.object({
5394
+ var DTOUpdateDocumentationPageInputV2 = z193.object({
5371
5395
  // Identifier of the group to update
5372
- id: z191.string(),
5396
+ id: z193.string(),
5373
5397
  // Page properties
5374
- title: z191.string().optional(),
5398
+ title: z193.string().optional(),
5375
5399
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5376
5400
  });
5377
- var DTOMoveDocumentationPageInputV2 = z191.object({
5401
+ var DTOMoveDocumentationPageInputV2 = z193.object({
5378
5402
  // Identifier of the group to update
5379
- id: z191.string(),
5403
+ id: z193.string(),
5380
5404
  // Page placement properties
5381
- parentPersistentId: z191.string().uuid(),
5382
- afterPersistentId: z191.string().uuid().nullish()
5405
+ parentPersistentId: z193.string().uuid(),
5406
+ afterPersistentId: z193.string().uuid().nullish()
5383
5407
  });
5384
- var DTODuplicateDocumentationPageInputV2 = z191.object({
5408
+ var DTODuplicateDocumentationPageInputV2 = z193.object({
5385
5409
  // Identifier of the page to duplicate from
5386
- id: z191.string(),
5410
+ id: z193.string(),
5387
5411
  // New page persistent id
5388
- persistentId: z191.string().uuid(),
5412
+ persistentId: z193.string().uuid(),
5389
5413
  // Page placement properties
5390
- parentPersistentId: z191.string().uuid(),
5391
- afterPersistentId: z191.string().uuid().nullish()
5414
+ parentPersistentId: z193.string().uuid(),
5415
+ afterPersistentId: z193.string().uuid().nullish()
5392
5416
  });
5393
- var DTODeleteDocumentationPageInputV2 = z191.object({
5417
+ var DTODeleteDocumentationPageInputV2 = z193.object({
5394
5418
  // Identifier
5395
- id: z191.string()
5419
+ id: z193.string()
5396
5420
  });
5397
- var DTORestoreDocumentationPageInput = z191.object({
5398
- persistentId: z191.string(),
5399
- snapshotId: z191.string().optional()
5421
+ var DTORestoreDocumentationPageInput = z193.object({
5422
+ persistentId: z193.string(),
5423
+ snapshotId: z193.string().optional()
5400
5424
  });
5401
- var DTORestoreDocumentationGroupInput = z191.object({
5402
- persistentId: z191.string(),
5403
- snapshotId: z191.string().optional()
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 = z192.object({
5408
- id: z192.string(),
5409
- designSystemVersionId: z192.string(),
5410
- createdAt: z192.string(),
5411
- updatedAt: z192.string(),
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: z192.string(),
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 z193 } from "zod";
5419
- var DTODocumentationLinkPreviewResponse = z193.object({
5446
+ import { z as z195 } from "zod";
5447
+ var DTODocumentationLinkPreviewResponse = z195.object({
5420
5448
  linkPreview: DocumentationLinkPreview
5421
5449
  });
5422
- var DTODocumentationLinkPreviewRequest = z193.object({
5423
- url: z193.string().optional(),
5424
- documentationItemPersistentId: z193.string().optional()
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 z197 } from "zod";
5456
+ import { z as z199 } from "zod";
5429
5457
 
5430
5458
  // src/api/dto/export/exporter.ts
5431
- import { z as z194 } from "zod";
5432
- var DTOExporterType = z194.enum(["documentation", "code"]);
5433
- var DTOExporterSource = z194.enum(["git", "upload"]);
5434
- var DTOExporterMembershipRole = z194.enum(["Owner", "OwnerArchived", "User"]);
5435
- var DTOExporter = z194.object({
5436
- id: z194.string(),
5437
- name: z194.string(),
5438
- isPrivate: z194.boolean(),
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: z194.boolean(),
5441
- iconURL: z194.string().optional(),
5468
+ isDefaultDocumentationExporter: z196.boolean(),
5469
+ iconURL: z196.string().optional(),
5442
5470
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5443
5471
  customBlocks: PulsarCustomBlock.array(),
5444
- blockVariants: z194.record(z194.string(), PulsarContributionVariant.array()),
5445
- usesBrands: z194.boolean(),
5446
- usesThemes: z194.boolean(),
5472
+ blockVariants: z196.record(z196.string(), PulsarContributionVariant.array()),
5473
+ usesBrands: z196.boolean(),
5474
+ usesThemes: z196.boolean(),
5447
5475
  source: DTOExporterSource,
5448
- gitUrl: z194.string().optional(),
5449
- gitBranch: z194.string().optional(),
5450
- gitDirectory: z194.string().optional()
5476
+ gitUrl: z196.string().optional(),
5477
+ gitBranch: z196.string().optional(),
5478
+ gitDirectory: z196.string().optional()
5451
5479
  });
5452
- var DTOExporterMembership = z194.object({
5453
- workspaceId: z194.string(),
5454
- exporterId: z194.string(),
5480
+ var DTOExporterMembership = z196.object({
5481
+ workspaceId: z196.string(),
5482
+ exporterId: z196.string(),
5455
5483
  role: DTOExporterMembershipRole
5456
5484
  });
5457
- var DTOExporterCreateOutput = z194.object({
5485
+ var DTOExporterCreateOutput = z196.object({
5458
5486
  exporter: DTOExporter,
5459
5487
  membership: DTOExporterMembership
5460
5488
  });
5461
- var DTOExporterGitProviderEnum = z194.enum(["github", "gitlab", "bitbucket", "azure"]);
5462
- var DTOExporterCreateInput = z194.object({
5463
- url: z194.string(),
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 = z194.object({
5467
- url: z194.string().optional()
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 z195 } from "zod";
5475
- var DTOExportJobCreatedBy = z195.object({
5476
- userId: z195.string(),
5477
- userName: z195.string()
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 = z195.object({
5480
- id: z195.string(),
5507
+ var DTOExportJobDesignSystemPreview = z197.object({
5508
+ id: z197.string(),
5481
5509
  meta: ObjectMeta
5482
5510
  });
5483
- var DTOExportJobDesignSystemVersionPreview = z195.object({
5484
- id: z195.string(),
5511
+ var DTOExportJobDesignSystemVersionPreview = z197.object({
5512
+ id: z197.string(),
5485
5513
  meta: ObjectMeta,
5486
- version: z195.string(),
5487
- isReadonly: z195.boolean()
5514
+ version: z197.string(),
5515
+ isReadonly: z197.boolean()
5488
5516
  });
5489
- var DTOExportJobDestinations = z195.object({
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: z195.string().optional()
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 = z195.object({
5504
- id: z195.string(),
5505
- createdAt: z195.coerce.date(),
5506
- finishedAt: z195.coerce.date().optional(),
5507
- index: z195.number().optional(),
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: z195.number().optional(),
5537
+ estimatedExecutionTime: z197.number().optional(),
5510
5538
  createdBy: DTOExportJobCreatedBy.optional(),
5511
5539
  designSystem: DTOExportJobDesignSystemPreview,
5512
5540
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5513
5541
  destinations: DTOExportJobDestinations,
5514
- exporterId: z195.string(),
5515
- scheduleId: z195.string().optional(),
5542
+ exporterId: z197.string(),
5543
+ scheduleId: z197.string().optional(),
5516
5544
  result: DTOExportJobResult.optional(),
5517
- brandPersistentId: z195.string().optional(),
5518
- themePersistentId: z195.string().optional()
5545
+ brandPersistentId: z197.string().optional(),
5546
+ themePersistentId: z197.string().optional()
5519
5547
  });
5520
- var DTOExportJobResponse = z195.object({
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 z196 } from "zod";
5526
- var DTOPipeline = z196.object({
5527
- id: z196.string(),
5528
- name: z196.string(),
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: z196.boolean(),
5531
- workspaceId: z196.string(),
5532
- designSystemId: z196.string(),
5533
- exporterId: z196.string(),
5534
- brandPersistentId: z196.string().optional(),
5535
- themePersistentId: z196.string().optional(),
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 = z197.object({
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 = z197.object({
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 z199 } from "zod";
5583
+ import { z as z201 } from "zod";
5556
5584
 
5557
5585
  // src/api/dto/elements/documentation/group-v2.ts
5558
- import { z as z198 } from "zod";
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: z198.string(),
5569
- isRoot: z198.boolean(),
5570
- childrenIds: z198.array(z198.string()),
5596
+ title: z200.string(),
5597
+ isRoot: z200.boolean(),
5598
+ childrenIds: z200.array(z200.string()),
5571
5599
  groupBehavior: DocumentationGroupBehavior,
5572
- shortPersistentId: z198.string(),
5600
+ shortPersistentId: z200.string(),
5573
5601
  configuration: DTODocumentationItemConfigurationV2,
5574
- type: z198.literal("Group"),
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 = z198.object({
5608
+ var DTOCreateDocumentationGroupInput = z200.object({
5581
5609
  // Identifier
5582
- persistentId: z198.string().uuid(),
5610
+ persistentId: z200.string().uuid(),
5583
5611
  // Group properties
5584
- title: z198.string(),
5612
+ title: z200.string(),
5585
5613
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5586
5614
  // Group placement properties
5587
- afterPersistentId: z198.string().uuid().nullish(),
5588
- parentPersistentId: z198.string().uuid()
5615
+ afterPersistentId: z200.string().uuid().nullish(),
5616
+ parentPersistentId: z200.string().uuid()
5589
5617
  });
5590
- var DTOUpdateDocumentationGroupInput = z198.object({
5618
+ var DTOUpdateDocumentationGroupInput = z200.object({
5591
5619
  // Identifier of the group to update
5592
- id: z198.string(),
5620
+ id: z200.string(),
5593
5621
  // Group properties
5594
- title: z198.string().optional(),
5622
+ title: z200.string().optional(),
5595
5623
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5596
5624
  });
5597
- var DTOMoveDocumentationGroupInput = z198.object({
5625
+ var DTOMoveDocumentationGroupInput = z200.object({
5598
5626
  // Identifier of the group to update
5599
- id: z198.string(),
5627
+ id: z200.string(),
5600
5628
  // Group placement properties
5601
- parentPersistentId: z198.string().uuid(),
5602
- afterPersistentId: z198.string().uuid().nullish()
5629
+ parentPersistentId: z200.string().uuid(),
5630
+ afterPersistentId: z200.string().uuid().nullish()
5603
5631
  });
5604
- var DTODuplicateDocumentationGroupInput = z198.object({
5632
+ var DTODuplicateDocumentationGroupInput = z200.object({
5605
5633
  // Identifier of the group to duplicate from
5606
- id: z198.string(),
5634
+ id: z200.string(),
5607
5635
  // New group persistent id
5608
- persistentId: z198.string().uuid(),
5636
+ persistentId: z200.string().uuid(),
5609
5637
  // Group placement properties
5610
- afterPersistentId: z198.string().uuid().nullish(),
5611
- parentPersistentId: z198.string().uuid()
5638
+ afterPersistentId: z200.string().uuid().nullish(),
5639
+ parentPersistentId: z200.string().uuid()
5612
5640
  });
5613
- var DTOCreateDocumentationTabInput = z198.object({
5641
+ var DTOCreateDocumentationTabInput = z200.object({
5614
5642
  // New group persistent id
5615
- persistentId: z198.string().uuid(),
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: z198.string(),
5619
- tabName: z198.string()
5646
+ fromItemPersistentId: z200.string(),
5647
+ tabName: z200.string()
5620
5648
  });
5621
- var DTODeleteDocumentationTabGroupInput = z198.object({
5649
+ var DTODeleteDocumentationTabGroupInput = z200.object({
5622
5650
  // Deleted group id
5623
- id: z198.string()
5651
+ id: z200.string()
5624
5652
  });
5625
- var DTODeleteDocumentationGroupInput = z198.object({
5653
+ var DTODeleteDocumentationGroupInput = z200.object({
5626
5654
  // Identifier
5627
- id: z198.string(),
5655
+ id: z200.string(),
5628
5656
  // Deletion options
5629
- deleteSubtree: z198.boolean().default(false)
5657
+ deleteSubtree: z200.boolean().default(false)
5630
5658
  });
5631
5659
 
5632
5660
  // src/api/dto/elements/documentation/group-action.ts
5633
- var SuccessPayload = z199.object({
5634
- success: z199.literal(true)
5661
+ var SuccessPayload = z201.object({
5662
+ success: z201.literal(true)
5635
5663
  });
5636
- var DTODocumentationGroupCreateActionOutputV2 = z199.object({
5637
- type: z199.literal("DocumentationGroupCreate"),
5664
+ var DTODocumentationGroupCreateActionOutputV2 = z201.object({
5665
+ type: z201.literal("DocumentationGroupCreate"),
5638
5666
  output: SuccessPayload
5639
5667
  });
5640
- var DTODocumentationTabCreateActionOutputV2 = z199.object({
5641
- type: z199.literal("DocumentationTabCreate"),
5668
+ var DTODocumentationTabCreateActionOutputV2 = z201.object({
5669
+ type: z201.literal("DocumentationTabCreate"),
5642
5670
  output: SuccessPayload
5643
5671
  });
5644
- var DTODocumentationGroupUpdateActionOutputV2 = z199.object({
5645
- type: z199.literal("DocumentationGroupUpdate"),
5672
+ var DTODocumentationGroupUpdateActionOutputV2 = z201.object({
5673
+ type: z201.literal("DocumentationGroupUpdate"),
5646
5674
  output: SuccessPayload
5647
5675
  });
5648
- var DTODocumentationGroupMoveActionOutputV2 = z199.object({
5649
- type: z199.literal("DocumentationGroupMove"),
5676
+ var DTODocumentationGroupMoveActionOutputV2 = z201.object({
5677
+ type: z201.literal("DocumentationGroupMove"),
5650
5678
  output: SuccessPayload
5651
5679
  });
5652
- var DTODocumentationGroupDuplicateActionOutputV2 = z199.object({
5653
- type: z199.literal("DocumentationGroupDuplicate"),
5680
+ var DTODocumentationGroupDuplicateActionOutputV2 = z201.object({
5681
+ type: z201.literal("DocumentationGroupDuplicate"),
5654
5682
  output: SuccessPayload
5655
5683
  });
5656
- var DTODocumentationGroupDeleteActionOutputV2 = z199.object({
5657
- type: z199.literal("DocumentationGroupDelete"),
5684
+ var DTODocumentationGroupDeleteActionOutputV2 = z201.object({
5685
+ type: z201.literal("DocumentationGroupDelete"),
5658
5686
  output: SuccessPayload
5659
5687
  });
5660
- var DTODocumentationTabGroupDeleteActionOutputV2 = z199.object({
5661
- type: z199.literal("DocumentationTabGroupDelete"),
5688
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z201.object({
5689
+ type: z201.literal("DocumentationTabGroupDelete"),
5662
5690
  output: SuccessPayload
5663
5691
  });
5664
- var DTODocumentationGroupCreateActionInputV2 = z199.object({
5665
- type: z199.literal("DocumentationGroupCreate"),
5692
+ var DTODocumentationGroupCreateActionInputV2 = z201.object({
5693
+ type: z201.literal("DocumentationGroupCreate"),
5666
5694
  input: DTOCreateDocumentationGroupInput
5667
5695
  });
5668
- var DTODocumentationTabCreateActionInputV2 = z199.object({
5669
- type: z199.literal("DocumentationTabCreate"),
5696
+ var DTODocumentationTabCreateActionInputV2 = z201.object({
5697
+ type: z201.literal("DocumentationTabCreate"),
5670
5698
  input: DTOCreateDocumentationTabInput
5671
5699
  });
5672
- var DTODocumentationGroupUpdateActionInputV2 = z199.object({
5673
- type: z199.literal("DocumentationGroupUpdate"),
5700
+ var DTODocumentationGroupUpdateActionInputV2 = z201.object({
5701
+ type: z201.literal("DocumentationGroupUpdate"),
5674
5702
  input: DTOUpdateDocumentationGroupInput
5675
5703
  });
5676
- var DTODocumentationGroupMoveActionInputV2 = z199.object({
5677
- type: z199.literal("DocumentationGroupMove"),
5704
+ var DTODocumentationGroupMoveActionInputV2 = z201.object({
5705
+ type: z201.literal("DocumentationGroupMove"),
5678
5706
  input: DTOMoveDocumentationGroupInput
5679
5707
  });
5680
- var DTODocumentationGroupDuplicateActionInputV2 = z199.object({
5681
- type: z199.literal("DocumentationGroupDuplicate"),
5708
+ var DTODocumentationGroupDuplicateActionInputV2 = z201.object({
5709
+ type: z201.literal("DocumentationGroupDuplicate"),
5682
5710
  input: DTODuplicateDocumentationGroupInput
5683
5711
  });
5684
- var DTODocumentationGroupDeleteActionInputV2 = z199.object({
5685
- type: z199.literal("DocumentationGroupDelete"),
5712
+ var DTODocumentationGroupDeleteActionInputV2 = z201.object({
5713
+ type: z201.literal("DocumentationGroupDelete"),
5686
5714
  input: DTODeleteDocumentationGroupInput
5687
5715
  });
5688
- var DTODocumentationTabGroupDeleteActionInputV2 = z199.object({
5689
- type: z199.literal("DocumentationTabGroupDelete"),
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 z201 } from "zod";
5722
+ import { z as z203 } from "zod";
5695
5723
 
5696
5724
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5697
- import { z as z200 } from "zod";
5698
- var DocumentationColorV1 = z200.object({
5699
- aliasTo: z200.string().optional(),
5700
- value: z200.string().optional()
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 = z200.object({
5710
- showSidebar: z200.boolean(),
5711
- isPrivate: z200.boolean(),
5712
- isHidden: z200.boolean(),
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: z201.string(),
5727
- isRoot: z201.boolean(),
5728
- childrenIds: z201.array(z201.string()),
5754
+ title: z203.string(),
5755
+ isRoot: z203.boolean(),
5756
+ childrenIds: z203.array(z203.string()),
5729
5757
  groupBehavior: DocumentationGroupBehavior,
5730
- shortPersistentId: z201.string(),
5731
- type: z201.literal("Group")
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 z202 } from "zod";
5739
- var DTODocumentationHierarchyV2 = z202.object({
5740
- pages: z202.array(
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: z202.array(
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 z203 } from "zod";
5756
- var SuccessPayload2 = z203.object({
5757
- success: z203.literal(true)
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 DTODocumentationPageCreateActionOutputV2 = z203.object({
5760
- type: z203.literal("DocumentationPageCreate"),
5791
+ var DTODocumentationPageUpdateActionOutputV2 = z205.object({
5792
+ type: z205.literal("DocumentationPageUpdate"),
5761
5793
  output: SuccessPayload2
5762
5794
  });
5763
- var DTODocumentationPageUpdateActionOutputV2 = z203.object({
5764
- type: z203.literal("DocumentationPageUpdate"),
5795
+ var DTODocumentationPageMoveActionOutputV2 = z205.object({
5796
+ type: z205.literal("DocumentationPageMove"),
5765
5797
  output: SuccessPayload2
5766
5798
  });
5767
- var DTODocumentationPageMoveActionOutputV2 = z203.object({
5768
- type: z203.literal("DocumentationPageMove"),
5799
+ var DTODocumentationPageDuplicateActionOutputV2 = z205.object({
5800
+ type: z205.literal("DocumentationPageDuplicate"),
5769
5801
  output: SuccessPayload2
5770
5802
  });
5771
- var DTODocumentationPageDuplicateActionOutputV2 = z203.object({
5772
- type: z203.literal("DocumentationPageDuplicate"),
5803
+ var DTODocumentationPageDeleteActionOutputV2 = z205.object({
5804
+ type: z205.literal("DocumentationPageDelete"),
5773
5805
  output: SuccessPayload2
5774
5806
  });
5775
- var DTODocumentationPageDeleteActionOutputV2 = z203.object({
5776
- type: z203.literal("DocumentationPageDelete"),
5807
+ var DTODocumentationPageRestoreActionOutput = z205.object({
5808
+ type: z205.literal("DocumentationPageRestore"),
5777
5809
  output: SuccessPayload2
5778
5810
  });
5779
- var DTODocumentationPageRestoreActionOutput = z203.object({
5780
- type: z203.literal("DocumentationPageRestore"),
5811
+ var DTODocumentationGroupRestoreActionOutput = z205.object({
5812
+ type: z205.literal("DocumentationGroupRestore"),
5781
5813
  output: SuccessPayload2
5782
5814
  });
5783
- var DTODocumentationGroupRestoreActionOutput = z203.object({
5784
- type: z203.literal("DocumentationGroupRestore"),
5815
+ var DTODocumentationPageApprovalStateChangeActionOutput = z205.object({
5816
+ type: z205.literal("DocumentationPageApprovalStateChange"),
5785
5817
  output: SuccessPayload2
5786
5818
  });
5787
- var DTODocumentationPageCreateActionInputV2 = z203.object({
5788
- type: z203.literal("DocumentationPageCreate"),
5819
+ var DTODocumentationPageCreateActionInputV2 = z205.object({
5820
+ type: z205.literal("DocumentationPageCreate"),
5789
5821
  input: DTOCreateDocumentationPageInputV2
5790
5822
  });
5791
- var DTODocumentationPageUpdateActionInputV2 = z203.object({
5792
- type: z203.literal("DocumentationPageUpdate"),
5823
+ var DTODocumentationPageUpdateActionInputV2 = z205.object({
5824
+ type: z205.literal("DocumentationPageUpdate"),
5793
5825
  input: DTOUpdateDocumentationPageInputV2
5794
5826
  });
5795
- var DTODocumentationPageMoveActionInputV2 = z203.object({
5796
- type: z203.literal("DocumentationPageMove"),
5827
+ var DTODocumentationPageMoveActionInputV2 = z205.object({
5828
+ type: z205.literal("DocumentationPageMove"),
5797
5829
  input: DTOMoveDocumentationPageInputV2
5798
5830
  });
5799
- var DTODocumentationPageDuplicateActionInputV2 = z203.object({
5800
- type: z203.literal("DocumentationPageDuplicate"),
5831
+ var DTODocumentationPageDuplicateActionInputV2 = z205.object({
5832
+ type: z205.literal("DocumentationPageDuplicate"),
5801
5833
  input: DTODuplicateDocumentationPageInputV2
5802
5834
  });
5803
- var DTODocumentationPageDeleteActionInputV2 = z203.object({
5804
- type: z203.literal("DocumentationPageDelete"),
5835
+ var DTODocumentationPageDeleteActionInputV2 = z205.object({
5836
+ type: z205.literal("DocumentationPageDelete"),
5805
5837
  input: DTODeleteDocumentationPageInputV2
5806
5838
  });
5807
- var DTODocumentationPageRestoreActionInput = z203.object({
5808
- type: z203.literal("DocumentationPageRestore"),
5839
+ var DTODocumentationPageRestoreActionInput = z205.object({
5840
+ type: z205.literal("DocumentationPageRestore"),
5809
5841
  input: DTORestoreDocumentationPageInput
5810
5842
  });
5811
- var DTODocumentationGroupRestoreActionInput = z203.object({
5812
- type: z203.literal("DocumentationGroupRestore"),
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 z204 } from "zod";
5853
+ import { z as z206 } from "zod";
5818
5854
  var DTODocumentationPageContent = DocumentationPageContent;
5819
- var DTODocumentationPageContentGetResponse = z204.object({
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 z205 } from "zod";
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: z205.array(PageBlockV1),
5833
- title: z205.string(),
5834
- path: z205.string()
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 z206 } from "zod";
5839
- var DTOFigmaNodeOrigin = z206.object({
5840
- sourceId: z206.string(),
5841
- fileId: z206.string().optional(),
5842
- parentName: z206.string().optional()
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 = z206.object({
5880
+ var DTOFigmaNodeData = z208.object({
5845
5881
  // Id of the node in the Figma file
5846
- figmaNodeId: z206.string(),
5882
+ figmaNodeId: z208.string(),
5847
5883
  // Validity
5848
- isValid: z206.boolean(),
5884
+ isValid: z208.boolean(),
5849
5885
  // Asset data
5850
- assetId: z206.string(),
5851
- assetUrl: z206.string(),
5886
+ assetId: z208.string(),
5887
+ assetUrl: z208.string(),
5852
5888
  // Asset metadata
5853
- assetScale: z206.number(),
5854
- assetWidth: z206.number().optional(),
5855
- assetHeight: z206.number().optional()
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 = z206.object({
5900
+ var DTOFigmaNodeRenderInput = z208.object({
5865
5901
  // Id of a design system's data source representing a linked Figma file
5866
- sourceId: z206.string(),
5902
+ sourceId: z208.string(),
5867
5903
  // Id of a node within the Figma file
5868
- figmaFileNodeId: z206.string()
5904
+ figmaFileNodeId: z208.string()
5869
5905
  });
5870
5906
 
5871
5907
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5872
- import { z as z207 } from "zod";
5873
- var DTOFigmaNodeRenderActionOutput = z207.object({
5874
- type: z207.literal("FigmaNodeRender"),
5875
- figmaNodes: z207.array(DTOFigmaNode)
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 = z207.object({
5878
- type: z207.literal("FigmaNodeRender"),
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 z209 } from "zod";
5919
+ import { z as z211 } from "zod";
5884
5920
 
5885
5921
  // src/api/dto/elements/properties/property-definitions.ts
5886
- import { z as z208 } from "zod";
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 = z208.object({
5889
- id: z208.string(),
5890
- designSystemVersionId: z208.string(),
5924
+ var DTOElementPropertyDefinition = z210.object({
5925
+ id: z210.string(),
5926
+ designSystemVersionId: z210.string(),
5891
5927
  meta: ObjectMeta,
5892
- persistentId: z208.string(),
5928
+ persistentId: z210.string(),
5893
5929
  type: ElementPropertyTypeSchema,
5894
5930
  targetElementType: ElementPropertyTargetType,
5895
- codeName: z208.string().regex(CODE_NAME_REGEX2),
5896
- options: z208.array(ElementPropertyDefinitionOption).optional(),
5931
+ codeName: z210.string().regex(CODE_NAME_REGEX2),
5932
+ options: z210.array(ElementPropertyDefinitionOption).optional(),
5897
5933
  linkElementType: ElementPropertyLinkType.optional()
5898
5934
  });
5899
- var DTOElementPropertyDefinitionsGetResponse = z208.object({
5900
- definitions: z208.array(DTOElementPropertyDefinition)
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 = z208.object({
5907
- id: z208.string(),
5908
- name: z208.string().optional(),
5909
- description: z208.string().optional(),
5910
- codeName: z208.string().regex(CODE_NAME_REGEX2).optional(),
5911
- options: z208.array(ElementPropertyDefinitionOption).optional()
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 = z208.object({
5914
- id: z208.string()
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 = z209.object({
5919
- success: z209.literal(true)
5954
+ var SuccessPayload3 = z211.object({
5955
+ success: z211.literal(true)
5920
5956
  });
5921
- var DTOPropertyDefinitionCreateActionOutputV2 = z209.object({
5922
- type: z209.literal("PropertyDefinitionCreate"),
5957
+ var DTOPropertyDefinitionCreateActionOutputV2 = z211.object({
5958
+ type: z211.literal("PropertyDefinitionCreate"),
5923
5959
  definition: DTOElementPropertyDefinition
5924
5960
  });
5925
- var DTOPropertyDefinitionUpdateActionOutputV2 = z209.object({
5926
- type: z209.literal("PropertyDefinitionUpdate"),
5961
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z211.object({
5962
+ type: z211.literal("PropertyDefinitionUpdate"),
5927
5963
  definition: DTOElementPropertyDefinition
5928
5964
  });
5929
- var DTOPropertyDefinitionDeleteActionOutputV2 = z209.object({
5930
- type: z209.literal("PropertyDefinitionDelete"),
5965
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z211.object({
5966
+ type: z211.literal("PropertyDefinitionDelete"),
5931
5967
  output: SuccessPayload3
5932
5968
  });
5933
- var DTOPropertyDefinitionCreateActionInputV2 = z209.object({
5934
- type: z209.literal("PropertyDefinitionCreate"),
5969
+ var DTOPropertyDefinitionCreateActionInputV2 = z211.object({
5970
+ type: z211.literal("PropertyDefinitionCreate"),
5935
5971
  input: DTOCreateElementPropertyDefinitionInputV2
5936
5972
  });
5937
- var DTOPropertyDefinitionUpdateActionInputV2 = z209.object({
5938
- type: z209.literal("PropertyDefinitionUpdate"),
5973
+ var DTOPropertyDefinitionUpdateActionInputV2 = z211.object({
5974
+ type: z211.literal("PropertyDefinitionUpdate"),
5939
5975
  input: DTOUpdateElementPropertyDefinitionInputV2
5940
5976
  });
5941
- var DTOPropertyDefinitionDeleteActionInputV2 = z209.object({
5942
- type: z209.literal("PropertyDefinitionDelete"),
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 z210 } from "zod";
5948
- var DTOElementPropertyValue = z210.object({
5949
- id: z210.string(),
5950
- designSystemVersionId: z210.string(),
5951
- definitionId: z210.string(),
5952
- targetElementId: z210.string(),
5953
- value: z210.union([z210.string(), z210.number(), z210.boolean()]).optional(),
5954
- valuePreview: z210.string().optional()
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 = z210.object({
5957
- values: z210.array(DTOElementPropertyValue)
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 z211 } from "zod";
5962
- var DTOElementActionOutput = z211.discriminatedUnion("type", [
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 = z211.discriminatedUnion("type", [
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 z212 } from "zod";
6015
- var DTOElementsGetTypeFilter = z212.enum(["FigmaNode"]);
6016
- var DTOElementsGetQuerySchema = z212.object({
6017
- types: z212.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
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 = z212.object({
6020
- figmaNodes: z212.array(DTOFigmaNode).optional()
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 z213 } from "zod";
6025
- var DTOAssetRenderConfiguration = z213.object({
6026
- prefix: z213.string().optional(),
6027
- suffix: z213.string().optional(),
6028
- scale: z213.enum(["x1", "x2", "x3", "x4"]),
6029
- format: z213.enum(["png", "pdf", "svg"])
6030
- });
6031
- var DTORenderedAssetFile = z213.object({
6032
- assetId: z213.string(),
6033
- fileName: z213.string(),
6034
- sourceUrl: z213.string(),
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: z213.string()
6076
+ originalName: z215.string()
6037
6077
  });
6038
- var DTODownloadAssetsRequest = z213.object({
6039
- persistentIds: z213.array(z213.string().uuid()).optional(),
6078
+ var DTODownloadAssetsRequest = z215.object({
6079
+ persistentIds: z215.array(z215.string().uuid()).optional(),
6040
6080
  settings: DTOAssetRenderConfiguration.array()
6041
6081
  });
6042
- var DTODownloadAssetsResponse = z213.object({
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 z214 } from "zod";
6048
- var DTOLiveblocksAuthResponse = z214.object({
6049
- token: z214.string()
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 z215 } from "zod";
6054
- var DTOUserProfileUpdateResponse = z215.object({
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 z216 } from "zod";
6060
- var DTOGitOrganization = z216.object({
6061
- id: z216.string(),
6062
- name: z216.string(),
6063
- url: z216.string(),
6064
- slug: z216.string()
6065
- });
6066
- var DTOGitProject = z216.object({
6067
- id: z216.string(),
6068
- name: z216.string(),
6069
- url: z216.string(),
6070
- slug: z216.string()
6071
- });
6072
- var DTOGitRepository = z216.object({
6073
- id: z216.string(),
6074
- name: z216.string(),
6075
- url: z216.string(),
6076
- slug: z216.string(),
6077
- defaultBranch: z216.string().optional()
6078
- });
6079
- var DTOGitBranch = z216.object({
6080
- name: z216.string(),
6081
- lastCommitId: z216.string()
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 z217 } from "zod";
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 = z217.object({
6091
- id: z217.string(),
6092
- workspaceId: z217.string(),
6130
+ var DTOIntegration = z219.object({
6131
+ id: z219.string(),
6132
+ workspaceId: z219.string(),
6093
6133
  type: ExtendedIntegrationType,
6094
- createdAt: z217.coerce.date(),
6095
- integrationCredentials: z217.array(DTOIntegrationCredentials).optional(),
6096
- integrationDesignSystems: z217.array(IntegrationDesignSystem).optional()
6134
+ createdAt: z219.coerce.date(),
6135
+ integrationCredentials: z219.array(DTOIntegrationCredentials).optional(),
6136
+ integrationDesignSystems: z219.array(IntegrationDesignSystem).optional()
6097
6137
  });
6098
- var DTOIntegrationOAuthGetResponse = z217.object({
6099
- url: z217.string()
6138
+ var DTOIntegrationOAuthGetResponse = z219.object({
6139
+ url: z219.string()
6100
6140
  });
6101
- var DTOIntegrationPostResponse = z217.object({
6141
+ var DTOIntegrationPostResponse = z219.object({
6102
6142
  integration: DTOIntegration
6103
6143
  });
6104
- var DTOIntegrationsGetListResponse = z217.object({
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 z220 } from "zod";
6149
+ import { z as z222 } from "zod";
6110
6150
 
6111
6151
  // src/api/dto/workspaces/workspace.ts
6112
- import { z as z219 } from "zod";
6152
+ import { z as z221 } from "zod";
6113
6153
 
6114
6154
  // src/api/dto/workspaces/npm-registry.ts
6115
- import { z as z218 } from "zod";
6155
+ import { z as z220 } from "zod";
6116
6156
  var DTONpmRegistryConfigConstants = {
6117
6157
  passwordPlaceholder: "redacted"
6118
6158
  };
6119
- var DTONpmRegistryConfig = z218.object({
6159
+ var DTONpmRegistryConfig = z220.object({
6120
6160
  // Registry basic configuration
6121
6161
  registryType: NpmRegistryType,
6122
- registryUrl: z218.string(),
6123
- customRegistryUrl: z218.string().optional(),
6162
+ registryUrl: z220.string(),
6163
+ customRegistryUrl: z220.string().optional(),
6124
6164
  // URL of Supernova NPM packages proxy
6125
- proxyUrl: z218.string(),
6165
+ proxyUrl: z220.string(),
6126
6166
  // Auth configuration
6127
6167
  authType: NpmRegistryAuthType,
6128
- accessToken: z218.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6129
- username: z218.string().optional(),
6130
- password: z218.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
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: z218.array(z218.string()),
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: z218.boolean()
6175
+ bypassProxy: z220.boolean()
6136
6176
  });
6137
6177
 
6138
6178
  // src/api/dto/workspaces/workspace.ts
6139
- var DTOWorkspace = z219.object({
6140
- id: z219.string(),
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 = z220.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
6148
- var DTOUserWorkspaceMembership = z220.object({
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 = z220.object({
6159
- membership: z220.array(DTOUserWorkspaceMembership)
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 z221 } from "zod";
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 = z221.object({
6677
- routingVersion: z221.string(),
6678
- isDraftFeatureAdopted: z221.boolean()
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 z222 } from "zod";
6686
- var DTODocumentationPageRoomHeaderData = z222.object({
6687
- title: z222.string(),
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 = z222.object({
6691
- title: z222.string().optional(),
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: z222.string().parse(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 z223 } from "zod";
6753
- var DocumentationPageEditorModel = z223.object({
6754
- blocks: z223.array(DocumentationPageContentItem)
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 z224 } from "zod";
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", z224.string()) ?? "",
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", z224.string());
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", z224.string().optional()));
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", z224.string().optional());
10758
+ const href = getProsemirrorAttribute(mark, "href", z226.string().optional());
10681
10759
  if (!href)
10682
10760
  return null;
10683
- const target = getProsemirrorAttribute(mark, "target", z224.string().optional());
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", z224.string().optional());
10780
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z226.string().optional());
10703
10781
  if (!highlightId)
10704
10782
  return null;
10705
- const isResolved = getProsemirrorAttribute(mark, "resolved", z224.boolean().optional()) ?? false;
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", z224.boolean().optional()) !== false;
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", z224.string().optional());
10842
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z226.string().optional());
10765
10843
  let columnWidth;
10766
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z224.array(z224.number()).optional());
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", z224.string());
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", z224.string());
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", z224.string().optional());
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", z224.number().optional());
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", z224.string().optional());
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", z224.string());
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(z224.string()));
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,