@supernova-studio/model 0.54.5 → 0.54.7
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 +248 -200
- package/dist/index.d.ts +248 -200
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +673 -657
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +8 -0
- package/src/dsm/index.ts +1 -0
- package/src/dsm/membership/design-system-membership.ts +10 -0
- package/src/dsm/membership/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -286,7 +286,7 @@ var CustomDomain = z14.object({
|
|
|
286
286
|
});
|
|
287
287
|
|
|
288
288
|
// src/data-dumps/code-integration-dump.ts
|
|
289
|
-
import { z as
|
|
289
|
+
import { z as z126 } from "zod";
|
|
290
290
|
|
|
291
291
|
// src/export/exporter.ts
|
|
292
292
|
import { z as z17 } from "zod";
|
|
@@ -389,10 +389,10 @@ var Exporter = z17.object({
|
|
|
389
389
|
});
|
|
390
390
|
|
|
391
391
|
// src/export/pipeline.ts
|
|
392
|
-
import { z as
|
|
392
|
+
import { z as z125 } from "zod";
|
|
393
393
|
|
|
394
394
|
// src/export/export-destinations.ts
|
|
395
|
-
import { z as
|
|
395
|
+
import { z as z124 } from "zod";
|
|
396
396
|
|
|
397
397
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
398
398
|
import { z as z18 } from "zod";
|
|
@@ -2439,9 +2439,14 @@ var PageBlockItemStorybookValue = z44.object({
|
|
|
2439
2439
|
var PageBlockItemTextValue = z44.object({
|
|
2440
2440
|
value: z44.string()
|
|
2441
2441
|
});
|
|
2442
|
+
var PageBlockItemSwatch = z44.object({
|
|
2443
|
+
id: z44.string(),
|
|
2444
|
+
selectedThemeIds: z44.string().array()
|
|
2445
|
+
});
|
|
2442
2446
|
var PageBlockItemTokenValue = z44.object({
|
|
2443
2447
|
selectedPropertyIds: z44.array(z44.string()).optional(),
|
|
2444
2448
|
selectedThemeIds: z44.array(z44.string()).optional(),
|
|
2449
|
+
swatches: z44.array(PageBlockItemSwatch).optional(),
|
|
2445
2450
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
2446
2451
|
value: z44.array(
|
|
2447
2452
|
z44.object({
|
|
@@ -3977,99 +3982,108 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
3977
3982
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3978
3983
|
}
|
|
3979
3984
|
|
|
3980
|
-
// src/dsm/
|
|
3985
|
+
// src/dsm/membership/design-system-membership.ts
|
|
3981
3986
|
import { z as z113 } from "zod";
|
|
3982
|
-
var
|
|
3983
|
-
var ElementViewColumnType = z113.union([
|
|
3984
|
-
z113.literal("BaseProperty"),
|
|
3985
|
-
z113.literal("PropertyDefinition"),
|
|
3986
|
-
z113.literal("Theme")
|
|
3987
|
-
]);
|
|
3988
|
-
var ElementViewColumnSharedAttributes = z113.object({
|
|
3987
|
+
var DesignSystemMembership = z113.object({
|
|
3989
3988
|
id: z113.string(),
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3989
|
+
userId: z113.string(),
|
|
3990
|
+
designSystemId: z113.string(),
|
|
3991
|
+
workspaceMembershipId: z113.string()
|
|
3992
|
+
});
|
|
3993
|
+
|
|
3994
|
+
// src/dsm/views/column.ts
|
|
3995
|
+
import { z as z114 } from "zod";
|
|
3996
|
+
var ElementViewBaseColumnType = z114.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3997
|
+
var ElementViewColumnType = z114.union([
|
|
3998
|
+
z114.literal("BaseProperty"),
|
|
3999
|
+
z114.literal("PropertyDefinition"),
|
|
4000
|
+
z114.literal("Theme")
|
|
4001
|
+
]);
|
|
4002
|
+
var ElementViewColumnSharedAttributes = z114.object({
|
|
4003
|
+
id: z114.string(),
|
|
4004
|
+
persistentId: z114.string(),
|
|
4005
|
+
elementDataViewId: z114.string(),
|
|
4006
|
+
sortPosition: z114.number(),
|
|
4007
|
+
width: z114.number()
|
|
3994
4008
|
});
|
|
3995
4009
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3996
|
-
type:
|
|
4010
|
+
type: z114.literal("BaseProperty"),
|
|
3997
4011
|
basePropertyType: ElementViewBaseColumnType
|
|
3998
4012
|
});
|
|
3999
4013
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4000
|
-
type:
|
|
4001
|
-
propertyDefinitionId:
|
|
4014
|
+
type: z114.literal("PropertyDefinition"),
|
|
4015
|
+
propertyDefinitionId: z114.string()
|
|
4002
4016
|
});
|
|
4003
4017
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4004
|
-
type:
|
|
4005
|
-
themeId:
|
|
4018
|
+
type: z114.literal("Theme"),
|
|
4019
|
+
themeId: z114.string()
|
|
4006
4020
|
});
|
|
4007
|
-
var ElementViewColumn =
|
|
4021
|
+
var ElementViewColumn = z114.discriminatedUnion("type", [
|
|
4008
4022
|
ElementViewBasePropertyColumn,
|
|
4009
4023
|
ElementViewPropertyDefinitionColumn,
|
|
4010
4024
|
ElementViewThemeColumn
|
|
4011
4025
|
]);
|
|
4012
4026
|
|
|
4013
4027
|
// src/dsm/views/view.ts
|
|
4014
|
-
import { z as z114 } from "zod";
|
|
4015
|
-
var ElementView = z114.object({
|
|
4016
|
-
id: z114.string(),
|
|
4017
|
-
persistentId: z114.string(),
|
|
4018
|
-
designSystemVersionId: z114.string(),
|
|
4019
|
-
name: z114.string(),
|
|
4020
|
-
description: z114.string(),
|
|
4021
|
-
targetElementType: ElementPropertyTargetType,
|
|
4022
|
-
isDefault: z114.boolean()
|
|
4023
|
-
});
|
|
4024
|
-
|
|
4025
|
-
// src/dsm/brand.ts
|
|
4026
4028
|
import { z as z115 } from "zod";
|
|
4027
|
-
var
|
|
4029
|
+
var ElementView = z115.object({
|
|
4028
4030
|
id: z115.string(),
|
|
4029
|
-
designSystemVersionId: z115.string(),
|
|
4030
4031
|
persistentId: z115.string(),
|
|
4032
|
+
designSystemVersionId: z115.string(),
|
|
4031
4033
|
name: z115.string(),
|
|
4032
|
-
description: z115.string()
|
|
4034
|
+
description: z115.string(),
|
|
4035
|
+
targetElementType: ElementPropertyTargetType,
|
|
4036
|
+
isDefault: z115.boolean()
|
|
4033
4037
|
});
|
|
4034
4038
|
|
|
4035
|
-
// src/dsm/
|
|
4036
|
-
import { z as z117 } from "zod";
|
|
4037
|
-
|
|
4038
|
-
// src/dsm/design-system.ts
|
|
4039
|
+
// src/dsm/brand.ts
|
|
4039
4040
|
import { z as z116 } from "zod";
|
|
4040
|
-
var
|
|
4041
|
-
var DesignSystemSwitcher = z116.object({
|
|
4042
|
-
isEnabled: z116.boolean(),
|
|
4043
|
-
designSystemIds: z116.array(z116.string())
|
|
4044
|
-
});
|
|
4045
|
-
var DesignSystem = z116.object({
|
|
4041
|
+
var Brand = z116.object({
|
|
4046
4042
|
id: z116.string(),
|
|
4047
|
-
|
|
4043
|
+
designSystemVersionId: z116.string(),
|
|
4044
|
+
persistentId: z116.string(),
|
|
4048
4045
|
name: z116.string(),
|
|
4049
|
-
description: z116.string()
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4046
|
+
description: z116.string()
|
|
4047
|
+
});
|
|
4048
|
+
|
|
4049
|
+
// src/dsm/design-system-update.ts
|
|
4050
|
+
import { z as z118 } from "zod";
|
|
4051
|
+
|
|
4052
|
+
// src/dsm/design-system.ts
|
|
4053
|
+
import { z as z117 } from "zod";
|
|
4054
|
+
var DesignSystemAccessMode = z117.enum(["Open", "InviteOnly"]);
|
|
4055
|
+
var DesignSystemSwitcher = z117.object({
|
|
4056
|
+
isEnabled: z117.boolean(),
|
|
4057
|
+
designSystemIds: z117.array(z117.string())
|
|
4058
|
+
});
|
|
4059
|
+
var DesignSystem = z117.object({
|
|
4060
|
+
id: z117.string(),
|
|
4061
|
+
workspaceId: z117.string(),
|
|
4062
|
+
name: z117.string(),
|
|
4063
|
+
description: z117.string(),
|
|
4064
|
+
docExporterId: nullishToOptional(z117.string()),
|
|
4065
|
+
docSlug: z117.string(),
|
|
4066
|
+
docUserSlug: nullishToOptional(z117.string()),
|
|
4067
|
+
docSlugDeprecated: z117.string(),
|
|
4068
|
+
isPublic: z117.boolean(),
|
|
4069
|
+
isMultibrand: z117.boolean(),
|
|
4070
|
+
docViewUrl: nullishToOptional(z117.string()),
|
|
4071
|
+
basePrefixes: z117.array(z117.string()),
|
|
4058
4072
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4059
|
-
isApprovalFeatureEnabled:
|
|
4060
|
-
approvalRequiredForPublishing:
|
|
4073
|
+
isApprovalFeatureEnabled: z117.boolean(),
|
|
4074
|
+
approvalRequiredForPublishing: z117.boolean(),
|
|
4061
4075
|
accessMode: DesignSystemAccessMode,
|
|
4062
|
-
createdAt:
|
|
4063
|
-
updatedAt:
|
|
4076
|
+
createdAt: z117.coerce.date(),
|
|
4077
|
+
updatedAt: z117.coerce.date()
|
|
4064
4078
|
});
|
|
4065
4079
|
|
|
4066
4080
|
// src/dsm/design-system-update.ts
|
|
4067
4081
|
var DS_NAME_MIN_LENGTH = 2;
|
|
4068
4082
|
var DS_NAME_MAX_LENGTH = 64;
|
|
4069
4083
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
4070
|
-
var DesignSystemUpdateInputMetadata =
|
|
4071
|
-
name:
|
|
4072
|
-
description:
|
|
4084
|
+
var DesignSystemUpdateInputMetadata = z118.object({
|
|
4085
|
+
name: z118.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
4086
|
+
description: z118.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
4073
4087
|
});
|
|
4074
4088
|
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
4075
4089
|
id: true,
|
|
@@ -4083,197 +4097,197 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
4083
4097
|
});
|
|
4084
4098
|
|
|
4085
4099
|
// src/dsm/desing-system-create.ts
|
|
4086
|
-
import { z as
|
|
4100
|
+
import { z as z119 } from "zod";
|
|
4087
4101
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
4088
4102
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
4089
4103
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
4090
|
-
var DesignSystemCreateInputMetadata =
|
|
4091
|
-
name:
|
|
4092
|
-
description:
|
|
4104
|
+
var DesignSystemCreateInputMetadata = z119.object({
|
|
4105
|
+
name: z119.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
4106
|
+
description: z119.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
4093
4107
|
});
|
|
4094
|
-
var DesignSystemCreateInput =
|
|
4108
|
+
var DesignSystemCreateInput = z119.object({
|
|
4095
4109
|
meta: DesignSystemCreateInputMetadata,
|
|
4096
|
-
workspaceId:
|
|
4097
|
-
isPublic:
|
|
4098
|
-
basePrefixes:
|
|
4099
|
-
docUserSlug:
|
|
4100
|
-
source:
|
|
4110
|
+
workspaceId: z119.string(),
|
|
4111
|
+
isPublic: z119.boolean().optional(),
|
|
4112
|
+
basePrefixes: z119.array(z119.string()).optional(),
|
|
4113
|
+
docUserSlug: z119.string().nullish().optional(),
|
|
4114
|
+
source: z119.array(z119.string()).optional()
|
|
4101
4115
|
});
|
|
4102
4116
|
|
|
4103
4117
|
// src/dsm/exporter-property-values-collection.ts
|
|
4104
|
-
import { z as
|
|
4105
|
-
var ExporterPropertyImageValue =
|
|
4118
|
+
import { z as z120 } from "zod";
|
|
4119
|
+
var ExporterPropertyImageValue = z120.object({
|
|
4106
4120
|
asset: PageBlockAsset.optional(),
|
|
4107
|
-
assetId:
|
|
4108
|
-
assetUrl:
|
|
4109
|
-
});
|
|
4110
|
-
var ExporterPropertyValue =
|
|
4111
|
-
key:
|
|
4112
|
-
value:
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4121
|
+
assetId: z120.string().optional(),
|
|
4122
|
+
assetUrl: z120.string().optional()
|
|
4123
|
+
});
|
|
4124
|
+
var ExporterPropertyValue = z120.object({
|
|
4125
|
+
key: z120.string(),
|
|
4126
|
+
value: z120.union([
|
|
4127
|
+
z120.number(),
|
|
4128
|
+
z120.string(),
|
|
4129
|
+
z120.boolean(),
|
|
4116
4130
|
ExporterPropertyImageValue,
|
|
4117
4131
|
ColorTokenData,
|
|
4118
4132
|
TypographyTokenData
|
|
4119
4133
|
])
|
|
4120
4134
|
});
|
|
4121
|
-
var ExporterPropertyValuesCollection =
|
|
4122
|
-
id:
|
|
4123
|
-
designSystemId:
|
|
4124
|
-
exporterId:
|
|
4125
|
-
values:
|
|
4135
|
+
var ExporterPropertyValuesCollection = z120.object({
|
|
4136
|
+
id: z120.string(),
|
|
4137
|
+
designSystemId: z120.string(),
|
|
4138
|
+
exporterId: z120.string(),
|
|
4139
|
+
values: z120.array(ExporterPropertyValue)
|
|
4126
4140
|
});
|
|
4127
4141
|
|
|
4128
4142
|
// src/dsm/published-doc-page.ts
|
|
4129
|
-
import { z as
|
|
4143
|
+
import { z as z121 } from "zod";
|
|
4130
4144
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4131
4145
|
function tryParseShortPersistentId(url = "/") {
|
|
4132
4146
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4133
4147
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4134
4148
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4135
4149
|
}
|
|
4136
|
-
var PublishedDocPage =
|
|
4137
|
-
id:
|
|
4138
|
-
publishedDocId:
|
|
4139
|
-
pageShortPersistentId:
|
|
4140
|
-
pathV1:
|
|
4141
|
-
pathV2:
|
|
4142
|
-
storagePath:
|
|
4143
|
-
locale:
|
|
4144
|
-
isPrivate:
|
|
4145
|
-
isHidden:
|
|
4146
|
-
createdAt:
|
|
4147
|
-
updatedAt:
|
|
4150
|
+
var PublishedDocPage = z121.object({
|
|
4151
|
+
id: z121.string(),
|
|
4152
|
+
publishedDocId: z121.string(),
|
|
4153
|
+
pageShortPersistentId: z121.string(),
|
|
4154
|
+
pathV1: z121.string(),
|
|
4155
|
+
pathV2: z121.string(),
|
|
4156
|
+
storagePath: z121.string(),
|
|
4157
|
+
locale: z121.string().optional(),
|
|
4158
|
+
isPrivate: z121.boolean(),
|
|
4159
|
+
isHidden: z121.boolean(),
|
|
4160
|
+
createdAt: z121.coerce.date(),
|
|
4161
|
+
updatedAt: z121.coerce.date()
|
|
4148
4162
|
});
|
|
4149
4163
|
|
|
4150
4164
|
// src/dsm/published-doc.ts
|
|
4151
|
-
import { z as
|
|
4165
|
+
import { z as z122 } from "zod";
|
|
4152
4166
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4153
|
-
var PublishedDocEnvironment =
|
|
4154
|
-
var PublishedDocsChecksums =
|
|
4155
|
-
var PublishedDocRoutingVersion =
|
|
4156
|
-
var PublishedDoc =
|
|
4157
|
-
id:
|
|
4158
|
-
designSystemVersionId:
|
|
4159
|
-
createdAt:
|
|
4160
|
-
updatedAt:
|
|
4161
|
-
lastPublishedAt:
|
|
4162
|
-
isDefault:
|
|
4163
|
-
isPublic:
|
|
4167
|
+
var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
|
|
4168
|
+
var PublishedDocsChecksums = z122.record(z122.string());
|
|
4169
|
+
var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
|
|
4170
|
+
var PublishedDoc = z122.object({
|
|
4171
|
+
id: z122.string(),
|
|
4172
|
+
designSystemVersionId: z122.string(),
|
|
4173
|
+
createdAt: z122.coerce.date(),
|
|
4174
|
+
updatedAt: z122.coerce.date(),
|
|
4175
|
+
lastPublishedAt: z122.coerce.date(),
|
|
4176
|
+
isDefault: z122.boolean(),
|
|
4177
|
+
isPublic: z122.boolean(),
|
|
4164
4178
|
environment: PublishedDocEnvironment,
|
|
4165
4179
|
checksums: PublishedDocsChecksums,
|
|
4166
|
-
storagePath:
|
|
4167
|
-
wasMigrated:
|
|
4180
|
+
storagePath: z122.string(),
|
|
4181
|
+
wasMigrated: z122.boolean(),
|
|
4168
4182
|
routingVersion: PublishedDocRoutingVersion,
|
|
4169
|
-
usesLocalizations:
|
|
4170
|
-
wasPublishedWithLocalizations:
|
|
4171
|
-
tokenCount:
|
|
4172
|
-
assetCount:
|
|
4183
|
+
usesLocalizations: z122.boolean(),
|
|
4184
|
+
wasPublishedWithLocalizations: z122.boolean(),
|
|
4185
|
+
tokenCount: z122.number(),
|
|
4186
|
+
assetCount: z122.number()
|
|
4173
4187
|
});
|
|
4174
4188
|
|
|
4175
4189
|
// src/dsm/version.ts
|
|
4176
|
-
import { z as
|
|
4177
|
-
var DesignSystemVersion =
|
|
4178
|
-
id:
|
|
4179
|
-
version:
|
|
4180
|
-
createdAt:
|
|
4181
|
-
designSystemId:
|
|
4182
|
-
name:
|
|
4183
|
-
comment:
|
|
4184
|
-
isReadonly:
|
|
4185
|
-
changeLog:
|
|
4186
|
-
parentId:
|
|
4187
|
-
isDraftsFeatureAdopted:
|
|
4188
|
-
});
|
|
4189
|
-
var VersionCreationJobStatus =
|
|
4190
|
-
var VersionCreationJob =
|
|
4191
|
-
id:
|
|
4192
|
-
version:
|
|
4193
|
-
designSystemId:
|
|
4194
|
-
designSystemVersionId: nullishToOptional(
|
|
4190
|
+
import { z as z123 } from "zod";
|
|
4191
|
+
var DesignSystemVersion = z123.object({
|
|
4192
|
+
id: z123.string(),
|
|
4193
|
+
version: z123.string(),
|
|
4194
|
+
createdAt: z123.coerce.date(),
|
|
4195
|
+
designSystemId: z123.string(),
|
|
4196
|
+
name: z123.string(),
|
|
4197
|
+
comment: z123.string(),
|
|
4198
|
+
isReadonly: z123.boolean(),
|
|
4199
|
+
changeLog: z123.string(),
|
|
4200
|
+
parentId: z123.string().optional(),
|
|
4201
|
+
isDraftsFeatureAdopted: z123.boolean()
|
|
4202
|
+
});
|
|
4203
|
+
var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
|
|
4204
|
+
var VersionCreationJob = z123.object({
|
|
4205
|
+
id: z123.string(),
|
|
4206
|
+
version: z123.string(),
|
|
4207
|
+
designSystemId: z123.string(),
|
|
4208
|
+
designSystemVersionId: nullishToOptional(z123.string()),
|
|
4195
4209
|
status: VersionCreationJobStatus,
|
|
4196
|
-
errorMessage: nullishToOptional(
|
|
4210
|
+
errorMessage: nullishToOptional(z123.string())
|
|
4197
4211
|
});
|
|
4198
4212
|
|
|
4199
4213
|
// src/export/export-destinations.ts
|
|
4200
4214
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4201
4215
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4202
|
-
var ExportJobDocumentationChanges =
|
|
4203
|
-
pagePersistentIds:
|
|
4204
|
-
groupPersistentIds:
|
|
4216
|
+
var ExportJobDocumentationChanges = z124.object({
|
|
4217
|
+
pagePersistentIds: z124.string().array(),
|
|
4218
|
+
groupPersistentIds: z124.string().array()
|
|
4205
4219
|
});
|
|
4206
|
-
var ExporterDestinationDocs =
|
|
4220
|
+
var ExporterDestinationDocs = z124.object({
|
|
4207
4221
|
environment: PublishedDocEnvironment,
|
|
4208
4222
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4209
4223
|
});
|
|
4210
|
-
var ExporterDestinationS3 =
|
|
4211
|
-
var ExporterDestinationGithub =
|
|
4212
|
-
credentialId:
|
|
4224
|
+
var ExporterDestinationS3 = z124.object({});
|
|
4225
|
+
var ExporterDestinationGithub = z124.object({
|
|
4226
|
+
credentialId: z124.string().optional(),
|
|
4213
4227
|
// Repository
|
|
4214
|
-
url:
|
|
4228
|
+
url: z124.string(),
|
|
4215
4229
|
// Location
|
|
4216
|
-
branch:
|
|
4217
|
-
relativePath: nullishToOptional(
|
|
4230
|
+
branch: z124.string(),
|
|
4231
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4218
4232
|
// Commit metadata
|
|
4219
|
-
commitAuthorName: nullishToOptional(
|
|
4220
|
-
commitAuthorEmail: nullishToOptional(
|
|
4233
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4234
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4221
4235
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4222
|
-
connectionId: nullishToOptional(
|
|
4223
|
-
userId: nullishToOptional(
|
|
4236
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4237
|
+
userId: nullishToOptional(z124.number())
|
|
4224
4238
|
});
|
|
4225
|
-
var ExporterDestinationAzure =
|
|
4226
|
-
credentialId:
|
|
4239
|
+
var ExporterDestinationAzure = z124.object({
|
|
4240
|
+
credentialId: z124.string().optional(),
|
|
4227
4241
|
// Repository
|
|
4228
|
-
organizationId:
|
|
4229
|
-
projectId:
|
|
4230
|
-
repositoryId:
|
|
4242
|
+
organizationId: z124.string(),
|
|
4243
|
+
projectId: z124.string(),
|
|
4244
|
+
repositoryId: z124.string(),
|
|
4231
4245
|
// Commit metadata
|
|
4232
|
-
commitAuthorName: nullishToOptional(
|
|
4233
|
-
commitAuthorEmail: nullishToOptional(
|
|
4246
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4247
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4234
4248
|
// Location
|
|
4235
|
-
branch:
|
|
4236
|
-
relativePath: nullishToOptional(
|
|
4249
|
+
branch: z124.string(),
|
|
4250
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4237
4251
|
// Maybe not needed
|
|
4238
|
-
url: nullishToOptional(
|
|
4252
|
+
url: nullishToOptional(z124.string()),
|
|
4239
4253
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4240
|
-
connectionId: nullishToOptional(
|
|
4241
|
-
userId: nullishToOptional(
|
|
4254
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4255
|
+
userId: nullishToOptional(z124.number())
|
|
4242
4256
|
});
|
|
4243
|
-
var ExporterDestinationGitlab =
|
|
4244
|
-
credentialId:
|
|
4257
|
+
var ExporterDestinationGitlab = z124.object({
|
|
4258
|
+
credentialId: z124.string().optional(),
|
|
4245
4259
|
// Repository
|
|
4246
|
-
projectId:
|
|
4260
|
+
projectId: z124.string(),
|
|
4247
4261
|
// Commit metadata
|
|
4248
|
-
commitAuthorName: nullishToOptional(
|
|
4249
|
-
commitAuthorEmail: nullishToOptional(
|
|
4262
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4263
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4250
4264
|
// Location
|
|
4251
|
-
branch:
|
|
4252
|
-
relativePath: nullishToOptional(
|
|
4265
|
+
branch: z124.string(),
|
|
4266
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4253
4267
|
// Maybe not needed
|
|
4254
|
-
url: nullishToOptional(
|
|
4268
|
+
url: nullishToOptional(z124.string()),
|
|
4255
4269
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4256
|
-
connectionId: nullishToOptional(
|
|
4257
|
-
userId: nullishToOptional(
|
|
4270
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4271
|
+
userId: nullishToOptional(z124.number())
|
|
4258
4272
|
});
|
|
4259
|
-
var ExporterDestinationBitbucket =
|
|
4260
|
-
credentialId:
|
|
4273
|
+
var ExporterDestinationBitbucket = z124.object({
|
|
4274
|
+
credentialId: z124.string().optional(),
|
|
4261
4275
|
// Repository
|
|
4262
|
-
workspaceSlug:
|
|
4263
|
-
projectKey:
|
|
4264
|
-
repoSlug:
|
|
4276
|
+
workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4277
|
+
projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4278
|
+
repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4265
4279
|
// Commit metadata
|
|
4266
|
-
commitAuthorName: nullishToOptional(
|
|
4267
|
-
commitAuthorEmail: nullishToOptional(
|
|
4280
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4281
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4268
4282
|
// Location
|
|
4269
|
-
branch:
|
|
4270
|
-
relativePath: nullishToOptional(
|
|
4283
|
+
branch: z124.string(),
|
|
4284
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4271
4285
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4272
|
-
connectionId: nullishToOptional(
|
|
4273
|
-
userId: nullishToOptional(
|
|
4286
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4287
|
+
userId: nullishToOptional(z124.number())
|
|
4274
4288
|
});
|
|
4275
|
-
var ExportDestinationsMap =
|
|
4276
|
-
webhookUrl:
|
|
4289
|
+
var ExportDestinationsMap = z124.object({
|
|
4290
|
+
webhookUrl: z124.string().optional(),
|
|
4277
4291
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4278
4292
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4279
4293
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4283,148 +4297,148 @@ var ExportDestinationsMap = z123.object({
|
|
|
4283
4297
|
});
|
|
4284
4298
|
|
|
4285
4299
|
// src/export/pipeline.ts
|
|
4286
|
-
var PipelineEventType =
|
|
4287
|
-
var PipelineDestinationGitType =
|
|
4288
|
-
var PipelineDestinationExtraType =
|
|
4289
|
-
var PipelineDestinationType =
|
|
4290
|
-
var Pipeline =
|
|
4291
|
-
id:
|
|
4292
|
-
name:
|
|
4300
|
+
var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4301
|
+
var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4302
|
+
var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4303
|
+
var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4304
|
+
var Pipeline = z125.object({
|
|
4305
|
+
id: z125.string(),
|
|
4306
|
+
name: z125.string(),
|
|
4293
4307
|
eventType: PipelineEventType,
|
|
4294
|
-
isEnabled:
|
|
4295
|
-
workspaceId:
|
|
4296
|
-
designSystemId:
|
|
4297
|
-
exporterId:
|
|
4298
|
-
brandPersistentId:
|
|
4299
|
-
themePersistentId:
|
|
4308
|
+
isEnabled: z125.boolean(),
|
|
4309
|
+
workspaceId: z125.string(),
|
|
4310
|
+
designSystemId: z125.string(),
|
|
4311
|
+
exporterId: z125.string(),
|
|
4312
|
+
brandPersistentId: z125.string().optional(),
|
|
4313
|
+
themePersistentId: z125.string().optional(),
|
|
4300
4314
|
// Destinations
|
|
4301
4315
|
...ExportDestinationsMap.shape
|
|
4302
4316
|
});
|
|
4303
4317
|
|
|
4304
4318
|
// src/data-dumps/code-integration-dump.ts
|
|
4305
|
-
var ExportJobDump =
|
|
4306
|
-
id:
|
|
4307
|
-
createdAt:
|
|
4308
|
-
finishedAt:
|
|
4309
|
-
exportArtefacts:
|
|
4319
|
+
var ExportJobDump = z126.object({
|
|
4320
|
+
id: z126.string(),
|
|
4321
|
+
createdAt: z126.coerce.date(),
|
|
4322
|
+
finishedAt: z126.coerce.date(),
|
|
4323
|
+
exportArtefacts: z126.string()
|
|
4310
4324
|
});
|
|
4311
|
-
var CodeIntegrationDump =
|
|
4325
|
+
var CodeIntegrationDump = z126.object({
|
|
4312
4326
|
exporters: Exporter.array(),
|
|
4313
4327
|
pipelines: Pipeline.array(),
|
|
4314
4328
|
exportJobs: ExportJobDump.array()
|
|
4315
4329
|
});
|
|
4316
4330
|
|
|
4317
4331
|
// src/data-dumps/design-system-dump.ts
|
|
4318
|
-
import { z as
|
|
4332
|
+
import { z as z133 } from "zod";
|
|
4319
4333
|
|
|
4320
4334
|
// src/data-dumps/design-system-version-dump.ts
|
|
4321
|
-
import { z as
|
|
4335
|
+
import { z as z132 } from "zod";
|
|
4322
4336
|
|
|
4323
4337
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4324
|
-
import { z as
|
|
4338
|
+
import { z as z127 } from "zod";
|
|
4325
4339
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4326
|
-
designSystemVersionId:
|
|
4327
|
-
liveblocksId:
|
|
4328
|
-
});
|
|
4329
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4330
|
-
routingVersion:
|
|
4331
|
-
isDraftFeatureAdopted:
|
|
4332
|
-
isApprovalFeatureEnabled:
|
|
4333
|
-
approvalRequiredForPublishing:
|
|
4334
|
-
});
|
|
4335
|
-
var DesignSystemVersionRoomInitialState =
|
|
4336
|
-
pages:
|
|
4337
|
-
groups:
|
|
4338
|
-
pageSnapshots:
|
|
4339
|
-
groupSnapshots:
|
|
4340
|
-
pageApprovals:
|
|
4340
|
+
designSystemVersionId: z127.string(),
|
|
4341
|
+
liveblocksId: z127.string()
|
|
4342
|
+
});
|
|
4343
|
+
var DesignSystemVersionRoomInternalSettings = z127.object({
|
|
4344
|
+
routingVersion: z127.string(),
|
|
4345
|
+
isDraftFeatureAdopted: z127.boolean(),
|
|
4346
|
+
isApprovalFeatureEnabled: z127.boolean(),
|
|
4347
|
+
approvalRequiredForPublishing: z127.boolean()
|
|
4348
|
+
});
|
|
4349
|
+
var DesignSystemVersionRoomInitialState = z127.object({
|
|
4350
|
+
pages: z127.array(DocumentationPageV2),
|
|
4351
|
+
groups: z127.array(ElementGroup),
|
|
4352
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
4353
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
4354
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
4341
4355
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4342
4356
|
});
|
|
4343
|
-
var DesignSystemVersionRoomUpdate =
|
|
4344
|
-
pages:
|
|
4345
|
-
groups:
|
|
4346
|
-
pageIdsToDelete:
|
|
4347
|
-
groupIdsToDelete:
|
|
4348
|
-
pageSnapshots:
|
|
4349
|
-
groupSnapshots:
|
|
4350
|
-
pageSnapshotIdsToDelete:
|
|
4351
|
-
groupSnapshotIdsToDelete:
|
|
4352
|
-
pageHashesToUpdate:
|
|
4353
|
-
pageApprovals:
|
|
4354
|
-
pageApprovalIdsToDelete:
|
|
4357
|
+
var DesignSystemVersionRoomUpdate = z127.object({
|
|
4358
|
+
pages: z127.array(DocumentationPageV2),
|
|
4359
|
+
groups: z127.array(ElementGroup),
|
|
4360
|
+
pageIdsToDelete: z127.array(z127.string()),
|
|
4361
|
+
groupIdsToDelete: z127.array(z127.string()),
|
|
4362
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
4363
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
4364
|
+
pageSnapshotIdsToDelete: z127.array(z127.string()),
|
|
4365
|
+
groupSnapshotIdsToDelete: z127.array(z127.string()),
|
|
4366
|
+
pageHashesToUpdate: z127.record(z127.string(), z127.string()),
|
|
4367
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
4368
|
+
pageApprovalIdsToDelete: z127.array(z127.string())
|
|
4355
4369
|
});
|
|
4356
4370
|
|
|
4357
4371
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4358
|
-
import { z as
|
|
4372
|
+
import { z as z128 } from "zod";
|
|
4359
4373
|
var DocumentationPageRoom = Entity.extend({
|
|
4360
|
-
designSystemVersionId:
|
|
4361
|
-
documentationPageId:
|
|
4362
|
-
liveblocksId:
|
|
4363
|
-
isDirty:
|
|
4374
|
+
designSystemVersionId: z128.string(),
|
|
4375
|
+
documentationPageId: z128.string(),
|
|
4376
|
+
liveblocksId: z128.string(),
|
|
4377
|
+
isDirty: z128.boolean()
|
|
4364
4378
|
});
|
|
4365
|
-
var DocumentationPageRoomState =
|
|
4366
|
-
pageItems:
|
|
4379
|
+
var DocumentationPageRoomState = z128.object({
|
|
4380
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4367
4381
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4368
4382
|
});
|
|
4369
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4383
|
+
var DocumentationPageRoomRoomUpdate = z128.object({
|
|
4370
4384
|
page: DocumentationPageV2,
|
|
4371
4385
|
pageParent: ElementGroup
|
|
4372
4386
|
});
|
|
4373
4387
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4374
|
-
pageItems:
|
|
4375
|
-
blockDefinitions:
|
|
4388
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4389
|
+
blockDefinitions: z128.array(PageBlockDefinition)
|
|
4376
4390
|
});
|
|
4377
|
-
var RestoredDocumentationPage =
|
|
4391
|
+
var RestoredDocumentationPage = z128.object({
|
|
4378
4392
|
page: DocumentationPageV2,
|
|
4379
4393
|
pageParent: ElementGroup,
|
|
4380
4394
|
pageContent: DocumentationPageContentData,
|
|
4381
|
-
contentHash:
|
|
4382
|
-
snapshotId:
|
|
4383
|
-
roomId:
|
|
4395
|
+
contentHash: z128.string(),
|
|
4396
|
+
snapshotId: z128.string(),
|
|
4397
|
+
roomId: z128.string().optional()
|
|
4384
4398
|
});
|
|
4385
|
-
var RestoredDocumentationGroup =
|
|
4399
|
+
var RestoredDocumentationGroup = z128.object({
|
|
4386
4400
|
group: ElementGroup,
|
|
4387
4401
|
parent: ElementGroup
|
|
4388
4402
|
});
|
|
4389
4403
|
|
|
4390
4404
|
// src/liveblocks/rooms/room-type.ts
|
|
4391
|
-
import { z as
|
|
4405
|
+
import { z as z129 } from "zod";
|
|
4392
4406
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4393
4407
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4394
4408
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4395
4409
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4396
4410
|
return RoomTypeEnum2;
|
|
4397
4411
|
})(RoomTypeEnum || {});
|
|
4398
|
-
var RoomTypeSchema =
|
|
4412
|
+
var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
|
|
4399
4413
|
var RoomType = RoomTypeSchema.enum;
|
|
4400
4414
|
|
|
4401
4415
|
// src/liveblocks/rooms/workspace-room.ts
|
|
4402
|
-
import { z as
|
|
4416
|
+
import { z as z130 } from "zod";
|
|
4403
4417
|
var WorkspaceRoom = Entity.extend({
|
|
4404
|
-
workspaceId:
|
|
4405
|
-
liveblocksId:
|
|
4418
|
+
workspaceId: z130.string(),
|
|
4419
|
+
liveblocksId: z130.string()
|
|
4406
4420
|
});
|
|
4407
4421
|
|
|
4408
4422
|
// src/data-dumps/published-docs-dump.ts
|
|
4409
|
-
import { z as
|
|
4410
|
-
var PublishedDocsDump =
|
|
4423
|
+
import { z as z131 } from "zod";
|
|
4424
|
+
var PublishedDocsDump = z131.object({
|
|
4411
4425
|
documentation: PublishedDoc,
|
|
4412
4426
|
pages: PublishedDocPage.array()
|
|
4413
4427
|
});
|
|
4414
4428
|
|
|
4415
4429
|
// src/data-dumps/design-system-version-dump.ts
|
|
4416
|
-
var DocumentationThreadDump =
|
|
4430
|
+
var DocumentationThreadDump = z132.object({
|
|
4417
4431
|
thread: DocumentationCommentThread,
|
|
4418
4432
|
comments: DocumentationComment.array()
|
|
4419
4433
|
});
|
|
4420
|
-
var DocumentationPageRoomDump =
|
|
4434
|
+
var DocumentationPageRoomDump = z132.object({
|
|
4421
4435
|
room: DocumentationPageRoom,
|
|
4422
4436
|
threads: DocumentationThreadDump.array()
|
|
4423
4437
|
});
|
|
4424
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4438
|
+
var DesignSystemVersionMultiplayerDump = z132.object({
|
|
4425
4439
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4426
4440
|
});
|
|
4427
|
-
var DesignSystemVersionDump =
|
|
4441
|
+
var DesignSystemVersionDump = z132.object({
|
|
4428
4442
|
version: DesignSystemVersion,
|
|
4429
4443
|
brands: Brand.array(),
|
|
4430
4444
|
elements: DesignElement.array(),
|
|
@@ -4439,7 +4453,7 @@ var DesignSystemVersionDump = z131.object({
|
|
|
4439
4453
|
});
|
|
4440
4454
|
|
|
4441
4455
|
// src/data-dumps/design-system-dump.ts
|
|
4442
|
-
var DesignSystemDump =
|
|
4456
|
+
var DesignSystemDump = z133.object({
|
|
4443
4457
|
designSystem: DesignSystem,
|
|
4444
4458
|
dataSources: DataSource.array(),
|
|
4445
4459
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -4448,27 +4462,27 @@ var DesignSystemDump = z132.object({
|
|
|
4448
4462
|
});
|
|
4449
4463
|
|
|
4450
4464
|
// src/data-dumps/user-data-dump.ts
|
|
4451
|
-
import { z as
|
|
4465
|
+
import { z as z148 } from "zod";
|
|
4452
4466
|
|
|
4453
4467
|
// src/users/linked-integrations.ts
|
|
4454
|
-
import { z as
|
|
4455
|
-
var IntegrationAuthType =
|
|
4456
|
-
var ExternalServiceType =
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4468
|
+
import { z as z134 } from "zod";
|
|
4469
|
+
var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
|
|
4470
|
+
var ExternalServiceType = z134.union([
|
|
4471
|
+
z134.literal("figma"),
|
|
4472
|
+
z134.literal("github"),
|
|
4473
|
+
z134.literal("azure"),
|
|
4474
|
+
z134.literal("gitlab"),
|
|
4475
|
+
z134.literal("bitbucket")
|
|
4462
4476
|
]);
|
|
4463
|
-
var IntegrationUserInfo =
|
|
4464
|
-
id:
|
|
4465
|
-
handle:
|
|
4466
|
-
avatarUrl:
|
|
4467
|
-
email:
|
|
4477
|
+
var IntegrationUserInfo = z134.object({
|
|
4478
|
+
id: z134.string(),
|
|
4479
|
+
handle: z134.string().optional(),
|
|
4480
|
+
avatarUrl: z134.string().optional(),
|
|
4481
|
+
email: z134.string().optional(),
|
|
4468
4482
|
authType: IntegrationAuthType.optional(),
|
|
4469
|
-
customUrl:
|
|
4483
|
+
customUrl: z134.string().optional()
|
|
4470
4484
|
});
|
|
4471
|
-
var UserLinkedIntegrations =
|
|
4485
|
+
var UserLinkedIntegrations = z134.object({
|
|
4472
4486
|
figma: IntegrationUserInfo.optional(),
|
|
4473
4487
|
github: IntegrationUserInfo.array().optional(),
|
|
4474
4488
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4477,46 +4491,46 @@ var UserLinkedIntegrations = z133.object({
|
|
|
4477
4491
|
});
|
|
4478
4492
|
|
|
4479
4493
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4480
|
-
import { z as
|
|
4481
|
-
var UserAnalyticsCleanupSchedule =
|
|
4482
|
-
userId:
|
|
4483
|
-
createdAt:
|
|
4484
|
-
deleteAt:
|
|
4494
|
+
import { z as z135 } from "zod";
|
|
4495
|
+
var UserAnalyticsCleanupSchedule = z135.object({
|
|
4496
|
+
userId: z135.string(),
|
|
4497
|
+
createdAt: z135.coerce.date(),
|
|
4498
|
+
deleteAt: z135.coerce.date()
|
|
4485
4499
|
});
|
|
4486
4500
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4487
4501
|
createdAt: true
|
|
4488
4502
|
});
|
|
4489
4503
|
|
|
4490
4504
|
// src/users/user-create.ts
|
|
4491
|
-
import { z as
|
|
4492
|
-
var CreateUserInput =
|
|
4493
|
-
email:
|
|
4494
|
-
name:
|
|
4495
|
-
username:
|
|
4505
|
+
import { z as z136 } from "zod";
|
|
4506
|
+
var CreateUserInput = z136.object({
|
|
4507
|
+
email: z136.string(),
|
|
4508
|
+
name: z136.string(),
|
|
4509
|
+
username: z136.string()
|
|
4496
4510
|
});
|
|
4497
4511
|
|
|
4498
4512
|
// src/users/user-identity.ts
|
|
4499
|
-
import { z as
|
|
4500
|
-
var UserIdentity =
|
|
4501
|
-
id:
|
|
4502
|
-
userId:
|
|
4513
|
+
import { z as z137 } from "zod";
|
|
4514
|
+
var UserIdentity = z137.object({
|
|
4515
|
+
id: z137.string(),
|
|
4516
|
+
userId: z137.string()
|
|
4503
4517
|
});
|
|
4504
4518
|
|
|
4505
4519
|
// src/users/user-minified.ts
|
|
4506
|
-
import { z as
|
|
4507
|
-
var UserMinified =
|
|
4508
|
-
id:
|
|
4509
|
-
name:
|
|
4510
|
-
email:
|
|
4511
|
-
avatar:
|
|
4520
|
+
import { z as z138 } from "zod";
|
|
4521
|
+
var UserMinified = z138.object({
|
|
4522
|
+
id: z138.string(),
|
|
4523
|
+
name: z138.string(),
|
|
4524
|
+
email: z138.string(),
|
|
4525
|
+
avatar: z138.string().optional()
|
|
4512
4526
|
});
|
|
4513
4527
|
|
|
4514
4528
|
// src/users/user-notification-settings.ts
|
|
4515
|
-
import { z as
|
|
4516
|
-
var LiveblocksNotificationSettings =
|
|
4517
|
-
sendCommentNotificationEmails:
|
|
4529
|
+
import { z as z139 } from "zod";
|
|
4530
|
+
var LiveblocksNotificationSettings = z139.object({
|
|
4531
|
+
sendCommentNotificationEmails: z139.boolean()
|
|
4518
4532
|
});
|
|
4519
|
-
var UserNotificationSettings =
|
|
4533
|
+
var UserNotificationSettings = z139.object({
|
|
4520
4534
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4521
4535
|
});
|
|
4522
4536
|
var defaultNotificationSettings = {
|
|
@@ -4526,27 +4540,27 @@ var defaultNotificationSettings = {
|
|
|
4526
4540
|
};
|
|
4527
4541
|
|
|
4528
4542
|
// src/users/user-profile.ts
|
|
4529
|
-
import { z as
|
|
4530
|
-
var UserOnboardingDepartment =
|
|
4531
|
-
var UserOnboardingJobLevel =
|
|
4532
|
-
var UserOnboarding =
|
|
4533
|
-
companyName:
|
|
4534
|
-
numberOfPeopleInOrg:
|
|
4535
|
-
numberOfPeopleInDesignTeam:
|
|
4543
|
+
import { z as z140 } from "zod";
|
|
4544
|
+
var UserOnboardingDepartment = z140.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4545
|
+
var UserOnboardingJobLevel = z140.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4546
|
+
var UserOnboarding = z140.object({
|
|
4547
|
+
companyName: z140.string().optional(),
|
|
4548
|
+
numberOfPeopleInOrg: z140.string().optional(),
|
|
4549
|
+
numberOfPeopleInDesignTeam: z140.string().optional(),
|
|
4536
4550
|
department: UserOnboardingDepartment.optional(),
|
|
4537
|
-
jobTitle:
|
|
4538
|
-
phase:
|
|
4551
|
+
jobTitle: z140.string().optional(),
|
|
4552
|
+
phase: z140.string().optional(),
|
|
4539
4553
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4540
|
-
designSystemName:
|
|
4541
|
-
defaultDestination:
|
|
4542
|
-
figmaUrl:
|
|
4543
|
-
isPageDraftOnboardingFinished:
|
|
4544
|
-
isApprovalsOnboardingFinished:
|
|
4545
|
-
});
|
|
4546
|
-
var UserProfile =
|
|
4547
|
-
name:
|
|
4548
|
-
avatar:
|
|
4549
|
-
nickname:
|
|
4554
|
+
designSystemName: z140.string().optional(),
|
|
4555
|
+
defaultDestination: z140.string().optional(),
|
|
4556
|
+
figmaUrl: z140.string().optional(),
|
|
4557
|
+
isPageDraftOnboardingFinished: z140.boolean().optional(),
|
|
4558
|
+
isApprovalsOnboardingFinished: z140.boolean().optional()
|
|
4559
|
+
});
|
|
4560
|
+
var UserProfile = z140.object({
|
|
4561
|
+
name: z140.string(),
|
|
4562
|
+
avatar: z140.string().optional(),
|
|
4563
|
+
nickname: z140.string().optional(),
|
|
4550
4564
|
onboarding: UserOnboarding.optional()
|
|
4551
4565
|
});
|
|
4552
4566
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
@@ -4554,68 +4568,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4554
4568
|
});
|
|
4555
4569
|
|
|
4556
4570
|
// src/users/user-test.ts
|
|
4557
|
-
import { z as
|
|
4558
|
-
var UserTest =
|
|
4559
|
-
id:
|
|
4560
|
-
email:
|
|
4571
|
+
import { z as z141 } from "zod";
|
|
4572
|
+
var UserTest = z141.object({
|
|
4573
|
+
id: z141.string(),
|
|
4574
|
+
email: z141.string()
|
|
4561
4575
|
});
|
|
4562
4576
|
|
|
4563
4577
|
// src/users/user.ts
|
|
4564
|
-
import { z as
|
|
4565
|
-
var User =
|
|
4566
|
-
id:
|
|
4567
|
-
email:
|
|
4568
|
-
emailVerified:
|
|
4569
|
-
createdAt:
|
|
4570
|
-
trialExpiresAt:
|
|
4578
|
+
import { z as z142 } from "zod";
|
|
4579
|
+
var User = z142.object({
|
|
4580
|
+
id: z142.string(),
|
|
4581
|
+
email: z142.string(),
|
|
4582
|
+
emailVerified: z142.boolean(),
|
|
4583
|
+
createdAt: z142.coerce.date(),
|
|
4584
|
+
trialExpiresAt: z142.coerce.date().optional(),
|
|
4571
4585
|
profile: UserProfile,
|
|
4572
4586
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4573
|
-
loggedOutAt:
|
|
4574
|
-
isProtected:
|
|
4587
|
+
loggedOutAt: z142.coerce.date().optional(),
|
|
4588
|
+
isProtected: z142.boolean()
|
|
4575
4589
|
});
|
|
4576
4590
|
|
|
4577
4591
|
// src/data-dumps/workspace-dump.ts
|
|
4578
|
-
import { z as
|
|
4592
|
+
import { z as z147 } from "zod";
|
|
4579
4593
|
|
|
4580
4594
|
// src/integrations/integration.ts
|
|
4581
|
-
import { z as
|
|
4582
|
-
var IntegrationDesignSystem =
|
|
4583
|
-
designSystemId:
|
|
4584
|
-
brandId:
|
|
4585
|
-
title:
|
|
4586
|
-
userId:
|
|
4587
|
-
date:
|
|
4588
|
-
});
|
|
4589
|
-
var IntegrationCredentialsType =
|
|
4590
|
-
var IntegrationCredentialsState =
|
|
4591
|
-
var IntegrationCredentialsProfile =
|
|
4592
|
-
id: nullishToOptional(
|
|
4593
|
-
email: nullishToOptional(
|
|
4594
|
-
handle: nullishToOptional(
|
|
4595
|
-
type: nullishToOptional(
|
|
4596
|
-
avatarUrl: nullishToOptional(
|
|
4597
|
-
organization: nullishToOptional(
|
|
4598
|
-
collection: nullishToOptional(
|
|
4599
|
-
});
|
|
4600
|
-
var IntegrationCredentials =
|
|
4601
|
-
id:
|
|
4595
|
+
import { z as z143 } from "zod";
|
|
4596
|
+
var IntegrationDesignSystem = z143.object({
|
|
4597
|
+
designSystemId: z143.string(),
|
|
4598
|
+
brandId: z143.string(),
|
|
4599
|
+
title: z143.string().optional(),
|
|
4600
|
+
userId: z143.string().optional(),
|
|
4601
|
+
date: z143.coerce.date().optional()
|
|
4602
|
+
});
|
|
4603
|
+
var IntegrationCredentialsType = z143.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4604
|
+
var IntegrationCredentialsState = z143.enum(["Active", "Inactive"]);
|
|
4605
|
+
var IntegrationCredentialsProfile = z143.object({
|
|
4606
|
+
id: nullishToOptional(z143.string()),
|
|
4607
|
+
email: nullishToOptional(z143.string()),
|
|
4608
|
+
handle: nullishToOptional(z143.string()),
|
|
4609
|
+
type: nullishToOptional(z143.string()),
|
|
4610
|
+
avatarUrl: nullishToOptional(z143.string()),
|
|
4611
|
+
organization: nullishToOptional(z143.string()),
|
|
4612
|
+
collection: nullishToOptional(z143.string())
|
|
4613
|
+
});
|
|
4614
|
+
var IntegrationCredentials = z143.object({
|
|
4615
|
+
id: z143.string(),
|
|
4602
4616
|
type: IntegrationCredentialsType,
|
|
4603
|
-
integrationId:
|
|
4604
|
-
accessToken:
|
|
4605
|
-
userId:
|
|
4606
|
-
createdAt:
|
|
4607
|
-
refreshToken:
|
|
4608
|
-
tokenName:
|
|
4609
|
-
expiresAt:
|
|
4610
|
-
refreshedAt:
|
|
4611
|
-
username:
|
|
4612
|
-
appInstallationId:
|
|
4617
|
+
integrationId: z143.string(),
|
|
4618
|
+
accessToken: z143.string(),
|
|
4619
|
+
userId: z143.string(),
|
|
4620
|
+
createdAt: z143.coerce.date(),
|
|
4621
|
+
refreshToken: z143.string().optional(),
|
|
4622
|
+
tokenName: z143.string().optional(),
|
|
4623
|
+
expiresAt: z143.coerce.date().optional(),
|
|
4624
|
+
refreshedAt: z143.coerce.date().optional(),
|
|
4625
|
+
username: z143.string().optional(),
|
|
4626
|
+
appInstallationId: z143.string().optional(),
|
|
4613
4627
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4614
|
-
customUrl:
|
|
4628
|
+
customUrl: z143.string().optional(),
|
|
4615
4629
|
state: IntegrationCredentialsState,
|
|
4616
4630
|
user: UserMinified.optional()
|
|
4617
4631
|
});
|
|
4618
|
-
var ExtendedIntegrationType =
|
|
4632
|
+
var ExtendedIntegrationType = z143.enum([
|
|
4619
4633
|
"Figma",
|
|
4620
4634
|
"Github",
|
|
4621
4635
|
"Gitlab",
|
|
@@ -4626,26 +4640,26 @@ var ExtendedIntegrationType = z142.enum([
|
|
|
4626
4640
|
]);
|
|
4627
4641
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4628
4642
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4629
|
-
var Integration =
|
|
4630
|
-
id:
|
|
4631
|
-
workspaceId:
|
|
4643
|
+
var Integration = z143.object({
|
|
4644
|
+
id: z143.string(),
|
|
4645
|
+
workspaceId: z143.string(),
|
|
4632
4646
|
type: IntegrationType,
|
|
4633
|
-
createdAt:
|
|
4634
|
-
integrationCredentials:
|
|
4635
|
-
});
|
|
4636
|
-
var IntegrationToken =
|
|
4637
|
-
access_token:
|
|
4638
|
-
refresh_token:
|
|
4639
|
-
expires_in:
|
|
4640
|
-
token_type:
|
|
4641
|
-
token_name:
|
|
4642
|
-
token_azure_organization_name:
|
|
4647
|
+
createdAt: z143.coerce.date(),
|
|
4648
|
+
integrationCredentials: z143.array(IntegrationCredentials).optional()
|
|
4649
|
+
});
|
|
4650
|
+
var IntegrationToken = z143.object({
|
|
4651
|
+
access_token: z143.string(),
|
|
4652
|
+
refresh_token: z143.string().optional(),
|
|
4653
|
+
expires_in: z143.union([z143.number().optional(), z143.string().optional()]),
|
|
4654
|
+
token_type: z143.string().optional(),
|
|
4655
|
+
token_name: z143.string().optional(),
|
|
4656
|
+
token_azure_organization_name: z143.string().optional(),
|
|
4643
4657
|
// Azure Cloud PAT only
|
|
4644
|
-
token_azure_collection_name:
|
|
4658
|
+
token_azure_collection_name: z143.string().optional(),
|
|
4645
4659
|
// Azure Server PAT only
|
|
4646
|
-
token_bitbucket_username:
|
|
4660
|
+
token_bitbucket_username: z143.string().optional(),
|
|
4647
4661
|
// Bitbucket only
|
|
4648
|
-
custom_url:
|
|
4662
|
+
custom_url: z143.string().optional().transform((value) => {
|
|
4649
4663
|
if (!value?.trim())
|
|
4650
4664
|
return void 0;
|
|
4651
4665
|
return formatCustomUrl(value);
|
|
@@ -4684,99 +4698,99 @@ function formatCustomUrl(url) {
|
|
|
4684
4698
|
|
|
4685
4699
|
// src/workspace/workspace.ts
|
|
4686
4700
|
import IPCIDR from "ip-cidr";
|
|
4687
|
-
import { z as
|
|
4701
|
+
import { z as z146 } from "zod";
|
|
4688
4702
|
|
|
4689
4703
|
// src/workspace/npm-registry-settings.ts
|
|
4690
|
-
import { z as
|
|
4691
|
-
var NpmRegistryAuthType =
|
|
4692
|
-
var NpmRegistryType =
|
|
4693
|
-
var NpmRegistryBasicAuthConfig =
|
|
4694
|
-
authType:
|
|
4695
|
-
username:
|
|
4696
|
-
password:
|
|
4697
|
-
});
|
|
4698
|
-
var NpmRegistryBearerAuthConfig =
|
|
4699
|
-
authType:
|
|
4700
|
-
accessToken:
|
|
4701
|
-
});
|
|
4702
|
-
var NpmRegistryNoAuthConfig =
|
|
4703
|
-
authType:
|
|
4704
|
-
});
|
|
4705
|
-
var NpmRegistrCustomAuthConfig =
|
|
4706
|
-
authType:
|
|
4707
|
-
authHeaderName:
|
|
4708
|
-
authHeaderValue:
|
|
4709
|
-
});
|
|
4710
|
-
var NpmRegistryAuthConfig =
|
|
4704
|
+
import { z as z144 } from "zod";
|
|
4705
|
+
var NpmRegistryAuthType = z144.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4706
|
+
var NpmRegistryType = z144.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4707
|
+
var NpmRegistryBasicAuthConfig = z144.object({
|
|
4708
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4709
|
+
username: z144.string(),
|
|
4710
|
+
password: z144.string()
|
|
4711
|
+
});
|
|
4712
|
+
var NpmRegistryBearerAuthConfig = z144.object({
|
|
4713
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4714
|
+
accessToken: z144.string()
|
|
4715
|
+
});
|
|
4716
|
+
var NpmRegistryNoAuthConfig = z144.object({
|
|
4717
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.None)
|
|
4718
|
+
});
|
|
4719
|
+
var NpmRegistrCustomAuthConfig = z144.object({
|
|
4720
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4721
|
+
authHeaderName: z144.string(),
|
|
4722
|
+
authHeaderValue: z144.string()
|
|
4723
|
+
});
|
|
4724
|
+
var NpmRegistryAuthConfig = z144.discriminatedUnion("authType", [
|
|
4711
4725
|
NpmRegistryBasicAuthConfig,
|
|
4712
4726
|
NpmRegistryBearerAuthConfig,
|
|
4713
4727
|
NpmRegistryNoAuthConfig,
|
|
4714
4728
|
NpmRegistrCustomAuthConfig
|
|
4715
4729
|
]);
|
|
4716
|
-
var NpmRegistryConfigBase =
|
|
4730
|
+
var NpmRegistryConfigBase = z144.object({
|
|
4717
4731
|
registryType: NpmRegistryType,
|
|
4718
|
-
enabledScopes:
|
|
4719
|
-
customRegistryUrl:
|
|
4720
|
-
bypassProxy:
|
|
4721
|
-
npmProxyRegistryConfigId:
|
|
4722
|
-
npmProxyVersion:
|
|
4732
|
+
enabledScopes: z144.array(z144.string()),
|
|
4733
|
+
customRegistryUrl: z144.string().optional(),
|
|
4734
|
+
bypassProxy: z144.boolean().default(false),
|
|
4735
|
+
npmProxyRegistryConfigId: z144.string().optional(),
|
|
4736
|
+
npmProxyVersion: z144.number().optional()
|
|
4723
4737
|
});
|
|
4724
4738
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4725
4739
|
|
|
4726
4740
|
// src/workspace/sso-provider.ts
|
|
4727
|
-
import { z as
|
|
4728
|
-
var SsoProvider =
|
|
4729
|
-
providerId:
|
|
4730
|
-
defaultAutoInviteValue:
|
|
4731
|
-
autoInviteDomains:
|
|
4732
|
-
skipDocsSupernovaLogin:
|
|
4733
|
-
areInvitesDisabled:
|
|
4734
|
-
isTestMode:
|
|
4735
|
-
emailDomains:
|
|
4736
|
-
metadataXml:
|
|
4741
|
+
import { z as z145 } from "zod";
|
|
4742
|
+
var SsoProvider = z145.object({
|
|
4743
|
+
providerId: z145.string(),
|
|
4744
|
+
defaultAutoInviteValue: z145.boolean(),
|
|
4745
|
+
autoInviteDomains: z145.record(z145.string(), z145.boolean()),
|
|
4746
|
+
skipDocsSupernovaLogin: z145.boolean(),
|
|
4747
|
+
areInvitesDisabled: z145.boolean(),
|
|
4748
|
+
isTestMode: z145.boolean(),
|
|
4749
|
+
emailDomains: z145.array(z145.string()),
|
|
4750
|
+
metadataXml: z145.string().nullish()
|
|
4737
4751
|
});
|
|
4738
4752
|
|
|
4739
4753
|
// src/workspace/workspace.ts
|
|
4740
4754
|
var isValidCIDR = (value) => {
|
|
4741
4755
|
return IPCIDR.isValidAddress(value);
|
|
4742
4756
|
};
|
|
4743
|
-
var WorkspaceIpWhitelistEntry =
|
|
4744
|
-
isEnabled:
|
|
4745
|
-
name:
|
|
4746
|
-
range:
|
|
4757
|
+
var WorkspaceIpWhitelistEntry = z146.object({
|
|
4758
|
+
isEnabled: z146.boolean(),
|
|
4759
|
+
name: z146.string(),
|
|
4760
|
+
range: z146.string().refine(isValidCIDR, {
|
|
4747
4761
|
message: "Invalid IP CIDR"
|
|
4748
4762
|
})
|
|
4749
4763
|
});
|
|
4750
|
-
var WorkspaceIpSettings =
|
|
4751
|
-
isEnabledForCloud:
|
|
4752
|
-
isEnabledForDocs:
|
|
4753
|
-
entries:
|
|
4764
|
+
var WorkspaceIpSettings = z146.object({
|
|
4765
|
+
isEnabledForCloud: z146.boolean(),
|
|
4766
|
+
isEnabledForDocs: z146.boolean(),
|
|
4767
|
+
entries: z146.array(WorkspaceIpWhitelistEntry)
|
|
4754
4768
|
});
|
|
4755
|
-
var WorkspaceProfile =
|
|
4756
|
-
name:
|
|
4757
|
-
handle:
|
|
4758
|
-
color:
|
|
4759
|
-
avatar: nullishToOptional(
|
|
4769
|
+
var WorkspaceProfile = z146.object({
|
|
4770
|
+
name: z146.string(),
|
|
4771
|
+
handle: z146.string(),
|
|
4772
|
+
color: z146.string(),
|
|
4773
|
+
avatar: nullishToOptional(z146.string()),
|
|
4760
4774
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4761
4775
|
});
|
|
4762
4776
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4763
4777
|
avatar: true
|
|
4764
4778
|
});
|
|
4765
|
-
var Workspace =
|
|
4766
|
-
id:
|
|
4779
|
+
var Workspace = z146.object({
|
|
4780
|
+
id: z146.string(),
|
|
4767
4781
|
profile: WorkspaceProfile,
|
|
4768
4782
|
subscription: Subscription,
|
|
4769
4783
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4770
4784
|
sso: nullishToOptional(SsoProvider),
|
|
4771
4785
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4772
4786
|
});
|
|
4773
|
-
var WorkspaceWithDesignSystems =
|
|
4787
|
+
var WorkspaceWithDesignSystems = z146.object({
|
|
4774
4788
|
workspace: Workspace,
|
|
4775
|
-
designSystems:
|
|
4789
|
+
designSystems: z146.array(DesignSystem)
|
|
4776
4790
|
});
|
|
4777
4791
|
|
|
4778
4792
|
// src/data-dumps/workspace-dump.ts
|
|
4779
|
-
var WorkspaceDump =
|
|
4793
|
+
var WorkspaceDump = z147.object({
|
|
4780
4794
|
workspace: Workspace,
|
|
4781
4795
|
designSystems: DesignSystemDump.array(),
|
|
4782
4796
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -4784,93 +4798,93 @@ var WorkspaceDump = z146.object({
|
|
|
4784
4798
|
});
|
|
4785
4799
|
|
|
4786
4800
|
// src/data-dumps/user-data-dump.ts
|
|
4787
|
-
var UserDump =
|
|
4801
|
+
var UserDump = z148.object({
|
|
4788
4802
|
user: User,
|
|
4789
4803
|
workspaces: WorkspaceDump.array()
|
|
4790
4804
|
});
|
|
4791
4805
|
|
|
4792
4806
|
// src/docs-server/session.ts
|
|
4793
|
-
import { z as
|
|
4794
|
-
var NpmProxyToken =
|
|
4795
|
-
access:
|
|
4796
|
-
expiresAt:
|
|
4807
|
+
import { z as z149 } from "zod";
|
|
4808
|
+
var NpmProxyToken = z149.object({
|
|
4809
|
+
access: z149.string(),
|
|
4810
|
+
expiresAt: z149.number()
|
|
4797
4811
|
});
|
|
4798
|
-
var SessionData =
|
|
4799
|
-
returnToUrl:
|
|
4812
|
+
var SessionData = z149.object({
|
|
4813
|
+
returnToUrl: z149.string().optional(),
|
|
4800
4814
|
npmProxyToken: NpmProxyToken.optional()
|
|
4801
4815
|
});
|
|
4802
|
-
var Session =
|
|
4803
|
-
id:
|
|
4804
|
-
expiresAt:
|
|
4805
|
-
userId:
|
|
4816
|
+
var Session = z149.object({
|
|
4817
|
+
id: z149.string(),
|
|
4818
|
+
expiresAt: z149.coerce.date(),
|
|
4819
|
+
userId: z149.string().nullable(),
|
|
4806
4820
|
data: SessionData
|
|
4807
4821
|
});
|
|
4808
|
-
var AuthTokens =
|
|
4809
|
-
access:
|
|
4810
|
-
refresh:
|
|
4822
|
+
var AuthTokens = z149.object({
|
|
4823
|
+
access: z149.string(),
|
|
4824
|
+
refresh: z149.string()
|
|
4811
4825
|
});
|
|
4812
|
-
var UserSession =
|
|
4826
|
+
var UserSession = z149.object({
|
|
4813
4827
|
session: Session,
|
|
4814
4828
|
user: User.nullable()
|
|
4815
4829
|
});
|
|
4816
4830
|
|
|
4817
4831
|
// src/events/base.ts
|
|
4818
|
-
import { z as
|
|
4832
|
+
import { z as z152 } from "zod";
|
|
4819
4833
|
|
|
4820
4834
|
// src/events/data-source-imported.ts
|
|
4821
|
-
import { z as
|
|
4822
|
-
var EventDataSourceImported =
|
|
4823
|
-
type:
|
|
4824
|
-
workspaceId:
|
|
4825
|
-
designSystemId:
|
|
4835
|
+
import { z as z150 } from "zod";
|
|
4836
|
+
var EventDataSourceImported = z150.object({
|
|
4837
|
+
type: z150.literal("DataSourceImported"),
|
|
4838
|
+
workspaceId: z150.string(),
|
|
4839
|
+
designSystemId: z150.string()
|
|
4826
4840
|
});
|
|
4827
4841
|
|
|
4828
4842
|
// src/events/version-released.ts
|
|
4829
|
-
import { z as
|
|
4830
|
-
var EventVersionReleased =
|
|
4831
|
-
type:
|
|
4832
|
-
workspaceId:
|
|
4833
|
-
designSystemId:
|
|
4834
|
-
versionId:
|
|
4843
|
+
import { z as z151 } from "zod";
|
|
4844
|
+
var EventVersionReleased = z151.object({
|
|
4845
|
+
type: z151.literal("DesignSystemVersionReleased"),
|
|
4846
|
+
workspaceId: z151.string(),
|
|
4847
|
+
designSystemId: z151.string(),
|
|
4848
|
+
versionId: z151.string()
|
|
4835
4849
|
});
|
|
4836
4850
|
|
|
4837
4851
|
// src/events/base.ts
|
|
4838
|
-
var Event =
|
|
4852
|
+
var Event = z152.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4839
4853
|
|
|
4840
4854
|
// src/export/export-runner/export-context.ts
|
|
4841
|
-
import { z as
|
|
4842
|
-
var ExportJobDocumentationContext =
|
|
4843
|
-
isSingleVersionDocs:
|
|
4844
|
-
versionSlug:
|
|
4855
|
+
import { z as z153 } from "zod";
|
|
4856
|
+
var ExportJobDocumentationContext = z153.object({
|
|
4857
|
+
isSingleVersionDocs: z153.boolean(),
|
|
4858
|
+
versionSlug: z153.string(),
|
|
4845
4859
|
environment: PublishedDocEnvironment
|
|
4846
4860
|
});
|
|
4847
|
-
var ExportJobContext =
|
|
4848
|
-
apiUrl:
|
|
4849
|
-
accessToken:
|
|
4850
|
-
designSystemId:
|
|
4851
|
-
designSystemName:
|
|
4852
|
-
exporterId:
|
|
4853
|
-
versionId:
|
|
4854
|
-
brandId:
|
|
4855
|
-
themeId:
|
|
4856
|
-
exporterName:
|
|
4857
|
-
exporterPackageUrl:
|
|
4861
|
+
var ExportJobContext = z153.object({
|
|
4862
|
+
apiUrl: z153.string(),
|
|
4863
|
+
accessToken: z153.string(),
|
|
4864
|
+
designSystemId: z153.string(),
|
|
4865
|
+
designSystemName: z153.string(),
|
|
4866
|
+
exporterId: z153.string(),
|
|
4867
|
+
versionId: z153.string(),
|
|
4868
|
+
brandId: z153.string().optional(),
|
|
4869
|
+
themeId: z153.string().optional(),
|
|
4870
|
+
exporterName: z153.string(),
|
|
4871
|
+
exporterPackageUrl: z153.string(),
|
|
4858
4872
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4859
4873
|
documentation: ExportJobDocumentationContext.optional()
|
|
4860
4874
|
});
|
|
4861
4875
|
|
|
4862
4876
|
// src/export/export-runner/exporter-payload.ts
|
|
4863
|
-
import { z as
|
|
4864
|
-
var ExporterFunctionPayload =
|
|
4865
|
-
exportJobId:
|
|
4866
|
-
exportContextId:
|
|
4867
|
-
designSystemId:
|
|
4868
|
-
workspaceId:
|
|
4877
|
+
import { z as z154 } from "zod";
|
|
4878
|
+
var ExporterFunctionPayload = z154.object({
|
|
4879
|
+
exportJobId: z154.string(),
|
|
4880
|
+
exportContextId: z154.string(),
|
|
4881
|
+
designSystemId: z154.string(),
|
|
4882
|
+
workspaceId: z154.string()
|
|
4869
4883
|
});
|
|
4870
4884
|
|
|
4871
4885
|
// src/export/export-jobs.ts
|
|
4872
|
-
import { z as
|
|
4873
|
-
var ExportJobDestinationType =
|
|
4886
|
+
import { z as z155 } from "zod";
|
|
4887
|
+
var ExportJobDestinationType = z155.enum([
|
|
4874
4888
|
"s3",
|
|
4875
4889
|
"webhookUrl",
|
|
4876
4890
|
"github",
|
|
@@ -4879,30 +4893,30 @@ var ExportJobDestinationType = z154.enum([
|
|
|
4879
4893
|
"gitlab",
|
|
4880
4894
|
"bitbucket"
|
|
4881
4895
|
]);
|
|
4882
|
-
var ExportJobStatus =
|
|
4883
|
-
var ExportJobLogEntryType =
|
|
4884
|
-
var ExportJobLogEntry =
|
|
4885
|
-
id:
|
|
4886
|
-
time:
|
|
4896
|
+
var ExportJobStatus = z155.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4897
|
+
var ExportJobLogEntryType = z155.enum(["success", "info", "warning", "error", "user"]);
|
|
4898
|
+
var ExportJobLogEntry = z155.object({
|
|
4899
|
+
id: z155.string().optional(),
|
|
4900
|
+
time: z155.coerce.date(),
|
|
4887
4901
|
type: ExportJobLogEntryType,
|
|
4888
|
-
message:
|
|
4902
|
+
message: z155.string()
|
|
4889
4903
|
});
|
|
4890
|
-
var ExportJobPullRequestDestinationResult =
|
|
4891
|
-
pullRequestUrl:
|
|
4904
|
+
var ExportJobPullRequestDestinationResult = z155.object({
|
|
4905
|
+
pullRequestUrl: z155.string()
|
|
4892
4906
|
});
|
|
4893
|
-
var ExportJobS3DestinationResult =
|
|
4894
|
-
bucket:
|
|
4895
|
-
urlPrefix:
|
|
4896
|
-
path:
|
|
4897
|
-
files:
|
|
4898
|
-
url: nullishToOptional(
|
|
4899
|
-
urls: nullishToOptional(
|
|
4907
|
+
var ExportJobS3DestinationResult = z155.object({
|
|
4908
|
+
bucket: z155.string(),
|
|
4909
|
+
urlPrefix: z155.string().optional(),
|
|
4910
|
+
path: z155.string(),
|
|
4911
|
+
files: z155.array(z155.string()),
|
|
4912
|
+
url: nullishToOptional(z155.string()),
|
|
4913
|
+
urls: nullishToOptional(z155.string().array())
|
|
4900
4914
|
});
|
|
4901
|
-
var ExportJobDocsDestinationResult =
|
|
4902
|
-
url:
|
|
4915
|
+
var ExportJobDocsDestinationResult = z155.object({
|
|
4916
|
+
url: z155.string()
|
|
4903
4917
|
});
|
|
4904
|
-
var ExportJobResult =
|
|
4905
|
-
error:
|
|
4918
|
+
var ExportJobResult = z155.object({
|
|
4919
|
+
error: z155.string().optional(),
|
|
4906
4920
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4907
4921
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4908
4922
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4911,21 +4925,21 @@ var ExportJobResult = z154.object({
|
|
|
4911
4925
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4912
4926
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4913
4927
|
});
|
|
4914
|
-
var ExportJob =
|
|
4915
|
-
id:
|
|
4916
|
-
createdAt:
|
|
4917
|
-
finishedAt:
|
|
4918
|
-
designSystemId:
|
|
4919
|
-
designSystemVersionId:
|
|
4920
|
-
workspaceId:
|
|
4921
|
-
scheduleId:
|
|
4922
|
-
exporterId:
|
|
4923
|
-
brandId:
|
|
4924
|
-
themeId:
|
|
4925
|
-
estimatedExecutionTime:
|
|
4928
|
+
var ExportJob = z155.object({
|
|
4929
|
+
id: z155.string(),
|
|
4930
|
+
createdAt: z155.coerce.date(),
|
|
4931
|
+
finishedAt: z155.coerce.date().optional(),
|
|
4932
|
+
designSystemId: z155.string(),
|
|
4933
|
+
designSystemVersionId: z155.string(),
|
|
4934
|
+
workspaceId: z155.string(),
|
|
4935
|
+
scheduleId: z155.string().nullish(),
|
|
4936
|
+
exporterId: z155.string(),
|
|
4937
|
+
brandId: z155.string().optional(),
|
|
4938
|
+
themeId: z155.string().optional(),
|
|
4939
|
+
estimatedExecutionTime: z155.number().optional(),
|
|
4926
4940
|
status: ExportJobStatus,
|
|
4927
4941
|
result: ExportJobResult.optional(),
|
|
4928
|
-
createdByUserId:
|
|
4942
|
+
createdByUserId: z155.string().optional(),
|
|
4929
4943
|
// Destinations
|
|
4930
4944
|
...ExportDestinationsMap.shape
|
|
4931
4945
|
});
|
|
@@ -4939,40 +4953,40 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4939
4953
|
themeId: true,
|
|
4940
4954
|
brandId: true
|
|
4941
4955
|
}).extend({
|
|
4942
|
-
destinations:
|
|
4956
|
+
destinations: z155.array(ExportJobDestinationType),
|
|
4943
4957
|
docsEnvironment: PublishedDocEnvironment
|
|
4944
4958
|
}).partial();
|
|
4945
4959
|
|
|
4946
4960
|
// src/export/exporter-workspace-membership-role.ts
|
|
4947
|
-
import { z as
|
|
4948
|
-
var ExporterWorkspaceMembershipRole =
|
|
4961
|
+
import { z as z156 } from "zod";
|
|
4962
|
+
var ExporterWorkspaceMembershipRole = z156.enum(["Owner", "OwnerArchived", "User"]);
|
|
4949
4963
|
|
|
4950
4964
|
// src/export/exporter-workspace-membership.ts
|
|
4951
|
-
import { z as
|
|
4952
|
-
var ExporterWorkspaceMembership =
|
|
4953
|
-
id:
|
|
4954
|
-
workspaceId:
|
|
4955
|
-
exporterId:
|
|
4965
|
+
import { z as z157 } from "zod";
|
|
4966
|
+
var ExporterWorkspaceMembership = z157.object({
|
|
4967
|
+
id: z157.string(),
|
|
4968
|
+
workspaceId: z157.string(),
|
|
4969
|
+
exporterId: z157.string(),
|
|
4956
4970
|
role: ExporterWorkspaceMembershipRole
|
|
4957
4971
|
});
|
|
4958
4972
|
|
|
4959
4973
|
// src/feature-flags/feature-flags.ts
|
|
4960
|
-
import { z as
|
|
4961
|
-
var FlaggedFeature =
|
|
4962
|
-
var FeatureFlagMap =
|
|
4963
|
-
var FeatureFlag =
|
|
4964
|
-
id:
|
|
4974
|
+
import { z as z158 } from "zod";
|
|
4975
|
+
var FlaggedFeature = z158.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4976
|
+
var FeatureFlagMap = z158.record(FlaggedFeature, z158.boolean());
|
|
4977
|
+
var FeatureFlag = z158.object({
|
|
4978
|
+
id: z158.string(),
|
|
4965
4979
|
feature: FlaggedFeature,
|
|
4966
|
-
createdAt:
|
|
4967
|
-
enabled:
|
|
4968
|
-
designSystemId:
|
|
4980
|
+
createdAt: z158.coerce.date(),
|
|
4981
|
+
enabled: z158.boolean(),
|
|
4982
|
+
designSystemId: z158.string().optional()
|
|
4969
4983
|
});
|
|
4970
4984
|
|
|
4971
4985
|
// src/integrations/external-oauth-request.ts
|
|
4972
|
-
import { z as
|
|
4986
|
+
import { z as z160 } from "zod";
|
|
4973
4987
|
|
|
4974
4988
|
// src/integrations/oauth-providers.ts
|
|
4975
|
-
import { z as
|
|
4989
|
+
import { z as z159 } from "zod";
|
|
4976
4990
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4977
4991
|
OAuthProviderNames2["Figma"] = "figma";
|
|
4978
4992
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -4981,137 +4995,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4981
4995
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4982
4996
|
return OAuthProviderNames2;
|
|
4983
4997
|
})(OAuthProviderNames || {});
|
|
4984
|
-
var OAuthProviderSchema =
|
|
4998
|
+
var OAuthProviderSchema = z159.nativeEnum(OAuthProviderNames);
|
|
4985
4999
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4986
5000
|
|
|
4987
5001
|
// src/integrations/external-oauth-request.ts
|
|
4988
|
-
var ExternalOAuthRequest =
|
|
4989
|
-
id:
|
|
5002
|
+
var ExternalOAuthRequest = z160.object({
|
|
5003
|
+
id: z160.string(),
|
|
4990
5004
|
provider: OAuthProviderSchema,
|
|
4991
|
-
userId:
|
|
4992
|
-
state:
|
|
4993
|
-
createdAt:
|
|
5005
|
+
userId: z160.string(),
|
|
5006
|
+
state: z160.string(),
|
|
5007
|
+
createdAt: z160.coerce.date()
|
|
4994
5008
|
});
|
|
4995
5009
|
|
|
4996
5010
|
// src/integrations/git.ts
|
|
4997
|
-
import { z as
|
|
4998
|
-
var GitObjectsQuery =
|
|
4999
|
-
organization:
|
|
5011
|
+
import { z as z161 } from "zod";
|
|
5012
|
+
var GitObjectsQuery = z161.object({
|
|
5013
|
+
organization: z161.string().optional(),
|
|
5000
5014
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5001
|
-
project:
|
|
5015
|
+
project: z161.string().optional(),
|
|
5002
5016
|
// Only for Bitbucket and Azure
|
|
5003
|
-
repository:
|
|
5017
|
+
repository: z161.string().optional(),
|
|
5004
5018
|
// For all providers. For Gitlab, it's called "project".
|
|
5005
|
-
branch:
|
|
5019
|
+
branch: z161.string().optional(),
|
|
5006
5020
|
// For all providers.
|
|
5007
|
-
user:
|
|
5021
|
+
user: z161.string().optional()
|
|
5008
5022
|
// Gitlab user
|
|
5009
5023
|
});
|
|
5010
|
-
var GitOrganization =
|
|
5011
|
-
id:
|
|
5012
|
-
name:
|
|
5013
|
-
url:
|
|
5014
|
-
slug:
|
|
5024
|
+
var GitOrganization = z161.object({
|
|
5025
|
+
id: z161.string(),
|
|
5026
|
+
name: z161.string(),
|
|
5027
|
+
url: z161.string(),
|
|
5028
|
+
slug: z161.string()
|
|
5015
5029
|
});
|
|
5016
|
-
var GitProject =
|
|
5017
|
-
id:
|
|
5018
|
-
name:
|
|
5019
|
-
url:
|
|
5020
|
-
slug:
|
|
5030
|
+
var GitProject = z161.object({
|
|
5031
|
+
id: z161.string(),
|
|
5032
|
+
name: z161.string(),
|
|
5033
|
+
url: z161.string(),
|
|
5034
|
+
slug: z161.string()
|
|
5021
5035
|
});
|
|
5022
|
-
var GitRepository =
|
|
5023
|
-
id:
|
|
5024
|
-
name:
|
|
5025
|
-
url:
|
|
5026
|
-
slug:
|
|
5036
|
+
var GitRepository = z161.object({
|
|
5037
|
+
id: z161.string(),
|
|
5038
|
+
name: z161.string(),
|
|
5039
|
+
url: z161.string(),
|
|
5040
|
+
slug: z161.string(),
|
|
5027
5041
|
/**
|
|
5028
5042
|
* Can be undefined when:
|
|
5029
5043
|
* - there are no branches in the repository yet
|
|
5030
5044
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5031
5045
|
*/
|
|
5032
|
-
defaultBranch:
|
|
5046
|
+
defaultBranch: z161.string().optional()
|
|
5033
5047
|
});
|
|
5034
|
-
var GitBranch =
|
|
5035
|
-
name:
|
|
5036
|
-
lastCommitId:
|
|
5048
|
+
var GitBranch = z161.object({
|
|
5049
|
+
name: z161.string(),
|
|
5050
|
+
lastCommitId: z161.string()
|
|
5037
5051
|
});
|
|
5038
5052
|
|
|
5039
5053
|
// src/integrations/oauth-token.ts
|
|
5040
|
-
import { z as
|
|
5041
|
-
var IntegrationTokenSchemaOld =
|
|
5042
|
-
id:
|
|
5054
|
+
import { z as z162 } from "zod";
|
|
5055
|
+
var IntegrationTokenSchemaOld = z162.object({
|
|
5056
|
+
id: z162.string(),
|
|
5043
5057
|
provider: OAuthProviderSchema,
|
|
5044
|
-
scope:
|
|
5045
|
-
userId:
|
|
5046
|
-
accessToken:
|
|
5047
|
-
refreshToken:
|
|
5048
|
-
expiresAt:
|
|
5049
|
-
externalUserId:
|
|
5058
|
+
scope: z162.string(),
|
|
5059
|
+
userId: z162.string(),
|
|
5060
|
+
accessToken: z162.string(),
|
|
5061
|
+
refreshToken: z162.string(),
|
|
5062
|
+
expiresAt: z162.coerce.date(),
|
|
5063
|
+
externalUserId: z162.string().nullish()
|
|
5050
5064
|
});
|
|
5051
5065
|
|
|
5052
5066
|
// src/integrations/workspace-oauth-requests.ts
|
|
5053
|
-
import { z as
|
|
5054
|
-
var WorkspaceOAuthRequestSchema =
|
|
5055
|
-
id:
|
|
5056
|
-
workspaceId:
|
|
5067
|
+
import { z as z163 } from "zod";
|
|
5068
|
+
var WorkspaceOAuthRequestSchema = z163.object({
|
|
5069
|
+
id: z163.string(),
|
|
5070
|
+
workspaceId: z163.string(),
|
|
5057
5071
|
provider: OAuthProviderSchema,
|
|
5058
|
-
userId:
|
|
5059
|
-
createdAt:
|
|
5072
|
+
userId: z163.string(),
|
|
5073
|
+
createdAt: z163.coerce.date()
|
|
5060
5074
|
});
|
|
5061
5075
|
|
|
5062
5076
|
// src/npm/npm-package.ts
|
|
5063
|
-
import { z as
|
|
5064
|
-
var AnyRecord =
|
|
5077
|
+
import { z as z164 } from "zod";
|
|
5078
|
+
var AnyRecord = z164.record(z164.any());
|
|
5065
5079
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5066
|
-
|
|
5067
|
-
tarball:
|
|
5080
|
+
z164.object({
|
|
5081
|
+
tarball: z164.string()
|
|
5068
5082
|
})
|
|
5069
5083
|
);
|
|
5070
5084
|
var NpmPackageVersion = AnyRecord.and(
|
|
5071
|
-
|
|
5085
|
+
z164.object({
|
|
5072
5086
|
dist: NpmPackageVersionDist
|
|
5073
5087
|
})
|
|
5074
5088
|
);
|
|
5075
5089
|
var NpmPackage = AnyRecord.and(
|
|
5076
|
-
|
|
5077
|
-
_id:
|
|
5078
|
-
name:
|
|
5090
|
+
z164.object({
|
|
5091
|
+
_id: z164.string(),
|
|
5092
|
+
name: z164.string(),
|
|
5079
5093
|
// e.g. "latest": "1.2.3"
|
|
5080
|
-
"dist-tags":
|
|
5094
|
+
"dist-tags": z164.record(z164.string(), z164.string()),
|
|
5081
5095
|
// "1.2.3": {...}
|
|
5082
|
-
versions:
|
|
5096
|
+
versions: z164.record(NpmPackageVersion)
|
|
5083
5097
|
})
|
|
5084
5098
|
);
|
|
5085
5099
|
|
|
5086
5100
|
// src/npm/npm-proxy-token-payload.ts
|
|
5087
|
-
import { z as
|
|
5088
|
-
var NpmProxyTokenPayload =
|
|
5089
|
-
npmProxyRegistryConfigId:
|
|
5101
|
+
import { z as z165 } from "zod";
|
|
5102
|
+
var NpmProxyTokenPayload = z165.object({
|
|
5103
|
+
npmProxyRegistryConfigId: z165.string()
|
|
5090
5104
|
});
|
|
5091
5105
|
|
|
5092
5106
|
// src/tokens/personal-access-token.ts
|
|
5093
|
-
import { z as
|
|
5107
|
+
import { z as z173 } from "zod";
|
|
5094
5108
|
|
|
5095
5109
|
// src/workspace/user-invite.ts
|
|
5096
|
-
import { z as
|
|
5110
|
+
import { z as z167 } from "zod";
|
|
5097
5111
|
|
|
5098
5112
|
// src/workspace/workspace-role.ts
|
|
5099
|
-
import { z as
|
|
5100
|
-
var WorkspaceRoleSchema =
|
|
5113
|
+
import { z as z166 } from "zod";
|
|
5114
|
+
var WorkspaceRoleSchema = z166.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
5101
5115
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
5102
5116
|
|
|
5103
5117
|
// src/workspace/user-invite.ts
|
|
5104
5118
|
var MAX_MEMBERS_COUNT = 100;
|
|
5105
|
-
var UserInvite =
|
|
5106
|
-
email:
|
|
5119
|
+
var UserInvite = z167.object({
|
|
5120
|
+
email: z167.string().email().trim().transform((value) => value.toLowerCase()),
|
|
5107
5121
|
role: WorkspaceRoleSchema
|
|
5108
5122
|
});
|
|
5109
|
-
var UserInvites =
|
|
5123
|
+
var UserInvites = z167.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
5110
5124
|
|
|
5111
5125
|
// src/workspace/workspace-configuration.ts
|
|
5112
|
-
import { z as
|
|
5113
|
-
var WorkspaceConfigurationUpdate =
|
|
5114
|
-
id:
|
|
5126
|
+
import { z as z168 } from "zod";
|
|
5127
|
+
var WorkspaceConfigurationUpdate = z168.object({
|
|
5128
|
+
id: z168.string(),
|
|
5115
5129
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
5116
5130
|
sso: SsoProvider.optional(),
|
|
5117
5131
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -5119,32 +5133,32 @@ var WorkspaceConfigurationUpdate = z167.object({
|
|
|
5119
5133
|
});
|
|
5120
5134
|
|
|
5121
5135
|
// src/workspace/workspace-context.ts
|
|
5122
|
-
import { z as
|
|
5123
|
-
var WorkspaceContext =
|
|
5124
|
-
workspaceId:
|
|
5136
|
+
import { z as z169 } from "zod";
|
|
5137
|
+
var WorkspaceContext = z169.object({
|
|
5138
|
+
workspaceId: z169.string(),
|
|
5125
5139
|
product: ProductCodeSchema,
|
|
5126
5140
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
5127
|
-
publicDesignSystem:
|
|
5141
|
+
publicDesignSystem: z169.boolean().optional()
|
|
5128
5142
|
});
|
|
5129
5143
|
|
|
5130
5144
|
// src/workspace/workspace-create.ts
|
|
5131
|
-
import { z as
|
|
5145
|
+
import { z as z170 } from "zod";
|
|
5132
5146
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
5133
5147
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
5134
5148
|
var HANDLE_MIN_LENGTH = 2;
|
|
5135
5149
|
var HANDLE_MAX_LENGTH = 64;
|
|
5136
|
-
var CreateWorkspaceInput =
|
|
5137
|
-
name:
|
|
5150
|
+
var CreateWorkspaceInput = z170.object({
|
|
5151
|
+
name: z170.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
5138
5152
|
product: ProductCodeSchema,
|
|
5139
|
-
priceId:
|
|
5140
|
-
billingEmail:
|
|
5141
|
-
handle:
|
|
5153
|
+
priceId: z170.string(),
|
|
5154
|
+
billingEmail: z170.string().email().optional(),
|
|
5155
|
+
handle: z170.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
5142
5156
|
invites: UserInvites.optional(),
|
|
5143
|
-
promoCode:
|
|
5157
|
+
promoCode: z170.string().optional(),
|
|
5144
5158
|
status: InternalStatusSchema.optional(),
|
|
5145
5159
|
planInterval: BillingIntervalSchema.optional(),
|
|
5146
|
-
seats:
|
|
5147
|
-
seatLimit:
|
|
5160
|
+
seats: z170.number().optional(),
|
|
5161
|
+
seatLimit: z170.number().optional(),
|
|
5148
5162
|
card: CardSchema.optional(),
|
|
5149
5163
|
sso: SsoProvider.optional(),
|
|
5150
5164
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -5152,47 +5166,47 @@ var CreateWorkspaceInput = z169.object({
|
|
|
5152
5166
|
});
|
|
5153
5167
|
|
|
5154
5168
|
// src/workspace/workspace-invitations.ts
|
|
5155
|
-
import { z as z170 } from "zod";
|
|
5156
|
-
var WorkspaceInvitation = z170.object({
|
|
5157
|
-
id: z170.string(),
|
|
5158
|
-
email: z170.string().email(),
|
|
5159
|
-
createdAt: z170.coerce.date(),
|
|
5160
|
-
resentAt: z170.coerce.date().nullish(),
|
|
5161
|
-
role: z170.nativeEnum(WorkspaceRole),
|
|
5162
|
-
workspaceId: z170.string(),
|
|
5163
|
-
invitedBy: z170.string()
|
|
5164
|
-
});
|
|
5165
|
-
|
|
5166
|
-
// src/workspace/workspace-membership.ts
|
|
5167
5169
|
import { z as z171 } from "zod";
|
|
5168
|
-
var
|
|
5170
|
+
var WorkspaceInvitation = z171.object({
|
|
5169
5171
|
id: z171.string(),
|
|
5170
|
-
|
|
5172
|
+
email: z171.string().email(),
|
|
5173
|
+
createdAt: z171.coerce.date(),
|
|
5174
|
+
resentAt: z171.coerce.date().nullish(),
|
|
5175
|
+
role: z171.nativeEnum(WorkspaceRole),
|
|
5171
5176
|
workspaceId: z171.string(),
|
|
5172
|
-
|
|
5177
|
+
invitedBy: z171.string()
|
|
5178
|
+
});
|
|
5179
|
+
|
|
5180
|
+
// src/workspace/workspace-membership.ts
|
|
5181
|
+
import { z as z172 } from "zod";
|
|
5182
|
+
var WorkspaceMembership = z172.object({
|
|
5183
|
+
id: z172.string(),
|
|
5184
|
+
userId: z172.string(),
|
|
5185
|
+
workspaceId: z172.string(),
|
|
5186
|
+
workspaceRole: z172.nativeEnum(WorkspaceRole),
|
|
5173
5187
|
notificationSettings: UserNotificationSettings
|
|
5174
5188
|
});
|
|
5175
|
-
var UpdateMembershipRolesInput =
|
|
5176
|
-
members:
|
|
5177
|
-
|
|
5178
|
-
userId:
|
|
5179
|
-
role:
|
|
5189
|
+
var UpdateMembershipRolesInput = z172.object({
|
|
5190
|
+
members: z172.array(
|
|
5191
|
+
z172.object({
|
|
5192
|
+
userId: z172.string(),
|
|
5193
|
+
role: z172.nativeEnum(WorkspaceRole)
|
|
5180
5194
|
})
|
|
5181
5195
|
)
|
|
5182
5196
|
});
|
|
5183
5197
|
|
|
5184
5198
|
// src/tokens/personal-access-token.ts
|
|
5185
|
-
var PersonalAccessToken =
|
|
5186
|
-
id:
|
|
5187
|
-
userId:
|
|
5188
|
-
workspaceId:
|
|
5199
|
+
var PersonalAccessToken = z173.object({
|
|
5200
|
+
id: z173.string(),
|
|
5201
|
+
userId: z173.string(),
|
|
5202
|
+
workspaceId: z173.string().optional(),
|
|
5189
5203
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5190
|
-
name:
|
|
5191
|
-
hidden:
|
|
5192
|
-
token:
|
|
5193
|
-
scope:
|
|
5194
|
-
createdAt:
|
|
5195
|
-
expireAt:
|
|
5204
|
+
name: z173.string(),
|
|
5205
|
+
hidden: z173.boolean(),
|
|
5206
|
+
token: z173.string(),
|
|
5207
|
+
scope: z173.string().optional(),
|
|
5208
|
+
createdAt: z173.coerce.date(),
|
|
5209
|
+
expireAt: z173.coerce.date().optional()
|
|
5196
5210
|
});
|
|
5197
5211
|
export {
|
|
5198
5212
|
Address,
|
|
@@ -5278,6 +5292,7 @@ export {
|
|
|
5278
5292
|
DesignSystemCreateInput,
|
|
5279
5293
|
DesignSystemDump,
|
|
5280
5294
|
DesignSystemElementExportProps,
|
|
5295
|
+
DesignSystemMembership,
|
|
5281
5296
|
DesignSystemSwitcher,
|
|
5282
5297
|
DesignSystemUpdateInput,
|
|
5283
5298
|
DesignSystemVersion,
|
|
@@ -5607,6 +5622,7 @@ export {
|
|
|
5607
5622
|
PageBlockItemSandboxValue,
|
|
5608
5623
|
PageBlockItemSingleSelectValue,
|
|
5609
5624
|
PageBlockItemStorybookValue,
|
|
5625
|
+
PageBlockItemSwatch,
|
|
5610
5626
|
PageBlockItemTableCell,
|
|
5611
5627
|
PageBlockItemTableImageNode,
|
|
5612
5628
|
PageBlockItemTableNode,
|