@supernova-studio/client 1.10.19 → 1.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +34434 -42270
- package/dist/index.d.ts +34434 -42270
- package/dist/index.js +117 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1144 -1115
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -418,35 +418,21 @@ var StripeSubscriptionStatus = StripeSubscriptionStatusSchema.enum;
|
|
|
418
418
|
var InternalStatus = InternalStatusSchema.enum;
|
|
419
419
|
var BillingType = BillingTypeSchema.enum;
|
|
420
420
|
var Subscription = z13.object({
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
internalStatus: InternalStatusSchema
|
|
427
|
-
|
|
421
|
+
card: nullishToOptional(CardSchema),
|
|
422
|
+
seats: z13.number(),
|
|
423
|
+
seatLimit: z13.number(),
|
|
424
|
+
status: nullishToOptional(InternalStatusSchema),
|
|
425
|
+
subscriptionStatus: nullishToOptional(StripeSubscriptionStatusSchema),
|
|
426
|
+
internalStatus: nullishToOptional(InternalStatusSchema),
|
|
427
|
+
stripeSubscriptionId: nullishToOptional(z13.string()),
|
|
428
|
+
stripeCustomerId: nullishToOptional(z13.string()),
|
|
428
429
|
product: ProductCodeSchema,
|
|
429
|
-
featuresSummary: FeaturesSummary.optional(),
|
|
430
|
-
stripeProductDescription: z13.string().optional(),
|
|
431
|
-
stripeProductFeatures: z13.array(z13.string()).optional(),
|
|
432
|
-
stripeProductAdditionalFeatures: z13.array(z13.string()).optional(),
|
|
433
|
-
stripeSubscriptionMainItemId: z13.string().optional(),
|
|
434
430
|
planPriceId: z13.string(),
|
|
435
431
|
planInterval: BillingIntervalSchema,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
currentPeriodStart: z13.string().optional(),
|
|
441
|
-
currentPeriodEnd: z13.string().optional(),
|
|
442
|
-
subscriptionStatusUpdatedAt: z13.string().optional(),
|
|
443
|
-
cancelAt: z13.string().nullish(),
|
|
444
|
-
card: CardSchema.optional(),
|
|
445
|
-
// New
|
|
446
|
-
amount: z13.number().nullish(),
|
|
447
|
-
isTrial: z13.boolean().optional(),
|
|
448
|
-
billingType: BillingTypeSchema.optional(),
|
|
449
|
-
daysUntilDue: z13.number().optional()
|
|
432
|
+
currentPeriodStart: nullishToOptional(z13.string()),
|
|
433
|
+
currentPeriodEnd: nullishToOptional(z13.string()),
|
|
434
|
+
cancelAt: nullishToOptional(z13.string()),
|
|
435
|
+
subscriptionStatusUpdatedAt: nullishToOptional(z13.string())
|
|
450
436
|
});
|
|
451
437
|
var ForgeChatMessageSenderType = z14.enum([
|
|
452
438
|
"User",
|
|
@@ -5392,7 +5378,8 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5392
5378
|
brandId: true
|
|
5393
5379
|
}).extend({
|
|
5394
5380
|
destinations: z184.array(ExportJobDestinationType),
|
|
5395
|
-
docsEnvironment: PublishedDocEnvironment
|
|
5381
|
+
docsEnvironment: PublishedDocEnvironment,
|
|
5382
|
+
selectivePublishing: z184.boolean().optional()
|
|
5396
5383
|
}).partial();
|
|
5397
5384
|
var ExporterType2 = z185.enum(["documentation", "code"]);
|
|
5398
5385
|
var ListExporterQuery = z185.object({
|
|
@@ -6287,7 +6274,7 @@ var DTOPagination = z211.object({
|
|
|
6287
6274
|
});
|
|
6288
6275
|
|
|
6289
6276
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6290
|
-
import { z as
|
|
6277
|
+
import { z as z254 } from "zod";
|
|
6291
6278
|
|
|
6292
6279
|
// src/api/dto/design-systems/brand.ts
|
|
6293
6280
|
import { z as z212 } from "zod";
|
|
@@ -6943,7 +6930,7 @@ var DTOStorybookEntryListResponse = z229.object({ entries: z229.array(DTOStorybo
|
|
|
6943
6930
|
var DTOStorybookEntryResponse = z229.object({ entry: DTOStorybookEntry });
|
|
6944
6931
|
|
|
6945
6932
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6946
|
-
import { z as
|
|
6933
|
+
import { z as z238 } from "zod";
|
|
6947
6934
|
|
|
6948
6935
|
// src/api/dto/workspaces/git.ts
|
|
6949
6936
|
import { z as z230 } from "zod";
|
|
@@ -7105,42 +7092,77 @@ var DTOWorkspaceMembersListResponse = z235.object({
|
|
|
7105
7092
|
members: z235.array(DTOWorkspaceMember)
|
|
7106
7093
|
});
|
|
7107
7094
|
|
|
7095
|
+
// src/api/dto/workspaces/subscription.ts
|
|
7096
|
+
import z236 from "zod";
|
|
7097
|
+
var DTOSubscription = z236.object({
|
|
7098
|
+
stripeSubscriptionId: z236.string().optional(),
|
|
7099
|
+
stripeCustomerId: z236.string().optional(),
|
|
7100
|
+
status: InternalStatusSchema.optional(),
|
|
7101
|
+
subscriptionStatus: StripeSubscriptionStatusSchema.optional(),
|
|
7102
|
+
internalStatus: InternalStatusSchema.optional(),
|
|
7103
|
+
product: ProductCodeSchema,
|
|
7104
|
+
featuresSummary: FeaturesSummary.optional(),
|
|
7105
|
+
stripeProductDescription: z236.string().optional(),
|
|
7106
|
+
stripeProductFeatures: z236.array(z236.string()).optional(),
|
|
7107
|
+
stripeProductAdditionalFeatures: z236.array(z236.string()).optional(),
|
|
7108
|
+
stripeSubscriptionMainItemId: z236.string().optional(),
|
|
7109
|
+
planPriceId: z236.string(),
|
|
7110
|
+
planInterval: BillingIntervalSchema,
|
|
7111
|
+
isPricePerCreator: z236.boolean().optional(),
|
|
7112
|
+
legacyVersion: z236.string().optional(),
|
|
7113
|
+
seats: z236.number(),
|
|
7114
|
+
seatLimit: z236.number(),
|
|
7115
|
+
currentPeriodStart: z236.string().optional(),
|
|
7116
|
+
currentPeriodEnd: z236.string().optional(),
|
|
7117
|
+
subscriptionStatusUpdatedAt: z236.string().optional(),
|
|
7118
|
+
cancelAt: z236.string().nullish(),
|
|
7119
|
+
card: CardSchema.optional(),
|
|
7120
|
+
// New
|
|
7121
|
+
amount: z236.number(),
|
|
7122
|
+
isTrial: z236.boolean(),
|
|
7123
|
+
billingType: BillingTypeSchema.optional(),
|
|
7124
|
+
daysUntilDue: z236.number().optional()
|
|
7125
|
+
});
|
|
7126
|
+
var DTOSubscriptionResponse = z236.object({
|
|
7127
|
+
subscription: DTOSubscription
|
|
7128
|
+
});
|
|
7129
|
+
|
|
7108
7130
|
// src/api/dto/workspaces/untyped-data.ts
|
|
7109
|
-
import { z as
|
|
7131
|
+
import { z as z237 } from "zod";
|
|
7110
7132
|
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
7111
|
-
var DTOWorkspaceUntypedDataListResponse =
|
|
7133
|
+
var DTOWorkspaceUntypedDataListResponse = z237.object({
|
|
7112
7134
|
data: DTOWorkspaceUntypedData.array()
|
|
7113
7135
|
});
|
|
7114
|
-
var DTOWorkspaceUntypedDataResponse =
|
|
7136
|
+
var DTOWorkspaceUntypedDataResponse = z237.object({
|
|
7115
7137
|
data: DTOWorkspaceUntypedData
|
|
7116
7138
|
});
|
|
7117
|
-
var DTOWorkspaceUntypedDataCreatePayload =
|
|
7118
|
-
value:
|
|
7139
|
+
var DTOWorkspaceUntypedDataCreatePayload = z237.object({
|
|
7140
|
+
value: z237.unknown()
|
|
7119
7141
|
});
|
|
7120
|
-
var DTOWorkspaceUntypedDataUpdatePayload =
|
|
7121
|
-
value:
|
|
7142
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z237.object({
|
|
7143
|
+
value: z237.unknown()
|
|
7122
7144
|
});
|
|
7123
7145
|
|
|
7124
7146
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
7125
|
-
var DTOUserDesignSystemsResponse =
|
|
7147
|
+
var DTOUserDesignSystemsResponse = z238.object({
|
|
7126
7148
|
designSystems: DTODesignSystem.array(),
|
|
7127
7149
|
workspaces: DTOWorkspace.array()
|
|
7128
7150
|
});
|
|
7129
7151
|
|
|
7130
7152
|
// src/api/dto/design-systems/version-room.ts
|
|
7131
|
-
import { z as
|
|
7132
|
-
var DTODesignSystemVersionRoom =
|
|
7133
|
-
id:
|
|
7153
|
+
import { z as z239 } from "zod";
|
|
7154
|
+
var DTODesignSystemVersionRoom = z239.object({
|
|
7155
|
+
id: z239.string()
|
|
7134
7156
|
});
|
|
7135
|
-
var DTODesignSystemVersionRoomResponse =
|
|
7157
|
+
var DTODesignSystemVersionRoomResponse = z239.object({
|
|
7136
7158
|
room: DTODesignSystemVersionRoom
|
|
7137
7159
|
});
|
|
7138
7160
|
|
|
7139
7161
|
// src/api/dto/design-systems/version.ts
|
|
7140
|
-
import { z as
|
|
7162
|
+
import { z as z252 } from "zod";
|
|
7141
7163
|
|
|
7142
7164
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
7143
|
-
import { z as
|
|
7165
|
+
import { z as z240 } from "zod";
|
|
7144
7166
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
7145
7167
|
id: true,
|
|
7146
7168
|
workspaceId: true,
|
|
@@ -7152,56 +7174,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
7152
7174
|
}).extend({
|
|
7153
7175
|
meta: ObjectMeta.partial().optional()
|
|
7154
7176
|
});
|
|
7155
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
7177
|
+
var DTODesignSystemUpdateAccessModeInput = z240.object({
|
|
7156
7178
|
accessMode: DesignSystemAccessMode,
|
|
7157
|
-
retain:
|
|
7158
|
-
userIds:
|
|
7159
|
-
inviteIds:
|
|
7179
|
+
retain: z240.object({
|
|
7180
|
+
userIds: z240.string().array(),
|
|
7181
|
+
inviteIds: z240.string().array()
|
|
7160
7182
|
}).optional()
|
|
7161
7183
|
});
|
|
7162
7184
|
|
|
7163
7185
|
// src/api/payloads/design-systems/version.ts
|
|
7164
|
-
import { z as
|
|
7165
|
-
var ObjectMeta2 =
|
|
7166
|
-
name:
|
|
7167
|
-
description:
|
|
7186
|
+
import { z as z241 } from "zod";
|
|
7187
|
+
var ObjectMeta2 = z241.object({
|
|
7188
|
+
name: z241.string().max(150).optional(),
|
|
7189
|
+
description: z241.string().max(2e3).optional()
|
|
7168
7190
|
});
|
|
7169
7191
|
function validateDesignSystemVersion(version) {
|
|
7170
7192
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
7171
7193
|
return urlCompliantRegex.test(version);
|
|
7172
7194
|
}
|
|
7173
|
-
var DTOCreateVersionInput =
|
|
7195
|
+
var DTOCreateVersionInput = z241.object({
|
|
7174
7196
|
meta: ObjectMeta2,
|
|
7175
|
-
version:
|
|
7197
|
+
version: z241.string().refine(validateDesignSystemVersion, {
|
|
7176
7198
|
message: "Invalid semantic versioning format"
|
|
7177
7199
|
}),
|
|
7178
|
-
changeLog:
|
|
7200
|
+
changeLog: z241.string().optional()
|
|
7179
7201
|
});
|
|
7180
|
-
var DTOUpdateVersionInput =
|
|
7202
|
+
var DTOUpdateVersionInput = z241.object({
|
|
7181
7203
|
meta: ObjectMeta2,
|
|
7182
|
-
version:
|
|
7204
|
+
version: z241.string(),
|
|
7183
7205
|
// required for PUT, but not editable
|
|
7184
|
-
changeLog:
|
|
7206
|
+
changeLog: z241.string()
|
|
7185
7207
|
});
|
|
7186
7208
|
|
|
7187
7209
|
// src/api/payloads/documentation/analytics.ts
|
|
7188
|
-
import { z as
|
|
7189
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
7190
|
-
referencePeriod:
|
|
7191
|
-
start:
|
|
7192
|
-
end:
|
|
7210
|
+
import { z as z242 } from "zod";
|
|
7211
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z242.object({
|
|
7212
|
+
referencePeriod: z242.object({
|
|
7213
|
+
start: z242.coerce.date(),
|
|
7214
|
+
end: z242.coerce.date().optional()
|
|
7193
7215
|
}),
|
|
7194
|
-
baselinePeriod:
|
|
7195
|
-
start:
|
|
7196
|
-
end:
|
|
7216
|
+
baselinePeriod: z242.object({
|
|
7217
|
+
start: z242.coerce.date(),
|
|
7218
|
+
end: z242.coerce.date().optional()
|
|
7197
7219
|
})
|
|
7198
7220
|
});
|
|
7199
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
7200
|
-
timeFrames:
|
|
7221
|
+
var DTODocumentationAnalyticsDiffPayload = z242.object({
|
|
7222
|
+
timeFrames: z242.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
7201
7223
|
});
|
|
7202
7224
|
|
|
7203
7225
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7204
|
-
import { z as
|
|
7226
|
+
import { z as z243 } from "zod";
|
|
7205
7227
|
|
|
7206
7228
|
// src/api/dto/documentation/block-definition.ts
|
|
7207
7229
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -7213,79 +7235,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
7213
7235
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
7214
7236
|
|
|
7215
7237
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7216
|
-
var DTOGetBlockDefinitionsQuery =
|
|
7217
|
-
files:
|
|
7238
|
+
var DTOGetBlockDefinitionsQuery = z243.object({
|
|
7239
|
+
files: z243.coerce.boolean().optional()
|
|
7218
7240
|
});
|
|
7219
|
-
var DTOGetBlockDefinitionsOutput =
|
|
7220
|
-
definitions:
|
|
7241
|
+
var DTOGetBlockDefinitionsOutput = z243.object({
|
|
7242
|
+
definitions: z243.array(DTOPageBlockDefinition)
|
|
7221
7243
|
});
|
|
7222
7244
|
|
|
7223
7245
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
7224
|
-
import { z as
|
|
7225
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
7226
|
-
environment:
|
|
7246
|
+
import { z as z244 } from "zod";
|
|
7247
|
+
var DTODocumentationPublishTypeQueryParams = z244.object({
|
|
7248
|
+
environment: z244.enum(["Live", "Preview"])
|
|
7227
7249
|
});
|
|
7228
7250
|
|
|
7229
7251
|
// src/api/payloads/export/pipeline.ts
|
|
7230
|
-
import { z as
|
|
7252
|
+
import { z as z246 } from "zod";
|
|
7231
7253
|
|
|
7232
7254
|
// src/api/dto/export/exporter-property.ts
|
|
7233
|
-
import { z as
|
|
7234
|
-
var PrimitiveValue2 =
|
|
7235
|
-
var ArrayValue2 =
|
|
7236
|
-
var ObjectValue2 =
|
|
7255
|
+
import { z as z245 } from "zod";
|
|
7256
|
+
var PrimitiveValue2 = z245.number().or(z245.boolean()).or(z245.string());
|
|
7257
|
+
var ArrayValue2 = z245.array(z245.string());
|
|
7258
|
+
var ObjectValue2 = z245.record(z245.string());
|
|
7237
7259
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
7238
|
-
var DTOExporterPropertyType =
|
|
7239
|
-
var PropertyDefinitionBase2 =
|
|
7240
|
-
key:
|
|
7241
|
-
title:
|
|
7242
|
-
description:
|
|
7243
|
-
category:
|
|
7244
|
-
dependsOn:
|
|
7245
|
-
});
|
|
7246
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
7247
|
-
label:
|
|
7248
|
-
description:
|
|
7260
|
+
var DTOExporterPropertyType = z245.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
7261
|
+
var PropertyDefinitionBase2 = z245.object({
|
|
7262
|
+
key: z245.string(),
|
|
7263
|
+
title: z245.string(),
|
|
7264
|
+
description: z245.string(),
|
|
7265
|
+
category: z245.string().optional(),
|
|
7266
|
+
dependsOn: z245.record(z245.boolean()).optional()
|
|
7267
|
+
});
|
|
7268
|
+
var DTOExporterPropertyDefinitionEnumOption = z245.object({
|
|
7269
|
+
label: z245.string(),
|
|
7270
|
+
description: z245.string()
|
|
7249
7271
|
});
|
|
7250
7272
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
7251
|
-
type:
|
|
7252
|
-
options:
|
|
7253
|
-
default:
|
|
7273
|
+
type: z245.literal(DTOExporterPropertyType.Enum.Enum),
|
|
7274
|
+
options: z245.record(DTOExporterPropertyDefinitionEnumOption),
|
|
7275
|
+
default: z245.string()
|
|
7254
7276
|
});
|
|
7255
7277
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
7256
|
-
type:
|
|
7257
|
-
default:
|
|
7278
|
+
type: z245.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
7279
|
+
default: z245.boolean()
|
|
7258
7280
|
});
|
|
7259
7281
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
7260
|
-
type:
|
|
7261
|
-
default:
|
|
7262
|
-
isMultiline:
|
|
7282
|
+
type: z245.literal(DTOExporterPropertyType.Enum.String),
|
|
7283
|
+
default: z245.string(),
|
|
7284
|
+
isMultiline: z245.boolean().optional()
|
|
7263
7285
|
});
|
|
7264
7286
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
7265
|
-
type:
|
|
7266
|
-
default:
|
|
7287
|
+
type: z245.literal(DTOExporterPropertyType.Enum.Number),
|
|
7288
|
+
default: z245.number()
|
|
7267
7289
|
});
|
|
7268
7290
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
7269
|
-
type:
|
|
7291
|
+
type: z245.literal(DTOExporterPropertyType.Enum.Array),
|
|
7270
7292
|
default: ArrayValue2
|
|
7271
7293
|
});
|
|
7272
7294
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
7273
|
-
type:
|
|
7295
|
+
type: z245.literal(DTOExporterPropertyType.Enum.Object),
|
|
7274
7296
|
default: ObjectValue2,
|
|
7275
|
-
allowedKeys:
|
|
7276
|
-
options:
|
|
7277
|
-
type:
|
|
7297
|
+
allowedKeys: z245.object({
|
|
7298
|
+
options: z245.string().array(),
|
|
7299
|
+
type: z245.string()
|
|
7278
7300
|
}).optional(),
|
|
7279
|
-
allowedValues:
|
|
7280
|
-
type:
|
|
7301
|
+
allowedValues: z245.object({
|
|
7302
|
+
type: z245.string()
|
|
7281
7303
|
}).optional()
|
|
7282
7304
|
});
|
|
7283
7305
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
7284
|
-
type:
|
|
7285
|
-
language:
|
|
7286
|
-
default:
|
|
7306
|
+
type: z245.literal(DTOExporterPropertyType.Enum.Code),
|
|
7307
|
+
language: z245.string(),
|
|
7308
|
+
default: z245.string()
|
|
7287
7309
|
});
|
|
7288
|
-
var DTOExporterPropertyDefinition =
|
|
7310
|
+
var DTOExporterPropertyDefinition = z245.discriminatedUnion("type", [
|
|
7289
7311
|
DTOExporterPropertyDefinitionEnum,
|
|
7290
7312
|
DTOExporterPropertyDefinitionBoolean,
|
|
7291
7313
|
DTOExporterPropertyDefinitionString,
|
|
@@ -7294,84 +7316,84 @@ var DTOExporterPropertyDefinition = z244.discriminatedUnion("type", [
|
|
|
7294
7316
|
DTOExporterPropertyDefinitionObject,
|
|
7295
7317
|
DTOExporterPropertyDefinitionCode
|
|
7296
7318
|
]);
|
|
7297
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
7319
|
+
var DTOExporterPropertyDefinitionsResponse = z245.object({
|
|
7298
7320
|
properties: DTOExporterPropertyDefinition.array()
|
|
7299
7321
|
});
|
|
7300
|
-
var DTOExporterPropertyValueMap =
|
|
7322
|
+
var DTOExporterPropertyValueMap = z245.record(DTOExporterPropertyValue);
|
|
7301
7323
|
|
|
7302
7324
|
// src/api/payloads/export/pipeline.ts
|
|
7303
|
-
var GitDestinationOptions =
|
|
7304
|
-
branch:
|
|
7305
|
-
commitMessage:
|
|
7306
|
-
commitAuthorName:
|
|
7307
|
-
commitAuthorEmail:
|
|
7308
|
-
pullRequestTitle:
|
|
7309
|
-
pullRequestDescription:
|
|
7310
|
-
relativePath:
|
|
7311
|
-
purgeDirectory:
|
|
7312
|
-
});
|
|
7313
|
-
var DTOPipelineCreateBody =
|
|
7314
|
-
name:
|
|
7315
|
-
exporterId:
|
|
7316
|
-
designSystemId:
|
|
7317
|
-
isEnabled:
|
|
7325
|
+
var GitDestinationOptions = z246.object({
|
|
7326
|
+
branch: z246.string().min(1).nullish(),
|
|
7327
|
+
commitMessage: z246.string().min(1).nullish(),
|
|
7328
|
+
commitAuthorName: z246.string().min(1).nullish(),
|
|
7329
|
+
commitAuthorEmail: z246.string().email().nullish(),
|
|
7330
|
+
pullRequestTitle: z246.string().min(1).nullish(),
|
|
7331
|
+
pullRequestDescription: z246.string().min(1).nullish(),
|
|
7332
|
+
relativePath: z246.string().nullish(),
|
|
7333
|
+
purgeDirectory: z246.boolean().nullish()
|
|
7334
|
+
});
|
|
7335
|
+
var DTOPipelineCreateBody = z246.object({
|
|
7336
|
+
name: z246.string(),
|
|
7337
|
+
exporterId: z246.string(),
|
|
7338
|
+
designSystemId: z246.string(),
|
|
7339
|
+
isEnabled: z246.boolean(),
|
|
7318
7340
|
eventType: PipelineEventType,
|
|
7319
|
-
brandPersistentId:
|
|
7320
|
-
themePersistentId:
|
|
7321
|
-
themePersistentIds:
|
|
7341
|
+
brandPersistentId: z246.string().optional(),
|
|
7342
|
+
themePersistentId: z246.string().optional(),
|
|
7343
|
+
themePersistentIds: z246.string().array().optional(),
|
|
7322
7344
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7323
7345
|
destination: PipelineDestinationType.optional(),
|
|
7324
7346
|
gitQuery: GitObjectsQuery,
|
|
7325
|
-
destinations:
|
|
7347
|
+
destinations: z246.object({
|
|
7326
7348
|
s3: ExporterDestinationS3.nullish(),
|
|
7327
7349
|
azure: ExporterDestinationAzure.nullish(),
|
|
7328
7350
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7329
7351
|
github: ExporterDestinationGithub.nullish(),
|
|
7330
7352
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7331
7353
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7332
|
-
webhookUrl:
|
|
7354
|
+
webhookUrl: z246.string().nullish()
|
|
7333
7355
|
})
|
|
7334
7356
|
});
|
|
7335
|
-
var DTOPipelineUpdateBody =
|
|
7336
|
-
exporterId:
|
|
7337
|
-
name:
|
|
7338
|
-
isEnabled:
|
|
7357
|
+
var DTOPipelineUpdateBody = z246.object({
|
|
7358
|
+
exporterId: z246.string().optional(),
|
|
7359
|
+
name: z246.string().optional(),
|
|
7360
|
+
isEnabled: z246.boolean().optional(),
|
|
7339
7361
|
eventType: PipelineEventType.optional(),
|
|
7340
|
-
brandPersistentId:
|
|
7341
|
-
themePersistentId:
|
|
7342
|
-
themePersistentIds:
|
|
7362
|
+
brandPersistentId: z246.string().optional(),
|
|
7363
|
+
themePersistentId: z246.string().optional(),
|
|
7364
|
+
themePersistentIds: z246.string().array().optional(),
|
|
7343
7365
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7344
7366
|
destination: PipelineDestinationType.optional(),
|
|
7345
7367
|
gitQuery: GitObjectsQuery.optional(),
|
|
7346
|
-
destinations:
|
|
7368
|
+
destinations: z246.object({
|
|
7347
7369
|
s3: ExporterDestinationS3.nullish(),
|
|
7348
7370
|
azure: ExporterDestinationAzure.nullish(),
|
|
7349
7371
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7350
7372
|
github: ExporterDestinationGithub.nullish(),
|
|
7351
7373
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7352
7374
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7353
|
-
webhookUrl:
|
|
7375
|
+
webhookUrl: z246.string().nullish()
|
|
7354
7376
|
}).optional(),
|
|
7355
7377
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
7356
7378
|
});
|
|
7357
|
-
var DTOPipelineTriggerBody =
|
|
7358
|
-
designSystemVersionId:
|
|
7379
|
+
var DTOPipelineTriggerBody = z246.object({
|
|
7380
|
+
designSystemVersionId: z246.string()
|
|
7359
7381
|
});
|
|
7360
7382
|
|
|
7361
7383
|
// src/api/payloads/liveblocks/auth.ts
|
|
7362
|
-
import { z as
|
|
7363
|
-
var DTOLiveblocksAuthRequest =
|
|
7364
|
-
room:
|
|
7384
|
+
import { z as z247 } from "zod";
|
|
7385
|
+
var DTOLiveblocksAuthRequest = z247.object({
|
|
7386
|
+
room: z247.string().optional()
|
|
7365
7387
|
});
|
|
7366
7388
|
|
|
7367
7389
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
7368
|
-
import { z as
|
|
7369
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
7390
|
+
import { z as z248 } from "zod";
|
|
7391
|
+
var DTOUpdateUserNotificationSettingsPayload = z248.object({
|
|
7370
7392
|
notificationSettings: UserNotificationSettings
|
|
7371
7393
|
});
|
|
7372
|
-
var DTOUserNotificationSettingsResponse =
|
|
7373
|
-
userId:
|
|
7374
|
-
workspaceId:
|
|
7394
|
+
var DTOUserNotificationSettingsResponse = z248.object({
|
|
7395
|
+
userId: z248.string(),
|
|
7396
|
+
workspaceId: z248.string(),
|
|
7375
7397
|
notificationSettings: UserNotificationSettings
|
|
7376
7398
|
});
|
|
7377
7399
|
|
|
@@ -7379,13 +7401,13 @@ var DTOUserNotificationSettingsResponse = z247.object({
|
|
|
7379
7401
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
7380
7402
|
|
|
7381
7403
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
7382
|
-
import { z as
|
|
7383
|
-
var DTOTransferOwnershipPayload =
|
|
7384
|
-
newOwnerId:
|
|
7404
|
+
import { z as z249 } from "zod";
|
|
7405
|
+
var DTOTransferOwnershipPayload = z249.object({
|
|
7406
|
+
newOwnerId: z249.string()
|
|
7385
7407
|
});
|
|
7386
7408
|
|
|
7387
7409
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
7388
|
-
import { z as
|
|
7410
|
+
import { z as z250 } from "zod";
|
|
7389
7411
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
7390
7412
|
function validateSsoPayload(ssoPayload) {
|
|
7391
7413
|
const keys = [];
|
|
@@ -7408,21 +7430,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
7408
7430
|
keys
|
|
7409
7431
|
};
|
|
7410
7432
|
}
|
|
7411
|
-
var NpmRegistryInput =
|
|
7412
|
-
enabledScopes:
|
|
7413
|
-
customRegistryUrl:
|
|
7414
|
-
bypassProxy:
|
|
7415
|
-
npmProxyRegistryConfigId:
|
|
7416
|
-
npmProxyVersion:
|
|
7417
|
-
registryType:
|
|
7418
|
-
authType:
|
|
7419
|
-
authHeaderName:
|
|
7420
|
-
authHeaderValue:
|
|
7421
|
-
accessToken:
|
|
7422
|
-
username:
|
|
7423
|
-
password:
|
|
7424
|
-
});
|
|
7425
|
-
var WorkspaceConfigurationPayload =
|
|
7433
|
+
var NpmRegistryInput = z250.object({
|
|
7434
|
+
enabledScopes: z250.array(z250.string()),
|
|
7435
|
+
customRegistryUrl: z250.string().optional(),
|
|
7436
|
+
bypassProxy: z250.boolean().optional(),
|
|
7437
|
+
npmProxyRegistryConfigId: z250.string().optional(),
|
|
7438
|
+
npmProxyVersion: z250.number().optional(),
|
|
7439
|
+
registryType: z250.string(),
|
|
7440
|
+
authType: z250.string(),
|
|
7441
|
+
authHeaderName: z250.string(),
|
|
7442
|
+
authHeaderValue: z250.string(),
|
|
7443
|
+
accessToken: z250.string(),
|
|
7444
|
+
username: z250.string(),
|
|
7445
|
+
password: z250.string()
|
|
7446
|
+
});
|
|
7447
|
+
var WorkspaceConfigurationPayload = z250.object({
|
|
7426
7448
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
7427
7449
|
sso: SsoProvider.partial().optional(),
|
|
7428
7450
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -7430,107 +7452,107 @@ var WorkspaceConfigurationPayload = z249.object({
|
|
|
7430
7452
|
});
|
|
7431
7453
|
|
|
7432
7454
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
7433
|
-
import { z as
|
|
7434
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
7455
|
+
import { z as z251 } from "zod";
|
|
7456
|
+
var DTOWorkspaceIntegrationOauthInput = z251.object({
|
|
7435
7457
|
type: IntegrationType
|
|
7436
7458
|
});
|
|
7437
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
7459
|
+
var DTOWorkspaceIntegrationPATInput = z251.object({
|
|
7438
7460
|
type: IntegrationType,
|
|
7439
7461
|
token: IntegrationToken
|
|
7440
7462
|
});
|
|
7441
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
7442
|
-
organization:
|
|
7463
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z251.object({
|
|
7464
|
+
organization: z251.string().optional(),
|
|
7443
7465
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
7444
|
-
project:
|
|
7466
|
+
project: z251.string().optional(),
|
|
7445
7467
|
// Only for Bitbucket and Azure
|
|
7446
|
-
repository:
|
|
7468
|
+
repository: z251.string().optional(),
|
|
7447
7469
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
7448
|
-
branch:
|
|
7470
|
+
branch: z251.string().optional(),
|
|
7449
7471
|
// For all providers, useful for PR creations.
|
|
7450
|
-
user:
|
|
7472
|
+
user: z251.string().optional()
|
|
7451
7473
|
// Only for Gitlab User Repositories
|
|
7452
7474
|
});
|
|
7453
7475
|
|
|
7454
7476
|
// src/api/dto/design-systems/version.ts
|
|
7455
|
-
var DTODesignSystemVersion =
|
|
7456
|
-
id:
|
|
7457
|
-
createdAt:
|
|
7477
|
+
var DTODesignSystemVersion = z252.object({
|
|
7478
|
+
id: z252.string(),
|
|
7479
|
+
createdAt: z252.coerce.date(),
|
|
7458
7480
|
meta: ObjectMeta,
|
|
7459
|
-
version:
|
|
7460
|
-
isReadonly:
|
|
7461
|
-
changeLog:
|
|
7462
|
-
designSystemId:
|
|
7481
|
+
version: z252.string(),
|
|
7482
|
+
isReadonly: z252.boolean(),
|
|
7483
|
+
changeLog: z252.string(),
|
|
7484
|
+
designSystemId: z252.string()
|
|
7463
7485
|
});
|
|
7464
|
-
var DTODesignSystemVersionsListResponse =
|
|
7465
|
-
designSystemVersions:
|
|
7486
|
+
var DTODesignSystemVersionsListResponse = z252.object({
|
|
7487
|
+
designSystemVersions: z252.array(DTODesignSystemVersion)
|
|
7466
7488
|
});
|
|
7467
|
-
var DTODesignSystemVersionGetResponse =
|
|
7489
|
+
var DTODesignSystemVersionGetResponse = z252.object({
|
|
7468
7490
|
designSystemVersion: DTODesignSystemVersion
|
|
7469
7491
|
});
|
|
7470
|
-
var DTODesignSystemVersionCreationResponse =
|
|
7492
|
+
var DTODesignSystemVersionCreationResponse = z252.object({
|
|
7471
7493
|
meta: ObjectMeta,
|
|
7472
|
-
version:
|
|
7473
|
-
changeLog:
|
|
7474
|
-
isReadOnly:
|
|
7475
|
-
designSystemId:
|
|
7476
|
-
jobId:
|
|
7477
|
-
});
|
|
7478
|
-
var VersionSQSPayload =
|
|
7479
|
-
jobId:
|
|
7480
|
-
designSystemId:
|
|
7494
|
+
version: z252.string(),
|
|
7495
|
+
changeLog: z252.string(),
|
|
7496
|
+
isReadOnly: z252.boolean(),
|
|
7497
|
+
designSystemId: z252.string(),
|
|
7498
|
+
jobId: z252.string()
|
|
7499
|
+
});
|
|
7500
|
+
var VersionSQSPayload = z252.object({
|
|
7501
|
+
jobId: z252.string(),
|
|
7502
|
+
designSystemId: z252.string(),
|
|
7481
7503
|
input: DTOCreateVersionInput
|
|
7482
7504
|
});
|
|
7483
|
-
var DTODesignSystemVersionJobsResponse =
|
|
7484
|
-
jobs:
|
|
7505
|
+
var DTODesignSystemVersionJobsResponse = z252.object({
|
|
7506
|
+
jobs: z252.array(VersionCreationJob)
|
|
7485
7507
|
});
|
|
7486
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
7508
|
+
var DTODesignSystemVersionJobStatusResponse = z252.object({
|
|
7487
7509
|
job: VersionCreationJob
|
|
7488
7510
|
});
|
|
7489
7511
|
|
|
7490
7512
|
// src/api/dto/design-systems/view.ts
|
|
7491
|
-
import { z as
|
|
7492
|
-
var DTOElementViewColumnSharedAttributes =
|
|
7493
|
-
id:
|
|
7494
|
-
persistentId:
|
|
7495
|
-
width:
|
|
7513
|
+
import { z as z253 } from "zod";
|
|
7514
|
+
var DTOElementViewColumnSharedAttributes = z253.object({
|
|
7515
|
+
id: z253.string(),
|
|
7516
|
+
persistentId: z253.string(),
|
|
7517
|
+
width: z253.number()
|
|
7496
7518
|
});
|
|
7497
7519
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7498
|
-
type:
|
|
7520
|
+
type: z253.literal("BaseProperty"),
|
|
7499
7521
|
basePropertyType: ElementViewBaseColumnType
|
|
7500
7522
|
});
|
|
7501
7523
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7502
|
-
type:
|
|
7503
|
-
propertyDefinitionId:
|
|
7524
|
+
type: z253.literal("PropertyDefinition"),
|
|
7525
|
+
propertyDefinitionId: z253.string()
|
|
7504
7526
|
});
|
|
7505
7527
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7506
|
-
type:
|
|
7507
|
-
themeId:
|
|
7528
|
+
type: z253.literal("Theme"),
|
|
7529
|
+
themeId: z253.string()
|
|
7508
7530
|
});
|
|
7509
|
-
var DTOElementViewColumn =
|
|
7531
|
+
var DTOElementViewColumn = z253.discriminatedUnion("type", [
|
|
7510
7532
|
DTOElementViewBasePropertyColumn,
|
|
7511
7533
|
DTOElementViewPropertyDefinitionColumn,
|
|
7512
7534
|
DTOElementViewThemeColumn
|
|
7513
7535
|
]);
|
|
7514
|
-
var DTOElementView =
|
|
7536
|
+
var DTOElementView = z253.object({
|
|
7515
7537
|
meta: ObjectMeta,
|
|
7516
|
-
persistentId:
|
|
7538
|
+
persistentId: z253.string(),
|
|
7517
7539
|
targetElementType: ElementPropertyTargetType,
|
|
7518
|
-
id:
|
|
7519
|
-
isDefault:
|
|
7520
|
-
columns:
|
|
7540
|
+
id: z253.string(),
|
|
7541
|
+
isDefault: z253.boolean(),
|
|
7542
|
+
columns: z253.array(DTOElementViewColumn)
|
|
7521
7543
|
});
|
|
7522
|
-
var DTOElementViewsListResponse =
|
|
7523
|
-
elementDataViews:
|
|
7544
|
+
var DTOElementViewsListResponse = z253.object({
|
|
7545
|
+
elementDataViews: z253.array(DTOElementView)
|
|
7524
7546
|
});
|
|
7525
7547
|
|
|
7526
7548
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
7527
|
-
var DTOAppBootstrapDataQuery =
|
|
7528
|
-
preferredWorkspaceId:
|
|
7529
|
-
preferredDesignSystemId:
|
|
7530
|
-
preferredVersionId:
|
|
7531
|
-
preferredBrandId:
|
|
7549
|
+
var DTOAppBootstrapDataQuery = z254.object({
|
|
7550
|
+
preferredWorkspaceId: z254.string().optional(),
|
|
7551
|
+
preferredDesignSystemId: z254.string().optional(),
|
|
7552
|
+
preferredVersionId: z254.string().optional(),
|
|
7553
|
+
preferredBrandId: z254.string().optional()
|
|
7532
7554
|
});
|
|
7533
|
-
var DTOAppBootstrapDataResponse =
|
|
7555
|
+
var DTOAppBootstrapDataResponse = z254.object({
|
|
7534
7556
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
7535
7557
|
designSystem: DTODesignSystem.optional(),
|
|
7536
7558
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -7538,92 +7560,92 @@ var DTOAppBootstrapDataResponse = z253.object({
|
|
|
7538
7560
|
});
|
|
7539
7561
|
|
|
7540
7562
|
// src/api/dto/collections/token-collection.ts
|
|
7541
|
-
import { z as
|
|
7542
|
-
var DTOTokenCollection =
|
|
7543
|
-
id:
|
|
7544
|
-
persistentId:
|
|
7545
|
-
designSystemVersionId:
|
|
7563
|
+
import { z as z255 } from "zod";
|
|
7564
|
+
var DTOTokenCollection = z255.object({
|
|
7565
|
+
id: z255.string(),
|
|
7566
|
+
persistentId: z255.string(),
|
|
7567
|
+
designSystemVersionId: z255.string(),
|
|
7546
7568
|
meta: ObjectMeta,
|
|
7547
7569
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
7548
|
-
elementPropertyOptionId:
|
|
7549
|
-
createdAt:
|
|
7550
|
-
updatedAt:
|
|
7570
|
+
elementPropertyOptionId: z255.string(),
|
|
7571
|
+
createdAt: z255.coerce.date(),
|
|
7572
|
+
updatedAt: z255.coerce.date(),
|
|
7551
7573
|
origin: CollectionOrigin.optional()
|
|
7552
7574
|
});
|
|
7553
|
-
var DTOTokenCollectionsListReponse =
|
|
7575
|
+
var DTOTokenCollectionsListReponse = z255.object({
|
|
7554
7576
|
collections: DTOTokenCollection.array()
|
|
7555
7577
|
});
|
|
7556
7578
|
|
|
7557
7579
|
// src/api/dto/design-tokens/design-token.ts
|
|
7558
|
-
import { z as
|
|
7580
|
+
import { z as z256 } from "zod";
|
|
7559
7581
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
7560
|
-
|
|
7561
|
-
id:
|
|
7562
|
-
persistentId:
|
|
7563
|
-
designSystemVersionId:
|
|
7582
|
+
z256.object({
|
|
7583
|
+
id: z256.string(),
|
|
7584
|
+
persistentId: z256.string(),
|
|
7585
|
+
designSystemVersionId: z256.string(),
|
|
7564
7586
|
meta: ObjectMeta,
|
|
7565
7587
|
originStyle: DesignTokenOrigin.optional(),
|
|
7566
|
-
brandId:
|
|
7567
|
-
collectionId:
|
|
7568
|
-
updatedAt:
|
|
7588
|
+
brandId: z256.string(),
|
|
7589
|
+
collectionId: z256.string().optional(),
|
|
7590
|
+
updatedAt: z256.coerce.date()
|
|
7569
7591
|
})
|
|
7570
7592
|
);
|
|
7571
|
-
var DTODesignTokenListResponse =
|
|
7593
|
+
var DTODesignTokenListResponse = z256.object({
|
|
7572
7594
|
tokens: DTODesignToken.array()
|
|
7573
7595
|
});
|
|
7574
|
-
var DTODesignTokenResponse =
|
|
7596
|
+
var DTODesignTokenResponse = z256.object({
|
|
7575
7597
|
token: DTODesignToken
|
|
7576
7598
|
});
|
|
7577
|
-
var DTODesignTokenGroup =
|
|
7578
|
-
id:
|
|
7599
|
+
var DTODesignTokenGroup = z256.object({
|
|
7600
|
+
id: z256.string(),
|
|
7579
7601
|
tokenType: DesignTokenType,
|
|
7580
|
-
persistentId:
|
|
7581
|
-
isRoot:
|
|
7582
|
-
brandId:
|
|
7602
|
+
persistentId: z256.string(),
|
|
7603
|
+
isRoot: z256.boolean(),
|
|
7604
|
+
brandId: z256.string(),
|
|
7583
7605
|
meta: ObjectMeta,
|
|
7584
|
-
childrenIds:
|
|
7606
|
+
childrenIds: z256.string().array()
|
|
7585
7607
|
});
|
|
7586
|
-
var DTODesignTokenGroupListResponse =
|
|
7608
|
+
var DTODesignTokenGroupListResponse = z256.object({
|
|
7587
7609
|
groups: DTODesignTokenGroup.array()
|
|
7588
7610
|
});
|
|
7589
|
-
var DTODesignTokenGroupResponse =
|
|
7611
|
+
var DTODesignTokenGroupResponse = z256.object({
|
|
7590
7612
|
group: DTODesignTokenGroup
|
|
7591
7613
|
});
|
|
7592
7614
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
7593
|
-
|
|
7594
|
-
persistentId:
|
|
7615
|
+
z256.object({
|
|
7616
|
+
persistentId: z256.string(),
|
|
7595
7617
|
meta: ObjectMeta,
|
|
7596
|
-
brandId:
|
|
7597
|
-
groupPersistentId:
|
|
7618
|
+
brandId: z256.string(),
|
|
7619
|
+
groupPersistentId: z256.string().optional()
|
|
7598
7620
|
})
|
|
7599
7621
|
);
|
|
7600
|
-
var DTODesignTokenGroupCreatePayload =
|
|
7601
|
-
persistentId:
|
|
7622
|
+
var DTODesignTokenGroupCreatePayload = z256.object({
|
|
7623
|
+
persistentId: z256.string(),
|
|
7602
7624
|
meta: ObjectMeta,
|
|
7603
|
-
brandId:
|
|
7604
|
-
parentId:
|
|
7625
|
+
brandId: z256.string(),
|
|
7626
|
+
parentId: z256.string().optional(),
|
|
7605
7627
|
tokenType: DesignTokenType,
|
|
7606
|
-
childrenIds:
|
|
7628
|
+
childrenIds: z256.string().array()
|
|
7607
7629
|
});
|
|
7608
7630
|
|
|
7609
7631
|
// src/api/dto/documentation/analytics-v2.ts
|
|
7610
|
-
import { z as
|
|
7611
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
7612
|
-
start:
|
|
7613
|
-
end:
|
|
7632
|
+
import { z as z257 } from "zod";
|
|
7633
|
+
var DTODocumentationAnalyticsTimeFrame = z257.object({
|
|
7634
|
+
start: z257.coerce.date(),
|
|
7635
|
+
end: z257.coerce.date().optional()
|
|
7614
7636
|
});
|
|
7615
|
-
var DTOPublishedDocVisitData =
|
|
7616
|
-
timestamp:
|
|
7617
|
-
versionId:
|
|
7618
|
-
locale:
|
|
7619
|
-
visits:
|
|
7620
|
-
sessions:
|
|
7637
|
+
var DTOPublishedDocVisitData = z257.object({
|
|
7638
|
+
timestamp: z257.coerce.date(),
|
|
7639
|
+
versionId: z257.string(),
|
|
7640
|
+
locale: z257.string().optional(),
|
|
7641
|
+
visits: z257.number(),
|
|
7642
|
+
sessions: z257.number()
|
|
7621
7643
|
});
|
|
7622
7644
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
7623
|
-
pagePersistentId:
|
|
7645
|
+
pagePersistentId: z257.string()
|
|
7624
7646
|
});
|
|
7625
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
7626
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7647
|
+
var DTOPublishedDocVisitHeatMapDay = z257.number().array().length(12);
|
|
7648
|
+
var DTOPublishedDocVisitHeatMapWeek = z257.object({
|
|
7627
7649
|
/**
|
|
7628
7650
|
* For which timeframe it was calculated
|
|
7629
7651
|
*/
|
|
@@ -7636,65 +7658,65 @@ var DTOPublishedDocVisitHeatMapWeek = z256.object({
|
|
|
7636
7658
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
7637
7659
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
7638
7660
|
});
|
|
7639
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7661
|
+
var DTOPublishedDocAnalyticsComparisonData = z257.object({
|
|
7640
7662
|
/**
|
|
7641
7663
|
* For which timeframe it was calculated
|
|
7642
7664
|
*/
|
|
7643
7665
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7644
|
-
priorVisitCount:
|
|
7645
|
-
priorSessionCount:
|
|
7646
|
-
currentVisitCount:
|
|
7647
|
-
currentSessionCount:
|
|
7666
|
+
priorVisitCount: z257.number(),
|
|
7667
|
+
priorSessionCount: z257.number(),
|
|
7668
|
+
currentVisitCount: z257.number(),
|
|
7669
|
+
currentSessionCount: z257.number()
|
|
7648
7670
|
});
|
|
7649
7671
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7650
|
-
pagePersistentId:
|
|
7672
|
+
pagePersistentId: z257.string()
|
|
7651
7673
|
});
|
|
7652
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7674
|
+
var DTODocumentationPageAnalyticsResponse = z257.object({
|
|
7653
7675
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7654
7676
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7655
7677
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7656
7678
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7657
7679
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7658
7680
|
});
|
|
7659
|
-
var DTODocumentationAnalyticsRequest =
|
|
7660
|
-
timeFrames:
|
|
7681
|
+
var DTODocumentationAnalyticsRequest = z257.object({
|
|
7682
|
+
timeFrames: z257.array(DTODocumentationAnalyticsTimeFrame)
|
|
7661
7683
|
});
|
|
7662
7684
|
|
|
7663
7685
|
// src/api/dto/documentation/analytics.ts
|
|
7664
|
-
import { z as
|
|
7665
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7666
|
-
startDate:
|
|
7667
|
-
endDate:
|
|
7668
|
-
currentVisitCount:
|
|
7669
|
-
currentSessionCount:
|
|
7670
|
-
priorVisitCount:
|
|
7671
|
-
priorSessionCount:
|
|
7686
|
+
import { z as z258 } from "zod";
|
|
7687
|
+
var DTODocumentationPageAnalyticsDifference = z258.object({
|
|
7688
|
+
startDate: z258.coerce.date(),
|
|
7689
|
+
endDate: z258.coerce.date().optional(),
|
|
7690
|
+
currentVisitCount: z258.number(),
|
|
7691
|
+
currentSessionCount: z258.number(),
|
|
7692
|
+
priorVisitCount: z258.number(),
|
|
7693
|
+
priorSessionCount: z258.number()
|
|
7672
7694
|
});
|
|
7673
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7674
|
-
differences:
|
|
7695
|
+
var DTODocumentationPageIntervalDifferenceResponse = z258.object({
|
|
7696
|
+
differences: z258.array(DTODocumentationPageAnalyticsDifference)
|
|
7675
7697
|
});
|
|
7676
7698
|
|
|
7677
7699
|
// src/api/dto/documentation/anchor.ts
|
|
7678
|
-
import { z as
|
|
7700
|
+
import { z as z259 } from "zod";
|
|
7679
7701
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7680
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7681
|
-
anchors:
|
|
7702
|
+
var DTOGetDocumentationPageAnchorsResponse = z259.object({
|
|
7703
|
+
anchors: z259.array(DTODocumentationPageAnchor)
|
|
7682
7704
|
});
|
|
7683
7705
|
|
|
7684
7706
|
// src/api/dto/documentation/approvals.ts
|
|
7685
|
-
import { z as
|
|
7686
|
-
var DTODocumentationPageApprovalState =
|
|
7707
|
+
import { z as z260 } from "zod";
|
|
7708
|
+
var DTODocumentationPageApprovalState = z260.object({
|
|
7687
7709
|
approvalState: DocumentationPageApprovalState,
|
|
7688
|
-
pagePersistentId:
|
|
7689
|
-
updatedByUserId:
|
|
7690
|
-
designSystemVersionId:
|
|
7691
|
-
updatedAt:
|
|
7692
|
-
createdAt:
|
|
7693
|
-
});
|
|
7694
|
-
var DTODocumentationGroupApprovalState =
|
|
7695
|
-
persistentId:
|
|
7696
|
-
groupPersistentId:
|
|
7697
|
-
designSystemVersionId:
|
|
7710
|
+
pagePersistentId: z260.string(),
|
|
7711
|
+
updatedByUserId: z260.string(),
|
|
7712
|
+
designSystemVersionId: z260.string(),
|
|
7713
|
+
updatedAt: z260.coerce.date(),
|
|
7714
|
+
createdAt: z260.coerce.date()
|
|
7715
|
+
});
|
|
7716
|
+
var DTODocumentationGroupApprovalState = z260.object({
|
|
7717
|
+
persistentId: z260.string(),
|
|
7718
|
+
groupPersistentId: z260.string(),
|
|
7719
|
+
designSystemVersionId: z260.string(),
|
|
7698
7720
|
approvalState: DocumentationPageApprovalState
|
|
7699
7721
|
});
|
|
7700
7722
|
|
|
@@ -7702,68 +7724,68 @@ var DTODocumentationGroupApprovalState = z259.object({
|
|
|
7702
7724
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7703
7725
|
|
|
7704
7726
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7705
|
-
import { z as
|
|
7727
|
+
import { z as z265 } from "zod";
|
|
7706
7728
|
|
|
7707
7729
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7708
|
-
import { z as
|
|
7730
|
+
import { z as z264 } from "zod";
|
|
7709
7731
|
|
|
7710
7732
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7711
|
-
import { z as
|
|
7733
|
+
import { z as z262 } from "zod";
|
|
7712
7734
|
|
|
7713
7735
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7714
|
-
import { z as
|
|
7736
|
+
import { z as z261 } from "zod";
|
|
7715
7737
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7716
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7717
|
-
showSidebar:
|
|
7718
|
-
isPrivate:
|
|
7719
|
-
isHidden:
|
|
7738
|
+
var DTODocumentationItemConfigurationV2 = z261.object({
|
|
7739
|
+
showSidebar: z261.boolean(),
|
|
7740
|
+
isPrivate: z261.boolean(),
|
|
7741
|
+
isHidden: z261.boolean(),
|
|
7720
7742
|
header: DTODocumentationItemHeaderV2
|
|
7721
7743
|
});
|
|
7722
7744
|
|
|
7723
7745
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7724
|
-
var DTODocumentationDraftChangeType =
|
|
7725
|
-
var DTODocumentationDraftStateCreated =
|
|
7726
|
-
changeType:
|
|
7727
|
-
});
|
|
7728
|
-
var DTODocumentationDraftStateUpdated =
|
|
7729
|
-
changeType:
|
|
7730
|
-
changes:
|
|
7731
|
-
previousTitle:
|
|
7746
|
+
var DTODocumentationDraftChangeType = z262.enum(["Created", "Updated", "Deleted"]);
|
|
7747
|
+
var DTODocumentationDraftStateCreated = z262.object({
|
|
7748
|
+
changeType: z262.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7749
|
+
});
|
|
7750
|
+
var DTODocumentationDraftStateUpdated = z262.object({
|
|
7751
|
+
changeType: z262.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7752
|
+
changes: z262.object({
|
|
7753
|
+
previousTitle: z262.string().optional(),
|
|
7732
7754
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7733
|
-
previousContentHash:
|
|
7755
|
+
previousContentHash: z262.string().optional()
|
|
7734
7756
|
})
|
|
7735
7757
|
});
|
|
7736
|
-
var DTODocumentationDraftStateDeleted =
|
|
7737
|
-
changeType:
|
|
7738
|
-
deletedAt:
|
|
7739
|
-
deletedByUserId:
|
|
7758
|
+
var DTODocumentationDraftStateDeleted = z262.object({
|
|
7759
|
+
changeType: z262.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7760
|
+
deletedAt: z262.coerce.date(),
|
|
7761
|
+
deletedByUserId: z262.string()
|
|
7740
7762
|
});
|
|
7741
|
-
var DTODocumentationDraftState =
|
|
7763
|
+
var DTODocumentationDraftState = z262.discriminatedUnion("changeType", [
|
|
7742
7764
|
DTODocumentationDraftStateCreated,
|
|
7743
7765
|
DTODocumentationDraftStateUpdated,
|
|
7744
7766
|
DTODocumentationDraftStateDeleted
|
|
7745
7767
|
]);
|
|
7746
7768
|
|
|
7747
7769
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7748
|
-
import { z as
|
|
7749
|
-
var DTODocumentationPublishMetadata =
|
|
7750
|
-
lastPublishedByUserId:
|
|
7751
|
-
lastPublishedAt:
|
|
7770
|
+
import { z as z263 } from "zod";
|
|
7771
|
+
var DTODocumentationPublishMetadata = z263.object({
|
|
7772
|
+
lastPublishedByUserId: z263.string(),
|
|
7773
|
+
lastPublishedAt: z263.coerce.date()
|
|
7752
7774
|
});
|
|
7753
7775
|
|
|
7754
7776
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7755
|
-
var DTODocumentationPageV2 =
|
|
7756
|
-
id:
|
|
7757
|
-
persistentId:
|
|
7758
|
-
designSystemVersionId:
|
|
7759
|
-
title:
|
|
7777
|
+
var DTODocumentationPageV2 = z264.object({
|
|
7778
|
+
id: z264.string(),
|
|
7779
|
+
persistentId: z264.string(),
|
|
7780
|
+
designSystemVersionId: z264.string(),
|
|
7781
|
+
title: z264.string(),
|
|
7760
7782
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7761
|
-
shortPersistentId:
|
|
7762
|
-
slug:
|
|
7763
|
-
userSlug:
|
|
7764
|
-
createdAt:
|
|
7765
|
-
updatedAt:
|
|
7766
|
-
path:
|
|
7783
|
+
shortPersistentId: z264.string(),
|
|
7784
|
+
slug: z264.string().optional(),
|
|
7785
|
+
userSlug: z264.string().optional(),
|
|
7786
|
+
createdAt: z264.coerce.date(),
|
|
7787
|
+
updatedAt: z264.coerce.date(),
|
|
7788
|
+
path: z264.string(),
|
|
7767
7789
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7768
7790
|
draftState: DTODocumentationDraftState.optional(),
|
|
7769
7791
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7771,278 +7793,278 @@ var DTODocumentationPageV2 = z263.object({
|
|
|
7771
7793
|
/** Defines the approval state of the documentation page */
|
|
7772
7794
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7773
7795
|
/** Id of the page document room */
|
|
7774
|
-
liveblocksRoomId:
|
|
7796
|
+
liveblocksRoomId: z264.string().optional(),
|
|
7775
7797
|
// Backward compatibility
|
|
7776
|
-
type:
|
|
7798
|
+
type: z264.literal("Page")
|
|
7777
7799
|
});
|
|
7778
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7800
|
+
var DTOCreateDocumentationPageInputV2 = z264.object({
|
|
7779
7801
|
// Identifier
|
|
7780
|
-
persistentId:
|
|
7802
|
+
persistentId: z264.string(),
|
|
7781
7803
|
// Page properties
|
|
7782
|
-
title:
|
|
7804
|
+
title: z264.string(),
|
|
7783
7805
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7784
7806
|
// Page placement properties
|
|
7785
|
-
parentPersistentId:
|
|
7786
|
-
afterPersistentId:
|
|
7807
|
+
parentPersistentId: z264.string(),
|
|
7808
|
+
afterPersistentId: z264.string().nullish()
|
|
7787
7809
|
});
|
|
7788
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7810
|
+
var DTOUpdateDocumentationPageInputV2 = z264.object({
|
|
7789
7811
|
// Identifier of the page to update
|
|
7790
|
-
id:
|
|
7812
|
+
id: z264.string(),
|
|
7791
7813
|
// Page properties
|
|
7792
|
-
title:
|
|
7814
|
+
title: z264.string().optional(),
|
|
7793
7815
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7794
7816
|
});
|
|
7795
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7817
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z264.object({
|
|
7796
7818
|
// Identifier of the page to update
|
|
7797
|
-
id:
|
|
7819
|
+
id: z264.string(),
|
|
7798
7820
|
// Page properties
|
|
7799
|
-
documentItems:
|
|
7821
|
+
documentItems: z264.array(DocumentationPageContentItem)
|
|
7800
7822
|
});
|
|
7801
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7823
|
+
var DTOMoveDocumentationPageInputV2 = z264.object({
|
|
7802
7824
|
// Identifier of the group to update
|
|
7803
|
-
id:
|
|
7825
|
+
id: z264.string(),
|
|
7804
7826
|
// Page placement properties
|
|
7805
|
-
parentPersistentId:
|
|
7806
|
-
afterPersistentId:
|
|
7827
|
+
parentPersistentId: z264.string(),
|
|
7828
|
+
afterPersistentId: z264.string().nullish()
|
|
7807
7829
|
});
|
|
7808
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7830
|
+
var DTODuplicateDocumentationPageInputV2 = z264.object({
|
|
7809
7831
|
// Identifier of the page to duplicate from
|
|
7810
|
-
id:
|
|
7832
|
+
id: z264.string(),
|
|
7811
7833
|
// New page persistent id
|
|
7812
|
-
persistentId:
|
|
7834
|
+
persistentId: z264.string(),
|
|
7813
7835
|
// Page placement properties
|
|
7814
|
-
parentPersistentId:
|
|
7815
|
-
afterPersistentId:
|
|
7836
|
+
parentPersistentId: z264.string(),
|
|
7837
|
+
afterPersistentId: z264.string().nullish()
|
|
7816
7838
|
});
|
|
7817
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7839
|
+
var DTODeleteDocumentationPageInputV2 = z264.object({
|
|
7818
7840
|
// Identifier
|
|
7819
|
-
id:
|
|
7841
|
+
id: z264.string()
|
|
7820
7842
|
});
|
|
7821
|
-
var DTORestoreDocumentationPageInput =
|
|
7822
|
-
persistentId:
|
|
7823
|
-
snapshotId:
|
|
7843
|
+
var DTORestoreDocumentationPageInput = z264.object({
|
|
7844
|
+
persistentId: z264.string(),
|
|
7845
|
+
snapshotId: z264.string().optional()
|
|
7824
7846
|
});
|
|
7825
|
-
var DTORestoreDocumentationGroupInput =
|
|
7826
|
-
persistentId:
|
|
7827
|
-
snapshotId:
|
|
7847
|
+
var DTORestoreDocumentationGroupInput = z264.object({
|
|
7848
|
+
persistentId: z264.string(),
|
|
7849
|
+
snapshotId: z264.string().optional()
|
|
7828
7850
|
});
|
|
7829
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7830
|
-
persistentId:
|
|
7851
|
+
var DTODocumentationPageApprovalStateChangeInput = z264.object({
|
|
7852
|
+
persistentId: z264.string(),
|
|
7831
7853
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7832
7854
|
});
|
|
7833
7855
|
|
|
7834
7856
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7835
|
-
var DTODocumentationPageSnapshot =
|
|
7836
|
-
id:
|
|
7837
|
-
designSystemVersionId:
|
|
7838
|
-
createdAt:
|
|
7839
|
-
updatedAt:
|
|
7857
|
+
var DTODocumentationPageSnapshot = z265.object({
|
|
7858
|
+
id: z265.string(),
|
|
7859
|
+
designSystemVersionId: z265.string(),
|
|
7860
|
+
createdAt: z265.string(),
|
|
7861
|
+
updatedAt: z265.string(),
|
|
7840
7862
|
documentationPage: DTODocumentationPageV2,
|
|
7841
|
-
pageContentHash:
|
|
7863
|
+
pageContentHash: z265.string(),
|
|
7842
7864
|
reason: DesignElementSnapshotReason
|
|
7843
7865
|
});
|
|
7844
7866
|
|
|
7845
7867
|
// src/api/dto/documentation/link-preview.ts
|
|
7846
|
-
import { z as
|
|
7847
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7868
|
+
import { z as z266 } from "zod";
|
|
7869
|
+
var DTODocumentationLinkPreviewResponse = z266.object({
|
|
7848
7870
|
linkPreview: DocumentationLinkPreview
|
|
7849
7871
|
});
|
|
7850
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7851
|
-
url:
|
|
7852
|
-
documentationItemPersistentId:
|
|
7872
|
+
var DTODocumentationLinkPreviewRequest = z266.object({
|
|
7873
|
+
url: z266.string().optional(),
|
|
7874
|
+
documentationItemPersistentId: z266.string().optional()
|
|
7853
7875
|
});
|
|
7854
7876
|
|
|
7855
7877
|
// src/api/dto/documentation/publish.ts
|
|
7856
|
-
import { z as
|
|
7878
|
+
import { z as z271 } from "zod";
|
|
7857
7879
|
|
|
7858
7880
|
// src/api/dto/export/exporter.ts
|
|
7859
|
-
import { z as
|
|
7860
|
-
var DTOExporterType =
|
|
7861
|
-
var DTOExporterSource =
|
|
7862
|
-
var DTOExporterMembershipRole =
|
|
7863
|
-
var DTOExporterListQuery =
|
|
7864
|
-
limit:
|
|
7865
|
-
offset:
|
|
7881
|
+
import { z as z267 } from "zod";
|
|
7882
|
+
var DTOExporterType = z267.enum(["documentation", "code"]);
|
|
7883
|
+
var DTOExporterSource = z267.enum(["git", "upload"]);
|
|
7884
|
+
var DTOExporterMembershipRole = z267.enum(["Owner", "OwnerArchived", "User"]);
|
|
7885
|
+
var DTOExporterListQuery = z267.object({
|
|
7886
|
+
limit: z267.coerce.number().optional(),
|
|
7887
|
+
offset: z267.coerce.number().optional(),
|
|
7866
7888
|
type: DTOExporterType.optional(),
|
|
7867
|
-
search:
|
|
7889
|
+
search: z267.string().optional()
|
|
7868
7890
|
});
|
|
7869
|
-
var DTOExporter =
|
|
7870
|
-
id:
|
|
7871
|
-
name:
|
|
7872
|
-
isPrivate:
|
|
7891
|
+
var DTOExporter = z267.object({
|
|
7892
|
+
id: z267.string(),
|
|
7893
|
+
name: z267.string(),
|
|
7894
|
+
isPrivate: z267.boolean(),
|
|
7873
7895
|
exporterType: DTOExporterType,
|
|
7874
|
-
isDefaultDocumentationExporter:
|
|
7875
|
-
iconURL:
|
|
7896
|
+
isDefaultDocumentationExporter: z267.boolean(),
|
|
7897
|
+
iconURL: z267.string().optional(),
|
|
7876
7898
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7877
7899
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7878
7900
|
customBlocks: PulsarCustomBlock.array(),
|
|
7879
|
-
blockVariants:
|
|
7880
|
-
homepage:
|
|
7881
|
-
organization:
|
|
7882
|
-
packageId:
|
|
7883
|
-
tags:
|
|
7884
|
-
author:
|
|
7885
|
-
version:
|
|
7886
|
-
description:
|
|
7887
|
-
usesLocale:
|
|
7888
|
-
usesBrands:
|
|
7889
|
-
usesThemes:
|
|
7890
|
-
readme:
|
|
7891
|
-
routingVersion:
|
|
7901
|
+
blockVariants: z267.record(z267.string(), PulsarContributionVariant.array()),
|
|
7902
|
+
homepage: z267.string().optional(),
|
|
7903
|
+
organization: z267.string().optional(),
|
|
7904
|
+
packageId: z267.string().optional(),
|
|
7905
|
+
tags: z267.array(z267.string()),
|
|
7906
|
+
author: z267.string().optional(),
|
|
7907
|
+
version: z267.string(),
|
|
7908
|
+
description: z267.string(),
|
|
7909
|
+
usesLocale: z267.boolean(),
|
|
7910
|
+
usesBrands: z267.boolean(),
|
|
7911
|
+
usesThemes: z267.boolean(),
|
|
7912
|
+
readme: z267.string().optional(),
|
|
7913
|
+
routingVersion: z267.string().optional(),
|
|
7892
7914
|
source: DTOExporterSource,
|
|
7893
|
-
gitProvider:
|
|
7894
|
-
gitUrl: nullishToOptional(
|
|
7895
|
-
gitBranch: nullishToOptional(
|
|
7896
|
-
gitDirectory: nullishToOptional(
|
|
7897
|
-
isDeprecated:
|
|
7898
|
-
deprecationNote:
|
|
7899
|
-
replacementExporterId:
|
|
7900
|
-
});
|
|
7901
|
-
var DTOExporterMembership =
|
|
7902
|
-
workspaceId:
|
|
7903
|
-
exporterId:
|
|
7915
|
+
gitProvider: z267.string().optional(),
|
|
7916
|
+
gitUrl: nullishToOptional(z267.string()),
|
|
7917
|
+
gitBranch: nullishToOptional(z267.string()),
|
|
7918
|
+
gitDirectory: nullishToOptional(z267.string()),
|
|
7919
|
+
isDeprecated: z267.boolean(),
|
|
7920
|
+
deprecationNote: z267.string().optional(),
|
|
7921
|
+
replacementExporterId: z267.string().optional()
|
|
7922
|
+
});
|
|
7923
|
+
var DTOExporterMembership = z267.object({
|
|
7924
|
+
workspaceId: z267.string(),
|
|
7925
|
+
exporterId: z267.string(),
|
|
7904
7926
|
role: DTOExporterMembershipRole
|
|
7905
7927
|
});
|
|
7906
|
-
var DTOExporterResponse =
|
|
7928
|
+
var DTOExporterResponse = z267.object({
|
|
7907
7929
|
exporter: DTOExporter,
|
|
7908
7930
|
membership: DTOExporterMembership
|
|
7909
7931
|
});
|
|
7910
|
-
var DTOExporterListResponse =
|
|
7932
|
+
var DTOExporterListResponse = z267.object({
|
|
7911
7933
|
exporters: DTOExporter.array(),
|
|
7912
7934
|
membership: DTOExporterMembership.array(),
|
|
7913
|
-
total:
|
|
7935
|
+
total: z267.number()
|
|
7914
7936
|
});
|
|
7915
|
-
var DTOExporterGitProviderEnum =
|
|
7916
|
-
var DTOExporterCreateInput =
|
|
7917
|
-
url:
|
|
7937
|
+
var DTOExporterGitProviderEnum = z267.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7938
|
+
var DTOExporterCreateInput = z267.object({
|
|
7939
|
+
url: z267.string(),
|
|
7918
7940
|
provider: DTOExporterGitProviderEnum
|
|
7919
7941
|
});
|
|
7920
|
-
var DTOExporterUpdateInput =
|
|
7921
|
-
url:
|
|
7942
|
+
var DTOExporterUpdateInput = z267.object({
|
|
7943
|
+
url: z267.string().optional()
|
|
7922
7944
|
});
|
|
7923
|
-
var DTOExporterDeprecationInput =
|
|
7924
|
-
isDeprecated:
|
|
7925
|
-
deprecationNote:
|
|
7926
|
-
replacementExporterId:
|
|
7945
|
+
var DTOExporterDeprecationInput = z267.object({
|
|
7946
|
+
isDeprecated: z267.boolean(),
|
|
7947
|
+
deprecationNote: z267.string().optional(),
|
|
7948
|
+
replacementExporterId: z267.string().optional()
|
|
7927
7949
|
});
|
|
7928
7950
|
|
|
7929
7951
|
// src/api/dto/export/filter.ts
|
|
7930
|
-
import { z as
|
|
7931
|
-
var DTOExportJobsListFilter =
|
|
7932
|
-
exporterId:
|
|
7933
|
-
designSystemVersionId:
|
|
7934
|
-
createdByUserId:
|
|
7952
|
+
import { z as z268 } from "zod";
|
|
7953
|
+
var DTOExportJobsListFilter = z268.object({
|
|
7954
|
+
exporterId: z268.string().optional(),
|
|
7955
|
+
designSystemVersionId: z268.string().optional(),
|
|
7956
|
+
createdByUserId: z268.string().optional(),
|
|
7935
7957
|
status: ExportJobStatus.optional(),
|
|
7936
|
-
scheduleId:
|
|
7937
|
-
designSystemId:
|
|
7938
|
-
themeId:
|
|
7939
|
-
brandId:
|
|
7940
|
-
destinations:
|
|
7958
|
+
scheduleId: z268.string().optional(),
|
|
7959
|
+
designSystemId: z268.string().optional(),
|
|
7960
|
+
themeId: z268.string().optional(),
|
|
7961
|
+
brandId: z268.string().optional(),
|
|
7962
|
+
destinations: z268.string().transform((s) => s.split(",").map((p) => ExportJobDestinationType.parse(p))).optional()
|
|
7941
7963
|
});
|
|
7942
7964
|
|
|
7943
7965
|
// src/api/dto/export/job.ts
|
|
7944
|
-
import { z as
|
|
7945
|
-
var DTOExportJobCreatedBy =
|
|
7946
|
-
userId:
|
|
7947
|
-
userName:
|
|
7966
|
+
import { z as z269 } from "zod";
|
|
7967
|
+
var DTOExportJobCreatedBy = z269.object({
|
|
7968
|
+
userId: z269.string(),
|
|
7969
|
+
userName: z269.string()
|
|
7948
7970
|
});
|
|
7949
|
-
var DTOExportJobDesignSystemPreview =
|
|
7950
|
-
id:
|
|
7971
|
+
var DTOExportJobDesignSystemPreview = z269.object({
|
|
7972
|
+
id: z269.string(),
|
|
7951
7973
|
meta: ObjectMeta
|
|
7952
7974
|
});
|
|
7953
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7954
|
-
id:
|
|
7975
|
+
var DTOExportJobDesignSystemVersionPreview = z269.object({
|
|
7976
|
+
id: z269.string(),
|
|
7955
7977
|
meta: ObjectMeta,
|
|
7956
|
-
version:
|
|
7957
|
-
isReadonly:
|
|
7978
|
+
version: z269.string(),
|
|
7979
|
+
isReadonly: z269.boolean()
|
|
7958
7980
|
});
|
|
7959
|
-
var DTOExportJobDestinations =
|
|
7981
|
+
var DTOExportJobDestinations = z269.object({
|
|
7960
7982
|
s3: ExporterDestinationS3.optional(),
|
|
7961
7983
|
azure: ExporterDestinationAzure.optional(),
|
|
7962
7984
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7963
7985
|
github: ExporterDestinationGithub.optional(),
|
|
7964
7986
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7965
7987
|
documentation: ExporterDestinationDocs.optional(),
|
|
7966
|
-
webhookUrl:
|
|
7988
|
+
webhookUrl: z269.string().optional()
|
|
7967
7989
|
});
|
|
7968
7990
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7969
7991
|
sndocs: true
|
|
7970
7992
|
}).extend({
|
|
7971
7993
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7972
7994
|
});
|
|
7973
|
-
var DTOExportJob =
|
|
7974
|
-
id:
|
|
7975
|
-
createdAt:
|
|
7976
|
-
finishedAt:
|
|
7977
|
-
index:
|
|
7995
|
+
var DTOExportJob = z269.object({
|
|
7996
|
+
id: z269.string(),
|
|
7997
|
+
createdAt: z269.coerce.date(),
|
|
7998
|
+
finishedAt: z269.coerce.date().optional(),
|
|
7999
|
+
index: z269.number().optional(),
|
|
7978
8000
|
status: ExportJobStatus,
|
|
7979
|
-
estimatedExecutionTime:
|
|
8001
|
+
estimatedExecutionTime: z269.number().optional(),
|
|
7980
8002
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7981
8003
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7982
8004
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7983
8005
|
destinations: DTOExportJobDestinations,
|
|
7984
|
-
exporterId:
|
|
7985
|
-
scheduleId:
|
|
8006
|
+
exporterId: z269.string(),
|
|
8007
|
+
scheduleId: z269.string().optional(),
|
|
7986
8008
|
result: DTOExportJobResult.optional(),
|
|
7987
|
-
brandPersistentId:
|
|
7988
|
-
themePersistentId:
|
|
7989
|
-
themePersistentIds:
|
|
8009
|
+
brandPersistentId: z269.string().optional(),
|
|
8010
|
+
themePersistentId: z269.string().optional(),
|
|
8011
|
+
themePersistentIds: z269.string().array().optional(),
|
|
7990
8012
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7991
8013
|
});
|
|
7992
|
-
var DTOExportJobResponse =
|
|
8014
|
+
var DTOExportJobResponse = z269.object({
|
|
7993
8015
|
job: DTOExportJob
|
|
7994
8016
|
});
|
|
7995
|
-
var DTOExportJobResponseLegacy =
|
|
7996
|
-
job:
|
|
7997
|
-
id:
|
|
8017
|
+
var DTOExportJobResponseLegacy = z269.object({
|
|
8018
|
+
job: z269.object({
|
|
8019
|
+
id: z269.string(),
|
|
7998
8020
|
status: ExportJobStatus
|
|
7999
8021
|
})
|
|
8000
8022
|
});
|
|
8001
|
-
var DTOExportJobCreateInput =
|
|
8002
|
-
designSystemId:
|
|
8003
|
-
designSystemVersionId:
|
|
8004
|
-
exporterId:
|
|
8005
|
-
brandId:
|
|
8006
|
-
themeId:
|
|
8007
|
-
themePersistentIds:
|
|
8023
|
+
var DTOExportJobCreateInput = z269.object({
|
|
8024
|
+
designSystemId: z269.string(),
|
|
8025
|
+
designSystemVersionId: z269.string(),
|
|
8026
|
+
exporterId: z269.string(),
|
|
8027
|
+
brandId: z269.string().optional(),
|
|
8028
|
+
themeId: z269.string().optional(),
|
|
8029
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8008
8030
|
destinations: DTOExportJobDestinations,
|
|
8009
8031
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8010
|
-
previewMode:
|
|
8032
|
+
previewMode: z269.boolean().optional()
|
|
8011
8033
|
});
|
|
8012
8034
|
|
|
8013
8035
|
// src/api/dto/export/pipeline.ts
|
|
8014
|
-
import { z as
|
|
8015
|
-
var DTOPipelineListQuery =
|
|
8016
|
-
designSystemId:
|
|
8017
|
-
exporterId:
|
|
8018
|
-
latestJobsLimit:
|
|
8019
|
-
});
|
|
8020
|
-
var DTOPipeline =
|
|
8021
|
-
id:
|
|
8022
|
-
name:
|
|
8036
|
+
import { z as z270 } from "zod";
|
|
8037
|
+
var DTOPipelineListQuery = z270.object({
|
|
8038
|
+
designSystemId: z270.string().optional(),
|
|
8039
|
+
exporterId: z270.string().optional(),
|
|
8040
|
+
latestJobsLimit: z270.coerce.number().optional()
|
|
8041
|
+
});
|
|
8042
|
+
var DTOPipeline = z270.object({
|
|
8043
|
+
id: z270.string(),
|
|
8044
|
+
name: z270.string(),
|
|
8023
8045
|
eventType: PipelineEventType,
|
|
8024
|
-
isEnabled:
|
|
8025
|
-
workspaceId:
|
|
8026
|
-
designSystemId:
|
|
8027
|
-
exporterId:
|
|
8028
|
-
brandPersistentId:
|
|
8029
|
-
themePersistentId:
|
|
8030
|
-
themePersistentIds:
|
|
8046
|
+
isEnabled: z270.boolean(),
|
|
8047
|
+
workspaceId: z270.string(),
|
|
8048
|
+
designSystemId: z270.string(),
|
|
8049
|
+
exporterId: z270.string(),
|
|
8050
|
+
brandPersistentId: z270.string().optional(),
|
|
8051
|
+
themePersistentId: z270.string().optional(),
|
|
8052
|
+
themePersistentIds: z270.string().array().optional(),
|
|
8031
8053
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8032
8054
|
...ExportDestinationsMap.shape,
|
|
8033
8055
|
latestJobs: DTOExportJob.array(),
|
|
8034
|
-
isExporterDeprecated:
|
|
8056
|
+
isExporterDeprecated: z270.boolean()
|
|
8035
8057
|
});
|
|
8036
|
-
var DTOPipelineListResponse =
|
|
8058
|
+
var DTOPipelineListResponse = z270.object({
|
|
8037
8059
|
pipelines: DTOPipeline.array()
|
|
8038
8060
|
});
|
|
8039
|
-
var DTOPipelineResponse =
|
|
8061
|
+
var DTOPipelineResponse = z270.object({
|
|
8040
8062
|
pipeline: DTOPipeline
|
|
8041
8063
|
});
|
|
8042
8064
|
|
|
8043
8065
|
// src/api/dto/documentation/publish.ts
|
|
8044
8066
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
8045
|
-
var DTOPublishDocumentationRequest =
|
|
8067
|
+
var DTOPublishDocumentationRequest = z271.object({
|
|
8046
8068
|
environment: PublishedDocEnvironment,
|
|
8047
8069
|
/**
|
|
8048
8070
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -8050,66 +8072,66 @@ var DTOPublishDocumentationRequest = z270.object({
|
|
|
8050
8072
|
*/
|
|
8051
8073
|
changes: DTOPublishDocumentationChanges.optional()
|
|
8052
8074
|
});
|
|
8053
|
-
var DTOPublishDocumentationResponse =
|
|
8075
|
+
var DTOPublishDocumentationResponse = z271.object({
|
|
8054
8076
|
job: DTOExportJob
|
|
8055
8077
|
});
|
|
8056
8078
|
|
|
8057
8079
|
// src/api/dto/documentation/room.ts
|
|
8058
|
-
import { z as
|
|
8059
|
-
var DTODocumentationPageRoom =
|
|
8060
|
-
id:
|
|
8080
|
+
import { z as z272 } from "zod";
|
|
8081
|
+
var DTODocumentationPageRoom = z272.object({
|
|
8082
|
+
id: z272.string()
|
|
8061
8083
|
});
|
|
8062
|
-
var DTODocumentationPageRoomResponse =
|
|
8084
|
+
var DTODocumentationPageRoomResponse = z272.object({
|
|
8063
8085
|
room: DTODocumentationPageRoom
|
|
8064
8086
|
});
|
|
8065
8087
|
|
|
8066
8088
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
8067
|
-
import
|
|
8068
|
-
var DTOFigmaComponentGroup =
|
|
8069
|
-
id:
|
|
8070
|
-
designSystemVersionId:
|
|
8071
|
-
persistentId:
|
|
8072
|
-
isRoot:
|
|
8073
|
-
brandId:
|
|
8089
|
+
import z273 from "zod";
|
|
8090
|
+
var DTOFigmaComponentGroup = z273.object({
|
|
8091
|
+
id: z273.string(),
|
|
8092
|
+
designSystemVersionId: z273.string(),
|
|
8093
|
+
persistentId: z273.string(),
|
|
8094
|
+
isRoot: z273.boolean(),
|
|
8095
|
+
brandId: z273.string(),
|
|
8074
8096
|
meta: DTOObjectMeta,
|
|
8075
|
-
childrenIds:
|
|
8097
|
+
childrenIds: z273.string().array()
|
|
8076
8098
|
});
|
|
8077
|
-
var DTOFigmaComponentGroupListResponse =
|
|
8099
|
+
var DTOFigmaComponentGroupListResponse = z273.object({
|
|
8078
8100
|
groups: DTOFigmaComponentGroup.array()
|
|
8079
8101
|
});
|
|
8080
8102
|
|
|
8081
8103
|
// src/api/dto/elements/components/figma-component.ts
|
|
8082
|
-
import { z as
|
|
8104
|
+
import { z as z274 } from "zod";
|
|
8083
8105
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
8084
|
-
var DTOFigmaComponentPropertyMap =
|
|
8085
|
-
var DTOFigmaComponent =
|
|
8086
|
-
id:
|
|
8087
|
-
persistentId:
|
|
8088
|
-
designSystemVersionId:
|
|
8089
|
-
brandId:
|
|
8090
|
-
thumbnailUrl:
|
|
8091
|
-
svgUrl:
|
|
8092
|
-
exportProperties:
|
|
8093
|
-
isAsset:
|
|
8106
|
+
var DTOFigmaComponentPropertyMap = z274.record(DTOFigmaComponentProperty);
|
|
8107
|
+
var DTOFigmaComponent = z274.object({
|
|
8108
|
+
id: z274.string(),
|
|
8109
|
+
persistentId: z274.string(),
|
|
8110
|
+
designSystemVersionId: z274.string(),
|
|
8111
|
+
brandId: z274.string(),
|
|
8112
|
+
thumbnailUrl: z274.string().optional(),
|
|
8113
|
+
svgUrl: z274.string().optional(),
|
|
8114
|
+
exportProperties: z274.object({
|
|
8115
|
+
isAsset: z274.boolean()
|
|
8094
8116
|
}),
|
|
8095
|
-
createdAt:
|
|
8096
|
-
updatedAt:
|
|
8117
|
+
createdAt: z274.coerce.date(),
|
|
8118
|
+
updatedAt: z274.coerce.date(),
|
|
8097
8119
|
meta: ObjectMeta,
|
|
8098
8120
|
originComponent: FigmaComponentOrigin.optional(),
|
|
8099
|
-
parentComponentPersistentId:
|
|
8100
|
-
childrenPersistentIds:
|
|
8121
|
+
parentComponentPersistentId: z274.string().optional(),
|
|
8122
|
+
childrenPersistentIds: z274.string().array().optional(),
|
|
8101
8123
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
8102
|
-
variantPropertyValues:
|
|
8124
|
+
variantPropertyValues: z274.record(z274.string()).optional()
|
|
8103
8125
|
});
|
|
8104
|
-
var DTOFigmaComponentListResponse =
|
|
8126
|
+
var DTOFigmaComponentListResponse = z274.object({
|
|
8105
8127
|
components: DTOFigmaComponent.array()
|
|
8106
8128
|
});
|
|
8107
8129
|
|
|
8108
8130
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8109
|
-
import { z as
|
|
8131
|
+
import { z as z276 } from "zod";
|
|
8110
8132
|
|
|
8111
8133
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
8112
|
-
import { z as
|
|
8134
|
+
import { z as z275 } from "zod";
|
|
8113
8135
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
8114
8136
|
sortOrder: true,
|
|
8115
8137
|
parentPersistentId: true,
|
|
@@ -8119,13 +8141,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8119
8141
|
data: true,
|
|
8120
8142
|
shortPersistentId: true
|
|
8121
8143
|
}).extend({
|
|
8122
|
-
title:
|
|
8123
|
-
isRoot:
|
|
8124
|
-
childrenIds:
|
|
8144
|
+
title: z275.string(),
|
|
8145
|
+
isRoot: z275.boolean(),
|
|
8146
|
+
childrenIds: z275.array(z275.string()),
|
|
8125
8147
|
groupBehavior: DocumentationGroupBehavior,
|
|
8126
|
-
shortPersistentId:
|
|
8148
|
+
shortPersistentId: z275.string(),
|
|
8127
8149
|
configuration: DTODocumentationItemConfigurationV2,
|
|
8128
|
-
type:
|
|
8150
|
+
type: z275.literal("Group"),
|
|
8129
8151
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
8130
8152
|
draftState: DTODocumentationDraftState.optional(),
|
|
8131
8153
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -8133,127 +8155,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8133
8155
|
//** An approval state for frontend to utilize. */
|
|
8134
8156
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
8135
8157
|
});
|
|
8136
|
-
var DTOCreateDocumentationGroupInput =
|
|
8158
|
+
var DTOCreateDocumentationGroupInput = z275.object({
|
|
8137
8159
|
// Identifier
|
|
8138
|
-
persistentId:
|
|
8160
|
+
persistentId: z275.string(),
|
|
8139
8161
|
// Group properties
|
|
8140
|
-
title:
|
|
8162
|
+
title: z275.string(),
|
|
8141
8163
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
8142
8164
|
// Group placement properties
|
|
8143
|
-
afterPersistentId:
|
|
8144
|
-
parentPersistentId:
|
|
8165
|
+
afterPersistentId: z275.string().nullish(),
|
|
8166
|
+
parentPersistentId: z275.string()
|
|
8145
8167
|
});
|
|
8146
|
-
var DTOUpdateDocumentationGroupInput =
|
|
8168
|
+
var DTOUpdateDocumentationGroupInput = z275.object({
|
|
8147
8169
|
// Identifier of the group to update
|
|
8148
|
-
id:
|
|
8170
|
+
id: z275.string(),
|
|
8149
8171
|
// Group properties
|
|
8150
|
-
title:
|
|
8172
|
+
title: z275.string().optional(),
|
|
8151
8173
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
8152
8174
|
});
|
|
8153
|
-
var DTOMoveDocumentationGroupInput =
|
|
8175
|
+
var DTOMoveDocumentationGroupInput = z275.object({
|
|
8154
8176
|
// Identifier of the group to update
|
|
8155
|
-
id:
|
|
8177
|
+
id: z275.string(),
|
|
8156
8178
|
// Group placement properties
|
|
8157
|
-
parentPersistentId:
|
|
8158
|
-
afterPersistentId:
|
|
8179
|
+
parentPersistentId: z275.string(),
|
|
8180
|
+
afterPersistentId: z275.string().nullish()
|
|
8159
8181
|
});
|
|
8160
|
-
var DTODuplicateDocumentationGroupInput =
|
|
8182
|
+
var DTODuplicateDocumentationGroupInput = z275.object({
|
|
8161
8183
|
// Identifier of the group to duplicate from
|
|
8162
|
-
id:
|
|
8184
|
+
id: z275.string(),
|
|
8163
8185
|
// New group persistent id
|
|
8164
|
-
persistentId:
|
|
8186
|
+
persistentId: z275.string(),
|
|
8165
8187
|
// Group placement properties
|
|
8166
|
-
afterPersistentId:
|
|
8167
|
-
parentPersistentId:
|
|
8188
|
+
afterPersistentId: z275.string().nullish(),
|
|
8189
|
+
parentPersistentId: z275.string()
|
|
8168
8190
|
});
|
|
8169
|
-
var DTOCreateDocumentationTabInput =
|
|
8191
|
+
var DTOCreateDocumentationTabInput = z275.object({
|
|
8170
8192
|
// New group persistent id
|
|
8171
|
-
persistentId:
|
|
8193
|
+
persistentId: z275.string(),
|
|
8172
8194
|
// If this is page, we will attempt to convert it to tab
|
|
8173
8195
|
// If this is tab group, we will add a new tab to it
|
|
8174
|
-
fromItemPersistentId:
|
|
8175
|
-
tabName:
|
|
8196
|
+
fromItemPersistentId: z275.string(),
|
|
8197
|
+
tabName: z275.string()
|
|
8176
8198
|
});
|
|
8177
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
8199
|
+
var DTODeleteDocumentationTabGroupInput = z275.object({
|
|
8178
8200
|
// Deleted group id
|
|
8179
|
-
id:
|
|
8201
|
+
id: z275.string()
|
|
8180
8202
|
});
|
|
8181
|
-
var DTODeleteDocumentationGroupInput =
|
|
8203
|
+
var DTODeleteDocumentationGroupInput = z275.object({
|
|
8182
8204
|
// Identifier
|
|
8183
|
-
id:
|
|
8205
|
+
id: z275.string(),
|
|
8184
8206
|
// Deletion options
|
|
8185
|
-
deleteSubtree:
|
|
8207
|
+
deleteSubtree: z275.boolean().default(false)
|
|
8186
8208
|
});
|
|
8187
8209
|
|
|
8188
8210
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8189
|
-
var SuccessPayload =
|
|
8190
|
-
success:
|
|
8211
|
+
var SuccessPayload = z276.object({
|
|
8212
|
+
success: z276.literal(true)
|
|
8191
8213
|
});
|
|
8192
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
8193
|
-
type:
|
|
8214
|
+
var DTODocumentationGroupCreateActionOutputV2 = z276.object({
|
|
8215
|
+
type: z276.literal("DocumentationGroupCreate"),
|
|
8194
8216
|
output: SuccessPayload
|
|
8195
8217
|
});
|
|
8196
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
8197
|
-
type:
|
|
8218
|
+
var DTODocumentationTabCreateActionOutputV2 = z276.object({
|
|
8219
|
+
type: z276.literal("DocumentationTabCreate"),
|
|
8198
8220
|
output: SuccessPayload
|
|
8199
8221
|
});
|
|
8200
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
8201
|
-
type:
|
|
8222
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z276.object({
|
|
8223
|
+
type: z276.literal("DocumentationGroupUpdate"),
|
|
8202
8224
|
output: SuccessPayload
|
|
8203
8225
|
});
|
|
8204
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
8205
|
-
type:
|
|
8226
|
+
var DTODocumentationGroupMoveActionOutputV2 = z276.object({
|
|
8227
|
+
type: z276.literal("DocumentationGroupMove"),
|
|
8206
8228
|
output: SuccessPayload
|
|
8207
8229
|
});
|
|
8208
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
8209
|
-
type:
|
|
8230
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z276.object({
|
|
8231
|
+
type: z276.literal("DocumentationGroupDuplicate"),
|
|
8210
8232
|
output: SuccessPayload
|
|
8211
8233
|
});
|
|
8212
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
8213
|
-
type:
|
|
8234
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z276.object({
|
|
8235
|
+
type: z276.literal("DocumentationGroupDelete"),
|
|
8214
8236
|
output: SuccessPayload
|
|
8215
8237
|
});
|
|
8216
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
8217
|
-
type:
|
|
8238
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z276.object({
|
|
8239
|
+
type: z276.literal("DocumentationTabGroupDelete"),
|
|
8218
8240
|
output: SuccessPayload
|
|
8219
8241
|
});
|
|
8220
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
8221
|
-
type:
|
|
8242
|
+
var DTODocumentationGroupCreateActionInputV2 = z276.object({
|
|
8243
|
+
type: z276.literal("DocumentationGroupCreate"),
|
|
8222
8244
|
input: DTOCreateDocumentationGroupInput
|
|
8223
8245
|
});
|
|
8224
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
8225
|
-
type:
|
|
8246
|
+
var DTODocumentationTabCreateActionInputV2 = z276.object({
|
|
8247
|
+
type: z276.literal("DocumentationTabCreate"),
|
|
8226
8248
|
input: DTOCreateDocumentationTabInput
|
|
8227
8249
|
});
|
|
8228
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
8229
|
-
type:
|
|
8250
|
+
var DTODocumentationGroupUpdateActionInputV2 = z276.object({
|
|
8251
|
+
type: z276.literal("DocumentationGroupUpdate"),
|
|
8230
8252
|
input: DTOUpdateDocumentationGroupInput
|
|
8231
8253
|
});
|
|
8232
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
8233
|
-
type:
|
|
8254
|
+
var DTODocumentationGroupMoveActionInputV2 = z276.object({
|
|
8255
|
+
type: z276.literal("DocumentationGroupMove"),
|
|
8234
8256
|
input: DTOMoveDocumentationGroupInput
|
|
8235
8257
|
});
|
|
8236
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
8237
|
-
type:
|
|
8258
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z276.object({
|
|
8259
|
+
type: z276.literal("DocumentationGroupDuplicate"),
|
|
8238
8260
|
input: DTODuplicateDocumentationGroupInput
|
|
8239
8261
|
});
|
|
8240
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
8241
|
-
type:
|
|
8262
|
+
var DTODocumentationGroupDeleteActionInputV2 = z276.object({
|
|
8263
|
+
type: z276.literal("DocumentationGroupDelete"),
|
|
8242
8264
|
input: DTODeleteDocumentationGroupInput
|
|
8243
8265
|
});
|
|
8244
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
8245
|
-
type:
|
|
8266
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z276.object({
|
|
8267
|
+
type: z276.literal("DocumentationTabGroupDelete"),
|
|
8246
8268
|
input: DTODeleteDocumentationTabGroupInput
|
|
8247
8269
|
});
|
|
8248
8270
|
|
|
8249
8271
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
8250
|
-
import { z as
|
|
8272
|
+
import { z as z278 } from "zod";
|
|
8251
8273
|
|
|
8252
8274
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
8253
|
-
import { z as
|
|
8254
|
-
var DocumentationColorV1 =
|
|
8255
|
-
aliasTo:
|
|
8256
|
-
value:
|
|
8275
|
+
import { z as z277 } from "zod";
|
|
8276
|
+
var DocumentationColorV1 = z277.object({
|
|
8277
|
+
aliasTo: z277.string().optional(),
|
|
8278
|
+
value: z277.string().optional()
|
|
8257
8279
|
});
|
|
8258
8280
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
8259
8281
|
foregroundColor: true,
|
|
@@ -8262,10 +8284,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
8262
8284
|
foregroundColor: DocumentationColorV1.optional(),
|
|
8263
8285
|
backgroundColor: DocumentationColorV1.optional()
|
|
8264
8286
|
});
|
|
8265
|
-
var DTODocumentationItemConfigurationV1 =
|
|
8266
|
-
showSidebar:
|
|
8267
|
-
isPrivate:
|
|
8268
|
-
isHidden:
|
|
8287
|
+
var DTODocumentationItemConfigurationV1 = z277.object({
|
|
8288
|
+
showSidebar: z277.boolean(),
|
|
8289
|
+
isPrivate: z277.boolean(),
|
|
8290
|
+
isHidden: z277.boolean(),
|
|
8269
8291
|
header: DTODocumentationItemHeaderV1
|
|
8270
8292
|
});
|
|
8271
8293
|
|
|
@@ -8279,145 +8301,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
8279
8301
|
data: true,
|
|
8280
8302
|
shortPersistentId: true
|
|
8281
8303
|
}).extend({
|
|
8282
|
-
title:
|
|
8283
|
-
isRoot:
|
|
8284
|
-
childrenIds:
|
|
8304
|
+
title: z278.string(),
|
|
8305
|
+
isRoot: z278.boolean(),
|
|
8306
|
+
childrenIds: z278.array(z278.string()),
|
|
8285
8307
|
groupBehavior: DocumentationGroupBehavior,
|
|
8286
|
-
shortPersistentId:
|
|
8287
|
-
type:
|
|
8308
|
+
shortPersistentId: z278.string(),
|
|
8309
|
+
type: z278.literal("Group")
|
|
8288
8310
|
});
|
|
8289
8311
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
8290
8312
|
configuration: DTODocumentationItemConfigurationV1
|
|
8291
8313
|
});
|
|
8292
8314
|
|
|
8293
8315
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
8294
|
-
import { z as
|
|
8295
|
-
var DTODocumentationHierarchyV2 =
|
|
8296
|
-
pages:
|
|
8316
|
+
import { z as z279 } from "zod";
|
|
8317
|
+
var DTODocumentationHierarchyV2 = z279.object({
|
|
8318
|
+
pages: z279.array(
|
|
8297
8319
|
DTODocumentationPageV2.extend({
|
|
8298
8320
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8299
8321
|
draftState: DTODocumentationDraftState.optional()
|
|
8300
8322
|
})
|
|
8301
8323
|
),
|
|
8302
|
-
groups:
|
|
8324
|
+
groups: z279.array(
|
|
8303
8325
|
DTODocumentationGroupV2.extend({
|
|
8304
8326
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8305
8327
|
draftState: DTODocumentationDraftState.optional()
|
|
8306
8328
|
})
|
|
8307
8329
|
),
|
|
8308
8330
|
/** True if the documentation was already published, false otherwise. */
|
|
8309
|
-
hasPublishedDocumentationContent:
|
|
8331
|
+
hasPublishedDocumentationContent: z279.boolean()
|
|
8310
8332
|
});
|
|
8311
8333
|
|
|
8312
8334
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
8313
|
-
import { z as
|
|
8314
|
-
var SuccessPayload2 =
|
|
8315
|
-
success:
|
|
8335
|
+
import { z as z280 } from "zod";
|
|
8336
|
+
var SuccessPayload2 = z280.object({
|
|
8337
|
+
success: z280.literal(true)
|
|
8316
8338
|
});
|
|
8317
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
8318
|
-
type:
|
|
8339
|
+
var DTODocumentationPageCreateActionOutputV2 = z280.object({
|
|
8340
|
+
type: z280.literal("DocumentationPageCreate"),
|
|
8319
8341
|
output: SuccessPayload2
|
|
8320
8342
|
});
|
|
8321
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
8322
|
-
type:
|
|
8343
|
+
var DTODocumentationPageUpdateActionOutputV2 = z280.object({
|
|
8344
|
+
type: z280.literal("DocumentationPageUpdate"),
|
|
8323
8345
|
output: SuccessPayload2
|
|
8324
8346
|
});
|
|
8325
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
8326
|
-
type:
|
|
8347
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z280.object({
|
|
8348
|
+
type: z280.literal("DocumentationPageUpdateDocument"),
|
|
8327
8349
|
output: SuccessPayload2
|
|
8328
8350
|
});
|
|
8329
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
8330
|
-
type:
|
|
8351
|
+
var DTODocumentationPageMoveActionOutputV2 = z280.object({
|
|
8352
|
+
type: z280.literal("DocumentationPageMove"),
|
|
8331
8353
|
output: SuccessPayload2
|
|
8332
8354
|
});
|
|
8333
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
8334
|
-
type:
|
|
8355
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z280.object({
|
|
8356
|
+
type: z280.literal("DocumentationPageDuplicate"),
|
|
8335
8357
|
output: SuccessPayload2
|
|
8336
8358
|
});
|
|
8337
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
8338
|
-
type:
|
|
8359
|
+
var DTODocumentationPageDeleteActionOutputV2 = z280.object({
|
|
8360
|
+
type: z280.literal("DocumentationPageDelete"),
|
|
8339
8361
|
output: SuccessPayload2
|
|
8340
8362
|
});
|
|
8341
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
8342
|
-
type:
|
|
8363
|
+
var DTODocumentationPageRestoreActionOutput = z280.object({
|
|
8364
|
+
type: z280.literal("DocumentationPageRestore"),
|
|
8343
8365
|
output: SuccessPayload2
|
|
8344
8366
|
});
|
|
8345
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
8346
|
-
type:
|
|
8367
|
+
var DTODocumentationGroupRestoreActionOutput = z280.object({
|
|
8368
|
+
type: z280.literal("DocumentationGroupRestore"),
|
|
8347
8369
|
output: SuccessPayload2
|
|
8348
8370
|
});
|
|
8349
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
8350
|
-
type:
|
|
8371
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z280.object({
|
|
8372
|
+
type: z280.literal("DocumentationPageApprovalStateChange"),
|
|
8351
8373
|
output: SuccessPayload2
|
|
8352
8374
|
});
|
|
8353
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
8354
|
-
type:
|
|
8375
|
+
var DTODocumentationPageCreateActionInputV2 = z280.object({
|
|
8376
|
+
type: z280.literal("DocumentationPageCreate"),
|
|
8355
8377
|
input: DTOCreateDocumentationPageInputV2
|
|
8356
8378
|
});
|
|
8357
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
8358
|
-
type:
|
|
8379
|
+
var DTODocumentationPageUpdateActionInputV2 = z280.object({
|
|
8380
|
+
type: z280.literal("DocumentationPageUpdate"),
|
|
8359
8381
|
input: DTOUpdateDocumentationPageInputV2
|
|
8360
8382
|
});
|
|
8361
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
8362
|
-
type:
|
|
8383
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z280.object({
|
|
8384
|
+
type: z280.literal("DocumentationPageUpdateDocument"),
|
|
8363
8385
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
8364
8386
|
});
|
|
8365
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
8366
|
-
type:
|
|
8387
|
+
var DTODocumentationPageMoveActionInputV2 = z280.object({
|
|
8388
|
+
type: z280.literal("DocumentationPageMove"),
|
|
8367
8389
|
input: DTOMoveDocumentationPageInputV2
|
|
8368
8390
|
});
|
|
8369
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
8370
|
-
type:
|
|
8391
|
+
var DTODocumentationPageDuplicateActionInputV2 = z280.object({
|
|
8392
|
+
type: z280.literal("DocumentationPageDuplicate"),
|
|
8371
8393
|
input: DTODuplicateDocumentationPageInputV2
|
|
8372
8394
|
});
|
|
8373
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
8374
|
-
type:
|
|
8395
|
+
var DTODocumentationPageDeleteActionInputV2 = z280.object({
|
|
8396
|
+
type: z280.literal("DocumentationPageDelete"),
|
|
8375
8397
|
input: DTODeleteDocumentationPageInputV2
|
|
8376
8398
|
});
|
|
8377
|
-
var DTODocumentationPageRestoreActionInput =
|
|
8378
|
-
type:
|
|
8399
|
+
var DTODocumentationPageRestoreActionInput = z280.object({
|
|
8400
|
+
type: z280.literal("DocumentationPageRestore"),
|
|
8379
8401
|
input: DTORestoreDocumentationPageInput
|
|
8380
8402
|
});
|
|
8381
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
8382
|
-
type:
|
|
8403
|
+
var DTODocumentationGroupRestoreActionInput = z280.object({
|
|
8404
|
+
type: z280.literal("DocumentationGroupRestore"),
|
|
8383
8405
|
input: DTORestoreDocumentationGroupInput
|
|
8384
8406
|
});
|
|
8385
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
8386
|
-
type:
|
|
8407
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z280.object({
|
|
8408
|
+
type: z280.literal("DocumentationPageApprovalStateChange"),
|
|
8387
8409
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
8388
8410
|
});
|
|
8389
8411
|
|
|
8390
8412
|
// src/api/dto/elements/documentation/page-content.ts
|
|
8391
|
-
import { z as
|
|
8413
|
+
import { z as z281 } from "zod";
|
|
8392
8414
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
8393
|
-
var DTODocumentationPageContentGetResponse =
|
|
8415
|
+
var DTODocumentationPageContentGetResponse = z281.object({
|
|
8394
8416
|
pageContent: DTODocumentationPageContent
|
|
8395
8417
|
});
|
|
8396
8418
|
|
|
8397
8419
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
8398
|
-
import { z as
|
|
8399
|
-
var DTODocumentationPageDependencies =
|
|
8400
|
-
id:
|
|
8401
|
-
designSystemVersionId:
|
|
8402
|
-
createdAt:
|
|
8403
|
-
updatedAt:
|
|
8404
|
-
documentationPageId:
|
|
8405
|
-
tokenPersistentIds:
|
|
8406
|
-
figmaComponentPersistentIds:
|
|
8407
|
-
componentPersistentIds:
|
|
8408
|
-
figmaNodePersistentIds:
|
|
8409
|
-
groupPersistentIds:
|
|
8410
|
-
propertyPersistentIds:
|
|
8411
|
-
themePersistentIds:
|
|
8412
|
-
documentationPagePersistentIds:
|
|
8413
|
-
storybookEntriesStoryIds:
|
|
8414
|
-
});
|
|
8415
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
8416
|
-
dependencies:
|
|
8420
|
+
import { z as z282 } from "zod";
|
|
8421
|
+
var DTODocumentationPageDependencies = z282.object({
|
|
8422
|
+
id: z282.string(),
|
|
8423
|
+
designSystemVersionId: z282.string(),
|
|
8424
|
+
createdAt: z282.coerce.date(),
|
|
8425
|
+
updatedAt: z282.coerce.date(),
|
|
8426
|
+
documentationPageId: z282.string(),
|
|
8427
|
+
tokenPersistentIds: z282.array(z282.string()),
|
|
8428
|
+
figmaComponentPersistentIds: z282.array(z282.string()),
|
|
8429
|
+
componentPersistentIds: z282.array(z282.string()),
|
|
8430
|
+
figmaNodePersistentIds: z282.array(z282.string()),
|
|
8431
|
+
groupPersistentIds: z282.array(z282.string()),
|
|
8432
|
+
propertyPersistentIds: z282.array(z282.string()),
|
|
8433
|
+
themePersistentIds: z282.array(z282.string()),
|
|
8434
|
+
documentationPagePersistentIds: z282.array(z282.string()),
|
|
8435
|
+
storybookEntriesStoryIds: z282.array(z282.string())
|
|
8436
|
+
});
|
|
8437
|
+
var DTODocumentationPageDependenciesGetResponse = z282.object({
|
|
8438
|
+
dependencies: z282.array(DTODocumentationPageDependencies)
|
|
8417
8439
|
});
|
|
8418
8440
|
|
|
8419
8441
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
8420
|
-
import { z as
|
|
8442
|
+
import { z as z283 } from "zod";
|
|
8421
8443
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
8422
8444
|
data: true,
|
|
8423
8445
|
meta: true,
|
|
@@ -8425,81 +8447,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
8425
8447
|
sortOrder: true
|
|
8426
8448
|
}).extend({
|
|
8427
8449
|
configuration: DTODocumentationItemConfigurationV1,
|
|
8428
|
-
blocks:
|
|
8429
|
-
title:
|
|
8430
|
-
path:
|
|
8450
|
+
blocks: z283.array(PageBlockV1),
|
|
8451
|
+
title: z283.string(),
|
|
8452
|
+
path: z283.string()
|
|
8431
8453
|
});
|
|
8432
8454
|
|
|
8433
8455
|
// src/api/dto/elements/documentation/settings.ts
|
|
8434
|
-
import { z as
|
|
8435
|
-
var DTODocumentationSettings =
|
|
8436
|
-
isDraftFeatureAdopted:
|
|
8437
|
-
isApprovalsFeatureEnabled:
|
|
8438
|
-
isApprovalRequiredForPublishing:
|
|
8456
|
+
import { z as z284 } from "zod";
|
|
8457
|
+
var DTODocumentationSettings = z284.object({
|
|
8458
|
+
isDraftFeatureAdopted: z284.boolean(),
|
|
8459
|
+
isApprovalsFeatureEnabled: z284.boolean(),
|
|
8460
|
+
isApprovalRequiredForPublishing: z284.boolean()
|
|
8439
8461
|
});
|
|
8440
8462
|
|
|
8441
8463
|
// src/api/dto/elements/documentation/structure.ts
|
|
8442
|
-
import { z as
|
|
8443
|
-
var DTODocumentationStructureItemType =
|
|
8444
|
-
var DTODocumentationStructureItemBase =
|
|
8464
|
+
import { z as z285 } from "zod";
|
|
8465
|
+
var DTODocumentationStructureItemType = z285.enum(["Group", "Page"]);
|
|
8466
|
+
var DTODocumentationStructureItemBase = z285.object({
|
|
8445
8467
|
type: DTODocumentationStructureItemType,
|
|
8446
|
-
id:
|
|
8447
|
-
designSystemVersionId:
|
|
8448
|
-
shortPersistentId:
|
|
8449
|
-
persistentId:
|
|
8450
|
-
title:
|
|
8451
|
-
createdAt:
|
|
8452
|
-
updatedAt:
|
|
8468
|
+
id: z285.string(),
|
|
8469
|
+
designSystemVersionId: z285.string(),
|
|
8470
|
+
shortPersistentId: z285.string(),
|
|
8471
|
+
persistentId: z285.string(),
|
|
8472
|
+
title: z285.string(),
|
|
8473
|
+
createdAt: z285.coerce.date(),
|
|
8474
|
+
updatedAt: z285.coerce.date()
|
|
8453
8475
|
});
|
|
8454
8476
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
8455
|
-
type:
|
|
8456
|
-
groupBehavior:
|
|
8457
|
-
childrenIds:
|
|
8458
|
-
isRoot:
|
|
8477
|
+
type: z285.literal(DTODocumentationStructureItemType.enum.Group),
|
|
8478
|
+
groupBehavior: z285.string(),
|
|
8479
|
+
childrenIds: z285.string().array(),
|
|
8480
|
+
isRoot: z285.boolean()
|
|
8459
8481
|
});
|
|
8460
8482
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
8461
|
-
type:
|
|
8462
|
-
path:
|
|
8483
|
+
type: z285.literal(DTODocumentationStructureItemType.enum.Page),
|
|
8484
|
+
path: z285.string()
|
|
8463
8485
|
});
|
|
8464
|
-
var DTODocumentationStructureItem =
|
|
8486
|
+
var DTODocumentationStructureItem = z285.discriminatedUnion("type", [
|
|
8465
8487
|
DTODocumentationStructureGroupItem,
|
|
8466
8488
|
DTODocumentationStructurePageItem
|
|
8467
8489
|
]);
|
|
8468
|
-
var DTODocumentationStructure =
|
|
8469
|
-
items:
|
|
8490
|
+
var DTODocumentationStructure = z285.object({
|
|
8491
|
+
items: z285.array(DTODocumentationStructureItem)
|
|
8470
8492
|
});
|
|
8471
8493
|
|
|
8472
8494
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
8473
|
-
import { z as
|
|
8474
|
-
var DTOFigmaNodeStructure =
|
|
8475
|
-
id:
|
|
8476
|
-
sourceId:
|
|
8495
|
+
import { z as z286 } from "zod";
|
|
8496
|
+
var DTOFigmaNodeStructure = z286.object({
|
|
8497
|
+
id: z286.string(),
|
|
8498
|
+
sourceId: z286.string(),
|
|
8477
8499
|
importState: FigmaNodeStructureStateV2,
|
|
8478
|
-
createdAt:
|
|
8479
|
-
updatedAt:
|
|
8500
|
+
createdAt: z286.coerce.date(),
|
|
8501
|
+
updatedAt: z286.coerce.date()
|
|
8480
8502
|
});
|
|
8481
8503
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
8482
8504
|
rootNode: FigmaFileStructureNode
|
|
8483
8505
|
});
|
|
8484
|
-
var DTOFigmaNodeStructureListResponse =
|
|
8506
|
+
var DTOFigmaNodeStructureListResponse = z286.object({
|
|
8485
8507
|
structures: DTOFigmaNodeStructure.array()
|
|
8486
8508
|
});
|
|
8487
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
8509
|
+
var DTOFigmaNodeStructureDetailResponse = z286.object({
|
|
8488
8510
|
structure: DTOFigmaNodeStructureDetail
|
|
8489
8511
|
});
|
|
8490
8512
|
|
|
8491
8513
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8492
|
-
import { z as
|
|
8514
|
+
import { z as z288 } from "zod";
|
|
8493
8515
|
|
|
8494
8516
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
8495
|
-
import { z as
|
|
8517
|
+
import { z as z287 } from "zod";
|
|
8496
8518
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
8497
|
-
var DTOFigmaNodeOrigin =
|
|
8498
|
-
sourceId:
|
|
8499
|
-
fileId:
|
|
8500
|
-
parentName:
|
|
8519
|
+
var DTOFigmaNodeOrigin = z287.object({
|
|
8520
|
+
sourceId: z287.string(),
|
|
8521
|
+
fileId: z287.string().optional(),
|
|
8522
|
+
parentName: z287.string().optional()
|
|
8501
8523
|
});
|
|
8502
|
-
var DTOFigmaNodeRenderInputBase =
|
|
8524
|
+
var DTOFigmaNodeRenderInputBase = z287.object({
|
|
8503
8525
|
/**
|
|
8504
8526
|
* Format in which the node must be rendered, png by default.
|
|
8505
8527
|
*/
|
|
@@ -8507,57 +8529,57 @@ var DTOFigmaNodeRenderInputBase = z286.object({
|
|
|
8507
8529
|
/**
|
|
8508
8530
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
8509
8531
|
*/
|
|
8510
|
-
scale:
|
|
8532
|
+
scale: z287.number().optional()
|
|
8511
8533
|
});
|
|
8512
8534
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8513
|
-
inputType:
|
|
8535
|
+
inputType: z287.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
8514
8536
|
/**
|
|
8515
8537
|
* Id of a design system's data source representing a linked Figma file
|
|
8516
8538
|
*/
|
|
8517
|
-
sourceId:
|
|
8539
|
+
sourceId: z287.string(),
|
|
8518
8540
|
/**
|
|
8519
8541
|
* Id of a node within the Figma file
|
|
8520
8542
|
*/
|
|
8521
|
-
figmaFileNodeId:
|
|
8543
|
+
figmaFileNodeId: z287.string()
|
|
8522
8544
|
});
|
|
8523
8545
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8524
|
-
inputType:
|
|
8546
|
+
inputType: z287.literal("URL"),
|
|
8525
8547
|
/**
|
|
8526
8548
|
* Id of a design system's data source representing a linked Figma file
|
|
8527
8549
|
*/
|
|
8528
|
-
figmaNodeUrl:
|
|
8550
|
+
figmaNodeUrl: z287.string(),
|
|
8529
8551
|
/**
|
|
8530
8552
|
* Brand persistent id to use in case a source has to be created for this render
|
|
8531
8553
|
*/
|
|
8532
|
-
brandPersistentId:
|
|
8554
|
+
brandPersistentId: z287.string()
|
|
8533
8555
|
});
|
|
8534
|
-
var DTOFigmaNodeRerenderInput =
|
|
8535
|
-
inputType:
|
|
8556
|
+
var DTOFigmaNodeRerenderInput = z287.object({
|
|
8557
|
+
inputType: z287.literal("Rerender"),
|
|
8536
8558
|
/**
|
|
8537
8559
|
* Persistent ID of an existing Figma node
|
|
8538
8560
|
*/
|
|
8539
|
-
figmaNodePersistentId:
|
|
8561
|
+
figmaNodePersistentId: z287.string()
|
|
8540
8562
|
});
|
|
8541
|
-
var DTOFigmaNodeRenderInput =
|
|
8563
|
+
var DTOFigmaNodeRenderInput = z287.discriminatedUnion("inputType", [
|
|
8542
8564
|
DTOFigmaNodeRenderIdInput,
|
|
8543
8565
|
DTOFigmaNodeRenderUrlInput,
|
|
8544
8566
|
DTOFigmaNodeRerenderInput
|
|
8545
8567
|
]);
|
|
8546
8568
|
|
|
8547
8569
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8548
|
-
var DTOFigmaNodeData =
|
|
8570
|
+
var DTOFigmaNodeData = z288.object({
|
|
8549
8571
|
// Id of the node in the Figma file
|
|
8550
|
-
figmaNodeId:
|
|
8572
|
+
figmaNodeId: z288.string(),
|
|
8551
8573
|
// Validity
|
|
8552
|
-
isValid:
|
|
8574
|
+
isValid: z288.boolean(),
|
|
8553
8575
|
// Asset data
|
|
8554
|
-
assetId:
|
|
8555
|
-
assetUrl:
|
|
8576
|
+
assetId: z288.string(),
|
|
8577
|
+
assetUrl: z288.string(),
|
|
8556
8578
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
8557
8579
|
// Asset metadata
|
|
8558
|
-
assetScale:
|
|
8559
|
-
assetWidth:
|
|
8560
|
-
assetHeight:
|
|
8580
|
+
assetScale: z288.number(),
|
|
8581
|
+
assetWidth: z288.number().optional(),
|
|
8582
|
+
assetHeight: z288.number().optional()
|
|
8561
8583
|
});
|
|
8562
8584
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
8563
8585
|
data: true,
|
|
@@ -8568,15 +8590,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
8568
8590
|
});
|
|
8569
8591
|
|
|
8570
8592
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
8571
|
-
import { z as
|
|
8572
|
-
var DTOFigmaNodeDataV2 =
|
|
8573
|
-
sceneNodeId:
|
|
8593
|
+
import { z as z289 } from "zod";
|
|
8594
|
+
var DTOFigmaNodeDataV2 = z289.object({
|
|
8595
|
+
sceneNodeId: z289.string(),
|
|
8574
8596
|
format: FigmaNodeRenderFormat,
|
|
8575
|
-
scale:
|
|
8597
|
+
scale: z289.number().optional(),
|
|
8576
8598
|
renderState: FigmaNodeRenderState,
|
|
8577
8599
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
8578
8600
|
renderError: FigmaNodeRenderError.optional(),
|
|
8579
|
-
hasSource:
|
|
8601
|
+
hasSource: z289.boolean()
|
|
8580
8602
|
});
|
|
8581
8603
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
8582
8604
|
data: true,
|
|
@@ -8587,113 +8609,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
8587
8609
|
});
|
|
8588
8610
|
|
|
8589
8611
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
8590
|
-
import { z as
|
|
8591
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
8592
|
-
type:
|
|
8593
|
-
figmaNodes:
|
|
8612
|
+
import { z as z290 } from "zod";
|
|
8613
|
+
var DTOFigmaNodeRenderActionOutput = z290.object({
|
|
8614
|
+
type: z290.literal("FigmaNodeRender"),
|
|
8615
|
+
figmaNodes: z290.array(DTOFigmaNode)
|
|
8594
8616
|
});
|
|
8595
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
8596
|
-
type:
|
|
8597
|
-
figmaNodes:
|
|
8617
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z290.object({
|
|
8618
|
+
type: z290.literal("FigmaNodeRenderAsync"),
|
|
8619
|
+
figmaNodes: z290.array(DTOFigmaNodeV2)
|
|
8598
8620
|
});
|
|
8599
|
-
var DTOFigmaNodeRenderActionInput =
|
|
8600
|
-
type:
|
|
8621
|
+
var DTOFigmaNodeRenderActionInput = z290.object({
|
|
8622
|
+
type: z290.literal("FigmaNodeRender"),
|
|
8601
8623
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
8602
8624
|
});
|
|
8603
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
8604
|
-
type:
|
|
8625
|
+
var DTOFigmaNodeRenderAsyncActionInput = z290.object({
|
|
8626
|
+
type: z290.literal("FigmaNodeRenderAsync"),
|
|
8605
8627
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
8606
8628
|
});
|
|
8607
8629
|
|
|
8608
8630
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8609
|
-
import { z as
|
|
8610
|
-
var DTOFrameNodeStructure =
|
|
8611
|
-
id:
|
|
8612
|
-
persistentId:
|
|
8613
|
-
designSystemVersionId:
|
|
8631
|
+
import { z as z291 } from "zod";
|
|
8632
|
+
var DTOFrameNodeStructure = z291.object({
|
|
8633
|
+
id: z291.string(),
|
|
8634
|
+
persistentId: z291.string(),
|
|
8635
|
+
designSystemVersionId: z291.string(),
|
|
8614
8636
|
origin: FigmaFileStructureOrigin,
|
|
8615
8637
|
assetsInFile: FigmaFileStructureStatistics
|
|
8616
8638
|
});
|
|
8617
|
-
var DTOFrameNodeStructureListResponse =
|
|
8639
|
+
var DTOFrameNodeStructureListResponse = z291.object({
|
|
8618
8640
|
structures: DTOFrameNodeStructure.array()
|
|
8619
8641
|
});
|
|
8620
8642
|
|
|
8621
8643
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8622
|
-
import { z as
|
|
8644
|
+
import { z as z292 } from "zod";
|
|
8623
8645
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8624
|
-
var DTOElementPropertyDefinitionOption =
|
|
8625
|
-
id:
|
|
8626
|
-
name:
|
|
8646
|
+
var DTOElementPropertyDefinitionOption = z292.object({
|
|
8647
|
+
id: z292.string(),
|
|
8648
|
+
name: z292.string(),
|
|
8627
8649
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8628
8650
|
});
|
|
8629
|
-
var DTOElementPropertyDefinition =
|
|
8630
|
-
id:
|
|
8631
|
-
designSystemVersionId:
|
|
8651
|
+
var DTOElementPropertyDefinition = z292.object({
|
|
8652
|
+
id: z292.string(),
|
|
8653
|
+
designSystemVersionId: z292.string(),
|
|
8632
8654
|
meta: DTOObjectMeta,
|
|
8633
|
-
persistentId:
|
|
8655
|
+
persistentId: z292.string(),
|
|
8634
8656
|
type: ElementPropertyTypeSchema,
|
|
8635
8657
|
targetElementType: ElementPropertyTargetType,
|
|
8636
|
-
codeName:
|
|
8637
|
-
options: nullishToOptional(
|
|
8658
|
+
codeName: z292.string().regex(CODE_NAME_REGEX2),
|
|
8659
|
+
options: nullishToOptional(z292.array(DTOElementPropertyDefinitionOption)),
|
|
8638
8660
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8639
|
-
isImmutable:
|
|
8661
|
+
isImmutable: z292.boolean(),
|
|
8640
8662
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8641
8663
|
});
|
|
8642
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8643
|
-
definitions:
|
|
8664
|
+
var DTOElementPropertyDefinitionListResponse = z292.object({
|
|
8665
|
+
definitions: z292.array(DTOElementPropertyDefinition)
|
|
8644
8666
|
});
|
|
8645
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8667
|
+
var DTOElementPropertyDefinitionResponse = z292.object({
|
|
8646
8668
|
definition: DTOElementPropertyDefinition
|
|
8647
8669
|
});
|
|
8648
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8670
|
+
var DTOElementPropertyDefinitionCreatePayload = z292.object({
|
|
8649
8671
|
meta: DTOObjectMeta,
|
|
8650
|
-
persistentId:
|
|
8672
|
+
persistentId: z292.string(),
|
|
8651
8673
|
type: ElementPropertyTypeSchema,
|
|
8652
8674
|
targetElementType: ElementPropertyTargetType,
|
|
8653
|
-
codeName:
|
|
8654
|
-
options: nullishToOptional(
|
|
8675
|
+
codeName: z292.string().regex(CODE_NAME_REGEX2),
|
|
8676
|
+
options: nullishToOptional(z292.array(DTOElementPropertyDefinitionOption)),
|
|
8655
8677
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8656
|
-
columnWidth:
|
|
8678
|
+
columnWidth: z292.number().max(1024).optional()
|
|
8657
8679
|
});
|
|
8658
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8680
|
+
var DTOElementPropertyDefinitionUpdatePayload = z292.object({
|
|
8659
8681
|
meta: DTOObjectMeta.optional(),
|
|
8660
|
-
codeName:
|
|
8661
|
-
options:
|
|
8682
|
+
codeName: z292.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8683
|
+
options: z292.array(DTOElementPropertyDefinitionOption).optional()
|
|
8662
8684
|
});
|
|
8663
8685
|
|
|
8664
8686
|
// src/api/dto/elements/properties/property-values.ts
|
|
8665
|
-
import { z as
|
|
8666
|
-
var DTOElementPropertyValue =
|
|
8667
|
-
id:
|
|
8668
|
-
designSystemVersionId:
|
|
8669
|
-
definitionId:
|
|
8670
|
-
targetElementId:
|
|
8671
|
-
value:
|
|
8672
|
-
valuePreview:
|
|
8673
|
-
});
|
|
8674
|
-
var DTOElementPropertyValueListResponse =
|
|
8675
|
-
values:
|
|
8676
|
-
});
|
|
8677
|
-
var DTOElementPropertyValueResponse =
|
|
8687
|
+
import { z as z293 } from "zod";
|
|
8688
|
+
var DTOElementPropertyValue = z293.object({
|
|
8689
|
+
id: z293.string(),
|
|
8690
|
+
designSystemVersionId: z293.string(),
|
|
8691
|
+
definitionId: z293.string(),
|
|
8692
|
+
targetElementId: z293.string(),
|
|
8693
|
+
value: z293.union([z293.string(), z293.number(), z293.boolean()]).optional(),
|
|
8694
|
+
valuePreview: z293.string().optional()
|
|
8695
|
+
});
|
|
8696
|
+
var DTOElementPropertyValueListResponse = z293.object({
|
|
8697
|
+
values: z293.array(DTOElementPropertyValue)
|
|
8698
|
+
});
|
|
8699
|
+
var DTOElementPropertyValueResponse = z293.object({
|
|
8678
8700
|
value: DTOElementPropertyValue
|
|
8679
8701
|
});
|
|
8680
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8681
|
-
type:
|
|
8682
|
-
output:
|
|
8702
|
+
var DTOElementPropertyValuesEditActionOutput = z293.object({
|
|
8703
|
+
type: z293.literal("ElementPropertyValuesEdit"),
|
|
8704
|
+
output: z293.object({ success: z293.literal(true) })
|
|
8683
8705
|
});
|
|
8684
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8685
|
-
definitionId:
|
|
8686
|
-
targetElementId:
|
|
8687
|
-
value:
|
|
8706
|
+
var DTOElementPropertyValueUpsertPaylod = z293.object({
|
|
8707
|
+
definitionId: z293.string(),
|
|
8708
|
+
targetElementId: z293.string(),
|
|
8709
|
+
value: z293.string().or(z293.number()).or(z293.boolean()).nullable()
|
|
8688
8710
|
});
|
|
8689
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8690
|
-
type:
|
|
8711
|
+
var DTOElementPropertyValuesEditActionInput = z293.object({
|
|
8712
|
+
type: z293.literal("ElementPropertyValuesEdit"),
|
|
8691
8713
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8692
8714
|
});
|
|
8693
8715
|
|
|
8694
8716
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8695
|
-
import { z as
|
|
8696
|
-
var DTOElementActionOutput =
|
|
8717
|
+
import { z as z294 } from "zod";
|
|
8718
|
+
var DTOElementActionOutput = z294.discriminatedUnion("type", [
|
|
8697
8719
|
// Documentation pages
|
|
8698
8720
|
DTODocumentationPageCreateActionOutputV2,
|
|
8699
8721
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8720,7 +8742,7 @@ var DTOElementActionOutput = z293.discriminatedUnion("type", [
|
|
|
8720
8742
|
// Element properties
|
|
8721
8743
|
DTOElementPropertyValuesEditActionOutput
|
|
8722
8744
|
]);
|
|
8723
|
-
var DTOElementActionInput =
|
|
8745
|
+
var DTOElementActionInput = z294.discriminatedUnion("type", [
|
|
8724
8746
|
// Documentation pages
|
|
8725
8747
|
DTODocumentationPageCreateActionInputV2,
|
|
8726
8748
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8747,78 +8769,78 @@ var DTOElementActionInput = z293.discriminatedUnion("type", [
|
|
|
8747
8769
|
// Element properties
|
|
8748
8770
|
DTOElementPropertyValuesEditActionInput
|
|
8749
8771
|
]).and(
|
|
8750
|
-
|
|
8751
|
-
tId:
|
|
8772
|
+
z294.object({
|
|
8773
|
+
tId: z294.string().optional()
|
|
8752
8774
|
})
|
|
8753
8775
|
);
|
|
8754
8776
|
|
|
8755
8777
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8756
|
-
import { z as
|
|
8757
|
-
var DTOElementsGetTypeFilter =
|
|
8758
|
-
var DTOElementsGetQuerySchema =
|
|
8759
|
-
types:
|
|
8760
|
-
responseVersion:
|
|
8778
|
+
import { z as z295 } from "zod";
|
|
8779
|
+
var DTOElementsGetTypeFilter = z295.enum(["FigmaNode"]);
|
|
8780
|
+
var DTOElementsGetQuerySchema = z295.object({
|
|
8781
|
+
types: z295.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8782
|
+
responseVersion: z295.coerce.number().default(1)
|
|
8761
8783
|
});
|
|
8762
|
-
var DTOElementsGetOutput =
|
|
8763
|
-
figmaNodes:
|
|
8784
|
+
var DTOElementsGetOutput = z295.object({
|
|
8785
|
+
figmaNodes: z295.array(DTOFigmaNode).optional()
|
|
8764
8786
|
});
|
|
8765
|
-
var DTOElementsGetOutputV2 =
|
|
8766
|
-
figmaNodes:
|
|
8787
|
+
var DTOElementsGetOutputV2 = z295.object({
|
|
8788
|
+
figmaNodes: z295.array(DTOFigmaNodeV2).optional()
|
|
8767
8789
|
});
|
|
8768
8790
|
|
|
8769
8791
|
// src/api/dto/figma-components/assets/download.ts
|
|
8770
|
-
import { z as
|
|
8771
|
-
var DTOAssetRenderConfiguration =
|
|
8772
|
-
prefix:
|
|
8773
|
-
suffix:
|
|
8774
|
-
scale:
|
|
8775
|
-
format:
|
|
8776
|
-
});
|
|
8777
|
-
var DTORenderedAssetFile =
|
|
8778
|
-
assetId:
|
|
8779
|
-
fileName:
|
|
8780
|
-
sourceUrl:
|
|
8792
|
+
import { z as z296 } from "zod";
|
|
8793
|
+
var DTOAssetRenderConfiguration = z296.object({
|
|
8794
|
+
prefix: z296.string().optional(),
|
|
8795
|
+
suffix: z296.string().optional(),
|
|
8796
|
+
scale: z296.enum(["x1", "x2", "x3", "x4"]),
|
|
8797
|
+
format: z296.enum(["png", "pdf", "svg"])
|
|
8798
|
+
});
|
|
8799
|
+
var DTORenderedAssetFile = z296.object({
|
|
8800
|
+
assetId: z296.string(),
|
|
8801
|
+
fileName: z296.string(),
|
|
8802
|
+
sourceUrl: z296.string(),
|
|
8781
8803
|
settings: DTOAssetRenderConfiguration,
|
|
8782
|
-
originalName:
|
|
8804
|
+
originalName: z296.string()
|
|
8783
8805
|
});
|
|
8784
|
-
var DTODownloadAssetsRequest =
|
|
8785
|
-
persistentIds:
|
|
8806
|
+
var DTODownloadAssetsRequest = z296.object({
|
|
8807
|
+
persistentIds: z296.array(z296.string().uuid()).optional(),
|
|
8786
8808
|
settings: DTOAssetRenderConfiguration.array()
|
|
8787
8809
|
});
|
|
8788
|
-
var DTODownloadAssetsResponse =
|
|
8810
|
+
var DTODownloadAssetsResponse = z296.object({
|
|
8789
8811
|
items: DTORenderedAssetFile.array()
|
|
8790
8812
|
});
|
|
8791
8813
|
|
|
8792
8814
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
8793
|
-
import { z as
|
|
8794
|
-
var DTOFigmaNodeResponse =
|
|
8815
|
+
import { z as z297 } from "zod";
|
|
8816
|
+
var DTOFigmaNodeResponse = z297.object({
|
|
8795
8817
|
nodes: FigmaExporterAnyDesignNodeSchema
|
|
8796
8818
|
});
|
|
8797
8819
|
|
|
8798
8820
|
// src/api/dto/forge/agent.ts
|
|
8799
|
-
import { z as
|
|
8821
|
+
import { z as z298 } from "zod";
|
|
8800
8822
|
var DTOForgeAgent = ForgeAgent;
|
|
8801
8823
|
var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
|
|
8802
8824
|
var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
|
|
8803
|
-
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id:
|
|
8804
|
-
var DTOCreateForgeAgentResponse =
|
|
8825
|
+
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z298.string() });
|
|
8826
|
+
var DTOCreateForgeAgentResponse = z298.object({
|
|
8805
8827
|
agent: DTOForgeAgent
|
|
8806
8828
|
});
|
|
8807
|
-
var DTOUGetForgeAgentResponse =
|
|
8829
|
+
var DTOUGetForgeAgentResponse = z298.object({
|
|
8808
8830
|
agent: DTOForgeAgent.nullable()
|
|
8809
8831
|
});
|
|
8810
|
-
var DTOUpdateForgeAgentResponse =
|
|
8832
|
+
var DTOUpdateForgeAgentResponse = z298.object({
|
|
8811
8833
|
agent: DTOForgeAgent.nullable()
|
|
8812
8834
|
});
|
|
8813
|
-
var DTOForgeAgentsListResponse =
|
|
8814
|
-
agents:
|
|
8835
|
+
var DTOForgeAgentsListResponse = z298.object({
|
|
8836
|
+
agents: z298.array(DTOForgeAgent)
|
|
8815
8837
|
});
|
|
8816
|
-
var DTODeleteForgeAgentResponse =
|
|
8817
|
-
ok:
|
|
8838
|
+
var DTODeleteForgeAgentResponse = z298.object({
|
|
8839
|
+
ok: z298.literal(true)
|
|
8818
8840
|
});
|
|
8819
8841
|
|
|
8820
8842
|
// src/api/dto/forge/artifact.ts
|
|
8821
|
-
import { z as
|
|
8843
|
+
import { z as z299 } from "zod";
|
|
8822
8844
|
var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
|
|
8823
8845
|
id: true,
|
|
8824
8846
|
createdAt: true,
|
|
@@ -8839,48 +8861,48 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
|
|
|
8839
8861
|
createdAt: true,
|
|
8840
8862
|
projectIterationId: true
|
|
8841
8863
|
});
|
|
8842
|
-
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id:
|
|
8843
|
-
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id:
|
|
8844
|
-
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id:
|
|
8845
|
-
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id:
|
|
8864
|
+
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z299.string() });
|
|
8865
|
+
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z299.string() });
|
|
8866
|
+
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z299.string() });
|
|
8867
|
+
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z299.string() });
|
|
8846
8868
|
var DTOForgeArtifact = ForgeArtifact;
|
|
8847
8869
|
var DTOForgeBuildArtifact = ForgeBuildArtifact;
|
|
8848
8870
|
var DTOForgeFileArtifact = ForgeFileArtifact;
|
|
8849
8871
|
var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
|
|
8850
8872
|
var DTOForgeSpecArtifact = ForgeSpecArtifact;
|
|
8851
|
-
var DTOCreateForgeArtifact =
|
|
8873
|
+
var DTOCreateForgeArtifact = z299.union([
|
|
8852
8874
|
DTOCreateForgeBuildArtifact,
|
|
8853
8875
|
DTOCreateForgeFileArtifact,
|
|
8854
8876
|
DTOCreateForgeFigmaArtifact,
|
|
8855
8877
|
DTOCreateForgeSpecArtifact
|
|
8856
8878
|
]);
|
|
8857
|
-
var DTOUpdateForgeArtifact =
|
|
8879
|
+
var DTOUpdateForgeArtifact = z299.union([
|
|
8858
8880
|
DTOUpdateForgeFileArtifact,
|
|
8859
8881
|
DTOUpdateForgeBuildArtifact,
|
|
8860
8882
|
DTOUpdateForgeSpecArtifact,
|
|
8861
8883
|
DTOUpdateForgeFigmaArtifact
|
|
8862
8884
|
]);
|
|
8863
|
-
var DTOCreateForgeArtifactResponse =
|
|
8885
|
+
var DTOCreateForgeArtifactResponse = z299.object({
|
|
8864
8886
|
artifact: DTOForgeArtifact
|
|
8865
8887
|
});
|
|
8866
|
-
var DTOUpdateForgeArtifactResponse =
|
|
8888
|
+
var DTOUpdateForgeArtifactResponse = z299.object({
|
|
8867
8889
|
artifact: DTOForgeArtifact.nullable()
|
|
8868
8890
|
});
|
|
8869
|
-
var DTODeleteForgeArtifactResponse =
|
|
8870
|
-
ok:
|
|
8891
|
+
var DTODeleteForgeArtifactResponse = z299.object({
|
|
8892
|
+
ok: z299.literal(true)
|
|
8871
8893
|
});
|
|
8872
|
-
var DTOForgeArtifactsListResponse =
|
|
8873
|
-
artifacts:
|
|
8894
|
+
var DTOForgeArtifactsListResponse = z299.object({
|
|
8895
|
+
artifacts: z299.array(DTOForgeArtifact)
|
|
8874
8896
|
});
|
|
8875
|
-
var DTOForgeArtifactGetResponse =
|
|
8897
|
+
var DTOForgeArtifactGetResponse = z299.object({
|
|
8876
8898
|
artifact: DTOForgeArtifact.nullable()
|
|
8877
8899
|
});
|
|
8878
8900
|
|
|
8879
8901
|
// src/api/dto/forge/iteration-message.ts
|
|
8880
|
-
import { z as
|
|
8902
|
+
import { z as z301 } from "zod";
|
|
8881
8903
|
|
|
8882
8904
|
// src/api/dto/forge/participant.ts
|
|
8883
|
-
import { z as
|
|
8905
|
+
import { z as z300 } from "zod";
|
|
8884
8906
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
8885
8907
|
agent: DTOForgeAgent.optional(),
|
|
8886
8908
|
user: DTOUser.optional()
|
|
@@ -8890,20 +8912,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
8890
8912
|
agent: true,
|
|
8891
8913
|
user: true
|
|
8892
8914
|
});
|
|
8893
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
8894
|
-
var DTOCreateForgeParticipantResponse =
|
|
8915
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z300.string() });
|
|
8916
|
+
var DTOCreateForgeParticipantResponse = z300.object({
|
|
8895
8917
|
participant: DTOForgeParticipant
|
|
8896
8918
|
});
|
|
8897
|
-
var DTOUpdateForgeParticipantResponse =
|
|
8919
|
+
var DTOUpdateForgeParticipantResponse = z300.object({
|
|
8898
8920
|
participant: DTOForgeParticipant.nullable()
|
|
8899
8921
|
});
|
|
8900
|
-
var DTODeleteForgeParticipantResponse =
|
|
8901
|
-
ok:
|
|
8922
|
+
var DTODeleteForgeParticipantResponse = z300.object({
|
|
8923
|
+
ok: z300.literal(true)
|
|
8902
8924
|
});
|
|
8903
|
-
var DTOForgeParticipantsListResponse =
|
|
8904
|
-
participants:
|
|
8925
|
+
var DTOForgeParticipantsListResponse = z300.object({
|
|
8926
|
+
participants: z300.array(DTOForgeParticipant)
|
|
8905
8927
|
});
|
|
8906
|
-
var DTOForgeParticipantGetResponse =
|
|
8928
|
+
var DTOForgeParticipantGetResponse = z300.object({
|
|
8907
8929
|
participant: DTOForgeParticipant.nullable()
|
|
8908
8930
|
});
|
|
8909
8931
|
|
|
@@ -8915,25 +8937,90 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
8915
8937
|
projectIterationId: true,
|
|
8916
8938
|
participant: true
|
|
8917
8939
|
});
|
|
8918
|
-
var DTOGetForgeIterationMessageResponse =
|
|
8940
|
+
var DTOGetForgeIterationMessageResponse = z301.object({
|
|
8919
8941
|
message: DTOForgeIterationMessage.nullable()
|
|
8920
8942
|
});
|
|
8921
|
-
var DTOForgeIterationMessagesListResponse =
|
|
8922
|
-
messages:
|
|
8943
|
+
var DTOForgeIterationMessagesListResponse = z301.object({
|
|
8944
|
+
messages: z301.array(DTOForgeIterationMessage)
|
|
8923
8945
|
});
|
|
8924
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
8925
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
8946
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z301.string() });
|
|
8947
|
+
var DTOCreateForgeIterationMessageResponse = z301.object({
|
|
8926
8948
|
message: DTOForgeIterationMessage
|
|
8927
8949
|
});
|
|
8928
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
8950
|
+
var DTOUpdateForgeIterationMessageResponse = z301.object({
|
|
8929
8951
|
message: DTOForgeIterationMessage.nullable()
|
|
8930
8952
|
});
|
|
8931
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
8932
|
-
ok:
|
|
8953
|
+
var DTODeleteForgeIterationMessageResponse = z301.object({
|
|
8954
|
+
ok: z301.literal(true)
|
|
8955
|
+
});
|
|
8956
|
+
|
|
8957
|
+
// src/api/dto/forge/project.ts
|
|
8958
|
+
import { z as z303 } from "zod";
|
|
8959
|
+
|
|
8960
|
+
// src/api/dto/forge/project-member.ts
|
|
8961
|
+
import { z as z302 } from "zod";
|
|
8962
|
+
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
8963
|
+
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
8964
|
+
user: DTOUser,
|
|
8965
|
+
effectiveRole: DTOForgeProjectMemberRole
|
|
8933
8966
|
});
|
|
8967
|
+
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
8968
|
+
userId: true,
|
|
8969
|
+
role: true
|
|
8970
|
+
});
|
|
8971
|
+
var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: true });
|
|
8972
|
+
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
8973
|
+
userId: true
|
|
8974
|
+
});
|
|
8975
|
+
var DTOForgeProjectMembersListResponse = z302.object({
|
|
8976
|
+
members: z302.array(DTOForgeProjectMember)
|
|
8977
|
+
});
|
|
8978
|
+
var DTOForgeProjectMemberGetResponse = z302.object({
|
|
8979
|
+
member: DTOForgeProjectMember.nullable()
|
|
8980
|
+
});
|
|
8981
|
+
var DTOForgeProjectMemberCreateResponse = z302.object({
|
|
8982
|
+
member: DTOForgeProjectMember
|
|
8983
|
+
});
|
|
8984
|
+
var DTOForgeProjectMemberUpdateResponse = z302.object({
|
|
8985
|
+
member: DTOForgeProjectMember.nullable()
|
|
8986
|
+
});
|
|
8987
|
+
var DTOForgeProjectMemberRemoveResponse = z302.object({
|
|
8988
|
+
ok: z302.literal(true)
|
|
8989
|
+
});
|
|
8990
|
+
|
|
8991
|
+
// src/api/dto/forge/project.ts
|
|
8992
|
+
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
8993
|
+
context: ForgeProjectContext,
|
|
8994
|
+
members: z303.array(DTOForgeProjectMember)
|
|
8995
|
+
});
|
|
8996
|
+
var DTOCreateForgeProject = ForgeProject.pick({
|
|
8997
|
+
instruction: true,
|
|
8998
|
+
name: true,
|
|
8999
|
+
meta: true,
|
|
9000
|
+
tags: true,
|
|
9001
|
+
accessMode: true,
|
|
9002
|
+
fpContextId: true,
|
|
9003
|
+
isArchived: true
|
|
9004
|
+
});
|
|
9005
|
+
var DTOUpdateForgeProject = DTOCreateForgeProject.partial().extend({
|
|
9006
|
+
id: z303.string(),
|
|
9007
|
+
membersToRetain: z303.string().array().min(1).optional()
|
|
9008
|
+
});
|
|
9009
|
+
var DTOForgeProjectGetResponse = z303.object({ project: DTOForgeProject.nullable() });
|
|
9010
|
+
var DTOForgeProjectsListResponse = z303.object({ projects: z303.array(DTOForgeProject) });
|
|
9011
|
+
var DTOCreateForgeProjectResponse = z303.object({
|
|
9012
|
+
project: DTOForgeProject
|
|
9013
|
+
});
|
|
9014
|
+
var DTOUpdateForgeProjectResponse = z303.object({
|
|
9015
|
+
project: DTOForgeProject.nullable()
|
|
9016
|
+
});
|
|
9017
|
+
var DTOUGetForgeProjectResponse = z303.object({
|
|
9018
|
+
project: DTOForgeProject
|
|
9019
|
+
});
|
|
9020
|
+
var DTORemoveForgeProjectResponse = z303.object({ ok: z303.literal(true) });
|
|
8934
9021
|
|
|
8935
9022
|
// src/api/dto/forge/project-context.ts
|
|
8936
|
-
import { z as
|
|
9023
|
+
import { z as z304 } from "zod";
|
|
8937
9024
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
8938
9025
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
8939
9026
|
definition: true,
|
|
@@ -8945,17 +9032,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
8945
9032
|
tailwindConfig: true,
|
|
8946
9033
|
styling: true
|
|
8947
9034
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
8948
|
-
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id:
|
|
8949
|
-
var DTOForgeProjectContextGetResponse =
|
|
8950
|
-
var DTOForgeProjectContextListResponse =
|
|
8951
|
-
var DTOForgeProjectContextCreateResponse =
|
|
8952
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
8953
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
8954
|
-
ok:
|
|
9035
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z304.string() });
|
|
9036
|
+
var DTOForgeProjectContextGetResponse = z304.object({ context: DTOForgeProjectContext.nullable() });
|
|
9037
|
+
var DTOForgeProjectContextListResponse = z304.object({ contexts: z304.array(DTOForgeProjectContext) });
|
|
9038
|
+
var DTOForgeProjectContextCreateResponse = z304.object({ context: DTOForgeProjectContext });
|
|
9039
|
+
var DTOForgeProjectContextUpdateResponse = z304.object({ context: DTOForgeProjectContext.nullable() });
|
|
9040
|
+
var DTOForgeProjectContextRemoveResponse = z304.object({
|
|
9041
|
+
ok: z304.literal(true)
|
|
8955
9042
|
});
|
|
8956
9043
|
|
|
8957
9044
|
// src/api/dto/forge/project-invitation.ts
|
|
8958
|
-
import { z as
|
|
9045
|
+
import { z as z305 } from "zod";
|
|
8959
9046
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
8960
9047
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
8961
9048
|
email: true,
|
|
@@ -8967,24 +9054,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({ ema
|
|
|
8967
9054
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
8968
9055
|
email: true
|
|
8969
9056
|
});
|
|
8970
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
8971
|
-
invitations:
|
|
9057
|
+
var DTOForgeProjectInvitationsListResponse = z305.object({
|
|
9058
|
+
invitations: z305.array(DTOForgeProjectInvitation)
|
|
8972
9059
|
});
|
|
8973
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9060
|
+
var DTOForgeProjectInvitationGetResponse = z305.object({
|
|
8974
9061
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
8975
9062
|
});
|
|
8976
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9063
|
+
var DTOForgeProjectInvitationCreateResponse = z305.object({
|
|
8977
9064
|
invitation: DTOForgeProjectInvitation
|
|
8978
9065
|
});
|
|
8979
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9066
|
+
var DTOForgeProjectInvitationUpdateResponse = z305.object({
|
|
8980
9067
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
8981
9068
|
});
|
|
8982
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
8983
|
-
ok:
|
|
9069
|
+
var DTOForgeProjectInvitationRemoveResponse = z305.object({
|
|
9070
|
+
ok: z305.literal(true)
|
|
8984
9071
|
});
|
|
8985
9072
|
|
|
8986
9073
|
// src/api/dto/forge/project-iteration.ts
|
|
8987
|
-
import { z as
|
|
9074
|
+
import { z as z306 } from "zod";
|
|
8988
9075
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
8989
9076
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
8990
9077
|
artifacts: true,
|
|
@@ -8995,7 +9082,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
8995
9082
|
messages: DTOForgeIterationMessage.array(),
|
|
8996
9083
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
8997
9084
|
});
|
|
8998
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9085
|
+
var DTOGetForgeProjectIterationResponse = z306.object({
|
|
8999
9086
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9000
9087
|
});
|
|
9001
9088
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9005,207 +9092,147 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9005
9092
|
mergeMeta: true,
|
|
9006
9093
|
createdAt: true
|
|
9007
9094
|
});
|
|
9008
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9009
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9095
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z306.string() });
|
|
9096
|
+
var DTOCreateForgeProjectIterationResponse = z306.object({
|
|
9010
9097
|
iteration: DTOForgeProjectIteration
|
|
9011
9098
|
});
|
|
9012
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9099
|
+
var DTOUpdateForgeProjectIterationResponse = z306.object({
|
|
9013
9100
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9014
9101
|
});
|
|
9015
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9016
|
-
ok:
|
|
9017
|
-
});
|
|
9018
|
-
var DTOForgeProjectIterationListResponse = z303.object({ iterations: z303.array(DTOForgeProjectIteration) });
|
|
9019
|
-
|
|
9020
|
-
// src/api/dto/forge/project-member.ts
|
|
9021
|
-
import { z as z304 } from "zod";
|
|
9022
|
-
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9023
|
-
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9024
|
-
user: DTOUser,
|
|
9025
|
-
effectiveRole: DTOForgeProjectMemberRole
|
|
9026
|
-
});
|
|
9027
|
-
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9028
|
-
userId: true,
|
|
9029
|
-
role: true
|
|
9030
|
-
});
|
|
9031
|
-
var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: true });
|
|
9032
|
-
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9033
|
-
userId: true
|
|
9034
|
-
});
|
|
9035
|
-
var DTOForgeProjectMembersListResponse = z304.object({
|
|
9036
|
-
members: z304.array(DTOForgeProjectMember)
|
|
9037
|
-
});
|
|
9038
|
-
var DTOForgeProjectMemberGetResponse = z304.object({
|
|
9039
|
-
member: DTOForgeProjectMember.nullable()
|
|
9040
|
-
});
|
|
9041
|
-
var DTOForgeProjectMemberCreateResponse = z304.object({
|
|
9042
|
-
member: DTOForgeProjectMember
|
|
9043
|
-
});
|
|
9044
|
-
var DTOForgeProjectMemberUpdateResponse = z304.object({
|
|
9045
|
-
member: DTOForgeProjectMember.nullable()
|
|
9046
|
-
});
|
|
9047
|
-
var DTOForgeProjectMemberRemoveResponse = z304.object({
|
|
9048
|
-
ok: z304.literal(true)
|
|
9049
|
-
});
|
|
9050
|
-
|
|
9051
|
-
// src/api/dto/forge/project.ts
|
|
9052
|
-
import { z as z305 } from "zod";
|
|
9053
|
-
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9054
|
-
context: ForgeProjectContext,
|
|
9055
|
-
members: z305.array(DTOForgeProjectMember)
|
|
9056
|
-
});
|
|
9057
|
-
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9058
|
-
instruction: true,
|
|
9059
|
-
name: true,
|
|
9060
|
-
meta: true,
|
|
9061
|
-
tags: true,
|
|
9062
|
-
accessMode: true,
|
|
9063
|
-
fpContextId: true,
|
|
9064
|
-
isArchived: true
|
|
9102
|
+
var DTODeleteForgeProjectIterationResponse = z306.object({
|
|
9103
|
+
ok: z306.literal(true)
|
|
9065
9104
|
});
|
|
9066
|
-
var
|
|
9067
|
-
var DTOForgeProjectGetResponse = z305.object({ project: DTOForgeProject.nullable() });
|
|
9068
|
-
var DTOForgeProjectsListResponse = z305.object({ projects: z305.array(DTOForgeProject) });
|
|
9069
|
-
var DTOCreateForgeProjectResponse = z305.object({
|
|
9070
|
-
project: DTOForgeProject
|
|
9071
|
-
});
|
|
9072
|
-
var DTOUpdateForgeProjectResponse = z305.object({
|
|
9073
|
-
project: DTOForgeProject.nullable()
|
|
9074
|
-
});
|
|
9075
|
-
var DTOUGetForgeProjectResponse = z305.object({
|
|
9076
|
-
project: DTOForgeProject
|
|
9077
|
-
});
|
|
9078
|
-
var DTORemoveForgeProjectResponse = z305.object({ ok: z305.literal(true) });
|
|
9105
|
+
var DTOForgeProjectIterationListResponse = z306.object({ iterations: z306.array(DTOForgeProjectIteration) });
|
|
9079
9106
|
|
|
9080
9107
|
// src/api/dto/forge/threads.ts
|
|
9081
|
-
import { z as
|
|
9108
|
+
import { z as z307 } from "zod";
|
|
9082
9109
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9083
9110
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9084
9111
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9085
9112
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9086
|
-
var DTOForgeChatThreadCreateInput =
|
|
9087
|
-
title:
|
|
9113
|
+
var DTOForgeChatThreadCreateInput = z307.object({
|
|
9114
|
+
title: z307.string().optional()
|
|
9088
9115
|
});
|
|
9089
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9116
|
+
var DTOForgeChatThreadCreateResponse = z307.object({
|
|
9090
9117
|
thread: DTOForgeChatThread
|
|
9091
9118
|
});
|
|
9092
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9093
|
-
title:
|
|
9119
|
+
var DTOForgeChatThreadUpdateInput = z307.object({
|
|
9120
|
+
title: z307.string()
|
|
9094
9121
|
});
|
|
9095
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9122
|
+
var DTOForgeChatThreadUpdateResponse = z307.object({
|
|
9096
9123
|
thread: DTOForgeChatThread
|
|
9097
9124
|
});
|
|
9098
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9099
|
-
success:
|
|
9125
|
+
var DTOForgeChatThreadDeleteResponse = z307.object({
|
|
9126
|
+
success: z307.boolean()
|
|
9100
9127
|
});
|
|
9101
|
-
var DTOForgeChatThreadListQuery =
|
|
9102
|
-
limit:
|
|
9103
|
-
offset:
|
|
9128
|
+
var DTOForgeChatThreadListQuery = z307.object({
|
|
9129
|
+
limit: z307.number().optional(),
|
|
9130
|
+
offset: z307.number().optional()
|
|
9104
9131
|
});
|
|
9105
|
-
var DTOForgeChatThreadListResponse =
|
|
9106
|
-
threads:
|
|
9107
|
-
pagination:
|
|
9108
|
-
offset:
|
|
9109
|
-
limit:
|
|
9110
|
-
total:
|
|
9132
|
+
var DTOForgeChatThreadListResponse = z307.object({
|
|
9133
|
+
threads: z307.array(DTOForgeChatThread),
|
|
9134
|
+
pagination: z307.object({
|
|
9135
|
+
offset: z307.number(),
|
|
9136
|
+
limit: z307.number(),
|
|
9137
|
+
total: z307.number()
|
|
9111
9138
|
})
|
|
9112
9139
|
});
|
|
9113
|
-
var DTOForgeChatMessageCreateInput =
|
|
9114
|
-
payload:
|
|
9140
|
+
var DTOForgeChatMessageCreateInput = z307.object({
|
|
9141
|
+
payload: z307.string(),
|
|
9115
9142
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9116
|
-
opikTraceId:
|
|
9143
|
+
opikTraceId: z307.string().optional()
|
|
9117
9144
|
});
|
|
9118
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9145
|
+
var DTOForgeChatMessageCreateResponse = z307.object({
|
|
9119
9146
|
message: DTOForgeChatMessage
|
|
9120
9147
|
});
|
|
9121
|
-
var DTOForgeChatMessageListQuery =
|
|
9122
|
-
limit:
|
|
9123
|
-
offset:
|
|
9148
|
+
var DTOForgeChatMessageListQuery = z307.object({
|
|
9149
|
+
limit: z307.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9150
|
+
offset: z307.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9124
9151
|
});
|
|
9125
|
-
var DTOForgeChatMessageListResponse =
|
|
9126
|
-
messages:
|
|
9127
|
-
totalCount:
|
|
9128
|
-
hasMore:
|
|
9152
|
+
var DTOForgeChatMessageListResponse = z307.object({
|
|
9153
|
+
messages: z307.array(DTOForgeChatMessage),
|
|
9154
|
+
totalCount: z307.number(),
|
|
9155
|
+
hasMore: z307.boolean()
|
|
9129
9156
|
});
|
|
9130
|
-
var DTOForgeChatMessageScoreInput =
|
|
9131
|
-
messageId:
|
|
9132
|
-
name:
|
|
9133
|
-
value:
|
|
9134
|
-
categoryName:
|
|
9135
|
-
reason:
|
|
9157
|
+
var DTOForgeChatMessageScoreInput = z307.object({
|
|
9158
|
+
messageId: z307.string(),
|
|
9159
|
+
name: z307.string(),
|
|
9160
|
+
value: z307.number(),
|
|
9161
|
+
categoryName: z307.string().optional(),
|
|
9162
|
+
reason: z307.string().optional()
|
|
9136
9163
|
});
|
|
9137
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9164
|
+
var DTOForgeChatMessageScoreRequest = z307.object({
|
|
9138
9165
|
scores: DTOForgeChatMessageScoreInput.array()
|
|
9139
9166
|
});
|
|
9140
9167
|
|
|
9141
9168
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9142
|
-
import { z as
|
|
9143
|
-
var DTOLiveblocksAuthResponse =
|
|
9144
|
-
token:
|
|
9169
|
+
import { z as z308 } from "zod";
|
|
9170
|
+
var DTOLiveblocksAuthResponse = z308.object({
|
|
9171
|
+
token: z308.string()
|
|
9145
9172
|
});
|
|
9146
9173
|
|
|
9147
9174
|
// src/api/dto/portal/portal-settings.ts
|
|
9148
|
-
import { z as
|
|
9175
|
+
import { z as z309 } from "zod";
|
|
9149
9176
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9150
9177
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9151
9178
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9152
9179
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9153
|
-
var DTOPortalSettings =
|
|
9154
|
-
id:
|
|
9155
|
-
workspaceId:
|
|
9156
|
-
enabledDesignSystemIds:
|
|
9157
|
-
enabledBrandPersistentIds:
|
|
9180
|
+
var DTOPortalSettings = z309.object({
|
|
9181
|
+
id: z309.string(),
|
|
9182
|
+
workspaceId: z309.string(),
|
|
9183
|
+
enabledDesignSystemIds: z309.array(z309.string()),
|
|
9184
|
+
enabledBrandPersistentIds: z309.array(z309.string()),
|
|
9158
9185
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9159
9186
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9160
|
-
createdAt:
|
|
9161
|
-
updatedAt:
|
|
9187
|
+
createdAt: z309.coerce.date(),
|
|
9188
|
+
updatedAt: z309.coerce.date()
|
|
9162
9189
|
});
|
|
9163
|
-
var DTOPortalSettingsGetResponse =
|
|
9190
|
+
var DTOPortalSettingsGetResponse = z309.object({
|
|
9164
9191
|
portalSettings: DTOPortalSettings
|
|
9165
9192
|
});
|
|
9166
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9167
|
-
enabledDesignSystemIds:
|
|
9168
|
-
enabledBrandPersistentIds:
|
|
9193
|
+
var DTOPortalSettingsUpdatePayload = z309.object({
|
|
9194
|
+
enabledDesignSystemIds: z309.array(z309.string()).optional(),
|
|
9195
|
+
enabledBrandPersistentIds: z309.array(z309.string()).optional(),
|
|
9169
9196
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9170
9197
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9171
9198
|
});
|
|
9172
9199
|
|
|
9173
9200
|
// src/api/dto/themes/override.ts
|
|
9174
|
-
import { z as
|
|
9201
|
+
import { z as z310 } from "zod";
|
|
9175
9202
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9176
|
-
|
|
9177
|
-
tokenPersistentId:
|
|
9203
|
+
z310.object({
|
|
9204
|
+
tokenPersistentId: z310.string(),
|
|
9178
9205
|
origin: ThemeOverrideOrigin.optional()
|
|
9179
9206
|
})
|
|
9180
9207
|
);
|
|
9181
9208
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9182
|
-
|
|
9183
|
-
tokenPersistentId:
|
|
9209
|
+
z310.object({
|
|
9210
|
+
tokenPersistentId: z310.string()
|
|
9184
9211
|
})
|
|
9185
9212
|
);
|
|
9186
9213
|
|
|
9187
9214
|
// src/api/dto/themes/theme.ts
|
|
9188
|
-
import { z as
|
|
9189
|
-
var DTOTheme =
|
|
9190
|
-
id:
|
|
9191
|
-
persistentId:
|
|
9192
|
-
designSystemVersionId:
|
|
9193
|
-
brandId:
|
|
9215
|
+
import { z as z311 } from "zod";
|
|
9216
|
+
var DTOTheme = z311.object({
|
|
9217
|
+
id: z311.string(),
|
|
9218
|
+
persistentId: z311.string(),
|
|
9219
|
+
designSystemVersionId: z311.string(),
|
|
9220
|
+
brandId: z311.string(),
|
|
9194
9221
|
meta: ObjectMeta,
|
|
9195
|
-
codeName:
|
|
9222
|
+
codeName: z311.string(),
|
|
9196
9223
|
overrides: DTOThemeOverride.array()
|
|
9197
9224
|
});
|
|
9198
|
-
var DTOThemeResponse =
|
|
9225
|
+
var DTOThemeResponse = z311.object({
|
|
9199
9226
|
theme: DTOTheme
|
|
9200
9227
|
});
|
|
9201
|
-
var DTOThemeListResponse =
|
|
9228
|
+
var DTOThemeListResponse = z311.object({
|
|
9202
9229
|
themes: DTOTheme.array()
|
|
9203
9230
|
});
|
|
9204
|
-
var DTOThemeCreatePayload =
|
|
9231
|
+
var DTOThemeCreatePayload = z311.object({
|
|
9205
9232
|
meta: ObjectMeta,
|
|
9206
|
-
persistentId:
|
|
9207
|
-
brandId:
|
|
9208
|
-
codeName:
|
|
9233
|
+
persistentId: z311.string(),
|
|
9234
|
+
brandId: z311.string(),
|
|
9235
|
+
codeName: z311.string(),
|
|
9209
9236
|
overrides: DTOThemeOverride.array()
|
|
9210
9237
|
});
|
|
9211
9238
|
|
|
@@ -9441,13 +9468,13 @@ var ExportersEndpoint = class {
|
|
|
9441
9468
|
};
|
|
9442
9469
|
|
|
9443
9470
|
// src/api/endpoints/codegen/jobs.ts
|
|
9444
|
-
import { z as
|
|
9471
|
+
import { z as z312 } from "zod";
|
|
9445
9472
|
var ExporterJobsEndpoint = class {
|
|
9446
9473
|
constructor(requestExecutor) {
|
|
9447
9474
|
this.requestExecutor = requestExecutor;
|
|
9448
9475
|
}
|
|
9449
9476
|
list(workspaceId) {
|
|
9450
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9477
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z312.any());
|
|
9451
9478
|
}
|
|
9452
9479
|
get(workspaceId, jobId) {
|
|
9453
9480
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9505,7 +9532,7 @@ var CodegenEndpoint = class {
|
|
|
9505
9532
|
};
|
|
9506
9533
|
|
|
9507
9534
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9508
|
-
import { z as
|
|
9535
|
+
import { z as z313 } from "zod";
|
|
9509
9536
|
var BrandsEndpoint = class {
|
|
9510
9537
|
constructor(requestExecutor) {
|
|
9511
9538
|
this.requestExecutor = requestExecutor;
|
|
@@ -9539,7 +9566,7 @@ var BrandsEndpoint = class {
|
|
|
9539
9566
|
});
|
|
9540
9567
|
}
|
|
9541
9568
|
delete(dsId, vId, brandId) {
|
|
9542
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
9569
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z313.any(), {
|
|
9543
9570
|
method: "DELETE"
|
|
9544
9571
|
});
|
|
9545
9572
|
}
|
|
@@ -9806,7 +9833,7 @@ var ImportJobsEndpoint = class {
|
|
|
9806
9833
|
};
|
|
9807
9834
|
|
|
9808
9835
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
9809
|
-
import { z as
|
|
9836
|
+
import { z as z314 } from "zod";
|
|
9810
9837
|
var OverridesEndpoint = class {
|
|
9811
9838
|
constructor(requestExecutor) {
|
|
9812
9839
|
this.requestExecutor = requestExecutor;
|
|
@@ -9814,7 +9841,7 @@ var OverridesEndpoint = class {
|
|
|
9814
9841
|
create(dsId, versionId, themeId, body) {
|
|
9815
9842
|
return this.requestExecutor.json(
|
|
9816
9843
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
9817
|
-
|
|
9844
|
+
z314.any(),
|
|
9818
9845
|
{
|
|
9819
9846
|
method: "POST",
|
|
9820
9847
|
body
|
|
@@ -9824,7 +9851,7 @@ var OverridesEndpoint = class {
|
|
|
9824
9851
|
};
|
|
9825
9852
|
|
|
9826
9853
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
9827
|
-
import { z as
|
|
9854
|
+
import { z as z315 } from "zod";
|
|
9828
9855
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
9829
9856
|
constructor(requestExecutor) {
|
|
9830
9857
|
this.requestExecutor = requestExecutor;
|
|
@@ -9852,7 +9879,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
9852
9879
|
delete(designSystemId, versionId, defId) {
|
|
9853
9880
|
return this.requestExecutor.json(
|
|
9854
9881
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
9855
|
-
|
|
9882
|
+
z315.any(),
|
|
9856
9883
|
{ method: "DELETE" }
|
|
9857
9884
|
);
|
|
9858
9885
|
}
|
|
@@ -9891,7 +9918,7 @@ var VersionStatsEndpoint = class {
|
|
|
9891
9918
|
};
|
|
9892
9919
|
|
|
9893
9920
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
9894
|
-
import { z as
|
|
9921
|
+
import { z as z316 } from "zod";
|
|
9895
9922
|
var ThemesEndpoint = class {
|
|
9896
9923
|
constructor(requestExecutor) {
|
|
9897
9924
|
this.requestExecutor = requestExecutor;
|
|
@@ -9914,7 +9941,7 @@ var ThemesEndpoint = class {
|
|
|
9914
9941
|
});
|
|
9915
9942
|
}
|
|
9916
9943
|
delete(dsId, versionId, themeId) {
|
|
9917
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
9944
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z316.any(), {
|
|
9918
9945
|
method: "DELETE"
|
|
9919
9946
|
});
|
|
9920
9947
|
}
|
|
@@ -10085,7 +10112,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10085
10112
|
};
|
|
10086
10113
|
|
|
10087
10114
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10088
|
-
import { z as
|
|
10115
|
+
import { z as z320 } from "zod";
|
|
10089
10116
|
|
|
10090
10117
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10091
10118
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10162,7 +10189,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10162
10189
|
};
|
|
10163
10190
|
|
|
10164
10191
|
// src/api/endpoints/design-system/sources.ts
|
|
10165
|
-
import { z as
|
|
10192
|
+
import { z as z317 } from "zod";
|
|
10166
10193
|
var DesignSystemSourcesEndpoint = class {
|
|
10167
10194
|
constructor(requestExecutor) {
|
|
10168
10195
|
this.requestExecutor = requestExecutor;
|
|
@@ -10180,7 +10207,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10180
10207
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10181
10208
|
}
|
|
10182
10209
|
delete(dsId, sourceId) {
|
|
10183
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10210
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z317.any(), { method: "DELETE" });
|
|
10184
10211
|
}
|
|
10185
10212
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10186
10213
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10223,7 +10250,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10223
10250
|
};
|
|
10224
10251
|
|
|
10225
10252
|
// src/api/endpoints/design-system/storybook.ts
|
|
10226
|
-
import { z as
|
|
10253
|
+
import { z as z318 } from "zod";
|
|
10227
10254
|
var StorybookEntriesEndpoint = class {
|
|
10228
10255
|
constructor(requestExecutor) {
|
|
10229
10256
|
this.requestExecutor = requestExecutor;
|
|
@@ -10239,14 +10266,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10239
10266
|
);
|
|
10240
10267
|
}
|
|
10241
10268
|
delete(dsId, entryId) {
|
|
10242
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10269
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z318.any(), {
|
|
10243
10270
|
method: "DELETE"
|
|
10244
10271
|
});
|
|
10245
10272
|
}
|
|
10246
10273
|
};
|
|
10247
10274
|
|
|
10248
10275
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10249
|
-
import { z as
|
|
10276
|
+
import { z as z319 } from "zod";
|
|
10250
10277
|
var StorybookHostingEndpoint = class {
|
|
10251
10278
|
constructor(requestExecutor) {
|
|
10252
10279
|
this.requestExecutor = requestExecutor;
|
|
@@ -10260,7 +10287,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10260
10287
|
delete(dsId, storybookUploadId) {
|
|
10261
10288
|
return this.requestExecutor.json(
|
|
10262
10289
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10263
|
-
|
|
10290
|
+
z319.object({ ok: z319.boolean() }),
|
|
10264
10291
|
{
|
|
10265
10292
|
method: "DELETE"
|
|
10266
10293
|
}
|
|
@@ -10318,7 +10345,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10318
10345
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10319
10346
|
}
|
|
10320
10347
|
delete(dsId) {
|
|
10321
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10348
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z320.any(), { method: "DELETE" });
|
|
10322
10349
|
}
|
|
10323
10350
|
update(dsId, body) {
|
|
10324
10351
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10516,7 +10543,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10516
10543
|
};
|
|
10517
10544
|
|
|
10518
10545
|
// src/api/endpoints/forge/project-members.ts
|
|
10519
|
-
import { z as
|
|
10546
|
+
import { z as z321 } from "zod";
|
|
10520
10547
|
var ForgeProjectMembersEndpoint = class {
|
|
10521
10548
|
constructor(requestExecutor) {
|
|
10522
10549
|
this.requestExecutor = requestExecutor;
|
|
@@ -10545,7 +10572,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10545
10572
|
delete(projectId, userId) {
|
|
10546
10573
|
return this.requestExecutor.json(
|
|
10547
10574
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10548
|
-
|
|
10575
|
+
z321.object({ ok: z321.literal(true) }),
|
|
10549
10576
|
{
|
|
10550
10577
|
method: "DELETE"
|
|
10551
10578
|
}
|
|
@@ -10699,7 +10726,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
10699
10726
|
};
|
|
10700
10727
|
|
|
10701
10728
|
// src/api/endpoints/forge/project-invitations.ts
|
|
10702
|
-
import { z as
|
|
10729
|
+
import { z as z322 } from "zod";
|
|
10703
10730
|
var ForgeProjectInvitationsEndpoint = class {
|
|
10704
10731
|
constructor(requestExecutor) {
|
|
10705
10732
|
this.requestExecutor = requestExecutor;
|
|
@@ -10736,7 +10763,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
10736
10763
|
delete(projectId, email) {
|
|
10737
10764
|
return this.requestExecutor.json(
|
|
10738
10765
|
`/forge/projects/${projectId}/invitations/${encodeURI(email)}`,
|
|
10739
|
-
|
|
10766
|
+
z322.object({ ok: z322.literal(true) }),
|
|
10740
10767
|
{
|
|
10741
10768
|
method: "DELETE"
|
|
10742
10769
|
}
|
|
@@ -10769,7 +10796,7 @@ var ForgesEndpoint = class {
|
|
|
10769
10796
|
};
|
|
10770
10797
|
|
|
10771
10798
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
10772
|
-
import { z as
|
|
10799
|
+
import { z as z323 } from "zod";
|
|
10773
10800
|
var WorkspaceChatThreadsEndpoint = class {
|
|
10774
10801
|
constructor(requestExecutor) {
|
|
10775
10802
|
this.requestExecutor = requestExecutor;
|
|
@@ -10801,7 +10828,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
10801
10828
|
);
|
|
10802
10829
|
}
|
|
10803
10830
|
delete(workspaceId, threadId) {
|
|
10804
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
10831
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z323.any(), {
|
|
10805
10832
|
method: "DELETE"
|
|
10806
10833
|
});
|
|
10807
10834
|
}
|
|
@@ -10833,7 +10860,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10833
10860
|
);
|
|
10834
10861
|
}
|
|
10835
10862
|
score(workspaceId, threadId, body) {
|
|
10836
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
10863
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z323.any(), {
|
|
10837
10864
|
method: "POST",
|
|
10838
10865
|
body
|
|
10839
10866
|
});
|
|
@@ -10841,7 +10868,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10841
10868
|
};
|
|
10842
10869
|
|
|
10843
10870
|
// src/api/endpoints/workspaces/integrations.ts
|
|
10844
|
-
import { z as
|
|
10871
|
+
import { z as z324 } from "zod";
|
|
10845
10872
|
var WorkspaceIntegrationsEndpoint = class {
|
|
10846
10873
|
constructor(requestExecutor) {
|
|
10847
10874
|
this.requestExecutor = requestExecutor;
|
|
@@ -10850,7 +10877,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
10850
10877
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
10851
10878
|
}
|
|
10852
10879
|
delete(wsId, iId) {
|
|
10853
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
10880
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z324.unknown(), { method: "DELETE" });
|
|
10854
10881
|
}
|
|
10855
10882
|
};
|
|
10856
10883
|
|
|
@@ -10882,7 +10909,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
10882
10909
|
};
|
|
10883
10910
|
|
|
10884
10911
|
// src/api/endpoints/workspaces/members.ts
|
|
10885
|
-
import { z as
|
|
10912
|
+
import { z as z325 } from "zod";
|
|
10886
10913
|
var WorkspaceMembersEndpoint = class {
|
|
10887
10914
|
constructor(requestExecutor) {
|
|
10888
10915
|
this.requestExecutor = requestExecutor;
|
|
@@ -10899,7 +10926,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
10899
10926
|
});
|
|
10900
10927
|
}
|
|
10901
10928
|
invite(workspaceId, body) {
|
|
10902
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
10929
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z325.any(), { method: "POST", body });
|
|
10903
10930
|
}
|
|
10904
10931
|
delete(workspaceId, userId) {
|
|
10905
10932
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -10928,7 +10955,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
10928
10955
|
};
|
|
10929
10956
|
|
|
10930
10957
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
10931
|
-
import { z as
|
|
10958
|
+
import { z as z326 } from "zod";
|
|
10932
10959
|
var WorkspacesEndpoint = class {
|
|
10933
10960
|
constructor(requestExecutor) {
|
|
10934
10961
|
this.requestExecutor = requestExecutor;
|
|
@@ -10960,10 +10987,10 @@ var WorkspacesEndpoint = class {
|
|
|
10960
10987
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
10961
10988
|
}
|
|
10962
10989
|
delete(workspaceId) {
|
|
10963
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
10990
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z326.any(), { method: "DELETE" });
|
|
10964
10991
|
}
|
|
10965
10992
|
subscription(workspaceId) {
|
|
10966
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
10993
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z326.any(), { method: "GET" });
|
|
10967
10994
|
}
|
|
10968
10995
|
getPortalSettings(workspaceId) {
|
|
10969
10996
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11074,9 +11101,9 @@ ${bodyText}`,
|
|
|
11074
11101
|
|
|
11075
11102
|
// src/api/transport/request-executor.ts
|
|
11076
11103
|
import fetch from "node-fetch";
|
|
11077
|
-
import { z as
|
|
11078
|
-
var ResponseWrapper =
|
|
11079
|
-
result:
|
|
11104
|
+
import { z as z327 } from "zod";
|
|
11105
|
+
var ResponseWrapper = z327.object({
|
|
11106
|
+
result: z327.record(z327.any())
|
|
11080
11107
|
});
|
|
11081
11108
|
var RequestExecutor = class {
|
|
11082
11109
|
constructor(testServerConfig) {
|
|
@@ -11153,31 +11180,31 @@ var SupernovaApiClient = class {
|
|
|
11153
11180
|
};
|
|
11154
11181
|
|
|
11155
11182
|
// src/events/design-system.ts
|
|
11156
|
-
import { z as
|
|
11157
|
-
var DTOEventFigmaNodesRendered =
|
|
11158
|
-
type:
|
|
11159
|
-
designSystemId:
|
|
11160
|
-
versionId:
|
|
11161
|
-
figmaNodePersistentIds:
|
|
11162
|
-
});
|
|
11163
|
-
var DTOEventDataSourcesImported =
|
|
11164
|
-
type:
|
|
11165
|
-
designSystemId:
|
|
11166
|
-
versionId:
|
|
11167
|
-
importJobId:
|
|
11183
|
+
import { z as z328 } from "zod";
|
|
11184
|
+
var DTOEventFigmaNodesRendered = z328.object({
|
|
11185
|
+
type: z328.literal("DesignSystem.FigmaNodesRendered"),
|
|
11186
|
+
designSystemId: z328.string(),
|
|
11187
|
+
versionId: z328.string(),
|
|
11188
|
+
figmaNodePersistentIds: z328.string().array()
|
|
11189
|
+
});
|
|
11190
|
+
var DTOEventDataSourcesImported = z328.object({
|
|
11191
|
+
type: z328.literal("DesignSystem.ImportJobFinished"),
|
|
11192
|
+
designSystemId: z328.string(),
|
|
11193
|
+
versionId: z328.string(),
|
|
11194
|
+
importJobId: z328.string(),
|
|
11168
11195
|
dataSourceType: DataSourceRemoteType,
|
|
11169
|
-
dataSourceIds:
|
|
11196
|
+
dataSourceIds: z328.string().array()
|
|
11170
11197
|
});
|
|
11171
11198
|
|
|
11172
11199
|
// src/events/event.ts
|
|
11173
|
-
import { z as
|
|
11174
|
-
var DTOEvent =
|
|
11200
|
+
import { z as z329 } from "zod";
|
|
11201
|
+
var DTOEvent = z329.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11175
11202
|
|
|
11176
11203
|
// src/sync/docs-structure-repo.ts
|
|
11177
11204
|
import PQueue from "p-queue";
|
|
11178
11205
|
|
|
11179
11206
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11180
|
-
import { z as
|
|
11207
|
+
import { z as z330 } from "zod";
|
|
11181
11208
|
|
|
11182
11209
|
// src/yjs/version-room/base.ts
|
|
11183
11210
|
var VersionRoomBaseYDoc = class {
|
|
@@ -11727,24 +11754,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
11727
11754
|
};
|
|
11728
11755
|
|
|
11729
11756
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11730
|
-
var DocumentationHierarchySettings =
|
|
11731
|
-
routingVersion:
|
|
11732
|
-
isDraftFeatureAdopted:
|
|
11733
|
-
isApprovalFeatureEnabled:
|
|
11734
|
-
approvalRequiredForPublishing:
|
|
11757
|
+
var DocumentationHierarchySettings = z330.object({
|
|
11758
|
+
routingVersion: z330.string(),
|
|
11759
|
+
isDraftFeatureAdopted: z330.boolean(),
|
|
11760
|
+
isApprovalFeatureEnabled: z330.boolean(),
|
|
11761
|
+
approvalRequiredForPublishing: z330.boolean()
|
|
11735
11762
|
});
|
|
11736
11763
|
function yjsToDocumentationHierarchy(doc) {
|
|
11737
11764
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
11738
11765
|
}
|
|
11739
11766
|
|
|
11740
11767
|
// src/yjs/design-system-content/item-configuration.ts
|
|
11741
|
-
import { z as
|
|
11742
|
-
var DTODocumentationPageRoomHeaderData =
|
|
11743
|
-
title:
|
|
11768
|
+
import { z as z331 } from "zod";
|
|
11769
|
+
var DTODocumentationPageRoomHeaderData = z331.object({
|
|
11770
|
+
title: z331.string(),
|
|
11744
11771
|
configuration: DTODocumentationItemConfigurationV2
|
|
11745
11772
|
});
|
|
11746
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
11747
|
-
title:
|
|
11773
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z331.object({
|
|
11774
|
+
title: z331.string().optional(),
|
|
11748
11775
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
11749
11776
|
});
|
|
11750
11777
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -11779,9 +11806,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
11779
11806
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
11780
11807
|
|
|
11781
11808
|
// src/yjs/docs-editor/model/page.ts
|
|
11782
|
-
import { z as
|
|
11783
|
-
var DocumentationPageEditorModel =
|
|
11784
|
-
blocks:
|
|
11809
|
+
import { z as z332 } from "zod";
|
|
11810
|
+
var DocumentationPageEditorModel = z332.object({
|
|
11811
|
+
blocks: z332.array(DocumentationPageContentItem)
|
|
11785
11812
|
});
|
|
11786
11813
|
|
|
11787
11814
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -15458,7 +15485,7 @@ var blocks = [
|
|
|
15458
15485
|
|
|
15459
15486
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
15460
15487
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
15461
|
-
import { z as
|
|
15488
|
+
import { z as z333 } from "zod";
|
|
15462
15489
|
function yDocToPage(yDoc, definitions) {
|
|
15463
15490
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
15464
15491
|
}
|
|
@@ -15534,7 +15561,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
15534
15561
|
if (!id) return null;
|
|
15535
15562
|
return {
|
|
15536
15563
|
id,
|
|
15537
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
15564
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z333.string()) ?? "",
|
|
15538
15565
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
15539
15566
|
};
|
|
15540
15567
|
}
|
|
@@ -15568,7 +15595,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
15568
15595
|
});
|
|
15569
15596
|
}
|
|
15570
15597
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
15571
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
15598
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z333.string());
|
|
15572
15599
|
if (!definitionId) {
|
|
15573
15600
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
15574
15601
|
return [];
|
|
@@ -15609,7 +15636,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
15609
15636
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15610
15637
|
if (!id) return null;
|
|
15611
15638
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15612
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
15639
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z333.string().optional()));
|
|
15613
15640
|
return {
|
|
15614
15641
|
id,
|
|
15615
15642
|
type: "Block",
|
|
@@ -15732,9 +15759,9 @@ function parseRichTextAttribute(mark) {
|
|
|
15732
15759
|
return null;
|
|
15733
15760
|
}
|
|
15734
15761
|
function parseProsemirrorLink(mark) {
|
|
15735
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
15762
|
+
const href = getProsemirrorAttribute(mark, "href", z333.string().optional());
|
|
15736
15763
|
if (!href) return null;
|
|
15737
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
15764
|
+
const target = getProsemirrorAttribute(mark, "target", z333.string().optional());
|
|
15738
15765
|
const openInNewTab = target === "_blank";
|
|
15739
15766
|
if (href.startsWith("@")) {
|
|
15740
15767
|
return {
|
|
@@ -15753,9 +15780,9 @@ function parseProsemirrorLink(mark) {
|
|
|
15753
15780
|
}
|
|
15754
15781
|
}
|
|
15755
15782
|
function parseProsemirrorCommentHighlight(mark) {
|
|
15756
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
15783
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z333.string().optional());
|
|
15757
15784
|
if (!highlightId) return null;
|
|
15758
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
15785
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z333.boolean().optional()) ?? false;
|
|
15759
15786
|
return {
|
|
15760
15787
|
type: "Comment",
|
|
15761
15788
|
commentHighlightId: highlightId,
|
|
@@ -15766,7 +15793,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15766
15793
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15767
15794
|
if (!id) return null;
|
|
15768
15795
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15769
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
15796
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z333.boolean().optional()) !== false;
|
|
15770
15797
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
15771
15798
|
if (!tableChild) {
|
|
15772
15799
|
return emptyTable(id, variantId, 0);
|
|
@@ -15812,9 +15839,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15812
15839
|
function parseAsTableCell(prosemirrorNode) {
|
|
15813
15840
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15814
15841
|
if (!id) return null;
|
|
15815
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
15842
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z333.string().optional());
|
|
15816
15843
|
let columnWidth;
|
|
15817
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
15844
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z333.array(z333.number()).nullish());
|
|
15818
15845
|
if (columnWidthArray) {
|
|
15819
15846
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
15820
15847
|
}
|
|
@@ -15850,7 +15877,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
15850
15877
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
15851
15878
|
};
|
|
15852
15879
|
case "image":
|
|
15853
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
15880
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z333.string());
|
|
15854
15881
|
if (!items) return null;
|
|
15855
15882
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
15856
15883
|
if (!parsedItems.success) return null;
|
|
@@ -15964,7 +15991,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
15964
15991
|
);
|
|
15965
15992
|
}
|
|
15966
15993
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
15967
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
15994
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z333.string());
|
|
15968
15995
|
if (!itemsString) return null;
|
|
15969
15996
|
const itemsJson = JSON.parse(itemsString);
|
|
15970
15997
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -15975,18 +16002,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
15975
16002
|
}
|
|
15976
16003
|
function parseAppearance(prosemirrorNode) {
|
|
15977
16004
|
let appearance = {};
|
|
15978
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16005
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z333.string().optional());
|
|
15979
16006
|
if (rawAppearanceString) {
|
|
15980
16007
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
15981
16008
|
if (parsedAppearance.success) {
|
|
15982
16009
|
appearance = parsedAppearance.data;
|
|
15983
16010
|
}
|
|
15984
16011
|
}
|
|
15985
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16012
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z333.number().optional());
|
|
15986
16013
|
if (columns) {
|
|
15987
16014
|
appearance.numberOfColumns = columns;
|
|
15988
16015
|
}
|
|
15989
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16016
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z333.string().optional());
|
|
15990
16017
|
if (backgroundColor) {
|
|
15991
16018
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
15992
16019
|
if (parsedColor.success) {
|
|
@@ -16087,12 +16114,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16087
16114
|
}
|
|
16088
16115
|
}
|
|
16089
16116
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16090
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16117
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z333.string());
|
|
16091
16118
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16092
16119
|
return id;
|
|
16093
16120
|
}
|
|
16094
16121
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16095
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16122
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z333.string()));
|
|
16096
16123
|
}
|
|
16097
16124
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16098
16125
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -17067,6 +17094,8 @@ export {
|
|
|
17067
17094
|
DTOStorybookUploadStatus,
|
|
17068
17095
|
DTOStorybookUploadUrlRequest,
|
|
17069
17096
|
DTOStorybookUploadUrlResponse,
|
|
17097
|
+
DTOSubscription,
|
|
17098
|
+
DTOSubscriptionResponse,
|
|
17070
17099
|
DTOTheme,
|
|
17071
17100
|
DTOThemeCreatePayload,
|
|
17072
17101
|
DTOThemeListResponse,
|