@supernova-studio/client 1.90.0 → 1.90.2
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 +220 -217
- package/dist/index.d.ts +220 -217
- package/dist/index.js +50 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -252
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7148,83 +7148,83 @@ var DTOBrandUpdatePayload = z224.object({
|
|
|
7148
7148
|
persistentId: z224.string()
|
|
7149
7149
|
});
|
|
7150
7150
|
|
|
7151
|
-
// src/api/dto/design-systems/code-component.ts
|
|
7152
|
-
import z225 from "zod";
|
|
7153
|
-
var DTOCodeComponentProperty = z225.object({
|
|
7154
|
-
name: z225.string(),
|
|
7155
|
-
type: z225.string(),
|
|
7156
|
-
isRequired: z225.boolean()
|
|
7157
|
-
});
|
|
7158
|
-
var DTOCodeComponentStorybookFile = z225.object({
|
|
7159
|
-
name: z225.string(),
|
|
7160
|
-
type: z225.enum(["Story", "Doc"]),
|
|
7161
|
-
filePath: z225.string()
|
|
7162
|
-
});
|
|
7163
|
-
var DTOCodeComponentDocFile = z225.object({
|
|
7164
|
-
filePath: z225.string()
|
|
7165
|
-
});
|
|
7166
|
-
var DTOCodeComponent = z225.object({
|
|
7167
|
-
/** Name of the component in code */
|
|
7168
|
-
name: z225.string(),
|
|
7169
|
-
/** Name of the package (from package.json) from where the component was imported */
|
|
7170
|
-
packageName: z225.string(),
|
|
7171
|
-
/** Name of the repository that contains this component */
|
|
7172
|
-
repositoryName: z225.string(),
|
|
7173
|
-
/** JSDoc comment for this component */
|
|
7174
|
-
description: z225.string(),
|
|
7175
|
-
/** File path of this component, relative to the repository root */
|
|
7176
|
-
filePath: z225.string(),
|
|
7177
|
-
/** All code properties of this component */
|
|
7178
|
-
props: DTOCodeComponentProperty.array(),
|
|
7179
|
-
/** List of Storybook files that mention this component */
|
|
7180
|
-
storybookFiles: DTOCodeComponentStorybookFile.array(),
|
|
7181
|
-
/** List of doc files (markdown) that mention this component */
|
|
7182
|
-
docFiles: DTOCodeComponentDocFile.array(),
|
|
7183
|
-
createdAt: z225.string(),
|
|
7184
|
-
updatedAt: z225.string()
|
|
7185
|
-
});
|
|
7186
|
-
var DTOCodeComponentListResponse = z225.object({
|
|
7187
|
-
components: DTOCodeComponent.array()
|
|
7188
|
-
});
|
|
7189
|
-
|
|
7190
7151
|
// src/api/dto/design-systems/code-component-usage.ts
|
|
7191
|
-
import
|
|
7192
|
-
var DTOCodeComponentPropUsage =
|
|
7152
|
+
import z225 from "zod";
|
|
7153
|
+
var DTOCodeComponentPropUsage = z225.object({
|
|
7193
7154
|
/** How many times this property has been used in this repository? */
|
|
7194
|
-
usages:
|
|
7155
|
+
usages: z225.number(),
|
|
7195
7156
|
/** How many times different values have been used with this property? */
|
|
7196
|
-
values:
|
|
7157
|
+
values: z225.record(z225.number()),
|
|
7197
7158
|
/** How many times a value has not been specified? (all component usages - usages with values) */
|
|
7198
|
-
undefinedValue:
|
|
7159
|
+
undefinedValue: z225.number()
|
|
7199
7160
|
});
|
|
7200
|
-
var DTOCodeComponentUsage =
|
|
7161
|
+
var DTOCodeComponentUsage = z225.object({
|
|
7201
7162
|
/**
|
|
7202
7163
|
* Name of the component in its package.
|
|
7203
7164
|
* `componentName` and `componentPackageName` uniquely identify a component
|
|
7204
7165
|
*/
|
|
7205
|
-
componentName:
|
|
7166
|
+
componentName: z225.string(),
|
|
7206
7167
|
/**
|
|
7207
7168
|
* Which package the component is coming from.
|
|
7208
7169
|
* `componentName` and `componentPackageName` uniquely identify a component
|
|
7209
7170
|
*/
|
|
7210
|
-
componentPackageName:
|
|
7171
|
+
componentPackageName: z225.string(),
|
|
7211
7172
|
/** Which repository this component is used in */
|
|
7212
|
-
usageRepositoryName:
|
|
7173
|
+
usageRepositoryName: z225.string(),
|
|
7213
7174
|
/** Which package of the repository the component is used in */
|
|
7214
|
-
usagePackageName:
|
|
7175
|
+
usagePackageName: z225.string(),
|
|
7215
7176
|
/** How many times this component has been used in this repository? */
|
|
7216
|
-
usages:
|
|
7177
|
+
usages: z225.number(),
|
|
7217
7178
|
/** How many files has at least one usage of this component? */
|
|
7218
|
-
usageFiles:
|
|
7179
|
+
usageFiles: z225.number(),
|
|
7219
7180
|
/** Usage data of the component's props */
|
|
7220
|
-
props:
|
|
7181
|
+
props: z225.record(DTOCodeComponentPropUsage),
|
|
7221
7182
|
/** Timestamp of the scan that has shapshotted this data */
|
|
7222
|
-
scanTimestamp:
|
|
7183
|
+
scanTimestamp: z225.string()
|
|
7223
7184
|
});
|
|
7224
|
-
var DTOCodeComponentUsageResponse =
|
|
7185
|
+
var DTOCodeComponentUsageResponse = z225.object({
|
|
7225
7186
|
componentUsage: DTOCodeComponentUsage.array()
|
|
7226
7187
|
});
|
|
7227
7188
|
|
|
7189
|
+
// src/api/dto/design-systems/code-component.ts
|
|
7190
|
+
import z226 from "zod";
|
|
7191
|
+
var DTOCodeComponentProperty = z226.object({
|
|
7192
|
+
name: z226.string(),
|
|
7193
|
+
type: z226.string(),
|
|
7194
|
+
isRequired: z226.boolean()
|
|
7195
|
+
});
|
|
7196
|
+
var DTOCodeComponentStorybookFile = z226.object({
|
|
7197
|
+
name: z226.string(),
|
|
7198
|
+
type: z226.enum(["Story", "Doc"]),
|
|
7199
|
+
filePath: z226.string()
|
|
7200
|
+
});
|
|
7201
|
+
var DTOCodeComponentDocFile = z226.object({
|
|
7202
|
+
filePath: z226.string()
|
|
7203
|
+
});
|
|
7204
|
+
var DTOCodeComponent = z226.object({
|
|
7205
|
+
/** Name of the component in code */
|
|
7206
|
+
name: z226.string(),
|
|
7207
|
+
/** Name of the package (from package.json) from where the component was imported */
|
|
7208
|
+
packageName: z226.string(),
|
|
7209
|
+
/** Name of the repository that contains this component */
|
|
7210
|
+
repositoryName: z226.string(),
|
|
7211
|
+
/** JSDoc comment for this component */
|
|
7212
|
+
description: z226.string(),
|
|
7213
|
+
/** File path of this component, relative to the repository root */
|
|
7214
|
+
filePath: z226.string(),
|
|
7215
|
+
/** All code properties of this component */
|
|
7216
|
+
props: DTOCodeComponentProperty.array(),
|
|
7217
|
+
/** List of Storybook files that mention this component */
|
|
7218
|
+
storybookFiles: DTOCodeComponentStorybookFile.array(),
|
|
7219
|
+
/** List of doc files (markdown) that mention this component */
|
|
7220
|
+
docFiles: DTOCodeComponentDocFile.array(),
|
|
7221
|
+
createdAt: z226.string(),
|
|
7222
|
+
updatedAt: z226.string()
|
|
7223
|
+
});
|
|
7224
|
+
var DTOCodeComponentListResponse = z226.object({
|
|
7225
|
+
components: DTOCodeComponent.array()
|
|
7226
|
+
});
|
|
7227
|
+
|
|
7228
7228
|
// src/api/dto/design-systems/code-history.ts
|
|
7229
7229
|
import z227 from "zod";
|
|
7230
7230
|
var DTOCodeHistoryRepositoryFilter = z227.object({
|
|
@@ -8465,28 +8465,38 @@ var DTOUserDesignSystemsResponse = z260.object({
|
|
|
8465
8465
|
workspaces: DTOWorkspace.array()
|
|
8466
8466
|
});
|
|
8467
8467
|
|
|
8468
|
+
// src/api/dto/design-systems/version-room.ts
|
|
8469
|
+
import { z as z261 } from "zod";
|
|
8470
|
+
var DTODesignSystemVersionRoom = z261.object({
|
|
8471
|
+
id: z261.string()
|
|
8472
|
+
});
|
|
8473
|
+
var DTODesignSystemVersionRoomResponse = z261.object({
|
|
8474
|
+
room: DTODesignSystemVersionRoom
|
|
8475
|
+
});
|
|
8476
|
+
|
|
8468
8477
|
// src/api/dto/design-systems/version.ts
|
|
8469
|
-
import { z as
|
|
8478
|
+
import { z as z274 } from "zod";
|
|
8470
8479
|
|
|
8471
8480
|
// src/api/payloads/design-systems/code-snapshots.ts
|
|
8472
|
-
import { z as
|
|
8481
|
+
import { z as z262 } from "zod";
|
|
8473
8482
|
var DTOCodeSnapshotUploadInitScannerType = DTOCodeSnapshotScannerType;
|
|
8474
|
-
var DTOCodeSnapshotUploadInitPayload =
|
|
8475
|
-
archiveChecksum:
|
|
8476
|
-
archiveName:
|
|
8477
|
-
archiveSize:
|
|
8478
|
-
designSystemId:
|
|
8479
|
-
repoId:
|
|
8480
|
-
|
|
8483
|
+
var DTOCodeSnapshotUploadInitPayload = z262.object({
|
|
8484
|
+
archiveChecksum: z262.string(),
|
|
8485
|
+
archiveName: z262.string(),
|
|
8486
|
+
archiveSize: z262.number(),
|
|
8487
|
+
designSystemId: z262.string(),
|
|
8488
|
+
repoId: z262.string(),
|
|
8489
|
+
repoName: z262.string(),
|
|
8490
|
+
repoPackageName: z262.string(),
|
|
8481
8491
|
scannerType: DTOCodeSnapshotUploadInitScannerType
|
|
8482
8492
|
});
|
|
8483
|
-
var DTOCodeSnapshotFinalizePayload =
|
|
8484
|
-
var DTOCodeSnapshotStartProcessingRunPayload =
|
|
8485
|
-
designSystemId:
|
|
8493
|
+
var DTOCodeSnapshotFinalizePayload = z262.object({}).optional();
|
|
8494
|
+
var DTOCodeSnapshotStartProcessingRunPayload = z262.object({
|
|
8495
|
+
designSystemId: z262.string()
|
|
8486
8496
|
});
|
|
8487
8497
|
|
|
8488
8498
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
8489
|
-
import { z as
|
|
8499
|
+
import { z as z263 } from "zod";
|
|
8490
8500
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
8491
8501
|
id: true,
|
|
8492
8502
|
workspaceId: true,
|
|
@@ -8502,59 +8512,59 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
8502
8512
|
*/
|
|
8503
8513
|
designSystemSwitcher: DesignSystemSwitcher.optional()
|
|
8504
8514
|
});
|
|
8505
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
8515
|
+
var DTODesignSystemUpdateAccessModeInput = z263.object({
|
|
8506
8516
|
accessMode: DesignSystemAccessMode,
|
|
8507
|
-
retain:
|
|
8508
|
-
userIds:
|
|
8509
|
-
inviteIds:
|
|
8517
|
+
retain: z263.object({
|
|
8518
|
+
userIds: z263.string().array(),
|
|
8519
|
+
inviteIds: z263.string().array()
|
|
8510
8520
|
}).optional()
|
|
8511
8521
|
});
|
|
8512
|
-
var DTODesignSystemUpdateSwitcherInput =
|
|
8522
|
+
var DTODesignSystemUpdateSwitcherInput = z263.object({
|
|
8513
8523
|
designSystemSwitcher: DesignSystemSwitcher
|
|
8514
8524
|
});
|
|
8515
8525
|
|
|
8516
8526
|
// src/api/payloads/design-systems/version.ts
|
|
8517
|
-
import { z as
|
|
8518
|
-
var ObjectMeta2 =
|
|
8519
|
-
name:
|
|
8520
|
-
description:
|
|
8527
|
+
import { z as z264 } from "zod";
|
|
8528
|
+
var ObjectMeta2 = z264.object({
|
|
8529
|
+
name: z264.string().max(150).optional(),
|
|
8530
|
+
description: z264.string().max(2e3).optional()
|
|
8521
8531
|
});
|
|
8522
8532
|
function validateDesignSystemVersion(version) {
|
|
8523
8533
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
8524
8534
|
return urlCompliantRegex.test(version);
|
|
8525
8535
|
}
|
|
8526
|
-
var DTOCreateVersionInput =
|
|
8536
|
+
var DTOCreateVersionInput = z264.object({
|
|
8527
8537
|
meta: ObjectMeta2,
|
|
8528
|
-
version:
|
|
8538
|
+
version: z264.string().refine(validateDesignSystemVersion, {
|
|
8529
8539
|
message: "Invalid semantic versioning format"
|
|
8530
8540
|
}),
|
|
8531
|
-
changeLog:
|
|
8541
|
+
changeLog: z264.string().optional()
|
|
8532
8542
|
});
|
|
8533
|
-
var DTOUpdateVersionInput =
|
|
8543
|
+
var DTOUpdateVersionInput = z264.object({
|
|
8534
8544
|
meta: ObjectMeta2,
|
|
8535
|
-
version:
|
|
8545
|
+
version: z264.string(),
|
|
8536
8546
|
// required for PUT, but not editable
|
|
8537
|
-
changeLog:
|
|
8547
|
+
changeLog: z264.string()
|
|
8538
8548
|
});
|
|
8539
8549
|
|
|
8540
8550
|
// src/api/payloads/documentation/analytics.ts
|
|
8541
|
-
import { z as
|
|
8542
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
8543
|
-
referencePeriod:
|
|
8544
|
-
start:
|
|
8545
|
-
end:
|
|
8551
|
+
import { z as z265 } from "zod";
|
|
8552
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z265.object({
|
|
8553
|
+
referencePeriod: z265.object({
|
|
8554
|
+
start: z265.coerce.date(),
|
|
8555
|
+
end: z265.coerce.date().optional()
|
|
8546
8556
|
}),
|
|
8547
|
-
baselinePeriod:
|
|
8548
|
-
start:
|
|
8549
|
-
end:
|
|
8557
|
+
baselinePeriod: z265.object({
|
|
8558
|
+
start: z265.coerce.date(),
|
|
8559
|
+
end: z265.coerce.date().optional()
|
|
8550
8560
|
})
|
|
8551
8561
|
});
|
|
8552
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
8553
|
-
timeFrames:
|
|
8562
|
+
var DTODocumentationAnalyticsDiffPayload = z265.object({
|
|
8563
|
+
timeFrames: z265.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
8554
8564
|
});
|
|
8555
8565
|
|
|
8556
8566
|
// src/api/payloads/documentation/block-definitions.ts
|
|
8557
|
-
import { z as
|
|
8567
|
+
import { z as z266 } from "zod";
|
|
8558
8568
|
|
|
8559
8569
|
// src/api/dto/documentation/block-definition.ts
|
|
8560
8570
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -8566,79 +8576,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
8566
8576
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
8567
8577
|
|
|
8568
8578
|
// src/api/payloads/documentation/block-definitions.ts
|
|
8569
|
-
var DTOGetBlockDefinitionsQuery =
|
|
8579
|
+
var DTOGetBlockDefinitionsQuery = z266.object({
|
|
8570
8580
|
files: zodQueryBoolean()
|
|
8571
8581
|
});
|
|
8572
|
-
var DTOGetBlockDefinitionsOutput =
|
|
8573
|
-
definitions:
|
|
8582
|
+
var DTOGetBlockDefinitionsOutput = z266.object({
|
|
8583
|
+
definitions: z266.array(DTOPageBlockDefinition)
|
|
8574
8584
|
});
|
|
8575
8585
|
|
|
8576
8586
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
8577
|
-
import { z as
|
|
8578
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
8579
|
-
environment:
|
|
8587
|
+
import { z as z267 } from "zod";
|
|
8588
|
+
var DTODocumentationPublishTypeQueryParams = z267.object({
|
|
8589
|
+
environment: z267.enum(["Live", "Preview"])
|
|
8580
8590
|
});
|
|
8581
8591
|
|
|
8582
8592
|
// src/api/payloads/export/pipeline.ts
|
|
8583
|
-
import { z as
|
|
8593
|
+
import { z as z269 } from "zod";
|
|
8584
8594
|
|
|
8585
8595
|
// src/api/dto/export/exporter-property.ts
|
|
8586
|
-
import { z as
|
|
8587
|
-
var PrimitiveValue2 =
|
|
8588
|
-
var ArrayValue2 =
|
|
8589
|
-
var ObjectValue2 =
|
|
8596
|
+
import { z as z268 } from "zod";
|
|
8597
|
+
var PrimitiveValue2 = z268.number().or(z268.boolean()).or(z268.string());
|
|
8598
|
+
var ArrayValue2 = z268.array(z268.string());
|
|
8599
|
+
var ObjectValue2 = z268.record(z268.string());
|
|
8590
8600
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
8591
|
-
var DTOExporterPropertyType =
|
|
8592
|
-
var PropertyDefinitionBase2 =
|
|
8593
|
-
key:
|
|
8594
|
-
title:
|
|
8595
|
-
description:
|
|
8596
|
-
category:
|
|
8597
|
-
dependsOn:
|
|
8598
|
-
});
|
|
8599
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
8600
|
-
label:
|
|
8601
|
-
description:
|
|
8601
|
+
var DTOExporterPropertyType = z268.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
8602
|
+
var PropertyDefinitionBase2 = z268.object({
|
|
8603
|
+
key: z268.string(),
|
|
8604
|
+
title: z268.string(),
|
|
8605
|
+
description: z268.string(),
|
|
8606
|
+
category: z268.string().optional(),
|
|
8607
|
+
dependsOn: z268.record(z268.boolean()).optional()
|
|
8608
|
+
});
|
|
8609
|
+
var DTOExporterPropertyDefinitionEnumOption = z268.object({
|
|
8610
|
+
label: z268.string(),
|
|
8611
|
+
description: z268.string()
|
|
8602
8612
|
});
|
|
8603
8613
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
8604
|
-
type:
|
|
8605
|
-
options:
|
|
8606
|
-
default:
|
|
8614
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Enum),
|
|
8615
|
+
options: z268.record(DTOExporterPropertyDefinitionEnumOption),
|
|
8616
|
+
default: z268.string()
|
|
8607
8617
|
});
|
|
8608
8618
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
8609
|
-
type:
|
|
8610
|
-
default:
|
|
8619
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
8620
|
+
default: z268.boolean()
|
|
8611
8621
|
});
|
|
8612
8622
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
8613
|
-
type:
|
|
8614
|
-
default:
|
|
8615
|
-
isMultiline:
|
|
8623
|
+
type: z268.literal(DTOExporterPropertyType.Enum.String),
|
|
8624
|
+
default: z268.string(),
|
|
8625
|
+
isMultiline: z268.boolean().optional()
|
|
8616
8626
|
});
|
|
8617
8627
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
8618
|
-
type:
|
|
8619
|
-
default:
|
|
8628
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Number),
|
|
8629
|
+
default: z268.number()
|
|
8620
8630
|
});
|
|
8621
8631
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
8622
|
-
type:
|
|
8632
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Array),
|
|
8623
8633
|
default: ArrayValue2
|
|
8624
8634
|
});
|
|
8625
8635
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
8626
|
-
type:
|
|
8636
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Object),
|
|
8627
8637
|
default: ObjectValue2,
|
|
8628
|
-
allowedKeys:
|
|
8629
|
-
options:
|
|
8630
|
-
type:
|
|
8638
|
+
allowedKeys: z268.object({
|
|
8639
|
+
options: z268.string().array(),
|
|
8640
|
+
type: z268.string()
|
|
8631
8641
|
}).optional(),
|
|
8632
|
-
allowedValues:
|
|
8633
|
-
type:
|
|
8642
|
+
allowedValues: z268.object({
|
|
8643
|
+
type: z268.string()
|
|
8634
8644
|
}).optional()
|
|
8635
8645
|
});
|
|
8636
8646
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
8637
|
-
type:
|
|
8638
|
-
language:
|
|
8639
|
-
default:
|
|
8647
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Code),
|
|
8648
|
+
language: z268.string(),
|
|
8649
|
+
default: z268.string()
|
|
8640
8650
|
});
|
|
8641
|
-
var DTOExporterPropertyDefinition =
|
|
8651
|
+
var DTOExporterPropertyDefinition = z268.discriminatedUnion("type", [
|
|
8642
8652
|
DTOExporterPropertyDefinitionEnum,
|
|
8643
8653
|
DTOExporterPropertyDefinitionBoolean,
|
|
8644
8654
|
DTOExporterPropertyDefinitionString,
|
|
@@ -8647,110 +8657,110 @@ var DTOExporterPropertyDefinition = z267.discriminatedUnion("type", [
|
|
|
8647
8657
|
DTOExporterPropertyDefinitionObject,
|
|
8648
8658
|
DTOExporterPropertyDefinitionCode
|
|
8649
8659
|
]);
|
|
8650
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
8660
|
+
var DTOExporterPropertyDefinitionsResponse = z268.object({
|
|
8651
8661
|
properties: DTOExporterPropertyDefinition.array()
|
|
8652
8662
|
});
|
|
8653
|
-
var DTOExporterPropertyValueMap =
|
|
8663
|
+
var DTOExporterPropertyValueMap = z268.record(DTOExporterPropertyValue);
|
|
8654
8664
|
|
|
8655
8665
|
// src/api/payloads/export/pipeline.ts
|
|
8656
|
-
var GitDestinationOptions =
|
|
8657
|
-
branch:
|
|
8658
|
-
commitMessage:
|
|
8659
|
-
commitAuthorName:
|
|
8660
|
-
commitAuthorEmail:
|
|
8661
|
-
pullRequestTitle:
|
|
8662
|
-
pullRequestDescription:
|
|
8663
|
-
relativePath:
|
|
8664
|
-
purgeDirectory:
|
|
8665
|
-
});
|
|
8666
|
-
var DTOPipelineCreateBody =
|
|
8667
|
-
name:
|
|
8668
|
-
exporterId:
|
|
8669
|
-
designSystemId:
|
|
8670
|
-
isEnabled:
|
|
8666
|
+
var GitDestinationOptions = z269.object({
|
|
8667
|
+
branch: z269.string().min(1).nullish(),
|
|
8668
|
+
commitMessage: z269.string().min(1).nullish(),
|
|
8669
|
+
commitAuthorName: z269.string().min(1).nullish(),
|
|
8670
|
+
commitAuthorEmail: z269.string().email().nullish(),
|
|
8671
|
+
pullRequestTitle: z269.string().min(1).nullish(),
|
|
8672
|
+
pullRequestDescription: z269.string().min(1).nullish(),
|
|
8673
|
+
relativePath: z269.string().nullish(),
|
|
8674
|
+
purgeDirectory: z269.boolean().nullish()
|
|
8675
|
+
});
|
|
8676
|
+
var DTOPipelineCreateBody = z269.object({
|
|
8677
|
+
name: z269.string(),
|
|
8678
|
+
exporterId: z269.string(),
|
|
8679
|
+
designSystemId: z269.string(),
|
|
8680
|
+
isEnabled: z269.boolean(),
|
|
8671
8681
|
eventType: PipelineEventType,
|
|
8672
|
-
brandPersistentId:
|
|
8673
|
-
themePersistentId:
|
|
8674
|
-
themePersistentIds:
|
|
8682
|
+
brandPersistentId: z269.string().optional(),
|
|
8683
|
+
themePersistentId: z269.string().optional(),
|
|
8684
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8675
8685
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8676
8686
|
destination: PipelineDestinationType.optional(),
|
|
8677
8687
|
gitQuery: GitObjectsQuery,
|
|
8678
|
-
destinations:
|
|
8688
|
+
destinations: z269.object({
|
|
8679
8689
|
s3: ExporterDestinationS3.nullish(),
|
|
8680
8690
|
azure: ExporterDestinationAzure.nullish(),
|
|
8681
8691
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
8682
8692
|
github: ExporterDestinationGithub.nullish(),
|
|
8683
8693
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
8684
8694
|
documentation: ExporterDestinationDocs.nullish(),
|
|
8685
|
-
webhookUrl:
|
|
8695
|
+
webhookUrl: z269.string().nullish()
|
|
8686
8696
|
})
|
|
8687
8697
|
});
|
|
8688
|
-
var DTODesignSystemPipelineCreateBody =
|
|
8689
|
-
name:
|
|
8690
|
-
exporterId:
|
|
8691
|
-
isEnabled:
|
|
8698
|
+
var DTODesignSystemPipelineCreateBody = z269.object({
|
|
8699
|
+
name: z269.string(),
|
|
8700
|
+
exporterId: z269.string(),
|
|
8701
|
+
isEnabled: z269.boolean(),
|
|
8692
8702
|
eventType: PipelineEventType,
|
|
8693
|
-
brandPersistentId:
|
|
8694
|
-
themePersistentId:
|
|
8695
|
-
themePersistentIds:
|
|
8703
|
+
brandPersistentId: z269.string().optional(),
|
|
8704
|
+
themePersistentId: z269.string().optional(),
|
|
8705
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8696
8706
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8697
8707
|
destination: PipelineDestinationType.optional(),
|
|
8698
8708
|
gitQuery: GitObjectsQuery,
|
|
8699
|
-
destinations:
|
|
8709
|
+
destinations: z269.object({
|
|
8700
8710
|
s3: ExporterDestinationS3.nullish(),
|
|
8701
8711
|
azure: ExporterDestinationAzure.nullish(),
|
|
8702
8712
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
8703
8713
|
github: ExporterDestinationGithub.nullish(),
|
|
8704
8714
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
8705
8715
|
documentation: ExporterDestinationDocs.nullish(),
|
|
8706
|
-
webhookUrl:
|
|
8716
|
+
webhookUrl: z269.string().nullish()
|
|
8707
8717
|
})
|
|
8708
8718
|
});
|
|
8709
|
-
var DTOPipelineUpdateBody =
|
|
8710
|
-
exporterId:
|
|
8711
|
-
name:
|
|
8712
|
-
isEnabled:
|
|
8719
|
+
var DTOPipelineUpdateBody = z269.object({
|
|
8720
|
+
exporterId: z269.string().optional(),
|
|
8721
|
+
name: z269.string().optional(),
|
|
8722
|
+
isEnabled: z269.boolean().optional(),
|
|
8713
8723
|
eventType: PipelineEventType.optional(),
|
|
8714
|
-
brandPersistentId:
|
|
8715
|
-
themePersistentId:
|
|
8716
|
-
themePersistentIds:
|
|
8724
|
+
brandPersistentId: z269.string().optional(),
|
|
8725
|
+
themePersistentId: z269.string().optional(),
|
|
8726
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8717
8727
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8718
8728
|
destination: PipelineDestinationType.optional(),
|
|
8719
8729
|
gitQuery: GitObjectsQuery.optional(),
|
|
8720
|
-
destinations:
|
|
8730
|
+
destinations: z269.object({
|
|
8721
8731
|
s3: ExporterDestinationS3.nullish(),
|
|
8722
8732
|
azure: ExporterDestinationAzure.nullish(),
|
|
8723
8733
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
8724
8734
|
github: ExporterDestinationGithub.nullish(),
|
|
8725
8735
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
8726
8736
|
documentation: ExporterDestinationDocs.nullish(),
|
|
8727
|
-
webhookUrl:
|
|
8737
|
+
webhookUrl: z269.string().nullish()
|
|
8728
8738
|
}).optional(),
|
|
8729
8739
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
8730
8740
|
});
|
|
8731
|
-
var DTOPipelineTriggerBody =
|
|
8732
|
-
designSystemVersionId:
|
|
8741
|
+
var DTOPipelineTriggerBody = z269.object({
|
|
8742
|
+
designSystemVersionId: z269.string()
|
|
8733
8743
|
});
|
|
8734
8744
|
|
|
8735
8745
|
// src/api/payloads/liveblocks/auth.ts
|
|
8736
|
-
import { z as
|
|
8737
|
-
var DTOLiveblocksAuthRequest =
|
|
8738
|
-
room:
|
|
8746
|
+
import { z as z270 } from "zod";
|
|
8747
|
+
var DTOLiveblocksAuthRequest = z270.object({
|
|
8748
|
+
room: z270.string().optional()
|
|
8739
8749
|
});
|
|
8740
8750
|
|
|
8741
8751
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
8742
|
-
import { z as
|
|
8743
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
8752
|
+
import { z as z271 } from "zod";
|
|
8753
|
+
var DTOUpdateUserNotificationSettingsPayload = z271.object({
|
|
8744
8754
|
notificationSettings: UserNotificationSettings
|
|
8745
8755
|
});
|
|
8746
|
-
var DTOUserNotificationSettingsResponse =
|
|
8747
|
-
userId:
|
|
8748
|
-
workspaceId:
|
|
8756
|
+
var DTOUserNotificationSettingsResponse = z271.object({
|
|
8757
|
+
userId: z271.string(),
|
|
8758
|
+
workspaceId: z271.string(),
|
|
8749
8759
|
notificationSettings: UserNotificationSettings
|
|
8750
8760
|
});
|
|
8751
8761
|
|
|
8752
8762
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
8753
|
-
import { z as
|
|
8763
|
+
import { z as z272 } from "zod";
|
|
8754
8764
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
8755
8765
|
function validateSsoPayload(ssoPayload) {
|
|
8756
8766
|
const keys = [];
|
|
@@ -8773,105 +8783,96 @@ function validateSsoPayload(ssoPayload) {
|
|
|
8773
8783
|
keys
|
|
8774
8784
|
};
|
|
8775
8785
|
}
|
|
8776
|
-
var NpmRegistryInput =
|
|
8777
|
-
enabledScopes:
|
|
8778
|
-
customRegistryUrl:
|
|
8779
|
-
bypassProxy:
|
|
8780
|
-
npmProxyRegistryConfigId:
|
|
8781
|
-
npmProxyVersion:
|
|
8782
|
-
registryType:
|
|
8783
|
-
authType:
|
|
8784
|
-
authHeaderName:
|
|
8785
|
-
authHeaderValue:
|
|
8786
|
-
accessToken:
|
|
8787
|
-
username:
|
|
8788
|
-
password:
|
|
8789
|
-
});
|
|
8790
|
-
var WorkspaceConfigurationPayload =
|
|
8786
|
+
var NpmRegistryInput = z272.object({
|
|
8787
|
+
enabledScopes: z272.array(z272.string()),
|
|
8788
|
+
customRegistryUrl: z272.string().optional(),
|
|
8789
|
+
bypassProxy: z272.boolean().optional(),
|
|
8790
|
+
npmProxyRegistryConfigId: z272.string().optional(),
|
|
8791
|
+
npmProxyVersion: z272.number().optional(),
|
|
8792
|
+
registryType: z272.string(),
|
|
8793
|
+
authType: z272.string(),
|
|
8794
|
+
authHeaderName: z272.string(),
|
|
8795
|
+
authHeaderValue: z272.string(),
|
|
8796
|
+
accessToken: z272.string(),
|
|
8797
|
+
username: z272.string(),
|
|
8798
|
+
password: z272.string()
|
|
8799
|
+
});
|
|
8800
|
+
var WorkspaceConfigurationPayload = z272.object({
|
|
8791
8801
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
8792
8802
|
sso: SsoProvider.partial().optional(),
|
|
8793
8803
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
8794
8804
|
profile: WorkspaceProfile.partial().optional(),
|
|
8795
|
-
aiFeaturesEnabled:
|
|
8796
|
-
projectsEnabled:
|
|
8805
|
+
aiFeaturesEnabled: z272.boolean().optional(),
|
|
8806
|
+
projectsEnabled: z272.boolean().optional(),
|
|
8797
8807
|
defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode.optional(),
|
|
8798
8808
|
defaultProjectRole: WorkspaceDefaultProjectRole.optional(),
|
|
8799
|
-
aiAskFeaturesEnabled:
|
|
8800
|
-
aiCustomInstruction:
|
|
8809
|
+
aiAskFeaturesEnabled: z272.boolean().optional(),
|
|
8810
|
+
aiCustomInstruction: z272.string().optional()
|
|
8801
8811
|
});
|
|
8802
8812
|
|
|
8803
8813
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
8804
|
-
import { z as
|
|
8805
|
-
var IntegrationOauthPlatform =
|
|
8806
|
-
var IntegrationOauthCallbackState =
|
|
8807
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
8814
|
+
import { z as z273 } from "zod";
|
|
8815
|
+
var IntegrationOauthPlatform = z273.enum(["Desktop", "Browser"]);
|
|
8816
|
+
var IntegrationOauthCallbackState = z273.enum(["Success", "Error"]);
|
|
8817
|
+
var DTOWorkspaceIntegrationOauthInput = z273.object({
|
|
8808
8818
|
type: IntegrationType,
|
|
8809
8819
|
platform: IntegrationOauthPlatform.optional().default("Browser"),
|
|
8810
|
-
authId:
|
|
8820
|
+
authId: z273.string().optional()
|
|
8811
8821
|
// Allow FE client to distinguish between multiple parallel OAuth flows, useful for desktop where multiple flows can be initiated in parallel
|
|
8812
8822
|
});
|
|
8813
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
8823
|
+
var DTOWorkspaceIntegrationPATInput = z273.object({
|
|
8814
8824
|
type: IntegrationType,
|
|
8815
8825
|
token: IntegrationToken
|
|
8816
8826
|
});
|
|
8817
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
8818
|
-
organization:
|
|
8827
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z273.object({
|
|
8828
|
+
organization: z273.string().optional(),
|
|
8819
8829
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
8820
|
-
project:
|
|
8830
|
+
project: z273.string().optional(),
|
|
8821
8831
|
// Only for Bitbucket and Azure
|
|
8822
|
-
repository:
|
|
8832
|
+
repository: z273.string().optional(),
|
|
8823
8833
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
8824
|
-
branch:
|
|
8834
|
+
branch: z273.string().optional(),
|
|
8825
8835
|
// For all providers, useful for PR creations.
|
|
8826
|
-
user:
|
|
8836
|
+
user: z273.string().optional()
|
|
8827
8837
|
// Only for Gitlab User Repositories
|
|
8828
8838
|
});
|
|
8829
8839
|
|
|
8830
8840
|
// src/api/dto/design-systems/version.ts
|
|
8831
|
-
var DTODesignSystemVersion =
|
|
8832
|
-
id:
|
|
8833
|
-
createdAt:
|
|
8841
|
+
var DTODesignSystemVersion = z274.object({
|
|
8842
|
+
id: z274.string(),
|
|
8843
|
+
createdAt: z274.coerce.date(),
|
|
8834
8844
|
meta: ObjectMeta,
|
|
8835
|
-
version:
|
|
8836
|
-
isReadonly:
|
|
8837
|
-
changeLog:
|
|
8838
|
-
designSystemId:
|
|
8845
|
+
version: z274.string(),
|
|
8846
|
+
isReadonly: z274.boolean(),
|
|
8847
|
+
changeLog: z274.string(),
|
|
8848
|
+
designSystemId: z274.string()
|
|
8839
8849
|
});
|
|
8840
|
-
var DTODesignSystemVersionsListResponse =
|
|
8841
|
-
designSystemVersions:
|
|
8850
|
+
var DTODesignSystemVersionsListResponse = z274.object({
|
|
8851
|
+
designSystemVersions: z274.array(DTODesignSystemVersion)
|
|
8842
8852
|
});
|
|
8843
|
-
var DTODesignSystemVersionGetResponse =
|
|
8853
|
+
var DTODesignSystemVersionGetResponse = z274.object({
|
|
8844
8854
|
designSystemVersion: DTODesignSystemVersion
|
|
8845
8855
|
});
|
|
8846
|
-
var DTODesignSystemVersionCreationResponse =
|
|
8856
|
+
var DTODesignSystemVersionCreationResponse = z274.object({
|
|
8847
8857
|
meta: ObjectMeta,
|
|
8848
|
-
version:
|
|
8849
|
-
changeLog:
|
|
8850
|
-
isReadOnly:
|
|
8851
|
-
designSystemId:
|
|
8852
|
-
jobId:
|
|
8853
|
-
});
|
|
8854
|
-
var VersionSQSPayload =
|
|
8855
|
-
jobId:
|
|
8856
|
-
designSystemId:
|
|
8858
|
+
version: z274.string(),
|
|
8859
|
+
changeLog: z274.string(),
|
|
8860
|
+
isReadOnly: z274.boolean(),
|
|
8861
|
+
designSystemId: z274.string(),
|
|
8862
|
+
jobId: z274.string()
|
|
8863
|
+
});
|
|
8864
|
+
var VersionSQSPayload = z274.object({
|
|
8865
|
+
jobId: z274.string(),
|
|
8866
|
+
designSystemId: z274.string(),
|
|
8857
8867
|
input: DTOCreateVersionInput
|
|
8858
8868
|
});
|
|
8859
|
-
var DTODesignSystemVersionJobsResponse =
|
|
8860
|
-
jobs:
|
|
8869
|
+
var DTODesignSystemVersionJobsResponse = z274.object({
|
|
8870
|
+
jobs: z274.array(VersionCreationJob)
|
|
8861
8871
|
});
|
|
8862
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
8872
|
+
var DTODesignSystemVersionJobStatusResponse = z274.object({
|
|
8863
8873
|
job: VersionCreationJob
|
|
8864
8874
|
});
|
|
8865
8875
|
|
|
8866
|
-
// src/api/dto/design-systems/version-room.ts
|
|
8867
|
-
import { z as z274 } from "zod";
|
|
8868
|
-
var DTODesignSystemVersionRoom = z274.object({
|
|
8869
|
-
id: z274.string()
|
|
8870
|
-
});
|
|
8871
|
-
var DTODesignSystemVersionRoomResponse = z274.object({
|
|
8872
|
-
room: DTODesignSystemVersionRoom
|
|
8873
|
-
});
|
|
8874
|
-
|
|
8875
8876
|
// src/api/dto/design-systems/view.ts
|
|
8876
8877
|
import { z as z275 } from "zod";
|
|
8877
8878
|
var DTOElementViewColumnSharedAttributes = z275.object({
|
|
@@ -10724,8 +10725,8 @@ var DTOForgeFeatureRoomResponse = z324.object({
|
|
|
10724
10725
|
// src/api/dto/forge/figma-node.ts
|
|
10725
10726
|
import z325 from "zod";
|
|
10726
10727
|
var DTOForgeFigmaNodeState = z325.enum(["Optimizing", "Success", "Failed"]);
|
|
10727
|
-
var DTOForgeFigmaNodeConversionVersion = z325.enum(["V1", "V2", "V3", "V4", "V5", "V6", "V7"]);
|
|
10728
|
-
var ForgeFigmaNodeLatestVersion = DTOForgeFigmaNodeConversionVersion.enum.
|
|
10728
|
+
var DTOForgeFigmaNodeConversionVersion = z325.enum(["V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8"]);
|
|
10729
|
+
var ForgeFigmaNodeLatestVersion = DTOForgeFigmaNodeConversionVersion.enum.V8;
|
|
10729
10730
|
var DTOForgeFigmaNodeOrigin = z325.object({
|
|
10730
10731
|
/**
|
|
10731
10732
|
* Figma file ID that was passed into the create request as a part of the Figma node URL
|