@supernova-studio/client 0.46.0 → 0.46.4
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 +453 -88
- package/dist/index.d.ts +453 -88
- package/dist/index.js +182 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1030 -940
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/src/api/conversion/integrations/integration.ts +3 -2
- package/src/api/dto/design-systems/version.ts +17 -1
- package/src/api/dto/elements/figma-nodes/figma-node.ts +9 -0
- package/src/api/dto/workspaces/integrations.ts +3 -2
- package/src/api/payloads/design-systems/version.ts +4 -4
- package/src/yjs/design-system-content/item-title.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -109,20 +109,20 @@ import { z as z98 } from "zod";
|
|
|
109
109
|
import { z as z99 } from "zod";
|
|
110
110
|
import { z as z100 } from "zod";
|
|
111
111
|
import { z as z101 } from "zod";
|
|
112
|
+
import { z as z111 } from "zod";
|
|
112
113
|
import { z as z102 } from "zod";
|
|
113
114
|
import { z as z103 } from "zod";
|
|
114
|
-
import { z as z104 } from "zod";
|
|
115
|
-
import { z as z114 } from "zod";
|
|
116
115
|
import { z as z105 } from "zod";
|
|
116
|
+
import { z as z104 } from "zod";
|
|
117
|
+
import { z as z107 } from "zod";
|
|
117
118
|
import { z as z106 } from "zod";
|
|
119
|
+
import IPCIDR from "ip-cidr";
|
|
118
120
|
import { z as z108 } from "zod";
|
|
119
|
-
import { z as z107 } from "zod";
|
|
120
|
-
import { z as z110 } from "zod";
|
|
121
121
|
import { z as z109 } from "zod";
|
|
122
|
-
import
|
|
123
|
-
import { z as z111 } from "zod";
|
|
122
|
+
import { z as z110 } from "zod";
|
|
124
123
|
import { z as z112 } from "zod";
|
|
125
124
|
import { z as z113 } from "zod";
|
|
125
|
+
import { z as z114 } from "zod";
|
|
126
126
|
import { z as z115 } from "zod";
|
|
127
127
|
import { z as z116 } from "zod";
|
|
128
128
|
import { z as z117 } from "zod";
|
|
@@ -131,21 +131,21 @@ import { z as z119 } from "zod";
|
|
|
131
131
|
import { z as z120 } from "zod";
|
|
132
132
|
import { z as z121 } from "zod";
|
|
133
133
|
import { z as z122 } from "zod";
|
|
134
|
+
import { z as z125 } from "zod";
|
|
134
135
|
import { z as z123 } from "zod";
|
|
135
|
-
import { z as z126 } from "zod";
|
|
136
136
|
import { z as z124 } from "zod";
|
|
137
|
-
import { z as
|
|
137
|
+
import { z as z126 } from "zod";
|
|
138
|
+
import { z as z133 } from "zod";
|
|
138
139
|
import { z as z127 } from "zod";
|
|
139
|
-
import { z as z134 } from "zod";
|
|
140
140
|
import { z as z128 } from "zod";
|
|
141
141
|
import { z as z129 } from "zod";
|
|
142
142
|
import { z as z130 } from "zod";
|
|
143
143
|
import { z as z131 } from "zod";
|
|
144
144
|
import { z as z132 } from "zod";
|
|
145
|
-
import { z as
|
|
145
|
+
import { z as z134 } from "zod";
|
|
146
|
+
import { z as z136 } from "zod";
|
|
146
147
|
import { z as z135 } from "zod";
|
|
147
148
|
import { z as z137 } from "zod";
|
|
148
|
-
import { z as z136 } from "zod";
|
|
149
149
|
import { z as z138 } from "zod";
|
|
150
150
|
import { z as z139 } from "zod";
|
|
151
151
|
import { z as z140 } from "zod";
|
|
@@ -153,6 +153,9 @@ import { z as z141 } from "zod";
|
|
|
153
153
|
import { z as z142 } from "zod";
|
|
154
154
|
import { z as z143 } from "zod";
|
|
155
155
|
import { z as z144 } from "zod";
|
|
156
|
+
import { z as z145 } from "zod";
|
|
157
|
+
import { z as z146 } from "zod";
|
|
158
|
+
import { z as z147 } from "zod";
|
|
156
159
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
157
160
|
var PluginOAuthRequestSchema = z.object({
|
|
158
161
|
id: z.string(),
|
|
@@ -811,6 +814,7 @@ var PageBlockShortcut = z34.object({
|
|
|
811
814
|
description: nullishToOptional(z34.string()),
|
|
812
815
|
asset: nullishToOptional(PageBlockAsset),
|
|
813
816
|
documentationItemId: nullishToOptional(z34.string()),
|
|
817
|
+
pageHeadingId: nullishToOptional(z34.string()),
|
|
814
818
|
url: nullishToOptional(z34.string()),
|
|
815
819
|
openInNewTab: nullishToOptional(z34.boolean()),
|
|
816
820
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
@@ -1499,7 +1503,8 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
1499
1503
|
data: FigmaFileStructureData
|
|
1500
1504
|
});
|
|
1501
1505
|
var FigmaNodeReferenceOrigin = z74.object({
|
|
1502
|
-
sourceId: z74.string()
|
|
1506
|
+
sourceId: z74.string(),
|
|
1507
|
+
parentName: z74.string().optional()
|
|
1503
1508
|
});
|
|
1504
1509
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1505
1510
|
data: FigmaNodeReferenceData,
|
|
@@ -2217,382 +2222,392 @@ var DocumentationPage = z98.object({
|
|
|
2217
2222
|
createdAt: z98.coerce.date(),
|
|
2218
2223
|
updatedAt: z98.coerce.date()
|
|
2219
2224
|
});
|
|
2220
|
-
var
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
routingVersion: z99.string()
|
|
2226
|
-
});
|
|
2227
|
-
var DesignSystemVersionRoomInitialState = z99.object({
|
|
2228
|
-
pages: z99.array(DocumentationPageV2),
|
|
2229
|
-
groups: z99.array(ElementGroup),
|
|
2230
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2231
|
-
});
|
|
2232
|
-
var DesignSystemVersionRoomUpdate = z99.object({
|
|
2233
|
-
pages: z99.array(DocumentationPageV2),
|
|
2234
|
-
groups: z99.array(ElementGroup),
|
|
2235
|
-
deletedPageIds: z99.array(z99.string()),
|
|
2236
|
-
deletedGroupIds: z99.array(z99.string())
|
|
2237
|
-
});
|
|
2238
|
-
var DocumentationPageRoom = Entity.extend({
|
|
2239
|
-
designSystemVersionId: z100.string(),
|
|
2240
|
-
documentationPageId: z100.string(),
|
|
2241
|
-
liveblocksId: z100.string(),
|
|
2242
|
-
isDirty: z100.boolean()
|
|
2243
|
-
});
|
|
2244
|
-
var DocumentationPageRoomState = z100.object({
|
|
2245
|
-
pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2246
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
2247
|
-
});
|
|
2248
|
-
var DocumentationPageRoomRoomUpdate = z100.object({
|
|
2249
|
-
page: DocumentationPageV2,
|
|
2250
|
-
pageParent: ElementGroup
|
|
2251
|
-
});
|
|
2252
|
-
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
2253
|
-
pageItems: z100.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2254
|
-
blockDefinitions: z100.array(PageBlockDefinition)
|
|
2255
|
-
});
|
|
2256
|
-
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2257
|
-
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2258
|
-
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2259
|
-
return RoomTypeEnum2;
|
|
2260
|
-
})(RoomTypeEnum || {});
|
|
2261
|
-
var RoomTypeSchema = z101.nativeEnum(RoomTypeEnum);
|
|
2262
|
-
var RoomType = RoomTypeSchema.enum;
|
|
2263
|
-
var ElementViewBaseColumnType = z102.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2264
|
-
var ElementViewColumnType = z102.union([
|
|
2265
|
-
z102.literal("BaseProperty"),
|
|
2266
|
-
z102.literal("PropertyDefinition"),
|
|
2267
|
-
z102.literal("Theme")
|
|
2225
|
+
var ElementViewBaseColumnType = z99.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2226
|
+
var ElementViewColumnType = z99.union([
|
|
2227
|
+
z99.literal("BaseProperty"),
|
|
2228
|
+
z99.literal("PropertyDefinition"),
|
|
2229
|
+
z99.literal("Theme")
|
|
2268
2230
|
]);
|
|
2269
|
-
var ElementViewColumnSharedAttributes =
|
|
2270
|
-
id:
|
|
2271
|
-
persistentId:
|
|
2272
|
-
elementDataViewId:
|
|
2273
|
-
sortPosition:
|
|
2274
|
-
width:
|
|
2231
|
+
var ElementViewColumnSharedAttributes = z99.object({
|
|
2232
|
+
id: z99.string(),
|
|
2233
|
+
persistentId: z99.string(),
|
|
2234
|
+
elementDataViewId: z99.string(),
|
|
2235
|
+
sortPosition: z99.number(),
|
|
2236
|
+
width: z99.number()
|
|
2275
2237
|
});
|
|
2276
2238
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2277
|
-
type:
|
|
2239
|
+
type: z99.literal("BaseProperty"),
|
|
2278
2240
|
basePropertyType: ElementViewBaseColumnType
|
|
2279
2241
|
});
|
|
2280
2242
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2281
|
-
type:
|
|
2282
|
-
propertyDefinitionId:
|
|
2243
|
+
type: z99.literal("PropertyDefinition"),
|
|
2244
|
+
propertyDefinitionId: z99.string()
|
|
2283
2245
|
});
|
|
2284
2246
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2285
|
-
type:
|
|
2286
|
-
themeId:
|
|
2247
|
+
type: z99.literal("Theme"),
|
|
2248
|
+
themeId: z99.string()
|
|
2287
2249
|
});
|
|
2288
|
-
var ElementViewColumn =
|
|
2250
|
+
var ElementViewColumn = z99.discriminatedUnion("type", [
|
|
2289
2251
|
ElementViewBasePropertyColumn,
|
|
2290
2252
|
ElementViewPropertyDefinitionColumn,
|
|
2291
2253
|
ElementViewThemeColumn
|
|
2292
2254
|
]);
|
|
2293
|
-
var ElementView =
|
|
2294
|
-
id:
|
|
2295
|
-
persistentId:
|
|
2296
|
-
designSystemVersionId:
|
|
2297
|
-
name:
|
|
2298
|
-
description:
|
|
2255
|
+
var ElementView = z100.object({
|
|
2256
|
+
id: z100.string(),
|
|
2257
|
+
persistentId: z100.string(),
|
|
2258
|
+
designSystemVersionId: z100.string(),
|
|
2259
|
+
name: z100.string(),
|
|
2260
|
+
description: z100.string(),
|
|
2299
2261
|
targetElementType: ElementPropertyTargetType,
|
|
2300
|
-
isDefault:
|
|
2301
|
-
});
|
|
2302
|
-
var Brand =
|
|
2303
|
-
id:
|
|
2304
|
-
designSystemVersionId:
|
|
2305
|
-
persistentId:
|
|
2306
|
-
name:
|
|
2307
|
-
description:
|
|
2308
|
-
});
|
|
2309
|
-
var NpmRegistryAuthType =
|
|
2310
|
-
var NpmRegistryType =
|
|
2311
|
-
var NpmRegistryBasicAuthConfig =
|
|
2312
|
-
authType:
|
|
2313
|
-
username:
|
|
2314
|
-
password:
|
|
2315
|
-
});
|
|
2316
|
-
var NpmRegistryBearerAuthConfig =
|
|
2317
|
-
authType:
|
|
2318
|
-
accessToken:
|
|
2319
|
-
});
|
|
2320
|
-
var NpmRegistryNoAuthConfig =
|
|
2321
|
-
authType:
|
|
2322
|
-
});
|
|
2323
|
-
var NpmRegistrCustomAuthConfig =
|
|
2324
|
-
authType:
|
|
2325
|
-
authHeaderName:
|
|
2326
|
-
authHeaderValue:
|
|
2327
|
-
});
|
|
2328
|
-
var NpmRegistryAuthConfig =
|
|
2262
|
+
isDefault: z100.boolean()
|
|
2263
|
+
});
|
|
2264
|
+
var Brand = z101.object({
|
|
2265
|
+
id: z101.string(),
|
|
2266
|
+
designSystemVersionId: z101.string(),
|
|
2267
|
+
persistentId: z101.string(),
|
|
2268
|
+
name: z101.string(),
|
|
2269
|
+
description: z101.string()
|
|
2270
|
+
});
|
|
2271
|
+
var NpmRegistryAuthType = z102.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2272
|
+
var NpmRegistryType = z102.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2273
|
+
var NpmRegistryBasicAuthConfig = z102.object({
|
|
2274
|
+
authType: z102.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2275
|
+
username: z102.string(),
|
|
2276
|
+
password: z102.string()
|
|
2277
|
+
});
|
|
2278
|
+
var NpmRegistryBearerAuthConfig = z102.object({
|
|
2279
|
+
authType: z102.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2280
|
+
accessToken: z102.string()
|
|
2281
|
+
});
|
|
2282
|
+
var NpmRegistryNoAuthConfig = z102.object({
|
|
2283
|
+
authType: z102.literal(NpmRegistryAuthType.Enum.None)
|
|
2284
|
+
});
|
|
2285
|
+
var NpmRegistrCustomAuthConfig = z102.object({
|
|
2286
|
+
authType: z102.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2287
|
+
authHeaderName: z102.string(),
|
|
2288
|
+
authHeaderValue: z102.string()
|
|
2289
|
+
});
|
|
2290
|
+
var NpmRegistryAuthConfig = z102.discriminatedUnion("authType", [
|
|
2329
2291
|
NpmRegistryBasicAuthConfig,
|
|
2330
2292
|
NpmRegistryBearerAuthConfig,
|
|
2331
2293
|
NpmRegistryNoAuthConfig,
|
|
2332
2294
|
NpmRegistrCustomAuthConfig
|
|
2333
2295
|
]);
|
|
2334
|
-
var NpmRegistryConfigBase =
|
|
2296
|
+
var NpmRegistryConfigBase = z102.object({
|
|
2335
2297
|
registryType: NpmRegistryType,
|
|
2336
|
-
enabledScopes:
|
|
2337
|
-
customRegistryUrl:
|
|
2338
|
-
bypassProxy:
|
|
2339
|
-
npmProxyRegistryConfigId:
|
|
2340
|
-
npmProxyVersion:
|
|
2298
|
+
enabledScopes: z102.array(z102.string()),
|
|
2299
|
+
customRegistryUrl: z102.string().optional(),
|
|
2300
|
+
bypassProxy: z102.boolean().default(false),
|
|
2301
|
+
npmProxyRegistryConfigId: z102.string().optional(),
|
|
2302
|
+
npmProxyVersion: z102.number().optional()
|
|
2341
2303
|
});
|
|
2342
2304
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2343
|
-
var SsoProvider =
|
|
2344
|
-
providerId:
|
|
2345
|
-
defaultAutoInviteValue:
|
|
2346
|
-
autoInviteDomains:
|
|
2347
|
-
skipDocsSupernovaLogin:
|
|
2348
|
-
areInvitesDisabled:
|
|
2349
|
-
isTestMode:
|
|
2350
|
-
emailDomains:
|
|
2351
|
-
metadataXml:
|
|
2352
|
-
});
|
|
2353
|
-
var WorkspaceRoleSchema =
|
|
2305
|
+
var SsoProvider = z103.object({
|
|
2306
|
+
providerId: z103.string(),
|
|
2307
|
+
defaultAutoInviteValue: z103.boolean(),
|
|
2308
|
+
autoInviteDomains: z103.record(z103.string(), z103.boolean()),
|
|
2309
|
+
skipDocsSupernovaLogin: z103.boolean(),
|
|
2310
|
+
areInvitesDisabled: z103.boolean(),
|
|
2311
|
+
isTestMode: z103.boolean(),
|
|
2312
|
+
emailDomains: z103.array(z103.string()),
|
|
2313
|
+
metadataXml: z103.string().nullish()
|
|
2314
|
+
});
|
|
2315
|
+
var WorkspaceRoleSchema = z104.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
2354
2316
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
2355
2317
|
var MAX_MEMBERS_COUNT = 100;
|
|
2356
|
-
var UserInvite =
|
|
2357
|
-
email:
|
|
2318
|
+
var UserInvite = z105.object({
|
|
2319
|
+
email: z105.string().email().trim().transform((value) => value.toLowerCase()),
|
|
2358
2320
|
role: WorkspaceRoleSchema
|
|
2359
2321
|
});
|
|
2360
|
-
var UserInvites =
|
|
2322
|
+
var UserInvites = z105.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
2361
2323
|
var isValidCIDR = (value) => {
|
|
2362
2324
|
return IPCIDR.isValidAddress(value);
|
|
2363
2325
|
};
|
|
2364
|
-
var WorkspaceIpWhitelistEntry =
|
|
2365
|
-
isEnabled:
|
|
2366
|
-
name:
|
|
2367
|
-
range:
|
|
2326
|
+
var WorkspaceIpWhitelistEntry = z106.object({
|
|
2327
|
+
isEnabled: z106.boolean(),
|
|
2328
|
+
name: z106.string(),
|
|
2329
|
+
range: z106.string().refine(isValidCIDR, {
|
|
2368
2330
|
message: "Invalid IP CIDR"
|
|
2369
2331
|
})
|
|
2370
2332
|
});
|
|
2371
|
-
var WorkspaceIpSettings =
|
|
2372
|
-
isEnabledForCloud:
|
|
2373
|
-
isEnabledForDocs:
|
|
2374
|
-
entries:
|
|
2333
|
+
var WorkspaceIpSettings = z106.object({
|
|
2334
|
+
isEnabledForCloud: z106.boolean(),
|
|
2335
|
+
isEnabledForDocs: z106.boolean(),
|
|
2336
|
+
entries: z106.array(WorkspaceIpWhitelistEntry)
|
|
2375
2337
|
});
|
|
2376
|
-
var WorkspaceProfile =
|
|
2377
|
-
name:
|
|
2378
|
-
handle:
|
|
2379
|
-
color:
|
|
2380
|
-
avatar: nullishToOptional(
|
|
2338
|
+
var WorkspaceProfile = z106.object({
|
|
2339
|
+
name: z106.string(),
|
|
2340
|
+
handle: z106.string(),
|
|
2341
|
+
color: z106.string(),
|
|
2342
|
+
avatar: nullishToOptional(z106.string()),
|
|
2381
2343
|
billingDetails: nullishToOptional(BillingDetails)
|
|
2382
2344
|
});
|
|
2383
|
-
var Workspace =
|
|
2384
|
-
id:
|
|
2345
|
+
var Workspace = z106.object({
|
|
2346
|
+
id: z106.string(),
|
|
2385
2347
|
profile: WorkspaceProfile,
|
|
2386
2348
|
subscription: Subscription,
|
|
2387
2349
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2388
2350
|
sso: nullishToOptional(SsoProvider),
|
|
2389
2351
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
|
|
2390
|
-
designSystems:
|
|
2352
|
+
designSystems: z106.array(DesignSystem).nullish()
|
|
2391
2353
|
});
|
|
2392
|
-
var WorkspaceWithDesignSystems =
|
|
2354
|
+
var WorkspaceWithDesignSystems = z106.object({
|
|
2393
2355
|
workspace: Workspace,
|
|
2394
|
-
designSystems:
|
|
2356
|
+
designSystems: z106.array(DesignSystem)
|
|
2395
2357
|
});
|
|
2396
|
-
var WorkspaceContext =
|
|
2397
|
-
workspaceId:
|
|
2358
|
+
var WorkspaceContext = z107.object({
|
|
2359
|
+
workspaceId: z107.string(),
|
|
2398
2360
|
product: ProductCodeSchema,
|
|
2399
2361
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2400
|
-
publicDesignSystem:
|
|
2362
|
+
publicDesignSystem: z107.boolean().optional()
|
|
2401
2363
|
});
|
|
2402
2364
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
2403
2365
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
2404
2366
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
2405
2367
|
var HANDLE_MIN_LENGTH = 2;
|
|
2406
2368
|
var HANDLE_MAX_LENGTH = 64;
|
|
2407
|
-
var CreateWorkspaceInput =
|
|
2408
|
-
name:
|
|
2369
|
+
var CreateWorkspaceInput = z108.object({
|
|
2370
|
+
name: z108.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
2409
2371
|
product: ProductCodeSchema,
|
|
2410
|
-
priceId:
|
|
2411
|
-
billingEmail:
|
|
2412
|
-
handle:
|
|
2372
|
+
priceId: z108.string(),
|
|
2373
|
+
billingEmail: z108.string().email().optional(),
|
|
2374
|
+
handle: z108.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
2413
2375
|
invites: UserInvites.optional(),
|
|
2414
|
-
promoCode:
|
|
2376
|
+
promoCode: z108.string().optional(),
|
|
2415
2377
|
status: InternalStatusSchema.optional(),
|
|
2416
2378
|
planInterval: BillingIntervalSchema.optional(),
|
|
2417
|
-
seats:
|
|
2418
|
-
seatLimit:
|
|
2379
|
+
seats: z108.number().optional(),
|
|
2380
|
+
seatLimit: z108.number().optional(),
|
|
2419
2381
|
card: CardSchema.optional(),
|
|
2420
2382
|
sso: SsoProvider.optional(),
|
|
2421
2383
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
2422
2384
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
2423
2385
|
});
|
|
2424
|
-
var WorkspaceInvitation =
|
|
2425
|
-
id:
|
|
2426
|
-
email:
|
|
2427
|
-
createdAt:
|
|
2428
|
-
resentAt:
|
|
2429
|
-
role:
|
|
2430
|
-
workspaceId:
|
|
2431
|
-
invitedBy:
|
|
2432
|
-
});
|
|
2433
|
-
var WorkspaceMembership =
|
|
2434
|
-
id:
|
|
2435
|
-
userId:
|
|
2436
|
-
workspaceId:
|
|
2437
|
-
workspaceRole:
|
|
2438
|
-
});
|
|
2439
|
-
var UpdateMembershipRolesInput =
|
|
2440
|
-
members:
|
|
2441
|
-
|
|
2442
|
-
userId:
|
|
2443
|
-
role:
|
|
2386
|
+
var WorkspaceInvitation = z109.object({
|
|
2387
|
+
id: z109.string(),
|
|
2388
|
+
email: z109.string().email(),
|
|
2389
|
+
createdAt: z109.coerce.date(),
|
|
2390
|
+
resentAt: z109.coerce.date().nullish(),
|
|
2391
|
+
role: z109.nativeEnum(WorkspaceRole),
|
|
2392
|
+
workspaceId: z109.string(),
|
|
2393
|
+
invitedBy: z109.string()
|
|
2394
|
+
});
|
|
2395
|
+
var WorkspaceMembership = z110.object({
|
|
2396
|
+
id: z110.string(),
|
|
2397
|
+
userId: z110.string(),
|
|
2398
|
+
workspaceId: z110.string(),
|
|
2399
|
+
workspaceRole: z110.nativeEnum(WorkspaceRole)
|
|
2400
|
+
});
|
|
2401
|
+
var UpdateMembershipRolesInput = z110.object({
|
|
2402
|
+
members: z110.array(
|
|
2403
|
+
z110.object({
|
|
2404
|
+
userId: z110.string(),
|
|
2405
|
+
role: z110.nativeEnum(WorkspaceRole)
|
|
2444
2406
|
})
|
|
2445
2407
|
)
|
|
2446
2408
|
});
|
|
2447
|
-
var DesignSystemSwitcher =
|
|
2448
|
-
isEnabled:
|
|
2449
|
-
designSystemIds:
|
|
2450
|
-
});
|
|
2451
|
-
var DesignSystem =
|
|
2452
|
-
id:
|
|
2453
|
-
workspaceId:
|
|
2454
|
-
name:
|
|
2455
|
-
description:
|
|
2456
|
-
docExporterId: nullishToOptional(
|
|
2457
|
-
docSlug:
|
|
2458
|
-
docUserSlug: nullishToOptional(
|
|
2459
|
-
docSlugDeprecated:
|
|
2460
|
-
isPublic:
|
|
2461
|
-
isMultibrand:
|
|
2462
|
-
docViewUrl: nullishToOptional(
|
|
2463
|
-
basePrefixes:
|
|
2409
|
+
var DesignSystemSwitcher = z111.object({
|
|
2410
|
+
isEnabled: z111.boolean(),
|
|
2411
|
+
designSystemIds: z111.array(z111.string())
|
|
2412
|
+
});
|
|
2413
|
+
var DesignSystem = z111.object({
|
|
2414
|
+
id: z111.string(),
|
|
2415
|
+
workspaceId: z111.string(),
|
|
2416
|
+
name: z111.string(),
|
|
2417
|
+
description: z111.string(),
|
|
2418
|
+
docExporterId: nullishToOptional(z111.string()),
|
|
2419
|
+
docSlug: z111.string(),
|
|
2420
|
+
docUserSlug: nullishToOptional(z111.string()),
|
|
2421
|
+
docSlugDeprecated: z111.string(),
|
|
2422
|
+
isPublic: z111.boolean(),
|
|
2423
|
+
isMultibrand: z111.boolean(),
|
|
2424
|
+
docViewUrl: nullishToOptional(z111.string()),
|
|
2425
|
+
basePrefixes: z111.array(z111.string()),
|
|
2464
2426
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2465
|
-
createdAt:
|
|
2466
|
-
updatedAt:
|
|
2427
|
+
createdAt: z111.coerce.date(),
|
|
2428
|
+
updatedAt: z111.coerce.date()
|
|
2467
2429
|
});
|
|
2468
|
-
var DesignSystemWithWorkspace =
|
|
2430
|
+
var DesignSystemWithWorkspace = z111.object({
|
|
2469
2431
|
designSystem: DesignSystem,
|
|
2470
2432
|
workspace: Workspace
|
|
2471
2433
|
});
|
|
2472
2434
|
var DS_NAME_MIN_LENGTH = 2;
|
|
2473
2435
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2474
2436
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2475
|
-
var DesignSystemCreateInputMetadata =
|
|
2476
|
-
name:
|
|
2477
|
-
description:
|
|
2437
|
+
var DesignSystemCreateInputMetadata = z112.object({
|
|
2438
|
+
name: z112.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2439
|
+
description: z112.string().max(DS_DESC_MAX_LENGTH).trim()
|
|
2478
2440
|
});
|
|
2479
|
-
var DesignSystemCreateInput =
|
|
2441
|
+
var DesignSystemCreateInput = z112.object({
|
|
2480
2442
|
meta: DesignSystemCreateInputMetadata,
|
|
2481
|
-
workspaceId:
|
|
2482
|
-
isPublic:
|
|
2483
|
-
basePrefixes:
|
|
2484
|
-
docUserSlug:
|
|
2485
|
-
source:
|
|
2443
|
+
workspaceId: z112.string(),
|
|
2444
|
+
isPublic: z112.boolean().optional(),
|
|
2445
|
+
basePrefixes: z112.array(z112.string()).optional(),
|
|
2446
|
+
docUserSlug: z112.string().nullish().optional(),
|
|
2447
|
+
source: z112.array(z112.string()).optional()
|
|
2486
2448
|
});
|
|
2487
2449
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2488
2450
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2489
2451
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2490
|
-
var DesignSystemUpdateInputMetadata =
|
|
2491
|
-
name:
|
|
2492
|
-
description:
|
|
2452
|
+
var DesignSystemUpdateInputMetadata = z113.object({
|
|
2453
|
+
name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2454
|
+
description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2493
2455
|
});
|
|
2494
|
-
var DesignSystemUpdateInput =
|
|
2456
|
+
var DesignSystemUpdateInput = z113.object({
|
|
2495
2457
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2496
|
-
workspaceId:
|
|
2497
|
-
isPublic:
|
|
2498
|
-
basePrefixes:
|
|
2499
|
-
docUserSlug:
|
|
2500
|
-
source:
|
|
2501
|
-
name:
|
|
2502
|
-
description:
|
|
2503
|
-
docExporterId:
|
|
2504
|
-
});
|
|
2505
|
-
var ExporterPropertyImageValue =
|
|
2458
|
+
workspaceId: z113.string().optional(),
|
|
2459
|
+
isPublic: z113.boolean().optional(),
|
|
2460
|
+
basePrefixes: z113.array(z113.string()).optional(),
|
|
2461
|
+
docUserSlug: z113.string().nullish().optional(),
|
|
2462
|
+
source: z113.array(z113.string()).optional(),
|
|
2463
|
+
name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2464
|
+
description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2465
|
+
docExporterId: z113.string().optional()
|
|
2466
|
+
});
|
|
2467
|
+
var ExporterPropertyImageValue = z114.object({
|
|
2506
2468
|
asset: PageBlockAsset.optional(),
|
|
2507
|
-
assetId:
|
|
2508
|
-
assetUrl:
|
|
2509
|
-
});
|
|
2510
|
-
var ExporterPropertyValue =
|
|
2511
|
-
key:
|
|
2512
|
-
value:
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2469
|
+
assetId: z114.string().optional(),
|
|
2470
|
+
assetUrl: z114.string().optional()
|
|
2471
|
+
});
|
|
2472
|
+
var ExporterPropertyValue = z114.object({
|
|
2473
|
+
key: z114.string(),
|
|
2474
|
+
value: z114.union([
|
|
2475
|
+
z114.number(),
|
|
2476
|
+
z114.string(),
|
|
2477
|
+
z114.boolean(),
|
|
2516
2478
|
ExporterPropertyImageValue,
|
|
2517
2479
|
ColorTokenData,
|
|
2518
2480
|
TypographyTokenData
|
|
2519
2481
|
])
|
|
2520
2482
|
});
|
|
2521
|
-
var ExporterPropertyValuesCollection =
|
|
2522
|
-
id:
|
|
2523
|
-
designSystemId:
|
|
2524
|
-
exporterId:
|
|
2525
|
-
values:
|
|
2526
|
-
});
|
|
2527
|
-
var PublishedDocPage =
|
|
2528
|
-
id:
|
|
2529
|
-
publishedDocId:
|
|
2530
|
-
pageShortPersistentId:
|
|
2531
|
-
pathV1:
|
|
2532
|
-
pathV2:
|
|
2533
|
-
storagePath:
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
updatedAt: z118.coerce.date()
|
|
2483
|
+
var ExporterPropertyValuesCollection = z114.object({
|
|
2484
|
+
id: z114.string(),
|
|
2485
|
+
designSystemId: z114.string(),
|
|
2486
|
+
exporterId: z114.string(),
|
|
2487
|
+
values: z114.array(ExporterPropertyValue)
|
|
2488
|
+
});
|
|
2489
|
+
var PublishedDocPage = z115.object({
|
|
2490
|
+
id: z115.string(),
|
|
2491
|
+
publishedDocId: z115.string(),
|
|
2492
|
+
pageShortPersistentId: z115.string(),
|
|
2493
|
+
pathV1: z115.string(),
|
|
2494
|
+
pathV2: z115.string(),
|
|
2495
|
+
storagePath: z115.string(),
|
|
2496
|
+
locale: z115.string().optional(),
|
|
2497
|
+
isPrivate: z115.boolean(),
|
|
2498
|
+
isHidden: z115.boolean(),
|
|
2499
|
+
createdAt: z115.coerce.date(),
|
|
2500
|
+
updatedAt: z115.coerce.date()
|
|
2540
2501
|
});
|
|
2541
2502
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2542
|
-
var PublishedDocEnvironment =
|
|
2543
|
-
var PublishedDocsChecksums =
|
|
2544
|
-
var PublishedDocRoutingVersion =
|
|
2545
|
-
var PublishedDoc =
|
|
2546
|
-
id:
|
|
2547
|
-
designSystemVersionId:
|
|
2548
|
-
createdAt:
|
|
2549
|
-
updatedAt:
|
|
2550
|
-
lastPublishedAt:
|
|
2551
|
-
isDefault:
|
|
2552
|
-
isPublic:
|
|
2503
|
+
var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
|
|
2504
|
+
var PublishedDocsChecksums = z116.record(z116.string());
|
|
2505
|
+
var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
|
|
2506
|
+
var PublishedDoc = z116.object({
|
|
2507
|
+
id: z116.string(),
|
|
2508
|
+
designSystemVersionId: z116.string(),
|
|
2509
|
+
createdAt: z116.coerce.date(),
|
|
2510
|
+
updatedAt: z116.coerce.date(),
|
|
2511
|
+
lastPublishedAt: z116.coerce.date(),
|
|
2512
|
+
isDefault: z116.boolean(),
|
|
2513
|
+
isPublic: z116.boolean(),
|
|
2553
2514
|
environment: PublishedDocEnvironment,
|
|
2554
2515
|
checksums: PublishedDocsChecksums,
|
|
2555
|
-
storagePath:
|
|
2556
|
-
wasMigrated:
|
|
2516
|
+
storagePath: z116.string(),
|
|
2517
|
+
wasMigrated: z116.boolean(),
|
|
2557
2518
|
routingVersion: PublishedDocRoutingVersion,
|
|
2558
|
-
usesLocalizations:
|
|
2559
|
-
wasPublishedWithLocalizations:
|
|
2560
|
-
});
|
|
2561
|
-
var DesignSystemVersion =
|
|
2562
|
-
id:
|
|
2563
|
-
version:
|
|
2564
|
-
createdAt:
|
|
2565
|
-
designSystemId:
|
|
2566
|
-
name:
|
|
2567
|
-
comment:
|
|
2568
|
-
isReadonly:
|
|
2569
|
-
changeLog:
|
|
2570
|
-
parentId:
|
|
2571
|
-
});
|
|
2572
|
-
var
|
|
2573
|
-
var
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2519
|
+
usesLocalizations: z116.boolean(),
|
|
2520
|
+
wasPublishedWithLocalizations: z116.boolean()
|
|
2521
|
+
});
|
|
2522
|
+
var DesignSystemVersion = z117.object({
|
|
2523
|
+
id: z117.string(),
|
|
2524
|
+
version: z117.string(),
|
|
2525
|
+
createdAt: z117.date(),
|
|
2526
|
+
designSystemId: z117.string(),
|
|
2527
|
+
name: z117.string(),
|
|
2528
|
+
comment: z117.string(),
|
|
2529
|
+
isReadonly: z117.boolean(),
|
|
2530
|
+
changeLog: z117.string(),
|
|
2531
|
+
parentId: z117.string().optional()
|
|
2532
|
+
});
|
|
2533
|
+
var VersionCreationJobStatus = z117.enum(["Success", "InProgress", "Error"]);
|
|
2534
|
+
var VersionCreationJob = z117.object({
|
|
2535
|
+
id: z117.string(),
|
|
2536
|
+
version: z117.string(),
|
|
2537
|
+
designSystemId: z117.string(),
|
|
2538
|
+
designSystemVersionId: nullishToOptional(z117.string()),
|
|
2539
|
+
status: VersionCreationJobStatus,
|
|
2540
|
+
errorMessage: nullishToOptional(z117.string())
|
|
2541
|
+
});
|
|
2542
|
+
var ExporterDestinationSnDocs = z118.object({
|
|
2543
|
+
environment: PublishedDocEnvironment
|
|
2544
|
+
});
|
|
2545
|
+
var ExporterDestinationS3 = z118.object({});
|
|
2546
|
+
var ExporterDestinationGithub = z118.object({
|
|
2547
|
+
connectionId: z118.string(),
|
|
2548
|
+
url: z118.string(),
|
|
2549
|
+
branch: z118.string(),
|
|
2550
|
+
relativePath: z118.string(),
|
|
2551
|
+
// +
|
|
2552
|
+
userId: z118.coerce.string()
|
|
2553
|
+
});
|
|
2554
|
+
var ExporterDestinationAzure = z118.object({
|
|
2555
|
+
connectionId: z118.string(),
|
|
2556
|
+
organizationId: z118.string(),
|
|
2557
|
+
projectId: z118.string(),
|
|
2558
|
+
repositoryId: z118.string(),
|
|
2559
|
+
branch: z118.string(),
|
|
2560
|
+
relativePath: z118.string(),
|
|
2561
|
+
// +
|
|
2562
|
+
userId: z118.coerce.string(),
|
|
2563
|
+
url: z118.string()
|
|
2564
|
+
});
|
|
2565
|
+
var ExporterDestinationGitlab = z118.object({
|
|
2566
|
+
connectionId: z118.string(),
|
|
2567
|
+
projectId: z118.string(),
|
|
2568
|
+
branch: z118.string(),
|
|
2569
|
+
relativePath: z118.string(),
|
|
2570
|
+
// +
|
|
2571
|
+
userId: z118.coerce.string(),
|
|
2572
|
+
url: z118.string()
|
|
2573
|
+
});
|
|
2574
|
+
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2575
|
+
var BITBUCKET_MAX_LENGTH = 64;
|
|
2576
|
+
var ExporterDestinationBitbucket = z118.object({
|
|
2577
|
+
connectionId: z118.string(),
|
|
2578
|
+
workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2579
|
+
projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2580
|
+
repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2581
|
+
branch: z118.string(),
|
|
2582
|
+
relativePath: z118.string(),
|
|
2583
|
+
// +
|
|
2584
|
+
userId: z118.coerce.string(),
|
|
2585
|
+
url: z118.string()
|
|
2586
|
+
});
|
|
2587
|
+
var ExporterJobDestination = z119.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
|
|
2588
|
+
var ExporterJobStatus = z119.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2589
|
+
var ExporterJobLogEntryType = z119.enum(["success", "info", "warning", "error", "user"]);
|
|
2590
|
+
var ExporterJobLogEntry = z119.object({
|
|
2591
|
+
id: z119.string().optional(),
|
|
2592
|
+
time: z119.coerce.date(),
|
|
2578
2593
|
type: ExporterJobLogEntryType,
|
|
2579
|
-
message:
|
|
2594
|
+
message: z119.string()
|
|
2580
2595
|
});
|
|
2581
|
-
var ExporterJobResultPullRequestDestination =
|
|
2582
|
-
pullRequestUrl:
|
|
2596
|
+
var ExporterJobResultPullRequestDestination = z119.object({
|
|
2597
|
+
pullRequestUrl: z119.string()
|
|
2583
2598
|
});
|
|
2584
|
-
var ExporterJobResultS3Destination =
|
|
2585
|
-
bucket:
|
|
2586
|
-
urlPrefix:
|
|
2587
|
-
path:
|
|
2588
|
-
files:
|
|
2599
|
+
var ExporterJobResultS3Destination = z119.object({
|
|
2600
|
+
bucket: z119.string(),
|
|
2601
|
+
urlPrefix: z119.string().optional(),
|
|
2602
|
+
path: z119.string(),
|
|
2603
|
+
files: z119.array(z119.string())
|
|
2589
2604
|
});
|
|
2590
|
-
var ExporterJobResultDocsDestination =
|
|
2591
|
-
url:
|
|
2605
|
+
var ExporterJobResultDocsDestination = z119.object({
|
|
2606
|
+
url: z119.string()
|
|
2592
2607
|
});
|
|
2593
|
-
var ExporterJobResult =
|
|
2594
|
-
error:
|
|
2595
|
-
logs:
|
|
2608
|
+
var ExporterJobResult = z119.object({
|
|
2609
|
+
error: z119.string().optional(),
|
|
2610
|
+
logs: z119.array(ExporterJobLogEntry).optional(),
|
|
2596
2611
|
s3: ExporterJobResultS3Destination.optional(),
|
|
2597
2612
|
github: ExporterJobResultPullRequestDestination.optional(),
|
|
2598
2613
|
azure: ExporterJobResultPullRequestDestination.optional(),
|
|
@@ -2600,68 +2615,23 @@ var ExporterJobResult = z121.object({
|
|
|
2600
2615
|
bitbucket: ExporterJobResultPullRequestDestination.optional(),
|
|
2601
2616
|
sndocs: ExporterJobResultDocsDestination.optional()
|
|
2602
2617
|
});
|
|
2603
|
-
var
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
var ExporterDestinationAzure = z121.object({
|
|
2616
|
-
connectionId: z121.string(),
|
|
2617
|
-
organizationId: z121.string(),
|
|
2618
|
-
projectId: z121.string(),
|
|
2619
|
-
repositoryId: z121.string(),
|
|
2620
|
-
branch: z121.string(),
|
|
2621
|
-
relativePath: z121.string(),
|
|
2622
|
-
// +
|
|
2623
|
-
userId: z121.coerce.string(),
|
|
2624
|
-
url: z121.string()
|
|
2625
|
-
});
|
|
2626
|
-
var ExporterDestinationGitlab = z121.object({
|
|
2627
|
-
connectionId: z121.string(),
|
|
2628
|
-
projectId: z121.string(),
|
|
2629
|
-
branch: z121.string(),
|
|
2630
|
-
relativePath: z121.string(),
|
|
2631
|
-
// +
|
|
2632
|
-
userId: z121.coerce.string(),
|
|
2633
|
-
url: z121.string()
|
|
2634
|
-
});
|
|
2635
|
-
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2636
|
-
var BITBUCKET_MAX_LENGTH = 64;
|
|
2637
|
-
var ExporterDestinationBitbucket = z121.object({
|
|
2638
|
-
connectionId: z121.string(),
|
|
2639
|
-
workspaceSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2640
|
-
projectKey: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2641
|
-
repoSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2642
|
-
branch: z121.string(),
|
|
2643
|
-
relativePath: z121.string(),
|
|
2644
|
-
// +
|
|
2645
|
-
userId: z121.coerce.string(),
|
|
2646
|
-
url: z121.string()
|
|
2647
|
-
});
|
|
2648
|
-
var ExporterJob = z121.object({
|
|
2649
|
-
id: z121.coerce.string(),
|
|
2650
|
-
createdAt: z121.coerce.date(),
|
|
2651
|
-
finishedAt: z121.coerce.date().optional(),
|
|
2652
|
-
designSystemId: z121.coerce.string(),
|
|
2653
|
-
designSystemVersionId: z121.coerce.string(),
|
|
2654
|
-
workspaceId: z121.coerce.string(),
|
|
2655
|
-
scheduleId: z121.coerce.string().nullish(),
|
|
2656
|
-
exporterId: z121.coerce.string(),
|
|
2657
|
-
brandId: z121.coerce.string().optional(),
|
|
2658
|
-
themeId: z121.coerce.string().optional(),
|
|
2659
|
-
estimatedExecutionTime: z121.number().optional(),
|
|
2618
|
+
var ExporterJob = z119.object({
|
|
2619
|
+
id: z119.coerce.string(),
|
|
2620
|
+
createdAt: z119.coerce.date(),
|
|
2621
|
+
finishedAt: z119.coerce.date().optional(),
|
|
2622
|
+
designSystemId: z119.coerce.string(),
|
|
2623
|
+
designSystemVersionId: z119.coerce.string(),
|
|
2624
|
+
workspaceId: z119.coerce.string(),
|
|
2625
|
+
scheduleId: z119.coerce.string().nullish(),
|
|
2626
|
+
exporterId: z119.coerce.string(),
|
|
2627
|
+
brandId: z119.coerce.string().optional(),
|
|
2628
|
+
themeId: z119.coerce.string().optional(),
|
|
2629
|
+
estimatedExecutionTime: z119.number().optional(),
|
|
2660
2630
|
status: ExporterJobStatus,
|
|
2661
2631
|
result: ExporterJobResult.optional(),
|
|
2662
|
-
createdByUserId:
|
|
2632
|
+
createdByUserId: z119.string().optional(),
|
|
2663
2633
|
// CodegenDestinationsModel
|
|
2664
|
-
webhookUrl:
|
|
2634
|
+
webhookUrl: z119.string().optional(),
|
|
2665
2635
|
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2666
2636
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2667
2637
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2680,14 +2650,34 @@ var ExporterJobFindByFilter = ExporterJob.pick({
|
|
|
2680
2650
|
themeId: true,
|
|
2681
2651
|
brandId: true
|
|
2682
2652
|
}).extend({
|
|
2683
|
-
destinations:
|
|
2653
|
+
destinations: z119.array(ExporterJobDestination),
|
|
2684
2654
|
docsEnvironment: PublishedDocEnvironment
|
|
2685
2655
|
}).partial();
|
|
2686
|
-
var
|
|
2687
|
-
var
|
|
2688
|
-
id:
|
|
2689
|
-
|
|
2690
|
-
|
|
2656
|
+
var ExporterScheduleEventType = z120.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2657
|
+
var ExporterSchedule = z120.object({
|
|
2658
|
+
id: z120.coerce.string(),
|
|
2659
|
+
name: z120.coerce.string(),
|
|
2660
|
+
eventType: ExporterScheduleEventType,
|
|
2661
|
+
isEnabled: z120.coerce.boolean(),
|
|
2662
|
+
workspaceId: z120.coerce.string(),
|
|
2663
|
+
designSystemId: z120.coerce.string(),
|
|
2664
|
+
exporterId: z120.coerce.string(),
|
|
2665
|
+
brandId: z120.coerce.string().optional(),
|
|
2666
|
+
themeId: z120.coerce.string().optional(),
|
|
2667
|
+
// CodegenDestinationsModel
|
|
2668
|
+
webhookUrl: z120.string().optional(),
|
|
2669
|
+
destinationSnDocs: ExporterDestinationSnDocs.optional(),
|
|
2670
|
+
destinationS3: ExporterDestinationS3.optional(),
|
|
2671
|
+
destinationGithub: ExporterDestinationGithub.optional(),
|
|
2672
|
+
destinationAzure: ExporterDestinationAzure.optional(),
|
|
2673
|
+
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2674
|
+
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2675
|
+
});
|
|
2676
|
+
var ExporterWorkspaceMembershipRole = z121.enum(["Owner", "OwnerArchived", "User"]);
|
|
2677
|
+
var ExporterWorkspaceMembership = z122.object({
|
|
2678
|
+
id: z122.string(),
|
|
2679
|
+
workspaceId: z122.string(),
|
|
2680
|
+
exporterId: z122.string(),
|
|
2691
2681
|
role: ExporterWorkspaceMembershipRole
|
|
2692
2682
|
});
|
|
2693
2683
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2697,8 +2687,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2697
2687
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2698
2688
|
return GitProviderNames2;
|
|
2699
2689
|
})(GitProviderNames || {});
|
|
2700
|
-
var GitProvider =
|
|
2701
|
-
var PulsarPropertyType =
|
|
2690
|
+
var GitProvider = z123.nativeEnum(GitProviderNames);
|
|
2691
|
+
var PulsarPropertyType = z124.enum([
|
|
2702
2692
|
"string",
|
|
2703
2693
|
"number",
|
|
2704
2694
|
"boolean",
|
|
@@ -2711,174 +2701,174 @@ var PulsarPropertyType = z125.enum([
|
|
|
2711
2701
|
"tokenProperties",
|
|
2712
2702
|
"tokenType"
|
|
2713
2703
|
]);
|
|
2714
|
-
var PulsarBaseProperty =
|
|
2715
|
-
label:
|
|
2716
|
-
key:
|
|
2717
|
-
description:
|
|
2704
|
+
var PulsarBaseProperty = z124.object({
|
|
2705
|
+
label: z124.string(),
|
|
2706
|
+
key: z124.string(),
|
|
2707
|
+
description: z124.string().nullish(),
|
|
2718
2708
|
type: PulsarPropertyType,
|
|
2719
|
-
values:
|
|
2720
|
-
default:
|
|
2709
|
+
values: z124.array(z124.string()).nullish(),
|
|
2710
|
+
default: z124.union([z124.string(), z124.boolean(), z124.number()]).nullish(),
|
|
2721
2711
|
// PulsarPropertyValueType //is optional?
|
|
2722
|
-
inputType:
|
|
2712
|
+
inputType: z124.enum(["code", "plain"]).optional(),
|
|
2723
2713
|
//is optional?
|
|
2724
|
-
isMultiline:
|
|
2714
|
+
isMultiline: z124.boolean().nullish()
|
|
2725
2715
|
});
|
|
2726
2716
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2727
|
-
category:
|
|
2728
|
-
});
|
|
2729
|
-
var PulsarContributionVariant =
|
|
2730
|
-
key:
|
|
2731
|
-
name:
|
|
2732
|
-
isDefault: nullishToOptional(
|
|
2733
|
-
description: nullishToOptional(
|
|
2734
|
-
thumbnailURL: nullishToOptional(
|
|
2735
|
-
});
|
|
2736
|
-
var PulsarCustomBlock =
|
|
2737
|
-
title: nullishToOptional(
|
|
2738
|
-
key:
|
|
2739
|
-
category: nullishToOptional(
|
|
2740
|
-
description: nullishToOptional(
|
|
2717
|
+
category: z124.string()
|
|
2718
|
+
});
|
|
2719
|
+
var PulsarContributionVariant = z124.object({
|
|
2720
|
+
key: z124.string(),
|
|
2721
|
+
name: z124.string(),
|
|
2722
|
+
isDefault: nullishToOptional(z124.boolean()),
|
|
2723
|
+
description: nullishToOptional(z124.string()),
|
|
2724
|
+
thumbnailURL: nullishToOptional(z124.string())
|
|
2725
|
+
});
|
|
2726
|
+
var PulsarCustomBlock = z124.object({
|
|
2727
|
+
title: nullishToOptional(z124.string()),
|
|
2728
|
+
key: z124.string(),
|
|
2729
|
+
category: nullishToOptional(z124.string()),
|
|
2730
|
+
description: nullishToOptional(z124.string()),
|
|
2731
|
+
iconURL: nullishToOptional(z124.string()),
|
|
2732
|
+
mode: nullishToOptional(z124.enum(["array", "block"])),
|
|
2733
|
+
properties: nullishToOptional(z124.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
2734
|
+
});
|
|
2735
|
+
var ExporterType = z125.enum(["code", "documentation"]);
|
|
2736
|
+
var ExporterSource = z125.enum(["git", "upload"]);
|
|
2737
|
+
var ExporterTag = z125.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2738
|
+
var ExporterDetails = z125.object({
|
|
2739
|
+
description: z125.string(),
|
|
2740
|
+
version: z125.string(),
|
|
2741
|
+
routingVersion: nullishToOptional(z125.string()),
|
|
2742
|
+
author: nullishToOptional(z125.string()),
|
|
2743
|
+
organization: nullishToOptional(z125.string()),
|
|
2744
|
+
homepage: nullishToOptional(z125.string()),
|
|
2745
|
+
readme: nullishToOptional(z125.string()),
|
|
2746
|
+
tags: nullishToOptional(z125.array(ExporterTag)).default([]),
|
|
2747
|
+
packageId: nullishToOptional(z125.string().max(255)),
|
|
2741
2748
|
iconURL: nullishToOptional(z125.string()),
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
})
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
var ExporterTag = z126.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2748
|
-
var ExporterDetails = z126.object({
|
|
2749
|
-
description: z126.string(),
|
|
2750
|
-
version: z126.string(),
|
|
2751
|
-
routingVersion: nullishToOptional(z126.string()),
|
|
2752
|
-
author: nullishToOptional(z126.string()),
|
|
2753
|
-
organization: nullishToOptional(z126.string()),
|
|
2754
|
-
homepage: nullishToOptional(z126.string()),
|
|
2755
|
-
readme: nullishToOptional(z126.string()),
|
|
2756
|
-
tags: nullishToOptional(z126.array(ExporterTag)).default([]),
|
|
2757
|
-
packageId: nullishToOptional(z126.string().max(255)),
|
|
2758
|
-
iconURL: nullishToOptional(z126.string()),
|
|
2759
|
-
configurationProperties: nullishToOptional(z126.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2760
|
-
customBlocks: nullishToOptional(z126.array(PulsarCustomBlock)).default([]),
|
|
2761
|
-
blockVariants: nullishToOptional(z126.record(z126.string(), z126.array(PulsarContributionVariant))).default({}),
|
|
2762
|
-
usesBrands: nullishToOptional(z126.boolean()).default(false),
|
|
2763
|
-
usesThemes: nullishToOptional(z126.boolean()).default(false),
|
|
2749
|
+
configurationProperties: nullishToOptional(z125.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2750
|
+
customBlocks: nullishToOptional(z125.array(PulsarCustomBlock)).default([]),
|
|
2751
|
+
blockVariants: nullishToOptional(z125.record(z125.string(), z125.array(PulsarContributionVariant))).default({}),
|
|
2752
|
+
usesBrands: nullishToOptional(z125.boolean()).default(false),
|
|
2753
|
+
usesThemes: nullishToOptional(z125.boolean()).default(false),
|
|
2764
2754
|
source: ExporterSource,
|
|
2765
2755
|
gitProvider: nullishToOptional(GitProvider),
|
|
2766
|
-
gitUrl: nullishToOptional(
|
|
2767
|
-
gitBranch: nullishToOptional(
|
|
2768
|
-
gitDirectory: nullishToOptional(
|
|
2756
|
+
gitUrl: nullishToOptional(z125.string()),
|
|
2757
|
+
gitBranch: nullishToOptional(z125.string()),
|
|
2758
|
+
gitDirectory: nullishToOptional(z125.string())
|
|
2769
2759
|
});
|
|
2770
|
-
var Exporter =
|
|
2771
|
-
id:
|
|
2772
|
-
createdAt:
|
|
2773
|
-
name:
|
|
2774
|
-
isPrivate:
|
|
2760
|
+
var Exporter = z125.object({
|
|
2761
|
+
id: z125.string(),
|
|
2762
|
+
createdAt: z125.coerce.date(),
|
|
2763
|
+
name: z125.string(),
|
|
2764
|
+
isPrivate: z125.boolean(),
|
|
2775
2765
|
details: ExporterDetails,
|
|
2776
2766
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2777
|
-
storagePath: nullishToOptional(
|
|
2767
|
+
storagePath: nullishToOptional(z125.string()).default("")
|
|
2778
2768
|
});
|
|
2779
|
-
var CustomDomain =
|
|
2780
|
-
id:
|
|
2781
|
-
designSystemId:
|
|
2782
|
-
state:
|
|
2783
|
-
supernovaDomain:
|
|
2784
|
-
customerDomain:
|
|
2785
|
-
error:
|
|
2786
|
-
errorCode:
|
|
2787
|
-
});
|
|
2788
|
-
var IntegrationAuthType =
|
|
2789
|
-
var ExternalServiceType =
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2769
|
+
var CustomDomain = z126.object({
|
|
2770
|
+
id: z126.string(),
|
|
2771
|
+
designSystemId: z126.string(),
|
|
2772
|
+
state: z126.string(),
|
|
2773
|
+
supernovaDomain: z126.string(),
|
|
2774
|
+
customerDomain: z126.string().nullish(),
|
|
2775
|
+
error: z126.string().nullish(),
|
|
2776
|
+
errorCode: z126.string().nullish()
|
|
2777
|
+
});
|
|
2778
|
+
var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
|
|
2779
|
+
var ExternalServiceType = z127.union([
|
|
2780
|
+
z127.literal("figma"),
|
|
2781
|
+
z127.literal("github"),
|
|
2782
|
+
z127.literal("azure"),
|
|
2783
|
+
z127.literal("gitlab"),
|
|
2784
|
+
z127.literal("bitbucket")
|
|
2795
2785
|
]);
|
|
2796
|
-
var IntegrationUserInfo =
|
|
2797
|
-
id:
|
|
2798
|
-
handle:
|
|
2799
|
-
avatarUrl:
|
|
2800
|
-
email:
|
|
2786
|
+
var IntegrationUserInfo = z127.object({
|
|
2787
|
+
id: z127.string(),
|
|
2788
|
+
handle: z127.string().optional(),
|
|
2789
|
+
avatarUrl: z127.string().optional(),
|
|
2790
|
+
email: z127.string().optional(),
|
|
2801
2791
|
authType: IntegrationAuthType.optional(),
|
|
2802
|
-
customUrl:
|
|
2792
|
+
customUrl: z127.string().optional()
|
|
2803
2793
|
});
|
|
2804
|
-
var UserLinkedIntegrations =
|
|
2794
|
+
var UserLinkedIntegrations = z127.object({
|
|
2805
2795
|
figma: IntegrationUserInfo.optional(),
|
|
2806
2796
|
github: IntegrationUserInfo.array().optional(),
|
|
2807
2797
|
azure: IntegrationUserInfo.array().optional(),
|
|
2808
2798
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2809
2799
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2810
2800
|
});
|
|
2811
|
-
var CreateUserInput =
|
|
2812
|
-
email:
|
|
2813
|
-
name:
|
|
2814
|
-
username:
|
|
2815
|
-
});
|
|
2816
|
-
var UserIdentity =
|
|
2817
|
-
id:
|
|
2818
|
-
userId:
|
|
2819
|
-
});
|
|
2820
|
-
var UserOnboardingDepartment =
|
|
2821
|
-
var UserOnboardingJobLevel =
|
|
2822
|
-
var UserOnboarding =
|
|
2823
|
-
companyName:
|
|
2824
|
-
numberOfPeopleInOrg:
|
|
2825
|
-
numberOfPeopleInDesignTeam:
|
|
2801
|
+
var CreateUserInput = z128.object({
|
|
2802
|
+
email: z128.string(),
|
|
2803
|
+
name: z128.string(),
|
|
2804
|
+
username: z128.string()
|
|
2805
|
+
});
|
|
2806
|
+
var UserIdentity = z129.object({
|
|
2807
|
+
id: z129.string(),
|
|
2808
|
+
userId: z129.string()
|
|
2809
|
+
});
|
|
2810
|
+
var UserOnboardingDepartment = z130.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2811
|
+
var UserOnboardingJobLevel = z130.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2812
|
+
var UserOnboarding = z130.object({
|
|
2813
|
+
companyName: z130.string().optional(),
|
|
2814
|
+
numberOfPeopleInOrg: z130.string().optional(),
|
|
2815
|
+
numberOfPeopleInDesignTeam: z130.string().optional(),
|
|
2826
2816
|
department: UserOnboardingDepartment.optional(),
|
|
2827
|
-
jobTitle:
|
|
2828
|
-
phase:
|
|
2817
|
+
jobTitle: z130.string().optional(),
|
|
2818
|
+
phase: z130.string().optional(),
|
|
2829
2819
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2830
2820
|
});
|
|
2831
|
-
var UserProfile =
|
|
2832
|
-
name:
|
|
2833
|
-
avatar:
|
|
2834
|
-
nickname:
|
|
2821
|
+
var UserProfile = z130.object({
|
|
2822
|
+
name: z130.string(),
|
|
2823
|
+
avatar: z130.string().optional(),
|
|
2824
|
+
nickname: z130.string().optional(),
|
|
2835
2825
|
onboarding: UserOnboarding.optional()
|
|
2836
2826
|
});
|
|
2837
|
-
var UserTest =
|
|
2838
|
-
id:
|
|
2839
|
-
email:
|
|
2827
|
+
var UserTest = z131.object({
|
|
2828
|
+
id: z131.string(),
|
|
2829
|
+
email: z131.string()
|
|
2840
2830
|
});
|
|
2841
|
-
var User =
|
|
2842
|
-
id:
|
|
2843
|
-
email:
|
|
2844
|
-
emailVerified:
|
|
2845
|
-
createdAt:
|
|
2846
|
-
trialExpiresAt:
|
|
2831
|
+
var User = z132.object({
|
|
2832
|
+
id: z132.string(),
|
|
2833
|
+
email: z132.string(),
|
|
2834
|
+
emailVerified: z132.boolean(),
|
|
2835
|
+
createdAt: z132.coerce.date(),
|
|
2836
|
+
trialExpiresAt: z132.coerce.date().optional(),
|
|
2847
2837
|
profile: UserProfile,
|
|
2848
2838
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2849
|
-
loggedOutAt:
|
|
2850
|
-
isProtected:
|
|
2839
|
+
loggedOutAt: z132.coerce.date().optional(),
|
|
2840
|
+
isProtected: z132.boolean()
|
|
2851
2841
|
});
|
|
2852
|
-
var NpmProxyToken =
|
|
2853
|
-
access:
|
|
2854
|
-
expiresAt:
|
|
2842
|
+
var NpmProxyToken = z133.object({
|
|
2843
|
+
access: z133.string(),
|
|
2844
|
+
expiresAt: z133.number()
|
|
2855
2845
|
});
|
|
2856
|
-
var SessionData =
|
|
2857
|
-
returnToUrl:
|
|
2846
|
+
var SessionData = z133.object({
|
|
2847
|
+
returnToUrl: z133.string().optional(),
|
|
2858
2848
|
npmProxyToken: NpmProxyToken.optional()
|
|
2859
2849
|
});
|
|
2860
|
-
var Session =
|
|
2861
|
-
id:
|
|
2862
|
-
expiresAt:
|
|
2863
|
-
userId:
|
|
2850
|
+
var Session = z133.object({
|
|
2851
|
+
id: z133.string(),
|
|
2852
|
+
expiresAt: z133.coerce.date(),
|
|
2853
|
+
userId: z133.string().nullable(),
|
|
2864
2854
|
data: SessionData
|
|
2865
2855
|
});
|
|
2866
|
-
var AuthTokens =
|
|
2867
|
-
access:
|
|
2868
|
-
refresh:
|
|
2856
|
+
var AuthTokens = z133.object({
|
|
2857
|
+
access: z133.string(),
|
|
2858
|
+
refresh: z133.string()
|
|
2869
2859
|
});
|
|
2870
|
-
var UserSession =
|
|
2860
|
+
var UserSession = z133.object({
|
|
2871
2861
|
session: Session,
|
|
2872
2862
|
user: User.nullable()
|
|
2873
2863
|
});
|
|
2874
|
-
var FlaggedFeature =
|
|
2875
|
-
var FeatureFlagMap =
|
|
2876
|
-
var FeatureFlag =
|
|
2877
|
-
id:
|
|
2864
|
+
var FlaggedFeature = z134.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
2865
|
+
var FeatureFlagMap = z134.record(FlaggedFeature, z134.boolean());
|
|
2866
|
+
var FeatureFlag = z134.object({
|
|
2867
|
+
id: z134.string(),
|
|
2878
2868
|
feature: FlaggedFeature,
|
|
2879
|
-
createdAt:
|
|
2880
|
-
enabled:
|
|
2881
|
-
designSystemId:
|
|
2869
|
+
createdAt: z134.coerce.date(),
|
|
2870
|
+
enabled: z134.boolean(),
|
|
2871
|
+
designSystemId: z134.string().optional()
|
|
2882
2872
|
});
|
|
2883
2873
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2884
2874
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -2888,114 +2878,194 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2888
2878
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2889
2879
|
return OAuthProviderNames2;
|
|
2890
2880
|
})(OAuthProviderNames || {});
|
|
2891
|
-
var OAuthProviderSchema =
|
|
2881
|
+
var OAuthProviderSchema = z135.nativeEnum(OAuthProviderNames);
|
|
2892
2882
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2893
|
-
var ExternalOAuthRequest =
|
|
2894
|
-
id:
|
|
2883
|
+
var ExternalOAuthRequest = z136.object({
|
|
2884
|
+
id: z136.string(),
|
|
2895
2885
|
provider: OAuthProviderSchema,
|
|
2896
|
-
userId:
|
|
2897
|
-
state:
|
|
2898
|
-
createdAt:
|
|
2899
|
-
});
|
|
2900
|
-
var
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2886
|
+
userId: z136.string(),
|
|
2887
|
+
state: z136.string(),
|
|
2888
|
+
createdAt: z136.coerce.date()
|
|
2889
|
+
});
|
|
2890
|
+
var IntegrationDesignSystem = z137.object({
|
|
2891
|
+
designSystemId: z137.string(),
|
|
2892
|
+
brandId: z137.string(),
|
|
2893
|
+
title: z137.string().optional(),
|
|
2894
|
+
userId: z137.string().optional(),
|
|
2895
|
+
date: z137.coerce.date().optional()
|
|
2896
|
+
});
|
|
2897
|
+
var IntegrationCredentialsType = z137.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
2898
|
+
var IntegrationCredentialsProfile = z137.object({
|
|
2899
|
+
id: z137.string(),
|
|
2900
|
+
email: z137.string().optional(),
|
|
2901
|
+
handle: z137.string().optional(),
|
|
2902
|
+
avatarUrl: z137.string().optional()
|
|
2905
2903
|
});
|
|
2906
|
-
var IntegrationCredentials =
|
|
2907
|
-
id:
|
|
2904
|
+
var IntegrationCredentials = z137.object({
|
|
2905
|
+
id: z137.string(),
|
|
2908
2906
|
type: IntegrationCredentialsType,
|
|
2909
|
-
integrationId:
|
|
2910
|
-
accessToken:
|
|
2911
|
-
userId:
|
|
2912
|
-
createdAt:
|
|
2913
|
-
refreshToken:
|
|
2907
|
+
integrationId: z137.string(),
|
|
2908
|
+
accessToken: z137.string(),
|
|
2909
|
+
userId: z137.string(),
|
|
2910
|
+
createdAt: z137.coerce.date(),
|
|
2911
|
+
refreshToken: z137.string().optional(),
|
|
2912
|
+
tokenName: z137.string().optional(),
|
|
2913
|
+
expiresAt: z137.coerce.date().optional(),
|
|
2914
2914
|
profile: IntegrationCredentialsProfile.optional(),
|
|
2915
|
-
customUrl:
|
|
2915
|
+
customUrl: z137.string().optional()
|
|
2916
2916
|
});
|
|
2917
|
-
var
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2917
|
+
var ExtendedIntegrationType = z137.enum([
|
|
2918
|
+
"Figma",
|
|
2919
|
+
"Github",
|
|
2920
|
+
"Gitlab",
|
|
2921
|
+
"Bitbucket",
|
|
2922
|
+
"Azure",
|
|
2923
|
+
"TokenStudio",
|
|
2924
|
+
"FigmaVariablesPlugin"
|
|
2925
|
+
]);
|
|
2926
|
+
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
2927
|
+
var Integration = z137.object({
|
|
2928
|
+
id: z137.string(),
|
|
2929
|
+
workspaceId: z137.string(),
|
|
2921
2930
|
type: IntegrationType,
|
|
2922
|
-
createdAt:
|
|
2923
|
-
integrationCredentials:
|
|
2931
|
+
createdAt: z137.coerce.date(),
|
|
2932
|
+
integrationCredentials: z137.array(IntegrationCredentials).optional()
|
|
2924
2933
|
});
|
|
2925
2934
|
var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
2926
|
-
var IntegrationTokenResponse =
|
|
2927
|
-
access_token:
|
|
2928
|
-
refresh_token:
|
|
2929
|
-
expires_in:
|
|
2930
|
-
token_type:
|
|
2931
|
-
|
|
2935
|
+
var IntegrationTokenResponse = z137.object({
|
|
2936
|
+
access_token: z137.string(),
|
|
2937
|
+
refresh_token: z137.string().optional(),
|
|
2938
|
+
expires_in: z137.union([z137.number().optional(), z137.string().optional()]),
|
|
2939
|
+
token_type: z137.string().optional(),
|
|
2940
|
+
token_name: z137.string().optional(),
|
|
2941
|
+
token_azure_organization_name: z137.string().optional(),
|
|
2942
|
+
// Azure only
|
|
2943
|
+
token_bitbucket_username: z137.string().optional(),
|
|
2944
|
+
// Bitbucket only
|
|
2945
|
+
custom_url: z137.string().optional().refine((value) => {
|
|
2932
2946
|
if (!value)
|
|
2933
2947
|
return true;
|
|
2934
2948
|
if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
|
|
2935
2949
|
return false;
|
|
2936
2950
|
return true;
|
|
2937
2951
|
}, "Custom URL validation failed")
|
|
2938
|
-
}).
|
|
2952
|
+
}).refine((data) => {
|
|
2953
|
+
if (data.custom_url && data.token_azure_organization_name) {
|
|
2954
|
+
return false;
|
|
2955
|
+
}
|
|
2956
|
+
return true;
|
|
2957
|
+
}, "Custom URL and Azure organization name cannot be present at the same time").transform((data) => {
|
|
2939
2958
|
return {
|
|
2940
2959
|
accessToken: data.access_token,
|
|
2941
2960
|
refreshToken: data.refresh_token,
|
|
2942
|
-
expiresIn: data.expires_in,
|
|
2961
|
+
expiresIn: typeof data.expires_in === "string" ? Number(data.expires_in) : data.expires_in,
|
|
2943
2962
|
tokenType: data.token_type,
|
|
2963
|
+
tokenName: data.token_name,
|
|
2964
|
+
tokenBitbucketUsername: data.token_bitbucket_username,
|
|
2965
|
+
tokenAzureOrganizationName: data.token_azure_organization_name,
|
|
2944
2966
|
customUrl: data.custom_url
|
|
2945
2967
|
};
|
|
2946
2968
|
});
|
|
2947
|
-
var IntegrationTokenSchema =
|
|
2969
|
+
var IntegrationTokenSchema = z138.object({
|
|
2970
|
+
id: z138.string(),
|
|
2971
|
+
provider: OAuthProviderSchema,
|
|
2972
|
+
scope: z138.string(),
|
|
2973
|
+
userId: z138.string(),
|
|
2974
|
+
accessToken: z138.string(),
|
|
2975
|
+
refreshToken: z138.string(),
|
|
2976
|
+
expiresAt: z138.coerce.date(),
|
|
2977
|
+
externalUserId: z138.string().nullish()
|
|
2978
|
+
});
|
|
2979
|
+
var WorkspaceOAuthRequestSchema = z139.object({
|
|
2948
2980
|
id: z139.string(),
|
|
2981
|
+
workspaceId: z139.string(),
|
|
2949
2982
|
provider: OAuthProviderSchema,
|
|
2950
|
-
scope: z139.string(),
|
|
2951
2983
|
userId: z139.string(),
|
|
2952
|
-
|
|
2953
|
-
refreshToken: z139.string(),
|
|
2954
|
-
expiresAt: z139.coerce.date(),
|
|
2955
|
-
externalUserId: z139.string().nullish()
|
|
2956
|
-
});
|
|
2957
|
-
var WorkspaceOAuthRequestSchema = z140.object({
|
|
2958
|
-
id: z140.string(),
|
|
2959
|
-
workspaceId: z140.string(),
|
|
2960
|
-
provider: OAuthProviderSchema,
|
|
2961
|
-
userId: z140.string(),
|
|
2962
|
-
createdAt: z140.coerce.date()
|
|
2984
|
+
createdAt: z139.coerce.date()
|
|
2963
2985
|
});
|
|
2964
|
-
var
|
|
2986
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
2987
|
+
designSystemVersionId: z140.string(),
|
|
2988
|
+
liveblocksId: z140.string()
|
|
2989
|
+
});
|
|
2990
|
+
var DesignSystemVersionRoomInternalSettings = z140.object({
|
|
2991
|
+
routingVersion: z140.string()
|
|
2992
|
+
});
|
|
2993
|
+
var DesignSystemVersionRoomInitialState = z140.object({
|
|
2994
|
+
pages: z140.array(DocumentationPageV2),
|
|
2995
|
+
groups: z140.array(ElementGroup),
|
|
2996
|
+
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2997
|
+
});
|
|
2998
|
+
var DesignSystemVersionRoomUpdate = z140.object({
|
|
2999
|
+
pages: z140.array(DocumentationPageV2),
|
|
3000
|
+
groups: z140.array(ElementGroup),
|
|
3001
|
+
deletedPageIds: z140.array(z140.string()),
|
|
3002
|
+
deletedGroupIds: z140.array(z140.string())
|
|
3003
|
+
});
|
|
3004
|
+
var DocumentationPageRoom = Entity.extend({
|
|
3005
|
+
designSystemVersionId: z141.string(),
|
|
3006
|
+
documentationPageId: z141.string(),
|
|
3007
|
+
liveblocksId: z141.string(),
|
|
3008
|
+
isDirty: z141.boolean()
|
|
3009
|
+
});
|
|
3010
|
+
var DocumentationPageRoomState = z141.object({
|
|
3011
|
+
pageItems: z141.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3012
|
+
itemConfiguration: DocumentationItemConfigurationV2
|
|
3013
|
+
});
|
|
3014
|
+
var DocumentationPageRoomRoomUpdate = z141.object({
|
|
3015
|
+
page: DocumentationPageV2,
|
|
3016
|
+
pageParent: ElementGroup
|
|
3017
|
+
});
|
|
3018
|
+
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3019
|
+
pageItems: z141.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3020
|
+
blockDefinitions: z141.array(PageBlockDefinition)
|
|
3021
|
+
});
|
|
3022
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3023
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
3024
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
3025
|
+
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3026
|
+
return RoomTypeEnum2;
|
|
3027
|
+
})(RoomTypeEnum || {});
|
|
3028
|
+
var RoomTypeSchema = z142.nativeEnum(RoomTypeEnum);
|
|
3029
|
+
var RoomType = RoomTypeSchema.enum;
|
|
3030
|
+
var WorkspaceRoom = Entity.extend({
|
|
3031
|
+
workspaceId: z143.string(),
|
|
3032
|
+
liveblocksId: z143.string()
|
|
3033
|
+
});
|
|
3034
|
+
var AnyRecord = z144.record(z144.any());
|
|
2965
3035
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
2966
|
-
|
|
2967
|
-
tarball:
|
|
3036
|
+
z144.object({
|
|
3037
|
+
tarball: z144.string()
|
|
2968
3038
|
})
|
|
2969
3039
|
);
|
|
2970
3040
|
var NpmPackageVersion = AnyRecord.and(
|
|
2971
|
-
|
|
3041
|
+
z144.object({
|
|
2972
3042
|
dist: NpmPackageVersionDist
|
|
2973
3043
|
})
|
|
2974
3044
|
);
|
|
2975
3045
|
var NpmPackage = AnyRecord.and(
|
|
2976
|
-
|
|
2977
|
-
_id:
|
|
2978
|
-
name:
|
|
3046
|
+
z144.object({
|
|
3047
|
+
_id: z144.string(),
|
|
3048
|
+
name: z144.string(),
|
|
2979
3049
|
// e.g. "latest": "1.2.3"
|
|
2980
|
-
"dist-tags":
|
|
3050
|
+
"dist-tags": z144.record(z144.string(), z144.string()),
|
|
2981
3051
|
// "1.2.3": {...}
|
|
2982
|
-
versions:
|
|
3052
|
+
versions: z144.record(NpmPackageVersion)
|
|
2983
3053
|
})
|
|
2984
3054
|
);
|
|
2985
|
-
var NpmProxyTokenPayload =
|
|
2986
|
-
npmProxyRegistryConfigId:
|
|
3055
|
+
var NpmProxyTokenPayload = z145.object({
|
|
3056
|
+
npmProxyRegistryConfigId: z145.string()
|
|
2987
3057
|
});
|
|
2988
|
-
var PersonalAccessToken =
|
|
2989
|
-
id:
|
|
2990
|
-
userId:
|
|
2991
|
-
workspaceId:
|
|
3058
|
+
var PersonalAccessToken = z146.object({
|
|
3059
|
+
id: z146.string(),
|
|
3060
|
+
userId: z146.string(),
|
|
3061
|
+
workspaceId: z146.string().optional(),
|
|
2992
3062
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
2993
|
-
name:
|
|
2994
|
-
hidden:
|
|
2995
|
-
token:
|
|
2996
|
-
scope:
|
|
2997
|
-
createdAt:
|
|
2998
|
-
expireAt:
|
|
3063
|
+
name: z146.string(),
|
|
3064
|
+
hidden: z146.boolean(),
|
|
3065
|
+
token: z146.string(),
|
|
3066
|
+
scope: z146.string().optional(),
|
|
3067
|
+
createdAt: z146.coerce.date(),
|
|
3068
|
+
expireAt: z146.coerce.date().optional()
|
|
2999
3069
|
});
|
|
3000
3070
|
var SupernovaException = class _SupernovaException extends Error {
|
|
3001
3071
|
//
|
|
@@ -3083,25 +3153,25 @@ function groupBy(items, keyFn) {
|
|
|
3083
3153
|
}
|
|
3084
3154
|
return result;
|
|
3085
3155
|
}
|
|
3086
|
-
var ContentLoadInstruction =
|
|
3087
|
-
from:
|
|
3088
|
-
to:
|
|
3089
|
-
authorizationHeaderKvsId:
|
|
3090
|
-
timeout:
|
|
3091
|
-
});
|
|
3092
|
-
var ContentLoaderPayload =
|
|
3093
|
-
type:
|
|
3156
|
+
var ContentLoadInstruction = z147.object({
|
|
3157
|
+
from: z147.string(),
|
|
3158
|
+
to: z147.string(),
|
|
3159
|
+
authorizationHeaderKvsId: z147.string().optional(),
|
|
3160
|
+
timeout: z147.number().optional()
|
|
3161
|
+
});
|
|
3162
|
+
var ContentLoaderPayload = z147.object({
|
|
3163
|
+
type: z147.literal("Single"),
|
|
3094
3164
|
instruction: ContentLoadInstruction
|
|
3095
3165
|
}).or(
|
|
3096
|
-
|
|
3097
|
-
type:
|
|
3098
|
-
loadingChunkSize:
|
|
3099
|
-
instructions:
|
|
3166
|
+
z147.object({
|
|
3167
|
+
type: z147.literal("Multiple"),
|
|
3168
|
+
loadingChunkSize: z147.number().optional(),
|
|
3169
|
+
instructions: z147.array(ContentLoadInstruction)
|
|
3100
3170
|
})
|
|
3101
3171
|
).or(
|
|
3102
|
-
|
|
3103
|
-
type:
|
|
3104
|
-
location:
|
|
3172
|
+
z147.object({
|
|
3173
|
+
type: z147.literal("S3"),
|
|
3174
|
+
location: z147.string()
|
|
3105
3175
|
})
|
|
3106
3176
|
);
|
|
3107
3177
|
function slugify(str, options) {
|
|
@@ -4069,85 +4139,86 @@ function integrationToDto(integration) {
|
|
|
4069
4139
|
workspaceId: integration.workspaceId,
|
|
4070
4140
|
type: integration.type,
|
|
4071
4141
|
createdAt: integration.createdAt,
|
|
4072
|
-
integrationCredentials: integration.integrationCredentials ?? void 0
|
|
4142
|
+
integrationCredentials: integration.integrationCredentials ?? void 0,
|
|
4143
|
+
integrationDesignSystems: integration.integrationDesignSystems ?? void 0
|
|
4073
4144
|
};
|
|
4074
4145
|
}
|
|
4075
4146
|
|
|
4076
4147
|
// src/api/dto/design-systems/brand.ts
|
|
4077
|
-
import { z as
|
|
4078
|
-
var DTOBrand =
|
|
4079
|
-
id:
|
|
4080
|
-
designSystemVersionId:
|
|
4081
|
-
persistentId:
|
|
4148
|
+
import { z as z148 } from "zod";
|
|
4149
|
+
var DTOBrand = z148.object({
|
|
4150
|
+
id: z148.string(),
|
|
4151
|
+
designSystemVersionId: z148.string(),
|
|
4152
|
+
persistentId: z148.string(),
|
|
4082
4153
|
meta: ObjectMeta
|
|
4083
4154
|
});
|
|
4084
|
-
var DTOBrandGetResponse =
|
|
4085
|
-
var DTOBrandCreateResponse =
|
|
4155
|
+
var DTOBrandGetResponse = z148.object({ brand: DTOBrand });
|
|
4156
|
+
var DTOBrandCreateResponse = z148.object({
|
|
4086
4157
|
brand: DTOBrand
|
|
4087
4158
|
});
|
|
4088
|
-
var DTOBrandsListResponse =
|
|
4159
|
+
var DTOBrandsListResponse = z148.object({ brands: z148.array(DTOBrand) });
|
|
4089
4160
|
|
|
4090
4161
|
// src/api/dto/design-systems/design-system.ts
|
|
4091
|
-
import { z as
|
|
4162
|
+
import { z as z149 } from "zod";
|
|
4092
4163
|
var DTODesignSystem = DesignSystem.omit({
|
|
4093
4164
|
name: true,
|
|
4094
4165
|
description: true,
|
|
4095
4166
|
docExporterId: true
|
|
4096
4167
|
}).extend({
|
|
4097
4168
|
meta: ObjectMeta,
|
|
4098
|
-
docExporterId:
|
|
4169
|
+
docExporterId: z149.string()
|
|
4099
4170
|
});
|
|
4100
4171
|
|
|
4101
4172
|
// src/api/dto/design-systems/exporter-property.ts
|
|
4102
|
-
import { z as
|
|
4103
|
-
var DTOExporterProperty =
|
|
4104
|
-
var DTOExporterPropertyListResponse =
|
|
4173
|
+
import { z as z150 } from "zod";
|
|
4174
|
+
var DTOExporterProperty = z150.any({});
|
|
4175
|
+
var DTOExporterPropertyListResponse = z150.object({ items: z150.array(DTOExporterProperty) });
|
|
4105
4176
|
|
|
4106
4177
|
// src/api/dto/design-systems/version.ts
|
|
4107
|
-
import { z as
|
|
4178
|
+
import { z as z157 } from "zod";
|
|
4108
4179
|
|
|
4109
4180
|
// src/api/payloads/design-systems/brand.ts
|
|
4110
|
-
import { z as
|
|
4111
|
-
var DTOCreateBrandInput =
|
|
4112
|
-
persistentId:
|
|
4113
|
-
meta:
|
|
4114
|
-
name:
|
|
4115
|
-
description:
|
|
4181
|
+
import { z as z151 } from "zod";
|
|
4182
|
+
var DTOCreateBrandInput = z151.object({
|
|
4183
|
+
persistentId: z151.string().uuid(),
|
|
4184
|
+
meta: z151.object({
|
|
4185
|
+
name: z151.string(),
|
|
4186
|
+
description: z151.string()
|
|
4116
4187
|
})
|
|
4117
4188
|
});
|
|
4118
4189
|
|
|
4119
4190
|
// src/api/payloads/design-systems/version.ts
|
|
4120
|
-
import { z as
|
|
4121
|
-
var ObjectMeta2 =
|
|
4122
|
-
name:
|
|
4123
|
-
description:
|
|
4191
|
+
import { z as z152 } from "zod";
|
|
4192
|
+
var ObjectMeta2 = z152.object({
|
|
4193
|
+
name: z152.string().max(150).optional(),
|
|
4194
|
+
description: z152.string().max(2e3).optional()
|
|
4124
4195
|
});
|
|
4125
|
-
function
|
|
4126
|
-
const
|
|
4127
|
-
return
|
|
4196
|
+
function validateDesignSystemVersion(version) {
|
|
4197
|
+
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
4198
|
+
return urlCompliantRegex.test(version);
|
|
4128
4199
|
}
|
|
4129
|
-
var DTOCreateVersionInput =
|
|
4200
|
+
var DTOCreateVersionInput = z152.object({
|
|
4130
4201
|
meta: ObjectMeta2,
|
|
4131
|
-
version:
|
|
4202
|
+
version: z152.string().refine(validateDesignSystemVersion, {
|
|
4132
4203
|
message: "Invalid semantic versioning format"
|
|
4133
4204
|
}),
|
|
4134
|
-
changeLog:
|
|
4205
|
+
changeLog: z152.string().max(2e3).optional()
|
|
4135
4206
|
});
|
|
4136
4207
|
|
|
4137
4208
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4138
|
-
import { z as
|
|
4139
|
-
var DTOGetBlockDefinitionsOutput =
|
|
4140
|
-
definitions:
|
|
4209
|
+
import { z as z153 } from "zod";
|
|
4210
|
+
var DTOGetBlockDefinitionsOutput = z153.object({
|
|
4211
|
+
definitions: z153.array(PageBlockDefinition)
|
|
4141
4212
|
});
|
|
4142
4213
|
|
|
4143
4214
|
// src/api/payloads/liveblocks/auth.ts
|
|
4144
|
-
import { z as
|
|
4145
|
-
var DTOLiveblocksAuthRequest =
|
|
4146
|
-
room:
|
|
4215
|
+
import { z as z154 } from "zod";
|
|
4216
|
+
var DTOLiveblocksAuthRequest = z154.object({
|
|
4217
|
+
room: z154.string().optional()
|
|
4147
4218
|
});
|
|
4148
4219
|
|
|
4149
4220
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4150
|
-
import { z as
|
|
4221
|
+
import { z as z155 } from "zod";
|
|
4151
4222
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4152
4223
|
function validateSsoPayload(ssoPayload) {
|
|
4153
4224
|
const keys = [];
|
|
@@ -4170,21 +4241,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4170
4241
|
keys
|
|
4171
4242
|
};
|
|
4172
4243
|
}
|
|
4173
|
-
var NpmRegistryInput =
|
|
4174
|
-
enabledScopes:
|
|
4175
|
-
customRegistryUrl:
|
|
4176
|
-
bypassProxy:
|
|
4177
|
-
npmProxyRegistryConfigId:
|
|
4178
|
-
npmProxyVersion:
|
|
4179
|
-
registryType:
|
|
4180
|
-
authType:
|
|
4181
|
-
authHeaderName:
|
|
4182
|
-
authHeaderValue:
|
|
4183
|
-
accessToken:
|
|
4184
|
-
username:
|
|
4185
|
-
password:
|
|
4186
|
-
});
|
|
4187
|
-
var WorkspaceConfigurationPayload =
|
|
4244
|
+
var NpmRegistryInput = z155.object({
|
|
4245
|
+
enabledScopes: z155.array(z155.string()),
|
|
4246
|
+
customRegistryUrl: z155.string().optional(),
|
|
4247
|
+
bypassProxy: z155.boolean().optional(),
|
|
4248
|
+
npmProxyRegistryConfigId: z155.string().optional(),
|
|
4249
|
+
npmProxyVersion: z155.number().optional(),
|
|
4250
|
+
registryType: z155.string(),
|
|
4251
|
+
authType: z155.string(),
|
|
4252
|
+
authHeaderName: z155.string(),
|
|
4253
|
+
authHeaderValue: z155.string(),
|
|
4254
|
+
accessToken: z155.string(),
|
|
4255
|
+
username: z155.string(),
|
|
4256
|
+
password: z155.string()
|
|
4257
|
+
});
|
|
4258
|
+
var WorkspaceConfigurationPayload = z155.object({
|
|
4188
4259
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4189
4260
|
sso: SsoProvider.partial().optional(),
|
|
4190
4261
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -4192,110 +4263,118 @@ var WorkspaceConfigurationPayload = z152.object({
|
|
|
4192
4263
|
});
|
|
4193
4264
|
|
|
4194
4265
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4195
|
-
import { z as
|
|
4196
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4266
|
+
import { z as z156 } from "zod";
|
|
4267
|
+
var DTOWorkspaceIntegrationOauthInput = z156.object({
|
|
4197
4268
|
type: IntegrationType
|
|
4198
4269
|
});
|
|
4199
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
4200
|
-
userId:
|
|
4270
|
+
var DTOWorkspaceIntegrationPATInput = z156.object({
|
|
4271
|
+
userId: z156.string(),
|
|
4201
4272
|
type: IntegrationType,
|
|
4202
4273
|
token: IntegrationTokenResponse
|
|
4203
4274
|
});
|
|
4204
4275
|
|
|
4205
4276
|
// src/api/dto/design-systems/version.ts
|
|
4206
|
-
var DTODesignSystemVersion =
|
|
4207
|
-
id:
|
|
4208
|
-
createdAt:
|
|
4277
|
+
var DTODesignSystemVersion = z157.object({
|
|
4278
|
+
id: z157.string(),
|
|
4279
|
+
createdAt: z157.date(),
|
|
4209
4280
|
meta: ObjectMeta,
|
|
4210
|
-
version:
|
|
4211
|
-
isReadonly:
|
|
4212
|
-
changeLog:
|
|
4213
|
-
designSystemId:
|
|
4281
|
+
version: z157.string(),
|
|
4282
|
+
isReadonly: z157.boolean(),
|
|
4283
|
+
changeLog: z157.string(),
|
|
4284
|
+
designSystemId: z157.string()
|
|
4214
4285
|
});
|
|
4215
|
-
var DTODesignSystemVersionsListResponse =
|
|
4216
|
-
designSystemVersions:
|
|
4286
|
+
var DTODesignSystemVersionsListResponse = z157.object({
|
|
4287
|
+
designSystemVersions: z157.array(DTODesignSystemVersion)
|
|
4217
4288
|
});
|
|
4218
|
-
var DTODesignSystemVersionGetResponse =
|
|
4289
|
+
var DTODesignSystemVersionGetResponse = z157.object({
|
|
4219
4290
|
designSystemVersion: DTODesignSystemVersion
|
|
4220
4291
|
});
|
|
4221
|
-
var DTODesignSystemVersionCreationResponse =
|
|
4292
|
+
var DTODesignSystemVersionCreationResponse = z157.object({
|
|
4222
4293
|
meta: ObjectMeta,
|
|
4223
|
-
version:
|
|
4224
|
-
changeLog:
|
|
4225
|
-
isReadOnly:
|
|
4226
|
-
designSystemId:
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4294
|
+
version: z157.string(),
|
|
4295
|
+
changeLog: z157.string(),
|
|
4296
|
+
isReadOnly: z157.boolean(),
|
|
4297
|
+
designSystemId: z157.string(),
|
|
4298
|
+
jobId: z157.string()
|
|
4299
|
+
});
|
|
4300
|
+
var VersionSQSPayload = z157.object({
|
|
4301
|
+
jobId: z157.string(),
|
|
4302
|
+
designSystemId: z157.string(),
|
|
4230
4303
|
input: DTOCreateVersionInput
|
|
4231
4304
|
});
|
|
4305
|
+
var DTODesignSystemVersionJobsResponse = z157.object({
|
|
4306
|
+
jobs: z157.array(VersionCreationJob)
|
|
4307
|
+
});
|
|
4308
|
+
var DTODesignSystemVersionJobStatusResponse = z157.object({
|
|
4309
|
+
job: VersionCreationJob
|
|
4310
|
+
});
|
|
4232
4311
|
|
|
4233
4312
|
// src/api/dto/design-systems/view.ts
|
|
4234
|
-
import { z as
|
|
4235
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4236
|
-
id:
|
|
4237
|
-
persistentId:
|
|
4238
|
-
width:
|
|
4313
|
+
import { z as z158 } from "zod";
|
|
4314
|
+
var DTOElementViewColumnSharedAttributes = z158.object({
|
|
4315
|
+
id: z158.string(),
|
|
4316
|
+
persistentId: z158.string(),
|
|
4317
|
+
width: z158.number()
|
|
4239
4318
|
});
|
|
4240
4319
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4241
|
-
type:
|
|
4320
|
+
type: z158.literal("BaseProperty"),
|
|
4242
4321
|
basePropertyType: ElementViewBaseColumnType
|
|
4243
4322
|
});
|
|
4244
4323
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4245
|
-
type:
|
|
4246
|
-
propertyDefinitionId:
|
|
4324
|
+
type: z158.literal("PropertyDefinition"),
|
|
4325
|
+
propertyDefinitionId: z158.string()
|
|
4247
4326
|
});
|
|
4248
4327
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4249
|
-
type:
|
|
4250
|
-
themeId:
|
|
4328
|
+
type: z158.literal("Theme"),
|
|
4329
|
+
themeId: z158.string()
|
|
4251
4330
|
});
|
|
4252
|
-
var DTOElementViewColumn =
|
|
4331
|
+
var DTOElementViewColumn = z158.discriminatedUnion("type", [
|
|
4253
4332
|
DTOElementViewBasePropertyColumn,
|
|
4254
4333
|
DTOElementViewPropertyDefinitionColumn,
|
|
4255
4334
|
DTOElementViewThemeColumn
|
|
4256
4335
|
]);
|
|
4257
|
-
var DTOElementView =
|
|
4336
|
+
var DTOElementView = z158.object({
|
|
4258
4337
|
meta: ObjectMeta,
|
|
4259
|
-
persistentId:
|
|
4338
|
+
persistentId: z158.string(),
|
|
4260
4339
|
targetElementType: ElementPropertyTargetType,
|
|
4261
|
-
id:
|
|
4262
|
-
isDefault:
|
|
4263
|
-
columns:
|
|
4340
|
+
id: z158.string(),
|
|
4341
|
+
isDefault: z158.boolean(),
|
|
4342
|
+
columns: z158.array(DTOElementViewColumn)
|
|
4264
4343
|
});
|
|
4265
|
-
var DTOElementViewsListResponse =
|
|
4266
|
-
elementDataViews:
|
|
4344
|
+
var DTOElementViewsListResponse = z158.object({
|
|
4345
|
+
elementDataViews: z158.array(DTOElementView)
|
|
4267
4346
|
});
|
|
4268
4347
|
|
|
4269
4348
|
// src/api/dto/documentation/anchor.ts
|
|
4270
|
-
import { z as
|
|
4349
|
+
import { z as z159 } from "zod";
|
|
4271
4350
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4272
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4273
|
-
anchors:
|
|
4351
|
+
var DTOGetDocumentationPageAnchorsResponse = z159.object({
|
|
4352
|
+
anchors: z159.array(DTODocumentationPageAnchor)
|
|
4274
4353
|
});
|
|
4275
4354
|
|
|
4276
4355
|
// src/api/dto/documentation/link-preview.ts
|
|
4277
|
-
import { z as
|
|
4278
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4356
|
+
import { z as z160 } from "zod";
|
|
4357
|
+
var DTODocumentationLinkPreviewResponse = z160.object({
|
|
4279
4358
|
linkPreview: DocumentationLinkPreview
|
|
4280
4359
|
});
|
|
4281
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4282
|
-
url:
|
|
4283
|
-
documentationItemPersistentId:
|
|
4360
|
+
var DTODocumentationLinkPreviewRequest = z160.object({
|
|
4361
|
+
url: z160.string().optional(),
|
|
4362
|
+
documentationItemPersistentId: z160.string().optional()
|
|
4284
4363
|
});
|
|
4285
4364
|
|
|
4286
4365
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4287
|
-
import { z as
|
|
4366
|
+
import { z as z163 } from "zod";
|
|
4288
4367
|
|
|
4289
4368
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4290
|
-
import { z as
|
|
4369
|
+
import { z as z162 } from "zod";
|
|
4291
4370
|
|
|
4292
4371
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4293
|
-
import { z as
|
|
4372
|
+
import { z as z161 } from "zod";
|
|
4294
4373
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4295
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4296
|
-
showSidebar:
|
|
4297
|
-
isPrivate:
|
|
4298
|
-
isHidden:
|
|
4374
|
+
var DTODocumentationItemConfigurationV2 = z161.object({
|
|
4375
|
+
showSidebar: z161.boolean(),
|
|
4376
|
+
isPrivate: z161.boolean(),
|
|
4377
|
+
isHidden: z161.boolean(),
|
|
4299
4378
|
header: DTODocumentationItemHeaderV2
|
|
4300
4379
|
});
|
|
4301
4380
|
|
|
@@ -4309,136 +4388,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
4309
4388
|
data: true,
|
|
4310
4389
|
shortPersistentId: true
|
|
4311
4390
|
}).extend({
|
|
4312
|
-
title:
|
|
4313
|
-
isRoot:
|
|
4314
|
-
childrenIds:
|
|
4391
|
+
title: z162.string(),
|
|
4392
|
+
isRoot: z162.boolean(),
|
|
4393
|
+
childrenIds: z162.array(z162.string()),
|
|
4315
4394
|
groupBehavior: DocumentationGroupBehavior,
|
|
4316
|
-
shortPersistentId:
|
|
4395
|
+
shortPersistentId: z162.string(),
|
|
4317
4396
|
configuration: DTODocumentationItemConfigurationV2,
|
|
4318
|
-
type:
|
|
4397
|
+
type: z162.literal("Group")
|
|
4319
4398
|
});
|
|
4320
4399
|
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4321
|
-
var DTOCreateDocumentationGroupInput =
|
|
4400
|
+
var DTOCreateDocumentationGroupInput = z162.object({
|
|
4322
4401
|
// Identifier
|
|
4323
|
-
persistentId:
|
|
4402
|
+
persistentId: z162.string().uuid(),
|
|
4324
4403
|
// Group properties
|
|
4325
|
-
title:
|
|
4404
|
+
title: z162.string(),
|
|
4326
4405
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4327
4406
|
// Group placement properties
|
|
4328
|
-
afterPersistentId:
|
|
4329
|
-
parentPersistentId:
|
|
4407
|
+
afterPersistentId: z162.string().uuid().nullish(),
|
|
4408
|
+
parentPersistentId: z162.string().uuid()
|
|
4330
4409
|
});
|
|
4331
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4410
|
+
var DTOUpdateDocumentationGroupInput = z162.object({
|
|
4332
4411
|
// Identifier of the group to update
|
|
4333
|
-
id:
|
|
4412
|
+
id: z162.string(),
|
|
4334
4413
|
// Group properties
|
|
4335
|
-
title:
|
|
4414
|
+
title: z162.string().optional(),
|
|
4336
4415
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4337
4416
|
});
|
|
4338
|
-
var DTOMoveDocumentationGroupInput =
|
|
4417
|
+
var DTOMoveDocumentationGroupInput = z162.object({
|
|
4339
4418
|
// Identifier of the group to update
|
|
4340
|
-
id:
|
|
4419
|
+
id: z162.string(),
|
|
4341
4420
|
// Group placement properties
|
|
4342
|
-
parentPersistentId:
|
|
4343
|
-
afterPersistentId:
|
|
4421
|
+
parentPersistentId: z162.string().uuid(),
|
|
4422
|
+
afterPersistentId: z162.string().uuid().nullish()
|
|
4344
4423
|
});
|
|
4345
|
-
var DTODuplicateDocumentationGroupInput =
|
|
4424
|
+
var DTODuplicateDocumentationGroupInput = z162.object({
|
|
4346
4425
|
// Identifier of the group to duplicate from
|
|
4347
|
-
id:
|
|
4426
|
+
id: z162.string(),
|
|
4348
4427
|
// New group persistent id
|
|
4349
|
-
persistentId:
|
|
4428
|
+
persistentId: z162.string().uuid(),
|
|
4350
4429
|
// Group placement properties
|
|
4351
|
-
afterPersistentId:
|
|
4352
|
-
parentPersistentId:
|
|
4430
|
+
afterPersistentId: z162.string().uuid().nullish(),
|
|
4431
|
+
parentPersistentId: z162.string().uuid()
|
|
4353
4432
|
});
|
|
4354
|
-
var DTOCreateDocumentationTabInput =
|
|
4433
|
+
var DTOCreateDocumentationTabInput = z162.object({
|
|
4355
4434
|
// New group persistent id
|
|
4356
|
-
persistentId:
|
|
4435
|
+
persistentId: z162.string().uuid(),
|
|
4357
4436
|
// If this is page, we will attempt to convert it to tab
|
|
4358
4437
|
// If this is tab group, we will add a new tab to it
|
|
4359
|
-
fromItemPersistentId:
|
|
4360
|
-
tabName:
|
|
4438
|
+
fromItemPersistentId: z162.string(),
|
|
4439
|
+
tabName: z162.string()
|
|
4361
4440
|
});
|
|
4362
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
4441
|
+
var DTODeleteDocumentationTabGroupInput = z162.object({
|
|
4363
4442
|
// Deleted group id
|
|
4364
|
-
id:
|
|
4443
|
+
id: z162.string()
|
|
4365
4444
|
});
|
|
4366
|
-
var DTODeleteDocumentationGroupInput =
|
|
4445
|
+
var DTODeleteDocumentationGroupInput = z162.object({
|
|
4367
4446
|
// Identifier
|
|
4368
|
-
id:
|
|
4447
|
+
id: z162.string(),
|
|
4369
4448
|
// Deletion options
|
|
4370
|
-
deleteSubtree:
|
|
4449
|
+
deleteSubtree: z162.boolean().default(false)
|
|
4371
4450
|
});
|
|
4372
4451
|
|
|
4373
4452
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4374
|
-
var SuccessPayload =
|
|
4375
|
-
success:
|
|
4453
|
+
var SuccessPayload = z163.object({
|
|
4454
|
+
success: z163.literal(true)
|
|
4376
4455
|
});
|
|
4377
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
4378
|
-
type:
|
|
4456
|
+
var DTODocumentationGroupCreateActionOutputV2 = z163.object({
|
|
4457
|
+
type: z163.literal("DocumentationGroupCreate"),
|
|
4379
4458
|
output: SuccessPayload
|
|
4380
4459
|
});
|
|
4381
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
4382
|
-
type:
|
|
4460
|
+
var DTODocumentationTabCreateActionOutputV2 = z163.object({
|
|
4461
|
+
type: z163.literal("DocumentationTabCreate"),
|
|
4383
4462
|
output: SuccessPayload
|
|
4384
4463
|
});
|
|
4385
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
4386
|
-
type:
|
|
4464
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z163.object({
|
|
4465
|
+
type: z163.literal("DocumentationGroupUpdate"),
|
|
4387
4466
|
output: SuccessPayload
|
|
4388
4467
|
});
|
|
4389
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
4390
|
-
type:
|
|
4468
|
+
var DTODocumentationGroupMoveActionOutputV2 = z163.object({
|
|
4469
|
+
type: z163.literal("DocumentationGroupMove"),
|
|
4391
4470
|
output: SuccessPayload
|
|
4392
4471
|
});
|
|
4393
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
4394
|
-
type:
|
|
4472
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z163.object({
|
|
4473
|
+
type: z163.literal("DocumentationGroupDuplicate"),
|
|
4395
4474
|
output: SuccessPayload
|
|
4396
4475
|
});
|
|
4397
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
4398
|
-
type:
|
|
4476
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z163.object({
|
|
4477
|
+
type: z163.literal("DocumentationGroupDelete"),
|
|
4399
4478
|
output: SuccessPayload
|
|
4400
4479
|
});
|
|
4401
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
4402
|
-
type:
|
|
4480
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z163.object({
|
|
4481
|
+
type: z163.literal("DocumentationTabGroupDelete"),
|
|
4403
4482
|
output: SuccessPayload
|
|
4404
4483
|
});
|
|
4405
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
4406
|
-
type:
|
|
4484
|
+
var DTODocumentationGroupCreateActionInputV2 = z163.object({
|
|
4485
|
+
type: z163.literal("DocumentationGroupCreate"),
|
|
4407
4486
|
input: DTOCreateDocumentationGroupInput
|
|
4408
4487
|
});
|
|
4409
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
4410
|
-
type:
|
|
4488
|
+
var DTODocumentationTabCreateActionInputV2 = z163.object({
|
|
4489
|
+
type: z163.literal("DocumentationTabCreate"),
|
|
4411
4490
|
input: DTOCreateDocumentationTabInput
|
|
4412
4491
|
});
|
|
4413
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
4414
|
-
type:
|
|
4492
|
+
var DTODocumentationGroupUpdateActionInputV2 = z163.object({
|
|
4493
|
+
type: z163.literal("DocumentationGroupUpdate"),
|
|
4415
4494
|
input: DTOUpdateDocumentationGroupInput
|
|
4416
4495
|
});
|
|
4417
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
4418
|
-
type:
|
|
4496
|
+
var DTODocumentationGroupMoveActionInputV2 = z163.object({
|
|
4497
|
+
type: z163.literal("DocumentationGroupMove"),
|
|
4419
4498
|
input: DTOMoveDocumentationGroupInput
|
|
4420
4499
|
});
|
|
4421
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
4422
|
-
type:
|
|
4500
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z163.object({
|
|
4501
|
+
type: z163.literal("DocumentationGroupDuplicate"),
|
|
4423
4502
|
input: DTODuplicateDocumentationGroupInput
|
|
4424
4503
|
});
|
|
4425
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
4426
|
-
type:
|
|
4504
|
+
var DTODocumentationGroupDeleteActionInputV2 = z163.object({
|
|
4505
|
+
type: z163.literal("DocumentationGroupDelete"),
|
|
4427
4506
|
input: DTODeleteDocumentationGroupInput
|
|
4428
4507
|
});
|
|
4429
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
4430
|
-
type:
|
|
4508
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z163.object({
|
|
4509
|
+
type: z163.literal("DocumentationTabGroupDelete"),
|
|
4431
4510
|
input: DTODeleteDocumentationTabGroupInput
|
|
4432
4511
|
});
|
|
4433
4512
|
|
|
4434
4513
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
4435
|
-
import { z as
|
|
4514
|
+
import { z as z165 } from "zod";
|
|
4436
4515
|
|
|
4437
4516
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
4438
|
-
import { z as
|
|
4439
|
-
var DocumentationColorV1 =
|
|
4440
|
-
aliasTo:
|
|
4441
|
-
value:
|
|
4517
|
+
import { z as z164 } from "zod";
|
|
4518
|
+
var DocumentationColorV1 = z164.object({
|
|
4519
|
+
aliasTo: z164.string().optional(),
|
|
4520
|
+
value: z164.string().optional()
|
|
4442
4521
|
});
|
|
4443
4522
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
4444
4523
|
foregroundColor: true,
|
|
@@ -4447,10 +4526,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
4447
4526
|
foregroundColor: DocumentationColorV1.optional(),
|
|
4448
4527
|
backgroundColor: DocumentationColorV1.optional()
|
|
4449
4528
|
});
|
|
4450
|
-
var DTODocumentationItemConfigurationV1 =
|
|
4451
|
-
showSidebar:
|
|
4452
|
-
isPrivate:
|
|
4453
|
-
isHidden:
|
|
4529
|
+
var DTODocumentationItemConfigurationV1 = z164.object({
|
|
4530
|
+
showSidebar: z164.boolean(),
|
|
4531
|
+
isPrivate: z164.boolean(),
|
|
4532
|
+
isHidden: z164.boolean(),
|
|
4454
4533
|
header: DTODocumentationItemHeaderV1
|
|
4455
4534
|
});
|
|
4456
4535
|
|
|
@@ -4464,130 +4543,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
4464
4543
|
data: true,
|
|
4465
4544
|
shortPersistentId: true
|
|
4466
4545
|
}).extend({
|
|
4467
|
-
title:
|
|
4468
|
-
isRoot:
|
|
4469
|
-
childrenIds:
|
|
4546
|
+
title: z165.string(),
|
|
4547
|
+
isRoot: z165.boolean(),
|
|
4548
|
+
childrenIds: z165.array(z165.string()),
|
|
4470
4549
|
groupBehavior: DocumentationGroupBehavior,
|
|
4471
|
-
shortPersistentId:
|
|
4472
|
-
type:
|
|
4550
|
+
shortPersistentId: z165.string(),
|
|
4551
|
+
type: z165.literal("Group")
|
|
4473
4552
|
});
|
|
4474
4553
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
4475
4554
|
configuration: DTODocumentationItemConfigurationV1
|
|
4476
4555
|
});
|
|
4477
4556
|
|
|
4478
4557
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4479
|
-
import { z as
|
|
4558
|
+
import { z as z167 } from "zod";
|
|
4480
4559
|
|
|
4481
4560
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
4482
|
-
import { z as
|
|
4561
|
+
import { z as z166 } from "zod";
|
|
4483
4562
|
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
4484
4563
|
data: true,
|
|
4485
4564
|
meta: true,
|
|
4486
4565
|
parentPersistentId: true,
|
|
4487
4566
|
sortOrder: true
|
|
4488
4567
|
}).extend({
|
|
4489
|
-
title:
|
|
4490
|
-
path:
|
|
4491
|
-
type:
|
|
4568
|
+
title: z166.string(),
|
|
4569
|
+
path: z166.string(),
|
|
4570
|
+
type: z166.literal("Page"),
|
|
4492
4571
|
configuration: DTODocumentationItemConfigurationV2
|
|
4493
4572
|
});
|
|
4494
4573
|
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
4495
|
-
var DTODocumentationHierarchyV2 =
|
|
4496
|
-
pages:
|
|
4497
|
-
groups:
|
|
4574
|
+
var DTODocumentationHierarchyV2 = z166.object({
|
|
4575
|
+
pages: z166.array(DTODocumentationPageStructureV2),
|
|
4576
|
+
groups: z166.array(DTODocumentationGroupStructureV2)
|
|
4498
4577
|
});
|
|
4499
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
4578
|
+
var DTOCreateDocumentationPageInputV2 = z166.object({
|
|
4500
4579
|
// Identifier
|
|
4501
|
-
persistentId:
|
|
4580
|
+
persistentId: z166.string().uuid(),
|
|
4502
4581
|
// Page properties
|
|
4503
|
-
title:
|
|
4582
|
+
title: z166.string(),
|
|
4504
4583
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4505
4584
|
// Page placement properties
|
|
4506
|
-
parentPersistentId:
|
|
4507
|
-
afterPersistentId:
|
|
4585
|
+
parentPersistentId: z166.string().uuid(),
|
|
4586
|
+
afterPersistentId: z166.string().uuid().nullish()
|
|
4508
4587
|
});
|
|
4509
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
4588
|
+
var DTOUpdateDocumentationPageInputV2 = z166.object({
|
|
4510
4589
|
// Identifier of the group to update
|
|
4511
|
-
id:
|
|
4590
|
+
id: z166.string(),
|
|
4512
4591
|
// Page properties
|
|
4513
|
-
title:
|
|
4592
|
+
title: z166.string().optional(),
|
|
4514
4593
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4515
4594
|
});
|
|
4516
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
4595
|
+
var DTOMoveDocumentationPageInputV2 = z166.object({
|
|
4517
4596
|
// Identifier of the group to update
|
|
4518
|
-
id:
|
|
4597
|
+
id: z166.string(),
|
|
4519
4598
|
// Page placement properties
|
|
4520
|
-
parentPersistentId:
|
|
4521
|
-
afterPersistentId:
|
|
4599
|
+
parentPersistentId: z166.string().uuid(),
|
|
4600
|
+
afterPersistentId: z166.string().uuid().nullish()
|
|
4522
4601
|
});
|
|
4523
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
4602
|
+
var DTODuplicateDocumentationPageInputV2 = z166.object({
|
|
4524
4603
|
// Identifier of the page to duplicate from
|
|
4525
|
-
id:
|
|
4604
|
+
id: z166.string(),
|
|
4526
4605
|
// New page persistent id
|
|
4527
|
-
persistentId:
|
|
4606
|
+
persistentId: z166.string().uuid(),
|
|
4528
4607
|
// Page placement properties
|
|
4529
|
-
parentPersistentId:
|
|
4530
|
-
afterPersistentId:
|
|
4608
|
+
parentPersistentId: z166.string().uuid(),
|
|
4609
|
+
afterPersistentId: z166.string().uuid().nullish()
|
|
4531
4610
|
});
|
|
4532
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
4611
|
+
var DTODeleteDocumentationPageInputV2 = z166.object({
|
|
4533
4612
|
// Identifier
|
|
4534
|
-
id:
|
|
4613
|
+
id: z166.string()
|
|
4535
4614
|
});
|
|
4536
4615
|
|
|
4537
4616
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4538
|
-
var SuccessPayload2 =
|
|
4539
|
-
success:
|
|
4617
|
+
var SuccessPayload2 = z167.object({
|
|
4618
|
+
success: z167.literal(true)
|
|
4540
4619
|
});
|
|
4541
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
4542
|
-
type:
|
|
4620
|
+
var DTODocumentationPageCreateActionOutputV2 = z167.object({
|
|
4621
|
+
type: z167.literal("DocumentationPageCreate"),
|
|
4543
4622
|
output: SuccessPayload2
|
|
4544
4623
|
});
|
|
4545
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
4546
|
-
type:
|
|
4624
|
+
var DTODocumentationPageUpdateActionOutputV2 = z167.object({
|
|
4625
|
+
type: z167.literal("DocumentationPageUpdate"),
|
|
4547
4626
|
output: SuccessPayload2
|
|
4548
4627
|
});
|
|
4549
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
4550
|
-
type:
|
|
4628
|
+
var DTODocumentationPageMoveActionOutputV2 = z167.object({
|
|
4629
|
+
type: z167.literal("DocumentationPageMove"),
|
|
4551
4630
|
output: SuccessPayload2
|
|
4552
4631
|
});
|
|
4553
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
4554
|
-
type:
|
|
4632
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z167.object({
|
|
4633
|
+
type: z167.literal("DocumentationPageDuplicate"),
|
|
4555
4634
|
output: SuccessPayload2
|
|
4556
4635
|
});
|
|
4557
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
4558
|
-
type:
|
|
4636
|
+
var DTODocumentationPageDeleteActionOutputV2 = z167.object({
|
|
4637
|
+
type: z167.literal("DocumentationPageDelete"),
|
|
4559
4638
|
output: SuccessPayload2
|
|
4560
4639
|
});
|
|
4561
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
4562
|
-
type:
|
|
4640
|
+
var DTODocumentationPageCreateActionInputV2 = z167.object({
|
|
4641
|
+
type: z167.literal("DocumentationPageCreate"),
|
|
4563
4642
|
input: DTOCreateDocumentationPageInputV2
|
|
4564
4643
|
});
|
|
4565
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
4566
|
-
type:
|
|
4644
|
+
var DTODocumentationPageUpdateActionInputV2 = z167.object({
|
|
4645
|
+
type: z167.literal("DocumentationPageUpdate"),
|
|
4567
4646
|
input: DTOUpdateDocumentationPageInputV2
|
|
4568
4647
|
});
|
|
4569
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
4570
|
-
type:
|
|
4648
|
+
var DTODocumentationPageMoveActionInputV2 = z167.object({
|
|
4649
|
+
type: z167.literal("DocumentationPageMove"),
|
|
4571
4650
|
input: DTOMoveDocumentationPageInputV2
|
|
4572
4651
|
});
|
|
4573
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
4574
|
-
type:
|
|
4652
|
+
var DTODocumentationPageDuplicateActionInputV2 = z167.object({
|
|
4653
|
+
type: z167.literal("DocumentationPageDuplicate"),
|
|
4575
4654
|
input: DTODuplicateDocumentationPageInputV2
|
|
4576
4655
|
});
|
|
4577
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
4578
|
-
type:
|
|
4656
|
+
var DTODocumentationPageDeleteActionInputV2 = z167.object({
|
|
4657
|
+
type: z167.literal("DocumentationPageDelete"),
|
|
4579
4658
|
input: DTODeleteDocumentationPageInputV2
|
|
4580
4659
|
});
|
|
4581
4660
|
|
|
4582
4661
|
// src/api/dto/elements/documentation/page-content.ts
|
|
4583
|
-
import { z as
|
|
4662
|
+
import { z as z168 } from "zod";
|
|
4584
4663
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
4585
|
-
var DTODocumentationPageContentGetResponse =
|
|
4664
|
+
var DTODocumentationPageContentGetResponse = z168.object({
|
|
4586
4665
|
pageContent: DTODocumentationPageContent
|
|
4587
4666
|
});
|
|
4588
4667
|
|
|
4589
4668
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
4590
|
-
import { z as
|
|
4669
|
+
import { z as z169 } from "zod";
|
|
4591
4670
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
4592
4671
|
data: true,
|
|
4593
4672
|
meta: true,
|
|
@@ -4595,130 +4674,137 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
4595
4674
|
sortOrder: true
|
|
4596
4675
|
}).extend({
|
|
4597
4676
|
configuration: DTODocumentationItemConfigurationV1,
|
|
4598
|
-
blocks:
|
|
4599
|
-
title:
|
|
4600
|
-
path:
|
|
4677
|
+
blocks: z169.array(PageBlockV1),
|
|
4678
|
+
title: z169.string(),
|
|
4679
|
+
path: z169.string()
|
|
4601
4680
|
});
|
|
4602
4681
|
|
|
4603
4682
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
4604
|
-
import { z as
|
|
4605
|
-
var
|
|
4683
|
+
import { z as z170 } from "zod";
|
|
4684
|
+
var DTOFigmaNodeOrigin = z170.object({
|
|
4685
|
+
sourceId: z170.string(),
|
|
4686
|
+
fileId: z170.string().optional(),
|
|
4687
|
+
parentName: z170.string().optional()
|
|
4688
|
+
});
|
|
4689
|
+
var DTOFigmaNodeData = z170.object({
|
|
4606
4690
|
// Id of the node in the Figma file
|
|
4607
|
-
figmaNodeId:
|
|
4691
|
+
figmaNodeId: z170.string(),
|
|
4608
4692
|
// Validity
|
|
4609
|
-
isValid:
|
|
4693
|
+
isValid: z170.boolean(),
|
|
4610
4694
|
// Asset data
|
|
4611
|
-
assetId:
|
|
4612
|
-
assetUrl:
|
|
4695
|
+
assetId: z170.string(),
|
|
4696
|
+
assetUrl: z170.string(),
|
|
4613
4697
|
// Asset metadata
|
|
4614
|
-
assetScale:
|
|
4615
|
-
assetWidth:
|
|
4616
|
-
assetHeight:
|
|
4698
|
+
assetScale: z170.number(),
|
|
4699
|
+
assetWidth: z170.number().optional(),
|
|
4700
|
+
assetHeight: z170.number().optional()
|
|
4617
4701
|
});
|
|
4618
4702
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
4619
|
-
data: true
|
|
4703
|
+
data: true,
|
|
4704
|
+
origin: true
|
|
4620
4705
|
}).extend({
|
|
4621
|
-
data: DTOFigmaNodeData
|
|
4706
|
+
data: DTOFigmaNodeData,
|
|
4707
|
+
origin: DTOFigmaNodeOrigin
|
|
4622
4708
|
});
|
|
4623
|
-
var DTOFigmaNodeRenderInput =
|
|
4709
|
+
var DTOFigmaNodeRenderInput = z170.object({
|
|
4624
4710
|
// Id of a design system's data source representing a linked Figma file
|
|
4625
|
-
sourceId:
|
|
4711
|
+
sourceId: z170.string(),
|
|
4626
4712
|
// Id of a node within the Figma file
|
|
4627
|
-
figmaFileNodeId:
|
|
4713
|
+
figmaFileNodeId: z170.string()
|
|
4628
4714
|
});
|
|
4629
4715
|
|
|
4630
4716
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
4631
|
-
import { z as
|
|
4632
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
4633
|
-
type:
|
|
4634
|
-
figmaNodes:
|
|
4717
|
+
import { z as z171 } from "zod";
|
|
4718
|
+
var DTOFigmaNodeRenderActionOutput = z171.object({
|
|
4719
|
+
type: z171.literal("FigmaNodeRender"),
|
|
4720
|
+
figmaNodes: z171.array(DTOFigmaNode)
|
|
4635
4721
|
});
|
|
4636
|
-
var DTOFigmaNodeRenderActionInput =
|
|
4637
|
-
type:
|
|
4722
|
+
var DTOFigmaNodeRenderActionInput = z171.object({
|
|
4723
|
+
type: z171.literal("FigmaNodeRender"),
|
|
4638
4724
|
input: DTOFigmaNodeRenderInput.array()
|
|
4639
4725
|
});
|
|
4640
4726
|
|
|
4641
4727
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4642
|
-
import { z as
|
|
4728
|
+
import { z as z173 } from "zod";
|
|
4643
4729
|
|
|
4644
4730
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
4645
|
-
import { z as
|
|
4731
|
+
import { z as z172 } from "zod";
|
|
4646
4732
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
4647
|
-
var DTOElementPropertyDefinition =
|
|
4648
|
-
id:
|
|
4649
|
-
designSystemVersionId:
|
|
4733
|
+
var DTOElementPropertyDefinition = z172.object({
|
|
4734
|
+
id: z172.string(),
|
|
4735
|
+
designSystemVersionId: z172.string(),
|
|
4650
4736
|
meta: ObjectMeta,
|
|
4651
|
-
persistentId:
|
|
4737
|
+
persistentId: z172.string(),
|
|
4652
4738
|
type: ElementPropertyTypeSchema,
|
|
4653
4739
|
targetElementType: ElementPropertyTargetType,
|
|
4654
|
-
codeName:
|
|
4655
|
-
options:
|
|
4740
|
+
codeName: z172.string().regex(CODE_NAME_REGEX2),
|
|
4741
|
+
options: z172.array(ElementPropertyDefinitionOption).optional(),
|
|
4656
4742
|
linkElementType: ElementPropertyLinkType.optional()
|
|
4657
4743
|
});
|
|
4658
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
4659
|
-
definitions:
|
|
4744
|
+
var DTOElementPropertyDefinitionsGetResponse = z172.object({
|
|
4745
|
+
definitions: z172.array(DTOElementPropertyDefinition)
|
|
4660
4746
|
});
|
|
4661
4747
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
4662
4748
|
id: true,
|
|
4663
4749
|
designSystemVersionId: true
|
|
4664
4750
|
});
|
|
4665
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
4666
|
-
id:
|
|
4667
|
-
name:
|
|
4668
|
-
description:
|
|
4669
|
-
codeName:
|
|
4670
|
-
options:
|
|
4751
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z172.object({
|
|
4752
|
+
id: z172.string(),
|
|
4753
|
+
name: z172.string().optional(),
|
|
4754
|
+
description: z172.string().optional(),
|
|
4755
|
+
codeName: z172.string().regex(CODE_NAME_REGEX2).optional(),
|
|
4756
|
+
options: z172.array(ElementPropertyDefinitionOption).optional()
|
|
4671
4757
|
});
|
|
4672
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
4673
|
-
id:
|
|
4758
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z172.object({
|
|
4759
|
+
id: z172.string()
|
|
4674
4760
|
});
|
|
4675
4761
|
|
|
4676
4762
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4677
|
-
var SuccessPayload3 =
|
|
4678
|
-
success:
|
|
4763
|
+
var SuccessPayload3 = z173.object({
|
|
4764
|
+
success: z173.literal(true)
|
|
4679
4765
|
});
|
|
4680
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
4681
|
-
type:
|
|
4766
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z173.object({
|
|
4767
|
+
type: z173.literal("PropertyDefinitionCreate"),
|
|
4682
4768
|
definition: DTOElementPropertyDefinition
|
|
4683
4769
|
});
|
|
4684
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
4685
|
-
type:
|
|
4770
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z173.object({
|
|
4771
|
+
type: z173.literal("PropertyDefinitionUpdate"),
|
|
4686
4772
|
definition: DTOElementPropertyDefinition
|
|
4687
4773
|
});
|
|
4688
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
4689
|
-
type:
|
|
4774
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z173.object({
|
|
4775
|
+
type: z173.literal("PropertyDefinitionDelete"),
|
|
4690
4776
|
output: SuccessPayload3
|
|
4691
4777
|
});
|
|
4692
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
4693
|
-
type:
|
|
4778
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z173.object({
|
|
4779
|
+
type: z173.literal("PropertyDefinitionCreate"),
|
|
4694
4780
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
4695
4781
|
});
|
|
4696
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
4697
|
-
type:
|
|
4782
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z173.object({
|
|
4783
|
+
type: z173.literal("PropertyDefinitionUpdate"),
|
|
4698
4784
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
4699
4785
|
});
|
|
4700
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
4701
|
-
type:
|
|
4786
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z173.object({
|
|
4787
|
+
type: z173.literal("PropertyDefinitionDelete"),
|
|
4702
4788
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
4703
4789
|
});
|
|
4704
4790
|
|
|
4705
4791
|
// src/api/dto/elements/properties/property-values.ts
|
|
4706
|
-
import { z as
|
|
4707
|
-
var DTOElementPropertyValue =
|
|
4708
|
-
id:
|
|
4709
|
-
designSystemVersionId:
|
|
4710
|
-
definitionId:
|
|
4711
|
-
targetElementId:
|
|
4712
|
-
value:
|
|
4713
|
-
valuePreview:
|
|
4792
|
+
import { z as z174 } from "zod";
|
|
4793
|
+
var DTOElementPropertyValue = z174.object({
|
|
4794
|
+
id: z174.string(),
|
|
4795
|
+
designSystemVersionId: z174.string(),
|
|
4796
|
+
definitionId: z174.string(),
|
|
4797
|
+
targetElementId: z174.string(),
|
|
4798
|
+
value: z174.union([z174.string(), z174.number(), z174.boolean()]).optional(),
|
|
4799
|
+
valuePreview: z174.string().optional()
|
|
4714
4800
|
});
|
|
4715
|
-
var DTOElementPropertyValuesGetResponse =
|
|
4716
|
-
values:
|
|
4801
|
+
var DTOElementPropertyValuesGetResponse = z174.object({
|
|
4802
|
+
values: z174.array(DTOElementPropertyValue)
|
|
4717
4803
|
});
|
|
4718
4804
|
|
|
4719
4805
|
// src/api/dto/elements/elements-action-v2.ts
|
|
4720
|
-
import { z as
|
|
4721
|
-
var DTOElementActionOutput =
|
|
4806
|
+
import { z as z175 } from "zod";
|
|
4807
|
+
var DTOElementActionOutput = z175.discriminatedUnion("type", [
|
|
4722
4808
|
// Documentation pages
|
|
4723
4809
|
DTODocumentationPageCreateActionOutputV2,
|
|
4724
4810
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -4740,7 +4826,7 @@ var DTOElementActionOutput = z172.discriminatedUnion("type", [
|
|
|
4740
4826
|
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
4741
4827
|
DTOPropertyDefinitionDeleteActionOutputV2
|
|
4742
4828
|
]);
|
|
4743
|
-
var DTOElementActionInput =
|
|
4829
|
+
var DTOElementActionInput = z175.discriminatedUnion("type", [
|
|
4744
4830
|
// Documentation pages
|
|
4745
4831
|
DTODocumentationPageCreateActionInputV2,
|
|
4746
4832
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -4764,72 +4850,73 @@ var DTOElementActionInput = z172.discriminatedUnion("type", [
|
|
|
4764
4850
|
]);
|
|
4765
4851
|
|
|
4766
4852
|
// src/api/dto/elements/get-elements-v2.ts
|
|
4767
|
-
import { z as
|
|
4768
|
-
var DTOElementsGetTypeFilter =
|
|
4769
|
-
var DTOElementsGetQuerySchema =
|
|
4770
|
-
types:
|
|
4853
|
+
import { z as z176 } from "zod";
|
|
4854
|
+
var DTOElementsGetTypeFilter = z176.enum(["FigmaNode"]);
|
|
4855
|
+
var DTOElementsGetQuerySchema = z176.object({
|
|
4856
|
+
types: z176.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
4771
4857
|
});
|
|
4772
|
-
var DTOElementsGetOutput =
|
|
4773
|
-
figmaNodes:
|
|
4858
|
+
var DTOElementsGetOutput = z176.object({
|
|
4859
|
+
figmaNodes: z176.array(DTOFigmaNode).optional()
|
|
4774
4860
|
});
|
|
4775
4861
|
|
|
4776
4862
|
// src/api/dto/workspaces/integrations.ts
|
|
4777
|
-
import { z as
|
|
4778
|
-
var DTOIntegration =
|
|
4779
|
-
id:
|
|
4780
|
-
workspaceId:
|
|
4781
|
-
type:
|
|
4782
|
-
createdAt:
|
|
4783
|
-
integrationCredentials:
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4863
|
+
import { z as z177 } from "zod";
|
|
4864
|
+
var DTOIntegration = z177.object({
|
|
4865
|
+
id: z177.string(),
|
|
4866
|
+
workspaceId: z177.string(),
|
|
4867
|
+
type: ExtendedIntegrationType,
|
|
4868
|
+
createdAt: z177.coerce.date(),
|
|
4869
|
+
integrationCredentials: z177.array(IntegrationCredentials).optional(),
|
|
4870
|
+
integrationDesignSystems: z177.array(IntegrationDesignSystem).optional()
|
|
4871
|
+
});
|
|
4872
|
+
var DTOIntegrationOAuthGetResponse = z177.object({
|
|
4873
|
+
url: z177.string()
|
|
4874
|
+
});
|
|
4875
|
+
var DTOIntegrationPostResponse = z177.object({
|
|
4789
4876
|
integration: DTOIntegration
|
|
4790
4877
|
});
|
|
4791
|
-
var DTOIntegrationsGetListResponse =
|
|
4878
|
+
var DTOIntegrationsGetListResponse = z177.object({
|
|
4792
4879
|
integrations: DTOIntegration.array()
|
|
4793
4880
|
});
|
|
4794
4881
|
|
|
4795
4882
|
// src/api/dto/workspaces/membership.ts
|
|
4796
|
-
import { z as
|
|
4883
|
+
import { z as z180 } from "zod";
|
|
4797
4884
|
|
|
4798
4885
|
// src/api/dto/workspaces/workspace.ts
|
|
4799
|
-
import { z as
|
|
4886
|
+
import { z as z179 } from "zod";
|
|
4800
4887
|
|
|
4801
4888
|
// src/api/dto/workspaces/npm-registry.ts
|
|
4802
|
-
import { z as
|
|
4803
|
-
var DTONpmRegistryConfig =
|
|
4889
|
+
import { z as z178 } from "zod";
|
|
4890
|
+
var DTONpmRegistryConfig = z178.object({
|
|
4804
4891
|
// Registry basic configuration
|
|
4805
4892
|
registryType: NpmRegistryType,
|
|
4806
|
-
registryUrl:
|
|
4807
|
-
customRegistryUrl:
|
|
4893
|
+
registryUrl: z178.string(),
|
|
4894
|
+
customRegistryUrl: z178.string().optional(),
|
|
4808
4895
|
// URL of Supernova NPM packages proxy
|
|
4809
|
-
proxyUrl:
|
|
4896
|
+
proxyUrl: z178.string(),
|
|
4810
4897
|
// Auth configuration
|
|
4811
4898
|
authType: NpmRegistryAuthType,
|
|
4812
|
-
accessToken:
|
|
4813
|
-
username:
|
|
4814
|
-
password:
|
|
4899
|
+
accessToken: z178.literal("redacted").optional(),
|
|
4900
|
+
username: z178.string().optional(),
|
|
4901
|
+
password: z178.literal("redacted").optional(),
|
|
4815
4902
|
// NPM package scopes for whih the proxy should be enabled
|
|
4816
|
-
enabledScopes:
|
|
4903
|
+
enabledScopes: z178.array(z178.string()),
|
|
4817
4904
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
4818
4905
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
4819
|
-
bypassProxy:
|
|
4906
|
+
bypassProxy: z178.boolean()
|
|
4820
4907
|
});
|
|
4821
4908
|
|
|
4822
4909
|
// src/api/dto/workspaces/workspace.ts
|
|
4823
|
-
var DTOWorkspace =
|
|
4824
|
-
id:
|
|
4910
|
+
var DTOWorkspace = z179.object({
|
|
4911
|
+
id: z179.string(),
|
|
4825
4912
|
profile: WorkspaceProfile,
|
|
4826
4913
|
subscription: Subscription,
|
|
4827
4914
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
4828
4915
|
});
|
|
4829
4916
|
|
|
4830
4917
|
// src/api/dto/workspaces/membership.ts
|
|
4831
|
-
var DTOWorkspaceRole =
|
|
4832
|
-
var DTOUserWorkspaceMembership =
|
|
4918
|
+
var DTOWorkspaceRole = z180.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
4919
|
+
var DTOUserWorkspaceMembership = z180.object({
|
|
4833
4920
|
// Workspace the user is a member of
|
|
4834
4921
|
workspace: DTOWorkspace,
|
|
4835
4922
|
// Assigned role the user has in the workspace
|
|
@@ -4839,14 +4926,14 @@ var DTOUserWorkspaceMembership = z177.object({
|
|
|
4839
4926
|
// when a workspace's subscription is downgraded to free tier
|
|
4840
4927
|
effectiveRole: DTOWorkspaceRole
|
|
4841
4928
|
});
|
|
4842
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
4843
|
-
membership:
|
|
4929
|
+
var DTOUserWorkspaceMembershipsResponse = z180.object({
|
|
4930
|
+
membership: z180.array(DTOUserWorkspaceMembership)
|
|
4844
4931
|
});
|
|
4845
4932
|
|
|
4846
4933
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
4847
|
-
import { z as
|
|
4848
|
-
var DocumentationHierarchySettings =
|
|
4849
|
-
routingVersion:
|
|
4934
|
+
import { z as z181 } from "zod";
|
|
4935
|
+
var DocumentationHierarchySettings = z181.object({
|
|
4936
|
+
routingVersion: z181.string()
|
|
4850
4937
|
});
|
|
4851
4938
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
4852
4939
|
doc.transact((trx) => {
|
|
@@ -4917,13 +5004,13 @@ function getInternalSettingsYMap(doc) {
|
|
|
4917
5004
|
}
|
|
4918
5005
|
|
|
4919
5006
|
// src/yjs/design-system-content/item-configuration.ts
|
|
4920
|
-
import { z as
|
|
4921
|
-
var DTODocumentationPageRoomHeaderData =
|
|
4922
|
-
title:
|
|
5007
|
+
import { z as z182 } from "zod";
|
|
5008
|
+
var DTODocumentationPageRoomHeaderData = z182.object({
|
|
5009
|
+
title: z182.string(),
|
|
4923
5010
|
configuration: DTODocumentationItemConfigurationV2
|
|
4924
5011
|
});
|
|
4925
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
4926
|
-
title:
|
|
5012
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z182.object({
|
|
5013
|
+
title: z182.string().optional(),
|
|
4927
5014
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
4928
5015
|
});
|
|
4929
5016
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -4974,7 +5061,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
4974
5061
|
header: rawHeader
|
|
4975
5062
|
};
|
|
4976
5063
|
return {
|
|
4977
|
-
title:
|
|
5064
|
+
title: z182.string().parse(title),
|
|
4978
5065
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
4979
5066
|
};
|
|
4980
5067
|
}
|
|
@@ -4984,9 +5071,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
4984
5071
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
4985
5072
|
|
|
4986
5073
|
// src/yjs/docs-editor/model/page.ts
|
|
4987
|
-
import { z as
|
|
4988
|
-
var DocumentationPageEditorModel =
|
|
4989
|
-
blocks:
|
|
5074
|
+
import { z as z183 } from "zod";
|
|
5075
|
+
var DocumentationPageEditorModel = z183.object({
|
|
5076
|
+
blocks: z183.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
4990
5077
|
});
|
|
4991
5078
|
|
|
4992
5079
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -7958,7 +8045,7 @@ var blocks = [
|
|
|
7958
8045
|
|
|
7959
8046
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
7960
8047
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
7961
|
-
import { z as
|
|
8048
|
+
import { z as z184 } from "zod";
|
|
7962
8049
|
function yDocToPage(yDoc, definitions) {
|
|
7963
8050
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
7964
8051
|
}
|
|
@@ -8001,7 +8088,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
8001
8088
|
return null;
|
|
8002
8089
|
return {
|
|
8003
8090
|
id,
|
|
8004
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
8091
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z184.string()) ?? "",
|
|
8005
8092
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
8006
8093
|
};
|
|
8007
8094
|
}
|
|
@@ -8036,7 +8123,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
8036
8123
|
});
|
|
8037
8124
|
}
|
|
8038
8125
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
8039
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8126
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z184.string());
|
|
8040
8127
|
if (!definitionId) {
|
|
8041
8128
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
8042
8129
|
return [];
|
|
@@ -8078,7 +8165,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
8078
8165
|
if (!id)
|
|
8079
8166
|
return null;
|
|
8080
8167
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8081
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8168
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z184.string().optional()));
|
|
8082
8169
|
return {
|
|
8083
8170
|
// TODO Artem: indent
|
|
8084
8171
|
id,
|
|
@@ -8205,10 +8292,10 @@ function parseRichTextAttribute(mark) {
|
|
|
8205
8292
|
return null;
|
|
8206
8293
|
}
|
|
8207
8294
|
function parseProsemirrorLink(mark) {
|
|
8208
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
8295
|
+
const href = getProsemirrorAttribute(mark, "href", z184.string().optional());
|
|
8209
8296
|
if (!href)
|
|
8210
8297
|
return null;
|
|
8211
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
8298
|
+
const target = getProsemirrorAttribute(mark, "target", z184.string().optional());
|
|
8212
8299
|
const openInNewTab = target === "_blank";
|
|
8213
8300
|
if (href.startsWith("@")) {
|
|
8214
8301
|
return {
|
|
@@ -8231,7 +8318,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8231
8318
|
if (!id)
|
|
8232
8319
|
return null;
|
|
8233
8320
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8234
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
8321
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z184.boolean().optional()) !== false;
|
|
8235
8322
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
8236
8323
|
if (!tableChild) {
|
|
8237
8324
|
return emptyTable(id, variantId, 0);
|
|
@@ -8278,9 +8365,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
8278
8365
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
8279
8366
|
if (!id)
|
|
8280
8367
|
return null;
|
|
8281
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
8368
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z184.string().optional());
|
|
8282
8369
|
let columnWidth;
|
|
8283
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
8370
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z184.array(z184.number()).optional());
|
|
8284
8371
|
if (columnWidthArray) {
|
|
8285
8372
|
columnWidth = columnWidthArray[0];
|
|
8286
8373
|
}
|
|
@@ -8318,7 +8405,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8318
8405
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
8319
8406
|
};
|
|
8320
8407
|
case "image":
|
|
8321
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8408
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z184.string());
|
|
8322
8409
|
if (!items)
|
|
8323
8410
|
return null;
|
|
8324
8411
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -8423,7 +8510,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
8423
8510
|
};
|
|
8424
8511
|
}
|
|
8425
8512
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
8426
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8513
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z184.string());
|
|
8427
8514
|
if (!itemsString)
|
|
8428
8515
|
return null;
|
|
8429
8516
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -8435,18 +8522,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
8435
8522
|
}
|
|
8436
8523
|
function parseAppearance(prosemirrorNode) {
|
|
8437
8524
|
let appearance = {};
|
|
8438
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
8525
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z184.string().optional());
|
|
8439
8526
|
if (rawAppearanceString) {
|
|
8440
8527
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
8441
8528
|
if (parsedAppearance.success) {
|
|
8442
8529
|
appearance = parsedAppearance.data;
|
|
8443
8530
|
}
|
|
8444
8531
|
}
|
|
8445
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
8532
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z184.number().optional());
|
|
8446
8533
|
if (columns) {
|
|
8447
8534
|
appearance.numberOfColumns = columns;
|
|
8448
8535
|
}
|
|
8449
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
8536
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z184.string().optional());
|
|
8450
8537
|
if (backgroundColor) {
|
|
8451
8538
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
8452
8539
|
if (parsedColor.success) {
|
|
@@ -8537,13 +8624,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
8537
8624
|
}
|
|
8538
8625
|
}
|
|
8539
8626
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
8540
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
8627
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z184.string());
|
|
8541
8628
|
if (!id)
|
|
8542
8629
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
8543
8630
|
return id;
|
|
8544
8631
|
}
|
|
8545
8632
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
8546
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
8633
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z184.string()));
|
|
8547
8634
|
}
|
|
8548
8635
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8549
8636
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -8586,6 +8673,8 @@ export {
|
|
|
8586
8673
|
DTODesignSystemVersion,
|
|
8587
8674
|
DTODesignSystemVersionCreationResponse,
|
|
8588
8675
|
DTODesignSystemVersionGetResponse,
|
|
8676
|
+
DTODesignSystemVersionJobStatusResponse,
|
|
8677
|
+
DTODesignSystemVersionJobsResponse,
|
|
8589
8678
|
DTODesignSystemVersionsListResponse,
|
|
8590
8679
|
DTODocumentationGroupCreateActionInputV2,
|
|
8591
8680
|
DTODocumentationGroupCreateActionOutputV2,
|
|
@@ -8650,6 +8739,7 @@ export {
|
|
|
8650
8739
|
DTOExporterPropertyListResponse,
|
|
8651
8740
|
DTOFigmaNode,
|
|
8652
8741
|
DTOFigmaNodeData,
|
|
8742
|
+
DTOFigmaNodeOrigin,
|
|
8653
8743
|
DTOFigmaNodeRenderActionInput,
|
|
8654
8744
|
DTOFigmaNodeRenderActionOutput,
|
|
8655
8745
|
DTOFigmaNodeRenderInput,
|
|
@@ -8720,7 +8810,7 @@ export {
|
|
|
8720
8810
|
prosemirrorNodesToBlocks,
|
|
8721
8811
|
serializeAsCustomBlock,
|
|
8722
8812
|
shallowProsemirrorNodeToBlock,
|
|
8723
|
-
|
|
8813
|
+
validateDesignSystemVersion,
|
|
8724
8814
|
validateSsoPayload,
|
|
8725
8815
|
yDocToPage,
|
|
8726
8816
|
yXmlFragmentToPage,
|