@supernova-studio/client 1.11.1 → 1.11.3
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 +331 -80
- package/dist/index.d.ts +331 -80
- package/dist/index.js +69 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1147 -1112
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6301,7 +6301,7 @@ var DTOPagination = z214.object({
|
|
|
6301
6301
|
});
|
|
6302
6302
|
|
|
6303
6303
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6304
|
-
import { z as
|
|
6304
|
+
import { z as z258 } from "zod";
|
|
6305
6305
|
|
|
6306
6306
|
// src/api/dto/design-systems/brand.ts
|
|
6307
6307
|
import { z as z215 } from "zod";
|
|
@@ -6957,7 +6957,7 @@ var DTOStorybookEntryListResponse = z232.object({ entries: z232.array(DTOStorybo
|
|
|
6957
6957
|
var DTOStorybookEntryResponse = z232.object({ entry: DTOStorybookEntry });
|
|
6958
6958
|
|
|
6959
6959
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6960
|
-
import { z as
|
|
6960
|
+
import { z as z242 } from "zod";
|
|
6961
6961
|
|
|
6962
6962
|
// src/api/dto/workspaces/git.ts
|
|
6963
6963
|
import { z as z233 } from "zod";
|
|
@@ -7161,7 +7161,7 @@ var DTOSubscription = z239.object({
|
|
|
7161
7161
|
balance: z239.number(),
|
|
7162
7162
|
resetAt: z239.string().optional()
|
|
7163
7163
|
})
|
|
7164
|
-
})
|
|
7164
|
+
}).optional()
|
|
7165
7165
|
});
|
|
7166
7166
|
var DTOSubscriptionResponse = z239.object({
|
|
7167
7167
|
subscription: DTOSubscription
|
|
@@ -7183,26 +7183,35 @@ var DTOWorkspaceUntypedDataUpdatePayload = z240.object({
|
|
|
7183
7183
|
value: z240.unknown()
|
|
7184
7184
|
});
|
|
7185
7185
|
|
|
7186
|
+
// src/api/dto/workspaces/billing.ts
|
|
7187
|
+
import z241 from "zod";
|
|
7188
|
+
var DTOBillingCreditsSpendInput = z241.object({
|
|
7189
|
+
amount: z241.number()
|
|
7190
|
+
});
|
|
7191
|
+
var DTOBillingCreditsSpendResponse = z241.object({
|
|
7192
|
+
hasSpentCredits: z241.boolean()
|
|
7193
|
+
});
|
|
7194
|
+
|
|
7186
7195
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
7187
|
-
var DTOUserDesignSystemsResponse =
|
|
7196
|
+
var DTOUserDesignSystemsResponse = z242.object({
|
|
7188
7197
|
designSystems: DTODesignSystem.array(),
|
|
7189
7198
|
workspaces: DTOWorkspace.array()
|
|
7190
7199
|
});
|
|
7191
7200
|
|
|
7192
7201
|
// src/api/dto/design-systems/version-room.ts
|
|
7193
|
-
import { z as
|
|
7194
|
-
var DTODesignSystemVersionRoom =
|
|
7195
|
-
id:
|
|
7202
|
+
import { z as z243 } from "zod";
|
|
7203
|
+
var DTODesignSystemVersionRoom = z243.object({
|
|
7204
|
+
id: z243.string()
|
|
7196
7205
|
});
|
|
7197
|
-
var DTODesignSystemVersionRoomResponse =
|
|
7206
|
+
var DTODesignSystemVersionRoomResponse = z243.object({
|
|
7198
7207
|
room: DTODesignSystemVersionRoom
|
|
7199
7208
|
});
|
|
7200
7209
|
|
|
7201
7210
|
// src/api/dto/design-systems/version.ts
|
|
7202
|
-
import { z as
|
|
7211
|
+
import { z as z256 } from "zod";
|
|
7203
7212
|
|
|
7204
7213
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
7205
|
-
import { z as
|
|
7214
|
+
import { z as z244 } from "zod";
|
|
7206
7215
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
7207
7216
|
id: true,
|
|
7208
7217
|
workspaceId: true,
|
|
@@ -7214,56 +7223,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
7214
7223
|
}).extend({
|
|
7215
7224
|
meta: ObjectMeta.partial().optional()
|
|
7216
7225
|
});
|
|
7217
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
7226
|
+
var DTODesignSystemUpdateAccessModeInput = z244.object({
|
|
7218
7227
|
accessMode: DesignSystemAccessMode,
|
|
7219
|
-
retain:
|
|
7220
|
-
userIds:
|
|
7221
|
-
inviteIds:
|
|
7228
|
+
retain: z244.object({
|
|
7229
|
+
userIds: z244.string().array(),
|
|
7230
|
+
inviteIds: z244.string().array()
|
|
7222
7231
|
}).optional()
|
|
7223
7232
|
});
|
|
7224
7233
|
|
|
7225
7234
|
// src/api/payloads/design-systems/version.ts
|
|
7226
|
-
import { z as
|
|
7227
|
-
var ObjectMeta2 =
|
|
7228
|
-
name:
|
|
7229
|
-
description:
|
|
7235
|
+
import { z as z245 } from "zod";
|
|
7236
|
+
var ObjectMeta2 = z245.object({
|
|
7237
|
+
name: z245.string().max(150).optional(),
|
|
7238
|
+
description: z245.string().max(2e3).optional()
|
|
7230
7239
|
});
|
|
7231
7240
|
function validateDesignSystemVersion(version) {
|
|
7232
7241
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
7233
7242
|
return urlCompliantRegex.test(version);
|
|
7234
7243
|
}
|
|
7235
|
-
var DTOCreateVersionInput =
|
|
7244
|
+
var DTOCreateVersionInput = z245.object({
|
|
7236
7245
|
meta: ObjectMeta2,
|
|
7237
|
-
version:
|
|
7246
|
+
version: z245.string().refine(validateDesignSystemVersion, {
|
|
7238
7247
|
message: "Invalid semantic versioning format"
|
|
7239
7248
|
}),
|
|
7240
|
-
changeLog:
|
|
7249
|
+
changeLog: z245.string().optional()
|
|
7241
7250
|
});
|
|
7242
|
-
var DTOUpdateVersionInput =
|
|
7251
|
+
var DTOUpdateVersionInput = z245.object({
|
|
7243
7252
|
meta: ObjectMeta2,
|
|
7244
|
-
version:
|
|
7253
|
+
version: z245.string(),
|
|
7245
7254
|
// required for PUT, but not editable
|
|
7246
|
-
changeLog:
|
|
7255
|
+
changeLog: z245.string()
|
|
7247
7256
|
});
|
|
7248
7257
|
|
|
7249
7258
|
// src/api/payloads/documentation/analytics.ts
|
|
7250
|
-
import { z as
|
|
7251
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
7252
|
-
referencePeriod:
|
|
7253
|
-
start:
|
|
7254
|
-
end:
|
|
7259
|
+
import { z as z246 } from "zod";
|
|
7260
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z246.object({
|
|
7261
|
+
referencePeriod: z246.object({
|
|
7262
|
+
start: z246.coerce.date(),
|
|
7263
|
+
end: z246.coerce.date().optional()
|
|
7255
7264
|
}),
|
|
7256
|
-
baselinePeriod:
|
|
7257
|
-
start:
|
|
7258
|
-
end:
|
|
7265
|
+
baselinePeriod: z246.object({
|
|
7266
|
+
start: z246.coerce.date(),
|
|
7267
|
+
end: z246.coerce.date().optional()
|
|
7259
7268
|
})
|
|
7260
7269
|
});
|
|
7261
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
7262
|
-
timeFrames:
|
|
7270
|
+
var DTODocumentationAnalyticsDiffPayload = z246.object({
|
|
7271
|
+
timeFrames: z246.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
7263
7272
|
});
|
|
7264
7273
|
|
|
7265
7274
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7266
|
-
import { z as
|
|
7275
|
+
import { z as z247 } from "zod";
|
|
7267
7276
|
|
|
7268
7277
|
// src/api/dto/documentation/block-definition.ts
|
|
7269
7278
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -7275,79 +7284,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
7275
7284
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
7276
7285
|
|
|
7277
7286
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7278
|
-
var DTOGetBlockDefinitionsQuery =
|
|
7279
|
-
files:
|
|
7287
|
+
var DTOGetBlockDefinitionsQuery = z247.object({
|
|
7288
|
+
files: z247.coerce.boolean().optional()
|
|
7280
7289
|
});
|
|
7281
|
-
var DTOGetBlockDefinitionsOutput =
|
|
7282
|
-
definitions:
|
|
7290
|
+
var DTOGetBlockDefinitionsOutput = z247.object({
|
|
7291
|
+
definitions: z247.array(DTOPageBlockDefinition)
|
|
7283
7292
|
});
|
|
7284
7293
|
|
|
7285
7294
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
7286
|
-
import { z as
|
|
7287
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
7288
|
-
environment:
|
|
7295
|
+
import { z as z248 } from "zod";
|
|
7296
|
+
var DTODocumentationPublishTypeQueryParams = z248.object({
|
|
7297
|
+
environment: z248.enum(["Live", "Preview"])
|
|
7289
7298
|
});
|
|
7290
7299
|
|
|
7291
7300
|
// src/api/payloads/export/pipeline.ts
|
|
7292
|
-
import { z as
|
|
7301
|
+
import { z as z250 } from "zod";
|
|
7293
7302
|
|
|
7294
7303
|
// src/api/dto/export/exporter-property.ts
|
|
7295
|
-
import { z as
|
|
7296
|
-
var PrimitiveValue2 =
|
|
7297
|
-
var ArrayValue2 =
|
|
7298
|
-
var ObjectValue2 =
|
|
7304
|
+
import { z as z249 } from "zod";
|
|
7305
|
+
var PrimitiveValue2 = z249.number().or(z249.boolean()).or(z249.string());
|
|
7306
|
+
var ArrayValue2 = z249.array(z249.string());
|
|
7307
|
+
var ObjectValue2 = z249.record(z249.string());
|
|
7299
7308
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
7300
|
-
var DTOExporterPropertyType =
|
|
7301
|
-
var PropertyDefinitionBase2 =
|
|
7302
|
-
key:
|
|
7303
|
-
title:
|
|
7304
|
-
description:
|
|
7305
|
-
category:
|
|
7306
|
-
dependsOn:
|
|
7307
|
-
});
|
|
7308
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
7309
|
-
label:
|
|
7310
|
-
description:
|
|
7309
|
+
var DTOExporterPropertyType = z249.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
7310
|
+
var PropertyDefinitionBase2 = z249.object({
|
|
7311
|
+
key: z249.string(),
|
|
7312
|
+
title: z249.string(),
|
|
7313
|
+
description: z249.string(),
|
|
7314
|
+
category: z249.string().optional(),
|
|
7315
|
+
dependsOn: z249.record(z249.boolean()).optional()
|
|
7316
|
+
});
|
|
7317
|
+
var DTOExporterPropertyDefinitionEnumOption = z249.object({
|
|
7318
|
+
label: z249.string(),
|
|
7319
|
+
description: z249.string()
|
|
7311
7320
|
});
|
|
7312
7321
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
7313
|
-
type:
|
|
7314
|
-
options:
|
|
7315
|
-
default:
|
|
7322
|
+
type: z249.literal(DTOExporterPropertyType.Enum.Enum),
|
|
7323
|
+
options: z249.record(DTOExporterPropertyDefinitionEnumOption),
|
|
7324
|
+
default: z249.string()
|
|
7316
7325
|
});
|
|
7317
7326
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
7318
|
-
type:
|
|
7319
|
-
default:
|
|
7327
|
+
type: z249.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
7328
|
+
default: z249.boolean()
|
|
7320
7329
|
});
|
|
7321
7330
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
7322
|
-
type:
|
|
7323
|
-
default:
|
|
7324
|
-
isMultiline:
|
|
7331
|
+
type: z249.literal(DTOExporterPropertyType.Enum.String),
|
|
7332
|
+
default: z249.string(),
|
|
7333
|
+
isMultiline: z249.boolean().optional()
|
|
7325
7334
|
});
|
|
7326
7335
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
7327
|
-
type:
|
|
7328
|
-
default:
|
|
7336
|
+
type: z249.literal(DTOExporterPropertyType.Enum.Number),
|
|
7337
|
+
default: z249.number()
|
|
7329
7338
|
});
|
|
7330
7339
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
7331
|
-
type:
|
|
7340
|
+
type: z249.literal(DTOExporterPropertyType.Enum.Array),
|
|
7332
7341
|
default: ArrayValue2
|
|
7333
7342
|
});
|
|
7334
7343
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
7335
|
-
type:
|
|
7344
|
+
type: z249.literal(DTOExporterPropertyType.Enum.Object),
|
|
7336
7345
|
default: ObjectValue2,
|
|
7337
|
-
allowedKeys:
|
|
7338
|
-
options:
|
|
7339
|
-
type:
|
|
7346
|
+
allowedKeys: z249.object({
|
|
7347
|
+
options: z249.string().array(),
|
|
7348
|
+
type: z249.string()
|
|
7340
7349
|
}).optional(),
|
|
7341
|
-
allowedValues:
|
|
7342
|
-
type:
|
|
7350
|
+
allowedValues: z249.object({
|
|
7351
|
+
type: z249.string()
|
|
7343
7352
|
}).optional()
|
|
7344
7353
|
});
|
|
7345
7354
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
7346
|
-
type:
|
|
7347
|
-
language:
|
|
7348
|
-
default:
|
|
7355
|
+
type: z249.literal(DTOExporterPropertyType.Enum.Code),
|
|
7356
|
+
language: z249.string(),
|
|
7357
|
+
default: z249.string()
|
|
7349
7358
|
});
|
|
7350
|
-
var DTOExporterPropertyDefinition =
|
|
7359
|
+
var DTOExporterPropertyDefinition = z249.discriminatedUnion("type", [
|
|
7351
7360
|
DTOExporterPropertyDefinitionEnum,
|
|
7352
7361
|
DTOExporterPropertyDefinitionBoolean,
|
|
7353
7362
|
DTOExporterPropertyDefinitionString,
|
|
@@ -7356,84 +7365,84 @@ var DTOExporterPropertyDefinition = z248.discriminatedUnion("type", [
|
|
|
7356
7365
|
DTOExporterPropertyDefinitionObject,
|
|
7357
7366
|
DTOExporterPropertyDefinitionCode
|
|
7358
7367
|
]);
|
|
7359
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
7368
|
+
var DTOExporterPropertyDefinitionsResponse = z249.object({
|
|
7360
7369
|
properties: DTOExporterPropertyDefinition.array()
|
|
7361
7370
|
});
|
|
7362
|
-
var DTOExporterPropertyValueMap =
|
|
7371
|
+
var DTOExporterPropertyValueMap = z249.record(DTOExporterPropertyValue);
|
|
7363
7372
|
|
|
7364
7373
|
// src/api/payloads/export/pipeline.ts
|
|
7365
|
-
var GitDestinationOptions =
|
|
7366
|
-
branch:
|
|
7367
|
-
commitMessage:
|
|
7368
|
-
commitAuthorName:
|
|
7369
|
-
commitAuthorEmail:
|
|
7370
|
-
pullRequestTitle:
|
|
7371
|
-
pullRequestDescription:
|
|
7372
|
-
relativePath:
|
|
7373
|
-
purgeDirectory:
|
|
7374
|
-
});
|
|
7375
|
-
var DTOPipelineCreateBody =
|
|
7376
|
-
name:
|
|
7377
|
-
exporterId:
|
|
7378
|
-
designSystemId:
|
|
7379
|
-
isEnabled:
|
|
7374
|
+
var GitDestinationOptions = z250.object({
|
|
7375
|
+
branch: z250.string().min(1).nullish(),
|
|
7376
|
+
commitMessage: z250.string().min(1).nullish(),
|
|
7377
|
+
commitAuthorName: z250.string().min(1).nullish(),
|
|
7378
|
+
commitAuthorEmail: z250.string().email().nullish(),
|
|
7379
|
+
pullRequestTitle: z250.string().min(1).nullish(),
|
|
7380
|
+
pullRequestDescription: z250.string().min(1).nullish(),
|
|
7381
|
+
relativePath: z250.string().nullish(),
|
|
7382
|
+
purgeDirectory: z250.boolean().nullish()
|
|
7383
|
+
});
|
|
7384
|
+
var DTOPipelineCreateBody = z250.object({
|
|
7385
|
+
name: z250.string(),
|
|
7386
|
+
exporterId: z250.string(),
|
|
7387
|
+
designSystemId: z250.string(),
|
|
7388
|
+
isEnabled: z250.boolean(),
|
|
7380
7389
|
eventType: PipelineEventType,
|
|
7381
|
-
brandPersistentId:
|
|
7382
|
-
themePersistentId:
|
|
7383
|
-
themePersistentIds:
|
|
7390
|
+
brandPersistentId: z250.string().optional(),
|
|
7391
|
+
themePersistentId: z250.string().optional(),
|
|
7392
|
+
themePersistentIds: z250.string().array().optional(),
|
|
7384
7393
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7385
7394
|
destination: PipelineDestinationType.optional(),
|
|
7386
7395
|
gitQuery: GitObjectsQuery,
|
|
7387
|
-
destinations:
|
|
7396
|
+
destinations: z250.object({
|
|
7388
7397
|
s3: ExporterDestinationS3.nullish(),
|
|
7389
7398
|
azure: ExporterDestinationAzure.nullish(),
|
|
7390
7399
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7391
7400
|
github: ExporterDestinationGithub.nullish(),
|
|
7392
7401
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7393
7402
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7394
|
-
webhookUrl:
|
|
7403
|
+
webhookUrl: z250.string().nullish()
|
|
7395
7404
|
})
|
|
7396
7405
|
});
|
|
7397
|
-
var DTOPipelineUpdateBody =
|
|
7398
|
-
exporterId:
|
|
7399
|
-
name:
|
|
7400
|
-
isEnabled:
|
|
7406
|
+
var DTOPipelineUpdateBody = z250.object({
|
|
7407
|
+
exporterId: z250.string().optional(),
|
|
7408
|
+
name: z250.string().optional(),
|
|
7409
|
+
isEnabled: z250.boolean().optional(),
|
|
7401
7410
|
eventType: PipelineEventType.optional(),
|
|
7402
|
-
brandPersistentId:
|
|
7403
|
-
themePersistentId:
|
|
7404
|
-
themePersistentIds:
|
|
7411
|
+
brandPersistentId: z250.string().optional(),
|
|
7412
|
+
themePersistentId: z250.string().optional(),
|
|
7413
|
+
themePersistentIds: z250.string().array().optional(),
|
|
7405
7414
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7406
7415
|
destination: PipelineDestinationType.optional(),
|
|
7407
7416
|
gitQuery: GitObjectsQuery.optional(),
|
|
7408
|
-
destinations:
|
|
7417
|
+
destinations: z250.object({
|
|
7409
7418
|
s3: ExporterDestinationS3.nullish(),
|
|
7410
7419
|
azure: ExporterDestinationAzure.nullish(),
|
|
7411
7420
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7412
7421
|
github: ExporterDestinationGithub.nullish(),
|
|
7413
7422
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7414
7423
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7415
|
-
webhookUrl:
|
|
7424
|
+
webhookUrl: z250.string().nullish()
|
|
7416
7425
|
}).optional(),
|
|
7417
7426
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
7418
7427
|
});
|
|
7419
|
-
var DTOPipelineTriggerBody =
|
|
7420
|
-
designSystemVersionId:
|
|
7428
|
+
var DTOPipelineTriggerBody = z250.object({
|
|
7429
|
+
designSystemVersionId: z250.string()
|
|
7421
7430
|
});
|
|
7422
7431
|
|
|
7423
7432
|
// src/api/payloads/liveblocks/auth.ts
|
|
7424
|
-
import { z as
|
|
7425
|
-
var DTOLiveblocksAuthRequest =
|
|
7426
|
-
room:
|
|
7433
|
+
import { z as z251 } from "zod";
|
|
7434
|
+
var DTOLiveblocksAuthRequest = z251.object({
|
|
7435
|
+
room: z251.string().optional()
|
|
7427
7436
|
});
|
|
7428
7437
|
|
|
7429
7438
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
7430
|
-
import { z as
|
|
7431
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
7439
|
+
import { z as z252 } from "zod";
|
|
7440
|
+
var DTOUpdateUserNotificationSettingsPayload = z252.object({
|
|
7432
7441
|
notificationSettings: UserNotificationSettings
|
|
7433
7442
|
});
|
|
7434
|
-
var DTOUserNotificationSettingsResponse =
|
|
7435
|
-
userId:
|
|
7436
|
-
workspaceId:
|
|
7443
|
+
var DTOUserNotificationSettingsResponse = z252.object({
|
|
7444
|
+
userId: z252.string(),
|
|
7445
|
+
workspaceId: z252.string(),
|
|
7437
7446
|
notificationSettings: UserNotificationSettings
|
|
7438
7447
|
});
|
|
7439
7448
|
|
|
@@ -7441,13 +7450,13 @@ var DTOUserNotificationSettingsResponse = z251.object({
|
|
|
7441
7450
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
7442
7451
|
|
|
7443
7452
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
7444
|
-
import { z as
|
|
7445
|
-
var DTOTransferOwnershipPayload =
|
|
7446
|
-
newOwnerId:
|
|
7453
|
+
import { z as z253 } from "zod";
|
|
7454
|
+
var DTOTransferOwnershipPayload = z253.object({
|
|
7455
|
+
newOwnerId: z253.string()
|
|
7447
7456
|
});
|
|
7448
7457
|
|
|
7449
7458
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
7450
|
-
import { z as
|
|
7459
|
+
import { z as z254 } from "zod";
|
|
7451
7460
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
7452
7461
|
function validateSsoPayload(ssoPayload) {
|
|
7453
7462
|
const keys = [];
|
|
@@ -7470,21 +7479,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
7470
7479
|
keys
|
|
7471
7480
|
};
|
|
7472
7481
|
}
|
|
7473
|
-
var NpmRegistryInput =
|
|
7474
|
-
enabledScopes:
|
|
7475
|
-
customRegistryUrl:
|
|
7476
|
-
bypassProxy:
|
|
7477
|
-
npmProxyRegistryConfigId:
|
|
7478
|
-
npmProxyVersion:
|
|
7479
|
-
registryType:
|
|
7480
|
-
authType:
|
|
7481
|
-
authHeaderName:
|
|
7482
|
-
authHeaderValue:
|
|
7483
|
-
accessToken:
|
|
7484
|
-
username:
|
|
7485
|
-
password:
|
|
7486
|
-
});
|
|
7487
|
-
var WorkspaceConfigurationPayload =
|
|
7482
|
+
var NpmRegistryInput = z254.object({
|
|
7483
|
+
enabledScopes: z254.array(z254.string()),
|
|
7484
|
+
customRegistryUrl: z254.string().optional(),
|
|
7485
|
+
bypassProxy: z254.boolean().optional(),
|
|
7486
|
+
npmProxyRegistryConfigId: z254.string().optional(),
|
|
7487
|
+
npmProxyVersion: z254.number().optional(),
|
|
7488
|
+
registryType: z254.string(),
|
|
7489
|
+
authType: z254.string(),
|
|
7490
|
+
authHeaderName: z254.string(),
|
|
7491
|
+
authHeaderValue: z254.string(),
|
|
7492
|
+
accessToken: z254.string(),
|
|
7493
|
+
username: z254.string(),
|
|
7494
|
+
password: z254.string()
|
|
7495
|
+
});
|
|
7496
|
+
var WorkspaceConfigurationPayload = z254.object({
|
|
7488
7497
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
7489
7498
|
sso: SsoProvider.partial().optional(),
|
|
7490
7499
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -7492,107 +7501,107 @@ var WorkspaceConfigurationPayload = z253.object({
|
|
|
7492
7501
|
});
|
|
7493
7502
|
|
|
7494
7503
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
7495
|
-
import { z as
|
|
7496
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
7504
|
+
import { z as z255 } from "zod";
|
|
7505
|
+
var DTOWorkspaceIntegrationOauthInput = z255.object({
|
|
7497
7506
|
type: IntegrationType
|
|
7498
7507
|
});
|
|
7499
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
7508
|
+
var DTOWorkspaceIntegrationPATInput = z255.object({
|
|
7500
7509
|
type: IntegrationType,
|
|
7501
7510
|
token: IntegrationToken
|
|
7502
7511
|
});
|
|
7503
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
7504
|
-
organization:
|
|
7512
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z255.object({
|
|
7513
|
+
organization: z255.string().optional(),
|
|
7505
7514
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
7506
|
-
project:
|
|
7515
|
+
project: z255.string().optional(),
|
|
7507
7516
|
// Only for Bitbucket and Azure
|
|
7508
|
-
repository:
|
|
7517
|
+
repository: z255.string().optional(),
|
|
7509
7518
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
7510
|
-
branch:
|
|
7519
|
+
branch: z255.string().optional(),
|
|
7511
7520
|
// For all providers, useful for PR creations.
|
|
7512
|
-
user:
|
|
7521
|
+
user: z255.string().optional()
|
|
7513
7522
|
// Only for Gitlab User Repositories
|
|
7514
7523
|
});
|
|
7515
7524
|
|
|
7516
7525
|
// src/api/dto/design-systems/version.ts
|
|
7517
|
-
var DTODesignSystemVersion =
|
|
7518
|
-
id:
|
|
7519
|
-
createdAt:
|
|
7526
|
+
var DTODesignSystemVersion = z256.object({
|
|
7527
|
+
id: z256.string(),
|
|
7528
|
+
createdAt: z256.coerce.date(),
|
|
7520
7529
|
meta: ObjectMeta,
|
|
7521
|
-
version:
|
|
7522
|
-
isReadonly:
|
|
7523
|
-
changeLog:
|
|
7524
|
-
designSystemId:
|
|
7530
|
+
version: z256.string(),
|
|
7531
|
+
isReadonly: z256.boolean(),
|
|
7532
|
+
changeLog: z256.string(),
|
|
7533
|
+
designSystemId: z256.string()
|
|
7525
7534
|
});
|
|
7526
|
-
var DTODesignSystemVersionsListResponse =
|
|
7527
|
-
designSystemVersions:
|
|
7535
|
+
var DTODesignSystemVersionsListResponse = z256.object({
|
|
7536
|
+
designSystemVersions: z256.array(DTODesignSystemVersion)
|
|
7528
7537
|
});
|
|
7529
|
-
var DTODesignSystemVersionGetResponse =
|
|
7538
|
+
var DTODesignSystemVersionGetResponse = z256.object({
|
|
7530
7539
|
designSystemVersion: DTODesignSystemVersion
|
|
7531
7540
|
});
|
|
7532
|
-
var DTODesignSystemVersionCreationResponse =
|
|
7541
|
+
var DTODesignSystemVersionCreationResponse = z256.object({
|
|
7533
7542
|
meta: ObjectMeta,
|
|
7534
|
-
version:
|
|
7535
|
-
changeLog:
|
|
7536
|
-
isReadOnly:
|
|
7537
|
-
designSystemId:
|
|
7538
|
-
jobId:
|
|
7539
|
-
});
|
|
7540
|
-
var VersionSQSPayload =
|
|
7541
|
-
jobId:
|
|
7542
|
-
designSystemId:
|
|
7543
|
+
version: z256.string(),
|
|
7544
|
+
changeLog: z256.string(),
|
|
7545
|
+
isReadOnly: z256.boolean(),
|
|
7546
|
+
designSystemId: z256.string(),
|
|
7547
|
+
jobId: z256.string()
|
|
7548
|
+
});
|
|
7549
|
+
var VersionSQSPayload = z256.object({
|
|
7550
|
+
jobId: z256.string(),
|
|
7551
|
+
designSystemId: z256.string(),
|
|
7543
7552
|
input: DTOCreateVersionInput
|
|
7544
7553
|
});
|
|
7545
|
-
var DTODesignSystemVersionJobsResponse =
|
|
7546
|
-
jobs:
|
|
7554
|
+
var DTODesignSystemVersionJobsResponse = z256.object({
|
|
7555
|
+
jobs: z256.array(VersionCreationJob)
|
|
7547
7556
|
});
|
|
7548
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
7557
|
+
var DTODesignSystemVersionJobStatusResponse = z256.object({
|
|
7549
7558
|
job: VersionCreationJob
|
|
7550
7559
|
});
|
|
7551
7560
|
|
|
7552
7561
|
// src/api/dto/design-systems/view.ts
|
|
7553
|
-
import { z as
|
|
7554
|
-
var DTOElementViewColumnSharedAttributes =
|
|
7555
|
-
id:
|
|
7556
|
-
persistentId:
|
|
7557
|
-
width:
|
|
7562
|
+
import { z as z257 } from "zod";
|
|
7563
|
+
var DTOElementViewColumnSharedAttributes = z257.object({
|
|
7564
|
+
id: z257.string(),
|
|
7565
|
+
persistentId: z257.string(),
|
|
7566
|
+
width: z257.number()
|
|
7558
7567
|
});
|
|
7559
7568
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7560
|
-
type:
|
|
7569
|
+
type: z257.literal("BaseProperty"),
|
|
7561
7570
|
basePropertyType: ElementViewBaseColumnType
|
|
7562
7571
|
});
|
|
7563
7572
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7564
|
-
type:
|
|
7565
|
-
propertyDefinitionId:
|
|
7573
|
+
type: z257.literal("PropertyDefinition"),
|
|
7574
|
+
propertyDefinitionId: z257.string()
|
|
7566
7575
|
});
|
|
7567
7576
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7568
|
-
type:
|
|
7569
|
-
themeId:
|
|
7577
|
+
type: z257.literal("Theme"),
|
|
7578
|
+
themeId: z257.string()
|
|
7570
7579
|
});
|
|
7571
|
-
var DTOElementViewColumn =
|
|
7580
|
+
var DTOElementViewColumn = z257.discriminatedUnion("type", [
|
|
7572
7581
|
DTOElementViewBasePropertyColumn,
|
|
7573
7582
|
DTOElementViewPropertyDefinitionColumn,
|
|
7574
7583
|
DTOElementViewThemeColumn
|
|
7575
7584
|
]);
|
|
7576
|
-
var DTOElementView =
|
|
7585
|
+
var DTOElementView = z257.object({
|
|
7577
7586
|
meta: ObjectMeta,
|
|
7578
|
-
persistentId:
|
|
7587
|
+
persistentId: z257.string(),
|
|
7579
7588
|
targetElementType: ElementPropertyTargetType,
|
|
7580
|
-
id:
|
|
7581
|
-
isDefault:
|
|
7582
|
-
columns:
|
|
7589
|
+
id: z257.string(),
|
|
7590
|
+
isDefault: z257.boolean(),
|
|
7591
|
+
columns: z257.array(DTOElementViewColumn)
|
|
7583
7592
|
});
|
|
7584
|
-
var DTOElementViewsListResponse =
|
|
7585
|
-
elementDataViews:
|
|
7593
|
+
var DTOElementViewsListResponse = z257.object({
|
|
7594
|
+
elementDataViews: z257.array(DTOElementView)
|
|
7586
7595
|
});
|
|
7587
7596
|
|
|
7588
7597
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
7589
|
-
var DTOAppBootstrapDataQuery =
|
|
7590
|
-
preferredWorkspaceId:
|
|
7591
|
-
preferredDesignSystemId:
|
|
7592
|
-
preferredVersionId:
|
|
7593
|
-
preferredBrandId:
|
|
7598
|
+
var DTOAppBootstrapDataQuery = z258.object({
|
|
7599
|
+
preferredWorkspaceId: z258.string().optional(),
|
|
7600
|
+
preferredDesignSystemId: z258.string().optional(),
|
|
7601
|
+
preferredVersionId: z258.string().optional(),
|
|
7602
|
+
preferredBrandId: z258.string().optional()
|
|
7594
7603
|
});
|
|
7595
|
-
var DTOAppBootstrapDataResponse =
|
|
7604
|
+
var DTOAppBootstrapDataResponse = z258.object({
|
|
7596
7605
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
7597
7606
|
designSystem: DTODesignSystem.optional(),
|
|
7598
7607
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -7600,92 +7609,92 @@ var DTOAppBootstrapDataResponse = z257.object({
|
|
|
7600
7609
|
});
|
|
7601
7610
|
|
|
7602
7611
|
// src/api/dto/collections/token-collection.ts
|
|
7603
|
-
import { z as
|
|
7604
|
-
var DTOTokenCollection =
|
|
7605
|
-
id:
|
|
7606
|
-
persistentId:
|
|
7607
|
-
designSystemVersionId:
|
|
7612
|
+
import { z as z259 } from "zod";
|
|
7613
|
+
var DTOTokenCollection = z259.object({
|
|
7614
|
+
id: z259.string(),
|
|
7615
|
+
persistentId: z259.string(),
|
|
7616
|
+
designSystemVersionId: z259.string(),
|
|
7608
7617
|
meta: ObjectMeta,
|
|
7609
7618
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
7610
|
-
elementPropertyOptionId:
|
|
7611
|
-
createdAt:
|
|
7612
|
-
updatedAt:
|
|
7619
|
+
elementPropertyOptionId: z259.string(),
|
|
7620
|
+
createdAt: z259.coerce.date(),
|
|
7621
|
+
updatedAt: z259.coerce.date(),
|
|
7613
7622
|
origin: CollectionOrigin.optional()
|
|
7614
7623
|
});
|
|
7615
|
-
var DTOTokenCollectionsListReponse =
|
|
7624
|
+
var DTOTokenCollectionsListReponse = z259.object({
|
|
7616
7625
|
collections: DTOTokenCollection.array()
|
|
7617
7626
|
});
|
|
7618
7627
|
|
|
7619
7628
|
// src/api/dto/design-tokens/design-token.ts
|
|
7620
|
-
import { z as
|
|
7629
|
+
import { z as z260 } from "zod";
|
|
7621
7630
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
7622
|
-
|
|
7623
|
-
id:
|
|
7624
|
-
persistentId:
|
|
7625
|
-
designSystemVersionId:
|
|
7631
|
+
z260.object({
|
|
7632
|
+
id: z260.string(),
|
|
7633
|
+
persistentId: z260.string(),
|
|
7634
|
+
designSystemVersionId: z260.string(),
|
|
7626
7635
|
meta: ObjectMeta,
|
|
7627
7636
|
originStyle: DesignTokenOrigin.optional(),
|
|
7628
|
-
brandId:
|
|
7629
|
-
collectionId:
|
|
7630
|
-
updatedAt:
|
|
7637
|
+
brandId: z260.string(),
|
|
7638
|
+
collectionId: z260.string().optional(),
|
|
7639
|
+
updatedAt: z260.coerce.date()
|
|
7631
7640
|
})
|
|
7632
7641
|
);
|
|
7633
|
-
var DTODesignTokenListResponse =
|
|
7642
|
+
var DTODesignTokenListResponse = z260.object({
|
|
7634
7643
|
tokens: DTODesignToken.array()
|
|
7635
7644
|
});
|
|
7636
|
-
var DTODesignTokenResponse =
|
|
7645
|
+
var DTODesignTokenResponse = z260.object({
|
|
7637
7646
|
token: DTODesignToken
|
|
7638
7647
|
});
|
|
7639
|
-
var DTODesignTokenGroup =
|
|
7640
|
-
id:
|
|
7648
|
+
var DTODesignTokenGroup = z260.object({
|
|
7649
|
+
id: z260.string(),
|
|
7641
7650
|
tokenType: DesignTokenType,
|
|
7642
|
-
persistentId:
|
|
7643
|
-
isRoot:
|
|
7644
|
-
brandId:
|
|
7651
|
+
persistentId: z260.string(),
|
|
7652
|
+
isRoot: z260.boolean(),
|
|
7653
|
+
brandId: z260.string(),
|
|
7645
7654
|
meta: ObjectMeta,
|
|
7646
|
-
childrenIds:
|
|
7655
|
+
childrenIds: z260.string().array()
|
|
7647
7656
|
});
|
|
7648
|
-
var DTODesignTokenGroupListResponse =
|
|
7657
|
+
var DTODesignTokenGroupListResponse = z260.object({
|
|
7649
7658
|
groups: DTODesignTokenGroup.array()
|
|
7650
7659
|
});
|
|
7651
|
-
var DTODesignTokenGroupResponse =
|
|
7660
|
+
var DTODesignTokenGroupResponse = z260.object({
|
|
7652
7661
|
group: DTODesignTokenGroup
|
|
7653
7662
|
});
|
|
7654
7663
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
7655
|
-
|
|
7656
|
-
persistentId:
|
|
7664
|
+
z260.object({
|
|
7665
|
+
persistentId: z260.string(),
|
|
7657
7666
|
meta: ObjectMeta,
|
|
7658
|
-
brandId:
|
|
7659
|
-
groupPersistentId:
|
|
7667
|
+
brandId: z260.string(),
|
|
7668
|
+
groupPersistentId: z260.string().optional()
|
|
7660
7669
|
})
|
|
7661
7670
|
);
|
|
7662
|
-
var DTODesignTokenGroupCreatePayload =
|
|
7663
|
-
persistentId:
|
|
7671
|
+
var DTODesignTokenGroupCreatePayload = z260.object({
|
|
7672
|
+
persistentId: z260.string(),
|
|
7664
7673
|
meta: ObjectMeta,
|
|
7665
|
-
brandId:
|
|
7666
|
-
parentId:
|
|
7674
|
+
brandId: z260.string(),
|
|
7675
|
+
parentId: z260.string().optional(),
|
|
7667
7676
|
tokenType: DesignTokenType,
|
|
7668
|
-
childrenIds:
|
|
7677
|
+
childrenIds: z260.string().array()
|
|
7669
7678
|
});
|
|
7670
7679
|
|
|
7671
7680
|
// src/api/dto/documentation/analytics-v2.ts
|
|
7672
|
-
import { z as
|
|
7673
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
7674
|
-
start:
|
|
7675
|
-
end:
|
|
7681
|
+
import { z as z261 } from "zod";
|
|
7682
|
+
var DTODocumentationAnalyticsTimeFrame = z261.object({
|
|
7683
|
+
start: z261.coerce.date(),
|
|
7684
|
+
end: z261.coerce.date().optional()
|
|
7676
7685
|
});
|
|
7677
|
-
var DTOPublishedDocVisitData =
|
|
7678
|
-
timestamp:
|
|
7679
|
-
versionId:
|
|
7680
|
-
locale:
|
|
7681
|
-
visits:
|
|
7682
|
-
sessions:
|
|
7686
|
+
var DTOPublishedDocVisitData = z261.object({
|
|
7687
|
+
timestamp: z261.coerce.date(),
|
|
7688
|
+
versionId: z261.string(),
|
|
7689
|
+
locale: z261.string().optional(),
|
|
7690
|
+
visits: z261.number(),
|
|
7691
|
+
sessions: z261.number()
|
|
7683
7692
|
});
|
|
7684
7693
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
7685
|
-
pagePersistentId:
|
|
7694
|
+
pagePersistentId: z261.string()
|
|
7686
7695
|
});
|
|
7687
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
7688
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7696
|
+
var DTOPublishedDocVisitHeatMapDay = z261.number().array().length(12);
|
|
7697
|
+
var DTOPublishedDocVisitHeatMapWeek = z261.object({
|
|
7689
7698
|
/**
|
|
7690
7699
|
* For which timeframe it was calculated
|
|
7691
7700
|
*/
|
|
@@ -7698,65 +7707,65 @@ var DTOPublishedDocVisitHeatMapWeek = z260.object({
|
|
|
7698
7707
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
7699
7708
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
7700
7709
|
});
|
|
7701
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7710
|
+
var DTOPublishedDocAnalyticsComparisonData = z261.object({
|
|
7702
7711
|
/**
|
|
7703
7712
|
* For which timeframe it was calculated
|
|
7704
7713
|
*/
|
|
7705
7714
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7706
|
-
priorVisitCount:
|
|
7707
|
-
priorSessionCount:
|
|
7708
|
-
currentVisitCount:
|
|
7709
|
-
currentSessionCount:
|
|
7715
|
+
priorVisitCount: z261.number(),
|
|
7716
|
+
priorSessionCount: z261.number(),
|
|
7717
|
+
currentVisitCount: z261.number(),
|
|
7718
|
+
currentSessionCount: z261.number()
|
|
7710
7719
|
});
|
|
7711
7720
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7712
|
-
pagePersistentId:
|
|
7721
|
+
pagePersistentId: z261.string()
|
|
7713
7722
|
});
|
|
7714
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7723
|
+
var DTODocumentationPageAnalyticsResponse = z261.object({
|
|
7715
7724
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7716
7725
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7717
7726
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7718
7727
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7719
7728
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7720
7729
|
});
|
|
7721
|
-
var DTODocumentationAnalyticsRequest =
|
|
7722
|
-
timeFrames:
|
|
7730
|
+
var DTODocumentationAnalyticsRequest = z261.object({
|
|
7731
|
+
timeFrames: z261.array(DTODocumentationAnalyticsTimeFrame)
|
|
7723
7732
|
});
|
|
7724
7733
|
|
|
7725
7734
|
// src/api/dto/documentation/analytics.ts
|
|
7726
|
-
import { z as
|
|
7727
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7728
|
-
startDate:
|
|
7729
|
-
endDate:
|
|
7730
|
-
currentVisitCount:
|
|
7731
|
-
currentSessionCount:
|
|
7732
|
-
priorVisitCount:
|
|
7733
|
-
priorSessionCount:
|
|
7735
|
+
import { z as z262 } from "zod";
|
|
7736
|
+
var DTODocumentationPageAnalyticsDifference = z262.object({
|
|
7737
|
+
startDate: z262.coerce.date(),
|
|
7738
|
+
endDate: z262.coerce.date().optional(),
|
|
7739
|
+
currentVisitCount: z262.number(),
|
|
7740
|
+
currentSessionCount: z262.number(),
|
|
7741
|
+
priorVisitCount: z262.number(),
|
|
7742
|
+
priorSessionCount: z262.number()
|
|
7734
7743
|
});
|
|
7735
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7736
|
-
differences:
|
|
7744
|
+
var DTODocumentationPageIntervalDifferenceResponse = z262.object({
|
|
7745
|
+
differences: z262.array(DTODocumentationPageAnalyticsDifference)
|
|
7737
7746
|
});
|
|
7738
7747
|
|
|
7739
7748
|
// src/api/dto/documentation/anchor.ts
|
|
7740
|
-
import { z as
|
|
7749
|
+
import { z as z263 } from "zod";
|
|
7741
7750
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7742
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7743
|
-
anchors:
|
|
7751
|
+
var DTOGetDocumentationPageAnchorsResponse = z263.object({
|
|
7752
|
+
anchors: z263.array(DTODocumentationPageAnchor)
|
|
7744
7753
|
});
|
|
7745
7754
|
|
|
7746
7755
|
// src/api/dto/documentation/approvals.ts
|
|
7747
|
-
import { z as
|
|
7748
|
-
var DTODocumentationPageApprovalState =
|
|
7756
|
+
import { z as z264 } from "zod";
|
|
7757
|
+
var DTODocumentationPageApprovalState = z264.object({
|
|
7749
7758
|
approvalState: DocumentationPageApprovalState,
|
|
7750
|
-
pagePersistentId:
|
|
7751
|
-
updatedByUserId:
|
|
7752
|
-
designSystemVersionId:
|
|
7753
|
-
updatedAt:
|
|
7754
|
-
createdAt:
|
|
7755
|
-
});
|
|
7756
|
-
var DTODocumentationGroupApprovalState =
|
|
7757
|
-
persistentId:
|
|
7758
|
-
groupPersistentId:
|
|
7759
|
-
designSystemVersionId:
|
|
7759
|
+
pagePersistentId: z264.string(),
|
|
7760
|
+
updatedByUserId: z264.string(),
|
|
7761
|
+
designSystemVersionId: z264.string(),
|
|
7762
|
+
updatedAt: z264.coerce.date(),
|
|
7763
|
+
createdAt: z264.coerce.date()
|
|
7764
|
+
});
|
|
7765
|
+
var DTODocumentationGroupApprovalState = z264.object({
|
|
7766
|
+
persistentId: z264.string(),
|
|
7767
|
+
groupPersistentId: z264.string(),
|
|
7768
|
+
designSystemVersionId: z264.string(),
|
|
7760
7769
|
approvalState: DocumentationPageApprovalState
|
|
7761
7770
|
});
|
|
7762
7771
|
|
|
@@ -7764,68 +7773,68 @@ var DTODocumentationGroupApprovalState = z263.object({
|
|
|
7764
7773
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7765
7774
|
|
|
7766
7775
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7767
|
-
import { z as
|
|
7776
|
+
import { z as z269 } from "zod";
|
|
7768
7777
|
|
|
7769
7778
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7770
|
-
import { z as
|
|
7779
|
+
import { z as z268 } from "zod";
|
|
7771
7780
|
|
|
7772
7781
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7773
|
-
import { z as
|
|
7782
|
+
import { z as z266 } from "zod";
|
|
7774
7783
|
|
|
7775
7784
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7776
|
-
import { z as
|
|
7785
|
+
import { z as z265 } from "zod";
|
|
7777
7786
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7778
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7779
|
-
showSidebar:
|
|
7780
|
-
isPrivate:
|
|
7781
|
-
isHidden:
|
|
7787
|
+
var DTODocumentationItemConfigurationV2 = z265.object({
|
|
7788
|
+
showSidebar: z265.boolean(),
|
|
7789
|
+
isPrivate: z265.boolean(),
|
|
7790
|
+
isHidden: z265.boolean(),
|
|
7782
7791
|
header: DTODocumentationItemHeaderV2
|
|
7783
7792
|
});
|
|
7784
7793
|
|
|
7785
7794
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7786
|
-
var DTODocumentationDraftChangeType =
|
|
7787
|
-
var DTODocumentationDraftStateCreated =
|
|
7788
|
-
changeType:
|
|
7789
|
-
});
|
|
7790
|
-
var DTODocumentationDraftStateUpdated =
|
|
7791
|
-
changeType:
|
|
7792
|
-
changes:
|
|
7793
|
-
previousTitle:
|
|
7795
|
+
var DTODocumentationDraftChangeType = z266.enum(["Created", "Updated", "Deleted"]);
|
|
7796
|
+
var DTODocumentationDraftStateCreated = z266.object({
|
|
7797
|
+
changeType: z266.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7798
|
+
});
|
|
7799
|
+
var DTODocumentationDraftStateUpdated = z266.object({
|
|
7800
|
+
changeType: z266.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7801
|
+
changes: z266.object({
|
|
7802
|
+
previousTitle: z266.string().optional(),
|
|
7794
7803
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7795
|
-
previousContentHash:
|
|
7804
|
+
previousContentHash: z266.string().optional()
|
|
7796
7805
|
})
|
|
7797
7806
|
});
|
|
7798
|
-
var DTODocumentationDraftStateDeleted =
|
|
7799
|
-
changeType:
|
|
7800
|
-
deletedAt:
|
|
7801
|
-
deletedByUserId:
|
|
7807
|
+
var DTODocumentationDraftStateDeleted = z266.object({
|
|
7808
|
+
changeType: z266.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7809
|
+
deletedAt: z266.coerce.date(),
|
|
7810
|
+
deletedByUserId: z266.string()
|
|
7802
7811
|
});
|
|
7803
|
-
var DTODocumentationDraftState =
|
|
7812
|
+
var DTODocumentationDraftState = z266.discriminatedUnion("changeType", [
|
|
7804
7813
|
DTODocumentationDraftStateCreated,
|
|
7805
7814
|
DTODocumentationDraftStateUpdated,
|
|
7806
7815
|
DTODocumentationDraftStateDeleted
|
|
7807
7816
|
]);
|
|
7808
7817
|
|
|
7809
7818
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7810
|
-
import { z as
|
|
7811
|
-
var DTODocumentationPublishMetadata =
|
|
7812
|
-
lastPublishedByUserId:
|
|
7813
|
-
lastPublishedAt:
|
|
7819
|
+
import { z as z267 } from "zod";
|
|
7820
|
+
var DTODocumentationPublishMetadata = z267.object({
|
|
7821
|
+
lastPublishedByUserId: z267.string(),
|
|
7822
|
+
lastPublishedAt: z267.coerce.date()
|
|
7814
7823
|
});
|
|
7815
7824
|
|
|
7816
7825
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7817
|
-
var DTODocumentationPageV2 =
|
|
7818
|
-
id:
|
|
7819
|
-
persistentId:
|
|
7820
|
-
designSystemVersionId:
|
|
7821
|
-
title:
|
|
7826
|
+
var DTODocumentationPageV2 = z268.object({
|
|
7827
|
+
id: z268.string(),
|
|
7828
|
+
persistentId: z268.string(),
|
|
7829
|
+
designSystemVersionId: z268.string(),
|
|
7830
|
+
title: z268.string(),
|
|
7822
7831
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7823
|
-
shortPersistentId:
|
|
7824
|
-
slug:
|
|
7825
|
-
userSlug:
|
|
7826
|
-
createdAt:
|
|
7827
|
-
updatedAt:
|
|
7828
|
-
path:
|
|
7832
|
+
shortPersistentId: z268.string(),
|
|
7833
|
+
slug: z268.string().optional(),
|
|
7834
|
+
userSlug: z268.string().optional(),
|
|
7835
|
+
createdAt: z268.coerce.date(),
|
|
7836
|
+
updatedAt: z268.coerce.date(),
|
|
7837
|
+
path: z268.string(),
|
|
7829
7838
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7830
7839
|
draftState: DTODocumentationDraftState.optional(),
|
|
7831
7840
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7833,278 +7842,278 @@ var DTODocumentationPageV2 = z267.object({
|
|
|
7833
7842
|
/** Defines the approval state of the documentation page */
|
|
7834
7843
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7835
7844
|
/** Id of the page document room */
|
|
7836
|
-
liveblocksRoomId:
|
|
7845
|
+
liveblocksRoomId: z268.string().optional(),
|
|
7837
7846
|
// Backward compatibility
|
|
7838
|
-
type:
|
|
7847
|
+
type: z268.literal("Page")
|
|
7839
7848
|
});
|
|
7840
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7849
|
+
var DTOCreateDocumentationPageInputV2 = z268.object({
|
|
7841
7850
|
// Identifier
|
|
7842
|
-
persistentId:
|
|
7851
|
+
persistentId: z268.string(),
|
|
7843
7852
|
// Page properties
|
|
7844
|
-
title:
|
|
7853
|
+
title: z268.string(),
|
|
7845
7854
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7846
7855
|
// Page placement properties
|
|
7847
|
-
parentPersistentId:
|
|
7848
|
-
afterPersistentId:
|
|
7856
|
+
parentPersistentId: z268.string(),
|
|
7857
|
+
afterPersistentId: z268.string().nullish()
|
|
7849
7858
|
});
|
|
7850
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7859
|
+
var DTOUpdateDocumentationPageInputV2 = z268.object({
|
|
7851
7860
|
// Identifier of the page to update
|
|
7852
|
-
id:
|
|
7861
|
+
id: z268.string(),
|
|
7853
7862
|
// Page properties
|
|
7854
|
-
title:
|
|
7863
|
+
title: z268.string().optional(),
|
|
7855
7864
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7856
7865
|
});
|
|
7857
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7866
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z268.object({
|
|
7858
7867
|
// Identifier of the page to update
|
|
7859
|
-
id:
|
|
7868
|
+
id: z268.string(),
|
|
7860
7869
|
// Page properties
|
|
7861
|
-
documentItems:
|
|
7870
|
+
documentItems: z268.array(DocumentationPageContentItem)
|
|
7862
7871
|
});
|
|
7863
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7872
|
+
var DTOMoveDocumentationPageInputV2 = z268.object({
|
|
7864
7873
|
// Identifier of the group to update
|
|
7865
|
-
id:
|
|
7874
|
+
id: z268.string(),
|
|
7866
7875
|
// Page placement properties
|
|
7867
|
-
parentPersistentId:
|
|
7868
|
-
afterPersistentId:
|
|
7876
|
+
parentPersistentId: z268.string(),
|
|
7877
|
+
afterPersistentId: z268.string().nullish()
|
|
7869
7878
|
});
|
|
7870
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7879
|
+
var DTODuplicateDocumentationPageInputV2 = z268.object({
|
|
7871
7880
|
// Identifier of the page to duplicate from
|
|
7872
|
-
id:
|
|
7881
|
+
id: z268.string(),
|
|
7873
7882
|
// New page persistent id
|
|
7874
|
-
persistentId:
|
|
7883
|
+
persistentId: z268.string(),
|
|
7875
7884
|
// Page placement properties
|
|
7876
|
-
parentPersistentId:
|
|
7877
|
-
afterPersistentId:
|
|
7885
|
+
parentPersistentId: z268.string(),
|
|
7886
|
+
afterPersistentId: z268.string().nullish()
|
|
7878
7887
|
});
|
|
7879
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7888
|
+
var DTODeleteDocumentationPageInputV2 = z268.object({
|
|
7880
7889
|
// Identifier
|
|
7881
|
-
id:
|
|
7890
|
+
id: z268.string()
|
|
7882
7891
|
});
|
|
7883
|
-
var DTORestoreDocumentationPageInput =
|
|
7884
|
-
persistentId:
|
|
7885
|
-
snapshotId:
|
|
7892
|
+
var DTORestoreDocumentationPageInput = z268.object({
|
|
7893
|
+
persistentId: z268.string(),
|
|
7894
|
+
snapshotId: z268.string().optional()
|
|
7886
7895
|
});
|
|
7887
|
-
var DTORestoreDocumentationGroupInput =
|
|
7888
|
-
persistentId:
|
|
7889
|
-
snapshotId:
|
|
7896
|
+
var DTORestoreDocumentationGroupInput = z268.object({
|
|
7897
|
+
persistentId: z268.string(),
|
|
7898
|
+
snapshotId: z268.string().optional()
|
|
7890
7899
|
});
|
|
7891
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7892
|
-
persistentId:
|
|
7900
|
+
var DTODocumentationPageApprovalStateChangeInput = z268.object({
|
|
7901
|
+
persistentId: z268.string(),
|
|
7893
7902
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7894
7903
|
});
|
|
7895
7904
|
|
|
7896
7905
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7897
|
-
var DTODocumentationPageSnapshot =
|
|
7898
|
-
id:
|
|
7899
|
-
designSystemVersionId:
|
|
7900
|
-
createdAt:
|
|
7901
|
-
updatedAt:
|
|
7906
|
+
var DTODocumentationPageSnapshot = z269.object({
|
|
7907
|
+
id: z269.string(),
|
|
7908
|
+
designSystemVersionId: z269.string(),
|
|
7909
|
+
createdAt: z269.string(),
|
|
7910
|
+
updatedAt: z269.string(),
|
|
7902
7911
|
documentationPage: DTODocumentationPageV2,
|
|
7903
|
-
pageContentHash:
|
|
7912
|
+
pageContentHash: z269.string(),
|
|
7904
7913
|
reason: DesignElementSnapshotReason
|
|
7905
7914
|
});
|
|
7906
7915
|
|
|
7907
7916
|
// src/api/dto/documentation/link-preview.ts
|
|
7908
|
-
import { z as
|
|
7909
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7917
|
+
import { z as z270 } from "zod";
|
|
7918
|
+
var DTODocumentationLinkPreviewResponse = z270.object({
|
|
7910
7919
|
linkPreview: DocumentationLinkPreview
|
|
7911
7920
|
});
|
|
7912
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7913
|
-
url:
|
|
7914
|
-
documentationItemPersistentId:
|
|
7921
|
+
var DTODocumentationLinkPreviewRequest = z270.object({
|
|
7922
|
+
url: z270.string().optional(),
|
|
7923
|
+
documentationItemPersistentId: z270.string().optional()
|
|
7915
7924
|
});
|
|
7916
7925
|
|
|
7917
7926
|
// src/api/dto/documentation/publish.ts
|
|
7918
|
-
import { z as
|
|
7927
|
+
import { z as z275 } from "zod";
|
|
7919
7928
|
|
|
7920
7929
|
// src/api/dto/export/exporter.ts
|
|
7921
|
-
import { z as
|
|
7922
|
-
var DTOExporterType =
|
|
7923
|
-
var DTOExporterSource =
|
|
7924
|
-
var DTOExporterMembershipRole =
|
|
7925
|
-
var DTOExporterListQuery =
|
|
7926
|
-
limit:
|
|
7927
|
-
offset:
|
|
7930
|
+
import { z as z271 } from "zod";
|
|
7931
|
+
var DTOExporterType = z271.enum(["documentation", "code"]);
|
|
7932
|
+
var DTOExporterSource = z271.enum(["git", "upload"]);
|
|
7933
|
+
var DTOExporterMembershipRole = z271.enum(["Owner", "OwnerArchived", "User"]);
|
|
7934
|
+
var DTOExporterListQuery = z271.object({
|
|
7935
|
+
limit: z271.coerce.number().optional(),
|
|
7936
|
+
offset: z271.coerce.number().optional(),
|
|
7928
7937
|
type: DTOExporterType.optional(),
|
|
7929
|
-
search:
|
|
7938
|
+
search: z271.string().optional()
|
|
7930
7939
|
});
|
|
7931
|
-
var DTOExporter =
|
|
7932
|
-
id:
|
|
7933
|
-
name:
|
|
7934
|
-
isPrivate:
|
|
7940
|
+
var DTOExporter = z271.object({
|
|
7941
|
+
id: z271.string(),
|
|
7942
|
+
name: z271.string(),
|
|
7943
|
+
isPrivate: z271.boolean(),
|
|
7935
7944
|
exporterType: DTOExporterType,
|
|
7936
|
-
isDefaultDocumentationExporter:
|
|
7937
|
-
iconURL:
|
|
7945
|
+
isDefaultDocumentationExporter: z271.boolean(),
|
|
7946
|
+
iconURL: z271.string().optional(),
|
|
7938
7947
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7939
7948
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7940
7949
|
customBlocks: PulsarCustomBlock.array(),
|
|
7941
|
-
blockVariants:
|
|
7942
|
-
homepage:
|
|
7943
|
-
organization:
|
|
7944
|
-
packageId:
|
|
7945
|
-
tags:
|
|
7946
|
-
author:
|
|
7947
|
-
version:
|
|
7948
|
-
description:
|
|
7949
|
-
usesLocale:
|
|
7950
|
-
usesBrands:
|
|
7951
|
-
usesThemes:
|
|
7952
|
-
readme:
|
|
7953
|
-
routingVersion:
|
|
7950
|
+
blockVariants: z271.record(z271.string(), PulsarContributionVariant.array()),
|
|
7951
|
+
homepage: z271.string().optional(),
|
|
7952
|
+
organization: z271.string().optional(),
|
|
7953
|
+
packageId: z271.string().optional(),
|
|
7954
|
+
tags: z271.array(z271.string()),
|
|
7955
|
+
author: z271.string().optional(),
|
|
7956
|
+
version: z271.string(),
|
|
7957
|
+
description: z271.string(),
|
|
7958
|
+
usesLocale: z271.boolean(),
|
|
7959
|
+
usesBrands: z271.boolean(),
|
|
7960
|
+
usesThemes: z271.boolean(),
|
|
7961
|
+
readme: z271.string().optional(),
|
|
7962
|
+
routingVersion: z271.string().optional(),
|
|
7954
7963
|
source: DTOExporterSource,
|
|
7955
|
-
gitProvider:
|
|
7956
|
-
gitUrl: nullishToOptional(
|
|
7957
|
-
gitBranch: nullishToOptional(
|
|
7958
|
-
gitDirectory: nullishToOptional(
|
|
7959
|
-
isDeprecated:
|
|
7960
|
-
deprecationNote:
|
|
7961
|
-
replacementExporterId:
|
|
7962
|
-
});
|
|
7963
|
-
var DTOExporterMembership =
|
|
7964
|
-
workspaceId:
|
|
7965
|
-
exporterId:
|
|
7964
|
+
gitProvider: z271.string().optional(),
|
|
7965
|
+
gitUrl: nullishToOptional(z271.string()),
|
|
7966
|
+
gitBranch: nullishToOptional(z271.string()),
|
|
7967
|
+
gitDirectory: nullishToOptional(z271.string()),
|
|
7968
|
+
isDeprecated: z271.boolean(),
|
|
7969
|
+
deprecationNote: z271.string().optional(),
|
|
7970
|
+
replacementExporterId: z271.string().optional()
|
|
7971
|
+
});
|
|
7972
|
+
var DTOExporterMembership = z271.object({
|
|
7973
|
+
workspaceId: z271.string(),
|
|
7974
|
+
exporterId: z271.string(),
|
|
7966
7975
|
role: DTOExporterMembershipRole
|
|
7967
7976
|
});
|
|
7968
|
-
var DTOExporterResponse =
|
|
7977
|
+
var DTOExporterResponse = z271.object({
|
|
7969
7978
|
exporter: DTOExporter,
|
|
7970
7979
|
membership: DTOExporterMembership
|
|
7971
7980
|
});
|
|
7972
|
-
var DTOExporterListResponse =
|
|
7981
|
+
var DTOExporterListResponse = z271.object({
|
|
7973
7982
|
exporters: DTOExporter.array(),
|
|
7974
7983
|
membership: DTOExporterMembership.array(),
|
|
7975
|
-
total:
|
|
7984
|
+
total: z271.number()
|
|
7976
7985
|
});
|
|
7977
|
-
var DTOExporterGitProviderEnum =
|
|
7978
|
-
var DTOExporterCreateInput =
|
|
7979
|
-
url:
|
|
7986
|
+
var DTOExporterGitProviderEnum = z271.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7987
|
+
var DTOExporterCreateInput = z271.object({
|
|
7988
|
+
url: z271.string(),
|
|
7980
7989
|
provider: DTOExporterGitProviderEnum
|
|
7981
7990
|
});
|
|
7982
|
-
var DTOExporterUpdateInput =
|
|
7983
|
-
url:
|
|
7991
|
+
var DTOExporterUpdateInput = z271.object({
|
|
7992
|
+
url: z271.string().optional()
|
|
7984
7993
|
});
|
|
7985
|
-
var DTOExporterDeprecationInput =
|
|
7986
|
-
isDeprecated:
|
|
7987
|
-
deprecationNote:
|
|
7988
|
-
replacementExporterId:
|
|
7994
|
+
var DTOExporterDeprecationInput = z271.object({
|
|
7995
|
+
isDeprecated: z271.boolean(),
|
|
7996
|
+
deprecationNote: z271.string().optional(),
|
|
7997
|
+
replacementExporterId: z271.string().optional()
|
|
7989
7998
|
});
|
|
7990
7999
|
|
|
7991
8000
|
// src/api/dto/export/filter.ts
|
|
7992
|
-
import { z as
|
|
7993
|
-
var DTOExportJobsListFilter =
|
|
7994
|
-
exporterId:
|
|
7995
|
-
designSystemVersionId:
|
|
7996
|
-
createdByUserId:
|
|
8001
|
+
import { z as z272 } from "zod";
|
|
8002
|
+
var DTOExportJobsListFilter = z272.object({
|
|
8003
|
+
exporterId: z272.string().optional(),
|
|
8004
|
+
designSystemVersionId: z272.string().optional(),
|
|
8005
|
+
createdByUserId: z272.string().optional(),
|
|
7997
8006
|
status: ExportJobStatus.optional(),
|
|
7998
|
-
scheduleId:
|
|
7999
|
-
designSystemId:
|
|
8000
|
-
themeId:
|
|
8001
|
-
brandId:
|
|
8002
|
-
destinations:
|
|
8007
|
+
scheduleId: z272.string().optional(),
|
|
8008
|
+
designSystemId: z272.string().optional(),
|
|
8009
|
+
themeId: z272.string().optional(),
|
|
8010
|
+
brandId: z272.string().optional(),
|
|
8011
|
+
destinations: z272.string().transform((s) => s.split(",").map((p) => ExportJobDestinationType.parse(p))).optional()
|
|
8003
8012
|
});
|
|
8004
8013
|
|
|
8005
8014
|
// src/api/dto/export/job.ts
|
|
8006
|
-
import { z as
|
|
8007
|
-
var DTOExportJobCreatedBy =
|
|
8008
|
-
userId:
|
|
8009
|
-
userName:
|
|
8015
|
+
import { z as z273 } from "zod";
|
|
8016
|
+
var DTOExportJobCreatedBy = z273.object({
|
|
8017
|
+
userId: z273.string(),
|
|
8018
|
+
userName: z273.string()
|
|
8010
8019
|
});
|
|
8011
|
-
var DTOExportJobDesignSystemPreview =
|
|
8012
|
-
id:
|
|
8020
|
+
var DTOExportJobDesignSystemPreview = z273.object({
|
|
8021
|
+
id: z273.string(),
|
|
8013
8022
|
meta: ObjectMeta
|
|
8014
8023
|
});
|
|
8015
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
8016
|
-
id:
|
|
8024
|
+
var DTOExportJobDesignSystemVersionPreview = z273.object({
|
|
8025
|
+
id: z273.string(),
|
|
8017
8026
|
meta: ObjectMeta,
|
|
8018
|
-
version:
|
|
8019
|
-
isReadonly:
|
|
8027
|
+
version: z273.string(),
|
|
8028
|
+
isReadonly: z273.boolean()
|
|
8020
8029
|
});
|
|
8021
|
-
var DTOExportJobDestinations =
|
|
8030
|
+
var DTOExportJobDestinations = z273.object({
|
|
8022
8031
|
s3: ExporterDestinationS3.optional(),
|
|
8023
8032
|
azure: ExporterDestinationAzure.optional(),
|
|
8024
8033
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
8025
8034
|
github: ExporterDestinationGithub.optional(),
|
|
8026
8035
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
8027
8036
|
documentation: ExporterDestinationDocs.optional(),
|
|
8028
|
-
webhookUrl:
|
|
8037
|
+
webhookUrl: z273.string().optional()
|
|
8029
8038
|
});
|
|
8030
8039
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
8031
8040
|
sndocs: true
|
|
8032
8041
|
}).extend({
|
|
8033
8042
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
8034
8043
|
});
|
|
8035
|
-
var DTOExportJob =
|
|
8036
|
-
id:
|
|
8037
|
-
createdAt:
|
|
8038
|
-
finishedAt:
|
|
8039
|
-
index:
|
|
8044
|
+
var DTOExportJob = z273.object({
|
|
8045
|
+
id: z273.string(),
|
|
8046
|
+
createdAt: z273.coerce.date(),
|
|
8047
|
+
finishedAt: z273.coerce.date().optional(),
|
|
8048
|
+
index: z273.number().optional(),
|
|
8040
8049
|
status: ExportJobStatus,
|
|
8041
|
-
estimatedExecutionTime:
|
|
8050
|
+
estimatedExecutionTime: z273.number().optional(),
|
|
8042
8051
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
8043
8052
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
8044
8053
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
8045
8054
|
destinations: DTOExportJobDestinations,
|
|
8046
|
-
exporterId:
|
|
8047
|
-
scheduleId:
|
|
8055
|
+
exporterId: z273.string(),
|
|
8056
|
+
scheduleId: z273.string().optional(),
|
|
8048
8057
|
result: DTOExportJobResult.optional(),
|
|
8049
|
-
brandPersistentId:
|
|
8050
|
-
themePersistentId:
|
|
8051
|
-
themePersistentIds:
|
|
8058
|
+
brandPersistentId: z273.string().optional(),
|
|
8059
|
+
themePersistentId: z273.string().optional(),
|
|
8060
|
+
themePersistentIds: z273.string().array().optional(),
|
|
8052
8061
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
8053
8062
|
});
|
|
8054
|
-
var DTOExportJobResponse =
|
|
8063
|
+
var DTOExportJobResponse = z273.object({
|
|
8055
8064
|
job: DTOExportJob
|
|
8056
8065
|
});
|
|
8057
|
-
var DTOExportJobResponseLegacy =
|
|
8058
|
-
job:
|
|
8059
|
-
id:
|
|
8066
|
+
var DTOExportJobResponseLegacy = z273.object({
|
|
8067
|
+
job: z273.object({
|
|
8068
|
+
id: z273.string(),
|
|
8060
8069
|
status: ExportJobStatus
|
|
8061
8070
|
})
|
|
8062
8071
|
});
|
|
8063
|
-
var DTOExportJobCreateInput =
|
|
8064
|
-
designSystemId:
|
|
8065
|
-
designSystemVersionId:
|
|
8066
|
-
exporterId:
|
|
8067
|
-
brandId:
|
|
8068
|
-
themeId:
|
|
8069
|
-
themePersistentIds:
|
|
8072
|
+
var DTOExportJobCreateInput = z273.object({
|
|
8073
|
+
designSystemId: z273.string(),
|
|
8074
|
+
designSystemVersionId: z273.string(),
|
|
8075
|
+
exporterId: z273.string(),
|
|
8076
|
+
brandId: z273.string().optional(),
|
|
8077
|
+
themeId: z273.string().optional(),
|
|
8078
|
+
themePersistentIds: z273.string().array().optional(),
|
|
8070
8079
|
destinations: DTOExportJobDestinations,
|
|
8071
8080
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8072
|
-
previewMode:
|
|
8081
|
+
previewMode: z273.boolean().optional()
|
|
8073
8082
|
});
|
|
8074
8083
|
|
|
8075
8084
|
// src/api/dto/export/pipeline.ts
|
|
8076
|
-
import { z as
|
|
8077
|
-
var DTOPipelineListQuery =
|
|
8078
|
-
designSystemId:
|
|
8079
|
-
exporterId:
|
|
8080
|
-
latestJobsLimit:
|
|
8081
|
-
});
|
|
8082
|
-
var DTOPipeline =
|
|
8083
|
-
id:
|
|
8084
|
-
name:
|
|
8085
|
+
import { z as z274 } from "zod";
|
|
8086
|
+
var DTOPipelineListQuery = z274.object({
|
|
8087
|
+
designSystemId: z274.string().optional(),
|
|
8088
|
+
exporterId: z274.string().optional(),
|
|
8089
|
+
latestJobsLimit: z274.coerce.number().optional()
|
|
8090
|
+
});
|
|
8091
|
+
var DTOPipeline = z274.object({
|
|
8092
|
+
id: z274.string(),
|
|
8093
|
+
name: z274.string(),
|
|
8085
8094
|
eventType: PipelineEventType,
|
|
8086
|
-
isEnabled:
|
|
8087
|
-
workspaceId:
|
|
8088
|
-
designSystemId:
|
|
8089
|
-
exporterId:
|
|
8090
|
-
brandPersistentId:
|
|
8091
|
-
themePersistentId:
|
|
8092
|
-
themePersistentIds:
|
|
8095
|
+
isEnabled: z274.boolean(),
|
|
8096
|
+
workspaceId: z274.string(),
|
|
8097
|
+
designSystemId: z274.string(),
|
|
8098
|
+
exporterId: z274.string(),
|
|
8099
|
+
brandPersistentId: z274.string().optional(),
|
|
8100
|
+
themePersistentId: z274.string().optional(),
|
|
8101
|
+
themePersistentIds: z274.string().array().optional(),
|
|
8093
8102
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8094
8103
|
...ExportDestinationsMap.shape,
|
|
8095
8104
|
latestJobs: DTOExportJob.array(),
|
|
8096
|
-
isExporterDeprecated:
|
|
8105
|
+
isExporterDeprecated: z274.boolean()
|
|
8097
8106
|
});
|
|
8098
|
-
var DTOPipelineListResponse =
|
|
8107
|
+
var DTOPipelineListResponse = z274.object({
|
|
8099
8108
|
pipelines: DTOPipeline.array()
|
|
8100
8109
|
});
|
|
8101
|
-
var DTOPipelineResponse =
|
|
8110
|
+
var DTOPipelineResponse = z274.object({
|
|
8102
8111
|
pipeline: DTOPipeline
|
|
8103
8112
|
});
|
|
8104
8113
|
|
|
8105
8114
|
// src/api/dto/documentation/publish.ts
|
|
8106
8115
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
8107
|
-
var DTOPublishDocumentationRequest =
|
|
8116
|
+
var DTOPublishDocumentationRequest = z275.object({
|
|
8108
8117
|
environment: PublishedDocEnvironment,
|
|
8109
8118
|
/**
|
|
8110
8119
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -8112,66 +8121,66 @@ var DTOPublishDocumentationRequest = z274.object({
|
|
|
8112
8121
|
*/
|
|
8113
8122
|
changes: DTOPublishDocumentationChanges.optional()
|
|
8114
8123
|
});
|
|
8115
|
-
var DTOPublishDocumentationResponse =
|
|
8124
|
+
var DTOPublishDocumentationResponse = z275.object({
|
|
8116
8125
|
job: DTOExportJob
|
|
8117
8126
|
});
|
|
8118
8127
|
|
|
8119
8128
|
// src/api/dto/documentation/room.ts
|
|
8120
|
-
import { z as
|
|
8121
|
-
var DTODocumentationPageRoom =
|
|
8122
|
-
id:
|
|
8129
|
+
import { z as z276 } from "zod";
|
|
8130
|
+
var DTODocumentationPageRoom = z276.object({
|
|
8131
|
+
id: z276.string()
|
|
8123
8132
|
});
|
|
8124
|
-
var DTODocumentationPageRoomResponse =
|
|
8133
|
+
var DTODocumentationPageRoomResponse = z276.object({
|
|
8125
8134
|
room: DTODocumentationPageRoom
|
|
8126
8135
|
});
|
|
8127
8136
|
|
|
8128
8137
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
8129
|
-
import
|
|
8130
|
-
var DTOFigmaComponentGroup =
|
|
8131
|
-
id:
|
|
8132
|
-
designSystemVersionId:
|
|
8133
|
-
persistentId:
|
|
8134
|
-
isRoot:
|
|
8135
|
-
brandId:
|
|
8138
|
+
import z277 from "zod";
|
|
8139
|
+
var DTOFigmaComponentGroup = z277.object({
|
|
8140
|
+
id: z277.string(),
|
|
8141
|
+
designSystemVersionId: z277.string(),
|
|
8142
|
+
persistentId: z277.string(),
|
|
8143
|
+
isRoot: z277.boolean(),
|
|
8144
|
+
brandId: z277.string(),
|
|
8136
8145
|
meta: DTOObjectMeta,
|
|
8137
|
-
childrenIds:
|
|
8146
|
+
childrenIds: z277.string().array()
|
|
8138
8147
|
});
|
|
8139
|
-
var DTOFigmaComponentGroupListResponse =
|
|
8148
|
+
var DTOFigmaComponentGroupListResponse = z277.object({
|
|
8140
8149
|
groups: DTOFigmaComponentGroup.array()
|
|
8141
8150
|
});
|
|
8142
8151
|
|
|
8143
8152
|
// src/api/dto/elements/components/figma-component.ts
|
|
8144
|
-
import { z as
|
|
8153
|
+
import { z as z278 } from "zod";
|
|
8145
8154
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
8146
|
-
var DTOFigmaComponentPropertyMap =
|
|
8147
|
-
var DTOFigmaComponent =
|
|
8148
|
-
id:
|
|
8149
|
-
persistentId:
|
|
8150
|
-
designSystemVersionId:
|
|
8151
|
-
brandId:
|
|
8152
|
-
thumbnailUrl:
|
|
8153
|
-
svgUrl:
|
|
8154
|
-
exportProperties:
|
|
8155
|
-
isAsset:
|
|
8155
|
+
var DTOFigmaComponentPropertyMap = z278.record(DTOFigmaComponentProperty);
|
|
8156
|
+
var DTOFigmaComponent = z278.object({
|
|
8157
|
+
id: z278.string(),
|
|
8158
|
+
persistentId: z278.string(),
|
|
8159
|
+
designSystemVersionId: z278.string(),
|
|
8160
|
+
brandId: z278.string(),
|
|
8161
|
+
thumbnailUrl: z278.string().optional(),
|
|
8162
|
+
svgUrl: z278.string().optional(),
|
|
8163
|
+
exportProperties: z278.object({
|
|
8164
|
+
isAsset: z278.boolean()
|
|
8156
8165
|
}),
|
|
8157
|
-
createdAt:
|
|
8158
|
-
updatedAt:
|
|
8166
|
+
createdAt: z278.coerce.date(),
|
|
8167
|
+
updatedAt: z278.coerce.date(),
|
|
8159
8168
|
meta: ObjectMeta,
|
|
8160
8169
|
originComponent: FigmaComponentOrigin.optional(),
|
|
8161
|
-
parentComponentPersistentId:
|
|
8162
|
-
childrenPersistentIds:
|
|
8170
|
+
parentComponentPersistentId: z278.string().optional(),
|
|
8171
|
+
childrenPersistentIds: z278.string().array().optional(),
|
|
8163
8172
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
8164
|
-
variantPropertyValues:
|
|
8173
|
+
variantPropertyValues: z278.record(z278.string()).optional()
|
|
8165
8174
|
});
|
|
8166
|
-
var DTOFigmaComponentListResponse =
|
|
8175
|
+
var DTOFigmaComponentListResponse = z278.object({
|
|
8167
8176
|
components: DTOFigmaComponent.array()
|
|
8168
8177
|
});
|
|
8169
8178
|
|
|
8170
8179
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8171
|
-
import { z as
|
|
8180
|
+
import { z as z280 } from "zod";
|
|
8172
8181
|
|
|
8173
8182
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
8174
|
-
import { z as
|
|
8183
|
+
import { z as z279 } from "zod";
|
|
8175
8184
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
8176
8185
|
sortOrder: true,
|
|
8177
8186
|
parentPersistentId: true,
|
|
@@ -8181,13 +8190,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8181
8190
|
data: true,
|
|
8182
8191
|
shortPersistentId: true
|
|
8183
8192
|
}).extend({
|
|
8184
|
-
title:
|
|
8185
|
-
isRoot:
|
|
8186
|
-
childrenIds:
|
|
8193
|
+
title: z279.string(),
|
|
8194
|
+
isRoot: z279.boolean(),
|
|
8195
|
+
childrenIds: z279.array(z279.string()),
|
|
8187
8196
|
groupBehavior: DocumentationGroupBehavior,
|
|
8188
|
-
shortPersistentId:
|
|
8197
|
+
shortPersistentId: z279.string(),
|
|
8189
8198
|
configuration: DTODocumentationItemConfigurationV2,
|
|
8190
|
-
type:
|
|
8199
|
+
type: z279.literal("Group"),
|
|
8191
8200
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
8192
8201
|
draftState: DTODocumentationDraftState.optional(),
|
|
8193
8202
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -8195,127 +8204,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8195
8204
|
//** An approval state for frontend to utilize. */
|
|
8196
8205
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
8197
8206
|
});
|
|
8198
|
-
var DTOCreateDocumentationGroupInput =
|
|
8207
|
+
var DTOCreateDocumentationGroupInput = z279.object({
|
|
8199
8208
|
// Identifier
|
|
8200
|
-
persistentId:
|
|
8209
|
+
persistentId: z279.string(),
|
|
8201
8210
|
// Group properties
|
|
8202
|
-
title:
|
|
8211
|
+
title: z279.string(),
|
|
8203
8212
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
8204
8213
|
// Group placement properties
|
|
8205
|
-
afterPersistentId:
|
|
8206
|
-
parentPersistentId:
|
|
8214
|
+
afterPersistentId: z279.string().nullish(),
|
|
8215
|
+
parentPersistentId: z279.string()
|
|
8207
8216
|
});
|
|
8208
|
-
var DTOUpdateDocumentationGroupInput =
|
|
8217
|
+
var DTOUpdateDocumentationGroupInput = z279.object({
|
|
8209
8218
|
// Identifier of the group to update
|
|
8210
|
-
id:
|
|
8219
|
+
id: z279.string(),
|
|
8211
8220
|
// Group properties
|
|
8212
|
-
title:
|
|
8221
|
+
title: z279.string().optional(),
|
|
8213
8222
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
8214
8223
|
});
|
|
8215
|
-
var DTOMoveDocumentationGroupInput =
|
|
8224
|
+
var DTOMoveDocumentationGroupInput = z279.object({
|
|
8216
8225
|
// Identifier of the group to update
|
|
8217
|
-
id:
|
|
8226
|
+
id: z279.string(),
|
|
8218
8227
|
// Group placement properties
|
|
8219
|
-
parentPersistentId:
|
|
8220
|
-
afterPersistentId:
|
|
8228
|
+
parentPersistentId: z279.string(),
|
|
8229
|
+
afterPersistentId: z279.string().nullish()
|
|
8221
8230
|
});
|
|
8222
|
-
var DTODuplicateDocumentationGroupInput =
|
|
8231
|
+
var DTODuplicateDocumentationGroupInput = z279.object({
|
|
8223
8232
|
// Identifier of the group to duplicate from
|
|
8224
|
-
id:
|
|
8233
|
+
id: z279.string(),
|
|
8225
8234
|
// New group persistent id
|
|
8226
|
-
persistentId:
|
|
8235
|
+
persistentId: z279.string(),
|
|
8227
8236
|
// Group placement properties
|
|
8228
|
-
afterPersistentId:
|
|
8229
|
-
parentPersistentId:
|
|
8237
|
+
afterPersistentId: z279.string().nullish(),
|
|
8238
|
+
parentPersistentId: z279.string()
|
|
8230
8239
|
});
|
|
8231
|
-
var DTOCreateDocumentationTabInput =
|
|
8240
|
+
var DTOCreateDocumentationTabInput = z279.object({
|
|
8232
8241
|
// New group persistent id
|
|
8233
|
-
persistentId:
|
|
8242
|
+
persistentId: z279.string(),
|
|
8234
8243
|
// If this is page, we will attempt to convert it to tab
|
|
8235
8244
|
// If this is tab group, we will add a new tab to it
|
|
8236
|
-
fromItemPersistentId:
|
|
8237
|
-
tabName:
|
|
8245
|
+
fromItemPersistentId: z279.string(),
|
|
8246
|
+
tabName: z279.string()
|
|
8238
8247
|
});
|
|
8239
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
8248
|
+
var DTODeleteDocumentationTabGroupInput = z279.object({
|
|
8240
8249
|
// Deleted group id
|
|
8241
|
-
id:
|
|
8250
|
+
id: z279.string()
|
|
8242
8251
|
});
|
|
8243
|
-
var DTODeleteDocumentationGroupInput =
|
|
8252
|
+
var DTODeleteDocumentationGroupInput = z279.object({
|
|
8244
8253
|
// Identifier
|
|
8245
|
-
id:
|
|
8254
|
+
id: z279.string(),
|
|
8246
8255
|
// Deletion options
|
|
8247
|
-
deleteSubtree:
|
|
8256
|
+
deleteSubtree: z279.boolean().default(false)
|
|
8248
8257
|
});
|
|
8249
8258
|
|
|
8250
8259
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8251
|
-
var SuccessPayload =
|
|
8252
|
-
success:
|
|
8260
|
+
var SuccessPayload = z280.object({
|
|
8261
|
+
success: z280.literal(true)
|
|
8253
8262
|
});
|
|
8254
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
8255
|
-
type:
|
|
8263
|
+
var DTODocumentationGroupCreateActionOutputV2 = z280.object({
|
|
8264
|
+
type: z280.literal("DocumentationGroupCreate"),
|
|
8256
8265
|
output: SuccessPayload
|
|
8257
8266
|
});
|
|
8258
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
8259
|
-
type:
|
|
8267
|
+
var DTODocumentationTabCreateActionOutputV2 = z280.object({
|
|
8268
|
+
type: z280.literal("DocumentationTabCreate"),
|
|
8260
8269
|
output: SuccessPayload
|
|
8261
8270
|
});
|
|
8262
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
8263
|
-
type:
|
|
8271
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z280.object({
|
|
8272
|
+
type: z280.literal("DocumentationGroupUpdate"),
|
|
8264
8273
|
output: SuccessPayload
|
|
8265
8274
|
});
|
|
8266
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
8267
|
-
type:
|
|
8275
|
+
var DTODocumentationGroupMoveActionOutputV2 = z280.object({
|
|
8276
|
+
type: z280.literal("DocumentationGroupMove"),
|
|
8268
8277
|
output: SuccessPayload
|
|
8269
8278
|
});
|
|
8270
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
8271
|
-
type:
|
|
8279
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z280.object({
|
|
8280
|
+
type: z280.literal("DocumentationGroupDuplicate"),
|
|
8272
8281
|
output: SuccessPayload
|
|
8273
8282
|
});
|
|
8274
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
8275
|
-
type:
|
|
8283
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z280.object({
|
|
8284
|
+
type: z280.literal("DocumentationGroupDelete"),
|
|
8276
8285
|
output: SuccessPayload
|
|
8277
8286
|
});
|
|
8278
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
8279
|
-
type:
|
|
8287
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z280.object({
|
|
8288
|
+
type: z280.literal("DocumentationTabGroupDelete"),
|
|
8280
8289
|
output: SuccessPayload
|
|
8281
8290
|
});
|
|
8282
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
8283
|
-
type:
|
|
8291
|
+
var DTODocumentationGroupCreateActionInputV2 = z280.object({
|
|
8292
|
+
type: z280.literal("DocumentationGroupCreate"),
|
|
8284
8293
|
input: DTOCreateDocumentationGroupInput
|
|
8285
8294
|
});
|
|
8286
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
8287
|
-
type:
|
|
8295
|
+
var DTODocumentationTabCreateActionInputV2 = z280.object({
|
|
8296
|
+
type: z280.literal("DocumentationTabCreate"),
|
|
8288
8297
|
input: DTOCreateDocumentationTabInput
|
|
8289
8298
|
});
|
|
8290
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
8291
|
-
type:
|
|
8299
|
+
var DTODocumentationGroupUpdateActionInputV2 = z280.object({
|
|
8300
|
+
type: z280.literal("DocumentationGroupUpdate"),
|
|
8292
8301
|
input: DTOUpdateDocumentationGroupInput
|
|
8293
8302
|
});
|
|
8294
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
8295
|
-
type:
|
|
8303
|
+
var DTODocumentationGroupMoveActionInputV2 = z280.object({
|
|
8304
|
+
type: z280.literal("DocumentationGroupMove"),
|
|
8296
8305
|
input: DTOMoveDocumentationGroupInput
|
|
8297
8306
|
});
|
|
8298
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
8299
|
-
type:
|
|
8307
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z280.object({
|
|
8308
|
+
type: z280.literal("DocumentationGroupDuplicate"),
|
|
8300
8309
|
input: DTODuplicateDocumentationGroupInput
|
|
8301
8310
|
});
|
|
8302
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
8303
|
-
type:
|
|
8311
|
+
var DTODocumentationGroupDeleteActionInputV2 = z280.object({
|
|
8312
|
+
type: z280.literal("DocumentationGroupDelete"),
|
|
8304
8313
|
input: DTODeleteDocumentationGroupInput
|
|
8305
8314
|
});
|
|
8306
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
8307
|
-
type:
|
|
8315
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z280.object({
|
|
8316
|
+
type: z280.literal("DocumentationTabGroupDelete"),
|
|
8308
8317
|
input: DTODeleteDocumentationTabGroupInput
|
|
8309
8318
|
});
|
|
8310
8319
|
|
|
8311
8320
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
8312
|
-
import { z as
|
|
8321
|
+
import { z as z282 } from "zod";
|
|
8313
8322
|
|
|
8314
8323
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
8315
|
-
import { z as
|
|
8316
|
-
var DocumentationColorV1 =
|
|
8317
|
-
aliasTo:
|
|
8318
|
-
value:
|
|
8324
|
+
import { z as z281 } from "zod";
|
|
8325
|
+
var DocumentationColorV1 = z281.object({
|
|
8326
|
+
aliasTo: z281.string().optional(),
|
|
8327
|
+
value: z281.string().optional()
|
|
8319
8328
|
});
|
|
8320
8329
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
8321
8330
|
foregroundColor: true,
|
|
@@ -8324,10 +8333,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
8324
8333
|
foregroundColor: DocumentationColorV1.optional(),
|
|
8325
8334
|
backgroundColor: DocumentationColorV1.optional()
|
|
8326
8335
|
});
|
|
8327
|
-
var DTODocumentationItemConfigurationV1 =
|
|
8328
|
-
showSidebar:
|
|
8329
|
-
isPrivate:
|
|
8330
|
-
isHidden:
|
|
8336
|
+
var DTODocumentationItemConfigurationV1 = z281.object({
|
|
8337
|
+
showSidebar: z281.boolean(),
|
|
8338
|
+
isPrivate: z281.boolean(),
|
|
8339
|
+
isHidden: z281.boolean(),
|
|
8331
8340
|
header: DTODocumentationItemHeaderV1
|
|
8332
8341
|
});
|
|
8333
8342
|
|
|
@@ -8341,145 +8350,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
8341
8350
|
data: true,
|
|
8342
8351
|
shortPersistentId: true
|
|
8343
8352
|
}).extend({
|
|
8344
|
-
title:
|
|
8345
|
-
isRoot:
|
|
8346
|
-
childrenIds:
|
|
8353
|
+
title: z282.string(),
|
|
8354
|
+
isRoot: z282.boolean(),
|
|
8355
|
+
childrenIds: z282.array(z282.string()),
|
|
8347
8356
|
groupBehavior: DocumentationGroupBehavior,
|
|
8348
|
-
shortPersistentId:
|
|
8349
|
-
type:
|
|
8357
|
+
shortPersistentId: z282.string(),
|
|
8358
|
+
type: z282.literal("Group")
|
|
8350
8359
|
});
|
|
8351
8360
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
8352
8361
|
configuration: DTODocumentationItemConfigurationV1
|
|
8353
8362
|
});
|
|
8354
8363
|
|
|
8355
8364
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
8356
|
-
import { z as
|
|
8357
|
-
var DTODocumentationHierarchyV2 =
|
|
8358
|
-
pages:
|
|
8365
|
+
import { z as z283 } from "zod";
|
|
8366
|
+
var DTODocumentationHierarchyV2 = z283.object({
|
|
8367
|
+
pages: z283.array(
|
|
8359
8368
|
DTODocumentationPageV2.extend({
|
|
8360
8369
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8361
8370
|
draftState: DTODocumentationDraftState.optional()
|
|
8362
8371
|
})
|
|
8363
8372
|
),
|
|
8364
|
-
groups:
|
|
8373
|
+
groups: z283.array(
|
|
8365
8374
|
DTODocumentationGroupV2.extend({
|
|
8366
8375
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8367
8376
|
draftState: DTODocumentationDraftState.optional()
|
|
8368
8377
|
})
|
|
8369
8378
|
),
|
|
8370
8379
|
/** True if the documentation was already published, false otherwise. */
|
|
8371
|
-
hasPublishedDocumentationContent:
|
|
8380
|
+
hasPublishedDocumentationContent: z283.boolean()
|
|
8372
8381
|
});
|
|
8373
8382
|
|
|
8374
8383
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
8375
|
-
import { z as
|
|
8376
|
-
var SuccessPayload2 =
|
|
8377
|
-
success:
|
|
8384
|
+
import { z as z284 } from "zod";
|
|
8385
|
+
var SuccessPayload2 = z284.object({
|
|
8386
|
+
success: z284.literal(true)
|
|
8378
8387
|
});
|
|
8379
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
8380
|
-
type:
|
|
8388
|
+
var DTODocumentationPageCreateActionOutputV2 = z284.object({
|
|
8389
|
+
type: z284.literal("DocumentationPageCreate"),
|
|
8381
8390
|
output: SuccessPayload2
|
|
8382
8391
|
});
|
|
8383
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
8384
|
-
type:
|
|
8392
|
+
var DTODocumentationPageUpdateActionOutputV2 = z284.object({
|
|
8393
|
+
type: z284.literal("DocumentationPageUpdate"),
|
|
8385
8394
|
output: SuccessPayload2
|
|
8386
8395
|
});
|
|
8387
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
8388
|
-
type:
|
|
8396
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z284.object({
|
|
8397
|
+
type: z284.literal("DocumentationPageUpdateDocument"),
|
|
8389
8398
|
output: SuccessPayload2
|
|
8390
8399
|
});
|
|
8391
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
8392
|
-
type:
|
|
8400
|
+
var DTODocumentationPageMoveActionOutputV2 = z284.object({
|
|
8401
|
+
type: z284.literal("DocumentationPageMove"),
|
|
8393
8402
|
output: SuccessPayload2
|
|
8394
8403
|
});
|
|
8395
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
8396
|
-
type:
|
|
8404
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z284.object({
|
|
8405
|
+
type: z284.literal("DocumentationPageDuplicate"),
|
|
8397
8406
|
output: SuccessPayload2
|
|
8398
8407
|
});
|
|
8399
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
8400
|
-
type:
|
|
8408
|
+
var DTODocumentationPageDeleteActionOutputV2 = z284.object({
|
|
8409
|
+
type: z284.literal("DocumentationPageDelete"),
|
|
8401
8410
|
output: SuccessPayload2
|
|
8402
8411
|
});
|
|
8403
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
8404
|
-
type:
|
|
8412
|
+
var DTODocumentationPageRestoreActionOutput = z284.object({
|
|
8413
|
+
type: z284.literal("DocumentationPageRestore"),
|
|
8405
8414
|
output: SuccessPayload2
|
|
8406
8415
|
});
|
|
8407
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
8408
|
-
type:
|
|
8416
|
+
var DTODocumentationGroupRestoreActionOutput = z284.object({
|
|
8417
|
+
type: z284.literal("DocumentationGroupRestore"),
|
|
8409
8418
|
output: SuccessPayload2
|
|
8410
8419
|
});
|
|
8411
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
8412
|
-
type:
|
|
8420
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z284.object({
|
|
8421
|
+
type: z284.literal("DocumentationPageApprovalStateChange"),
|
|
8413
8422
|
output: SuccessPayload2
|
|
8414
8423
|
});
|
|
8415
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
8416
|
-
type:
|
|
8424
|
+
var DTODocumentationPageCreateActionInputV2 = z284.object({
|
|
8425
|
+
type: z284.literal("DocumentationPageCreate"),
|
|
8417
8426
|
input: DTOCreateDocumentationPageInputV2
|
|
8418
8427
|
});
|
|
8419
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
8420
|
-
type:
|
|
8428
|
+
var DTODocumentationPageUpdateActionInputV2 = z284.object({
|
|
8429
|
+
type: z284.literal("DocumentationPageUpdate"),
|
|
8421
8430
|
input: DTOUpdateDocumentationPageInputV2
|
|
8422
8431
|
});
|
|
8423
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
8424
|
-
type:
|
|
8432
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z284.object({
|
|
8433
|
+
type: z284.literal("DocumentationPageUpdateDocument"),
|
|
8425
8434
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
8426
8435
|
});
|
|
8427
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
8428
|
-
type:
|
|
8436
|
+
var DTODocumentationPageMoveActionInputV2 = z284.object({
|
|
8437
|
+
type: z284.literal("DocumentationPageMove"),
|
|
8429
8438
|
input: DTOMoveDocumentationPageInputV2
|
|
8430
8439
|
});
|
|
8431
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
8432
|
-
type:
|
|
8440
|
+
var DTODocumentationPageDuplicateActionInputV2 = z284.object({
|
|
8441
|
+
type: z284.literal("DocumentationPageDuplicate"),
|
|
8433
8442
|
input: DTODuplicateDocumentationPageInputV2
|
|
8434
8443
|
});
|
|
8435
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
8436
|
-
type:
|
|
8444
|
+
var DTODocumentationPageDeleteActionInputV2 = z284.object({
|
|
8445
|
+
type: z284.literal("DocumentationPageDelete"),
|
|
8437
8446
|
input: DTODeleteDocumentationPageInputV2
|
|
8438
8447
|
});
|
|
8439
|
-
var DTODocumentationPageRestoreActionInput =
|
|
8440
|
-
type:
|
|
8448
|
+
var DTODocumentationPageRestoreActionInput = z284.object({
|
|
8449
|
+
type: z284.literal("DocumentationPageRestore"),
|
|
8441
8450
|
input: DTORestoreDocumentationPageInput
|
|
8442
8451
|
});
|
|
8443
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
8444
|
-
type:
|
|
8452
|
+
var DTODocumentationGroupRestoreActionInput = z284.object({
|
|
8453
|
+
type: z284.literal("DocumentationGroupRestore"),
|
|
8445
8454
|
input: DTORestoreDocumentationGroupInput
|
|
8446
8455
|
});
|
|
8447
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
8448
|
-
type:
|
|
8456
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z284.object({
|
|
8457
|
+
type: z284.literal("DocumentationPageApprovalStateChange"),
|
|
8449
8458
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
8450
8459
|
});
|
|
8451
8460
|
|
|
8452
8461
|
// src/api/dto/elements/documentation/page-content.ts
|
|
8453
|
-
import { z as
|
|
8462
|
+
import { z as z285 } from "zod";
|
|
8454
8463
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
8455
|
-
var DTODocumentationPageContentGetResponse =
|
|
8464
|
+
var DTODocumentationPageContentGetResponse = z285.object({
|
|
8456
8465
|
pageContent: DTODocumentationPageContent
|
|
8457
8466
|
});
|
|
8458
8467
|
|
|
8459
8468
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
8460
|
-
import { z as
|
|
8461
|
-
var DTODocumentationPageDependencies =
|
|
8462
|
-
id:
|
|
8463
|
-
designSystemVersionId:
|
|
8464
|
-
createdAt:
|
|
8465
|
-
updatedAt:
|
|
8466
|
-
documentationPageId:
|
|
8467
|
-
tokenPersistentIds:
|
|
8468
|
-
figmaComponentPersistentIds:
|
|
8469
|
-
componentPersistentIds:
|
|
8470
|
-
figmaNodePersistentIds:
|
|
8471
|
-
groupPersistentIds:
|
|
8472
|
-
propertyPersistentIds:
|
|
8473
|
-
themePersistentIds:
|
|
8474
|
-
documentationPagePersistentIds:
|
|
8475
|
-
storybookEntriesStoryIds:
|
|
8476
|
-
});
|
|
8477
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
8478
|
-
dependencies:
|
|
8469
|
+
import { z as z286 } from "zod";
|
|
8470
|
+
var DTODocumentationPageDependencies = z286.object({
|
|
8471
|
+
id: z286.string(),
|
|
8472
|
+
designSystemVersionId: z286.string(),
|
|
8473
|
+
createdAt: z286.coerce.date(),
|
|
8474
|
+
updatedAt: z286.coerce.date(),
|
|
8475
|
+
documentationPageId: z286.string(),
|
|
8476
|
+
tokenPersistentIds: z286.array(z286.string()),
|
|
8477
|
+
figmaComponentPersistentIds: z286.array(z286.string()),
|
|
8478
|
+
componentPersistentIds: z286.array(z286.string()),
|
|
8479
|
+
figmaNodePersistentIds: z286.array(z286.string()),
|
|
8480
|
+
groupPersistentIds: z286.array(z286.string()),
|
|
8481
|
+
propertyPersistentIds: z286.array(z286.string()),
|
|
8482
|
+
themePersistentIds: z286.array(z286.string()),
|
|
8483
|
+
documentationPagePersistentIds: z286.array(z286.string()),
|
|
8484
|
+
storybookEntriesStoryIds: z286.array(z286.string())
|
|
8485
|
+
});
|
|
8486
|
+
var DTODocumentationPageDependenciesGetResponse = z286.object({
|
|
8487
|
+
dependencies: z286.array(DTODocumentationPageDependencies)
|
|
8479
8488
|
});
|
|
8480
8489
|
|
|
8481
8490
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
8482
|
-
import { z as
|
|
8491
|
+
import { z as z287 } from "zod";
|
|
8483
8492
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
8484
8493
|
data: true,
|
|
8485
8494
|
meta: true,
|
|
@@ -8487,81 +8496,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
8487
8496
|
sortOrder: true
|
|
8488
8497
|
}).extend({
|
|
8489
8498
|
configuration: DTODocumentationItemConfigurationV1,
|
|
8490
|
-
blocks:
|
|
8491
|
-
title:
|
|
8492
|
-
path:
|
|
8499
|
+
blocks: z287.array(PageBlockV1),
|
|
8500
|
+
title: z287.string(),
|
|
8501
|
+
path: z287.string()
|
|
8493
8502
|
});
|
|
8494
8503
|
|
|
8495
8504
|
// src/api/dto/elements/documentation/settings.ts
|
|
8496
|
-
import { z as
|
|
8497
|
-
var DTODocumentationSettings =
|
|
8498
|
-
isDraftFeatureAdopted:
|
|
8499
|
-
isApprovalsFeatureEnabled:
|
|
8500
|
-
isApprovalRequiredForPublishing:
|
|
8505
|
+
import { z as z288 } from "zod";
|
|
8506
|
+
var DTODocumentationSettings = z288.object({
|
|
8507
|
+
isDraftFeatureAdopted: z288.boolean(),
|
|
8508
|
+
isApprovalsFeatureEnabled: z288.boolean(),
|
|
8509
|
+
isApprovalRequiredForPublishing: z288.boolean()
|
|
8501
8510
|
});
|
|
8502
8511
|
|
|
8503
8512
|
// src/api/dto/elements/documentation/structure.ts
|
|
8504
|
-
import { z as
|
|
8505
|
-
var DTODocumentationStructureItemType =
|
|
8506
|
-
var DTODocumentationStructureItemBase =
|
|
8513
|
+
import { z as z289 } from "zod";
|
|
8514
|
+
var DTODocumentationStructureItemType = z289.enum(["Group", "Page"]);
|
|
8515
|
+
var DTODocumentationStructureItemBase = z289.object({
|
|
8507
8516
|
type: DTODocumentationStructureItemType,
|
|
8508
|
-
id:
|
|
8509
|
-
designSystemVersionId:
|
|
8510
|
-
shortPersistentId:
|
|
8511
|
-
persistentId:
|
|
8512
|
-
title:
|
|
8513
|
-
createdAt:
|
|
8514
|
-
updatedAt:
|
|
8517
|
+
id: z289.string(),
|
|
8518
|
+
designSystemVersionId: z289.string(),
|
|
8519
|
+
shortPersistentId: z289.string(),
|
|
8520
|
+
persistentId: z289.string(),
|
|
8521
|
+
title: z289.string(),
|
|
8522
|
+
createdAt: z289.coerce.date(),
|
|
8523
|
+
updatedAt: z289.coerce.date()
|
|
8515
8524
|
});
|
|
8516
8525
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
8517
|
-
type:
|
|
8518
|
-
groupBehavior:
|
|
8519
|
-
childrenIds:
|
|
8520
|
-
isRoot:
|
|
8526
|
+
type: z289.literal(DTODocumentationStructureItemType.enum.Group),
|
|
8527
|
+
groupBehavior: z289.string(),
|
|
8528
|
+
childrenIds: z289.string().array(),
|
|
8529
|
+
isRoot: z289.boolean()
|
|
8521
8530
|
});
|
|
8522
8531
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
8523
|
-
type:
|
|
8524
|
-
path:
|
|
8532
|
+
type: z289.literal(DTODocumentationStructureItemType.enum.Page),
|
|
8533
|
+
path: z289.string()
|
|
8525
8534
|
});
|
|
8526
|
-
var DTODocumentationStructureItem =
|
|
8535
|
+
var DTODocumentationStructureItem = z289.discriminatedUnion("type", [
|
|
8527
8536
|
DTODocumentationStructureGroupItem,
|
|
8528
8537
|
DTODocumentationStructurePageItem
|
|
8529
8538
|
]);
|
|
8530
|
-
var DTODocumentationStructure =
|
|
8531
|
-
items:
|
|
8539
|
+
var DTODocumentationStructure = z289.object({
|
|
8540
|
+
items: z289.array(DTODocumentationStructureItem)
|
|
8532
8541
|
});
|
|
8533
8542
|
|
|
8534
8543
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
8535
|
-
import { z as
|
|
8536
|
-
var DTOFigmaNodeStructure =
|
|
8537
|
-
id:
|
|
8538
|
-
sourceId:
|
|
8544
|
+
import { z as z290 } from "zod";
|
|
8545
|
+
var DTOFigmaNodeStructure = z290.object({
|
|
8546
|
+
id: z290.string(),
|
|
8547
|
+
sourceId: z290.string(),
|
|
8539
8548
|
importState: FigmaNodeStructureStateV2,
|
|
8540
|
-
createdAt:
|
|
8541
|
-
updatedAt:
|
|
8549
|
+
createdAt: z290.coerce.date(),
|
|
8550
|
+
updatedAt: z290.coerce.date()
|
|
8542
8551
|
});
|
|
8543
8552
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
8544
8553
|
rootNode: FigmaFileStructureNode
|
|
8545
8554
|
});
|
|
8546
|
-
var DTOFigmaNodeStructureListResponse =
|
|
8555
|
+
var DTOFigmaNodeStructureListResponse = z290.object({
|
|
8547
8556
|
structures: DTOFigmaNodeStructure.array()
|
|
8548
8557
|
});
|
|
8549
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
8558
|
+
var DTOFigmaNodeStructureDetailResponse = z290.object({
|
|
8550
8559
|
structure: DTOFigmaNodeStructureDetail
|
|
8551
8560
|
});
|
|
8552
8561
|
|
|
8553
8562
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8554
|
-
import { z as
|
|
8563
|
+
import { z as z292 } from "zod";
|
|
8555
8564
|
|
|
8556
8565
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
8557
|
-
import { z as
|
|
8566
|
+
import { z as z291 } from "zod";
|
|
8558
8567
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
8559
|
-
var DTOFigmaNodeOrigin =
|
|
8560
|
-
sourceId:
|
|
8561
|
-
fileId:
|
|
8562
|
-
parentName:
|
|
8568
|
+
var DTOFigmaNodeOrigin = z291.object({
|
|
8569
|
+
sourceId: z291.string(),
|
|
8570
|
+
fileId: z291.string().optional(),
|
|
8571
|
+
parentName: z291.string().optional()
|
|
8563
8572
|
});
|
|
8564
|
-
var DTOFigmaNodeRenderInputBase =
|
|
8573
|
+
var DTOFigmaNodeRenderInputBase = z291.object({
|
|
8565
8574
|
/**
|
|
8566
8575
|
* Format in which the node must be rendered, png by default.
|
|
8567
8576
|
*/
|
|
@@ -8569,57 +8578,57 @@ var DTOFigmaNodeRenderInputBase = z290.object({
|
|
|
8569
8578
|
/**
|
|
8570
8579
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
8571
8580
|
*/
|
|
8572
|
-
scale:
|
|
8581
|
+
scale: z291.number().optional()
|
|
8573
8582
|
});
|
|
8574
8583
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8575
|
-
inputType:
|
|
8584
|
+
inputType: z291.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
8576
8585
|
/**
|
|
8577
8586
|
* Id of a design system's data source representing a linked Figma file
|
|
8578
8587
|
*/
|
|
8579
|
-
sourceId:
|
|
8588
|
+
sourceId: z291.string(),
|
|
8580
8589
|
/**
|
|
8581
8590
|
* Id of a node within the Figma file
|
|
8582
8591
|
*/
|
|
8583
|
-
figmaFileNodeId:
|
|
8592
|
+
figmaFileNodeId: z291.string()
|
|
8584
8593
|
});
|
|
8585
8594
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8586
|
-
inputType:
|
|
8595
|
+
inputType: z291.literal("URL"),
|
|
8587
8596
|
/**
|
|
8588
8597
|
* Id of a design system's data source representing a linked Figma file
|
|
8589
8598
|
*/
|
|
8590
|
-
figmaNodeUrl:
|
|
8599
|
+
figmaNodeUrl: z291.string(),
|
|
8591
8600
|
/**
|
|
8592
8601
|
* Brand persistent id to use in case a source has to be created for this render
|
|
8593
8602
|
*/
|
|
8594
|
-
brandPersistentId:
|
|
8603
|
+
brandPersistentId: z291.string()
|
|
8595
8604
|
});
|
|
8596
|
-
var DTOFigmaNodeRerenderInput =
|
|
8597
|
-
inputType:
|
|
8605
|
+
var DTOFigmaNodeRerenderInput = z291.object({
|
|
8606
|
+
inputType: z291.literal("Rerender"),
|
|
8598
8607
|
/**
|
|
8599
8608
|
* Persistent ID of an existing Figma node
|
|
8600
8609
|
*/
|
|
8601
|
-
figmaNodePersistentId:
|
|
8610
|
+
figmaNodePersistentId: z291.string()
|
|
8602
8611
|
});
|
|
8603
|
-
var DTOFigmaNodeRenderInput =
|
|
8612
|
+
var DTOFigmaNodeRenderInput = z291.discriminatedUnion("inputType", [
|
|
8604
8613
|
DTOFigmaNodeRenderIdInput,
|
|
8605
8614
|
DTOFigmaNodeRenderUrlInput,
|
|
8606
8615
|
DTOFigmaNodeRerenderInput
|
|
8607
8616
|
]);
|
|
8608
8617
|
|
|
8609
8618
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8610
|
-
var DTOFigmaNodeData =
|
|
8619
|
+
var DTOFigmaNodeData = z292.object({
|
|
8611
8620
|
// Id of the node in the Figma file
|
|
8612
|
-
figmaNodeId:
|
|
8621
|
+
figmaNodeId: z292.string(),
|
|
8613
8622
|
// Validity
|
|
8614
|
-
isValid:
|
|
8623
|
+
isValid: z292.boolean(),
|
|
8615
8624
|
// Asset data
|
|
8616
|
-
assetId:
|
|
8617
|
-
assetUrl:
|
|
8625
|
+
assetId: z292.string(),
|
|
8626
|
+
assetUrl: z292.string(),
|
|
8618
8627
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
8619
8628
|
// Asset metadata
|
|
8620
|
-
assetScale:
|
|
8621
|
-
assetWidth:
|
|
8622
|
-
assetHeight:
|
|
8629
|
+
assetScale: z292.number(),
|
|
8630
|
+
assetWidth: z292.number().optional(),
|
|
8631
|
+
assetHeight: z292.number().optional()
|
|
8623
8632
|
});
|
|
8624
8633
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
8625
8634
|
data: true,
|
|
@@ -8630,15 +8639,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
8630
8639
|
});
|
|
8631
8640
|
|
|
8632
8641
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
8633
|
-
import { z as
|
|
8634
|
-
var DTOFigmaNodeDataV2 =
|
|
8635
|
-
sceneNodeId:
|
|
8642
|
+
import { z as z293 } from "zod";
|
|
8643
|
+
var DTOFigmaNodeDataV2 = z293.object({
|
|
8644
|
+
sceneNodeId: z293.string(),
|
|
8636
8645
|
format: FigmaNodeRenderFormat,
|
|
8637
|
-
scale:
|
|
8646
|
+
scale: z293.number().optional(),
|
|
8638
8647
|
renderState: FigmaNodeRenderState,
|
|
8639
8648
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
8640
8649
|
renderError: FigmaNodeRenderError.optional(),
|
|
8641
|
-
hasSource:
|
|
8650
|
+
hasSource: z293.boolean()
|
|
8642
8651
|
});
|
|
8643
8652
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
8644
8653
|
data: true,
|
|
@@ -8649,113 +8658,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
8649
8658
|
});
|
|
8650
8659
|
|
|
8651
8660
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
8652
|
-
import { z as
|
|
8653
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
8654
|
-
type:
|
|
8655
|
-
figmaNodes:
|
|
8661
|
+
import { z as z294 } from "zod";
|
|
8662
|
+
var DTOFigmaNodeRenderActionOutput = z294.object({
|
|
8663
|
+
type: z294.literal("FigmaNodeRender"),
|
|
8664
|
+
figmaNodes: z294.array(DTOFigmaNode)
|
|
8656
8665
|
});
|
|
8657
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
8658
|
-
type:
|
|
8659
|
-
figmaNodes:
|
|
8666
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z294.object({
|
|
8667
|
+
type: z294.literal("FigmaNodeRenderAsync"),
|
|
8668
|
+
figmaNodes: z294.array(DTOFigmaNodeV2)
|
|
8660
8669
|
});
|
|
8661
|
-
var DTOFigmaNodeRenderActionInput =
|
|
8662
|
-
type:
|
|
8670
|
+
var DTOFigmaNodeRenderActionInput = z294.object({
|
|
8671
|
+
type: z294.literal("FigmaNodeRender"),
|
|
8663
8672
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
8664
8673
|
});
|
|
8665
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
8666
|
-
type:
|
|
8674
|
+
var DTOFigmaNodeRenderAsyncActionInput = z294.object({
|
|
8675
|
+
type: z294.literal("FigmaNodeRenderAsync"),
|
|
8667
8676
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
8668
8677
|
});
|
|
8669
8678
|
|
|
8670
8679
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8671
|
-
import { z as
|
|
8672
|
-
var DTOFrameNodeStructure =
|
|
8673
|
-
id:
|
|
8674
|
-
persistentId:
|
|
8675
|
-
designSystemVersionId:
|
|
8680
|
+
import { z as z295 } from "zod";
|
|
8681
|
+
var DTOFrameNodeStructure = z295.object({
|
|
8682
|
+
id: z295.string(),
|
|
8683
|
+
persistentId: z295.string(),
|
|
8684
|
+
designSystemVersionId: z295.string(),
|
|
8676
8685
|
origin: FigmaFileStructureOrigin,
|
|
8677
8686
|
assetsInFile: FigmaFileStructureStatistics
|
|
8678
8687
|
});
|
|
8679
|
-
var DTOFrameNodeStructureListResponse =
|
|
8688
|
+
var DTOFrameNodeStructureListResponse = z295.object({
|
|
8680
8689
|
structures: DTOFrameNodeStructure.array()
|
|
8681
8690
|
});
|
|
8682
8691
|
|
|
8683
8692
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8684
|
-
import { z as
|
|
8693
|
+
import { z as z296 } from "zod";
|
|
8685
8694
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8686
|
-
var DTOElementPropertyDefinitionOption =
|
|
8687
|
-
id:
|
|
8688
|
-
name:
|
|
8695
|
+
var DTOElementPropertyDefinitionOption = z296.object({
|
|
8696
|
+
id: z296.string(),
|
|
8697
|
+
name: z296.string(),
|
|
8689
8698
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8690
8699
|
});
|
|
8691
|
-
var DTOElementPropertyDefinition =
|
|
8692
|
-
id:
|
|
8693
|
-
designSystemVersionId:
|
|
8700
|
+
var DTOElementPropertyDefinition = z296.object({
|
|
8701
|
+
id: z296.string(),
|
|
8702
|
+
designSystemVersionId: z296.string(),
|
|
8694
8703
|
meta: DTOObjectMeta,
|
|
8695
|
-
persistentId:
|
|
8704
|
+
persistentId: z296.string(),
|
|
8696
8705
|
type: ElementPropertyTypeSchema,
|
|
8697
8706
|
targetElementType: ElementPropertyTargetType,
|
|
8698
|
-
codeName:
|
|
8699
|
-
options: nullishToOptional(
|
|
8707
|
+
codeName: z296.string().regex(CODE_NAME_REGEX2),
|
|
8708
|
+
options: nullishToOptional(z296.array(DTOElementPropertyDefinitionOption)),
|
|
8700
8709
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8701
|
-
isImmutable:
|
|
8710
|
+
isImmutable: z296.boolean(),
|
|
8702
8711
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8703
8712
|
});
|
|
8704
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8705
|
-
definitions:
|
|
8713
|
+
var DTOElementPropertyDefinitionListResponse = z296.object({
|
|
8714
|
+
definitions: z296.array(DTOElementPropertyDefinition)
|
|
8706
8715
|
});
|
|
8707
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8716
|
+
var DTOElementPropertyDefinitionResponse = z296.object({
|
|
8708
8717
|
definition: DTOElementPropertyDefinition
|
|
8709
8718
|
});
|
|
8710
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8719
|
+
var DTOElementPropertyDefinitionCreatePayload = z296.object({
|
|
8711
8720
|
meta: DTOObjectMeta,
|
|
8712
|
-
persistentId:
|
|
8721
|
+
persistentId: z296.string(),
|
|
8713
8722
|
type: ElementPropertyTypeSchema,
|
|
8714
8723
|
targetElementType: ElementPropertyTargetType,
|
|
8715
|
-
codeName:
|
|
8716
|
-
options: nullishToOptional(
|
|
8724
|
+
codeName: z296.string().regex(CODE_NAME_REGEX2),
|
|
8725
|
+
options: nullishToOptional(z296.array(DTOElementPropertyDefinitionOption)),
|
|
8717
8726
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8718
|
-
columnWidth:
|
|
8727
|
+
columnWidth: z296.number().max(1024).optional()
|
|
8719
8728
|
});
|
|
8720
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8729
|
+
var DTOElementPropertyDefinitionUpdatePayload = z296.object({
|
|
8721
8730
|
meta: DTOObjectMeta.optional(),
|
|
8722
|
-
codeName:
|
|
8723
|
-
options:
|
|
8731
|
+
codeName: z296.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8732
|
+
options: z296.array(DTOElementPropertyDefinitionOption).optional()
|
|
8724
8733
|
});
|
|
8725
8734
|
|
|
8726
8735
|
// src/api/dto/elements/properties/property-values.ts
|
|
8727
|
-
import { z as
|
|
8728
|
-
var DTOElementPropertyValue =
|
|
8729
|
-
id:
|
|
8730
|
-
designSystemVersionId:
|
|
8731
|
-
definitionId:
|
|
8732
|
-
targetElementId:
|
|
8733
|
-
value:
|
|
8734
|
-
valuePreview:
|
|
8735
|
-
});
|
|
8736
|
-
var DTOElementPropertyValueListResponse =
|
|
8737
|
-
values:
|
|
8738
|
-
});
|
|
8739
|
-
var DTOElementPropertyValueResponse =
|
|
8736
|
+
import { z as z297 } from "zod";
|
|
8737
|
+
var DTOElementPropertyValue = z297.object({
|
|
8738
|
+
id: z297.string(),
|
|
8739
|
+
designSystemVersionId: z297.string(),
|
|
8740
|
+
definitionId: z297.string(),
|
|
8741
|
+
targetElementId: z297.string(),
|
|
8742
|
+
value: z297.union([z297.string(), z297.number(), z297.boolean()]).optional(),
|
|
8743
|
+
valuePreview: z297.string().optional()
|
|
8744
|
+
});
|
|
8745
|
+
var DTOElementPropertyValueListResponse = z297.object({
|
|
8746
|
+
values: z297.array(DTOElementPropertyValue)
|
|
8747
|
+
});
|
|
8748
|
+
var DTOElementPropertyValueResponse = z297.object({
|
|
8740
8749
|
value: DTOElementPropertyValue
|
|
8741
8750
|
});
|
|
8742
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8743
|
-
type:
|
|
8744
|
-
output:
|
|
8751
|
+
var DTOElementPropertyValuesEditActionOutput = z297.object({
|
|
8752
|
+
type: z297.literal("ElementPropertyValuesEdit"),
|
|
8753
|
+
output: z297.object({ success: z297.literal(true) })
|
|
8745
8754
|
});
|
|
8746
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8747
|
-
definitionId:
|
|
8748
|
-
targetElementId:
|
|
8749
|
-
value:
|
|
8755
|
+
var DTOElementPropertyValueUpsertPaylod = z297.object({
|
|
8756
|
+
definitionId: z297.string(),
|
|
8757
|
+
targetElementId: z297.string(),
|
|
8758
|
+
value: z297.string().or(z297.number()).or(z297.boolean()).nullable()
|
|
8750
8759
|
});
|
|
8751
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8752
|
-
type:
|
|
8760
|
+
var DTOElementPropertyValuesEditActionInput = z297.object({
|
|
8761
|
+
type: z297.literal("ElementPropertyValuesEdit"),
|
|
8753
8762
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8754
8763
|
});
|
|
8755
8764
|
|
|
8756
8765
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8757
|
-
import { z as
|
|
8758
|
-
var DTOElementActionOutput =
|
|
8766
|
+
import { z as z298 } from "zod";
|
|
8767
|
+
var DTOElementActionOutput = z298.discriminatedUnion("type", [
|
|
8759
8768
|
// Documentation pages
|
|
8760
8769
|
DTODocumentationPageCreateActionOutputV2,
|
|
8761
8770
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8782,7 +8791,7 @@ var DTOElementActionOutput = z297.discriminatedUnion("type", [
|
|
|
8782
8791
|
// Element properties
|
|
8783
8792
|
DTOElementPropertyValuesEditActionOutput
|
|
8784
8793
|
]);
|
|
8785
|
-
var DTOElementActionInput =
|
|
8794
|
+
var DTOElementActionInput = z298.discriminatedUnion("type", [
|
|
8786
8795
|
// Documentation pages
|
|
8787
8796
|
DTODocumentationPageCreateActionInputV2,
|
|
8788
8797
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8809,78 +8818,78 @@ var DTOElementActionInput = z297.discriminatedUnion("type", [
|
|
|
8809
8818
|
// Element properties
|
|
8810
8819
|
DTOElementPropertyValuesEditActionInput
|
|
8811
8820
|
]).and(
|
|
8812
|
-
|
|
8813
|
-
tId:
|
|
8821
|
+
z298.object({
|
|
8822
|
+
tId: z298.string().optional()
|
|
8814
8823
|
})
|
|
8815
8824
|
);
|
|
8816
8825
|
|
|
8817
8826
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8818
|
-
import { z as
|
|
8819
|
-
var DTOElementsGetTypeFilter =
|
|
8820
|
-
var DTOElementsGetQuerySchema =
|
|
8821
|
-
types:
|
|
8822
|
-
responseVersion:
|
|
8827
|
+
import { z as z299 } from "zod";
|
|
8828
|
+
var DTOElementsGetTypeFilter = z299.enum(["FigmaNode"]);
|
|
8829
|
+
var DTOElementsGetQuerySchema = z299.object({
|
|
8830
|
+
types: z299.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8831
|
+
responseVersion: z299.coerce.number().default(1)
|
|
8823
8832
|
});
|
|
8824
|
-
var DTOElementsGetOutput =
|
|
8825
|
-
figmaNodes:
|
|
8833
|
+
var DTOElementsGetOutput = z299.object({
|
|
8834
|
+
figmaNodes: z299.array(DTOFigmaNode).optional()
|
|
8826
8835
|
});
|
|
8827
|
-
var DTOElementsGetOutputV2 =
|
|
8828
|
-
figmaNodes:
|
|
8836
|
+
var DTOElementsGetOutputV2 = z299.object({
|
|
8837
|
+
figmaNodes: z299.array(DTOFigmaNodeV2).optional()
|
|
8829
8838
|
});
|
|
8830
8839
|
|
|
8831
8840
|
// src/api/dto/figma-components/assets/download.ts
|
|
8832
|
-
import { z as
|
|
8833
|
-
var DTOAssetRenderConfiguration =
|
|
8834
|
-
prefix:
|
|
8835
|
-
suffix:
|
|
8836
|
-
scale:
|
|
8837
|
-
format:
|
|
8838
|
-
});
|
|
8839
|
-
var DTORenderedAssetFile =
|
|
8840
|
-
assetId:
|
|
8841
|
-
fileName:
|
|
8842
|
-
sourceUrl:
|
|
8841
|
+
import { z as z300 } from "zod";
|
|
8842
|
+
var DTOAssetRenderConfiguration = z300.object({
|
|
8843
|
+
prefix: z300.string().optional(),
|
|
8844
|
+
suffix: z300.string().optional(),
|
|
8845
|
+
scale: z300.enum(["x1", "x2", "x3", "x4"]),
|
|
8846
|
+
format: z300.enum(["png", "pdf", "svg"])
|
|
8847
|
+
});
|
|
8848
|
+
var DTORenderedAssetFile = z300.object({
|
|
8849
|
+
assetId: z300.string(),
|
|
8850
|
+
fileName: z300.string(),
|
|
8851
|
+
sourceUrl: z300.string(),
|
|
8843
8852
|
settings: DTOAssetRenderConfiguration,
|
|
8844
|
-
originalName:
|
|
8853
|
+
originalName: z300.string()
|
|
8845
8854
|
});
|
|
8846
|
-
var DTODownloadAssetsRequest =
|
|
8847
|
-
persistentIds:
|
|
8855
|
+
var DTODownloadAssetsRequest = z300.object({
|
|
8856
|
+
persistentIds: z300.array(z300.string().uuid()).optional(),
|
|
8848
8857
|
settings: DTOAssetRenderConfiguration.array()
|
|
8849
8858
|
});
|
|
8850
|
-
var DTODownloadAssetsResponse =
|
|
8859
|
+
var DTODownloadAssetsResponse = z300.object({
|
|
8851
8860
|
items: DTORenderedAssetFile.array()
|
|
8852
8861
|
});
|
|
8853
8862
|
|
|
8854
8863
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
8855
|
-
import { z as
|
|
8856
|
-
var DTOFigmaNodeResponse =
|
|
8864
|
+
import { z as z301 } from "zod";
|
|
8865
|
+
var DTOFigmaNodeResponse = z301.object({
|
|
8857
8866
|
nodes: FigmaExporterAnyDesignNodeSchema
|
|
8858
8867
|
});
|
|
8859
8868
|
|
|
8860
8869
|
// src/api/dto/forge/agent.ts
|
|
8861
|
-
import { z as
|
|
8870
|
+
import { z as z302 } from "zod";
|
|
8862
8871
|
var DTOForgeAgent = ForgeAgent;
|
|
8863
8872
|
var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
|
|
8864
8873
|
var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
|
|
8865
|
-
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id:
|
|
8866
|
-
var DTOCreateForgeAgentResponse =
|
|
8874
|
+
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z302.string() });
|
|
8875
|
+
var DTOCreateForgeAgentResponse = z302.object({
|
|
8867
8876
|
agent: DTOForgeAgent
|
|
8868
8877
|
});
|
|
8869
|
-
var DTOUGetForgeAgentResponse =
|
|
8878
|
+
var DTOUGetForgeAgentResponse = z302.object({
|
|
8870
8879
|
agent: DTOForgeAgent.nullable()
|
|
8871
8880
|
});
|
|
8872
|
-
var DTOUpdateForgeAgentResponse =
|
|
8881
|
+
var DTOUpdateForgeAgentResponse = z302.object({
|
|
8873
8882
|
agent: DTOForgeAgent.nullable()
|
|
8874
8883
|
});
|
|
8875
|
-
var DTOForgeAgentsListResponse =
|
|
8876
|
-
agents:
|
|
8884
|
+
var DTOForgeAgentsListResponse = z302.object({
|
|
8885
|
+
agents: z302.array(DTOForgeAgent)
|
|
8877
8886
|
});
|
|
8878
|
-
var DTODeleteForgeAgentResponse =
|
|
8879
|
-
ok:
|
|
8887
|
+
var DTODeleteForgeAgentResponse = z302.object({
|
|
8888
|
+
ok: z302.literal(true)
|
|
8880
8889
|
});
|
|
8881
8890
|
|
|
8882
8891
|
// src/api/dto/forge/artifact.ts
|
|
8883
|
-
import { z as
|
|
8892
|
+
import { z as z303 } from "zod";
|
|
8884
8893
|
var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
|
|
8885
8894
|
id: true,
|
|
8886
8895
|
createdAt: true,
|
|
@@ -8901,48 +8910,48 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
|
|
|
8901
8910
|
createdAt: true,
|
|
8902
8911
|
projectIterationId: true
|
|
8903
8912
|
});
|
|
8904
|
-
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id:
|
|
8905
|
-
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id:
|
|
8906
|
-
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id:
|
|
8907
|
-
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id:
|
|
8913
|
+
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z303.string() });
|
|
8914
|
+
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z303.string() });
|
|
8915
|
+
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z303.string() });
|
|
8916
|
+
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z303.string() });
|
|
8908
8917
|
var DTOForgeArtifact = ForgeArtifact;
|
|
8909
8918
|
var DTOForgeBuildArtifact = ForgeBuildArtifact;
|
|
8910
8919
|
var DTOForgeFileArtifact = ForgeFileArtifact;
|
|
8911
8920
|
var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
|
|
8912
8921
|
var DTOForgeSpecArtifact = ForgeSpecArtifact;
|
|
8913
|
-
var DTOCreateForgeArtifact =
|
|
8922
|
+
var DTOCreateForgeArtifact = z303.union([
|
|
8914
8923
|
DTOCreateForgeBuildArtifact,
|
|
8915
8924
|
DTOCreateForgeFileArtifact,
|
|
8916
8925
|
DTOCreateForgeFigmaArtifact,
|
|
8917
8926
|
DTOCreateForgeSpecArtifact
|
|
8918
8927
|
]);
|
|
8919
|
-
var DTOUpdateForgeArtifact =
|
|
8928
|
+
var DTOUpdateForgeArtifact = z303.union([
|
|
8920
8929
|
DTOUpdateForgeFileArtifact,
|
|
8921
8930
|
DTOUpdateForgeBuildArtifact,
|
|
8922
8931
|
DTOUpdateForgeSpecArtifact,
|
|
8923
8932
|
DTOUpdateForgeFigmaArtifact
|
|
8924
8933
|
]);
|
|
8925
|
-
var DTOCreateForgeArtifactResponse =
|
|
8934
|
+
var DTOCreateForgeArtifactResponse = z303.object({
|
|
8926
8935
|
artifact: DTOForgeArtifact
|
|
8927
8936
|
});
|
|
8928
|
-
var DTOUpdateForgeArtifactResponse =
|
|
8937
|
+
var DTOUpdateForgeArtifactResponse = z303.object({
|
|
8929
8938
|
artifact: DTOForgeArtifact.nullable()
|
|
8930
8939
|
});
|
|
8931
|
-
var DTODeleteForgeArtifactResponse =
|
|
8932
|
-
ok:
|
|
8940
|
+
var DTODeleteForgeArtifactResponse = z303.object({
|
|
8941
|
+
ok: z303.literal(true)
|
|
8933
8942
|
});
|
|
8934
|
-
var DTOForgeArtifactsListResponse =
|
|
8935
|
-
artifacts:
|
|
8943
|
+
var DTOForgeArtifactsListResponse = z303.object({
|
|
8944
|
+
artifacts: z303.array(DTOForgeArtifact)
|
|
8936
8945
|
});
|
|
8937
|
-
var DTOForgeArtifactGetResponse =
|
|
8946
|
+
var DTOForgeArtifactGetResponse = z303.object({
|
|
8938
8947
|
artifact: DTOForgeArtifact.nullable()
|
|
8939
8948
|
});
|
|
8940
8949
|
|
|
8941
8950
|
// src/api/dto/forge/iteration-message.ts
|
|
8942
|
-
import { z as
|
|
8951
|
+
import { z as z305 } from "zod";
|
|
8943
8952
|
|
|
8944
8953
|
// src/api/dto/forge/participant.ts
|
|
8945
|
-
import { z as
|
|
8954
|
+
import { z as z304 } from "zod";
|
|
8946
8955
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
8947
8956
|
agent: DTOForgeAgent.optional(),
|
|
8948
8957
|
user: DTOUser.optional()
|
|
@@ -8952,20 +8961,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
8952
8961
|
agent: true,
|
|
8953
8962
|
user: true
|
|
8954
8963
|
});
|
|
8955
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
8956
|
-
var DTOCreateForgeParticipantResponse =
|
|
8964
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z304.string() });
|
|
8965
|
+
var DTOCreateForgeParticipantResponse = z304.object({
|
|
8957
8966
|
participant: DTOForgeParticipant
|
|
8958
8967
|
});
|
|
8959
|
-
var DTOUpdateForgeParticipantResponse =
|
|
8968
|
+
var DTOUpdateForgeParticipantResponse = z304.object({
|
|
8960
8969
|
participant: DTOForgeParticipant.nullable()
|
|
8961
8970
|
});
|
|
8962
|
-
var DTODeleteForgeParticipantResponse =
|
|
8963
|
-
ok:
|
|
8971
|
+
var DTODeleteForgeParticipantResponse = z304.object({
|
|
8972
|
+
ok: z304.literal(true)
|
|
8964
8973
|
});
|
|
8965
|
-
var DTOForgeParticipantsListResponse =
|
|
8966
|
-
participants:
|
|
8974
|
+
var DTOForgeParticipantsListResponse = z304.object({
|
|
8975
|
+
participants: z304.array(DTOForgeParticipant)
|
|
8967
8976
|
});
|
|
8968
|
-
var DTOForgeParticipantGetResponse =
|
|
8977
|
+
var DTOForgeParticipantGetResponse = z304.object({
|
|
8969
8978
|
participant: DTOForgeParticipant.nullable()
|
|
8970
8979
|
});
|
|
8971
8980
|
|
|
@@ -8977,113 +8986,133 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
8977
8986
|
projectIterationId: true,
|
|
8978
8987
|
participant: true
|
|
8979
8988
|
});
|
|
8980
|
-
var DTOGetForgeIterationMessageResponse =
|
|
8989
|
+
var DTOGetForgeIterationMessageResponse = z305.object({
|
|
8981
8990
|
message: DTOForgeIterationMessage.nullable()
|
|
8982
8991
|
});
|
|
8983
|
-
var DTOForgeIterationMessagesListResponse =
|
|
8984
|
-
messages:
|
|
8992
|
+
var DTOForgeIterationMessagesListResponse = z305.object({
|
|
8993
|
+
messages: z305.array(DTOForgeIterationMessage)
|
|
8985
8994
|
});
|
|
8986
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
8987
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
8995
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z305.string() });
|
|
8996
|
+
var DTOCreateForgeIterationMessageResponse = z305.object({
|
|
8988
8997
|
message: DTOForgeIterationMessage
|
|
8989
8998
|
});
|
|
8990
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
8999
|
+
var DTOUpdateForgeIterationMessageResponse = z305.object({
|
|
8991
9000
|
message: DTOForgeIterationMessage.nullable()
|
|
8992
9001
|
});
|
|
8993
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
8994
|
-
ok:
|
|
9002
|
+
var DTODeleteForgeIterationMessageResponse = z305.object({
|
|
9003
|
+
ok: z305.literal(true)
|
|
8995
9004
|
});
|
|
8996
9005
|
|
|
8997
9006
|
// src/api/dto/forge/project-action.ts
|
|
8998
|
-
import
|
|
9007
|
+
import z308 from "zod";
|
|
9008
|
+
|
|
9009
|
+
// src/api/dto/forge/project-artifact.ts
|
|
9010
|
+
import { z as z306 } from "zod";
|
|
9011
|
+
var omitProps = {
|
|
9012
|
+
projectId: true,
|
|
9013
|
+
createdByUserId: true,
|
|
9014
|
+
createdAt: true,
|
|
9015
|
+
updatedAt: true
|
|
9016
|
+
};
|
|
9017
|
+
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9018
|
+
var DTOForgeProjectArtifactUpdateInput = DTOForgeProjectArtifact.omit({
|
|
9019
|
+
...omitProps,
|
|
9020
|
+
iterationId: true
|
|
9021
|
+
}).partial().extend({
|
|
9022
|
+
id: ForgeProjectArtifact.shape.id
|
|
9023
|
+
// explicitly reintroduce required id
|
|
9024
|
+
});
|
|
9025
|
+
var DTOForgeProjectArtifactCreateInput = DTOForgeProjectArtifact.omit(omitProps);
|
|
9026
|
+
var DTOForgeProjectArtifactDeleteInput = z306.object({
|
|
9027
|
+
id: z306.string()
|
|
9028
|
+
});
|
|
9029
|
+
var DTOForgeProjectArtifactGetResponse = z306.object({
|
|
9030
|
+
artifact: DTOForgeProjectArtifact
|
|
9031
|
+
});
|
|
9032
|
+
var DTOForgeProjectArtifactCreateResponse = z306.object({
|
|
9033
|
+
artifact: DTOForgeProjectArtifact
|
|
9034
|
+
});
|
|
9035
|
+
var DTOForgeProjectArtifactUpdateResponse = z306.object({
|
|
9036
|
+
artifact: DTOForgeProjectArtifact
|
|
9037
|
+
});
|
|
9038
|
+
var DTOForgeProjectArtifactDeleteResponse = z306.object({
|
|
9039
|
+
ok: z306.literal(true)
|
|
9040
|
+
});
|
|
9041
|
+
var DTOForgeProjectArtifactsListResponse = z306.object({
|
|
9042
|
+
artifacts: z306.array(DTOForgeProjectArtifact)
|
|
9043
|
+
});
|
|
8999
9044
|
|
|
9000
9045
|
// src/api/dto/forge/project-feature.ts
|
|
9001
|
-
import
|
|
9002
|
-
var DTOForgeProjectFeature =
|
|
9003
|
-
id:
|
|
9004
|
-
name:
|
|
9005
|
-
description:
|
|
9006
|
-
isArchived:
|
|
9007
|
-
});
|
|
9008
|
-
var DTOForgeProjectFeatureListResponse =
|
|
9046
|
+
import z307 from "zod";
|
|
9047
|
+
var DTOForgeProjectFeature = z307.object({
|
|
9048
|
+
id: z307.string(),
|
|
9049
|
+
name: z307.string(),
|
|
9050
|
+
description: z307.string(),
|
|
9051
|
+
isArchived: z307.boolean()
|
|
9052
|
+
});
|
|
9053
|
+
var DTOForgeProjectFeatureListResponse = z307.object({
|
|
9009
9054
|
features: DTOForgeProjectFeature.array()
|
|
9010
9055
|
});
|
|
9011
|
-
var DTOForgeProjectFeatureCreateInput =
|
|
9012
|
-
id:
|
|
9013
|
-
name:
|
|
9014
|
-
description:
|
|
9056
|
+
var DTOForgeProjectFeatureCreateInput = z307.object({
|
|
9057
|
+
id: z307.string(),
|
|
9058
|
+
name: z307.string(),
|
|
9059
|
+
description: z307.string()
|
|
9015
9060
|
});
|
|
9016
|
-
var DTOForgeProjectFeatureUpdateInput =
|
|
9017
|
-
id:
|
|
9018
|
-
name:
|
|
9019
|
-
description:
|
|
9020
|
-
isArchived:
|
|
9061
|
+
var DTOForgeProjectFeatureUpdateInput = z307.object({
|
|
9062
|
+
id: z307.string(),
|
|
9063
|
+
name: z307.string().optional(),
|
|
9064
|
+
description: z307.string().optional(),
|
|
9065
|
+
isArchived: z307.boolean().optional()
|
|
9021
9066
|
});
|
|
9022
|
-
var DTOForgeProjectFeatureDeleteInput =
|
|
9023
|
-
id:
|
|
9067
|
+
var DTOForgeProjectFeatureDeleteInput = z307.object({
|
|
9068
|
+
id: z307.string()
|
|
9024
9069
|
});
|
|
9025
9070
|
|
|
9026
9071
|
// src/api/dto/forge/project-action.ts
|
|
9027
|
-
var DTOForgeProjectActionFeatureCreate =
|
|
9028
|
-
type:
|
|
9072
|
+
var DTOForgeProjectActionFeatureCreate = z308.object({
|
|
9073
|
+
type: z308.literal("FeatureCreate"),
|
|
9029
9074
|
input: DTOForgeProjectFeatureCreateInput
|
|
9030
9075
|
});
|
|
9031
|
-
var DTOForgeProjectActionFeatureUpdate =
|
|
9032
|
-
type:
|
|
9076
|
+
var DTOForgeProjectActionFeatureUpdate = z308.object({
|
|
9077
|
+
type: z308.literal("FeatureUpdate"),
|
|
9033
9078
|
input: DTOForgeProjectFeatureCreateInput
|
|
9034
9079
|
});
|
|
9035
|
-
var DTOForgeProjectActionFeatureDelete =
|
|
9036
|
-
type:
|
|
9080
|
+
var DTOForgeProjectActionFeatureDelete = z308.object({
|
|
9081
|
+
type: z308.literal("FeatureDelete"),
|
|
9037
9082
|
input: DTOForgeProjectFeatureDeleteInput
|
|
9038
9083
|
});
|
|
9039
|
-
var
|
|
9084
|
+
var DTOForgeProjectActionArtifactCreate = z308.object({
|
|
9085
|
+
type: z308.literal("ArtifactCreate"),
|
|
9086
|
+
input: DTOForgeProjectArtifactCreateInput
|
|
9087
|
+
});
|
|
9088
|
+
var DTOForgeProjectActionArtifactUpdate = z308.object({
|
|
9089
|
+
type: z308.literal("ArtifactUpdate"),
|
|
9090
|
+
input: DTOForgeProjectArtifactUpdateInput
|
|
9091
|
+
});
|
|
9092
|
+
var DTOForgeProjectActionArtifactDelete = z308.object({
|
|
9093
|
+
type: z308.literal("ArtifactDelete"),
|
|
9094
|
+
input: DTOForgeProjectArtifactDeleteInput
|
|
9095
|
+
});
|
|
9096
|
+
var DTOForgeProjectAction = z308.discriminatedUnion("type", [
|
|
9040
9097
|
DTOForgeProjectActionFeatureCreate,
|
|
9041
9098
|
DTOForgeProjectActionFeatureUpdate,
|
|
9042
|
-
DTOForgeProjectActionFeatureDelete
|
|
9099
|
+
DTOForgeProjectActionFeatureDelete,
|
|
9100
|
+
DTOForgeProjectActionArtifactCreate,
|
|
9101
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
9102
|
+
DTOForgeProjectActionArtifactDelete
|
|
9043
9103
|
]);
|
|
9044
9104
|
|
|
9045
9105
|
// src/api/dto/forge/project-artifact-room.ts
|
|
9046
|
-
import { z as
|
|
9047
|
-
var DTOForgeProjectArtifactRoom =
|
|
9048
|
-
id:
|
|
9106
|
+
import { z as z309 } from "zod";
|
|
9107
|
+
var DTOForgeProjectArtifactRoom = z309.object({
|
|
9108
|
+
id: z309.string()
|
|
9049
9109
|
});
|
|
9050
|
-
var DTOForgeProjectArtifactRoomResponse =
|
|
9110
|
+
var DTOForgeProjectArtifactRoomResponse = z309.object({
|
|
9051
9111
|
room: DTOForgeProjectArtifactRoom
|
|
9052
9112
|
});
|
|
9053
9113
|
|
|
9054
|
-
// src/api/dto/forge/project-artifact.ts
|
|
9055
|
-
import { z as z308 } from "zod";
|
|
9056
|
-
var omitProps = {
|
|
9057
|
-
id: true,
|
|
9058
|
-
projectId: true,
|
|
9059
|
-
createdByUserId: true,
|
|
9060
|
-
createdAt: true,
|
|
9061
|
-
updatedAt: true
|
|
9062
|
-
};
|
|
9063
|
-
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9064
|
-
var DTOForgeProjectArtifactUpdate = DTOForgeProjectArtifact.omit({
|
|
9065
|
-
...omitProps,
|
|
9066
|
-
iterationId: true
|
|
9067
|
-
}).partial();
|
|
9068
|
-
var DTOForgeProjectArtifactCreate = DTOForgeProjectArtifact.omit(omitProps);
|
|
9069
|
-
var DTOForgeProjectArtifactGetResponse = z308.object({
|
|
9070
|
-
artifact: DTOForgeProjectArtifact
|
|
9071
|
-
});
|
|
9072
|
-
var DTOForgeProjectArtifactCreateResponse = z308.object({
|
|
9073
|
-
artifact: DTOForgeProjectArtifact
|
|
9074
|
-
});
|
|
9075
|
-
var DTOForgeProjectArtifactUpdateResponse = z308.object({
|
|
9076
|
-
artifact: DTOForgeProjectArtifact
|
|
9077
|
-
});
|
|
9078
|
-
var DTOForgeProjectArtifactDeleteResponse = z308.object({
|
|
9079
|
-
ok: z308.literal(true)
|
|
9080
|
-
});
|
|
9081
|
-
var DTOForgeProjectArtifactsListResponse = z308.object({
|
|
9082
|
-
artifacts: z308.array(DTOForgeProjectArtifact)
|
|
9083
|
-
});
|
|
9084
|
-
|
|
9085
9114
|
// src/api/dto/forge/project-context.ts
|
|
9086
|
-
import { z as
|
|
9115
|
+
import { z as z310 } from "zod";
|
|
9087
9116
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9088
9117
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9089
9118
|
definition: true,
|
|
@@ -9095,17 +9124,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9095
9124
|
tailwindConfig: true,
|
|
9096
9125
|
styling: true
|
|
9097
9126
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
9098
|
-
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id:
|
|
9099
|
-
var DTOForgeProjectContextGetResponse =
|
|
9100
|
-
var DTOForgeProjectContextListResponse =
|
|
9101
|
-
var DTOForgeProjectContextCreateResponse =
|
|
9102
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
9103
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
9104
|
-
ok:
|
|
9127
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z310.string() });
|
|
9128
|
+
var DTOForgeProjectContextGetResponse = z310.object({ context: DTOForgeProjectContext.nullable() });
|
|
9129
|
+
var DTOForgeProjectContextListResponse = z310.object({ contexts: z310.array(DTOForgeProjectContext) });
|
|
9130
|
+
var DTOForgeProjectContextCreateResponse = z310.object({ context: DTOForgeProjectContext });
|
|
9131
|
+
var DTOForgeProjectContextUpdateResponse = z310.object({ context: DTOForgeProjectContext.nullable() });
|
|
9132
|
+
var DTOForgeProjectContextRemoveResponse = z310.object({
|
|
9133
|
+
ok: z310.literal(true)
|
|
9105
9134
|
});
|
|
9106
9135
|
|
|
9107
9136
|
// src/api/dto/forge/project-invitation.ts
|
|
9108
|
-
import { z as
|
|
9137
|
+
import { z as z311 } from "zod";
|
|
9109
9138
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9110
9139
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9111
9140
|
email: true,
|
|
@@ -9117,24 +9146,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({ ema
|
|
|
9117
9146
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9118
9147
|
email: true
|
|
9119
9148
|
});
|
|
9120
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
9121
|
-
invitations:
|
|
9149
|
+
var DTOForgeProjectInvitationsListResponse = z311.object({
|
|
9150
|
+
invitations: z311.array(DTOForgeProjectInvitation)
|
|
9122
9151
|
});
|
|
9123
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9152
|
+
var DTOForgeProjectInvitationGetResponse = z311.object({
|
|
9124
9153
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9125
9154
|
});
|
|
9126
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9155
|
+
var DTOForgeProjectInvitationCreateResponse = z311.object({
|
|
9127
9156
|
invitation: DTOForgeProjectInvitation
|
|
9128
9157
|
});
|
|
9129
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9158
|
+
var DTOForgeProjectInvitationUpdateResponse = z311.object({
|
|
9130
9159
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9131
9160
|
});
|
|
9132
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
9133
|
-
ok:
|
|
9161
|
+
var DTOForgeProjectInvitationRemoveResponse = z311.object({
|
|
9162
|
+
ok: z311.literal(true)
|
|
9134
9163
|
});
|
|
9135
9164
|
|
|
9136
9165
|
// src/api/dto/forge/project-iteration.ts
|
|
9137
|
-
import { z as
|
|
9166
|
+
import { z as z312 } from "zod";
|
|
9138
9167
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9139
9168
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9140
9169
|
artifacts: true,
|
|
@@ -9145,7 +9174,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9145
9174
|
messages: DTOForgeIterationMessage.array(),
|
|
9146
9175
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9147
9176
|
});
|
|
9148
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9177
|
+
var DTOGetForgeProjectIterationResponse = z312.object({
|
|
9149
9178
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9150
9179
|
});
|
|
9151
9180
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9155,20 +9184,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9155
9184
|
mergeMeta: true,
|
|
9156
9185
|
createdAt: true
|
|
9157
9186
|
});
|
|
9158
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9159
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9187
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z312.string() });
|
|
9188
|
+
var DTOCreateForgeProjectIterationResponse = z312.object({
|
|
9160
9189
|
iteration: DTOForgeProjectIteration
|
|
9161
9190
|
});
|
|
9162
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9191
|
+
var DTOUpdateForgeProjectIterationResponse = z312.object({
|
|
9163
9192
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9164
9193
|
});
|
|
9165
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9166
|
-
ok:
|
|
9194
|
+
var DTODeleteForgeProjectIterationResponse = z312.object({
|
|
9195
|
+
ok: z312.literal(true)
|
|
9167
9196
|
});
|
|
9168
|
-
var DTOForgeProjectIterationListResponse =
|
|
9197
|
+
var DTOForgeProjectIterationListResponse = z312.object({ iterations: z312.array(DTOForgeProjectIteration) });
|
|
9169
9198
|
|
|
9170
9199
|
// src/api/dto/forge/project-member.ts
|
|
9171
|
-
import { z as
|
|
9200
|
+
import { z as z313 } from "zod";
|
|
9172
9201
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9173
9202
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9174
9203
|
user: DTOUser,
|
|
@@ -9182,36 +9211,36 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: tru
|
|
|
9182
9211
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9183
9212
|
userId: true
|
|
9184
9213
|
});
|
|
9185
|
-
var DTOForgeProjectMembersListResponse =
|
|
9186
|
-
members:
|
|
9214
|
+
var DTOForgeProjectMembersListResponse = z313.object({
|
|
9215
|
+
members: z313.array(DTOForgeProjectMember)
|
|
9187
9216
|
});
|
|
9188
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9217
|
+
var DTOForgeProjectMemberGetResponse = z313.object({
|
|
9189
9218
|
member: DTOForgeProjectMember.nullable()
|
|
9190
9219
|
});
|
|
9191
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9220
|
+
var DTOForgeProjectMemberCreateResponse = z313.object({
|
|
9192
9221
|
member: DTOForgeProjectMember
|
|
9193
9222
|
});
|
|
9194
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9223
|
+
var DTOForgeProjectMemberUpdateResponse = z313.object({
|
|
9195
9224
|
member: DTOForgeProjectMember.nullable()
|
|
9196
9225
|
});
|
|
9197
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9198
|
-
ok:
|
|
9226
|
+
var DTOForgeProjectMemberRemoveResponse = z313.object({
|
|
9227
|
+
ok: z313.literal(true)
|
|
9199
9228
|
});
|
|
9200
9229
|
|
|
9201
9230
|
// src/api/dto/forge/project-room.ts
|
|
9202
|
-
import { z as
|
|
9203
|
-
var DTOForgeProjectRoom =
|
|
9204
|
-
id:
|
|
9231
|
+
import { z as z314 } from "zod";
|
|
9232
|
+
var DTOForgeProjectRoom = z314.object({
|
|
9233
|
+
id: z314.string()
|
|
9205
9234
|
});
|
|
9206
|
-
var DTOForgeProjectRoomResponse =
|
|
9235
|
+
var DTOForgeProjectRoomResponse = z314.object({
|
|
9207
9236
|
room: DTOForgeProjectRoom
|
|
9208
9237
|
});
|
|
9209
9238
|
|
|
9210
9239
|
// src/api/dto/forge/project.ts
|
|
9211
|
-
import { z as
|
|
9240
|
+
import { z as z315 } from "zod";
|
|
9212
9241
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9213
9242
|
context: ForgeProjectContext,
|
|
9214
|
-
members:
|
|
9243
|
+
members: z315.array(DTOForgeProjectMember)
|
|
9215
9244
|
});
|
|
9216
9245
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9217
9246
|
instruction: true,
|
|
@@ -9223,156 +9252,156 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9223
9252
|
isArchived: true
|
|
9224
9253
|
});
|
|
9225
9254
|
var DTOUpdateForgeProject = DTOCreateForgeProject.partial().extend({
|
|
9226
|
-
id:
|
|
9227
|
-
membersToRetain:
|
|
9255
|
+
id: z315.string(),
|
|
9256
|
+
membersToRetain: z315.string().array().min(1).optional()
|
|
9228
9257
|
});
|
|
9229
|
-
var DTOForgeProjectGetResponse =
|
|
9230
|
-
var DTOForgeProjectsListResponse =
|
|
9231
|
-
var DTOCreateForgeProjectResponse =
|
|
9258
|
+
var DTOForgeProjectGetResponse = z315.object({ project: DTOForgeProject.nullable() });
|
|
9259
|
+
var DTOForgeProjectsListResponse = z315.object({ projects: z315.array(DTOForgeProject) });
|
|
9260
|
+
var DTOCreateForgeProjectResponse = z315.object({
|
|
9232
9261
|
project: DTOForgeProject
|
|
9233
9262
|
});
|
|
9234
|
-
var DTOUpdateForgeProjectResponse =
|
|
9263
|
+
var DTOUpdateForgeProjectResponse = z315.object({
|
|
9235
9264
|
project: DTOForgeProject.nullable()
|
|
9236
9265
|
});
|
|
9237
|
-
var DTOUGetForgeProjectResponse =
|
|
9266
|
+
var DTOUGetForgeProjectResponse = z315.object({
|
|
9238
9267
|
project: DTOForgeProject
|
|
9239
9268
|
});
|
|
9240
|
-
var DTORemoveForgeProjectResponse =
|
|
9269
|
+
var DTORemoveForgeProjectResponse = z315.object({ ok: z315.literal(true) });
|
|
9241
9270
|
|
|
9242
9271
|
// src/api/dto/forge/threads.ts
|
|
9243
|
-
import { z as
|
|
9272
|
+
import { z as z316 } from "zod";
|
|
9244
9273
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9245
9274
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9246
9275
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9247
9276
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9248
|
-
var DTOForgeChatThreadCreateInput =
|
|
9249
|
-
title:
|
|
9277
|
+
var DTOForgeChatThreadCreateInput = z316.object({
|
|
9278
|
+
title: z316.string().optional()
|
|
9250
9279
|
});
|
|
9251
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9280
|
+
var DTOForgeChatThreadCreateResponse = z316.object({
|
|
9252
9281
|
thread: DTOForgeChatThread
|
|
9253
9282
|
});
|
|
9254
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9255
|
-
title:
|
|
9283
|
+
var DTOForgeChatThreadUpdateInput = z316.object({
|
|
9284
|
+
title: z316.string()
|
|
9256
9285
|
});
|
|
9257
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9286
|
+
var DTOForgeChatThreadUpdateResponse = z316.object({
|
|
9258
9287
|
thread: DTOForgeChatThread
|
|
9259
9288
|
});
|
|
9260
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9261
|
-
success:
|
|
9289
|
+
var DTOForgeChatThreadDeleteResponse = z316.object({
|
|
9290
|
+
success: z316.boolean()
|
|
9262
9291
|
});
|
|
9263
|
-
var DTOForgeChatThreadListQuery =
|
|
9264
|
-
limit:
|
|
9265
|
-
offset:
|
|
9292
|
+
var DTOForgeChatThreadListQuery = z316.object({
|
|
9293
|
+
limit: z316.number().optional(),
|
|
9294
|
+
offset: z316.number().optional()
|
|
9266
9295
|
});
|
|
9267
|
-
var DTOForgeChatThreadListResponse =
|
|
9268
|
-
threads:
|
|
9269
|
-
pagination:
|
|
9270
|
-
offset:
|
|
9271
|
-
limit:
|
|
9272
|
-
total:
|
|
9296
|
+
var DTOForgeChatThreadListResponse = z316.object({
|
|
9297
|
+
threads: z316.array(DTOForgeChatThread),
|
|
9298
|
+
pagination: z316.object({
|
|
9299
|
+
offset: z316.number(),
|
|
9300
|
+
limit: z316.number(),
|
|
9301
|
+
total: z316.number()
|
|
9273
9302
|
})
|
|
9274
9303
|
});
|
|
9275
|
-
var DTOForgeChatMessageCreateInput =
|
|
9276
|
-
payload:
|
|
9304
|
+
var DTOForgeChatMessageCreateInput = z316.object({
|
|
9305
|
+
payload: z316.string(),
|
|
9277
9306
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9278
|
-
opikTraceId:
|
|
9307
|
+
opikTraceId: z316.string().optional()
|
|
9279
9308
|
});
|
|
9280
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9309
|
+
var DTOForgeChatMessageCreateResponse = z316.object({
|
|
9281
9310
|
message: DTOForgeChatMessage
|
|
9282
9311
|
});
|
|
9283
|
-
var DTOForgeChatMessageListQuery =
|
|
9284
|
-
limit:
|
|
9285
|
-
offset:
|
|
9312
|
+
var DTOForgeChatMessageListQuery = z316.object({
|
|
9313
|
+
limit: z316.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9314
|
+
offset: z316.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9286
9315
|
});
|
|
9287
|
-
var DTOForgeChatMessageListResponse =
|
|
9288
|
-
messages:
|
|
9289
|
-
totalCount:
|
|
9290
|
-
hasMore:
|
|
9316
|
+
var DTOForgeChatMessageListResponse = z316.object({
|
|
9317
|
+
messages: z316.array(DTOForgeChatMessage),
|
|
9318
|
+
totalCount: z316.number(),
|
|
9319
|
+
hasMore: z316.boolean()
|
|
9291
9320
|
});
|
|
9292
|
-
var DTOForgeChatMessageScoreInput =
|
|
9293
|
-
messageId:
|
|
9294
|
-
name:
|
|
9295
|
-
value:
|
|
9296
|
-
categoryName:
|
|
9297
|
-
reason:
|
|
9321
|
+
var DTOForgeChatMessageScoreInput = z316.object({
|
|
9322
|
+
messageId: z316.string(),
|
|
9323
|
+
name: z316.string(),
|
|
9324
|
+
value: z316.number(),
|
|
9325
|
+
categoryName: z316.string().optional(),
|
|
9326
|
+
reason: z316.string().optional()
|
|
9298
9327
|
});
|
|
9299
|
-
var DTOForgeChatMessageTagInput =
|
|
9300
|
-
messageId:
|
|
9301
|
-
tags:
|
|
9328
|
+
var DTOForgeChatMessageTagInput = z316.object({
|
|
9329
|
+
messageId: z316.string(),
|
|
9330
|
+
tags: z316.array(z316.string())
|
|
9302
9331
|
});
|
|
9303
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9332
|
+
var DTOForgeChatMessageScoreRequest = z316.object({
|
|
9304
9333
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9305
9334
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9306
9335
|
});
|
|
9307
9336
|
|
|
9308
9337
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9309
|
-
import { z as
|
|
9310
|
-
var DTOLiveblocksAuthResponse =
|
|
9311
|
-
token:
|
|
9338
|
+
import { z as z317 } from "zod";
|
|
9339
|
+
var DTOLiveblocksAuthResponse = z317.object({
|
|
9340
|
+
token: z317.string()
|
|
9312
9341
|
});
|
|
9313
9342
|
|
|
9314
9343
|
// src/api/dto/portal/portal-settings.ts
|
|
9315
|
-
import { z as
|
|
9344
|
+
import { z as z318 } from "zod";
|
|
9316
9345
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9317
9346
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9318
9347
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9319
9348
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9320
|
-
var DTOPortalSettings =
|
|
9321
|
-
id:
|
|
9322
|
-
workspaceId:
|
|
9323
|
-
enabledDesignSystemIds:
|
|
9324
|
-
enabledBrandPersistentIds:
|
|
9349
|
+
var DTOPortalSettings = z318.object({
|
|
9350
|
+
id: z318.string(),
|
|
9351
|
+
workspaceId: z318.string(),
|
|
9352
|
+
enabledDesignSystemIds: z318.array(z318.string()),
|
|
9353
|
+
enabledBrandPersistentIds: z318.array(z318.string()),
|
|
9325
9354
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9326
9355
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9327
|
-
createdAt:
|
|
9328
|
-
updatedAt:
|
|
9356
|
+
createdAt: z318.coerce.date(),
|
|
9357
|
+
updatedAt: z318.coerce.date()
|
|
9329
9358
|
});
|
|
9330
|
-
var DTOPortalSettingsGetResponse =
|
|
9359
|
+
var DTOPortalSettingsGetResponse = z318.object({
|
|
9331
9360
|
portalSettings: DTOPortalSettings
|
|
9332
9361
|
});
|
|
9333
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9334
|
-
enabledDesignSystemIds:
|
|
9335
|
-
enabledBrandPersistentIds:
|
|
9362
|
+
var DTOPortalSettingsUpdatePayload = z318.object({
|
|
9363
|
+
enabledDesignSystemIds: z318.array(z318.string()).optional(),
|
|
9364
|
+
enabledBrandPersistentIds: z318.array(z318.string()).optional(),
|
|
9336
9365
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9337
9366
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9338
9367
|
});
|
|
9339
9368
|
|
|
9340
9369
|
// src/api/dto/themes/override.ts
|
|
9341
|
-
import { z as
|
|
9370
|
+
import { z as z319 } from "zod";
|
|
9342
9371
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9343
|
-
|
|
9344
|
-
tokenPersistentId:
|
|
9372
|
+
z319.object({
|
|
9373
|
+
tokenPersistentId: z319.string(),
|
|
9345
9374
|
origin: ThemeOverrideOrigin.optional()
|
|
9346
9375
|
})
|
|
9347
9376
|
);
|
|
9348
9377
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9349
|
-
|
|
9350
|
-
tokenPersistentId:
|
|
9378
|
+
z319.object({
|
|
9379
|
+
tokenPersistentId: z319.string()
|
|
9351
9380
|
})
|
|
9352
9381
|
);
|
|
9353
9382
|
|
|
9354
9383
|
// src/api/dto/themes/theme.ts
|
|
9355
|
-
import { z as
|
|
9356
|
-
var DTOTheme =
|
|
9357
|
-
id:
|
|
9358
|
-
persistentId:
|
|
9359
|
-
designSystemVersionId:
|
|
9360
|
-
brandId:
|
|
9384
|
+
import { z as z320 } from "zod";
|
|
9385
|
+
var DTOTheme = z320.object({
|
|
9386
|
+
id: z320.string(),
|
|
9387
|
+
persistentId: z320.string(),
|
|
9388
|
+
designSystemVersionId: z320.string(),
|
|
9389
|
+
brandId: z320.string(),
|
|
9361
9390
|
meta: ObjectMeta,
|
|
9362
|
-
codeName:
|
|
9391
|
+
codeName: z320.string(),
|
|
9363
9392
|
overrides: DTOThemeOverride.array()
|
|
9364
9393
|
});
|
|
9365
|
-
var DTOThemeResponse =
|
|
9394
|
+
var DTOThemeResponse = z320.object({
|
|
9366
9395
|
theme: DTOTheme
|
|
9367
9396
|
});
|
|
9368
|
-
var DTOThemeListResponse =
|
|
9397
|
+
var DTOThemeListResponse = z320.object({
|
|
9369
9398
|
themes: DTOTheme.array()
|
|
9370
9399
|
});
|
|
9371
|
-
var DTOThemeCreatePayload =
|
|
9400
|
+
var DTOThemeCreatePayload = z320.object({
|
|
9372
9401
|
meta: ObjectMeta,
|
|
9373
|
-
persistentId:
|
|
9374
|
-
brandId:
|
|
9375
|
-
codeName:
|
|
9402
|
+
persistentId: z320.string(),
|
|
9403
|
+
brandId: z320.string(),
|
|
9404
|
+
codeName: z320.string(),
|
|
9376
9405
|
overrides: DTOThemeOverride.array()
|
|
9377
9406
|
});
|
|
9378
9407
|
|
|
@@ -9608,13 +9637,13 @@ var ExportersEndpoint = class {
|
|
|
9608
9637
|
};
|
|
9609
9638
|
|
|
9610
9639
|
// src/api/endpoints/codegen/jobs.ts
|
|
9611
|
-
import { z as
|
|
9640
|
+
import { z as z321 } from "zod";
|
|
9612
9641
|
var ExporterJobsEndpoint = class {
|
|
9613
9642
|
constructor(requestExecutor) {
|
|
9614
9643
|
this.requestExecutor = requestExecutor;
|
|
9615
9644
|
}
|
|
9616
9645
|
list(workspaceId) {
|
|
9617
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9646
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z321.any());
|
|
9618
9647
|
}
|
|
9619
9648
|
get(workspaceId, jobId) {
|
|
9620
9649
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9672,7 +9701,7 @@ var CodegenEndpoint = class {
|
|
|
9672
9701
|
};
|
|
9673
9702
|
|
|
9674
9703
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9675
|
-
import { z as
|
|
9704
|
+
import { z as z322 } from "zod";
|
|
9676
9705
|
var BrandsEndpoint = class {
|
|
9677
9706
|
constructor(requestExecutor) {
|
|
9678
9707
|
this.requestExecutor = requestExecutor;
|
|
@@ -9706,7 +9735,7 @@ var BrandsEndpoint = class {
|
|
|
9706
9735
|
});
|
|
9707
9736
|
}
|
|
9708
9737
|
delete(dsId, vId, brandId) {
|
|
9709
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
9738
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z322.any(), {
|
|
9710
9739
|
method: "DELETE"
|
|
9711
9740
|
});
|
|
9712
9741
|
}
|
|
@@ -9973,7 +10002,7 @@ var ImportJobsEndpoint = class {
|
|
|
9973
10002
|
};
|
|
9974
10003
|
|
|
9975
10004
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
9976
|
-
import { z as
|
|
10005
|
+
import { z as z323 } from "zod";
|
|
9977
10006
|
var OverridesEndpoint = class {
|
|
9978
10007
|
constructor(requestExecutor) {
|
|
9979
10008
|
this.requestExecutor = requestExecutor;
|
|
@@ -9981,7 +10010,7 @@ var OverridesEndpoint = class {
|
|
|
9981
10010
|
create(dsId, versionId, themeId, body) {
|
|
9982
10011
|
return this.requestExecutor.json(
|
|
9983
10012
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
9984
|
-
|
|
10013
|
+
z323.any(),
|
|
9985
10014
|
{
|
|
9986
10015
|
method: "POST",
|
|
9987
10016
|
body
|
|
@@ -9991,7 +10020,7 @@ var OverridesEndpoint = class {
|
|
|
9991
10020
|
};
|
|
9992
10021
|
|
|
9993
10022
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
9994
|
-
import { z as
|
|
10023
|
+
import { z as z324 } from "zod";
|
|
9995
10024
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
9996
10025
|
constructor(requestExecutor) {
|
|
9997
10026
|
this.requestExecutor = requestExecutor;
|
|
@@ -10019,7 +10048,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
10019
10048
|
delete(designSystemId, versionId, defId) {
|
|
10020
10049
|
return this.requestExecutor.json(
|
|
10021
10050
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
10022
|
-
|
|
10051
|
+
z324.any(),
|
|
10023
10052
|
{ method: "DELETE" }
|
|
10024
10053
|
);
|
|
10025
10054
|
}
|
|
@@ -10058,7 +10087,7 @@ var VersionStatsEndpoint = class {
|
|
|
10058
10087
|
};
|
|
10059
10088
|
|
|
10060
10089
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
10061
|
-
import { z as
|
|
10090
|
+
import { z as z325 } from "zod";
|
|
10062
10091
|
var ThemesEndpoint = class {
|
|
10063
10092
|
constructor(requestExecutor) {
|
|
10064
10093
|
this.requestExecutor = requestExecutor;
|
|
@@ -10081,7 +10110,7 @@ var ThemesEndpoint = class {
|
|
|
10081
10110
|
});
|
|
10082
10111
|
}
|
|
10083
10112
|
delete(dsId, versionId, themeId) {
|
|
10084
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
10113
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z325.any(), {
|
|
10085
10114
|
method: "DELETE"
|
|
10086
10115
|
});
|
|
10087
10116
|
}
|
|
@@ -10252,7 +10281,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10252
10281
|
};
|
|
10253
10282
|
|
|
10254
10283
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10255
|
-
import { z as
|
|
10284
|
+
import { z as z329 } from "zod";
|
|
10256
10285
|
|
|
10257
10286
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10258
10287
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10329,7 +10358,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10329
10358
|
};
|
|
10330
10359
|
|
|
10331
10360
|
// src/api/endpoints/design-system/sources.ts
|
|
10332
|
-
import { z as
|
|
10361
|
+
import { z as z326 } from "zod";
|
|
10333
10362
|
var DesignSystemSourcesEndpoint = class {
|
|
10334
10363
|
constructor(requestExecutor) {
|
|
10335
10364
|
this.requestExecutor = requestExecutor;
|
|
@@ -10347,7 +10376,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10347
10376
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10348
10377
|
}
|
|
10349
10378
|
delete(dsId, sourceId) {
|
|
10350
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10379
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z326.any(), { method: "DELETE" });
|
|
10351
10380
|
}
|
|
10352
10381
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10353
10382
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10390,7 +10419,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10390
10419
|
};
|
|
10391
10420
|
|
|
10392
10421
|
// src/api/endpoints/design-system/storybook.ts
|
|
10393
|
-
import { z as
|
|
10422
|
+
import { z as z327 } from "zod";
|
|
10394
10423
|
var StorybookEntriesEndpoint = class {
|
|
10395
10424
|
constructor(requestExecutor) {
|
|
10396
10425
|
this.requestExecutor = requestExecutor;
|
|
@@ -10406,14 +10435,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10406
10435
|
);
|
|
10407
10436
|
}
|
|
10408
10437
|
delete(dsId, entryId) {
|
|
10409
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10438
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z327.any(), {
|
|
10410
10439
|
method: "DELETE"
|
|
10411
10440
|
});
|
|
10412
10441
|
}
|
|
10413
10442
|
};
|
|
10414
10443
|
|
|
10415
10444
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10416
|
-
import { z as
|
|
10445
|
+
import { z as z328 } from "zod";
|
|
10417
10446
|
var StorybookHostingEndpoint = class {
|
|
10418
10447
|
constructor(requestExecutor) {
|
|
10419
10448
|
this.requestExecutor = requestExecutor;
|
|
@@ -10427,7 +10456,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10427
10456
|
delete(dsId, storybookUploadId) {
|
|
10428
10457
|
return this.requestExecutor.json(
|
|
10429
10458
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10430
|
-
|
|
10459
|
+
z328.object({ ok: z328.boolean() }),
|
|
10431
10460
|
{
|
|
10432
10461
|
method: "DELETE"
|
|
10433
10462
|
}
|
|
@@ -10485,7 +10514,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10485
10514
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10486
10515
|
}
|
|
10487
10516
|
delete(dsId) {
|
|
10488
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10517
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z329.any(), { method: "DELETE" });
|
|
10489
10518
|
}
|
|
10490
10519
|
update(dsId, body) {
|
|
10491
10520
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10683,7 +10712,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10683
10712
|
};
|
|
10684
10713
|
|
|
10685
10714
|
// src/api/endpoints/forge/project-members.ts
|
|
10686
|
-
import { z as
|
|
10715
|
+
import { z as z330 } from "zod";
|
|
10687
10716
|
var ForgeProjectMembersEndpoint = class {
|
|
10688
10717
|
constructor(requestExecutor) {
|
|
10689
10718
|
this.requestExecutor = requestExecutor;
|
|
@@ -10712,7 +10741,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10712
10741
|
delete(projectId, userId) {
|
|
10713
10742
|
return this.requestExecutor.json(
|
|
10714
10743
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10715
|
-
|
|
10744
|
+
z330.object({ ok: z330.literal(true) }),
|
|
10716
10745
|
{
|
|
10717
10746
|
method: "DELETE"
|
|
10718
10747
|
}
|
|
@@ -10866,7 +10895,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
10866
10895
|
};
|
|
10867
10896
|
|
|
10868
10897
|
// src/api/endpoints/forge/project-invitations.ts
|
|
10869
|
-
import { z as
|
|
10898
|
+
import { z as z331 } from "zod";
|
|
10870
10899
|
var ForgeProjectInvitationsEndpoint = class {
|
|
10871
10900
|
constructor(requestExecutor) {
|
|
10872
10901
|
this.requestExecutor = requestExecutor;
|
|
@@ -10903,7 +10932,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
10903
10932
|
delete(projectId, email) {
|
|
10904
10933
|
return this.requestExecutor.json(
|
|
10905
10934
|
`/forge/projects/${projectId}/invitations/${encodeURI(email)}`,
|
|
10906
|
-
|
|
10935
|
+
z331.object({ ok: z331.literal(true) }),
|
|
10907
10936
|
{
|
|
10908
10937
|
method: "DELETE"
|
|
10909
10938
|
}
|
|
@@ -10936,7 +10965,7 @@ var ForgesEndpoint = class {
|
|
|
10936
10965
|
};
|
|
10937
10966
|
|
|
10938
10967
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
10939
|
-
import { z as
|
|
10968
|
+
import { z as z332 } from "zod";
|
|
10940
10969
|
var WorkspaceChatThreadsEndpoint = class {
|
|
10941
10970
|
constructor(requestExecutor) {
|
|
10942
10971
|
this.requestExecutor = requestExecutor;
|
|
@@ -10968,7 +10997,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
10968
10997
|
);
|
|
10969
10998
|
}
|
|
10970
10999
|
delete(workspaceId, threadId) {
|
|
10971
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11000
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z332.any(), {
|
|
10972
11001
|
method: "DELETE"
|
|
10973
11002
|
});
|
|
10974
11003
|
}
|
|
@@ -11000,7 +11029,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11000
11029
|
);
|
|
11001
11030
|
}
|
|
11002
11031
|
score(workspaceId, threadId, body) {
|
|
11003
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11032
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z332.any(), {
|
|
11004
11033
|
method: "POST",
|
|
11005
11034
|
body
|
|
11006
11035
|
});
|
|
@@ -11008,7 +11037,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11008
11037
|
};
|
|
11009
11038
|
|
|
11010
11039
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11011
|
-
import { z as
|
|
11040
|
+
import { z as z333 } from "zod";
|
|
11012
11041
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11013
11042
|
constructor(requestExecutor) {
|
|
11014
11043
|
this.requestExecutor = requestExecutor;
|
|
@@ -11017,7 +11046,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11017
11046
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11018
11047
|
}
|
|
11019
11048
|
delete(wsId, iId) {
|
|
11020
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11049
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z333.unknown(), { method: "DELETE" });
|
|
11021
11050
|
}
|
|
11022
11051
|
};
|
|
11023
11052
|
|
|
@@ -11049,7 +11078,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11049
11078
|
};
|
|
11050
11079
|
|
|
11051
11080
|
// src/api/endpoints/workspaces/members.ts
|
|
11052
|
-
import { z as
|
|
11081
|
+
import { z as z334 } from "zod";
|
|
11053
11082
|
var WorkspaceMembersEndpoint = class {
|
|
11054
11083
|
constructor(requestExecutor) {
|
|
11055
11084
|
this.requestExecutor = requestExecutor;
|
|
@@ -11066,7 +11095,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11066
11095
|
});
|
|
11067
11096
|
}
|
|
11068
11097
|
invite(workspaceId, body) {
|
|
11069
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11098
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z334.any(), { method: "POST", body });
|
|
11070
11099
|
}
|
|
11071
11100
|
delete(workspaceId, userId) {
|
|
11072
11101
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11095,7 +11124,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11095
11124
|
};
|
|
11096
11125
|
|
|
11097
11126
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11098
|
-
import { z as
|
|
11127
|
+
import { z as z335 } from "zod";
|
|
11099
11128
|
var WorkspacesEndpoint = class {
|
|
11100
11129
|
constructor(requestExecutor) {
|
|
11101
11130
|
this.requestExecutor = requestExecutor;
|
|
@@ -11127,10 +11156,10 @@ var WorkspacesEndpoint = class {
|
|
|
11127
11156
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11128
11157
|
}
|
|
11129
11158
|
delete(workspaceId) {
|
|
11130
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11159
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z335.any(), { method: "DELETE" });
|
|
11131
11160
|
}
|
|
11132
11161
|
subscription(workspaceId) {
|
|
11133
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11162
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z335.any(), { method: "GET" });
|
|
11134
11163
|
}
|
|
11135
11164
|
getPortalSettings(workspaceId) {
|
|
11136
11165
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11241,9 +11270,9 @@ ${bodyText}`,
|
|
|
11241
11270
|
|
|
11242
11271
|
// src/api/transport/request-executor.ts
|
|
11243
11272
|
import fetch from "node-fetch";
|
|
11244
|
-
import { z as
|
|
11245
|
-
var ResponseWrapper =
|
|
11246
|
-
result:
|
|
11273
|
+
import { z as z336 } from "zod";
|
|
11274
|
+
var ResponseWrapper = z336.object({
|
|
11275
|
+
result: z336.record(z336.any())
|
|
11247
11276
|
});
|
|
11248
11277
|
var RequestExecutor = class {
|
|
11249
11278
|
constructor(testServerConfig) {
|
|
@@ -11320,31 +11349,31 @@ var SupernovaApiClient = class {
|
|
|
11320
11349
|
};
|
|
11321
11350
|
|
|
11322
11351
|
// src/events/design-system.ts
|
|
11323
|
-
import { z as
|
|
11324
|
-
var DTOEventFigmaNodesRendered =
|
|
11325
|
-
type:
|
|
11326
|
-
designSystemId:
|
|
11327
|
-
versionId:
|
|
11328
|
-
figmaNodePersistentIds:
|
|
11329
|
-
});
|
|
11330
|
-
var DTOEventDataSourcesImported =
|
|
11331
|
-
type:
|
|
11332
|
-
designSystemId:
|
|
11333
|
-
versionId:
|
|
11334
|
-
importJobId:
|
|
11352
|
+
import { z as z337 } from "zod";
|
|
11353
|
+
var DTOEventFigmaNodesRendered = z337.object({
|
|
11354
|
+
type: z337.literal("DesignSystem.FigmaNodesRendered"),
|
|
11355
|
+
designSystemId: z337.string(),
|
|
11356
|
+
versionId: z337.string(),
|
|
11357
|
+
figmaNodePersistentIds: z337.string().array()
|
|
11358
|
+
});
|
|
11359
|
+
var DTOEventDataSourcesImported = z337.object({
|
|
11360
|
+
type: z337.literal("DesignSystem.ImportJobFinished"),
|
|
11361
|
+
designSystemId: z337.string(),
|
|
11362
|
+
versionId: z337.string(),
|
|
11363
|
+
importJobId: z337.string(),
|
|
11335
11364
|
dataSourceType: DataSourceRemoteType,
|
|
11336
|
-
dataSourceIds:
|
|
11365
|
+
dataSourceIds: z337.string().array()
|
|
11337
11366
|
});
|
|
11338
11367
|
|
|
11339
11368
|
// src/events/event.ts
|
|
11340
|
-
import { z as
|
|
11341
|
-
var DTOEvent =
|
|
11369
|
+
import { z as z338 } from "zod";
|
|
11370
|
+
var DTOEvent = z338.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11342
11371
|
|
|
11343
11372
|
// src/sync/docs-structure-repo.ts
|
|
11344
11373
|
import PQueue from "p-queue";
|
|
11345
11374
|
|
|
11346
11375
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11347
|
-
import { z as
|
|
11376
|
+
import { z as z339 } from "zod";
|
|
11348
11377
|
|
|
11349
11378
|
// src/yjs/version-room/base.ts
|
|
11350
11379
|
var VersionRoomBaseYDoc = class {
|
|
@@ -11894,24 +11923,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
11894
11923
|
};
|
|
11895
11924
|
|
|
11896
11925
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11897
|
-
var DocumentationHierarchySettings =
|
|
11898
|
-
routingVersion:
|
|
11899
|
-
isDraftFeatureAdopted:
|
|
11900
|
-
isApprovalFeatureEnabled:
|
|
11901
|
-
approvalRequiredForPublishing:
|
|
11926
|
+
var DocumentationHierarchySettings = z339.object({
|
|
11927
|
+
routingVersion: z339.string(),
|
|
11928
|
+
isDraftFeatureAdopted: z339.boolean(),
|
|
11929
|
+
isApprovalFeatureEnabled: z339.boolean(),
|
|
11930
|
+
approvalRequiredForPublishing: z339.boolean()
|
|
11902
11931
|
});
|
|
11903
11932
|
function yjsToDocumentationHierarchy(doc) {
|
|
11904
11933
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
11905
11934
|
}
|
|
11906
11935
|
|
|
11907
11936
|
// src/yjs/design-system-content/item-configuration.ts
|
|
11908
|
-
import { z as
|
|
11909
|
-
var DTODocumentationPageRoomHeaderData =
|
|
11910
|
-
title:
|
|
11937
|
+
import { z as z340 } from "zod";
|
|
11938
|
+
var DTODocumentationPageRoomHeaderData = z340.object({
|
|
11939
|
+
title: z340.string(),
|
|
11911
11940
|
configuration: DTODocumentationItemConfigurationV2
|
|
11912
11941
|
});
|
|
11913
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
11914
|
-
title:
|
|
11942
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z340.object({
|
|
11943
|
+
title: z340.string().optional(),
|
|
11915
11944
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
11916
11945
|
});
|
|
11917
11946
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -11946,9 +11975,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
11946
11975
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
11947
11976
|
|
|
11948
11977
|
// src/yjs/docs-editor/model/page.ts
|
|
11949
|
-
import { z as
|
|
11950
|
-
var DocumentationPageEditorModel =
|
|
11951
|
-
blocks:
|
|
11978
|
+
import { z as z341 } from "zod";
|
|
11979
|
+
var DocumentationPageEditorModel = z341.object({
|
|
11980
|
+
blocks: z341.array(DocumentationPageContentItem)
|
|
11952
11981
|
});
|
|
11953
11982
|
|
|
11954
11983
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -15625,7 +15654,7 @@ var blocks = [
|
|
|
15625
15654
|
|
|
15626
15655
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
15627
15656
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
15628
|
-
import { z as
|
|
15657
|
+
import { z as z342 } from "zod";
|
|
15629
15658
|
function yDocToPage(yDoc, definitions) {
|
|
15630
15659
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
15631
15660
|
}
|
|
@@ -15701,7 +15730,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
15701
15730
|
if (!id) return null;
|
|
15702
15731
|
return {
|
|
15703
15732
|
id,
|
|
15704
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
15733
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z342.string()) ?? "",
|
|
15705
15734
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
15706
15735
|
};
|
|
15707
15736
|
}
|
|
@@ -15735,7 +15764,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
15735
15764
|
});
|
|
15736
15765
|
}
|
|
15737
15766
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
15738
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
15767
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z342.string());
|
|
15739
15768
|
if (!definitionId) {
|
|
15740
15769
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
15741
15770
|
return [];
|
|
@@ -15776,7 +15805,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
15776
15805
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15777
15806
|
if (!id) return null;
|
|
15778
15807
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15779
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
15808
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z342.string().optional()));
|
|
15780
15809
|
return {
|
|
15781
15810
|
id,
|
|
15782
15811
|
type: "Block",
|
|
@@ -15899,9 +15928,9 @@ function parseRichTextAttribute(mark) {
|
|
|
15899
15928
|
return null;
|
|
15900
15929
|
}
|
|
15901
15930
|
function parseProsemirrorLink(mark) {
|
|
15902
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
15931
|
+
const href = getProsemirrorAttribute(mark, "href", z342.string().optional());
|
|
15903
15932
|
if (!href) return null;
|
|
15904
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
15933
|
+
const target = getProsemirrorAttribute(mark, "target", z342.string().optional());
|
|
15905
15934
|
const openInNewTab = target === "_blank";
|
|
15906
15935
|
if (href.startsWith("@")) {
|
|
15907
15936
|
return {
|
|
@@ -15920,9 +15949,9 @@ function parseProsemirrorLink(mark) {
|
|
|
15920
15949
|
}
|
|
15921
15950
|
}
|
|
15922
15951
|
function parseProsemirrorCommentHighlight(mark) {
|
|
15923
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
15952
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z342.string().optional());
|
|
15924
15953
|
if (!highlightId) return null;
|
|
15925
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
15954
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z342.boolean().optional()) ?? false;
|
|
15926
15955
|
return {
|
|
15927
15956
|
type: "Comment",
|
|
15928
15957
|
commentHighlightId: highlightId,
|
|
@@ -15933,7 +15962,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15933
15962
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15934
15963
|
if (!id) return null;
|
|
15935
15964
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15936
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
15965
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z342.boolean().optional()) !== false;
|
|
15937
15966
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
15938
15967
|
if (!tableChild) {
|
|
15939
15968
|
return emptyTable(id, variantId, 0);
|
|
@@ -15979,9 +16008,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15979
16008
|
function parseAsTableCell(prosemirrorNode) {
|
|
15980
16009
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15981
16010
|
if (!id) return null;
|
|
15982
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
16011
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z342.string().optional());
|
|
15983
16012
|
let columnWidth;
|
|
15984
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
16013
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z342.array(z342.number()).nullish());
|
|
15985
16014
|
if (columnWidthArray) {
|
|
15986
16015
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
15987
16016
|
}
|
|
@@ -16017,7 +16046,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16017
16046
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16018
16047
|
};
|
|
16019
16048
|
case "image":
|
|
16020
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16049
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z342.string());
|
|
16021
16050
|
if (!items) return null;
|
|
16022
16051
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16023
16052
|
if (!parsedItems.success) return null;
|
|
@@ -16131,7 +16160,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
16131
16160
|
);
|
|
16132
16161
|
}
|
|
16133
16162
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
16134
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16163
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z342.string());
|
|
16135
16164
|
if (!itemsString) return null;
|
|
16136
16165
|
const itemsJson = JSON.parse(itemsString);
|
|
16137
16166
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -16142,18 +16171,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
16142
16171
|
}
|
|
16143
16172
|
function parseAppearance(prosemirrorNode) {
|
|
16144
16173
|
let appearance = {};
|
|
16145
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16174
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z342.string().optional());
|
|
16146
16175
|
if (rawAppearanceString) {
|
|
16147
16176
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
16148
16177
|
if (parsedAppearance.success) {
|
|
16149
16178
|
appearance = parsedAppearance.data;
|
|
16150
16179
|
}
|
|
16151
16180
|
}
|
|
16152
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16181
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z342.number().optional());
|
|
16153
16182
|
if (columns) {
|
|
16154
16183
|
appearance.numberOfColumns = columns;
|
|
16155
16184
|
}
|
|
16156
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16185
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z342.string().optional());
|
|
16157
16186
|
if (backgroundColor) {
|
|
16158
16187
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
16159
16188
|
if (parsedColor.success) {
|
|
@@ -16254,12 +16283,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16254
16283
|
}
|
|
16255
16284
|
}
|
|
16256
16285
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16257
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16286
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z342.string());
|
|
16258
16287
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16259
16288
|
return id;
|
|
16260
16289
|
}
|
|
16261
16290
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16262
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16291
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z342.string()));
|
|
16263
16292
|
}
|
|
16264
16293
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16265
16294
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -16820,6 +16849,8 @@ export {
|
|
|
16820
16849
|
DTOBffFigmaImportRequestBody,
|
|
16821
16850
|
DTOBffImportRequestBody,
|
|
16822
16851
|
DTOBffUploadImportRequestBody,
|
|
16852
|
+
DTOBillingCreditsSpendInput,
|
|
16853
|
+
DTOBillingCreditsSpendResponse,
|
|
16823
16854
|
DTOBrand,
|
|
16824
16855
|
DTOBrandCreatePayload,
|
|
16825
16856
|
DTOBrandCreateResponse,
|
|
@@ -17128,17 +17159,21 @@ export {
|
|
|
17128
17159
|
DTOForgeParticipantsListResponse,
|
|
17129
17160
|
DTOForgeProject,
|
|
17130
17161
|
DTOForgeProjectAction,
|
|
17162
|
+
DTOForgeProjectActionArtifactCreate,
|
|
17163
|
+
DTOForgeProjectActionArtifactDelete,
|
|
17164
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
17131
17165
|
DTOForgeProjectActionFeatureCreate,
|
|
17132
17166
|
DTOForgeProjectActionFeatureDelete,
|
|
17133
17167
|
DTOForgeProjectActionFeatureUpdate,
|
|
17134
17168
|
DTOForgeProjectArtifact,
|
|
17135
|
-
|
|
17169
|
+
DTOForgeProjectArtifactCreateInput,
|
|
17136
17170
|
DTOForgeProjectArtifactCreateResponse,
|
|
17171
|
+
DTOForgeProjectArtifactDeleteInput,
|
|
17137
17172
|
DTOForgeProjectArtifactDeleteResponse,
|
|
17138
17173
|
DTOForgeProjectArtifactGetResponse,
|
|
17139
17174
|
DTOForgeProjectArtifactRoom,
|
|
17140
17175
|
DTOForgeProjectArtifactRoomResponse,
|
|
17141
|
-
|
|
17176
|
+
DTOForgeProjectArtifactUpdateInput,
|
|
17142
17177
|
DTOForgeProjectArtifactUpdateResponse,
|
|
17143
17178
|
DTOForgeProjectArtifactsListResponse,
|
|
17144
17179
|
DTOForgeProjectContext,
|