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