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