@supernova-studio/client 1.90.0 → 1.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +217 -217
- package/dist/index.d.ts +217 -217
- package/dist/index.js +49 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +252 -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,37 @@ 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
|
-
repoPackageName:
|
|
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
|
+
repoPackageName: z262.string(),
|
|
8481
8490
|
scannerType: DTOCodeSnapshotUploadInitScannerType
|
|
8482
8491
|
});
|
|
8483
|
-
var DTOCodeSnapshotFinalizePayload =
|
|
8484
|
-
var DTOCodeSnapshotStartProcessingRunPayload =
|
|
8485
|
-
designSystemId:
|
|
8492
|
+
var DTOCodeSnapshotFinalizePayload = z262.object({}).optional();
|
|
8493
|
+
var DTOCodeSnapshotStartProcessingRunPayload = z262.object({
|
|
8494
|
+
designSystemId: z262.string()
|
|
8486
8495
|
});
|
|
8487
8496
|
|
|
8488
8497
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
8489
|
-
import { z as
|
|
8498
|
+
import { z as z263 } from "zod";
|
|
8490
8499
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
8491
8500
|
id: true,
|
|
8492
8501
|
workspaceId: true,
|
|
@@ -8502,59 +8511,59 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
8502
8511
|
*/
|
|
8503
8512
|
designSystemSwitcher: DesignSystemSwitcher.optional()
|
|
8504
8513
|
});
|
|
8505
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
8514
|
+
var DTODesignSystemUpdateAccessModeInput = z263.object({
|
|
8506
8515
|
accessMode: DesignSystemAccessMode,
|
|
8507
|
-
retain:
|
|
8508
|
-
userIds:
|
|
8509
|
-
inviteIds:
|
|
8516
|
+
retain: z263.object({
|
|
8517
|
+
userIds: z263.string().array(),
|
|
8518
|
+
inviteIds: z263.string().array()
|
|
8510
8519
|
}).optional()
|
|
8511
8520
|
});
|
|
8512
|
-
var DTODesignSystemUpdateSwitcherInput =
|
|
8521
|
+
var DTODesignSystemUpdateSwitcherInput = z263.object({
|
|
8513
8522
|
designSystemSwitcher: DesignSystemSwitcher
|
|
8514
8523
|
});
|
|
8515
8524
|
|
|
8516
8525
|
// src/api/payloads/design-systems/version.ts
|
|
8517
|
-
import { z as
|
|
8518
|
-
var ObjectMeta2 =
|
|
8519
|
-
name:
|
|
8520
|
-
description:
|
|
8526
|
+
import { z as z264 } from "zod";
|
|
8527
|
+
var ObjectMeta2 = z264.object({
|
|
8528
|
+
name: z264.string().max(150).optional(),
|
|
8529
|
+
description: z264.string().max(2e3).optional()
|
|
8521
8530
|
});
|
|
8522
8531
|
function validateDesignSystemVersion(version) {
|
|
8523
8532
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
8524
8533
|
return urlCompliantRegex.test(version);
|
|
8525
8534
|
}
|
|
8526
|
-
var DTOCreateVersionInput =
|
|
8535
|
+
var DTOCreateVersionInput = z264.object({
|
|
8527
8536
|
meta: ObjectMeta2,
|
|
8528
|
-
version:
|
|
8537
|
+
version: z264.string().refine(validateDesignSystemVersion, {
|
|
8529
8538
|
message: "Invalid semantic versioning format"
|
|
8530
8539
|
}),
|
|
8531
|
-
changeLog:
|
|
8540
|
+
changeLog: z264.string().optional()
|
|
8532
8541
|
});
|
|
8533
|
-
var DTOUpdateVersionInput =
|
|
8542
|
+
var DTOUpdateVersionInput = z264.object({
|
|
8534
8543
|
meta: ObjectMeta2,
|
|
8535
|
-
version:
|
|
8544
|
+
version: z264.string(),
|
|
8536
8545
|
// required for PUT, but not editable
|
|
8537
|
-
changeLog:
|
|
8546
|
+
changeLog: z264.string()
|
|
8538
8547
|
});
|
|
8539
8548
|
|
|
8540
8549
|
// src/api/payloads/documentation/analytics.ts
|
|
8541
|
-
import { z as
|
|
8542
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
8543
|
-
referencePeriod:
|
|
8544
|
-
start:
|
|
8545
|
-
end:
|
|
8550
|
+
import { z as z265 } from "zod";
|
|
8551
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z265.object({
|
|
8552
|
+
referencePeriod: z265.object({
|
|
8553
|
+
start: z265.coerce.date(),
|
|
8554
|
+
end: z265.coerce.date().optional()
|
|
8546
8555
|
}),
|
|
8547
|
-
baselinePeriod:
|
|
8548
|
-
start:
|
|
8549
|
-
end:
|
|
8556
|
+
baselinePeriod: z265.object({
|
|
8557
|
+
start: z265.coerce.date(),
|
|
8558
|
+
end: z265.coerce.date().optional()
|
|
8550
8559
|
})
|
|
8551
8560
|
});
|
|
8552
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
8553
|
-
timeFrames:
|
|
8561
|
+
var DTODocumentationAnalyticsDiffPayload = z265.object({
|
|
8562
|
+
timeFrames: z265.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
8554
8563
|
});
|
|
8555
8564
|
|
|
8556
8565
|
// src/api/payloads/documentation/block-definitions.ts
|
|
8557
|
-
import { z as
|
|
8566
|
+
import { z as z266 } from "zod";
|
|
8558
8567
|
|
|
8559
8568
|
// src/api/dto/documentation/block-definition.ts
|
|
8560
8569
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -8566,79 +8575,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
8566
8575
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
8567
8576
|
|
|
8568
8577
|
// src/api/payloads/documentation/block-definitions.ts
|
|
8569
|
-
var DTOGetBlockDefinitionsQuery =
|
|
8578
|
+
var DTOGetBlockDefinitionsQuery = z266.object({
|
|
8570
8579
|
files: zodQueryBoolean()
|
|
8571
8580
|
});
|
|
8572
|
-
var DTOGetBlockDefinitionsOutput =
|
|
8573
|
-
definitions:
|
|
8581
|
+
var DTOGetBlockDefinitionsOutput = z266.object({
|
|
8582
|
+
definitions: z266.array(DTOPageBlockDefinition)
|
|
8574
8583
|
});
|
|
8575
8584
|
|
|
8576
8585
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
8577
|
-
import { z as
|
|
8578
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
8579
|
-
environment:
|
|
8586
|
+
import { z as z267 } from "zod";
|
|
8587
|
+
var DTODocumentationPublishTypeQueryParams = z267.object({
|
|
8588
|
+
environment: z267.enum(["Live", "Preview"])
|
|
8580
8589
|
});
|
|
8581
8590
|
|
|
8582
8591
|
// src/api/payloads/export/pipeline.ts
|
|
8583
|
-
import { z as
|
|
8592
|
+
import { z as z269 } from "zod";
|
|
8584
8593
|
|
|
8585
8594
|
// src/api/dto/export/exporter-property.ts
|
|
8586
|
-
import { z as
|
|
8587
|
-
var PrimitiveValue2 =
|
|
8588
|
-
var ArrayValue2 =
|
|
8589
|
-
var ObjectValue2 =
|
|
8595
|
+
import { z as z268 } from "zod";
|
|
8596
|
+
var PrimitiveValue2 = z268.number().or(z268.boolean()).or(z268.string());
|
|
8597
|
+
var ArrayValue2 = z268.array(z268.string());
|
|
8598
|
+
var ObjectValue2 = z268.record(z268.string());
|
|
8590
8599
|
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:
|
|
8600
|
+
var DTOExporterPropertyType = z268.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
8601
|
+
var PropertyDefinitionBase2 = z268.object({
|
|
8602
|
+
key: z268.string(),
|
|
8603
|
+
title: z268.string(),
|
|
8604
|
+
description: z268.string(),
|
|
8605
|
+
category: z268.string().optional(),
|
|
8606
|
+
dependsOn: z268.record(z268.boolean()).optional()
|
|
8607
|
+
});
|
|
8608
|
+
var DTOExporterPropertyDefinitionEnumOption = z268.object({
|
|
8609
|
+
label: z268.string(),
|
|
8610
|
+
description: z268.string()
|
|
8602
8611
|
});
|
|
8603
8612
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
8604
|
-
type:
|
|
8605
|
-
options:
|
|
8606
|
-
default:
|
|
8613
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Enum),
|
|
8614
|
+
options: z268.record(DTOExporterPropertyDefinitionEnumOption),
|
|
8615
|
+
default: z268.string()
|
|
8607
8616
|
});
|
|
8608
8617
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
8609
|
-
type:
|
|
8610
|
-
default:
|
|
8618
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
8619
|
+
default: z268.boolean()
|
|
8611
8620
|
});
|
|
8612
8621
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
8613
|
-
type:
|
|
8614
|
-
default:
|
|
8615
|
-
isMultiline:
|
|
8622
|
+
type: z268.literal(DTOExporterPropertyType.Enum.String),
|
|
8623
|
+
default: z268.string(),
|
|
8624
|
+
isMultiline: z268.boolean().optional()
|
|
8616
8625
|
});
|
|
8617
8626
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
8618
|
-
type:
|
|
8619
|
-
default:
|
|
8627
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Number),
|
|
8628
|
+
default: z268.number()
|
|
8620
8629
|
});
|
|
8621
8630
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
8622
|
-
type:
|
|
8631
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Array),
|
|
8623
8632
|
default: ArrayValue2
|
|
8624
8633
|
});
|
|
8625
8634
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
8626
|
-
type:
|
|
8635
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Object),
|
|
8627
8636
|
default: ObjectValue2,
|
|
8628
|
-
allowedKeys:
|
|
8629
|
-
options:
|
|
8630
|
-
type:
|
|
8637
|
+
allowedKeys: z268.object({
|
|
8638
|
+
options: z268.string().array(),
|
|
8639
|
+
type: z268.string()
|
|
8631
8640
|
}).optional(),
|
|
8632
|
-
allowedValues:
|
|
8633
|
-
type:
|
|
8641
|
+
allowedValues: z268.object({
|
|
8642
|
+
type: z268.string()
|
|
8634
8643
|
}).optional()
|
|
8635
8644
|
});
|
|
8636
8645
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
8637
|
-
type:
|
|
8638
|
-
language:
|
|
8639
|
-
default:
|
|
8646
|
+
type: z268.literal(DTOExporterPropertyType.Enum.Code),
|
|
8647
|
+
language: z268.string(),
|
|
8648
|
+
default: z268.string()
|
|
8640
8649
|
});
|
|
8641
|
-
var DTOExporterPropertyDefinition =
|
|
8650
|
+
var DTOExporterPropertyDefinition = z268.discriminatedUnion("type", [
|
|
8642
8651
|
DTOExporterPropertyDefinitionEnum,
|
|
8643
8652
|
DTOExporterPropertyDefinitionBoolean,
|
|
8644
8653
|
DTOExporterPropertyDefinitionString,
|
|
@@ -8647,110 +8656,110 @@ var DTOExporterPropertyDefinition = z267.discriminatedUnion("type", [
|
|
|
8647
8656
|
DTOExporterPropertyDefinitionObject,
|
|
8648
8657
|
DTOExporterPropertyDefinitionCode
|
|
8649
8658
|
]);
|
|
8650
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
8659
|
+
var DTOExporterPropertyDefinitionsResponse = z268.object({
|
|
8651
8660
|
properties: DTOExporterPropertyDefinition.array()
|
|
8652
8661
|
});
|
|
8653
|
-
var DTOExporterPropertyValueMap =
|
|
8662
|
+
var DTOExporterPropertyValueMap = z268.record(DTOExporterPropertyValue);
|
|
8654
8663
|
|
|
8655
8664
|
// 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:
|
|
8665
|
+
var GitDestinationOptions = z269.object({
|
|
8666
|
+
branch: z269.string().min(1).nullish(),
|
|
8667
|
+
commitMessage: z269.string().min(1).nullish(),
|
|
8668
|
+
commitAuthorName: z269.string().min(1).nullish(),
|
|
8669
|
+
commitAuthorEmail: z269.string().email().nullish(),
|
|
8670
|
+
pullRequestTitle: z269.string().min(1).nullish(),
|
|
8671
|
+
pullRequestDescription: z269.string().min(1).nullish(),
|
|
8672
|
+
relativePath: z269.string().nullish(),
|
|
8673
|
+
purgeDirectory: z269.boolean().nullish()
|
|
8674
|
+
});
|
|
8675
|
+
var DTOPipelineCreateBody = z269.object({
|
|
8676
|
+
name: z269.string(),
|
|
8677
|
+
exporterId: z269.string(),
|
|
8678
|
+
designSystemId: z269.string(),
|
|
8679
|
+
isEnabled: z269.boolean(),
|
|
8671
8680
|
eventType: PipelineEventType,
|
|
8672
|
-
brandPersistentId:
|
|
8673
|
-
themePersistentId:
|
|
8674
|
-
themePersistentIds:
|
|
8681
|
+
brandPersistentId: z269.string().optional(),
|
|
8682
|
+
themePersistentId: z269.string().optional(),
|
|
8683
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8675
8684
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8676
8685
|
destination: PipelineDestinationType.optional(),
|
|
8677
8686
|
gitQuery: GitObjectsQuery,
|
|
8678
|
-
destinations:
|
|
8687
|
+
destinations: z269.object({
|
|
8679
8688
|
s3: ExporterDestinationS3.nullish(),
|
|
8680
8689
|
azure: ExporterDestinationAzure.nullish(),
|
|
8681
8690
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
8682
8691
|
github: ExporterDestinationGithub.nullish(),
|
|
8683
8692
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
8684
8693
|
documentation: ExporterDestinationDocs.nullish(),
|
|
8685
|
-
webhookUrl:
|
|
8694
|
+
webhookUrl: z269.string().nullish()
|
|
8686
8695
|
})
|
|
8687
8696
|
});
|
|
8688
|
-
var DTODesignSystemPipelineCreateBody =
|
|
8689
|
-
name:
|
|
8690
|
-
exporterId:
|
|
8691
|
-
isEnabled:
|
|
8697
|
+
var DTODesignSystemPipelineCreateBody = z269.object({
|
|
8698
|
+
name: z269.string(),
|
|
8699
|
+
exporterId: z269.string(),
|
|
8700
|
+
isEnabled: z269.boolean(),
|
|
8692
8701
|
eventType: PipelineEventType,
|
|
8693
|
-
brandPersistentId:
|
|
8694
|
-
themePersistentId:
|
|
8695
|
-
themePersistentIds:
|
|
8702
|
+
brandPersistentId: z269.string().optional(),
|
|
8703
|
+
themePersistentId: z269.string().optional(),
|
|
8704
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8696
8705
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8697
8706
|
destination: PipelineDestinationType.optional(),
|
|
8698
8707
|
gitQuery: GitObjectsQuery,
|
|
8699
|
-
destinations:
|
|
8708
|
+
destinations: z269.object({
|
|
8700
8709
|
s3: ExporterDestinationS3.nullish(),
|
|
8701
8710
|
azure: ExporterDestinationAzure.nullish(),
|
|
8702
8711
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
8703
8712
|
github: ExporterDestinationGithub.nullish(),
|
|
8704
8713
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
8705
8714
|
documentation: ExporterDestinationDocs.nullish(),
|
|
8706
|
-
webhookUrl:
|
|
8715
|
+
webhookUrl: z269.string().nullish()
|
|
8707
8716
|
})
|
|
8708
8717
|
});
|
|
8709
|
-
var DTOPipelineUpdateBody =
|
|
8710
|
-
exporterId:
|
|
8711
|
-
name:
|
|
8712
|
-
isEnabled:
|
|
8718
|
+
var DTOPipelineUpdateBody = z269.object({
|
|
8719
|
+
exporterId: z269.string().optional(),
|
|
8720
|
+
name: z269.string().optional(),
|
|
8721
|
+
isEnabled: z269.boolean().optional(),
|
|
8713
8722
|
eventType: PipelineEventType.optional(),
|
|
8714
|
-
brandPersistentId:
|
|
8715
|
-
themePersistentId:
|
|
8716
|
-
themePersistentIds:
|
|
8723
|
+
brandPersistentId: z269.string().optional(),
|
|
8724
|
+
themePersistentId: z269.string().optional(),
|
|
8725
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8717
8726
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8718
8727
|
destination: PipelineDestinationType.optional(),
|
|
8719
8728
|
gitQuery: GitObjectsQuery.optional(),
|
|
8720
|
-
destinations:
|
|
8729
|
+
destinations: z269.object({
|
|
8721
8730
|
s3: ExporterDestinationS3.nullish(),
|
|
8722
8731
|
azure: ExporterDestinationAzure.nullish(),
|
|
8723
8732
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
8724
8733
|
github: ExporterDestinationGithub.nullish(),
|
|
8725
8734
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
8726
8735
|
documentation: ExporterDestinationDocs.nullish(),
|
|
8727
|
-
webhookUrl:
|
|
8736
|
+
webhookUrl: z269.string().nullish()
|
|
8728
8737
|
}).optional(),
|
|
8729
8738
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
8730
8739
|
});
|
|
8731
|
-
var DTOPipelineTriggerBody =
|
|
8732
|
-
designSystemVersionId:
|
|
8740
|
+
var DTOPipelineTriggerBody = z269.object({
|
|
8741
|
+
designSystemVersionId: z269.string()
|
|
8733
8742
|
});
|
|
8734
8743
|
|
|
8735
8744
|
// src/api/payloads/liveblocks/auth.ts
|
|
8736
|
-
import { z as
|
|
8737
|
-
var DTOLiveblocksAuthRequest =
|
|
8738
|
-
room:
|
|
8745
|
+
import { z as z270 } from "zod";
|
|
8746
|
+
var DTOLiveblocksAuthRequest = z270.object({
|
|
8747
|
+
room: z270.string().optional()
|
|
8739
8748
|
});
|
|
8740
8749
|
|
|
8741
8750
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
8742
|
-
import { z as
|
|
8743
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
8751
|
+
import { z as z271 } from "zod";
|
|
8752
|
+
var DTOUpdateUserNotificationSettingsPayload = z271.object({
|
|
8744
8753
|
notificationSettings: UserNotificationSettings
|
|
8745
8754
|
});
|
|
8746
|
-
var DTOUserNotificationSettingsResponse =
|
|
8747
|
-
userId:
|
|
8748
|
-
workspaceId:
|
|
8755
|
+
var DTOUserNotificationSettingsResponse = z271.object({
|
|
8756
|
+
userId: z271.string(),
|
|
8757
|
+
workspaceId: z271.string(),
|
|
8749
8758
|
notificationSettings: UserNotificationSettings
|
|
8750
8759
|
});
|
|
8751
8760
|
|
|
8752
8761
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
8753
|
-
import { z as
|
|
8762
|
+
import { z as z272 } from "zod";
|
|
8754
8763
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
8755
8764
|
function validateSsoPayload(ssoPayload) {
|
|
8756
8765
|
const keys = [];
|
|
@@ -8773,105 +8782,96 @@ function validateSsoPayload(ssoPayload) {
|
|
|
8773
8782
|
keys
|
|
8774
8783
|
};
|
|
8775
8784
|
}
|
|
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 =
|
|
8785
|
+
var NpmRegistryInput = z272.object({
|
|
8786
|
+
enabledScopes: z272.array(z272.string()),
|
|
8787
|
+
customRegistryUrl: z272.string().optional(),
|
|
8788
|
+
bypassProxy: z272.boolean().optional(),
|
|
8789
|
+
npmProxyRegistryConfigId: z272.string().optional(),
|
|
8790
|
+
npmProxyVersion: z272.number().optional(),
|
|
8791
|
+
registryType: z272.string(),
|
|
8792
|
+
authType: z272.string(),
|
|
8793
|
+
authHeaderName: z272.string(),
|
|
8794
|
+
authHeaderValue: z272.string(),
|
|
8795
|
+
accessToken: z272.string(),
|
|
8796
|
+
username: z272.string(),
|
|
8797
|
+
password: z272.string()
|
|
8798
|
+
});
|
|
8799
|
+
var WorkspaceConfigurationPayload = z272.object({
|
|
8791
8800
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
8792
8801
|
sso: SsoProvider.partial().optional(),
|
|
8793
8802
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
8794
8803
|
profile: WorkspaceProfile.partial().optional(),
|
|
8795
|
-
aiFeaturesEnabled:
|
|
8796
|
-
projectsEnabled:
|
|
8804
|
+
aiFeaturesEnabled: z272.boolean().optional(),
|
|
8805
|
+
projectsEnabled: z272.boolean().optional(),
|
|
8797
8806
|
defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode.optional(),
|
|
8798
8807
|
defaultProjectRole: WorkspaceDefaultProjectRole.optional(),
|
|
8799
|
-
aiAskFeaturesEnabled:
|
|
8800
|
-
aiCustomInstruction:
|
|
8808
|
+
aiAskFeaturesEnabled: z272.boolean().optional(),
|
|
8809
|
+
aiCustomInstruction: z272.string().optional()
|
|
8801
8810
|
});
|
|
8802
8811
|
|
|
8803
8812
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
8804
|
-
import { z as
|
|
8805
|
-
var IntegrationOauthPlatform =
|
|
8806
|
-
var IntegrationOauthCallbackState =
|
|
8807
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
8813
|
+
import { z as z273 } from "zod";
|
|
8814
|
+
var IntegrationOauthPlatform = z273.enum(["Desktop", "Browser"]);
|
|
8815
|
+
var IntegrationOauthCallbackState = z273.enum(["Success", "Error"]);
|
|
8816
|
+
var DTOWorkspaceIntegrationOauthInput = z273.object({
|
|
8808
8817
|
type: IntegrationType,
|
|
8809
8818
|
platform: IntegrationOauthPlatform.optional().default("Browser"),
|
|
8810
|
-
authId:
|
|
8819
|
+
authId: z273.string().optional()
|
|
8811
8820
|
// Allow FE client to distinguish between multiple parallel OAuth flows, useful for desktop where multiple flows can be initiated in parallel
|
|
8812
8821
|
});
|
|
8813
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
8822
|
+
var DTOWorkspaceIntegrationPATInput = z273.object({
|
|
8814
8823
|
type: IntegrationType,
|
|
8815
8824
|
token: IntegrationToken
|
|
8816
8825
|
});
|
|
8817
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
8818
|
-
organization:
|
|
8826
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z273.object({
|
|
8827
|
+
organization: z273.string().optional(),
|
|
8819
8828
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
8820
|
-
project:
|
|
8829
|
+
project: z273.string().optional(),
|
|
8821
8830
|
// Only for Bitbucket and Azure
|
|
8822
|
-
repository:
|
|
8831
|
+
repository: z273.string().optional(),
|
|
8823
8832
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
8824
|
-
branch:
|
|
8833
|
+
branch: z273.string().optional(),
|
|
8825
8834
|
// For all providers, useful for PR creations.
|
|
8826
|
-
user:
|
|
8835
|
+
user: z273.string().optional()
|
|
8827
8836
|
// Only for Gitlab User Repositories
|
|
8828
8837
|
});
|
|
8829
8838
|
|
|
8830
8839
|
// src/api/dto/design-systems/version.ts
|
|
8831
|
-
var DTODesignSystemVersion =
|
|
8832
|
-
id:
|
|
8833
|
-
createdAt:
|
|
8840
|
+
var DTODesignSystemVersion = z274.object({
|
|
8841
|
+
id: z274.string(),
|
|
8842
|
+
createdAt: z274.coerce.date(),
|
|
8834
8843
|
meta: ObjectMeta,
|
|
8835
|
-
version:
|
|
8836
|
-
isReadonly:
|
|
8837
|
-
changeLog:
|
|
8838
|
-
designSystemId:
|
|
8844
|
+
version: z274.string(),
|
|
8845
|
+
isReadonly: z274.boolean(),
|
|
8846
|
+
changeLog: z274.string(),
|
|
8847
|
+
designSystemId: z274.string()
|
|
8839
8848
|
});
|
|
8840
|
-
var DTODesignSystemVersionsListResponse =
|
|
8841
|
-
designSystemVersions:
|
|
8849
|
+
var DTODesignSystemVersionsListResponse = z274.object({
|
|
8850
|
+
designSystemVersions: z274.array(DTODesignSystemVersion)
|
|
8842
8851
|
});
|
|
8843
|
-
var DTODesignSystemVersionGetResponse =
|
|
8852
|
+
var DTODesignSystemVersionGetResponse = z274.object({
|
|
8844
8853
|
designSystemVersion: DTODesignSystemVersion
|
|
8845
8854
|
});
|
|
8846
|
-
var DTODesignSystemVersionCreationResponse =
|
|
8855
|
+
var DTODesignSystemVersionCreationResponse = z274.object({
|
|
8847
8856
|
meta: ObjectMeta,
|
|
8848
|
-
version:
|
|
8849
|
-
changeLog:
|
|
8850
|
-
isReadOnly:
|
|
8851
|
-
designSystemId:
|
|
8852
|
-
jobId:
|
|
8853
|
-
});
|
|
8854
|
-
var VersionSQSPayload =
|
|
8855
|
-
jobId:
|
|
8856
|
-
designSystemId:
|
|
8857
|
+
version: z274.string(),
|
|
8858
|
+
changeLog: z274.string(),
|
|
8859
|
+
isReadOnly: z274.boolean(),
|
|
8860
|
+
designSystemId: z274.string(),
|
|
8861
|
+
jobId: z274.string()
|
|
8862
|
+
});
|
|
8863
|
+
var VersionSQSPayload = z274.object({
|
|
8864
|
+
jobId: z274.string(),
|
|
8865
|
+
designSystemId: z274.string(),
|
|
8857
8866
|
input: DTOCreateVersionInput
|
|
8858
8867
|
});
|
|
8859
|
-
var DTODesignSystemVersionJobsResponse =
|
|
8860
|
-
jobs:
|
|
8868
|
+
var DTODesignSystemVersionJobsResponse = z274.object({
|
|
8869
|
+
jobs: z274.array(VersionCreationJob)
|
|
8861
8870
|
});
|
|
8862
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
8871
|
+
var DTODesignSystemVersionJobStatusResponse = z274.object({
|
|
8863
8872
|
job: VersionCreationJob
|
|
8864
8873
|
});
|
|
8865
8874
|
|
|
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
8875
|
// src/api/dto/design-systems/view.ts
|
|
8876
8876
|
import { z as z275 } from "zod";
|
|
8877
8877
|
var DTOElementViewColumnSharedAttributes = z275.object({
|
|
@@ -10724,8 +10724,8 @@ var DTOForgeFeatureRoomResponse = z324.object({
|
|
|
10724
10724
|
// src/api/dto/forge/figma-node.ts
|
|
10725
10725
|
import z325 from "zod";
|
|
10726
10726
|
var DTOForgeFigmaNodeState = z325.enum(["Optimizing", "Success", "Failed"]);
|
|
10727
|
-
var DTOForgeFigmaNodeConversionVersion = z325.enum(["V1", "V2", "V3", "V4", "V5", "V6", "V7"]);
|
|
10728
|
-
var ForgeFigmaNodeLatestVersion = DTOForgeFigmaNodeConversionVersion.enum.
|
|
10727
|
+
var DTOForgeFigmaNodeConversionVersion = z325.enum(["V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8"]);
|
|
10728
|
+
var ForgeFigmaNodeLatestVersion = DTOForgeFigmaNodeConversionVersion.enum.V8;
|
|
10729
10729
|
var DTOForgeFigmaNodeOrigin = z325.object({
|
|
10730
10730
|
/**
|
|
10731
10731
|
* Figma file ID that was passed into the create request as a part of the Figma node URL
|