@supernova-studio/client 1.16.1 → 1.17.0
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 +693 -479
- package/dist/index.d.ts +693 -479
- package/dist/index.js +134 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1363 -1247
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4401,6 +4401,7 @@ var WorkspaceUntypedData = z131.object({
|
|
|
4401
4401
|
});
|
|
4402
4402
|
var WorkspaceRoleSchema = z132.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4403
4403
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4404
|
+
var WorkspaceSeatType = z132.enum(["Full", "Builder", "None"]);
|
|
4404
4405
|
var MAX_MEMBERS_COUNT = 100;
|
|
4405
4406
|
var UserInvite = z133.object({
|
|
4406
4407
|
email: z133.string().email().trim().transform((value) => value.toLowerCase()),
|
|
@@ -4471,6 +4472,7 @@ var WorkspaceInvitation = z138.object({
|
|
|
4471
4472
|
createdAt: z138.coerce.date(),
|
|
4472
4473
|
resentAt: z138.coerce.date().nullish(),
|
|
4473
4474
|
role: z138.nativeEnum(WorkspaceRole),
|
|
4475
|
+
seatType: WorkspaceSeatType,
|
|
4474
4476
|
workspaceId: z138.string(),
|
|
4475
4477
|
invitedBy: z138.string()
|
|
4476
4478
|
});
|
|
@@ -4596,6 +4598,7 @@ var WorkspaceMembership = z147.object({
|
|
|
4596
4598
|
userId: z147.string(),
|
|
4597
4599
|
workspaceId: z147.string(),
|
|
4598
4600
|
workspaceRole: z147.nativeEnum(WorkspaceRole),
|
|
4601
|
+
seatType: WorkspaceSeatType,
|
|
4599
4602
|
notificationSettings: UserNotificationSettings,
|
|
4600
4603
|
isPrimaryOwner: z147.boolean().nullish()
|
|
4601
4604
|
});
|
|
@@ -4604,6 +4607,7 @@ var UpdateMembershipRolesInput = z147.object({
|
|
|
4604
4607
|
z147.object({
|
|
4605
4608
|
userId: z147.string(),
|
|
4606
4609
|
role: z147.nativeEnum(WorkspaceRole),
|
|
4610
|
+
seatType: WorkspaceSeatType.optional(),
|
|
4607
4611
|
isPrimaryOwner: z147.boolean().optional()
|
|
4608
4612
|
})
|
|
4609
4613
|
)
|
|
@@ -5259,13 +5263,19 @@ var ForgeProjectRoom = Entity.extend({
|
|
|
5259
5263
|
});
|
|
5260
5264
|
var ForgeProjectRoomInitialState = z183.object({
|
|
5261
5265
|
artifacts: z183.array(ForgeProjectArtifact),
|
|
5262
|
-
features: z183.array(ProjectFeature)
|
|
5266
|
+
features: z183.array(ProjectFeature),
|
|
5267
|
+
artifactSections: z183.array(ForgeSection),
|
|
5268
|
+
featureSections: z183.array(ForgeSection)
|
|
5263
5269
|
});
|
|
5264
5270
|
var ForgeProjectRoomUpdate = z183.object({
|
|
5265
5271
|
artifacts: z183.array(ForgeProjectArtifact).optional(),
|
|
5266
5272
|
artifactIdsToDelete: z183.array(z183.string()).optional(),
|
|
5267
5273
|
features: z183.array(ProjectFeature).optional(),
|
|
5268
5274
|
featureIdsToDelete: z183.array(z183.string()).optional(),
|
|
5275
|
+
artifactSections: z183.array(ForgeSection).optional(),
|
|
5276
|
+
artifactSectionIdsToDelete: z183.array(z183.string()).optional(),
|
|
5277
|
+
featureSections: z183.array(ForgeSection).optional(),
|
|
5278
|
+
featureSectionIdsToDelete: z183.array(z183.string()).optional(),
|
|
5269
5279
|
executedTransactionIds: z183.string().array().optional()
|
|
5270
5280
|
});
|
|
5271
5281
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
@@ -6351,7 +6361,7 @@ var DTOPagination = z218.object({
|
|
|
6351
6361
|
});
|
|
6352
6362
|
|
|
6353
6363
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6354
|
-
import { z as
|
|
6364
|
+
import { z as z263 } from "zod";
|
|
6355
6365
|
|
|
6356
6366
|
// src/api/dto/design-systems/brand.ts
|
|
6357
6367
|
import { z as z219 } from "zod";
|
|
@@ -7007,7 +7017,7 @@ var DTOStorybookEntryListResponse = z236.object({ entries: z236.array(DTOStorybo
|
|
|
7007
7017
|
var DTOStorybookEntryResponse = z236.object({ entry: DTOStorybookEntry });
|
|
7008
7018
|
|
|
7009
7019
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
7010
|
-
import { z as
|
|
7020
|
+
import { z as z248 } from "zod";
|
|
7011
7021
|
|
|
7012
7022
|
// src/api/dto/workspaces/billing.ts
|
|
7013
7023
|
import z237 from "zod";
|
|
@@ -7018,250 +7028,268 @@ var DTOBillingCreditsSpendResponse = z237.object({
|
|
|
7018
7028
|
hasSpentCredits: z237.boolean()
|
|
7019
7029
|
});
|
|
7020
7030
|
|
|
7031
|
+
// src/api/dto/workspaces/enums.ts
|
|
7032
|
+
import z238 from "zod";
|
|
7033
|
+
var DTOWorkspaceRole = z238.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
7034
|
+
var DTOWorkspaceSeatType = z238.enum(["Full", "Builder", "None"]);
|
|
7035
|
+
|
|
7021
7036
|
// src/api/dto/workspaces/git.ts
|
|
7022
|
-
import { z as
|
|
7023
|
-
var DTOGitOrganization =
|
|
7024
|
-
id:
|
|
7025
|
-
name:
|
|
7026
|
-
url:
|
|
7027
|
-
slug:
|
|
7028
|
-
});
|
|
7029
|
-
var DTOGitProject =
|
|
7030
|
-
id:
|
|
7031
|
-
name:
|
|
7032
|
-
url:
|
|
7033
|
-
slug:
|
|
7034
|
-
});
|
|
7035
|
-
var DTOGitRepository =
|
|
7036
|
-
id:
|
|
7037
|
-
name:
|
|
7038
|
-
url:
|
|
7039
|
-
slug:
|
|
7040
|
-
defaultBranch:
|
|
7041
|
-
});
|
|
7042
|
-
var DTOGitBranch =
|
|
7043
|
-
name:
|
|
7044
|
-
lastCommitId:
|
|
7037
|
+
import { z as z239 } from "zod";
|
|
7038
|
+
var DTOGitOrganization = z239.object({
|
|
7039
|
+
id: z239.string(),
|
|
7040
|
+
name: z239.string(),
|
|
7041
|
+
url: z239.string(),
|
|
7042
|
+
slug: z239.string()
|
|
7043
|
+
});
|
|
7044
|
+
var DTOGitProject = z239.object({
|
|
7045
|
+
id: z239.string(),
|
|
7046
|
+
name: z239.string(),
|
|
7047
|
+
url: z239.string(),
|
|
7048
|
+
slug: z239.string()
|
|
7049
|
+
});
|
|
7050
|
+
var DTOGitRepository = z239.object({
|
|
7051
|
+
id: z239.string(),
|
|
7052
|
+
name: z239.string(),
|
|
7053
|
+
url: z239.string(),
|
|
7054
|
+
slug: z239.string(),
|
|
7055
|
+
defaultBranch: z239.string().optional()
|
|
7056
|
+
});
|
|
7057
|
+
var DTOGitBranch = z239.object({
|
|
7058
|
+
name: z239.string(),
|
|
7059
|
+
lastCommitId: z239.string()
|
|
7045
7060
|
});
|
|
7046
7061
|
|
|
7047
7062
|
// src/api/dto/workspaces/integrations.ts
|
|
7048
|
-
import { z as
|
|
7063
|
+
import { z as z240 } from "zod";
|
|
7049
7064
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
7050
7065
|
accessToken: true,
|
|
7051
7066
|
refreshToken: true
|
|
7052
7067
|
});
|
|
7053
|
-
var DTOIntegration =
|
|
7054
|
-
id:
|
|
7055
|
-
workspaceId:
|
|
7068
|
+
var DTOIntegration = z240.object({
|
|
7069
|
+
id: z240.string(),
|
|
7070
|
+
workspaceId: z240.string(),
|
|
7056
7071
|
type: ExtendedIntegrationType,
|
|
7057
|
-
createdAt:
|
|
7058
|
-
integrationCredentials:
|
|
7059
|
-
integrationDesignSystems:
|
|
7072
|
+
createdAt: z240.coerce.date(),
|
|
7073
|
+
integrationCredentials: z240.array(DTOIntegrationCredentials).optional(),
|
|
7074
|
+
integrationDesignSystems: z240.array(IntegrationDesignSystem).optional()
|
|
7060
7075
|
});
|
|
7061
|
-
var DTOIntegrationOAuthGetResponse =
|
|
7062
|
-
url:
|
|
7076
|
+
var DTOIntegrationOAuthGetResponse = z240.object({
|
|
7077
|
+
url: z240.string()
|
|
7063
7078
|
});
|
|
7064
|
-
var DTOIntegrationPostResponse =
|
|
7079
|
+
var DTOIntegrationPostResponse = z240.object({
|
|
7065
7080
|
integration: DTOIntegration
|
|
7066
7081
|
});
|
|
7067
|
-
var DTOIntegrationsGetListResponse =
|
|
7082
|
+
var DTOIntegrationsGetListResponse = z240.object({
|
|
7068
7083
|
integrations: DTOIntegration.array()
|
|
7069
7084
|
});
|
|
7070
7085
|
|
|
7071
7086
|
// src/api/dto/workspaces/invitations.ts
|
|
7072
|
-
import { z as
|
|
7073
|
-
var DTOWorkspaceInvitationInput =
|
|
7074
|
-
email:
|
|
7075
|
-
role: WorkspaceRoleSchema
|
|
7087
|
+
import { z as z241 } from "zod";
|
|
7088
|
+
var DTOWorkspaceInvitationInput = z241.object({
|
|
7089
|
+
email: z241.string().email(),
|
|
7090
|
+
role: WorkspaceRoleSchema,
|
|
7091
|
+
seatType: DTOWorkspaceSeatType.optional()
|
|
7076
7092
|
});
|
|
7077
|
-
var DTOWorkspaceInvitationsListInput =
|
|
7093
|
+
var DTOWorkspaceInvitationsListInput = z241.object({
|
|
7078
7094
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
7079
|
-
designSystemId:
|
|
7095
|
+
designSystemId: z241.string().optional()
|
|
7080
7096
|
});
|
|
7081
|
-
var DTOWorkspaceInvitationsResponse =
|
|
7097
|
+
var DTOWorkspaceInvitationsResponse = z241.object({
|
|
7082
7098
|
invitations: WorkspaceInvitation.array()
|
|
7083
7099
|
});
|
|
7084
|
-
var DTOWorkspaceInviteUpdate =
|
|
7085
|
-
role: WorkspaceRoleSchema
|
|
7100
|
+
var DTOWorkspaceInviteUpdate = z241.object({
|
|
7101
|
+
role: WorkspaceRoleSchema,
|
|
7102
|
+
seatType: DTOWorkspaceSeatType.optional()
|
|
7086
7103
|
});
|
|
7087
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
7104
|
+
var DTOWorkspaceInvitationUpdateResponse = z241.object({
|
|
7088
7105
|
invitation: WorkspaceInvitation
|
|
7089
7106
|
});
|
|
7090
7107
|
|
|
7091
7108
|
// src/api/dto/workspaces/membership.ts
|
|
7092
|
-
import { z as
|
|
7109
|
+
import { z as z244 } from "zod";
|
|
7093
7110
|
|
|
7094
7111
|
// src/api/dto/workspaces/workspace.ts
|
|
7095
|
-
import { z as
|
|
7112
|
+
import { z as z243 } from "zod";
|
|
7096
7113
|
|
|
7097
7114
|
// src/api/dto/workspaces/npm-registry.ts
|
|
7098
|
-
import { z as
|
|
7115
|
+
import { z as z242 } from "zod";
|
|
7099
7116
|
var DTONpmRegistryConfigConstants = {
|
|
7100
7117
|
passwordPlaceholder: "redacted"
|
|
7101
7118
|
};
|
|
7102
|
-
var DTONpmRegistryConfig =
|
|
7119
|
+
var DTONpmRegistryConfig = z242.object({
|
|
7103
7120
|
// Registry basic configuration
|
|
7104
7121
|
registryType: NpmRegistryType,
|
|
7105
|
-
registryUrl:
|
|
7106
|
-
customRegistryUrl:
|
|
7122
|
+
registryUrl: z242.string(),
|
|
7123
|
+
customRegistryUrl: z242.string().optional(),
|
|
7107
7124
|
// URL of Supernova NPM packages proxy
|
|
7108
|
-
proxyUrl:
|
|
7125
|
+
proxyUrl: z242.string(),
|
|
7109
7126
|
// Auth configuration
|
|
7110
7127
|
authType: NpmRegistryAuthType,
|
|
7111
|
-
accessToken:
|
|
7112
|
-
username:
|
|
7113
|
-
password:
|
|
7128
|
+
accessToken: z242.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
7129
|
+
username: z242.string().optional(),
|
|
7130
|
+
password: z242.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
7114
7131
|
// NPM package scopes for whih the proxy should be enabled
|
|
7115
|
-
enabledScopes:
|
|
7132
|
+
enabledScopes: z242.array(z242.string()),
|
|
7116
7133
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
7117
7134
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
7118
|
-
bypassProxy:
|
|
7135
|
+
bypassProxy: z242.boolean()
|
|
7119
7136
|
});
|
|
7120
|
-
var DTONpmRegistryAccessTokenResponse =
|
|
7121
|
-
version:
|
|
7122
|
-
accessToken:
|
|
7123
|
-
registryUrl:
|
|
7137
|
+
var DTONpmRegistryAccessTokenResponse = z242.object({
|
|
7138
|
+
version: z242.number(),
|
|
7139
|
+
accessToken: z242.string().optional(),
|
|
7140
|
+
registryUrl: z242.string()
|
|
7124
7141
|
});
|
|
7125
|
-
var DTOUpdateRegistryInput =
|
|
7142
|
+
var DTOUpdateRegistryInput = z242.object({
|
|
7126
7143
|
registryType: nullishToOptional(NpmRegistryType),
|
|
7127
7144
|
authType: nullishToOptional(NpmRegistryAuthType),
|
|
7128
|
-
enabledScopes: nullishToOptional(
|
|
7129
|
-
customRegistryUrl: nullishToOptional(
|
|
7130
|
-
bypassProxy: nullishToOptional(
|
|
7131
|
-
npmProxyVersion: nullishToOptional(
|
|
7132
|
-
authHeaderName: nullishToOptional(
|
|
7133
|
-
authHeaderValue: nullishToOptional(
|
|
7134
|
-
accessToken: nullishToOptional(
|
|
7135
|
-
username: nullishToOptional(
|
|
7136
|
-
password: nullishToOptional(
|
|
7137
|
-
});
|
|
7138
|
-
var DTOUpdateRegistryOutput =
|
|
7145
|
+
enabledScopes: nullishToOptional(z242.array(z242.string())),
|
|
7146
|
+
customRegistryUrl: nullishToOptional(z242.string()),
|
|
7147
|
+
bypassProxy: nullishToOptional(z242.boolean()),
|
|
7148
|
+
npmProxyVersion: nullishToOptional(z242.number()),
|
|
7149
|
+
authHeaderName: nullishToOptional(z242.string()),
|
|
7150
|
+
authHeaderValue: nullishToOptional(z242.string()),
|
|
7151
|
+
accessToken: nullishToOptional(z242.string()),
|
|
7152
|
+
username: nullishToOptional(z242.string()),
|
|
7153
|
+
password: nullishToOptional(z242.string())
|
|
7154
|
+
});
|
|
7155
|
+
var DTOUpdateRegistryOutput = z242.object({
|
|
7139
7156
|
npmRegistrySettings: DTONpmRegistryConfig
|
|
7140
7157
|
});
|
|
7141
7158
|
|
|
7142
7159
|
// src/api/dto/workspaces/workspace.ts
|
|
7143
7160
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
7144
|
-
var DTOWorkspace =
|
|
7145
|
-
id:
|
|
7161
|
+
var DTOWorkspace = z243.object({
|
|
7162
|
+
id: z243.string(),
|
|
7146
7163
|
profile: DTOWorkspaceProfile,
|
|
7147
7164
|
subscription: Subscription,
|
|
7148
7165
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
7149
7166
|
});
|
|
7150
|
-
var DTOWorkspaceCreateInput =
|
|
7151
|
-
name:
|
|
7167
|
+
var DTOWorkspaceCreateInput = z243.object({
|
|
7168
|
+
name: z243.string()
|
|
7152
7169
|
});
|
|
7153
|
-
var DTOWorkspaceResponse =
|
|
7170
|
+
var DTOWorkspaceResponse = z243.object({
|
|
7154
7171
|
workspace: DTOWorkspace
|
|
7155
7172
|
});
|
|
7156
7173
|
|
|
7157
7174
|
// src/api/dto/workspaces/membership.ts
|
|
7158
|
-
var
|
|
7159
|
-
var DTOUserWorkspaceMembership = z243.object({
|
|
7175
|
+
var DTOUserWorkspaceMembership = z244.object({
|
|
7160
7176
|
// Workspace the user is a member of
|
|
7161
7177
|
workspace: DTOWorkspace,
|
|
7162
|
-
// Assigned role the user has in the workspace
|
|
7178
|
+
// Assigned and stored role the user has in the workspace
|
|
7163
7179
|
role: DTOWorkspaceRole,
|
|
7164
7180
|
// Role that determines actual permissions the user has in the workspace
|
|
7165
7181
|
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
7166
7182
|
// when a workspace's subscription is downgraded to free tier
|
|
7167
|
-
effectiveRole: DTOWorkspaceRole
|
|
7183
|
+
effectiveRole: DTOWorkspaceRole,
|
|
7184
|
+
// Assigned and stored seat type the user has in the workspace
|
|
7185
|
+
seatType: DTOWorkspaceSeatType,
|
|
7186
|
+
// Seat type that determines actual permissions the user has in the workspace.
|
|
7187
|
+
effectiveSeatType: DTOWorkspaceSeatType
|
|
7168
7188
|
});
|
|
7169
|
-
var DTOWorkspaceMember =
|
|
7189
|
+
var DTOWorkspaceMember = z244.object({
|
|
7170
7190
|
user: User,
|
|
7171
|
-
role:
|
|
7172
|
-
effectiveRole:
|
|
7191
|
+
role: DTOWorkspaceRole,
|
|
7192
|
+
effectiveRole: DTOWorkspaceRole,
|
|
7193
|
+
seatType: DTOWorkspaceSeatType,
|
|
7194
|
+
effectiveSeatType: DTOWorkspaceSeatType
|
|
7173
7195
|
});
|
|
7174
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
7175
|
-
membership:
|
|
7196
|
+
var DTOUserWorkspaceMembershipsResponse = z244.object({
|
|
7197
|
+
membership: z244.array(DTOUserWorkspaceMembership)
|
|
7176
7198
|
});
|
|
7177
|
-
var DTOWorkspaceMembersListResponse =
|
|
7178
|
-
members:
|
|
7199
|
+
var DTOWorkspaceMembersListResponse = z244.object({
|
|
7200
|
+
members: z244.array(DTOWorkspaceMember)
|
|
7179
7201
|
});
|
|
7180
7202
|
|
|
7181
7203
|
// src/api/dto/workspaces/subscription.ts
|
|
7182
|
-
import
|
|
7183
|
-
var DTOSubscription =
|
|
7184
|
-
stripeSubscriptionId:
|
|
7185
|
-
stripeCustomerId:
|
|
7204
|
+
import z245 from "zod";
|
|
7205
|
+
var DTOSubscription = z245.object({
|
|
7206
|
+
stripeSubscriptionId: z245.string().optional(),
|
|
7207
|
+
stripeCustomerId: z245.string().optional(),
|
|
7186
7208
|
status: InternalStatusSchema.optional(),
|
|
7187
7209
|
subscriptionStatus: StripeSubscriptionStatusSchema.optional(),
|
|
7188
7210
|
internalStatus: InternalStatusSchema.optional(),
|
|
7189
7211
|
product: ProductCodeSchema,
|
|
7190
7212
|
featuresSummary: FeaturesSummary.optional(),
|
|
7191
|
-
stripeProductDescription:
|
|
7192
|
-
stripeProductFeatures:
|
|
7193
|
-
stripeProductAdditionalFeatures:
|
|
7194
|
-
stripeSubscriptionMainItemId:
|
|
7195
|
-
planPriceId:
|
|
7213
|
+
stripeProductDescription: z245.string().optional(),
|
|
7214
|
+
stripeProductFeatures: z245.array(z245.string()).optional(),
|
|
7215
|
+
stripeProductAdditionalFeatures: z245.array(z245.string()).optional(),
|
|
7216
|
+
stripeSubscriptionMainItemId: z245.string().optional(),
|
|
7217
|
+
planPriceId: z245.string(),
|
|
7196
7218
|
planInterval: BillingIntervalSchema,
|
|
7197
|
-
isPricePerCreator:
|
|
7198
|
-
legacyVersion:
|
|
7199
|
-
seats:
|
|
7200
|
-
seatLimit:
|
|
7201
|
-
currentPeriodStart:
|
|
7202
|
-
currentPeriodEnd:
|
|
7203
|
-
subscriptionStatusUpdatedAt:
|
|
7204
|
-
cancelAt:
|
|
7219
|
+
isPricePerCreator: z245.boolean().optional(),
|
|
7220
|
+
legacyVersion: z245.string().optional(),
|
|
7221
|
+
seats: z245.number(),
|
|
7222
|
+
seatLimit: z245.number(),
|
|
7223
|
+
currentPeriodStart: z245.string().optional(),
|
|
7224
|
+
currentPeriodEnd: z245.string().optional(),
|
|
7225
|
+
subscriptionStatusUpdatedAt: z245.string().optional(),
|
|
7226
|
+
cancelAt: z245.string().nullish(),
|
|
7205
7227
|
card: CardSchema.optional(),
|
|
7206
7228
|
// New
|
|
7207
|
-
amount:
|
|
7208
|
-
isTrial:
|
|
7229
|
+
amount: z245.number(),
|
|
7230
|
+
isTrial: z245.boolean(),
|
|
7209
7231
|
billingType: BillingTypeSchema.optional(),
|
|
7210
|
-
daysUntilDue:
|
|
7211
|
-
creditBalance:
|
|
7212
|
-
oneTime:
|
|
7213
|
-
total:
|
|
7214
|
-
used:
|
|
7215
|
-
balance:
|
|
7232
|
+
daysUntilDue: z245.number().optional(),
|
|
7233
|
+
creditBalance: z245.object({
|
|
7234
|
+
oneTime: z245.object({
|
|
7235
|
+
total: z245.number(),
|
|
7236
|
+
used: z245.number(),
|
|
7237
|
+
balance: z245.number()
|
|
7216
7238
|
}),
|
|
7217
|
-
recurring:
|
|
7218
|
-
total:
|
|
7219
|
-
used:
|
|
7220
|
-
balance:
|
|
7221
|
-
resetAt:
|
|
7239
|
+
recurring: z245.object({
|
|
7240
|
+
total: z245.number(),
|
|
7241
|
+
used: z245.number(),
|
|
7242
|
+
balance: z245.number(),
|
|
7243
|
+
resetAt: z245.string().optional()
|
|
7222
7244
|
})
|
|
7223
7245
|
}).optional()
|
|
7224
7246
|
});
|
|
7225
|
-
var DTOSubscriptionResponse =
|
|
7247
|
+
var DTOSubscriptionResponse = z245.object({
|
|
7226
7248
|
subscription: DTOSubscription
|
|
7227
7249
|
});
|
|
7228
7250
|
|
|
7251
|
+
// src/api/dto/workspaces/transfer-ownership.ts
|
|
7252
|
+
import { z as z246 } from "zod";
|
|
7253
|
+
var DTOTransferOwnershipPayload = z246.object({
|
|
7254
|
+
newOwnerId: z246.string()
|
|
7255
|
+
});
|
|
7256
|
+
|
|
7229
7257
|
// src/api/dto/workspaces/untyped-data.ts
|
|
7230
|
-
import { z as
|
|
7258
|
+
import { z as z247 } from "zod";
|
|
7231
7259
|
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
7232
|
-
var DTOWorkspaceUntypedDataListResponse =
|
|
7260
|
+
var DTOWorkspaceUntypedDataListResponse = z247.object({
|
|
7233
7261
|
data: DTOWorkspaceUntypedData.array()
|
|
7234
7262
|
});
|
|
7235
|
-
var DTOWorkspaceUntypedDataResponse =
|
|
7263
|
+
var DTOWorkspaceUntypedDataResponse = z247.object({
|
|
7236
7264
|
data: DTOWorkspaceUntypedData
|
|
7237
7265
|
});
|
|
7238
|
-
var DTOWorkspaceUntypedDataCreatePayload =
|
|
7239
|
-
value:
|
|
7266
|
+
var DTOWorkspaceUntypedDataCreatePayload = z247.object({
|
|
7267
|
+
value: z247.unknown()
|
|
7240
7268
|
});
|
|
7241
|
-
var DTOWorkspaceUntypedDataUpdatePayload =
|
|
7242
|
-
value:
|
|
7269
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z247.object({
|
|
7270
|
+
value: z247.unknown()
|
|
7243
7271
|
});
|
|
7244
7272
|
|
|
7245
7273
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
7246
|
-
var DTOUserDesignSystemsResponse =
|
|
7274
|
+
var DTOUserDesignSystemsResponse = z248.object({
|
|
7247
7275
|
designSystems: DTODesignSystem.array(),
|
|
7248
7276
|
workspaces: DTOWorkspace.array()
|
|
7249
7277
|
});
|
|
7250
7278
|
|
|
7251
7279
|
// src/api/dto/design-systems/version-room.ts
|
|
7252
|
-
import { z as
|
|
7253
|
-
var DTODesignSystemVersionRoom =
|
|
7254
|
-
id:
|
|
7280
|
+
import { z as z249 } from "zod";
|
|
7281
|
+
var DTODesignSystemVersionRoom = z249.object({
|
|
7282
|
+
id: z249.string()
|
|
7255
7283
|
});
|
|
7256
|
-
var DTODesignSystemVersionRoomResponse =
|
|
7284
|
+
var DTODesignSystemVersionRoomResponse = z249.object({
|
|
7257
7285
|
room: DTODesignSystemVersionRoom
|
|
7258
7286
|
});
|
|
7259
7287
|
|
|
7260
7288
|
// src/api/dto/design-systems/version.ts
|
|
7261
|
-
import { z as
|
|
7289
|
+
import { z as z261 } from "zod";
|
|
7262
7290
|
|
|
7263
7291
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
7264
|
-
import { z as
|
|
7292
|
+
import { z as z250 } from "zod";
|
|
7265
7293
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
7266
7294
|
id: true,
|
|
7267
7295
|
workspaceId: true,
|
|
@@ -7273,56 +7301,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
7273
7301
|
}).extend({
|
|
7274
7302
|
meta: ObjectMeta.partial().optional()
|
|
7275
7303
|
});
|
|
7276
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
7304
|
+
var DTODesignSystemUpdateAccessModeInput = z250.object({
|
|
7277
7305
|
accessMode: DesignSystemAccessMode,
|
|
7278
|
-
retain:
|
|
7279
|
-
userIds:
|
|
7280
|
-
inviteIds:
|
|
7306
|
+
retain: z250.object({
|
|
7307
|
+
userIds: z250.string().array(),
|
|
7308
|
+
inviteIds: z250.string().array()
|
|
7281
7309
|
}).optional()
|
|
7282
7310
|
});
|
|
7283
7311
|
|
|
7284
7312
|
// src/api/payloads/design-systems/version.ts
|
|
7285
|
-
import { z as
|
|
7286
|
-
var ObjectMeta2 =
|
|
7287
|
-
name:
|
|
7288
|
-
description:
|
|
7313
|
+
import { z as z251 } from "zod";
|
|
7314
|
+
var ObjectMeta2 = z251.object({
|
|
7315
|
+
name: z251.string().max(150).optional(),
|
|
7316
|
+
description: z251.string().max(2e3).optional()
|
|
7289
7317
|
});
|
|
7290
7318
|
function validateDesignSystemVersion(version) {
|
|
7291
7319
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
7292
7320
|
return urlCompliantRegex.test(version);
|
|
7293
7321
|
}
|
|
7294
|
-
var DTOCreateVersionInput =
|
|
7322
|
+
var DTOCreateVersionInput = z251.object({
|
|
7295
7323
|
meta: ObjectMeta2,
|
|
7296
|
-
version:
|
|
7324
|
+
version: z251.string().refine(validateDesignSystemVersion, {
|
|
7297
7325
|
message: "Invalid semantic versioning format"
|
|
7298
7326
|
}),
|
|
7299
|
-
changeLog:
|
|
7327
|
+
changeLog: z251.string().optional()
|
|
7300
7328
|
});
|
|
7301
|
-
var DTOUpdateVersionInput =
|
|
7329
|
+
var DTOUpdateVersionInput = z251.object({
|
|
7302
7330
|
meta: ObjectMeta2,
|
|
7303
|
-
version:
|
|
7331
|
+
version: z251.string(),
|
|
7304
7332
|
// required for PUT, but not editable
|
|
7305
|
-
changeLog:
|
|
7333
|
+
changeLog: z251.string()
|
|
7306
7334
|
});
|
|
7307
7335
|
|
|
7308
7336
|
// src/api/payloads/documentation/analytics.ts
|
|
7309
|
-
import { z as
|
|
7310
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
7311
|
-
referencePeriod:
|
|
7312
|
-
start:
|
|
7313
|
-
end:
|
|
7337
|
+
import { z as z252 } from "zod";
|
|
7338
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z252.object({
|
|
7339
|
+
referencePeriod: z252.object({
|
|
7340
|
+
start: z252.coerce.date(),
|
|
7341
|
+
end: z252.coerce.date().optional()
|
|
7314
7342
|
}),
|
|
7315
|
-
baselinePeriod:
|
|
7316
|
-
start:
|
|
7317
|
-
end:
|
|
7343
|
+
baselinePeriod: z252.object({
|
|
7344
|
+
start: z252.coerce.date(),
|
|
7345
|
+
end: z252.coerce.date().optional()
|
|
7318
7346
|
})
|
|
7319
7347
|
});
|
|
7320
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
7321
|
-
timeFrames:
|
|
7348
|
+
var DTODocumentationAnalyticsDiffPayload = z252.object({
|
|
7349
|
+
timeFrames: z252.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
7322
7350
|
});
|
|
7323
7351
|
|
|
7324
7352
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7325
|
-
import { z as
|
|
7353
|
+
import { z as z253 } from "zod";
|
|
7326
7354
|
|
|
7327
7355
|
// src/api/dto/documentation/block-definition.ts
|
|
7328
7356
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -7334,79 +7362,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
7334
7362
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
7335
7363
|
|
|
7336
7364
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7337
|
-
var DTOGetBlockDefinitionsQuery =
|
|
7338
|
-
files:
|
|
7365
|
+
var DTOGetBlockDefinitionsQuery = z253.object({
|
|
7366
|
+
files: z253.coerce.boolean().optional()
|
|
7339
7367
|
});
|
|
7340
|
-
var DTOGetBlockDefinitionsOutput =
|
|
7341
|
-
definitions:
|
|
7368
|
+
var DTOGetBlockDefinitionsOutput = z253.object({
|
|
7369
|
+
definitions: z253.array(DTOPageBlockDefinition)
|
|
7342
7370
|
});
|
|
7343
7371
|
|
|
7344
7372
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
7345
|
-
import { z as
|
|
7346
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
7347
|
-
environment:
|
|
7373
|
+
import { z as z254 } from "zod";
|
|
7374
|
+
var DTODocumentationPublishTypeQueryParams = z254.object({
|
|
7375
|
+
environment: z254.enum(["Live", "Preview"])
|
|
7348
7376
|
});
|
|
7349
7377
|
|
|
7350
7378
|
// src/api/payloads/export/pipeline.ts
|
|
7351
|
-
import { z as
|
|
7379
|
+
import { z as z256 } from "zod";
|
|
7352
7380
|
|
|
7353
7381
|
// src/api/dto/export/exporter-property.ts
|
|
7354
|
-
import { z as
|
|
7355
|
-
var PrimitiveValue2 =
|
|
7356
|
-
var ArrayValue2 =
|
|
7357
|
-
var ObjectValue2 =
|
|
7382
|
+
import { z as z255 } from "zod";
|
|
7383
|
+
var PrimitiveValue2 = z255.number().or(z255.boolean()).or(z255.string());
|
|
7384
|
+
var ArrayValue2 = z255.array(z255.string());
|
|
7385
|
+
var ObjectValue2 = z255.record(z255.string());
|
|
7358
7386
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
7359
|
-
var DTOExporterPropertyType =
|
|
7360
|
-
var PropertyDefinitionBase2 =
|
|
7361
|
-
key:
|
|
7362
|
-
title:
|
|
7363
|
-
description:
|
|
7364
|
-
category:
|
|
7365
|
-
dependsOn:
|
|
7366
|
-
});
|
|
7367
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
7368
|
-
label:
|
|
7369
|
-
description:
|
|
7387
|
+
var DTOExporterPropertyType = z255.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
7388
|
+
var PropertyDefinitionBase2 = z255.object({
|
|
7389
|
+
key: z255.string(),
|
|
7390
|
+
title: z255.string(),
|
|
7391
|
+
description: z255.string(),
|
|
7392
|
+
category: z255.string().optional(),
|
|
7393
|
+
dependsOn: z255.record(z255.boolean()).optional()
|
|
7394
|
+
});
|
|
7395
|
+
var DTOExporterPropertyDefinitionEnumOption = z255.object({
|
|
7396
|
+
label: z255.string(),
|
|
7397
|
+
description: z255.string()
|
|
7370
7398
|
});
|
|
7371
7399
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
7372
|
-
type:
|
|
7373
|
-
options:
|
|
7374
|
-
default:
|
|
7400
|
+
type: z255.literal(DTOExporterPropertyType.Enum.Enum),
|
|
7401
|
+
options: z255.record(DTOExporterPropertyDefinitionEnumOption),
|
|
7402
|
+
default: z255.string()
|
|
7375
7403
|
});
|
|
7376
7404
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
7377
|
-
type:
|
|
7378
|
-
default:
|
|
7405
|
+
type: z255.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
7406
|
+
default: z255.boolean()
|
|
7379
7407
|
});
|
|
7380
7408
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
7381
|
-
type:
|
|
7382
|
-
default:
|
|
7383
|
-
isMultiline:
|
|
7409
|
+
type: z255.literal(DTOExporterPropertyType.Enum.String),
|
|
7410
|
+
default: z255.string(),
|
|
7411
|
+
isMultiline: z255.boolean().optional()
|
|
7384
7412
|
});
|
|
7385
7413
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
7386
|
-
type:
|
|
7387
|
-
default:
|
|
7414
|
+
type: z255.literal(DTOExporterPropertyType.Enum.Number),
|
|
7415
|
+
default: z255.number()
|
|
7388
7416
|
});
|
|
7389
7417
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
7390
|
-
type:
|
|
7418
|
+
type: z255.literal(DTOExporterPropertyType.Enum.Array),
|
|
7391
7419
|
default: ArrayValue2
|
|
7392
7420
|
});
|
|
7393
7421
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
7394
|
-
type:
|
|
7422
|
+
type: z255.literal(DTOExporterPropertyType.Enum.Object),
|
|
7395
7423
|
default: ObjectValue2,
|
|
7396
|
-
allowedKeys:
|
|
7397
|
-
options:
|
|
7398
|
-
type:
|
|
7424
|
+
allowedKeys: z255.object({
|
|
7425
|
+
options: z255.string().array(),
|
|
7426
|
+
type: z255.string()
|
|
7399
7427
|
}).optional(),
|
|
7400
|
-
allowedValues:
|
|
7401
|
-
type:
|
|
7428
|
+
allowedValues: z255.object({
|
|
7429
|
+
type: z255.string()
|
|
7402
7430
|
}).optional()
|
|
7403
7431
|
});
|
|
7404
7432
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
7405
|
-
type:
|
|
7406
|
-
language:
|
|
7407
|
-
default:
|
|
7433
|
+
type: z255.literal(DTOExporterPropertyType.Enum.Code),
|
|
7434
|
+
language: z255.string(),
|
|
7435
|
+
default: z255.string()
|
|
7408
7436
|
});
|
|
7409
|
-
var DTOExporterPropertyDefinition =
|
|
7437
|
+
var DTOExporterPropertyDefinition = z255.discriminatedUnion("type", [
|
|
7410
7438
|
DTOExporterPropertyDefinitionEnum,
|
|
7411
7439
|
DTOExporterPropertyDefinitionBoolean,
|
|
7412
7440
|
DTOExporterPropertyDefinitionString,
|
|
@@ -7415,98 +7443,92 @@ var DTOExporterPropertyDefinition = z253.discriminatedUnion("type", [
|
|
|
7415
7443
|
DTOExporterPropertyDefinitionObject,
|
|
7416
7444
|
DTOExporterPropertyDefinitionCode
|
|
7417
7445
|
]);
|
|
7418
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
7446
|
+
var DTOExporterPropertyDefinitionsResponse = z255.object({
|
|
7419
7447
|
properties: DTOExporterPropertyDefinition.array()
|
|
7420
7448
|
});
|
|
7421
|
-
var DTOExporterPropertyValueMap =
|
|
7449
|
+
var DTOExporterPropertyValueMap = z255.record(DTOExporterPropertyValue);
|
|
7422
7450
|
|
|
7423
7451
|
// src/api/payloads/export/pipeline.ts
|
|
7424
|
-
var GitDestinationOptions =
|
|
7425
|
-
branch:
|
|
7426
|
-
commitMessage:
|
|
7427
|
-
commitAuthorName:
|
|
7428
|
-
commitAuthorEmail:
|
|
7429
|
-
pullRequestTitle:
|
|
7430
|
-
pullRequestDescription:
|
|
7431
|
-
relativePath:
|
|
7432
|
-
purgeDirectory:
|
|
7433
|
-
});
|
|
7434
|
-
var DTOPipelineCreateBody =
|
|
7435
|
-
name:
|
|
7436
|
-
exporterId:
|
|
7437
|
-
designSystemId:
|
|
7438
|
-
isEnabled:
|
|
7452
|
+
var GitDestinationOptions = z256.object({
|
|
7453
|
+
branch: z256.string().min(1).nullish(),
|
|
7454
|
+
commitMessage: z256.string().min(1).nullish(),
|
|
7455
|
+
commitAuthorName: z256.string().min(1).nullish(),
|
|
7456
|
+
commitAuthorEmail: z256.string().email().nullish(),
|
|
7457
|
+
pullRequestTitle: z256.string().min(1).nullish(),
|
|
7458
|
+
pullRequestDescription: z256.string().min(1).nullish(),
|
|
7459
|
+
relativePath: z256.string().nullish(),
|
|
7460
|
+
purgeDirectory: z256.boolean().nullish()
|
|
7461
|
+
});
|
|
7462
|
+
var DTOPipelineCreateBody = z256.object({
|
|
7463
|
+
name: z256.string(),
|
|
7464
|
+
exporterId: z256.string(),
|
|
7465
|
+
designSystemId: z256.string(),
|
|
7466
|
+
isEnabled: z256.boolean(),
|
|
7439
7467
|
eventType: PipelineEventType,
|
|
7440
|
-
brandPersistentId:
|
|
7441
|
-
themePersistentId:
|
|
7442
|
-
themePersistentIds:
|
|
7468
|
+
brandPersistentId: z256.string().optional(),
|
|
7469
|
+
themePersistentId: z256.string().optional(),
|
|
7470
|
+
themePersistentIds: z256.string().array().optional(),
|
|
7443
7471
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7444
7472
|
destination: PipelineDestinationType.optional(),
|
|
7445
7473
|
gitQuery: GitObjectsQuery,
|
|
7446
|
-
destinations:
|
|
7474
|
+
destinations: z256.object({
|
|
7447
7475
|
s3: ExporterDestinationS3.nullish(),
|
|
7448
7476
|
azure: ExporterDestinationAzure.nullish(),
|
|
7449
7477
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7450
7478
|
github: ExporterDestinationGithub.nullish(),
|
|
7451
7479
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7452
7480
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7453
|
-
webhookUrl:
|
|
7481
|
+
webhookUrl: z256.string().nullish()
|
|
7454
7482
|
})
|
|
7455
7483
|
});
|
|
7456
|
-
var DTOPipelineUpdateBody =
|
|
7457
|
-
exporterId:
|
|
7458
|
-
name:
|
|
7459
|
-
isEnabled:
|
|
7484
|
+
var DTOPipelineUpdateBody = z256.object({
|
|
7485
|
+
exporterId: z256.string().optional(),
|
|
7486
|
+
name: z256.string().optional(),
|
|
7487
|
+
isEnabled: z256.boolean().optional(),
|
|
7460
7488
|
eventType: PipelineEventType.optional(),
|
|
7461
|
-
brandPersistentId:
|
|
7462
|
-
themePersistentId:
|
|
7463
|
-
themePersistentIds:
|
|
7489
|
+
brandPersistentId: z256.string().optional(),
|
|
7490
|
+
themePersistentId: z256.string().optional(),
|
|
7491
|
+
themePersistentIds: z256.string().array().optional(),
|
|
7464
7492
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7465
7493
|
destination: PipelineDestinationType.optional(),
|
|
7466
7494
|
gitQuery: GitObjectsQuery.optional(),
|
|
7467
|
-
destinations:
|
|
7495
|
+
destinations: z256.object({
|
|
7468
7496
|
s3: ExporterDestinationS3.nullish(),
|
|
7469
7497
|
azure: ExporterDestinationAzure.nullish(),
|
|
7470
7498
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7471
7499
|
github: ExporterDestinationGithub.nullish(),
|
|
7472
7500
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7473
7501
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7474
|
-
webhookUrl:
|
|
7502
|
+
webhookUrl: z256.string().nullish()
|
|
7475
7503
|
}).optional(),
|
|
7476
7504
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
7477
7505
|
});
|
|
7478
|
-
var DTOPipelineTriggerBody =
|
|
7479
|
-
designSystemVersionId:
|
|
7506
|
+
var DTOPipelineTriggerBody = z256.object({
|
|
7507
|
+
designSystemVersionId: z256.string()
|
|
7480
7508
|
});
|
|
7481
7509
|
|
|
7482
7510
|
// src/api/payloads/liveblocks/auth.ts
|
|
7483
|
-
import { z as
|
|
7484
|
-
var DTOLiveblocksAuthRequest =
|
|
7485
|
-
room:
|
|
7511
|
+
import { z as z257 } from "zod";
|
|
7512
|
+
var DTOLiveblocksAuthRequest = z257.object({
|
|
7513
|
+
room: z257.string().optional()
|
|
7486
7514
|
});
|
|
7487
7515
|
|
|
7488
7516
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
7489
|
-
import { z as
|
|
7490
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
7517
|
+
import { z as z258 } from "zod";
|
|
7518
|
+
var DTOUpdateUserNotificationSettingsPayload = z258.object({
|
|
7491
7519
|
notificationSettings: UserNotificationSettings
|
|
7492
7520
|
});
|
|
7493
|
-
var DTOUserNotificationSettingsResponse =
|
|
7494
|
-
userId:
|
|
7495
|
-
workspaceId:
|
|
7521
|
+
var DTOUserNotificationSettingsResponse = z258.object({
|
|
7522
|
+
userId: z258.string(),
|
|
7523
|
+
workspaceId: z258.string(),
|
|
7496
7524
|
notificationSettings: UserNotificationSettings
|
|
7497
7525
|
});
|
|
7498
7526
|
|
|
7499
7527
|
// src/api/payloads/users/profile/update.ts
|
|
7500
7528
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
7501
7529
|
|
|
7502
|
-
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
7503
|
-
import { z as z257 } from "zod";
|
|
7504
|
-
var DTOTransferOwnershipPayload = z257.object({
|
|
7505
|
-
newOwnerId: z257.string()
|
|
7506
|
-
});
|
|
7507
|
-
|
|
7508
7530
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
7509
|
-
import { z as
|
|
7531
|
+
import { z as z259 } from "zod";
|
|
7510
7532
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
7511
7533
|
function validateSsoPayload(ssoPayload) {
|
|
7512
7534
|
const keys = [];
|
|
@@ -7529,21 +7551,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
7529
7551
|
keys
|
|
7530
7552
|
};
|
|
7531
7553
|
}
|
|
7532
|
-
var NpmRegistryInput =
|
|
7533
|
-
enabledScopes:
|
|
7534
|
-
customRegistryUrl:
|
|
7535
|
-
bypassProxy:
|
|
7536
|
-
npmProxyRegistryConfigId:
|
|
7537
|
-
npmProxyVersion:
|
|
7538
|
-
registryType:
|
|
7539
|
-
authType:
|
|
7540
|
-
authHeaderName:
|
|
7541
|
-
authHeaderValue:
|
|
7542
|
-
accessToken:
|
|
7543
|
-
username:
|
|
7544
|
-
password:
|
|
7545
|
-
});
|
|
7546
|
-
var WorkspaceConfigurationPayload =
|
|
7554
|
+
var NpmRegistryInput = z259.object({
|
|
7555
|
+
enabledScopes: z259.array(z259.string()),
|
|
7556
|
+
customRegistryUrl: z259.string().optional(),
|
|
7557
|
+
bypassProxy: z259.boolean().optional(),
|
|
7558
|
+
npmProxyRegistryConfigId: z259.string().optional(),
|
|
7559
|
+
npmProxyVersion: z259.number().optional(),
|
|
7560
|
+
registryType: z259.string(),
|
|
7561
|
+
authType: z259.string(),
|
|
7562
|
+
authHeaderName: z259.string(),
|
|
7563
|
+
authHeaderValue: z259.string(),
|
|
7564
|
+
accessToken: z259.string(),
|
|
7565
|
+
username: z259.string(),
|
|
7566
|
+
password: z259.string()
|
|
7567
|
+
});
|
|
7568
|
+
var WorkspaceConfigurationPayload = z259.object({
|
|
7547
7569
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
7548
7570
|
sso: SsoProvider.partial().optional(),
|
|
7549
7571
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -7551,107 +7573,107 @@ var WorkspaceConfigurationPayload = z258.object({
|
|
|
7551
7573
|
});
|
|
7552
7574
|
|
|
7553
7575
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
7554
|
-
import { z as
|
|
7555
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
7576
|
+
import { z as z260 } from "zod";
|
|
7577
|
+
var DTOWorkspaceIntegrationOauthInput = z260.object({
|
|
7556
7578
|
type: IntegrationType
|
|
7557
7579
|
});
|
|
7558
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
7580
|
+
var DTOWorkspaceIntegrationPATInput = z260.object({
|
|
7559
7581
|
type: IntegrationType,
|
|
7560
7582
|
token: IntegrationToken
|
|
7561
7583
|
});
|
|
7562
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
7563
|
-
organization:
|
|
7584
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z260.object({
|
|
7585
|
+
organization: z260.string().optional(),
|
|
7564
7586
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
7565
|
-
project:
|
|
7587
|
+
project: z260.string().optional(),
|
|
7566
7588
|
// Only for Bitbucket and Azure
|
|
7567
|
-
repository:
|
|
7589
|
+
repository: z260.string().optional(),
|
|
7568
7590
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
7569
|
-
branch:
|
|
7591
|
+
branch: z260.string().optional(),
|
|
7570
7592
|
// For all providers, useful for PR creations.
|
|
7571
|
-
user:
|
|
7593
|
+
user: z260.string().optional()
|
|
7572
7594
|
// Only for Gitlab User Repositories
|
|
7573
7595
|
});
|
|
7574
7596
|
|
|
7575
7597
|
// src/api/dto/design-systems/version.ts
|
|
7576
|
-
var DTODesignSystemVersion =
|
|
7577
|
-
id:
|
|
7578
|
-
createdAt:
|
|
7598
|
+
var DTODesignSystemVersion = z261.object({
|
|
7599
|
+
id: z261.string(),
|
|
7600
|
+
createdAt: z261.coerce.date(),
|
|
7579
7601
|
meta: ObjectMeta,
|
|
7580
|
-
version:
|
|
7581
|
-
isReadonly:
|
|
7582
|
-
changeLog:
|
|
7583
|
-
designSystemId:
|
|
7602
|
+
version: z261.string(),
|
|
7603
|
+
isReadonly: z261.boolean(),
|
|
7604
|
+
changeLog: z261.string(),
|
|
7605
|
+
designSystemId: z261.string()
|
|
7584
7606
|
});
|
|
7585
|
-
var DTODesignSystemVersionsListResponse =
|
|
7586
|
-
designSystemVersions:
|
|
7607
|
+
var DTODesignSystemVersionsListResponse = z261.object({
|
|
7608
|
+
designSystemVersions: z261.array(DTODesignSystemVersion)
|
|
7587
7609
|
});
|
|
7588
|
-
var DTODesignSystemVersionGetResponse =
|
|
7610
|
+
var DTODesignSystemVersionGetResponse = z261.object({
|
|
7589
7611
|
designSystemVersion: DTODesignSystemVersion
|
|
7590
7612
|
});
|
|
7591
|
-
var DTODesignSystemVersionCreationResponse =
|
|
7613
|
+
var DTODesignSystemVersionCreationResponse = z261.object({
|
|
7592
7614
|
meta: ObjectMeta,
|
|
7593
|
-
version:
|
|
7594
|
-
changeLog:
|
|
7595
|
-
isReadOnly:
|
|
7596
|
-
designSystemId:
|
|
7597
|
-
jobId:
|
|
7598
|
-
});
|
|
7599
|
-
var VersionSQSPayload =
|
|
7600
|
-
jobId:
|
|
7601
|
-
designSystemId:
|
|
7615
|
+
version: z261.string(),
|
|
7616
|
+
changeLog: z261.string(),
|
|
7617
|
+
isReadOnly: z261.boolean(),
|
|
7618
|
+
designSystemId: z261.string(),
|
|
7619
|
+
jobId: z261.string()
|
|
7620
|
+
});
|
|
7621
|
+
var VersionSQSPayload = z261.object({
|
|
7622
|
+
jobId: z261.string(),
|
|
7623
|
+
designSystemId: z261.string(),
|
|
7602
7624
|
input: DTOCreateVersionInput
|
|
7603
7625
|
});
|
|
7604
|
-
var DTODesignSystemVersionJobsResponse =
|
|
7605
|
-
jobs:
|
|
7626
|
+
var DTODesignSystemVersionJobsResponse = z261.object({
|
|
7627
|
+
jobs: z261.array(VersionCreationJob)
|
|
7606
7628
|
});
|
|
7607
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
7629
|
+
var DTODesignSystemVersionJobStatusResponse = z261.object({
|
|
7608
7630
|
job: VersionCreationJob
|
|
7609
7631
|
});
|
|
7610
7632
|
|
|
7611
7633
|
// src/api/dto/design-systems/view.ts
|
|
7612
|
-
import { z as
|
|
7613
|
-
var DTOElementViewColumnSharedAttributes =
|
|
7614
|
-
id:
|
|
7615
|
-
persistentId:
|
|
7616
|
-
width:
|
|
7634
|
+
import { z as z262 } from "zod";
|
|
7635
|
+
var DTOElementViewColumnSharedAttributes = z262.object({
|
|
7636
|
+
id: z262.string(),
|
|
7637
|
+
persistentId: z262.string(),
|
|
7638
|
+
width: z262.number()
|
|
7617
7639
|
});
|
|
7618
7640
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7619
|
-
type:
|
|
7641
|
+
type: z262.literal("BaseProperty"),
|
|
7620
7642
|
basePropertyType: ElementViewBaseColumnType
|
|
7621
7643
|
});
|
|
7622
7644
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7623
|
-
type:
|
|
7624
|
-
propertyDefinitionId:
|
|
7645
|
+
type: z262.literal("PropertyDefinition"),
|
|
7646
|
+
propertyDefinitionId: z262.string()
|
|
7625
7647
|
});
|
|
7626
7648
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7627
|
-
type:
|
|
7628
|
-
themeId:
|
|
7649
|
+
type: z262.literal("Theme"),
|
|
7650
|
+
themeId: z262.string()
|
|
7629
7651
|
});
|
|
7630
|
-
var DTOElementViewColumn =
|
|
7652
|
+
var DTOElementViewColumn = z262.discriminatedUnion("type", [
|
|
7631
7653
|
DTOElementViewBasePropertyColumn,
|
|
7632
7654
|
DTOElementViewPropertyDefinitionColumn,
|
|
7633
7655
|
DTOElementViewThemeColumn
|
|
7634
7656
|
]);
|
|
7635
|
-
var DTOElementView =
|
|
7657
|
+
var DTOElementView = z262.object({
|
|
7636
7658
|
meta: ObjectMeta,
|
|
7637
|
-
persistentId:
|
|
7659
|
+
persistentId: z262.string(),
|
|
7638
7660
|
targetElementType: ElementPropertyTargetType,
|
|
7639
|
-
id:
|
|
7640
|
-
isDefault:
|
|
7641
|
-
columns:
|
|
7661
|
+
id: z262.string(),
|
|
7662
|
+
isDefault: z262.boolean(),
|
|
7663
|
+
columns: z262.array(DTOElementViewColumn)
|
|
7642
7664
|
});
|
|
7643
|
-
var DTOElementViewsListResponse =
|
|
7644
|
-
elementDataViews:
|
|
7665
|
+
var DTOElementViewsListResponse = z262.object({
|
|
7666
|
+
elementDataViews: z262.array(DTOElementView)
|
|
7645
7667
|
});
|
|
7646
7668
|
|
|
7647
7669
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
7648
|
-
var DTOAppBootstrapDataQuery =
|
|
7649
|
-
preferredWorkspaceId:
|
|
7650
|
-
preferredDesignSystemId:
|
|
7651
|
-
preferredVersionId:
|
|
7652
|
-
preferredBrandId:
|
|
7670
|
+
var DTOAppBootstrapDataQuery = z263.object({
|
|
7671
|
+
preferredWorkspaceId: z263.string().optional(),
|
|
7672
|
+
preferredDesignSystemId: z263.string().optional(),
|
|
7673
|
+
preferredVersionId: z263.string().optional(),
|
|
7674
|
+
preferredBrandId: z263.string().optional()
|
|
7653
7675
|
});
|
|
7654
|
-
var DTOAppBootstrapDataResponse =
|
|
7676
|
+
var DTOAppBootstrapDataResponse = z263.object({
|
|
7655
7677
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
7656
7678
|
designSystem: DTODesignSystem.optional(),
|
|
7657
7679
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -7659,92 +7681,92 @@ var DTOAppBootstrapDataResponse = z262.object({
|
|
|
7659
7681
|
});
|
|
7660
7682
|
|
|
7661
7683
|
// src/api/dto/collections/token-collection.ts
|
|
7662
|
-
import { z as
|
|
7663
|
-
var DTOTokenCollection =
|
|
7664
|
-
id:
|
|
7665
|
-
persistentId:
|
|
7666
|
-
designSystemVersionId:
|
|
7684
|
+
import { z as z264 } from "zod";
|
|
7685
|
+
var DTOTokenCollection = z264.object({
|
|
7686
|
+
id: z264.string(),
|
|
7687
|
+
persistentId: z264.string(),
|
|
7688
|
+
designSystemVersionId: z264.string(),
|
|
7667
7689
|
meta: ObjectMeta,
|
|
7668
7690
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
7669
|
-
elementPropertyOptionId:
|
|
7670
|
-
createdAt:
|
|
7671
|
-
updatedAt:
|
|
7691
|
+
elementPropertyOptionId: z264.string(),
|
|
7692
|
+
createdAt: z264.coerce.date(),
|
|
7693
|
+
updatedAt: z264.coerce.date(),
|
|
7672
7694
|
origin: CollectionOrigin.optional()
|
|
7673
7695
|
});
|
|
7674
|
-
var DTOTokenCollectionsListReponse =
|
|
7696
|
+
var DTOTokenCollectionsListReponse = z264.object({
|
|
7675
7697
|
collections: DTOTokenCollection.array()
|
|
7676
7698
|
});
|
|
7677
7699
|
|
|
7678
7700
|
// src/api/dto/design-tokens/design-token.ts
|
|
7679
|
-
import { z as
|
|
7701
|
+
import { z as z265 } from "zod";
|
|
7680
7702
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
7681
|
-
|
|
7682
|
-
id:
|
|
7683
|
-
persistentId:
|
|
7684
|
-
designSystemVersionId:
|
|
7703
|
+
z265.object({
|
|
7704
|
+
id: z265.string(),
|
|
7705
|
+
persistentId: z265.string(),
|
|
7706
|
+
designSystemVersionId: z265.string(),
|
|
7685
7707
|
meta: ObjectMeta,
|
|
7686
7708
|
originStyle: DesignTokenOrigin.optional(),
|
|
7687
|
-
brandId:
|
|
7688
|
-
collectionId:
|
|
7689
|
-
updatedAt:
|
|
7709
|
+
brandId: z265.string(),
|
|
7710
|
+
collectionId: z265.string().optional(),
|
|
7711
|
+
updatedAt: z265.coerce.date()
|
|
7690
7712
|
})
|
|
7691
7713
|
);
|
|
7692
|
-
var DTODesignTokenListResponse =
|
|
7714
|
+
var DTODesignTokenListResponse = z265.object({
|
|
7693
7715
|
tokens: DTODesignToken.array()
|
|
7694
7716
|
});
|
|
7695
|
-
var DTODesignTokenResponse =
|
|
7717
|
+
var DTODesignTokenResponse = z265.object({
|
|
7696
7718
|
token: DTODesignToken
|
|
7697
7719
|
});
|
|
7698
|
-
var DTODesignTokenGroup =
|
|
7699
|
-
id:
|
|
7720
|
+
var DTODesignTokenGroup = z265.object({
|
|
7721
|
+
id: z265.string(),
|
|
7700
7722
|
tokenType: DesignTokenType,
|
|
7701
|
-
persistentId:
|
|
7702
|
-
isRoot:
|
|
7703
|
-
brandId:
|
|
7723
|
+
persistentId: z265.string(),
|
|
7724
|
+
isRoot: z265.boolean(),
|
|
7725
|
+
brandId: z265.string(),
|
|
7704
7726
|
meta: ObjectMeta,
|
|
7705
|
-
childrenIds:
|
|
7727
|
+
childrenIds: z265.string().array()
|
|
7706
7728
|
});
|
|
7707
|
-
var DTODesignTokenGroupListResponse =
|
|
7729
|
+
var DTODesignTokenGroupListResponse = z265.object({
|
|
7708
7730
|
groups: DTODesignTokenGroup.array()
|
|
7709
7731
|
});
|
|
7710
|
-
var DTODesignTokenGroupResponse =
|
|
7732
|
+
var DTODesignTokenGroupResponse = z265.object({
|
|
7711
7733
|
group: DTODesignTokenGroup
|
|
7712
7734
|
});
|
|
7713
7735
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
7714
|
-
|
|
7715
|
-
persistentId:
|
|
7736
|
+
z265.object({
|
|
7737
|
+
persistentId: z265.string(),
|
|
7716
7738
|
meta: ObjectMeta,
|
|
7717
|
-
brandId:
|
|
7718
|
-
groupPersistentId:
|
|
7739
|
+
brandId: z265.string(),
|
|
7740
|
+
groupPersistentId: z265.string().optional()
|
|
7719
7741
|
})
|
|
7720
7742
|
);
|
|
7721
|
-
var DTODesignTokenGroupCreatePayload =
|
|
7722
|
-
persistentId:
|
|
7743
|
+
var DTODesignTokenGroupCreatePayload = z265.object({
|
|
7744
|
+
persistentId: z265.string(),
|
|
7723
7745
|
meta: ObjectMeta,
|
|
7724
|
-
brandId:
|
|
7725
|
-
parentId:
|
|
7746
|
+
brandId: z265.string(),
|
|
7747
|
+
parentId: z265.string().optional(),
|
|
7726
7748
|
tokenType: DesignTokenType,
|
|
7727
|
-
childrenIds:
|
|
7749
|
+
childrenIds: z265.string().array()
|
|
7728
7750
|
});
|
|
7729
7751
|
|
|
7730
7752
|
// src/api/dto/documentation/analytics-v2.ts
|
|
7731
|
-
import { z as
|
|
7732
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
7733
|
-
start:
|
|
7734
|
-
end:
|
|
7753
|
+
import { z as z266 } from "zod";
|
|
7754
|
+
var DTODocumentationAnalyticsTimeFrame = z266.object({
|
|
7755
|
+
start: z266.coerce.date(),
|
|
7756
|
+
end: z266.coerce.date().optional()
|
|
7735
7757
|
});
|
|
7736
|
-
var DTOPublishedDocVisitData =
|
|
7737
|
-
timestamp:
|
|
7738
|
-
versionId:
|
|
7739
|
-
locale:
|
|
7740
|
-
visits:
|
|
7741
|
-
sessions:
|
|
7758
|
+
var DTOPublishedDocVisitData = z266.object({
|
|
7759
|
+
timestamp: z266.coerce.date(),
|
|
7760
|
+
versionId: z266.string(),
|
|
7761
|
+
locale: z266.string().optional(),
|
|
7762
|
+
visits: z266.number(),
|
|
7763
|
+
sessions: z266.number()
|
|
7742
7764
|
});
|
|
7743
7765
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
7744
|
-
pagePersistentId:
|
|
7766
|
+
pagePersistentId: z266.string()
|
|
7745
7767
|
});
|
|
7746
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
7747
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7768
|
+
var DTOPublishedDocVisitHeatMapDay = z266.number().array().length(12);
|
|
7769
|
+
var DTOPublishedDocVisitHeatMapWeek = z266.object({
|
|
7748
7770
|
/**
|
|
7749
7771
|
* For which timeframe it was calculated
|
|
7750
7772
|
*/
|
|
@@ -7757,65 +7779,65 @@ var DTOPublishedDocVisitHeatMapWeek = z265.object({
|
|
|
7757
7779
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
7758
7780
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
7759
7781
|
});
|
|
7760
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7782
|
+
var DTOPublishedDocAnalyticsComparisonData = z266.object({
|
|
7761
7783
|
/**
|
|
7762
7784
|
* For which timeframe it was calculated
|
|
7763
7785
|
*/
|
|
7764
7786
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7765
|
-
priorVisitCount:
|
|
7766
|
-
priorSessionCount:
|
|
7767
|
-
currentVisitCount:
|
|
7768
|
-
currentSessionCount:
|
|
7787
|
+
priorVisitCount: z266.number(),
|
|
7788
|
+
priorSessionCount: z266.number(),
|
|
7789
|
+
currentVisitCount: z266.number(),
|
|
7790
|
+
currentSessionCount: z266.number()
|
|
7769
7791
|
});
|
|
7770
7792
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7771
|
-
pagePersistentId:
|
|
7793
|
+
pagePersistentId: z266.string()
|
|
7772
7794
|
});
|
|
7773
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7795
|
+
var DTODocumentationPageAnalyticsResponse = z266.object({
|
|
7774
7796
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7775
7797
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7776
7798
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7777
7799
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7778
7800
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7779
7801
|
});
|
|
7780
|
-
var DTODocumentationAnalyticsRequest =
|
|
7781
|
-
timeFrames:
|
|
7802
|
+
var DTODocumentationAnalyticsRequest = z266.object({
|
|
7803
|
+
timeFrames: z266.array(DTODocumentationAnalyticsTimeFrame)
|
|
7782
7804
|
});
|
|
7783
7805
|
|
|
7784
7806
|
// src/api/dto/documentation/analytics.ts
|
|
7785
|
-
import { z as
|
|
7786
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7787
|
-
startDate:
|
|
7788
|
-
endDate:
|
|
7789
|
-
currentVisitCount:
|
|
7790
|
-
currentSessionCount:
|
|
7791
|
-
priorVisitCount:
|
|
7792
|
-
priorSessionCount:
|
|
7807
|
+
import { z as z267 } from "zod";
|
|
7808
|
+
var DTODocumentationPageAnalyticsDifference = z267.object({
|
|
7809
|
+
startDate: z267.coerce.date(),
|
|
7810
|
+
endDate: z267.coerce.date().optional(),
|
|
7811
|
+
currentVisitCount: z267.number(),
|
|
7812
|
+
currentSessionCount: z267.number(),
|
|
7813
|
+
priorVisitCount: z267.number(),
|
|
7814
|
+
priorSessionCount: z267.number()
|
|
7793
7815
|
});
|
|
7794
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7795
|
-
differences:
|
|
7816
|
+
var DTODocumentationPageIntervalDifferenceResponse = z267.object({
|
|
7817
|
+
differences: z267.array(DTODocumentationPageAnalyticsDifference)
|
|
7796
7818
|
});
|
|
7797
7819
|
|
|
7798
7820
|
// src/api/dto/documentation/anchor.ts
|
|
7799
|
-
import { z as
|
|
7821
|
+
import { z as z268 } from "zod";
|
|
7800
7822
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7801
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7802
|
-
anchors:
|
|
7823
|
+
var DTOGetDocumentationPageAnchorsResponse = z268.object({
|
|
7824
|
+
anchors: z268.array(DTODocumentationPageAnchor)
|
|
7803
7825
|
});
|
|
7804
7826
|
|
|
7805
7827
|
// src/api/dto/documentation/approvals.ts
|
|
7806
|
-
import { z as
|
|
7807
|
-
var DTODocumentationPageApprovalState =
|
|
7828
|
+
import { z as z269 } from "zod";
|
|
7829
|
+
var DTODocumentationPageApprovalState = z269.object({
|
|
7808
7830
|
approvalState: DocumentationPageApprovalState,
|
|
7809
|
-
pagePersistentId:
|
|
7810
|
-
updatedByUserId:
|
|
7811
|
-
designSystemVersionId:
|
|
7812
|
-
updatedAt:
|
|
7813
|
-
createdAt:
|
|
7814
|
-
});
|
|
7815
|
-
var DTODocumentationGroupApprovalState =
|
|
7816
|
-
persistentId:
|
|
7817
|
-
groupPersistentId:
|
|
7818
|
-
designSystemVersionId:
|
|
7831
|
+
pagePersistentId: z269.string(),
|
|
7832
|
+
updatedByUserId: z269.string(),
|
|
7833
|
+
designSystemVersionId: z269.string(),
|
|
7834
|
+
updatedAt: z269.coerce.date(),
|
|
7835
|
+
createdAt: z269.coerce.date()
|
|
7836
|
+
});
|
|
7837
|
+
var DTODocumentationGroupApprovalState = z269.object({
|
|
7838
|
+
persistentId: z269.string(),
|
|
7839
|
+
groupPersistentId: z269.string(),
|
|
7840
|
+
designSystemVersionId: z269.string(),
|
|
7819
7841
|
approvalState: DocumentationPageApprovalState
|
|
7820
7842
|
});
|
|
7821
7843
|
|
|
@@ -7823,68 +7845,68 @@ var DTODocumentationGroupApprovalState = z268.object({
|
|
|
7823
7845
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7824
7846
|
|
|
7825
7847
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7826
|
-
import { z as
|
|
7848
|
+
import { z as z274 } from "zod";
|
|
7827
7849
|
|
|
7828
7850
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7829
|
-
import { z as
|
|
7851
|
+
import { z as z273 } from "zod";
|
|
7830
7852
|
|
|
7831
7853
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7832
|
-
import { z as
|
|
7854
|
+
import { z as z271 } from "zod";
|
|
7833
7855
|
|
|
7834
7856
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7835
|
-
import { z as
|
|
7857
|
+
import { z as z270 } from "zod";
|
|
7836
7858
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7837
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7838
|
-
showSidebar:
|
|
7839
|
-
isPrivate:
|
|
7840
|
-
isHidden:
|
|
7859
|
+
var DTODocumentationItemConfigurationV2 = z270.object({
|
|
7860
|
+
showSidebar: z270.boolean(),
|
|
7861
|
+
isPrivate: z270.boolean(),
|
|
7862
|
+
isHidden: z270.boolean(),
|
|
7841
7863
|
header: DTODocumentationItemHeaderV2
|
|
7842
7864
|
});
|
|
7843
7865
|
|
|
7844
7866
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7845
|
-
var DTODocumentationDraftChangeType =
|
|
7846
|
-
var DTODocumentationDraftStateCreated =
|
|
7847
|
-
changeType:
|
|
7848
|
-
});
|
|
7849
|
-
var DTODocumentationDraftStateUpdated =
|
|
7850
|
-
changeType:
|
|
7851
|
-
changes:
|
|
7852
|
-
previousTitle:
|
|
7867
|
+
var DTODocumentationDraftChangeType = z271.enum(["Created", "Updated", "Deleted"]);
|
|
7868
|
+
var DTODocumentationDraftStateCreated = z271.object({
|
|
7869
|
+
changeType: z271.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7870
|
+
});
|
|
7871
|
+
var DTODocumentationDraftStateUpdated = z271.object({
|
|
7872
|
+
changeType: z271.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7873
|
+
changes: z271.object({
|
|
7874
|
+
previousTitle: z271.string().optional(),
|
|
7853
7875
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7854
|
-
previousContentHash:
|
|
7876
|
+
previousContentHash: z271.string().optional()
|
|
7855
7877
|
})
|
|
7856
7878
|
});
|
|
7857
|
-
var DTODocumentationDraftStateDeleted =
|
|
7858
|
-
changeType:
|
|
7859
|
-
deletedAt:
|
|
7860
|
-
deletedByUserId:
|
|
7879
|
+
var DTODocumentationDraftStateDeleted = z271.object({
|
|
7880
|
+
changeType: z271.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7881
|
+
deletedAt: z271.coerce.date(),
|
|
7882
|
+
deletedByUserId: z271.string()
|
|
7861
7883
|
});
|
|
7862
|
-
var DTODocumentationDraftState =
|
|
7884
|
+
var DTODocumentationDraftState = z271.discriminatedUnion("changeType", [
|
|
7863
7885
|
DTODocumentationDraftStateCreated,
|
|
7864
7886
|
DTODocumentationDraftStateUpdated,
|
|
7865
7887
|
DTODocumentationDraftStateDeleted
|
|
7866
7888
|
]);
|
|
7867
7889
|
|
|
7868
7890
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7869
|
-
import { z as
|
|
7870
|
-
var DTODocumentationPublishMetadata =
|
|
7871
|
-
lastPublishedByUserId:
|
|
7872
|
-
lastPublishedAt:
|
|
7891
|
+
import { z as z272 } from "zod";
|
|
7892
|
+
var DTODocumentationPublishMetadata = z272.object({
|
|
7893
|
+
lastPublishedByUserId: z272.string(),
|
|
7894
|
+
lastPublishedAt: z272.coerce.date()
|
|
7873
7895
|
});
|
|
7874
7896
|
|
|
7875
7897
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7876
|
-
var DTODocumentationPageV2 =
|
|
7877
|
-
id:
|
|
7878
|
-
persistentId:
|
|
7879
|
-
designSystemVersionId:
|
|
7880
|
-
title:
|
|
7898
|
+
var DTODocumentationPageV2 = z273.object({
|
|
7899
|
+
id: z273.string(),
|
|
7900
|
+
persistentId: z273.string(),
|
|
7901
|
+
designSystemVersionId: z273.string(),
|
|
7902
|
+
title: z273.string(),
|
|
7881
7903
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7882
|
-
shortPersistentId:
|
|
7883
|
-
slug:
|
|
7884
|
-
userSlug:
|
|
7885
|
-
createdAt:
|
|
7886
|
-
updatedAt:
|
|
7887
|
-
path:
|
|
7904
|
+
shortPersistentId: z273.string(),
|
|
7905
|
+
slug: z273.string().optional(),
|
|
7906
|
+
userSlug: z273.string().optional(),
|
|
7907
|
+
createdAt: z273.coerce.date(),
|
|
7908
|
+
updatedAt: z273.coerce.date(),
|
|
7909
|
+
path: z273.string(),
|
|
7888
7910
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7889
7911
|
draftState: DTODocumentationDraftState.optional(),
|
|
7890
7912
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7892,278 +7914,278 @@ var DTODocumentationPageV2 = z272.object({
|
|
|
7892
7914
|
/** Defines the approval state of the documentation page */
|
|
7893
7915
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7894
7916
|
/** Id of the page document room */
|
|
7895
|
-
liveblocksRoomId:
|
|
7917
|
+
liveblocksRoomId: z273.string().optional(),
|
|
7896
7918
|
// Backward compatibility
|
|
7897
|
-
type:
|
|
7919
|
+
type: z273.literal("Page")
|
|
7898
7920
|
});
|
|
7899
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7921
|
+
var DTOCreateDocumentationPageInputV2 = z273.object({
|
|
7900
7922
|
// Identifier
|
|
7901
|
-
persistentId:
|
|
7923
|
+
persistentId: z273.string(),
|
|
7902
7924
|
// Page properties
|
|
7903
|
-
title:
|
|
7925
|
+
title: z273.string(),
|
|
7904
7926
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7905
7927
|
// Page placement properties
|
|
7906
|
-
parentPersistentId:
|
|
7907
|
-
afterPersistentId:
|
|
7928
|
+
parentPersistentId: z273.string(),
|
|
7929
|
+
afterPersistentId: z273.string().nullish()
|
|
7908
7930
|
});
|
|
7909
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7931
|
+
var DTOUpdateDocumentationPageInputV2 = z273.object({
|
|
7910
7932
|
// Identifier of the page to update
|
|
7911
|
-
id:
|
|
7933
|
+
id: z273.string(),
|
|
7912
7934
|
// Page properties
|
|
7913
|
-
title:
|
|
7935
|
+
title: z273.string().optional(),
|
|
7914
7936
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7915
7937
|
});
|
|
7916
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7938
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z273.object({
|
|
7917
7939
|
// Identifier of the page to update
|
|
7918
|
-
id:
|
|
7940
|
+
id: z273.string(),
|
|
7919
7941
|
// Page properties
|
|
7920
|
-
documentItems:
|
|
7942
|
+
documentItems: z273.array(DocumentationPageContentItem)
|
|
7921
7943
|
});
|
|
7922
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7944
|
+
var DTOMoveDocumentationPageInputV2 = z273.object({
|
|
7923
7945
|
// Identifier of the group to update
|
|
7924
|
-
id:
|
|
7946
|
+
id: z273.string(),
|
|
7925
7947
|
// Page placement properties
|
|
7926
|
-
parentPersistentId:
|
|
7927
|
-
afterPersistentId:
|
|
7948
|
+
parentPersistentId: z273.string(),
|
|
7949
|
+
afterPersistentId: z273.string().nullish()
|
|
7928
7950
|
});
|
|
7929
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7951
|
+
var DTODuplicateDocumentationPageInputV2 = z273.object({
|
|
7930
7952
|
// Identifier of the page to duplicate from
|
|
7931
|
-
id:
|
|
7953
|
+
id: z273.string(),
|
|
7932
7954
|
// New page persistent id
|
|
7933
|
-
persistentId:
|
|
7955
|
+
persistentId: z273.string(),
|
|
7934
7956
|
// Page placement properties
|
|
7935
|
-
parentPersistentId:
|
|
7936
|
-
afterPersistentId:
|
|
7957
|
+
parentPersistentId: z273.string(),
|
|
7958
|
+
afterPersistentId: z273.string().nullish()
|
|
7937
7959
|
});
|
|
7938
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7960
|
+
var DTODeleteDocumentationPageInputV2 = z273.object({
|
|
7939
7961
|
// Identifier
|
|
7940
|
-
id:
|
|
7962
|
+
id: z273.string()
|
|
7941
7963
|
});
|
|
7942
|
-
var DTORestoreDocumentationPageInput =
|
|
7943
|
-
persistentId:
|
|
7944
|
-
snapshotId:
|
|
7964
|
+
var DTORestoreDocumentationPageInput = z273.object({
|
|
7965
|
+
persistentId: z273.string(),
|
|
7966
|
+
snapshotId: z273.string().optional()
|
|
7945
7967
|
});
|
|
7946
|
-
var DTORestoreDocumentationGroupInput =
|
|
7947
|
-
persistentId:
|
|
7948
|
-
snapshotId:
|
|
7968
|
+
var DTORestoreDocumentationGroupInput = z273.object({
|
|
7969
|
+
persistentId: z273.string(),
|
|
7970
|
+
snapshotId: z273.string().optional()
|
|
7949
7971
|
});
|
|
7950
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7951
|
-
persistentId:
|
|
7972
|
+
var DTODocumentationPageApprovalStateChangeInput = z273.object({
|
|
7973
|
+
persistentId: z273.string(),
|
|
7952
7974
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7953
7975
|
});
|
|
7954
7976
|
|
|
7955
7977
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7956
|
-
var DTODocumentationPageSnapshot =
|
|
7957
|
-
id:
|
|
7958
|
-
designSystemVersionId:
|
|
7959
|
-
createdAt:
|
|
7960
|
-
updatedAt:
|
|
7978
|
+
var DTODocumentationPageSnapshot = z274.object({
|
|
7979
|
+
id: z274.string(),
|
|
7980
|
+
designSystemVersionId: z274.string(),
|
|
7981
|
+
createdAt: z274.string(),
|
|
7982
|
+
updatedAt: z274.string(),
|
|
7961
7983
|
documentationPage: DTODocumentationPageV2,
|
|
7962
|
-
pageContentHash:
|
|
7984
|
+
pageContentHash: z274.string(),
|
|
7963
7985
|
reason: DesignElementSnapshotReason
|
|
7964
7986
|
});
|
|
7965
7987
|
|
|
7966
7988
|
// src/api/dto/documentation/link-preview.ts
|
|
7967
|
-
import { z as
|
|
7968
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7989
|
+
import { z as z275 } from "zod";
|
|
7990
|
+
var DTODocumentationLinkPreviewResponse = z275.object({
|
|
7969
7991
|
linkPreview: DocumentationLinkPreview
|
|
7970
7992
|
});
|
|
7971
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7972
|
-
url:
|
|
7973
|
-
documentationItemPersistentId:
|
|
7993
|
+
var DTODocumentationLinkPreviewRequest = z275.object({
|
|
7994
|
+
url: z275.string().optional(),
|
|
7995
|
+
documentationItemPersistentId: z275.string().optional()
|
|
7974
7996
|
});
|
|
7975
7997
|
|
|
7976
7998
|
// src/api/dto/documentation/publish.ts
|
|
7977
|
-
import { z as
|
|
7999
|
+
import { z as z280 } from "zod";
|
|
7978
8000
|
|
|
7979
8001
|
// src/api/dto/export/exporter.ts
|
|
7980
|
-
import { z as
|
|
7981
|
-
var DTOExporterType =
|
|
7982
|
-
var DTOExporterSource =
|
|
7983
|
-
var DTOExporterMembershipRole =
|
|
7984
|
-
var DTOExporterListQuery =
|
|
7985
|
-
limit:
|
|
7986
|
-
offset:
|
|
8002
|
+
import { z as z276 } from "zod";
|
|
8003
|
+
var DTOExporterType = z276.enum(["documentation", "code"]);
|
|
8004
|
+
var DTOExporterSource = z276.enum(["git", "upload"]);
|
|
8005
|
+
var DTOExporterMembershipRole = z276.enum(["Owner", "OwnerArchived", "User"]);
|
|
8006
|
+
var DTOExporterListQuery = z276.object({
|
|
8007
|
+
limit: z276.coerce.number().optional(),
|
|
8008
|
+
offset: z276.coerce.number().optional(),
|
|
7987
8009
|
type: DTOExporterType.optional(),
|
|
7988
|
-
search:
|
|
8010
|
+
search: z276.string().optional()
|
|
7989
8011
|
});
|
|
7990
|
-
var DTOExporter =
|
|
7991
|
-
id:
|
|
7992
|
-
name:
|
|
7993
|
-
isPrivate:
|
|
8012
|
+
var DTOExporter = z276.object({
|
|
8013
|
+
id: z276.string(),
|
|
8014
|
+
name: z276.string(),
|
|
8015
|
+
isPrivate: z276.boolean(),
|
|
7994
8016
|
exporterType: DTOExporterType,
|
|
7995
|
-
isDefaultDocumentationExporter:
|
|
7996
|
-
iconURL:
|
|
8017
|
+
isDefaultDocumentationExporter: z276.boolean(),
|
|
8018
|
+
iconURL: z276.string().optional(),
|
|
7997
8019
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7998
8020
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7999
8021
|
customBlocks: PulsarCustomBlock.array(),
|
|
8000
|
-
blockVariants:
|
|
8001
|
-
homepage:
|
|
8002
|
-
organization:
|
|
8003
|
-
packageId:
|
|
8004
|
-
tags:
|
|
8005
|
-
author:
|
|
8006
|
-
version:
|
|
8007
|
-
description:
|
|
8008
|
-
usesLocale:
|
|
8009
|
-
usesBrands:
|
|
8010
|
-
usesThemes:
|
|
8011
|
-
readme:
|
|
8012
|
-
routingVersion:
|
|
8022
|
+
blockVariants: z276.record(z276.string(), PulsarContributionVariant.array()),
|
|
8023
|
+
homepage: z276.string().optional(),
|
|
8024
|
+
organization: z276.string().optional(),
|
|
8025
|
+
packageId: z276.string().optional(),
|
|
8026
|
+
tags: z276.array(z276.string()),
|
|
8027
|
+
author: z276.string().optional(),
|
|
8028
|
+
version: z276.string(),
|
|
8029
|
+
description: z276.string(),
|
|
8030
|
+
usesLocale: z276.boolean(),
|
|
8031
|
+
usesBrands: z276.boolean(),
|
|
8032
|
+
usesThemes: z276.boolean(),
|
|
8033
|
+
readme: z276.string().optional(),
|
|
8034
|
+
routingVersion: z276.string().optional(),
|
|
8013
8035
|
source: DTOExporterSource,
|
|
8014
|
-
gitProvider:
|
|
8015
|
-
gitUrl: nullishToOptional(
|
|
8016
|
-
gitBranch: nullishToOptional(
|
|
8017
|
-
gitDirectory: nullishToOptional(
|
|
8018
|
-
isDeprecated:
|
|
8019
|
-
deprecationNote:
|
|
8020
|
-
replacementExporterId:
|
|
8021
|
-
});
|
|
8022
|
-
var DTOExporterMembership =
|
|
8023
|
-
workspaceId:
|
|
8024
|
-
exporterId:
|
|
8036
|
+
gitProvider: z276.string().optional(),
|
|
8037
|
+
gitUrl: nullishToOptional(z276.string()),
|
|
8038
|
+
gitBranch: nullishToOptional(z276.string()),
|
|
8039
|
+
gitDirectory: nullishToOptional(z276.string()),
|
|
8040
|
+
isDeprecated: z276.boolean(),
|
|
8041
|
+
deprecationNote: z276.string().optional(),
|
|
8042
|
+
replacementExporterId: z276.string().optional()
|
|
8043
|
+
});
|
|
8044
|
+
var DTOExporterMembership = z276.object({
|
|
8045
|
+
workspaceId: z276.string(),
|
|
8046
|
+
exporterId: z276.string(),
|
|
8025
8047
|
role: DTOExporterMembershipRole
|
|
8026
8048
|
});
|
|
8027
|
-
var DTOExporterResponse =
|
|
8049
|
+
var DTOExporterResponse = z276.object({
|
|
8028
8050
|
exporter: DTOExporter,
|
|
8029
8051
|
membership: DTOExporterMembership
|
|
8030
8052
|
});
|
|
8031
|
-
var DTOExporterListResponse =
|
|
8053
|
+
var DTOExporterListResponse = z276.object({
|
|
8032
8054
|
exporters: DTOExporter.array(),
|
|
8033
8055
|
membership: DTOExporterMembership.array(),
|
|
8034
|
-
total:
|
|
8056
|
+
total: z276.number()
|
|
8035
8057
|
});
|
|
8036
|
-
var DTOExporterGitProviderEnum =
|
|
8037
|
-
var DTOExporterCreateInput =
|
|
8038
|
-
url:
|
|
8058
|
+
var DTOExporterGitProviderEnum = z276.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
8059
|
+
var DTOExporterCreateInput = z276.object({
|
|
8060
|
+
url: z276.string(),
|
|
8039
8061
|
provider: DTOExporterGitProviderEnum
|
|
8040
8062
|
});
|
|
8041
|
-
var DTOExporterUpdateInput =
|
|
8042
|
-
url:
|
|
8063
|
+
var DTOExporterUpdateInput = z276.object({
|
|
8064
|
+
url: z276.string().optional()
|
|
8043
8065
|
});
|
|
8044
|
-
var DTOExporterDeprecationInput =
|
|
8045
|
-
isDeprecated:
|
|
8046
|
-
deprecationNote:
|
|
8047
|
-
replacementExporterId:
|
|
8066
|
+
var DTOExporterDeprecationInput = z276.object({
|
|
8067
|
+
isDeprecated: z276.boolean(),
|
|
8068
|
+
deprecationNote: z276.string().optional(),
|
|
8069
|
+
replacementExporterId: z276.string().optional()
|
|
8048
8070
|
});
|
|
8049
8071
|
|
|
8050
8072
|
// src/api/dto/export/filter.ts
|
|
8051
|
-
import { z as
|
|
8052
|
-
var DTOExportJobsListFilter =
|
|
8053
|
-
exporterId:
|
|
8054
|
-
designSystemVersionId:
|
|
8055
|
-
createdByUserId:
|
|
8073
|
+
import { z as z277 } from "zod";
|
|
8074
|
+
var DTOExportJobsListFilter = z277.object({
|
|
8075
|
+
exporterId: z277.string().optional(),
|
|
8076
|
+
designSystemVersionId: z277.string().optional(),
|
|
8077
|
+
createdByUserId: z277.string().optional(),
|
|
8056
8078
|
status: ExportJobStatus.optional(),
|
|
8057
|
-
scheduleId:
|
|
8058
|
-
designSystemId:
|
|
8059
|
-
themeId:
|
|
8060
|
-
brandId:
|
|
8061
|
-
destinations:
|
|
8079
|
+
scheduleId: z277.string().optional(),
|
|
8080
|
+
designSystemId: z277.string().optional(),
|
|
8081
|
+
themeId: z277.string().optional(),
|
|
8082
|
+
brandId: z277.string().optional(),
|
|
8083
|
+
destinations: z277.string().transform((s) => s.split(",").map((p) => ExportJobDestinationType.parse(p))).optional()
|
|
8062
8084
|
});
|
|
8063
8085
|
|
|
8064
8086
|
// src/api/dto/export/job.ts
|
|
8065
|
-
import { z as
|
|
8066
|
-
var DTOExportJobCreatedBy =
|
|
8067
|
-
userId:
|
|
8068
|
-
userName:
|
|
8087
|
+
import { z as z278 } from "zod";
|
|
8088
|
+
var DTOExportJobCreatedBy = z278.object({
|
|
8089
|
+
userId: z278.string(),
|
|
8090
|
+
userName: z278.string()
|
|
8069
8091
|
});
|
|
8070
|
-
var DTOExportJobDesignSystemPreview =
|
|
8071
|
-
id:
|
|
8092
|
+
var DTOExportJobDesignSystemPreview = z278.object({
|
|
8093
|
+
id: z278.string(),
|
|
8072
8094
|
meta: ObjectMeta
|
|
8073
8095
|
});
|
|
8074
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
8075
|
-
id:
|
|
8096
|
+
var DTOExportJobDesignSystemVersionPreview = z278.object({
|
|
8097
|
+
id: z278.string(),
|
|
8076
8098
|
meta: ObjectMeta,
|
|
8077
|
-
version:
|
|
8078
|
-
isReadonly:
|
|
8099
|
+
version: z278.string(),
|
|
8100
|
+
isReadonly: z278.boolean()
|
|
8079
8101
|
});
|
|
8080
|
-
var DTOExportJobDestinations =
|
|
8102
|
+
var DTOExportJobDestinations = z278.object({
|
|
8081
8103
|
s3: ExporterDestinationS3.optional(),
|
|
8082
8104
|
azure: ExporterDestinationAzure.optional(),
|
|
8083
8105
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
8084
8106
|
github: ExporterDestinationGithub.optional(),
|
|
8085
8107
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
8086
8108
|
documentation: ExporterDestinationDocs.optional(),
|
|
8087
|
-
webhookUrl:
|
|
8109
|
+
webhookUrl: z278.string().optional()
|
|
8088
8110
|
});
|
|
8089
8111
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
8090
8112
|
sndocs: true
|
|
8091
8113
|
}).extend({
|
|
8092
8114
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
8093
8115
|
});
|
|
8094
|
-
var DTOExportJob =
|
|
8095
|
-
id:
|
|
8096
|
-
createdAt:
|
|
8097
|
-
finishedAt:
|
|
8098
|
-
index:
|
|
8116
|
+
var DTOExportJob = z278.object({
|
|
8117
|
+
id: z278.string(),
|
|
8118
|
+
createdAt: z278.coerce.date(),
|
|
8119
|
+
finishedAt: z278.coerce.date().optional(),
|
|
8120
|
+
index: z278.number().optional(),
|
|
8099
8121
|
status: ExportJobStatus,
|
|
8100
|
-
estimatedExecutionTime:
|
|
8122
|
+
estimatedExecutionTime: z278.number().optional(),
|
|
8101
8123
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
8102
8124
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
8103
8125
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
8104
8126
|
destinations: DTOExportJobDestinations,
|
|
8105
|
-
exporterId:
|
|
8106
|
-
scheduleId:
|
|
8127
|
+
exporterId: z278.string(),
|
|
8128
|
+
scheduleId: z278.string().optional(),
|
|
8107
8129
|
result: DTOExportJobResult.optional(),
|
|
8108
|
-
brandPersistentId:
|
|
8109
|
-
themePersistentId:
|
|
8110
|
-
themePersistentIds:
|
|
8130
|
+
brandPersistentId: z278.string().optional(),
|
|
8131
|
+
themePersistentId: z278.string().optional(),
|
|
8132
|
+
themePersistentIds: z278.string().array().optional(),
|
|
8111
8133
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
8112
8134
|
});
|
|
8113
|
-
var DTOExportJobResponse =
|
|
8135
|
+
var DTOExportJobResponse = z278.object({
|
|
8114
8136
|
job: DTOExportJob
|
|
8115
8137
|
});
|
|
8116
|
-
var DTOExportJobResponseLegacy =
|
|
8117
|
-
job:
|
|
8118
|
-
id:
|
|
8138
|
+
var DTOExportJobResponseLegacy = z278.object({
|
|
8139
|
+
job: z278.object({
|
|
8140
|
+
id: z278.string(),
|
|
8119
8141
|
status: ExportJobStatus
|
|
8120
8142
|
})
|
|
8121
8143
|
});
|
|
8122
|
-
var DTOExportJobCreateInput =
|
|
8123
|
-
designSystemId:
|
|
8124
|
-
designSystemVersionId:
|
|
8125
|
-
exporterId:
|
|
8126
|
-
brandId:
|
|
8127
|
-
themeId:
|
|
8128
|
-
themePersistentIds:
|
|
8144
|
+
var DTOExportJobCreateInput = z278.object({
|
|
8145
|
+
designSystemId: z278.string(),
|
|
8146
|
+
designSystemVersionId: z278.string(),
|
|
8147
|
+
exporterId: z278.string(),
|
|
8148
|
+
brandId: z278.string().optional(),
|
|
8149
|
+
themeId: z278.string().optional(),
|
|
8150
|
+
themePersistentIds: z278.string().array().optional(),
|
|
8129
8151
|
destinations: DTOExportJobDestinations,
|
|
8130
8152
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8131
|
-
previewMode:
|
|
8153
|
+
previewMode: z278.boolean().optional()
|
|
8132
8154
|
});
|
|
8133
8155
|
|
|
8134
8156
|
// src/api/dto/export/pipeline.ts
|
|
8135
|
-
import { z as
|
|
8136
|
-
var DTOPipelineListQuery =
|
|
8137
|
-
designSystemId:
|
|
8138
|
-
exporterId:
|
|
8139
|
-
latestJobsLimit:
|
|
8140
|
-
});
|
|
8141
|
-
var DTOPipeline =
|
|
8142
|
-
id:
|
|
8143
|
-
name:
|
|
8157
|
+
import { z as z279 } from "zod";
|
|
8158
|
+
var DTOPipelineListQuery = z279.object({
|
|
8159
|
+
designSystemId: z279.string().optional(),
|
|
8160
|
+
exporterId: z279.string().optional(),
|
|
8161
|
+
latestJobsLimit: z279.coerce.number().optional()
|
|
8162
|
+
});
|
|
8163
|
+
var DTOPipeline = z279.object({
|
|
8164
|
+
id: z279.string(),
|
|
8165
|
+
name: z279.string(),
|
|
8144
8166
|
eventType: PipelineEventType,
|
|
8145
|
-
isEnabled:
|
|
8146
|
-
workspaceId:
|
|
8147
|
-
designSystemId:
|
|
8148
|
-
exporterId:
|
|
8149
|
-
brandPersistentId:
|
|
8150
|
-
themePersistentId:
|
|
8151
|
-
themePersistentIds:
|
|
8167
|
+
isEnabled: z279.boolean(),
|
|
8168
|
+
workspaceId: z279.string(),
|
|
8169
|
+
designSystemId: z279.string(),
|
|
8170
|
+
exporterId: z279.string(),
|
|
8171
|
+
brandPersistentId: z279.string().optional(),
|
|
8172
|
+
themePersistentId: z279.string().optional(),
|
|
8173
|
+
themePersistentIds: z279.string().array().optional(),
|
|
8152
8174
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8153
8175
|
...ExportDestinationsMap.shape,
|
|
8154
8176
|
latestJobs: DTOExportJob.array(),
|
|
8155
|
-
isExporterDeprecated:
|
|
8177
|
+
isExporterDeprecated: z279.boolean()
|
|
8156
8178
|
});
|
|
8157
|
-
var DTOPipelineListResponse =
|
|
8179
|
+
var DTOPipelineListResponse = z279.object({
|
|
8158
8180
|
pipelines: DTOPipeline.array()
|
|
8159
8181
|
});
|
|
8160
|
-
var DTOPipelineResponse =
|
|
8182
|
+
var DTOPipelineResponse = z279.object({
|
|
8161
8183
|
pipeline: DTOPipeline
|
|
8162
8184
|
});
|
|
8163
8185
|
|
|
8164
8186
|
// src/api/dto/documentation/publish.ts
|
|
8165
8187
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
8166
|
-
var DTOPublishDocumentationRequest =
|
|
8188
|
+
var DTOPublishDocumentationRequest = z280.object({
|
|
8167
8189
|
environment: PublishedDocEnvironment,
|
|
8168
8190
|
/**
|
|
8169
8191
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -8171,66 +8193,66 @@ var DTOPublishDocumentationRequest = z279.object({
|
|
|
8171
8193
|
*/
|
|
8172
8194
|
changes: DTOPublishDocumentationChanges.optional()
|
|
8173
8195
|
});
|
|
8174
|
-
var DTOPublishDocumentationResponse =
|
|
8196
|
+
var DTOPublishDocumentationResponse = z280.object({
|
|
8175
8197
|
job: DTOExportJob
|
|
8176
8198
|
});
|
|
8177
8199
|
|
|
8178
8200
|
// src/api/dto/documentation/room.ts
|
|
8179
|
-
import { z as
|
|
8180
|
-
var DTODocumentationPageRoom =
|
|
8181
|
-
id:
|
|
8201
|
+
import { z as z281 } from "zod";
|
|
8202
|
+
var DTODocumentationPageRoom = z281.object({
|
|
8203
|
+
id: z281.string()
|
|
8182
8204
|
});
|
|
8183
|
-
var DTODocumentationPageRoomResponse =
|
|
8205
|
+
var DTODocumentationPageRoomResponse = z281.object({
|
|
8184
8206
|
room: DTODocumentationPageRoom
|
|
8185
8207
|
});
|
|
8186
8208
|
|
|
8187
8209
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
8188
|
-
import
|
|
8189
|
-
var DTOFigmaComponentGroup =
|
|
8190
|
-
id:
|
|
8191
|
-
designSystemVersionId:
|
|
8192
|
-
persistentId:
|
|
8193
|
-
isRoot:
|
|
8194
|
-
brandId:
|
|
8210
|
+
import z282 from "zod";
|
|
8211
|
+
var DTOFigmaComponentGroup = z282.object({
|
|
8212
|
+
id: z282.string(),
|
|
8213
|
+
designSystemVersionId: z282.string(),
|
|
8214
|
+
persistentId: z282.string(),
|
|
8215
|
+
isRoot: z282.boolean(),
|
|
8216
|
+
brandId: z282.string(),
|
|
8195
8217
|
meta: DTOObjectMeta,
|
|
8196
|
-
childrenIds:
|
|
8218
|
+
childrenIds: z282.string().array()
|
|
8197
8219
|
});
|
|
8198
|
-
var DTOFigmaComponentGroupListResponse =
|
|
8220
|
+
var DTOFigmaComponentGroupListResponse = z282.object({
|
|
8199
8221
|
groups: DTOFigmaComponentGroup.array()
|
|
8200
8222
|
});
|
|
8201
8223
|
|
|
8202
8224
|
// src/api/dto/elements/components/figma-component.ts
|
|
8203
|
-
import { z as
|
|
8225
|
+
import { z as z283 } from "zod";
|
|
8204
8226
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
8205
|
-
var DTOFigmaComponentPropertyMap =
|
|
8206
|
-
var DTOFigmaComponent =
|
|
8207
|
-
id:
|
|
8208
|
-
persistentId:
|
|
8209
|
-
designSystemVersionId:
|
|
8210
|
-
brandId:
|
|
8211
|
-
thumbnailUrl:
|
|
8212
|
-
svgUrl:
|
|
8213
|
-
exportProperties:
|
|
8214
|
-
isAsset:
|
|
8227
|
+
var DTOFigmaComponentPropertyMap = z283.record(DTOFigmaComponentProperty);
|
|
8228
|
+
var DTOFigmaComponent = z283.object({
|
|
8229
|
+
id: z283.string(),
|
|
8230
|
+
persistentId: z283.string(),
|
|
8231
|
+
designSystemVersionId: z283.string(),
|
|
8232
|
+
brandId: z283.string(),
|
|
8233
|
+
thumbnailUrl: z283.string().optional(),
|
|
8234
|
+
svgUrl: z283.string().optional(),
|
|
8235
|
+
exportProperties: z283.object({
|
|
8236
|
+
isAsset: z283.boolean()
|
|
8215
8237
|
}),
|
|
8216
|
-
createdAt:
|
|
8217
|
-
updatedAt:
|
|
8238
|
+
createdAt: z283.coerce.date(),
|
|
8239
|
+
updatedAt: z283.coerce.date(),
|
|
8218
8240
|
meta: ObjectMeta,
|
|
8219
8241
|
originComponent: FigmaComponentOrigin.optional(),
|
|
8220
|
-
parentComponentPersistentId:
|
|
8221
|
-
childrenPersistentIds:
|
|
8242
|
+
parentComponentPersistentId: z283.string().optional(),
|
|
8243
|
+
childrenPersistentIds: z283.string().array().optional(),
|
|
8222
8244
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
8223
|
-
variantPropertyValues:
|
|
8245
|
+
variantPropertyValues: z283.record(z283.string()).optional()
|
|
8224
8246
|
});
|
|
8225
|
-
var DTOFigmaComponentListResponse =
|
|
8247
|
+
var DTOFigmaComponentListResponse = z283.object({
|
|
8226
8248
|
components: DTOFigmaComponent.array()
|
|
8227
8249
|
});
|
|
8228
8250
|
|
|
8229
8251
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8230
|
-
import { z as
|
|
8252
|
+
import { z as z285 } from "zod";
|
|
8231
8253
|
|
|
8232
8254
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
8233
|
-
import { z as
|
|
8255
|
+
import { z as z284 } from "zod";
|
|
8234
8256
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
8235
8257
|
sortOrder: true,
|
|
8236
8258
|
parentPersistentId: true,
|
|
@@ -8240,13 +8262,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8240
8262
|
data: true,
|
|
8241
8263
|
shortPersistentId: true
|
|
8242
8264
|
}).extend({
|
|
8243
|
-
title:
|
|
8244
|
-
isRoot:
|
|
8245
|
-
childrenIds:
|
|
8265
|
+
title: z284.string(),
|
|
8266
|
+
isRoot: z284.boolean(),
|
|
8267
|
+
childrenIds: z284.array(z284.string()),
|
|
8246
8268
|
groupBehavior: DocumentationGroupBehavior,
|
|
8247
|
-
shortPersistentId:
|
|
8269
|
+
shortPersistentId: z284.string(),
|
|
8248
8270
|
configuration: DTODocumentationItemConfigurationV2,
|
|
8249
|
-
type:
|
|
8271
|
+
type: z284.literal("Group"),
|
|
8250
8272
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
8251
8273
|
draftState: DTODocumentationDraftState.optional(),
|
|
8252
8274
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -8254,127 +8276,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8254
8276
|
//** An approval state for frontend to utilize. */
|
|
8255
8277
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
8256
8278
|
});
|
|
8257
|
-
var DTOCreateDocumentationGroupInput =
|
|
8279
|
+
var DTOCreateDocumentationGroupInput = z284.object({
|
|
8258
8280
|
// Identifier
|
|
8259
|
-
persistentId:
|
|
8281
|
+
persistentId: z284.string(),
|
|
8260
8282
|
// Group properties
|
|
8261
|
-
title:
|
|
8283
|
+
title: z284.string(),
|
|
8262
8284
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
8263
8285
|
// Group placement properties
|
|
8264
|
-
afterPersistentId:
|
|
8265
|
-
parentPersistentId:
|
|
8286
|
+
afterPersistentId: z284.string().nullish(),
|
|
8287
|
+
parentPersistentId: z284.string()
|
|
8266
8288
|
});
|
|
8267
|
-
var DTOUpdateDocumentationGroupInput =
|
|
8289
|
+
var DTOUpdateDocumentationGroupInput = z284.object({
|
|
8268
8290
|
// Identifier of the group to update
|
|
8269
|
-
id:
|
|
8291
|
+
id: z284.string(),
|
|
8270
8292
|
// Group properties
|
|
8271
|
-
title:
|
|
8293
|
+
title: z284.string().optional(),
|
|
8272
8294
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
8273
8295
|
});
|
|
8274
|
-
var DTOMoveDocumentationGroupInput =
|
|
8296
|
+
var DTOMoveDocumentationGroupInput = z284.object({
|
|
8275
8297
|
// Identifier of the group to update
|
|
8276
|
-
id:
|
|
8298
|
+
id: z284.string(),
|
|
8277
8299
|
// Group placement properties
|
|
8278
|
-
parentPersistentId:
|
|
8279
|
-
afterPersistentId:
|
|
8300
|
+
parentPersistentId: z284.string(),
|
|
8301
|
+
afterPersistentId: z284.string().nullish()
|
|
8280
8302
|
});
|
|
8281
|
-
var DTODuplicateDocumentationGroupInput =
|
|
8303
|
+
var DTODuplicateDocumentationGroupInput = z284.object({
|
|
8282
8304
|
// Identifier of the group to duplicate from
|
|
8283
|
-
id:
|
|
8305
|
+
id: z284.string(),
|
|
8284
8306
|
// New group persistent id
|
|
8285
|
-
persistentId:
|
|
8307
|
+
persistentId: z284.string(),
|
|
8286
8308
|
// Group placement properties
|
|
8287
|
-
afterPersistentId:
|
|
8288
|
-
parentPersistentId:
|
|
8309
|
+
afterPersistentId: z284.string().nullish(),
|
|
8310
|
+
parentPersistentId: z284.string()
|
|
8289
8311
|
});
|
|
8290
|
-
var DTOCreateDocumentationTabInput =
|
|
8312
|
+
var DTOCreateDocumentationTabInput = z284.object({
|
|
8291
8313
|
// New group persistent id
|
|
8292
|
-
persistentId:
|
|
8314
|
+
persistentId: z284.string(),
|
|
8293
8315
|
// If this is page, we will attempt to convert it to tab
|
|
8294
8316
|
// If this is tab group, we will add a new tab to it
|
|
8295
|
-
fromItemPersistentId:
|
|
8296
|
-
tabName:
|
|
8317
|
+
fromItemPersistentId: z284.string(),
|
|
8318
|
+
tabName: z284.string()
|
|
8297
8319
|
});
|
|
8298
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
8320
|
+
var DTODeleteDocumentationTabGroupInput = z284.object({
|
|
8299
8321
|
// Deleted group id
|
|
8300
|
-
id:
|
|
8322
|
+
id: z284.string()
|
|
8301
8323
|
});
|
|
8302
|
-
var DTODeleteDocumentationGroupInput =
|
|
8324
|
+
var DTODeleteDocumentationGroupInput = z284.object({
|
|
8303
8325
|
// Identifier
|
|
8304
|
-
id:
|
|
8326
|
+
id: z284.string(),
|
|
8305
8327
|
// Deletion options
|
|
8306
|
-
deleteSubtree:
|
|
8328
|
+
deleteSubtree: z284.boolean().default(false)
|
|
8307
8329
|
});
|
|
8308
8330
|
|
|
8309
8331
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8310
|
-
var SuccessPayload =
|
|
8311
|
-
success:
|
|
8332
|
+
var SuccessPayload = z285.object({
|
|
8333
|
+
success: z285.literal(true)
|
|
8312
8334
|
});
|
|
8313
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
8314
|
-
type:
|
|
8335
|
+
var DTODocumentationGroupCreateActionOutputV2 = z285.object({
|
|
8336
|
+
type: z285.literal("DocumentationGroupCreate"),
|
|
8315
8337
|
output: SuccessPayload
|
|
8316
8338
|
});
|
|
8317
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
8318
|
-
type:
|
|
8339
|
+
var DTODocumentationTabCreateActionOutputV2 = z285.object({
|
|
8340
|
+
type: z285.literal("DocumentationTabCreate"),
|
|
8319
8341
|
output: SuccessPayload
|
|
8320
8342
|
});
|
|
8321
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
8322
|
-
type:
|
|
8343
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z285.object({
|
|
8344
|
+
type: z285.literal("DocumentationGroupUpdate"),
|
|
8323
8345
|
output: SuccessPayload
|
|
8324
8346
|
});
|
|
8325
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
8326
|
-
type:
|
|
8347
|
+
var DTODocumentationGroupMoveActionOutputV2 = z285.object({
|
|
8348
|
+
type: z285.literal("DocumentationGroupMove"),
|
|
8327
8349
|
output: SuccessPayload
|
|
8328
8350
|
});
|
|
8329
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
8330
|
-
type:
|
|
8351
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z285.object({
|
|
8352
|
+
type: z285.literal("DocumentationGroupDuplicate"),
|
|
8331
8353
|
output: SuccessPayload
|
|
8332
8354
|
});
|
|
8333
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
8334
|
-
type:
|
|
8355
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z285.object({
|
|
8356
|
+
type: z285.literal("DocumentationGroupDelete"),
|
|
8335
8357
|
output: SuccessPayload
|
|
8336
8358
|
});
|
|
8337
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
8338
|
-
type:
|
|
8359
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z285.object({
|
|
8360
|
+
type: z285.literal("DocumentationTabGroupDelete"),
|
|
8339
8361
|
output: SuccessPayload
|
|
8340
8362
|
});
|
|
8341
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
8342
|
-
type:
|
|
8363
|
+
var DTODocumentationGroupCreateActionInputV2 = z285.object({
|
|
8364
|
+
type: z285.literal("DocumentationGroupCreate"),
|
|
8343
8365
|
input: DTOCreateDocumentationGroupInput
|
|
8344
8366
|
});
|
|
8345
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
8346
|
-
type:
|
|
8367
|
+
var DTODocumentationTabCreateActionInputV2 = z285.object({
|
|
8368
|
+
type: z285.literal("DocumentationTabCreate"),
|
|
8347
8369
|
input: DTOCreateDocumentationTabInput
|
|
8348
8370
|
});
|
|
8349
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
8350
|
-
type:
|
|
8371
|
+
var DTODocumentationGroupUpdateActionInputV2 = z285.object({
|
|
8372
|
+
type: z285.literal("DocumentationGroupUpdate"),
|
|
8351
8373
|
input: DTOUpdateDocumentationGroupInput
|
|
8352
8374
|
});
|
|
8353
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
8354
|
-
type:
|
|
8375
|
+
var DTODocumentationGroupMoveActionInputV2 = z285.object({
|
|
8376
|
+
type: z285.literal("DocumentationGroupMove"),
|
|
8355
8377
|
input: DTOMoveDocumentationGroupInput
|
|
8356
8378
|
});
|
|
8357
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
8358
|
-
type:
|
|
8379
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z285.object({
|
|
8380
|
+
type: z285.literal("DocumentationGroupDuplicate"),
|
|
8359
8381
|
input: DTODuplicateDocumentationGroupInput
|
|
8360
8382
|
});
|
|
8361
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
8362
|
-
type:
|
|
8383
|
+
var DTODocumentationGroupDeleteActionInputV2 = z285.object({
|
|
8384
|
+
type: z285.literal("DocumentationGroupDelete"),
|
|
8363
8385
|
input: DTODeleteDocumentationGroupInput
|
|
8364
8386
|
});
|
|
8365
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
8366
|
-
type:
|
|
8387
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z285.object({
|
|
8388
|
+
type: z285.literal("DocumentationTabGroupDelete"),
|
|
8367
8389
|
input: DTODeleteDocumentationTabGroupInput
|
|
8368
8390
|
});
|
|
8369
8391
|
|
|
8370
8392
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
8371
|
-
import { z as
|
|
8393
|
+
import { z as z287 } from "zod";
|
|
8372
8394
|
|
|
8373
8395
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
8374
|
-
import { z as
|
|
8375
|
-
var DocumentationColorV1 =
|
|
8376
|
-
aliasTo:
|
|
8377
|
-
value:
|
|
8396
|
+
import { z as z286 } from "zod";
|
|
8397
|
+
var DocumentationColorV1 = z286.object({
|
|
8398
|
+
aliasTo: z286.string().optional(),
|
|
8399
|
+
value: z286.string().optional()
|
|
8378
8400
|
});
|
|
8379
8401
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
8380
8402
|
foregroundColor: true,
|
|
@@ -8383,10 +8405,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
8383
8405
|
foregroundColor: DocumentationColorV1.optional(),
|
|
8384
8406
|
backgroundColor: DocumentationColorV1.optional()
|
|
8385
8407
|
});
|
|
8386
|
-
var DTODocumentationItemConfigurationV1 =
|
|
8387
|
-
showSidebar:
|
|
8388
|
-
isPrivate:
|
|
8389
|
-
isHidden:
|
|
8408
|
+
var DTODocumentationItemConfigurationV1 = z286.object({
|
|
8409
|
+
showSidebar: z286.boolean(),
|
|
8410
|
+
isPrivate: z286.boolean(),
|
|
8411
|
+
isHidden: z286.boolean(),
|
|
8390
8412
|
header: DTODocumentationItemHeaderV1
|
|
8391
8413
|
});
|
|
8392
8414
|
|
|
@@ -8400,145 +8422,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
8400
8422
|
data: true,
|
|
8401
8423
|
shortPersistentId: true
|
|
8402
8424
|
}).extend({
|
|
8403
|
-
title:
|
|
8404
|
-
isRoot:
|
|
8405
|
-
childrenIds:
|
|
8425
|
+
title: z287.string(),
|
|
8426
|
+
isRoot: z287.boolean(),
|
|
8427
|
+
childrenIds: z287.array(z287.string()),
|
|
8406
8428
|
groupBehavior: DocumentationGroupBehavior,
|
|
8407
|
-
shortPersistentId:
|
|
8408
|
-
type:
|
|
8429
|
+
shortPersistentId: z287.string(),
|
|
8430
|
+
type: z287.literal("Group")
|
|
8409
8431
|
});
|
|
8410
8432
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
8411
8433
|
configuration: DTODocumentationItemConfigurationV1
|
|
8412
8434
|
});
|
|
8413
8435
|
|
|
8414
8436
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
8415
|
-
import { z as
|
|
8416
|
-
var DTODocumentationHierarchyV2 =
|
|
8417
|
-
pages:
|
|
8437
|
+
import { z as z288 } from "zod";
|
|
8438
|
+
var DTODocumentationHierarchyV2 = z288.object({
|
|
8439
|
+
pages: z288.array(
|
|
8418
8440
|
DTODocumentationPageV2.extend({
|
|
8419
8441
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8420
8442
|
draftState: DTODocumentationDraftState.optional()
|
|
8421
8443
|
})
|
|
8422
8444
|
),
|
|
8423
|
-
groups:
|
|
8445
|
+
groups: z288.array(
|
|
8424
8446
|
DTODocumentationGroupV2.extend({
|
|
8425
8447
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8426
8448
|
draftState: DTODocumentationDraftState.optional()
|
|
8427
8449
|
})
|
|
8428
8450
|
),
|
|
8429
8451
|
/** True if the documentation was already published, false otherwise. */
|
|
8430
|
-
hasPublishedDocumentationContent:
|
|
8452
|
+
hasPublishedDocumentationContent: z288.boolean()
|
|
8431
8453
|
});
|
|
8432
8454
|
|
|
8433
8455
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
8434
|
-
import { z as
|
|
8435
|
-
var SuccessPayload2 =
|
|
8436
|
-
success:
|
|
8456
|
+
import { z as z289 } from "zod";
|
|
8457
|
+
var SuccessPayload2 = z289.object({
|
|
8458
|
+
success: z289.literal(true)
|
|
8437
8459
|
});
|
|
8438
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
8439
|
-
type:
|
|
8460
|
+
var DTODocumentationPageCreateActionOutputV2 = z289.object({
|
|
8461
|
+
type: z289.literal("DocumentationPageCreate"),
|
|
8440
8462
|
output: SuccessPayload2
|
|
8441
8463
|
});
|
|
8442
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
8443
|
-
type:
|
|
8464
|
+
var DTODocumentationPageUpdateActionOutputV2 = z289.object({
|
|
8465
|
+
type: z289.literal("DocumentationPageUpdate"),
|
|
8444
8466
|
output: SuccessPayload2
|
|
8445
8467
|
});
|
|
8446
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
8447
|
-
type:
|
|
8468
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z289.object({
|
|
8469
|
+
type: z289.literal("DocumentationPageUpdateDocument"),
|
|
8448
8470
|
output: SuccessPayload2
|
|
8449
8471
|
});
|
|
8450
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
8451
|
-
type:
|
|
8472
|
+
var DTODocumentationPageMoveActionOutputV2 = z289.object({
|
|
8473
|
+
type: z289.literal("DocumentationPageMove"),
|
|
8452
8474
|
output: SuccessPayload2
|
|
8453
8475
|
});
|
|
8454
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
8455
|
-
type:
|
|
8476
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z289.object({
|
|
8477
|
+
type: z289.literal("DocumentationPageDuplicate"),
|
|
8456
8478
|
output: SuccessPayload2
|
|
8457
8479
|
});
|
|
8458
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
8459
|
-
type:
|
|
8480
|
+
var DTODocumentationPageDeleteActionOutputV2 = z289.object({
|
|
8481
|
+
type: z289.literal("DocumentationPageDelete"),
|
|
8460
8482
|
output: SuccessPayload2
|
|
8461
8483
|
});
|
|
8462
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
8463
|
-
type:
|
|
8484
|
+
var DTODocumentationPageRestoreActionOutput = z289.object({
|
|
8485
|
+
type: z289.literal("DocumentationPageRestore"),
|
|
8464
8486
|
output: SuccessPayload2
|
|
8465
8487
|
});
|
|
8466
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
8467
|
-
type:
|
|
8488
|
+
var DTODocumentationGroupRestoreActionOutput = z289.object({
|
|
8489
|
+
type: z289.literal("DocumentationGroupRestore"),
|
|
8468
8490
|
output: SuccessPayload2
|
|
8469
8491
|
});
|
|
8470
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
8471
|
-
type:
|
|
8492
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z289.object({
|
|
8493
|
+
type: z289.literal("DocumentationPageApprovalStateChange"),
|
|
8472
8494
|
output: SuccessPayload2
|
|
8473
8495
|
});
|
|
8474
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
8475
|
-
type:
|
|
8496
|
+
var DTODocumentationPageCreateActionInputV2 = z289.object({
|
|
8497
|
+
type: z289.literal("DocumentationPageCreate"),
|
|
8476
8498
|
input: DTOCreateDocumentationPageInputV2
|
|
8477
8499
|
});
|
|
8478
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
8479
|
-
type:
|
|
8500
|
+
var DTODocumentationPageUpdateActionInputV2 = z289.object({
|
|
8501
|
+
type: z289.literal("DocumentationPageUpdate"),
|
|
8480
8502
|
input: DTOUpdateDocumentationPageInputV2
|
|
8481
8503
|
});
|
|
8482
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
8483
|
-
type:
|
|
8504
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z289.object({
|
|
8505
|
+
type: z289.literal("DocumentationPageUpdateDocument"),
|
|
8484
8506
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
8485
8507
|
});
|
|
8486
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
8487
|
-
type:
|
|
8508
|
+
var DTODocumentationPageMoveActionInputV2 = z289.object({
|
|
8509
|
+
type: z289.literal("DocumentationPageMove"),
|
|
8488
8510
|
input: DTOMoveDocumentationPageInputV2
|
|
8489
8511
|
});
|
|
8490
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
8491
|
-
type:
|
|
8512
|
+
var DTODocumentationPageDuplicateActionInputV2 = z289.object({
|
|
8513
|
+
type: z289.literal("DocumentationPageDuplicate"),
|
|
8492
8514
|
input: DTODuplicateDocumentationPageInputV2
|
|
8493
8515
|
});
|
|
8494
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
8495
|
-
type:
|
|
8516
|
+
var DTODocumentationPageDeleteActionInputV2 = z289.object({
|
|
8517
|
+
type: z289.literal("DocumentationPageDelete"),
|
|
8496
8518
|
input: DTODeleteDocumentationPageInputV2
|
|
8497
8519
|
});
|
|
8498
|
-
var DTODocumentationPageRestoreActionInput =
|
|
8499
|
-
type:
|
|
8520
|
+
var DTODocumentationPageRestoreActionInput = z289.object({
|
|
8521
|
+
type: z289.literal("DocumentationPageRestore"),
|
|
8500
8522
|
input: DTORestoreDocumentationPageInput
|
|
8501
8523
|
});
|
|
8502
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
8503
|
-
type:
|
|
8524
|
+
var DTODocumentationGroupRestoreActionInput = z289.object({
|
|
8525
|
+
type: z289.literal("DocumentationGroupRestore"),
|
|
8504
8526
|
input: DTORestoreDocumentationGroupInput
|
|
8505
8527
|
});
|
|
8506
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
8507
|
-
type:
|
|
8528
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z289.object({
|
|
8529
|
+
type: z289.literal("DocumentationPageApprovalStateChange"),
|
|
8508
8530
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
8509
8531
|
});
|
|
8510
8532
|
|
|
8511
8533
|
// src/api/dto/elements/documentation/page-content.ts
|
|
8512
|
-
import { z as
|
|
8534
|
+
import { z as z290 } from "zod";
|
|
8513
8535
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
8514
|
-
var DTODocumentationPageContentGetResponse =
|
|
8536
|
+
var DTODocumentationPageContentGetResponse = z290.object({
|
|
8515
8537
|
pageContent: DTODocumentationPageContent
|
|
8516
8538
|
});
|
|
8517
8539
|
|
|
8518
8540
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
8519
|
-
import { z as
|
|
8520
|
-
var DTODocumentationPageDependencies =
|
|
8521
|
-
id:
|
|
8522
|
-
designSystemVersionId:
|
|
8523
|
-
createdAt:
|
|
8524
|
-
updatedAt:
|
|
8525
|
-
documentationPageId:
|
|
8526
|
-
tokenPersistentIds:
|
|
8527
|
-
figmaComponentPersistentIds:
|
|
8528
|
-
componentPersistentIds:
|
|
8529
|
-
figmaNodePersistentIds:
|
|
8530
|
-
groupPersistentIds:
|
|
8531
|
-
propertyPersistentIds:
|
|
8532
|
-
themePersistentIds:
|
|
8533
|
-
documentationPagePersistentIds:
|
|
8534
|
-
storybookEntriesStoryIds:
|
|
8535
|
-
});
|
|
8536
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
8537
|
-
dependencies:
|
|
8541
|
+
import { z as z291 } from "zod";
|
|
8542
|
+
var DTODocumentationPageDependencies = z291.object({
|
|
8543
|
+
id: z291.string(),
|
|
8544
|
+
designSystemVersionId: z291.string(),
|
|
8545
|
+
createdAt: z291.coerce.date(),
|
|
8546
|
+
updatedAt: z291.coerce.date(),
|
|
8547
|
+
documentationPageId: z291.string(),
|
|
8548
|
+
tokenPersistentIds: z291.array(z291.string()),
|
|
8549
|
+
figmaComponentPersistentIds: z291.array(z291.string()),
|
|
8550
|
+
componentPersistentIds: z291.array(z291.string()),
|
|
8551
|
+
figmaNodePersistentIds: z291.array(z291.string()),
|
|
8552
|
+
groupPersistentIds: z291.array(z291.string()),
|
|
8553
|
+
propertyPersistentIds: z291.array(z291.string()),
|
|
8554
|
+
themePersistentIds: z291.array(z291.string()),
|
|
8555
|
+
documentationPagePersistentIds: z291.array(z291.string()),
|
|
8556
|
+
storybookEntriesStoryIds: z291.array(z291.string())
|
|
8557
|
+
});
|
|
8558
|
+
var DTODocumentationPageDependenciesGetResponse = z291.object({
|
|
8559
|
+
dependencies: z291.array(DTODocumentationPageDependencies)
|
|
8538
8560
|
});
|
|
8539
8561
|
|
|
8540
8562
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
8541
|
-
import { z as
|
|
8563
|
+
import { z as z292 } from "zod";
|
|
8542
8564
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
8543
8565
|
data: true,
|
|
8544
8566
|
meta: true,
|
|
@@ -8546,81 +8568,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
8546
8568
|
sortOrder: true
|
|
8547
8569
|
}).extend({
|
|
8548
8570
|
configuration: DTODocumentationItemConfigurationV1,
|
|
8549
|
-
blocks:
|
|
8550
|
-
title:
|
|
8551
|
-
path:
|
|
8571
|
+
blocks: z292.array(PageBlockV1),
|
|
8572
|
+
title: z292.string(),
|
|
8573
|
+
path: z292.string()
|
|
8552
8574
|
});
|
|
8553
8575
|
|
|
8554
8576
|
// src/api/dto/elements/documentation/settings.ts
|
|
8555
|
-
import { z as
|
|
8556
|
-
var DTODocumentationSettings =
|
|
8557
|
-
isDraftFeatureAdopted:
|
|
8558
|
-
isApprovalsFeatureEnabled:
|
|
8559
|
-
isApprovalRequiredForPublishing:
|
|
8577
|
+
import { z as z293 } from "zod";
|
|
8578
|
+
var DTODocumentationSettings = z293.object({
|
|
8579
|
+
isDraftFeatureAdopted: z293.boolean(),
|
|
8580
|
+
isApprovalsFeatureEnabled: z293.boolean(),
|
|
8581
|
+
isApprovalRequiredForPublishing: z293.boolean()
|
|
8560
8582
|
});
|
|
8561
8583
|
|
|
8562
8584
|
// src/api/dto/elements/documentation/structure.ts
|
|
8563
|
-
import { z as
|
|
8564
|
-
var DTODocumentationStructureItemType =
|
|
8565
|
-
var DTODocumentationStructureItemBase =
|
|
8585
|
+
import { z as z294 } from "zod";
|
|
8586
|
+
var DTODocumentationStructureItemType = z294.enum(["Group", "Page"]);
|
|
8587
|
+
var DTODocumentationStructureItemBase = z294.object({
|
|
8566
8588
|
type: DTODocumentationStructureItemType,
|
|
8567
|
-
id:
|
|
8568
|
-
designSystemVersionId:
|
|
8569
|
-
shortPersistentId:
|
|
8570
|
-
persistentId:
|
|
8571
|
-
title:
|
|
8572
|
-
createdAt:
|
|
8573
|
-
updatedAt:
|
|
8589
|
+
id: z294.string(),
|
|
8590
|
+
designSystemVersionId: z294.string(),
|
|
8591
|
+
shortPersistentId: z294.string(),
|
|
8592
|
+
persistentId: z294.string(),
|
|
8593
|
+
title: z294.string(),
|
|
8594
|
+
createdAt: z294.coerce.date(),
|
|
8595
|
+
updatedAt: z294.coerce.date()
|
|
8574
8596
|
});
|
|
8575
8597
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
8576
|
-
type:
|
|
8577
|
-
groupBehavior:
|
|
8578
|
-
childrenIds:
|
|
8579
|
-
isRoot:
|
|
8598
|
+
type: z294.literal(DTODocumentationStructureItemType.enum.Group),
|
|
8599
|
+
groupBehavior: z294.string(),
|
|
8600
|
+
childrenIds: z294.string().array(),
|
|
8601
|
+
isRoot: z294.boolean()
|
|
8580
8602
|
});
|
|
8581
8603
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
8582
|
-
type:
|
|
8583
|
-
path:
|
|
8604
|
+
type: z294.literal(DTODocumentationStructureItemType.enum.Page),
|
|
8605
|
+
path: z294.string()
|
|
8584
8606
|
});
|
|
8585
|
-
var DTODocumentationStructureItem =
|
|
8607
|
+
var DTODocumentationStructureItem = z294.discriminatedUnion("type", [
|
|
8586
8608
|
DTODocumentationStructureGroupItem,
|
|
8587
8609
|
DTODocumentationStructurePageItem
|
|
8588
8610
|
]);
|
|
8589
|
-
var DTODocumentationStructure =
|
|
8590
|
-
items:
|
|
8611
|
+
var DTODocumentationStructure = z294.object({
|
|
8612
|
+
items: z294.array(DTODocumentationStructureItem)
|
|
8591
8613
|
});
|
|
8592
8614
|
|
|
8593
8615
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
8594
|
-
import { z as
|
|
8595
|
-
var DTOFigmaNodeStructure =
|
|
8596
|
-
id:
|
|
8597
|
-
sourceId:
|
|
8616
|
+
import { z as z295 } from "zod";
|
|
8617
|
+
var DTOFigmaNodeStructure = z295.object({
|
|
8618
|
+
id: z295.string(),
|
|
8619
|
+
sourceId: z295.string(),
|
|
8598
8620
|
importState: FigmaNodeStructureStateV2,
|
|
8599
|
-
createdAt:
|
|
8600
|
-
updatedAt:
|
|
8621
|
+
createdAt: z295.coerce.date(),
|
|
8622
|
+
updatedAt: z295.coerce.date()
|
|
8601
8623
|
});
|
|
8602
8624
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
8603
8625
|
rootNode: FigmaFileStructureNode
|
|
8604
8626
|
});
|
|
8605
|
-
var DTOFigmaNodeStructureListResponse =
|
|
8627
|
+
var DTOFigmaNodeStructureListResponse = z295.object({
|
|
8606
8628
|
structures: DTOFigmaNodeStructure.array()
|
|
8607
8629
|
});
|
|
8608
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
8630
|
+
var DTOFigmaNodeStructureDetailResponse = z295.object({
|
|
8609
8631
|
structure: DTOFigmaNodeStructureDetail
|
|
8610
8632
|
});
|
|
8611
8633
|
|
|
8612
8634
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8613
|
-
import { z as
|
|
8635
|
+
import { z as z297 } from "zod";
|
|
8614
8636
|
|
|
8615
8637
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
8616
|
-
import { z as
|
|
8638
|
+
import { z as z296 } from "zod";
|
|
8617
8639
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
8618
|
-
var DTOFigmaNodeOrigin =
|
|
8619
|
-
sourceId:
|
|
8620
|
-
fileId:
|
|
8621
|
-
parentName:
|
|
8640
|
+
var DTOFigmaNodeOrigin = z296.object({
|
|
8641
|
+
sourceId: z296.string(),
|
|
8642
|
+
fileId: z296.string().optional(),
|
|
8643
|
+
parentName: z296.string().optional()
|
|
8622
8644
|
});
|
|
8623
|
-
var DTOFigmaNodeRenderInputBase =
|
|
8645
|
+
var DTOFigmaNodeRenderInputBase = z296.object({
|
|
8624
8646
|
/**
|
|
8625
8647
|
* Format in which the node must be rendered, png by default.
|
|
8626
8648
|
*/
|
|
@@ -8628,57 +8650,57 @@ var DTOFigmaNodeRenderInputBase = z295.object({
|
|
|
8628
8650
|
/**
|
|
8629
8651
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
8630
8652
|
*/
|
|
8631
|
-
scale:
|
|
8653
|
+
scale: z296.number().optional()
|
|
8632
8654
|
});
|
|
8633
8655
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8634
|
-
inputType:
|
|
8656
|
+
inputType: z296.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
8635
8657
|
/**
|
|
8636
8658
|
* Id of a design system's data source representing a linked Figma file
|
|
8637
8659
|
*/
|
|
8638
|
-
sourceId:
|
|
8660
|
+
sourceId: z296.string(),
|
|
8639
8661
|
/**
|
|
8640
8662
|
* Id of a node within the Figma file
|
|
8641
8663
|
*/
|
|
8642
|
-
figmaFileNodeId:
|
|
8664
|
+
figmaFileNodeId: z296.string()
|
|
8643
8665
|
});
|
|
8644
8666
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8645
|
-
inputType:
|
|
8667
|
+
inputType: z296.literal("URL"),
|
|
8646
8668
|
/**
|
|
8647
8669
|
* Id of a design system's data source representing a linked Figma file
|
|
8648
8670
|
*/
|
|
8649
|
-
figmaNodeUrl:
|
|
8671
|
+
figmaNodeUrl: z296.string(),
|
|
8650
8672
|
/**
|
|
8651
8673
|
* Brand persistent id to use in case a source has to be created for this render
|
|
8652
8674
|
*/
|
|
8653
|
-
brandPersistentId:
|
|
8675
|
+
brandPersistentId: z296.string()
|
|
8654
8676
|
});
|
|
8655
|
-
var DTOFigmaNodeRerenderInput =
|
|
8656
|
-
inputType:
|
|
8677
|
+
var DTOFigmaNodeRerenderInput = z296.object({
|
|
8678
|
+
inputType: z296.literal("Rerender"),
|
|
8657
8679
|
/**
|
|
8658
8680
|
* Persistent ID of an existing Figma node
|
|
8659
8681
|
*/
|
|
8660
|
-
figmaNodePersistentId:
|
|
8682
|
+
figmaNodePersistentId: z296.string()
|
|
8661
8683
|
});
|
|
8662
|
-
var DTOFigmaNodeRenderInput =
|
|
8684
|
+
var DTOFigmaNodeRenderInput = z296.discriminatedUnion("inputType", [
|
|
8663
8685
|
DTOFigmaNodeRenderIdInput,
|
|
8664
8686
|
DTOFigmaNodeRenderUrlInput,
|
|
8665
8687
|
DTOFigmaNodeRerenderInput
|
|
8666
8688
|
]);
|
|
8667
8689
|
|
|
8668
8690
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8669
|
-
var DTOFigmaNodeData =
|
|
8691
|
+
var DTOFigmaNodeData = z297.object({
|
|
8670
8692
|
// Id of the node in the Figma file
|
|
8671
|
-
figmaNodeId:
|
|
8693
|
+
figmaNodeId: z297.string(),
|
|
8672
8694
|
// Validity
|
|
8673
|
-
isValid:
|
|
8695
|
+
isValid: z297.boolean(),
|
|
8674
8696
|
// Asset data
|
|
8675
|
-
assetId:
|
|
8676
|
-
assetUrl:
|
|
8697
|
+
assetId: z297.string(),
|
|
8698
|
+
assetUrl: z297.string(),
|
|
8677
8699
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
8678
8700
|
// Asset metadata
|
|
8679
|
-
assetScale:
|
|
8680
|
-
assetWidth:
|
|
8681
|
-
assetHeight:
|
|
8701
|
+
assetScale: z297.number(),
|
|
8702
|
+
assetWidth: z297.number().optional(),
|
|
8703
|
+
assetHeight: z297.number().optional()
|
|
8682
8704
|
});
|
|
8683
8705
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
8684
8706
|
data: true,
|
|
@@ -8689,15 +8711,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
8689
8711
|
});
|
|
8690
8712
|
|
|
8691
8713
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
8692
|
-
import { z as
|
|
8693
|
-
var DTOFigmaNodeDataV2 =
|
|
8694
|
-
sceneNodeId:
|
|
8714
|
+
import { z as z298 } from "zod";
|
|
8715
|
+
var DTOFigmaNodeDataV2 = z298.object({
|
|
8716
|
+
sceneNodeId: z298.string(),
|
|
8695
8717
|
format: FigmaNodeRenderFormat,
|
|
8696
|
-
scale:
|
|
8718
|
+
scale: z298.number().optional(),
|
|
8697
8719
|
renderState: FigmaNodeRenderState,
|
|
8698
8720
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
8699
8721
|
renderError: FigmaNodeRenderError.optional(),
|
|
8700
|
-
hasSource:
|
|
8722
|
+
hasSource: z298.boolean()
|
|
8701
8723
|
});
|
|
8702
8724
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
8703
8725
|
data: true,
|
|
@@ -8708,113 +8730,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
8708
8730
|
});
|
|
8709
8731
|
|
|
8710
8732
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
8711
|
-
import { z as
|
|
8712
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
8713
|
-
type:
|
|
8714
|
-
figmaNodes:
|
|
8733
|
+
import { z as z299 } from "zod";
|
|
8734
|
+
var DTOFigmaNodeRenderActionOutput = z299.object({
|
|
8735
|
+
type: z299.literal("FigmaNodeRender"),
|
|
8736
|
+
figmaNodes: z299.array(DTOFigmaNode)
|
|
8715
8737
|
});
|
|
8716
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
8717
|
-
type:
|
|
8718
|
-
figmaNodes:
|
|
8738
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z299.object({
|
|
8739
|
+
type: z299.literal("FigmaNodeRenderAsync"),
|
|
8740
|
+
figmaNodes: z299.array(DTOFigmaNodeV2)
|
|
8719
8741
|
});
|
|
8720
|
-
var DTOFigmaNodeRenderActionInput =
|
|
8721
|
-
type:
|
|
8742
|
+
var DTOFigmaNodeRenderActionInput = z299.object({
|
|
8743
|
+
type: z299.literal("FigmaNodeRender"),
|
|
8722
8744
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
8723
8745
|
});
|
|
8724
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
8725
|
-
type:
|
|
8746
|
+
var DTOFigmaNodeRenderAsyncActionInput = z299.object({
|
|
8747
|
+
type: z299.literal("FigmaNodeRenderAsync"),
|
|
8726
8748
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
8727
8749
|
});
|
|
8728
8750
|
|
|
8729
8751
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8730
|
-
import { z as
|
|
8731
|
-
var DTOFrameNodeStructure =
|
|
8732
|
-
id:
|
|
8733
|
-
persistentId:
|
|
8734
|
-
designSystemVersionId:
|
|
8752
|
+
import { z as z300 } from "zod";
|
|
8753
|
+
var DTOFrameNodeStructure = z300.object({
|
|
8754
|
+
id: z300.string(),
|
|
8755
|
+
persistentId: z300.string(),
|
|
8756
|
+
designSystemVersionId: z300.string(),
|
|
8735
8757
|
origin: FigmaFileStructureOrigin,
|
|
8736
8758
|
assetsInFile: FigmaFileStructureStatistics
|
|
8737
8759
|
});
|
|
8738
|
-
var DTOFrameNodeStructureListResponse =
|
|
8760
|
+
var DTOFrameNodeStructureListResponse = z300.object({
|
|
8739
8761
|
structures: DTOFrameNodeStructure.array()
|
|
8740
8762
|
});
|
|
8741
8763
|
|
|
8742
8764
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8743
|
-
import { z as
|
|
8765
|
+
import { z as z301 } from "zod";
|
|
8744
8766
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8745
|
-
var DTOElementPropertyDefinitionOption =
|
|
8746
|
-
id:
|
|
8747
|
-
name:
|
|
8767
|
+
var DTOElementPropertyDefinitionOption = z301.object({
|
|
8768
|
+
id: z301.string(),
|
|
8769
|
+
name: z301.string(),
|
|
8748
8770
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8749
8771
|
});
|
|
8750
|
-
var DTOElementPropertyDefinition =
|
|
8751
|
-
id:
|
|
8752
|
-
designSystemVersionId:
|
|
8772
|
+
var DTOElementPropertyDefinition = z301.object({
|
|
8773
|
+
id: z301.string(),
|
|
8774
|
+
designSystemVersionId: z301.string(),
|
|
8753
8775
|
meta: DTOObjectMeta,
|
|
8754
|
-
persistentId:
|
|
8776
|
+
persistentId: z301.string(),
|
|
8755
8777
|
type: ElementPropertyTypeSchema,
|
|
8756
8778
|
targetElementType: ElementPropertyTargetType,
|
|
8757
|
-
codeName:
|
|
8758
|
-
options: nullishToOptional(
|
|
8779
|
+
codeName: z301.string().regex(CODE_NAME_REGEX2),
|
|
8780
|
+
options: nullishToOptional(z301.array(DTOElementPropertyDefinitionOption)),
|
|
8759
8781
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8760
|
-
isImmutable:
|
|
8782
|
+
isImmutable: z301.boolean(),
|
|
8761
8783
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8762
8784
|
});
|
|
8763
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8764
|
-
definitions:
|
|
8785
|
+
var DTOElementPropertyDefinitionListResponse = z301.object({
|
|
8786
|
+
definitions: z301.array(DTOElementPropertyDefinition)
|
|
8765
8787
|
});
|
|
8766
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8788
|
+
var DTOElementPropertyDefinitionResponse = z301.object({
|
|
8767
8789
|
definition: DTOElementPropertyDefinition
|
|
8768
8790
|
});
|
|
8769
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8791
|
+
var DTOElementPropertyDefinitionCreatePayload = z301.object({
|
|
8770
8792
|
meta: DTOObjectMeta,
|
|
8771
|
-
persistentId:
|
|
8793
|
+
persistentId: z301.string(),
|
|
8772
8794
|
type: ElementPropertyTypeSchema,
|
|
8773
8795
|
targetElementType: ElementPropertyTargetType,
|
|
8774
|
-
codeName:
|
|
8775
|
-
options: nullishToOptional(
|
|
8796
|
+
codeName: z301.string().regex(CODE_NAME_REGEX2),
|
|
8797
|
+
options: nullishToOptional(z301.array(DTOElementPropertyDefinitionOption)),
|
|
8776
8798
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8777
|
-
columnWidth:
|
|
8799
|
+
columnWidth: z301.number().max(1024).optional()
|
|
8778
8800
|
});
|
|
8779
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8801
|
+
var DTOElementPropertyDefinitionUpdatePayload = z301.object({
|
|
8780
8802
|
meta: DTOObjectMeta.optional(),
|
|
8781
|
-
codeName:
|
|
8782
|
-
options:
|
|
8803
|
+
codeName: z301.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8804
|
+
options: z301.array(DTOElementPropertyDefinitionOption).optional()
|
|
8783
8805
|
});
|
|
8784
8806
|
|
|
8785
8807
|
// src/api/dto/elements/properties/property-values.ts
|
|
8786
|
-
import { z as
|
|
8787
|
-
var DTOElementPropertyValue =
|
|
8788
|
-
id:
|
|
8789
|
-
designSystemVersionId:
|
|
8790
|
-
definitionId:
|
|
8791
|
-
targetElementId:
|
|
8792
|
-
value:
|
|
8793
|
-
valuePreview:
|
|
8794
|
-
});
|
|
8795
|
-
var DTOElementPropertyValueListResponse =
|
|
8796
|
-
values:
|
|
8797
|
-
});
|
|
8798
|
-
var DTOElementPropertyValueResponse =
|
|
8808
|
+
import { z as z302 } from "zod";
|
|
8809
|
+
var DTOElementPropertyValue = z302.object({
|
|
8810
|
+
id: z302.string(),
|
|
8811
|
+
designSystemVersionId: z302.string(),
|
|
8812
|
+
definitionId: z302.string(),
|
|
8813
|
+
targetElementId: z302.string(),
|
|
8814
|
+
value: z302.union([z302.string(), z302.number(), z302.boolean()]).optional(),
|
|
8815
|
+
valuePreview: z302.string().optional()
|
|
8816
|
+
});
|
|
8817
|
+
var DTOElementPropertyValueListResponse = z302.object({
|
|
8818
|
+
values: z302.array(DTOElementPropertyValue)
|
|
8819
|
+
});
|
|
8820
|
+
var DTOElementPropertyValueResponse = z302.object({
|
|
8799
8821
|
value: DTOElementPropertyValue
|
|
8800
8822
|
});
|
|
8801
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8802
|
-
type:
|
|
8803
|
-
output:
|
|
8823
|
+
var DTOElementPropertyValuesEditActionOutput = z302.object({
|
|
8824
|
+
type: z302.literal("ElementPropertyValuesEdit"),
|
|
8825
|
+
output: z302.object({ success: z302.literal(true) })
|
|
8804
8826
|
});
|
|
8805
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8806
|
-
definitionId:
|
|
8807
|
-
targetElementId:
|
|
8808
|
-
value:
|
|
8827
|
+
var DTOElementPropertyValueUpsertPaylod = z302.object({
|
|
8828
|
+
definitionId: z302.string(),
|
|
8829
|
+
targetElementId: z302.string(),
|
|
8830
|
+
value: z302.string().or(z302.number()).or(z302.boolean()).nullable()
|
|
8809
8831
|
});
|
|
8810
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8811
|
-
type:
|
|
8832
|
+
var DTOElementPropertyValuesEditActionInput = z302.object({
|
|
8833
|
+
type: z302.literal("ElementPropertyValuesEdit"),
|
|
8812
8834
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8813
8835
|
});
|
|
8814
8836
|
|
|
8815
8837
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8816
|
-
import { z as
|
|
8817
|
-
var DTOElementActionOutput =
|
|
8838
|
+
import { z as z303 } from "zod";
|
|
8839
|
+
var DTOElementActionOutput = z303.discriminatedUnion("type", [
|
|
8818
8840
|
// Documentation pages
|
|
8819
8841
|
DTODocumentationPageCreateActionOutputV2,
|
|
8820
8842
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8841,7 +8863,7 @@ var DTOElementActionOutput = z302.discriminatedUnion("type", [
|
|
|
8841
8863
|
// Element properties
|
|
8842
8864
|
DTOElementPropertyValuesEditActionOutput
|
|
8843
8865
|
]);
|
|
8844
|
-
var DTOElementActionInput =
|
|
8866
|
+
var DTOElementActionInput = z303.discriminatedUnion("type", [
|
|
8845
8867
|
// Documentation pages
|
|
8846
8868
|
DTODocumentationPageCreateActionInputV2,
|
|
8847
8869
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8868,78 +8890,78 @@ var DTOElementActionInput = z302.discriminatedUnion("type", [
|
|
|
8868
8890
|
// Element properties
|
|
8869
8891
|
DTOElementPropertyValuesEditActionInput
|
|
8870
8892
|
]).and(
|
|
8871
|
-
|
|
8872
|
-
tId:
|
|
8893
|
+
z303.object({
|
|
8894
|
+
tId: z303.string().optional()
|
|
8873
8895
|
})
|
|
8874
8896
|
);
|
|
8875
8897
|
|
|
8876
8898
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8877
|
-
import { z as
|
|
8878
|
-
var DTOElementsGetTypeFilter =
|
|
8879
|
-
var DTOElementsGetQuerySchema =
|
|
8880
|
-
types:
|
|
8881
|
-
responseVersion:
|
|
8899
|
+
import { z as z304 } from "zod";
|
|
8900
|
+
var DTOElementsGetTypeFilter = z304.enum(["FigmaNode"]);
|
|
8901
|
+
var DTOElementsGetQuerySchema = z304.object({
|
|
8902
|
+
types: z304.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8903
|
+
responseVersion: z304.coerce.number().default(1)
|
|
8882
8904
|
});
|
|
8883
|
-
var DTOElementsGetOutput =
|
|
8884
|
-
figmaNodes:
|
|
8905
|
+
var DTOElementsGetOutput = z304.object({
|
|
8906
|
+
figmaNodes: z304.array(DTOFigmaNode).optional()
|
|
8885
8907
|
});
|
|
8886
|
-
var DTOElementsGetOutputV2 =
|
|
8887
|
-
figmaNodes:
|
|
8908
|
+
var DTOElementsGetOutputV2 = z304.object({
|
|
8909
|
+
figmaNodes: z304.array(DTOFigmaNodeV2).optional()
|
|
8888
8910
|
});
|
|
8889
8911
|
|
|
8890
8912
|
// src/api/dto/figma-components/assets/download.ts
|
|
8891
|
-
import { z as
|
|
8892
|
-
var DTOAssetRenderConfiguration =
|
|
8893
|
-
prefix:
|
|
8894
|
-
suffix:
|
|
8895
|
-
scale:
|
|
8896
|
-
format:
|
|
8897
|
-
});
|
|
8898
|
-
var DTORenderedAssetFile =
|
|
8899
|
-
assetId:
|
|
8900
|
-
fileName:
|
|
8901
|
-
sourceUrl:
|
|
8913
|
+
import { z as z305 } from "zod";
|
|
8914
|
+
var DTOAssetRenderConfiguration = z305.object({
|
|
8915
|
+
prefix: z305.string().optional(),
|
|
8916
|
+
suffix: z305.string().optional(),
|
|
8917
|
+
scale: z305.enum(["x1", "x2", "x3", "x4"]),
|
|
8918
|
+
format: z305.enum(["png", "pdf", "svg"])
|
|
8919
|
+
});
|
|
8920
|
+
var DTORenderedAssetFile = z305.object({
|
|
8921
|
+
assetId: z305.string(),
|
|
8922
|
+
fileName: z305.string(),
|
|
8923
|
+
sourceUrl: z305.string(),
|
|
8902
8924
|
settings: DTOAssetRenderConfiguration,
|
|
8903
|
-
originalName:
|
|
8925
|
+
originalName: z305.string()
|
|
8904
8926
|
});
|
|
8905
|
-
var DTODownloadAssetsRequest =
|
|
8906
|
-
persistentIds:
|
|
8927
|
+
var DTODownloadAssetsRequest = z305.object({
|
|
8928
|
+
persistentIds: z305.array(z305.string().uuid()).optional(),
|
|
8907
8929
|
settings: DTOAssetRenderConfiguration.array()
|
|
8908
8930
|
});
|
|
8909
|
-
var DTODownloadAssetsResponse =
|
|
8931
|
+
var DTODownloadAssetsResponse = z305.object({
|
|
8910
8932
|
items: DTORenderedAssetFile.array()
|
|
8911
8933
|
});
|
|
8912
8934
|
|
|
8913
8935
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
8914
|
-
import { z as
|
|
8915
|
-
var DTOFigmaNodeResponse =
|
|
8936
|
+
import { z as z306 } from "zod";
|
|
8937
|
+
var DTOFigmaNodeResponse = z306.object({
|
|
8916
8938
|
nodes: FigmaExporterAnyDesignNodeSchema
|
|
8917
8939
|
});
|
|
8918
8940
|
|
|
8919
8941
|
// src/api/dto/forge/agent.ts
|
|
8920
|
-
import { z as
|
|
8942
|
+
import { z as z307 } from "zod";
|
|
8921
8943
|
var DTOForgeAgent = ForgeAgent;
|
|
8922
8944
|
var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
|
|
8923
8945
|
var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
|
|
8924
|
-
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id:
|
|
8925
|
-
var DTOCreateForgeAgentResponse =
|
|
8946
|
+
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z307.string() });
|
|
8947
|
+
var DTOCreateForgeAgentResponse = z307.object({
|
|
8926
8948
|
agent: DTOForgeAgent
|
|
8927
8949
|
});
|
|
8928
|
-
var DTOUGetForgeAgentResponse =
|
|
8950
|
+
var DTOUGetForgeAgentResponse = z307.object({
|
|
8929
8951
|
agent: DTOForgeAgent.nullable()
|
|
8930
8952
|
});
|
|
8931
|
-
var DTOUpdateForgeAgentResponse =
|
|
8953
|
+
var DTOUpdateForgeAgentResponse = z307.object({
|
|
8932
8954
|
agent: DTOForgeAgent.nullable()
|
|
8933
8955
|
});
|
|
8934
|
-
var DTOForgeAgentsListResponse =
|
|
8935
|
-
agents:
|
|
8956
|
+
var DTOForgeAgentsListResponse = z307.object({
|
|
8957
|
+
agents: z307.array(DTOForgeAgent)
|
|
8936
8958
|
});
|
|
8937
|
-
var DTODeleteForgeAgentResponse =
|
|
8938
|
-
ok:
|
|
8959
|
+
var DTODeleteForgeAgentResponse = z307.object({
|
|
8960
|
+
ok: z307.literal(true)
|
|
8939
8961
|
});
|
|
8940
8962
|
|
|
8941
8963
|
// src/api/dto/forge/artifact.ts
|
|
8942
|
-
import { z as
|
|
8964
|
+
import { z as z308 } from "zod";
|
|
8943
8965
|
var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
|
|
8944
8966
|
id: true,
|
|
8945
8967
|
createdAt: true,
|
|
@@ -8960,48 +8982,48 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
|
|
|
8960
8982
|
createdAt: true,
|
|
8961
8983
|
projectIterationId: true
|
|
8962
8984
|
});
|
|
8963
|
-
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id:
|
|
8964
|
-
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id:
|
|
8965
|
-
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id:
|
|
8966
|
-
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id:
|
|
8985
|
+
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z308.string() });
|
|
8986
|
+
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z308.string() });
|
|
8987
|
+
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z308.string() });
|
|
8988
|
+
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z308.string() });
|
|
8967
8989
|
var DTOForgeArtifact = ForgeArtifact;
|
|
8968
8990
|
var DTOForgeBuildArtifact = ForgeBuildArtifact;
|
|
8969
8991
|
var DTOForgeFileArtifact = ForgeFileArtifact;
|
|
8970
8992
|
var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
|
|
8971
8993
|
var DTOForgeSpecArtifact = ForgeSpecArtifact;
|
|
8972
|
-
var DTOCreateForgeArtifact =
|
|
8994
|
+
var DTOCreateForgeArtifact = z308.union([
|
|
8973
8995
|
DTOCreateForgeBuildArtifact,
|
|
8974
8996
|
DTOCreateForgeFileArtifact,
|
|
8975
8997
|
DTOCreateForgeFigmaArtifact,
|
|
8976
8998
|
DTOCreateForgeSpecArtifact
|
|
8977
8999
|
]);
|
|
8978
|
-
var DTOUpdateForgeArtifact =
|
|
9000
|
+
var DTOUpdateForgeArtifact = z308.union([
|
|
8979
9001
|
DTOUpdateForgeFileArtifact,
|
|
8980
9002
|
DTOUpdateForgeBuildArtifact,
|
|
8981
9003
|
DTOUpdateForgeSpecArtifact,
|
|
8982
9004
|
DTOUpdateForgeFigmaArtifact
|
|
8983
9005
|
]);
|
|
8984
|
-
var DTOCreateForgeArtifactResponse =
|
|
9006
|
+
var DTOCreateForgeArtifactResponse = z308.object({
|
|
8985
9007
|
artifact: DTOForgeArtifact
|
|
8986
9008
|
});
|
|
8987
|
-
var DTOUpdateForgeArtifactResponse =
|
|
9009
|
+
var DTOUpdateForgeArtifactResponse = z308.object({
|
|
8988
9010
|
artifact: DTOForgeArtifact.nullable()
|
|
8989
9011
|
});
|
|
8990
|
-
var DTODeleteForgeArtifactResponse =
|
|
8991
|
-
ok:
|
|
9012
|
+
var DTODeleteForgeArtifactResponse = z308.object({
|
|
9013
|
+
ok: z308.literal(true)
|
|
8992
9014
|
});
|
|
8993
|
-
var DTOForgeArtifactsListResponse =
|
|
8994
|
-
artifacts:
|
|
9015
|
+
var DTOForgeArtifactsListResponse = z308.object({
|
|
9016
|
+
artifacts: z308.array(DTOForgeArtifact)
|
|
8995
9017
|
});
|
|
8996
|
-
var DTOForgeArtifactGetResponse =
|
|
9018
|
+
var DTOForgeArtifactGetResponse = z308.object({
|
|
8997
9019
|
artifact: DTOForgeArtifact.nullable()
|
|
8998
9020
|
});
|
|
8999
9021
|
|
|
9000
9022
|
// src/api/dto/forge/iteration-message.ts
|
|
9001
|
-
import { z as
|
|
9023
|
+
import { z as z310 } from "zod";
|
|
9002
9024
|
|
|
9003
9025
|
// src/api/dto/forge/participant.ts
|
|
9004
|
-
import { z as
|
|
9026
|
+
import { z as z309 } from "zod";
|
|
9005
9027
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
9006
9028
|
agent: DTOForgeAgent.optional(),
|
|
9007
9029
|
user: DTOUser.optional()
|
|
@@ -9011,20 +9033,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
9011
9033
|
agent: true,
|
|
9012
9034
|
user: true
|
|
9013
9035
|
});
|
|
9014
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
9015
|
-
var DTOCreateForgeParticipantResponse =
|
|
9036
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z309.string() });
|
|
9037
|
+
var DTOCreateForgeParticipantResponse = z309.object({
|
|
9016
9038
|
participant: DTOForgeParticipant
|
|
9017
9039
|
});
|
|
9018
|
-
var DTOUpdateForgeParticipantResponse =
|
|
9040
|
+
var DTOUpdateForgeParticipantResponse = z309.object({
|
|
9019
9041
|
participant: DTOForgeParticipant.nullable()
|
|
9020
9042
|
});
|
|
9021
|
-
var DTODeleteForgeParticipantResponse =
|
|
9022
|
-
ok:
|
|
9043
|
+
var DTODeleteForgeParticipantResponse = z309.object({
|
|
9044
|
+
ok: z309.literal(true)
|
|
9023
9045
|
});
|
|
9024
|
-
var DTOForgeParticipantsListResponse =
|
|
9025
|
-
participants:
|
|
9046
|
+
var DTOForgeParticipantsListResponse = z309.object({
|
|
9047
|
+
participants: z309.array(DTOForgeParticipant)
|
|
9026
9048
|
});
|
|
9027
|
-
var DTOForgeParticipantGetResponse =
|
|
9049
|
+
var DTOForgeParticipantGetResponse = z309.object({
|
|
9028
9050
|
participant: DTOForgeParticipant.nullable()
|
|
9029
9051
|
});
|
|
9030
9052
|
|
|
@@ -9036,32 +9058,32 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
9036
9058
|
projectIterationId: true,
|
|
9037
9059
|
participant: true
|
|
9038
9060
|
});
|
|
9039
|
-
var DTOGetForgeIterationMessageResponse =
|
|
9061
|
+
var DTOGetForgeIterationMessageResponse = z310.object({
|
|
9040
9062
|
message: DTOForgeIterationMessage.nullable()
|
|
9041
9063
|
});
|
|
9042
|
-
var DTOForgeIterationMessagesListResponse =
|
|
9043
|
-
messages:
|
|
9064
|
+
var DTOForgeIterationMessagesListResponse = z310.object({
|
|
9065
|
+
messages: z310.array(DTOForgeIterationMessage)
|
|
9044
9066
|
});
|
|
9045
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
9046
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
9067
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z310.string() });
|
|
9068
|
+
var DTOCreateForgeIterationMessageResponse = z310.object({
|
|
9047
9069
|
message: DTOForgeIterationMessage
|
|
9048
9070
|
});
|
|
9049
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
9071
|
+
var DTOUpdateForgeIterationMessageResponse = z310.object({
|
|
9050
9072
|
message: DTOForgeIterationMessage.nullable()
|
|
9051
9073
|
});
|
|
9052
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
9053
|
-
ok:
|
|
9074
|
+
var DTODeleteForgeIterationMessageResponse = z310.object({
|
|
9075
|
+
ok: z310.literal(true)
|
|
9054
9076
|
});
|
|
9055
9077
|
|
|
9056
9078
|
// src/api/dto/forge/project-action.ts
|
|
9057
|
-
import
|
|
9079
|
+
import z314 from "zod";
|
|
9058
9080
|
|
|
9059
9081
|
// src/api/dto/forge/project-artifact.ts
|
|
9060
|
-
import { z as
|
|
9082
|
+
import { z as z312 } from "zod";
|
|
9061
9083
|
|
|
9062
9084
|
// src/api/dto/forge/project-section.ts
|
|
9063
|
-
import
|
|
9064
|
-
var AfterSectionId =
|
|
9085
|
+
import z311 from "zod";
|
|
9086
|
+
var AfterSectionId = z311.string().uuid().nullish().optional();
|
|
9065
9087
|
var DTOForgeSection = ForgeSection;
|
|
9066
9088
|
var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
9067
9089
|
id: true,
|
|
@@ -9072,12 +9094,12 @@ var DTOForgeSectionCreateInput = DTOForgeSection.pick({
|
|
|
9072
9094
|
});
|
|
9073
9095
|
var DTOForgeSectionUpdateInput = DTOForgeSection.pick({ id: true, name: true });
|
|
9074
9096
|
var DTOForgeSectionDeleteInput = DTOForgeSection.pick({ id: true }).extend({
|
|
9075
|
-
deleteChildren:
|
|
9097
|
+
deleteChildren: z311.boolean().default(false)
|
|
9076
9098
|
});
|
|
9077
9099
|
var DTOForgeSectionMoveInput = DTOForgeSection.pick({ id: true }).extend({
|
|
9078
9100
|
afterSectionId: AfterSectionId
|
|
9079
9101
|
});
|
|
9080
|
-
var DTOForgeSectionItemMoveInput =
|
|
9102
|
+
var DTOForgeSectionItemMoveInput = z311.object({
|
|
9081
9103
|
id: Id,
|
|
9082
9104
|
sectionId: Id.nullish().optional(),
|
|
9083
9105
|
// undefined=stay, null=no section, string=move to section
|
|
@@ -9087,116 +9109,116 @@ var DTOForgeSectionItemMoveInput = z310.object({
|
|
|
9087
9109
|
|
|
9088
9110
|
// src/api/dto/forge/project-artifact.ts
|
|
9089
9111
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9090
|
-
var DTOForgeProjectArtifactUpdateInput =
|
|
9091
|
-
id:
|
|
9092
|
-
title:
|
|
9112
|
+
var DTOForgeProjectArtifactUpdateInput = z312.object({
|
|
9113
|
+
id: z312.string(),
|
|
9114
|
+
title: z312.string().optional()
|
|
9093
9115
|
});
|
|
9094
|
-
var DTOForgeProjectArtifactCreateInput =
|
|
9095
|
-
id:
|
|
9096
|
-
title:
|
|
9097
|
-
sectionId:
|
|
9098
|
-
afterArtifactId:
|
|
9116
|
+
var DTOForgeProjectArtifactCreateInput = z312.object({
|
|
9117
|
+
id: z312.string(),
|
|
9118
|
+
title: z312.string(),
|
|
9119
|
+
sectionId: z312.string().optional(),
|
|
9120
|
+
afterArtifactId: z312.string().optional().nullable()
|
|
9099
9121
|
});
|
|
9100
|
-
var DTOForgeProjectArtifactDeleteInput =
|
|
9122
|
+
var DTOForgeProjectArtifactDeleteInput = z312.object({
|
|
9101
9123
|
id: Id
|
|
9102
9124
|
});
|
|
9103
9125
|
var DTOForgeProjectArtifactMoveInput = DTOForgeSectionItemMoveInput;
|
|
9104
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
9126
|
+
var DTOForgeProjectArtifactGetResponse = z312.object({
|
|
9105
9127
|
artifact: DTOForgeProjectArtifact
|
|
9106
9128
|
});
|
|
9107
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
9129
|
+
var DTOForgeProjectArtifactCreateResponse = z312.object({
|
|
9108
9130
|
artifact: DTOForgeProjectArtifact
|
|
9109
9131
|
});
|
|
9110
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
9132
|
+
var DTOForgeProjectArtifactUpdateResponse = z312.object({
|
|
9111
9133
|
artifact: DTOForgeProjectArtifact
|
|
9112
9134
|
});
|
|
9113
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
9114
|
-
ok:
|
|
9135
|
+
var DTOForgeProjectArtifactDeleteResponse = z312.object({
|
|
9136
|
+
ok: z312.literal(true)
|
|
9115
9137
|
});
|
|
9116
|
-
var DTOForgeProjectArtifactMoveResponse =
|
|
9138
|
+
var DTOForgeProjectArtifactMoveResponse = z312.object({
|
|
9117
9139
|
artifact: DTOForgeProjectArtifact
|
|
9118
9140
|
});
|
|
9119
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
9120
|
-
artifacts:
|
|
9141
|
+
var DTOForgeProjectArtifactsListResponse = z312.object({
|
|
9142
|
+
artifacts: z312.array(DTOForgeProjectArtifact)
|
|
9121
9143
|
});
|
|
9122
9144
|
|
|
9123
9145
|
// src/api/dto/forge/project-feature.ts
|
|
9124
|
-
import
|
|
9146
|
+
import z313 from "zod";
|
|
9125
9147
|
var DTOForgeProjectFeature = ProjectFeature;
|
|
9126
|
-
var DTOForgeProjectFeatureListResponse =
|
|
9148
|
+
var DTOForgeProjectFeatureListResponse = z313.object({
|
|
9127
9149
|
features: DTOForgeProjectFeature.array()
|
|
9128
9150
|
});
|
|
9129
|
-
var DTOForgeProjectFeatureGetResponse =
|
|
9151
|
+
var DTOForgeProjectFeatureGetResponse = z313.object({
|
|
9130
9152
|
feature: DTOForgeProjectFeature
|
|
9131
9153
|
});
|
|
9132
|
-
var DTOForgeProjectFeatureCreateInput =
|
|
9154
|
+
var DTOForgeProjectFeatureCreateInput = z313.object({
|
|
9133
9155
|
id: Id,
|
|
9134
|
-
name:
|
|
9135
|
-
description:
|
|
9156
|
+
name: z313.string(),
|
|
9157
|
+
description: z313.string(),
|
|
9136
9158
|
sectionId: Id.optional(),
|
|
9137
9159
|
afterFeatureId: Id.nullable().optional()
|
|
9138
9160
|
});
|
|
9139
|
-
var DTOForgeProjectFeatureUpdateInput =
|
|
9161
|
+
var DTOForgeProjectFeatureUpdateInput = z313.object({
|
|
9140
9162
|
id: Id,
|
|
9141
|
-
name:
|
|
9142
|
-
description:
|
|
9143
|
-
isArchived:
|
|
9163
|
+
name: z313.string().optional(),
|
|
9164
|
+
description: z313.string().optional(),
|
|
9165
|
+
isArchived: z313.boolean().optional()
|
|
9144
9166
|
});
|
|
9145
|
-
var DTOForgeProjectFeatureDeleteInput =
|
|
9167
|
+
var DTOForgeProjectFeatureDeleteInput = z313.object({
|
|
9146
9168
|
id: Id
|
|
9147
9169
|
});
|
|
9148
9170
|
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
9149
9171
|
|
|
9150
9172
|
// src/api/dto/forge/project-action.ts
|
|
9151
|
-
var DTOForgeProjectActionFeatureCreate =
|
|
9152
|
-
type:
|
|
9173
|
+
var DTOForgeProjectActionFeatureCreate = z314.object({
|
|
9174
|
+
type: z314.literal("FeatureCreate"),
|
|
9153
9175
|
input: DTOForgeProjectFeatureCreateInput
|
|
9154
9176
|
});
|
|
9155
|
-
var DTOForgeProjectActionFeatureUpdate =
|
|
9156
|
-
type:
|
|
9177
|
+
var DTOForgeProjectActionFeatureUpdate = z314.object({
|
|
9178
|
+
type: z314.literal("FeatureUpdate"),
|
|
9157
9179
|
input: DTOForgeProjectFeatureUpdateInput
|
|
9158
9180
|
});
|
|
9159
|
-
var DTOForgeProjectActionFeatureMove =
|
|
9160
|
-
type:
|
|
9181
|
+
var DTOForgeProjectActionFeatureMove = z314.object({
|
|
9182
|
+
type: z314.literal("FeatureMove"),
|
|
9161
9183
|
input: DTOForgeProjectFeatureMoveInput
|
|
9162
9184
|
});
|
|
9163
|
-
var DTOForgeProjectActionFeatureDelete =
|
|
9164
|
-
type:
|
|
9185
|
+
var DTOForgeProjectActionFeatureDelete = z314.object({
|
|
9186
|
+
type: z314.literal("FeatureDelete"),
|
|
9165
9187
|
input: DTOForgeProjectFeatureDeleteInput
|
|
9166
9188
|
});
|
|
9167
|
-
var DTOForgeProjectActionArtifactCreate =
|
|
9168
|
-
type:
|
|
9189
|
+
var DTOForgeProjectActionArtifactCreate = z314.object({
|
|
9190
|
+
type: z314.literal("ArtifactCreate"),
|
|
9169
9191
|
input: DTOForgeProjectArtifactCreateInput
|
|
9170
9192
|
});
|
|
9171
|
-
var DTOForgeProjectActionArtifactUpdate =
|
|
9172
|
-
type:
|
|
9193
|
+
var DTOForgeProjectActionArtifactUpdate = z314.object({
|
|
9194
|
+
type: z314.literal("ArtifactUpdate"),
|
|
9173
9195
|
input: DTOForgeProjectArtifactUpdateInput
|
|
9174
9196
|
});
|
|
9175
|
-
var DTOForgeProjectActionArtifactDelete =
|
|
9176
|
-
type:
|
|
9197
|
+
var DTOForgeProjectActionArtifactDelete = z314.object({
|
|
9198
|
+
type: z314.literal("ArtifactDelete"),
|
|
9177
9199
|
input: DTOForgeProjectArtifactDeleteInput
|
|
9178
9200
|
});
|
|
9179
|
-
var DTOForgeProjectActionArtifactMove =
|
|
9180
|
-
type:
|
|
9201
|
+
var DTOForgeProjectActionArtifactMove = z314.object({
|
|
9202
|
+
type: z314.literal("ArtifactMove"),
|
|
9181
9203
|
input: DTOForgeProjectArtifactMoveInput
|
|
9182
9204
|
});
|
|
9183
|
-
var DTOForgeProjectActionSectionCreate =
|
|
9184
|
-
type:
|
|
9205
|
+
var DTOForgeProjectActionSectionCreate = z314.object({
|
|
9206
|
+
type: z314.literal("SectionCreate"),
|
|
9185
9207
|
input: DTOForgeSectionCreateInput
|
|
9186
9208
|
});
|
|
9187
|
-
var DTOForgeProjectActionSectionUpdate =
|
|
9188
|
-
type:
|
|
9209
|
+
var DTOForgeProjectActionSectionUpdate = z314.object({
|
|
9210
|
+
type: z314.literal("SectionUpdate"),
|
|
9189
9211
|
input: DTOForgeSectionUpdateInput
|
|
9190
9212
|
});
|
|
9191
|
-
var DTOForgeProjectActionSectionDelete =
|
|
9192
|
-
type:
|
|
9213
|
+
var DTOForgeProjectActionSectionDelete = z314.object({
|
|
9214
|
+
type: z314.literal("SectionDelete"),
|
|
9193
9215
|
input: DTOForgeSectionDeleteInput
|
|
9194
9216
|
});
|
|
9195
|
-
var DTOForgeProjectActionSectionMove =
|
|
9196
|
-
type:
|
|
9217
|
+
var DTOForgeProjectActionSectionMove = z314.object({
|
|
9218
|
+
type: z314.literal("SectionMove"),
|
|
9197
9219
|
input: DTOForgeSectionMoveInput
|
|
9198
9220
|
});
|
|
9199
|
-
var DTOForgeProjectAction =
|
|
9221
|
+
var DTOForgeProjectAction = z314.discriminatedUnion("type", [
|
|
9200
9222
|
//features
|
|
9201
9223
|
DTOForgeProjectActionFeatureCreate,
|
|
9202
9224
|
DTOForgeProjectActionFeatureUpdate,
|
|
@@ -9213,22 +9235,22 @@ var DTOForgeProjectAction = z313.discriminatedUnion("type", [
|
|
|
9213
9235
|
DTOForgeProjectActionSectionDelete,
|
|
9214
9236
|
DTOForgeProjectActionSectionMove
|
|
9215
9237
|
]).and(
|
|
9216
|
-
|
|
9217
|
-
tId:
|
|
9238
|
+
z314.object({
|
|
9239
|
+
tId: z314.string().optional()
|
|
9218
9240
|
})
|
|
9219
9241
|
);
|
|
9220
9242
|
|
|
9221
9243
|
// src/api/dto/forge/project-artifact-room.ts
|
|
9222
|
-
import { z as
|
|
9223
|
-
var DTOForgeProjectArtifactRoom =
|
|
9224
|
-
id:
|
|
9244
|
+
import { z as z315 } from "zod";
|
|
9245
|
+
var DTOForgeProjectArtifactRoom = z315.object({
|
|
9246
|
+
id: z315.string()
|
|
9225
9247
|
});
|
|
9226
|
-
var DTOForgeProjectArtifactRoomResponse =
|
|
9248
|
+
var DTOForgeProjectArtifactRoomResponse = z315.object({
|
|
9227
9249
|
room: DTOForgeProjectArtifactRoom
|
|
9228
9250
|
});
|
|
9229
9251
|
|
|
9230
9252
|
// src/api/dto/forge/project-context.ts
|
|
9231
|
-
import { z as
|
|
9253
|
+
import { z as z316 } from "zod";
|
|
9232
9254
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9233
9255
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9234
9256
|
definition: true,
|
|
@@ -9240,17 +9262,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9240
9262
|
tailwindConfig: true,
|
|
9241
9263
|
styling: true
|
|
9242
9264
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
9243
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
9244
|
-
var DTOForgeProjectContextGetResponse =
|
|
9245
|
-
var DTOForgeProjectContextListResponse =
|
|
9246
|
-
var DTOForgeProjectContextCreateResponse =
|
|
9247
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
9248
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
9249
|
-
ok:
|
|
9265
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z316.string() });
|
|
9266
|
+
var DTOForgeProjectContextGetResponse = z316.object({ context: DTOForgeProjectContext });
|
|
9267
|
+
var DTOForgeProjectContextListResponse = z316.object({ contexts: z316.array(DTOForgeProjectContext) });
|
|
9268
|
+
var DTOForgeProjectContextCreateResponse = z316.object({ context: DTOForgeProjectContext });
|
|
9269
|
+
var DTOForgeProjectContextUpdateResponse = z316.object({ context: DTOForgeProjectContext });
|
|
9270
|
+
var DTOForgeProjectContextRemoveResponse = z316.object({
|
|
9271
|
+
ok: z316.literal(true)
|
|
9250
9272
|
});
|
|
9251
9273
|
|
|
9252
9274
|
// src/api/dto/forge/project-invitation.ts
|
|
9253
|
-
import { z as
|
|
9275
|
+
import { z as z317 } from "zod";
|
|
9254
9276
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9255
9277
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9256
9278
|
email: true,
|
|
@@ -9265,24 +9287,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
|
9265
9287
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9266
9288
|
email: true
|
|
9267
9289
|
});
|
|
9268
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
9269
|
-
invitations:
|
|
9290
|
+
var DTOForgeProjectInvitationsListResponse = z317.object({
|
|
9291
|
+
invitations: z317.array(DTOForgeProjectInvitation)
|
|
9270
9292
|
});
|
|
9271
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9293
|
+
var DTOForgeProjectInvitationGetResponse = z317.object({
|
|
9272
9294
|
invitation: DTOForgeProjectInvitation
|
|
9273
9295
|
});
|
|
9274
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9296
|
+
var DTOForgeProjectInvitationCreateResponse = z317.object({
|
|
9275
9297
|
invitation: DTOForgeProjectInvitation
|
|
9276
9298
|
});
|
|
9277
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9299
|
+
var DTOForgeProjectInvitationUpdateResponse = z317.object({
|
|
9278
9300
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9279
9301
|
});
|
|
9280
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
9281
|
-
ok:
|
|
9302
|
+
var DTOForgeProjectInvitationRemoveResponse = z317.object({
|
|
9303
|
+
ok: z317.literal(true)
|
|
9282
9304
|
});
|
|
9283
9305
|
|
|
9284
9306
|
// src/api/dto/forge/project-iteration.ts
|
|
9285
|
-
import { z as
|
|
9307
|
+
import { z as z318 } from "zod";
|
|
9286
9308
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9287
9309
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9288
9310
|
artifacts: true,
|
|
@@ -9293,7 +9315,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9293
9315
|
messages: DTOForgeIterationMessage.array(),
|
|
9294
9316
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9295
9317
|
});
|
|
9296
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9318
|
+
var DTOGetForgeProjectIterationResponse = z318.object({
|
|
9297
9319
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9298
9320
|
});
|
|
9299
9321
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9303,20 +9325,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9303
9325
|
mergeMeta: true,
|
|
9304
9326
|
createdAt: true
|
|
9305
9327
|
});
|
|
9306
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9307
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9328
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z318.string() });
|
|
9329
|
+
var DTOCreateForgeProjectIterationResponse = z318.object({
|
|
9308
9330
|
iteration: DTOForgeProjectIteration
|
|
9309
9331
|
});
|
|
9310
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9332
|
+
var DTOUpdateForgeProjectIterationResponse = z318.object({
|
|
9311
9333
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9312
9334
|
});
|
|
9313
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9314
|
-
ok:
|
|
9335
|
+
var DTODeleteForgeProjectIterationResponse = z318.object({
|
|
9336
|
+
ok: z318.literal(true)
|
|
9315
9337
|
});
|
|
9316
|
-
var DTOForgeProjectIterationListResponse =
|
|
9338
|
+
var DTOForgeProjectIterationListResponse = z318.object({ iterations: z318.array(DTOForgeProjectIteration) });
|
|
9317
9339
|
|
|
9318
9340
|
// src/api/dto/forge/project-member.ts
|
|
9319
|
-
import { z as
|
|
9341
|
+
import { z as z319 } from "zod";
|
|
9320
9342
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9321
9343
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9322
9344
|
user: DTOUser,
|
|
@@ -9330,41 +9352,41 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: tru
|
|
|
9330
9352
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9331
9353
|
userId: true
|
|
9332
9354
|
});
|
|
9333
|
-
var DTOForgeProjectMembersListResponse =
|
|
9334
|
-
members:
|
|
9335
|
-
invitations:
|
|
9355
|
+
var DTOForgeProjectMembersListResponse = z319.object({
|
|
9356
|
+
members: z319.array(DTOForgeProjectMember),
|
|
9357
|
+
invitations: z319.array(DTOForgeProjectInvitation)
|
|
9336
9358
|
});
|
|
9337
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9359
|
+
var DTOForgeProjectMemberGetResponse = z319.object({
|
|
9338
9360
|
member: DTOForgeProjectMember
|
|
9339
9361
|
});
|
|
9340
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9362
|
+
var DTOForgeProjectMemberCreateResponse = z319.object({
|
|
9341
9363
|
member: DTOForgeProjectMember
|
|
9342
9364
|
});
|
|
9343
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9365
|
+
var DTOForgeProjectMemberUpdateResponse = z319.object({
|
|
9344
9366
|
member: DTOForgeProjectMember.nullable()
|
|
9345
9367
|
});
|
|
9346
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9347
|
-
ok:
|
|
9368
|
+
var DTOForgeProjectMemberRemoveResponse = z319.object({
|
|
9369
|
+
ok: z319.literal(true)
|
|
9348
9370
|
});
|
|
9349
|
-
var DTOAddMembersToForgeProject =
|
|
9371
|
+
var DTOAddMembersToForgeProject = z319.object({
|
|
9350
9372
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
9351
9373
|
});
|
|
9352
9374
|
|
|
9353
9375
|
// src/api/dto/forge/project-room.ts
|
|
9354
|
-
import { z as
|
|
9355
|
-
var DTOForgeProjectRoom =
|
|
9356
|
-
id:
|
|
9376
|
+
import { z as z320 } from "zod";
|
|
9377
|
+
var DTOForgeProjectRoom = z320.object({
|
|
9378
|
+
id: z320.string()
|
|
9357
9379
|
});
|
|
9358
|
-
var DTOForgeProjectRoomResponse =
|
|
9380
|
+
var DTOForgeProjectRoomResponse = z320.object({
|
|
9359
9381
|
room: DTOForgeProjectRoom
|
|
9360
9382
|
});
|
|
9361
9383
|
|
|
9362
9384
|
// src/api/dto/forge/project.ts
|
|
9363
|
-
import { z as
|
|
9385
|
+
import { z as z321 } from "zod";
|
|
9364
9386
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9365
9387
|
context: ForgeProjectContext,
|
|
9366
|
-
members:
|
|
9367
|
-
invitations:
|
|
9388
|
+
members: z321.array(DTOForgeProjectMember),
|
|
9389
|
+
invitations: z321.array(DTOForgeProjectInvitation)
|
|
9368
9390
|
});
|
|
9369
9391
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9370
9392
|
instruction: true,
|
|
@@ -9377,156 +9399,156 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9377
9399
|
emoji: true
|
|
9378
9400
|
}).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
|
|
9379
9401
|
var DTOUpdateForgeProject = DTOCreateForgeProject.omit({ membersToInvite: true }).partial().extend({
|
|
9380
|
-
id:
|
|
9381
|
-
membersToRetain:
|
|
9402
|
+
id: z321.string(),
|
|
9403
|
+
membersToRetain: z321.string().array().min(1).optional()
|
|
9382
9404
|
});
|
|
9383
|
-
var DTOForgeProjectGetResponse =
|
|
9384
|
-
var DTOForgeProjectsListResponse =
|
|
9385
|
-
var DTOCreateForgeProjectResponse =
|
|
9405
|
+
var DTOForgeProjectGetResponse = z321.object({ project: DTOForgeProject.nullable() });
|
|
9406
|
+
var DTOForgeProjectsListResponse = z321.object({ projects: z321.array(DTOForgeProject) });
|
|
9407
|
+
var DTOCreateForgeProjectResponse = z321.object({
|
|
9386
9408
|
project: DTOForgeProject
|
|
9387
9409
|
});
|
|
9388
|
-
var DTOUpdateForgeProjectResponse =
|
|
9410
|
+
var DTOUpdateForgeProjectResponse = z321.object({
|
|
9389
9411
|
project: DTOForgeProject
|
|
9390
9412
|
});
|
|
9391
|
-
var DTOUGetForgeProjectResponse =
|
|
9413
|
+
var DTOUGetForgeProjectResponse = z321.object({
|
|
9392
9414
|
project: DTOForgeProject
|
|
9393
9415
|
});
|
|
9394
|
-
var DTORemoveForgeProjectResponse =
|
|
9416
|
+
var DTORemoveForgeProjectResponse = z321.object({ ok: z321.literal(true) });
|
|
9395
9417
|
|
|
9396
9418
|
// src/api/dto/forge/threads.ts
|
|
9397
|
-
import { z as
|
|
9419
|
+
import { z as z322 } from "zod";
|
|
9398
9420
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9399
9421
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9400
9422
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9401
9423
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9402
|
-
var DTOForgeChatThreadCreateInput =
|
|
9403
|
-
title:
|
|
9424
|
+
var DTOForgeChatThreadCreateInput = z322.object({
|
|
9425
|
+
title: z322.string().optional()
|
|
9404
9426
|
});
|
|
9405
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9427
|
+
var DTOForgeChatThreadCreateResponse = z322.object({
|
|
9406
9428
|
thread: DTOForgeChatThread
|
|
9407
9429
|
});
|
|
9408
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9409
|
-
title:
|
|
9430
|
+
var DTOForgeChatThreadUpdateInput = z322.object({
|
|
9431
|
+
title: z322.string()
|
|
9410
9432
|
});
|
|
9411
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9433
|
+
var DTOForgeChatThreadUpdateResponse = z322.object({
|
|
9412
9434
|
thread: DTOForgeChatThread
|
|
9413
9435
|
});
|
|
9414
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9415
|
-
success:
|
|
9436
|
+
var DTOForgeChatThreadDeleteResponse = z322.object({
|
|
9437
|
+
success: z322.boolean()
|
|
9416
9438
|
});
|
|
9417
|
-
var DTOForgeChatThreadListQuery =
|
|
9418
|
-
limit:
|
|
9419
|
-
offset:
|
|
9439
|
+
var DTOForgeChatThreadListQuery = z322.object({
|
|
9440
|
+
limit: z322.number().optional(),
|
|
9441
|
+
offset: z322.number().optional()
|
|
9420
9442
|
});
|
|
9421
|
-
var DTOForgeChatThreadListResponse =
|
|
9422
|
-
threads:
|
|
9423
|
-
pagination:
|
|
9424
|
-
offset:
|
|
9425
|
-
limit:
|
|
9426
|
-
total:
|
|
9443
|
+
var DTOForgeChatThreadListResponse = z322.object({
|
|
9444
|
+
threads: z322.array(DTOForgeChatThread),
|
|
9445
|
+
pagination: z322.object({
|
|
9446
|
+
offset: z322.number(),
|
|
9447
|
+
limit: z322.number(),
|
|
9448
|
+
total: z322.number()
|
|
9427
9449
|
})
|
|
9428
9450
|
});
|
|
9429
|
-
var DTOForgeChatMessageCreateInput =
|
|
9430
|
-
payload:
|
|
9451
|
+
var DTOForgeChatMessageCreateInput = z322.object({
|
|
9452
|
+
payload: z322.string(),
|
|
9431
9453
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9432
|
-
opikTraceId:
|
|
9454
|
+
opikTraceId: z322.string().optional()
|
|
9433
9455
|
});
|
|
9434
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9456
|
+
var DTOForgeChatMessageCreateResponse = z322.object({
|
|
9435
9457
|
message: DTOForgeChatMessage
|
|
9436
9458
|
});
|
|
9437
|
-
var DTOForgeChatMessageListQuery =
|
|
9438
|
-
limit:
|
|
9439
|
-
offset:
|
|
9459
|
+
var DTOForgeChatMessageListQuery = z322.object({
|
|
9460
|
+
limit: z322.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9461
|
+
offset: z322.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9440
9462
|
});
|
|
9441
|
-
var DTOForgeChatMessageListResponse =
|
|
9442
|
-
messages:
|
|
9443
|
-
totalCount:
|
|
9444
|
-
hasMore:
|
|
9463
|
+
var DTOForgeChatMessageListResponse = z322.object({
|
|
9464
|
+
messages: z322.array(DTOForgeChatMessage),
|
|
9465
|
+
totalCount: z322.number(),
|
|
9466
|
+
hasMore: z322.boolean()
|
|
9445
9467
|
});
|
|
9446
|
-
var DTOForgeChatMessageScoreInput =
|
|
9447
|
-
messageId:
|
|
9448
|
-
name:
|
|
9449
|
-
value:
|
|
9450
|
-
categoryName:
|
|
9451
|
-
reason:
|
|
9468
|
+
var DTOForgeChatMessageScoreInput = z322.object({
|
|
9469
|
+
messageId: z322.string(),
|
|
9470
|
+
name: z322.string(),
|
|
9471
|
+
value: z322.number(),
|
|
9472
|
+
categoryName: z322.string().optional(),
|
|
9473
|
+
reason: z322.string().optional()
|
|
9452
9474
|
});
|
|
9453
|
-
var DTOForgeChatMessageTagInput =
|
|
9454
|
-
messageId:
|
|
9455
|
-
tags:
|
|
9475
|
+
var DTOForgeChatMessageTagInput = z322.object({
|
|
9476
|
+
messageId: z322.string(),
|
|
9477
|
+
tags: z322.array(z322.string())
|
|
9456
9478
|
});
|
|
9457
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9479
|
+
var DTOForgeChatMessageScoreRequest = z322.object({
|
|
9458
9480
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9459
9481
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9460
9482
|
});
|
|
9461
9483
|
|
|
9462
9484
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9463
|
-
import { z as
|
|
9464
|
-
var DTOLiveblocksAuthResponse =
|
|
9465
|
-
token:
|
|
9485
|
+
import { z as z323 } from "zod";
|
|
9486
|
+
var DTOLiveblocksAuthResponse = z323.object({
|
|
9487
|
+
token: z323.string()
|
|
9466
9488
|
});
|
|
9467
9489
|
|
|
9468
9490
|
// src/api/dto/portal/portal-settings.ts
|
|
9469
|
-
import { z as
|
|
9491
|
+
import { z as z324 } from "zod";
|
|
9470
9492
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9471
9493
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9472
9494
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9473
9495
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9474
|
-
var DTOPortalSettings =
|
|
9475
|
-
id:
|
|
9476
|
-
workspaceId:
|
|
9477
|
-
enabledDesignSystemIds:
|
|
9478
|
-
enabledBrandPersistentIds:
|
|
9496
|
+
var DTOPortalSettings = z324.object({
|
|
9497
|
+
id: z324.string(),
|
|
9498
|
+
workspaceId: z324.string(),
|
|
9499
|
+
enabledDesignSystemIds: z324.array(z324.string()),
|
|
9500
|
+
enabledBrandPersistentIds: z324.array(z324.string()),
|
|
9479
9501
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9480
9502
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9481
|
-
createdAt:
|
|
9482
|
-
updatedAt:
|
|
9503
|
+
createdAt: z324.coerce.date(),
|
|
9504
|
+
updatedAt: z324.coerce.date()
|
|
9483
9505
|
});
|
|
9484
|
-
var DTOPortalSettingsGetResponse =
|
|
9506
|
+
var DTOPortalSettingsGetResponse = z324.object({
|
|
9485
9507
|
portalSettings: DTOPortalSettings
|
|
9486
9508
|
});
|
|
9487
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9488
|
-
enabledDesignSystemIds:
|
|
9489
|
-
enabledBrandPersistentIds:
|
|
9509
|
+
var DTOPortalSettingsUpdatePayload = z324.object({
|
|
9510
|
+
enabledDesignSystemIds: z324.array(z324.string()).optional(),
|
|
9511
|
+
enabledBrandPersistentIds: z324.array(z324.string()).optional(),
|
|
9490
9512
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9491
9513
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9492
9514
|
});
|
|
9493
9515
|
|
|
9494
9516
|
// src/api/dto/themes/override.ts
|
|
9495
|
-
import { z as
|
|
9517
|
+
import { z as z325 } from "zod";
|
|
9496
9518
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9497
|
-
|
|
9498
|
-
tokenPersistentId:
|
|
9519
|
+
z325.object({
|
|
9520
|
+
tokenPersistentId: z325.string(),
|
|
9499
9521
|
origin: ThemeOverrideOrigin.optional()
|
|
9500
9522
|
})
|
|
9501
9523
|
);
|
|
9502
9524
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9503
|
-
|
|
9504
|
-
tokenPersistentId:
|
|
9525
|
+
z325.object({
|
|
9526
|
+
tokenPersistentId: z325.string()
|
|
9505
9527
|
})
|
|
9506
9528
|
);
|
|
9507
9529
|
|
|
9508
9530
|
// src/api/dto/themes/theme.ts
|
|
9509
|
-
import { z as
|
|
9510
|
-
var DTOTheme =
|
|
9511
|
-
id:
|
|
9512
|
-
persistentId:
|
|
9513
|
-
designSystemVersionId:
|
|
9514
|
-
brandId:
|
|
9531
|
+
import { z as z326 } from "zod";
|
|
9532
|
+
var DTOTheme = z326.object({
|
|
9533
|
+
id: z326.string(),
|
|
9534
|
+
persistentId: z326.string(),
|
|
9535
|
+
designSystemVersionId: z326.string(),
|
|
9536
|
+
brandId: z326.string(),
|
|
9515
9537
|
meta: ObjectMeta,
|
|
9516
|
-
codeName:
|
|
9538
|
+
codeName: z326.string(),
|
|
9517
9539
|
overrides: DTOThemeOverride.array()
|
|
9518
9540
|
});
|
|
9519
|
-
var DTOThemeResponse =
|
|
9541
|
+
var DTOThemeResponse = z326.object({
|
|
9520
9542
|
theme: DTOTheme
|
|
9521
9543
|
});
|
|
9522
|
-
var DTOThemeListResponse =
|
|
9544
|
+
var DTOThemeListResponse = z326.object({
|
|
9523
9545
|
themes: DTOTheme.array()
|
|
9524
9546
|
});
|
|
9525
|
-
var DTOThemeCreatePayload =
|
|
9547
|
+
var DTOThemeCreatePayload = z326.object({
|
|
9526
9548
|
meta: ObjectMeta,
|
|
9527
|
-
persistentId:
|
|
9528
|
-
brandId:
|
|
9529
|
-
codeName:
|
|
9549
|
+
persistentId: z326.string(),
|
|
9550
|
+
brandId: z326.string(),
|
|
9551
|
+
codeName: z326.string(),
|
|
9530
9552
|
overrides: DTOThemeOverride.array()
|
|
9531
9553
|
});
|
|
9532
9554
|
|
|
@@ -9762,13 +9784,13 @@ var ExportersEndpoint = class {
|
|
|
9762
9784
|
};
|
|
9763
9785
|
|
|
9764
9786
|
// src/api/endpoints/codegen/jobs.ts
|
|
9765
|
-
import { z as
|
|
9787
|
+
import { z as z327 } from "zod";
|
|
9766
9788
|
var ExporterJobsEndpoint = class {
|
|
9767
9789
|
constructor(requestExecutor) {
|
|
9768
9790
|
this.requestExecutor = requestExecutor;
|
|
9769
9791
|
}
|
|
9770
9792
|
list(workspaceId) {
|
|
9771
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9793
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z327.any());
|
|
9772
9794
|
}
|
|
9773
9795
|
get(workspaceId, jobId) {
|
|
9774
9796
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9826,7 +9848,7 @@ var CodegenEndpoint = class {
|
|
|
9826
9848
|
};
|
|
9827
9849
|
|
|
9828
9850
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9829
|
-
import { z as
|
|
9851
|
+
import { z as z328 } from "zod";
|
|
9830
9852
|
var BrandsEndpoint = class {
|
|
9831
9853
|
constructor(requestExecutor) {
|
|
9832
9854
|
this.requestExecutor = requestExecutor;
|
|
@@ -9860,7 +9882,7 @@ var BrandsEndpoint = class {
|
|
|
9860
9882
|
});
|
|
9861
9883
|
}
|
|
9862
9884
|
delete(dsId, vId, brandId) {
|
|
9863
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
9885
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z328.any(), {
|
|
9864
9886
|
method: "DELETE"
|
|
9865
9887
|
});
|
|
9866
9888
|
}
|
|
@@ -10127,7 +10149,7 @@ var ImportJobsEndpoint = class {
|
|
|
10127
10149
|
};
|
|
10128
10150
|
|
|
10129
10151
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
10130
|
-
import { z as
|
|
10152
|
+
import { z as z329 } from "zod";
|
|
10131
10153
|
var OverridesEndpoint = class {
|
|
10132
10154
|
constructor(requestExecutor) {
|
|
10133
10155
|
this.requestExecutor = requestExecutor;
|
|
@@ -10135,7 +10157,7 @@ var OverridesEndpoint = class {
|
|
|
10135
10157
|
create(dsId, versionId, themeId, body) {
|
|
10136
10158
|
return this.requestExecutor.json(
|
|
10137
10159
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
10138
|
-
|
|
10160
|
+
z329.any(),
|
|
10139
10161
|
{
|
|
10140
10162
|
method: "POST",
|
|
10141
10163
|
body
|
|
@@ -10145,7 +10167,7 @@ var OverridesEndpoint = class {
|
|
|
10145
10167
|
};
|
|
10146
10168
|
|
|
10147
10169
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
10148
|
-
import { z as
|
|
10170
|
+
import { z as z330 } from "zod";
|
|
10149
10171
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
10150
10172
|
constructor(requestExecutor) {
|
|
10151
10173
|
this.requestExecutor = requestExecutor;
|
|
@@ -10173,7 +10195,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
10173
10195
|
delete(designSystemId, versionId, defId) {
|
|
10174
10196
|
return this.requestExecutor.json(
|
|
10175
10197
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
10176
|
-
|
|
10198
|
+
z330.any(),
|
|
10177
10199
|
{ method: "DELETE" }
|
|
10178
10200
|
);
|
|
10179
10201
|
}
|
|
@@ -10212,7 +10234,7 @@ var VersionStatsEndpoint = class {
|
|
|
10212
10234
|
};
|
|
10213
10235
|
|
|
10214
10236
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
10215
|
-
import { z as
|
|
10237
|
+
import { z as z331 } from "zod";
|
|
10216
10238
|
var ThemesEndpoint = class {
|
|
10217
10239
|
constructor(requestExecutor) {
|
|
10218
10240
|
this.requestExecutor = requestExecutor;
|
|
@@ -10235,7 +10257,7 @@ var ThemesEndpoint = class {
|
|
|
10235
10257
|
});
|
|
10236
10258
|
}
|
|
10237
10259
|
delete(dsId, versionId, themeId) {
|
|
10238
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
10260
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z331.any(), {
|
|
10239
10261
|
method: "DELETE"
|
|
10240
10262
|
});
|
|
10241
10263
|
}
|
|
@@ -10406,7 +10428,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10406
10428
|
};
|
|
10407
10429
|
|
|
10408
10430
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10409
|
-
import { z as
|
|
10431
|
+
import { z as z335 } from "zod";
|
|
10410
10432
|
|
|
10411
10433
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10412
10434
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10483,7 +10505,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10483
10505
|
};
|
|
10484
10506
|
|
|
10485
10507
|
// src/api/endpoints/design-system/sources.ts
|
|
10486
|
-
import { z as
|
|
10508
|
+
import { z as z332 } from "zod";
|
|
10487
10509
|
var DesignSystemSourcesEndpoint = class {
|
|
10488
10510
|
constructor(requestExecutor) {
|
|
10489
10511
|
this.requestExecutor = requestExecutor;
|
|
@@ -10501,7 +10523,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10501
10523
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10502
10524
|
}
|
|
10503
10525
|
delete(dsId, sourceId) {
|
|
10504
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10526
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z332.any(), { method: "DELETE" });
|
|
10505
10527
|
}
|
|
10506
10528
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10507
10529
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10544,7 +10566,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10544
10566
|
};
|
|
10545
10567
|
|
|
10546
10568
|
// src/api/endpoints/design-system/storybook.ts
|
|
10547
|
-
import { z as
|
|
10569
|
+
import { z as z333 } from "zod";
|
|
10548
10570
|
var StorybookEntriesEndpoint = class {
|
|
10549
10571
|
constructor(requestExecutor) {
|
|
10550
10572
|
this.requestExecutor = requestExecutor;
|
|
@@ -10560,14 +10582,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10560
10582
|
);
|
|
10561
10583
|
}
|
|
10562
10584
|
delete(dsId, entryId) {
|
|
10563
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10585
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z333.any(), {
|
|
10564
10586
|
method: "DELETE"
|
|
10565
10587
|
});
|
|
10566
10588
|
}
|
|
10567
10589
|
};
|
|
10568
10590
|
|
|
10569
10591
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10570
|
-
import { z as
|
|
10592
|
+
import { z as z334 } from "zod";
|
|
10571
10593
|
var StorybookHostingEndpoint = class {
|
|
10572
10594
|
constructor(requestExecutor) {
|
|
10573
10595
|
this.requestExecutor = requestExecutor;
|
|
@@ -10581,7 +10603,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10581
10603
|
delete(dsId, storybookUploadId) {
|
|
10582
10604
|
return this.requestExecutor.json(
|
|
10583
10605
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10584
|
-
|
|
10606
|
+
z334.object({ ok: z334.boolean() }),
|
|
10585
10607
|
{
|
|
10586
10608
|
method: "DELETE"
|
|
10587
10609
|
}
|
|
@@ -10639,7 +10661,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10639
10661
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10640
10662
|
}
|
|
10641
10663
|
delete(dsId) {
|
|
10642
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10664
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z335.any(), { method: "DELETE" });
|
|
10643
10665
|
}
|
|
10644
10666
|
update(dsId, body) {
|
|
10645
10667
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10860,7 +10882,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10860
10882
|
};
|
|
10861
10883
|
|
|
10862
10884
|
// src/api/endpoints/forge/project-members.ts
|
|
10863
|
-
import { z as
|
|
10885
|
+
import { z as z336 } from "zod";
|
|
10864
10886
|
var ForgeProjectMembersEndpoint = class {
|
|
10865
10887
|
constructor(requestExecutor) {
|
|
10866
10888
|
this.requestExecutor = requestExecutor;
|
|
@@ -10889,7 +10911,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10889
10911
|
delete(projectId, userId) {
|
|
10890
10912
|
return this.requestExecutor.json(
|
|
10891
10913
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10892
|
-
|
|
10914
|
+
z336.object({ ok: z336.literal(true) }),
|
|
10893
10915
|
{
|
|
10894
10916
|
method: "DELETE"
|
|
10895
10917
|
}
|
|
@@ -11043,7 +11065,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
11043
11065
|
};
|
|
11044
11066
|
|
|
11045
11067
|
// src/api/endpoints/forge/project-invitations.ts
|
|
11046
|
-
import { z as
|
|
11068
|
+
import { z as z337 } from "zod";
|
|
11047
11069
|
var ForgeProjectInvitationsEndpoint = class {
|
|
11048
11070
|
constructor(requestExecutor) {
|
|
11049
11071
|
this.requestExecutor = requestExecutor;
|
|
@@ -11072,7 +11094,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
11072
11094
|
delete(projectId, email) {
|
|
11073
11095
|
return this.requestExecutor.json(
|
|
11074
11096
|
`/forge/projects/${projectId}/members/${encodeURI(btoa(email))}`,
|
|
11075
|
-
|
|
11097
|
+
z337.object({ ok: z337.literal(true) }),
|
|
11076
11098
|
{
|
|
11077
11099
|
method: "DELETE"
|
|
11078
11100
|
}
|
|
@@ -11130,7 +11152,7 @@ var ForgesEndpoint = class {
|
|
|
11130
11152
|
};
|
|
11131
11153
|
|
|
11132
11154
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
11133
|
-
import { z as
|
|
11155
|
+
import { z as z338 } from "zod";
|
|
11134
11156
|
var WorkspaceChatThreadsEndpoint = class {
|
|
11135
11157
|
constructor(requestExecutor) {
|
|
11136
11158
|
this.requestExecutor = requestExecutor;
|
|
@@ -11162,7 +11184,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
11162
11184
|
);
|
|
11163
11185
|
}
|
|
11164
11186
|
delete(workspaceId, threadId) {
|
|
11165
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11187
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z338.any(), {
|
|
11166
11188
|
method: "DELETE"
|
|
11167
11189
|
});
|
|
11168
11190
|
}
|
|
@@ -11194,7 +11216,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11194
11216
|
);
|
|
11195
11217
|
}
|
|
11196
11218
|
score(workspaceId, threadId, body) {
|
|
11197
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11219
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z338.any(), {
|
|
11198
11220
|
method: "POST",
|
|
11199
11221
|
body
|
|
11200
11222
|
});
|
|
@@ -11202,7 +11224,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11202
11224
|
};
|
|
11203
11225
|
|
|
11204
11226
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11205
|
-
import { z as
|
|
11227
|
+
import { z as z339 } from "zod";
|
|
11206
11228
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11207
11229
|
constructor(requestExecutor) {
|
|
11208
11230
|
this.requestExecutor = requestExecutor;
|
|
@@ -11211,7 +11233,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11211
11233
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11212
11234
|
}
|
|
11213
11235
|
delete(wsId, iId) {
|
|
11214
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11236
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z339.unknown(), { method: "DELETE" });
|
|
11215
11237
|
}
|
|
11216
11238
|
};
|
|
11217
11239
|
|
|
@@ -11243,7 +11265,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11243
11265
|
};
|
|
11244
11266
|
|
|
11245
11267
|
// src/api/endpoints/workspaces/members.ts
|
|
11246
|
-
import { z as
|
|
11268
|
+
import { z as z340 } from "zod";
|
|
11247
11269
|
var WorkspaceMembersEndpoint = class {
|
|
11248
11270
|
constructor(requestExecutor) {
|
|
11249
11271
|
this.requestExecutor = requestExecutor;
|
|
@@ -11260,7 +11282,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11260
11282
|
});
|
|
11261
11283
|
}
|
|
11262
11284
|
invite(workspaceId, body) {
|
|
11263
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11285
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z340.any(), { method: "POST", body });
|
|
11264
11286
|
}
|
|
11265
11287
|
delete(workspaceId, userId) {
|
|
11266
11288
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11289,7 +11311,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11289
11311
|
};
|
|
11290
11312
|
|
|
11291
11313
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11292
|
-
import { z as
|
|
11314
|
+
import { z as z341 } from "zod";
|
|
11293
11315
|
var WorkspacesEndpoint = class {
|
|
11294
11316
|
constructor(requestExecutor) {
|
|
11295
11317
|
this.requestExecutor = requestExecutor;
|
|
@@ -11321,10 +11343,10 @@ var WorkspacesEndpoint = class {
|
|
|
11321
11343
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11322
11344
|
}
|
|
11323
11345
|
delete(workspaceId) {
|
|
11324
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11346
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z341.any(), { method: "DELETE" });
|
|
11325
11347
|
}
|
|
11326
11348
|
subscription(workspaceId) {
|
|
11327
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11349
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z341.any(), { method: "GET" });
|
|
11328
11350
|
}
|
|
11329
11351
|
getPortalSettings(workspaceId) {
|
|
11330
11352
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11435,9 +11457,9 @@ ${bodyText}`,
|
|
|
11435
11457
|
|
|
11436
11458
|
// src/api/transport/request-executor.ts
|
|
11437
11459
|
import fetch from "node-fetch";
|
|
11438
|
-
import { z as
|
|
11439
|
-
var ResponseWrapper =
|
|
11440
|
-
result:
|
|
11460
|
+
import { z as z342 } from "zod";
|
|
11461
|
+
var ResponseWrapper = z342.object({
|
|
11462
|
+
result: z342.record(z342.any())
|
|
11441
11463
|
});
|
|
11442
11464
|
var RequestExecutor = class {
|
|
11443
11465
|
constructor(testServerConfig) {
|
|
@@ -11514,25 +11536,25 @@ var SupernovaApiClient = class {
|
|
|
11514
11536
|
};
|
|
11515
11537
|
|
|
11516
11538
|
// src/events/design-system.ts
|
|
11517
|
-
import { z as
|
|
11518
|
-
var DTOEventFigmaNodesRendered =
|
|
11519
|
-
type:
|
|
11520
|
-
designSystemId:
|
|
11521
|
-
versionId:
|
|
11522
|
-
figmaNodePersistentIds:
|
|
11523
|
-
});
|
|
11524
|
-
var DTOEventDataSourcesImported =
|
|
11525
|
-
type:
|
|
11526
|
-
designSystemId:
|
|
11527
|
-
versionId:
|
|
11528
|
-
importJobId:
|
|
11539
|
+
import { z as z343 } from "zod";
|
|
11540
|
+
var DTOEventFigmaNodesRendered = z343.object({
|
|
11541
|
+
type: z343.literal("DesignSystem.FigmaNodesRendered"),
|
|
11542
|
+
designSystemId: z343.string(),
|
|
11543
|
+
versionId: z343.string(),
|
|
11544
|
+
figmaNodePersistentIds: z343.string().array()
|
|
11545
|
+
});
|
|
11546
|
+
var DTOEventDataSourcesImported = z343.object({
|
|
11547
|
+
type: z343.literal("DesignSystem.ImportJobFinished"),
|
|
11548
|
+
designSystemId: z343.string(),
|
|
11549
|
+
versionId: z343.string(),
|
|
11550
|
+
importJobId: z343.string(),
|
|
11529
11551
|
dataSourceType: DataSourceRemoteType,
|
|
11530
|
-
dataSourceIds:
|
|
11552
|
+
dataSourceIds: z343.string().array()
|
|
11531
11553
|
});
|
|
11532
11554
|
|
|
11533
11555
|
// src/events/event.ts
|
|
11534
|
-
import { z as
|
|
11535
|
-
var DTOEvent =
|
|
11556
|
+
import { z as z344 } from "zod";
|
|
11557
|
+
var DTOEvent = z344.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11536
11558
|
|
|
11537
11559
|
// src/sync/docs-local-action-executor.ts
|
|
11538
11560
|
function applyActionsLocally(input) {
|
|
@@ -11828,7 +11850,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
11828
11850
|
import PQueue from "p-queue";
|
|
11829
11851
|
|
|
11830
11852
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11831
|
-
import { z as
|
|
11853
|
+
import { z as z345 } from "zod";
|
|
11832
11854
|
|
|
11833
11855
|
// src/yjs/version-room/base.ts
|
|
11834
11856
|
var VersionRoomBaseYDoc = class {
|
|
@@ -12378,24 +12400,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
12378
12400
|
};
|
|
12379
12401
|
|
|
12380
12402
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12381
|
-
var DocumentationHierarchySettings =
|
|
12382
|
-
routingVersion:
|
|
12383
|
-
isDraftFeatureAdopted:
|
|
12384
|
-
isApprovalFeatureEnabled:
|
|
12385
|
-
approvalRequiredForPublishing:
|
|
12403
|
+
var DocumentationHierarchySettings = z345.object({
|
|
12404
|
+
routingVersion: z345.string(),
|
|
12405
|
+
isDraftFeatureAdopted: z345.boolean(),
|
|
12406
|
+
isApprovalFeatureEnabled: z345.boolean(),
|
|
12407
|
+
approvalRequiredForPublishing: z345.boolean()
|
|
12386
12408
|
});
|
|
12387
12409
|
function yjsToDocumentationHierarchy(doc) {
|
|
12388
12410
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
12389
12411
|
}
|
|
12390
12412
|
|
|
12391
12413
|
// src/yjs/design-system-content/item-configuration.ts
|
|
12392
|
-
import { z as
|
|
12393
|
-
var DTODocumentationPageRoomHeaderData =
|
|
12394
|
-
title:
|
|
12414
|
+
import { z as z346 } from "zod";
|
|
12415
|
+
var DTODocumentationPageRoomHeaderData = z346.object({
|
|
12416
|
+
title: z346.string(),
|
|
12395
12417
|
configuration: DTODocumentationItemConfigurationV2
|
|
12396
12418
|
});
|
|
12397
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
12398
|
-
title:
|
|
12419
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z346.object({
|
|
12420
|
+
title: z346.string().optional(),
|
|
12399
12421
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
12400
12422
|
});
|
|
12401
12423
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -12430,9 +12452,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
12430
12452
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
12431
12453
|
|
|
12432
12454
|
// src/yjs/docs-editor/model/page.ts
|
|
12433
|
-
import { z as
|
|
12434
|
-
var DocumentationPageEditorModel =
|
|
12435
|
-
blocks:
|
|
12455
|
+
import { z as z347 } from "zod";
|
|
12456
|
+
var DocumentationPageEditorModel = z347.object({
|
|
12457
|
+
blocks: z347.array(DocumentationPageContentItem)
|
|
12436
12458
|
});
|
|
12437
12459
|
|
|
12438
12460
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -16109,7 +16131,7 @@ var blocks = [
|
|
|
16109
16131
|
|
|
16110
16132
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
16111
16133
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
16112
|
-
import { z as
|
|
16134
|
+
import { z as z348 } from "zod";
|
|
16113
16135
|
function yDocToPage(yDoc, definitions) {
|
|
16114
16136
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
16115
16137
|
}
|
|
@@ -16185,7 +16207,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
16185
16207
|
if (!id) return null;
|
|
16186
16208
|
return {
|
|
16187
16209
|
id,
|
|
16188
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
16210
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z348.string()) ?? "",
|
|
16189
16211
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
16190
16212
|
};
|
|
16191
16213
|
}
|
|
@@ -16219,7 +16241,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
16219
16241
|
});
|
|
16220
16242
|
}
|
|
16221
16243
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
16222
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
16244
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z348.string());
|
|
16223
16245
|
if (!definitionId) {
|
|
16224
16246
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
16225
16247
|
return [];
|
|
@@ -16260,7 +16282,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
16260
16282
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16261
16283
|
if (!id) return null;
|
|
16262
16284
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16263
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
16285
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z348.string().optional()));
|
|
16264
16286
|
return {
|
|
16265
16287
|
id,
|
|
16266
16288
|
type: "Block",
|
|
@@ -16383,9 +16405,9 @@ function parseRichTextAttribute(mark) {
|
|
|
16383
16405
|
return null;
|
|
16384
16406
|
}
|
|
16385
16407
|
function parseProsemirrorLink(mark) {
|
|
16386
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
16408
|
+
const href = getProsemirrorAttribute(mark, "href", z348.string().optional());
|
|
16387
16409
|
if (!href) return null;
|
|
16388
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
16410
|
+
const target = getProsemirrorAttribute(mark, "target", z348.string().optional());
|
|
16389
16411
|
const openInNewTab = target === "_blank";
|
|
16390
16412
|
if (href.startsWith("@")) {
|
|
16391
16413
|
return {
|
|
@@ -16404,9 +16426,9 @@ function parseProsemirrorLink(mark) {
|
|
|
16404
16426
|
}
|
|
16405
16427
|
}
|
|
16406
16428
|
function parseProsemirrorCommentHighlight(mark) {
|
|
16407
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
16429
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z348.string().optional());
|
|
16408
16430
|
if (!highlightId) return null;
|
|
16409
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
16431
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z348.boolean().optional()) ?? false;
|
|
16410
16432
|
return {
|
|
16411
16433
|
type: "Comment",
|
|
16412
16434
|
commentHighlightId: highlightId,
|
|
@@ -16417,7 +16439,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16417
16439
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16418
16440
|
if (!id) return null;
|
|
16419
16441
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16420
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
16442
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z348.boolean().optional()) !== false;
|
|
16421
16443
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
16422
16444
|
if (!tableChild) {
|
|
16423
16445
|
return emptyTable(id, variantId, 0);
|
|
@@ -16463,9 +16485,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16463
16485
|
function parseAsTableCell(prosemirrorNode) {
|
|
16464
16486
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16465
16487
|
if (!id) return null;
|
|
16466
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
16488
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z348.string().optional());
|
|
16467
16489
|
let columnWidth;
|
|
16468
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
16490
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z348.array(z348.number()).nullish());
|
|
16469
16491
|
if (columnWidthArray) {
|
|
16470
16492
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
16471
16493
|
}
|
|
@@ -16501,7 +16523,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16501
16523
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16502
16524
|
};
|
|
16503
16525
|
case "image":
|
|
16504
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16526
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z348.string());
|
|
16505
16527
|
if (!items) return null;
|
|
16506
16528
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16507
16529
|
if (!parsedItems.success) return null;
|
|
@@ -16615,7 +16637,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
16615
16637
|
);
|
|
16616
16638
|
}
|
|
16617
16639
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
16618
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16640
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z348.string());
|
|
16619
16641
|
if (!itemsString) return null;
|
|
16620
16642
|
const itemsJson = JSON.parse(itemsString);
|
|
16621
16643
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -16626,18 +16648,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
16626
16648
|
}
|
|
16627
16649
|
function parseAppearance(prosemirrorNode) {
|
|
16628
16650
|
let appearance = {};
|
|
16629
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16651
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z348.string().optional());
|
|
16630
16652
|
if (rawAppearanceString) {
|
|
16631
16653
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
16632
16654
|
if (parsedAppearance.success) {
|
|
16633
16655
|
appearance = parsedAppearance.data;
|
|
16634
16656
|
}
|
|
16635
16657
|
}
|
|
16636
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16658
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z348.number().optional());
|
|
16637
16659
|
if (columns) {
|
|
16638
16660
|
appearance.numberOfColumns = columns;
|
|
16639
16661
|
}
|
|
16640
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16662
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z348.string().optional());
|
|
16641
16663
|
if (backgroundColor) {
|
|
16642
16664
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
16643
16665
|
if (parsedColor.success) {
|
|
@@ -16738,12 +16760,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16738
16760
|
}
|
|
16739
16761
|
}
|
|
16740
16762
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16741
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16763
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z348.string());
|
|
16742
16764
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16743
16765
|
return id;
|
|
16744
16766
|
}
|
|
16745
16767
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16746
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16768
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z348.string()));
|
|
16747
16769
|
}
|
|
16748
16770
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16749
16771
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -16778,12 +16800,16 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
16778
16800
|
getState() {
|
|
16779
16801
|
const artifacts = this.getArtifacts();
|
|
16780
16802
|
const features = this.getFeatures();
|
|
16803
|
+
const artifactSections = this.getArtifactSections();
|
|
16804
|
+
const featureSections = this.getFeatureSections();
|
|
16781
16805
|
const executedTransactionIds = this.getExecutedTransactionIds();
|
|
16782
16806
|
const isLoaded = true;
|
|
16783
16807
|
return {
|
|
16784
16808
|
isLoaded,
|
|
16785
16809
|
artifacts,
|
|
16786
16810
|
features,
|
|
16811
|
+
artifactSections,
|
|
16812
|
+
featureSections,
|
|
16787
16813
|
executedTransactionIds
|
|
16788
16814
|
};
|
|
16789
16815
|
}
|
|
@@ -16818,6 +16844,33 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
16818
16844
|
return this.yDoc.getMap("forgeProjectFeatures");
|
|
16819
16845
|
}
|
|
16820
16846
|
//
|
|
16847
|
+
// Sections
|
|
16848
|
+
//
|
|
16849
|
+
getArtifactSections() {
|
|
16850
|
+
return this.getObjects(this.artifactSectionsYMap, ForgeSection);
|
|
16851
|
+
}
|
|
16852
|
+
updateArtifactSections(sections) {
|
|
16853
|
+
this.setObjects(this.artifactSectionsYMap, sections);
|
|
16854
|
+
}
|
|
16855
|
+
deleteArtifactSections(ids) {
|
|
16856
|
+
this.deleteObjects(this.artifactSectionsYMap, ids);
|
|
16857
|
+
}
|
|
16858
|
+
get artifactSectionsYMap() {
|
|
16859
|
+
return this.yDoc.getMap("forgeProjectArtifactSections");
|
|
16860
|
+
}
|
|
16861
|
+
getFeatureSections() {
|
|
16862
|
+
return this.getObjects(this.featureSectionsYMap, ForgeSection);
|
|
16863
|
+
}
|
|
16864
|
+
updateFeatureSections(sections) {
|
|
16865
|
+
this.setObjects(this.featureSectionsYMap, sections);
|
|
16866
|
+
}
|
|
16867
|
+
deleteFeatureSections(ids) {
|
|
16868
|
+
this.deleteObjects(this.featureSectionsYMap, ids);
|
|
16869
|
+
}
|
|
16870
|
+
get featureSectionsYMap() {
|
|
16871
|
+
return this.yDoc.getMap("forgeProjectFeatureSections");
|
|
16872
|
+
}
|
|
16873
|
+
//
|
|
16821
16874
|
// Executed transactions
|
|
16822
16875
|
//
|
|
16823
16876
|
updateExecutedTransactionIds(transactionIds) {
|
|
@@ -16847,7 +16900,7 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
16847
16900
|
return objects;
|
|
16848
16901
|
}
|
|
16849
16902
|
setObjects(map, objects) {
|
|
16850
|
-
objects.forEach((
|
|
16903
|
+
objects.forEach((o) => map.set(o.id, JSON.parse(JSON.stringify(o))));
|
|
16851
16904
|
}
|
|
16852
16905
|
deleteObjects(map, ids) {
|
|
16853
16906
|
ids.forEach((id) => map.delete(id));
|
|
@@ -16867,6 +16920,10 @@ var BackendForgeProjectRoomYDoc = class {
|
|
|
16867
16920
|
transaction.artifacts && yDoc.updateArtifacts(transaction.artifacts);
|
|
16868
16921
|
transaction.featureIdsToDelete && yDoc.deleteFeatures(transaction.featureIdsToDelete);
|
|
16869
16922
|
transaction.features && yDoc.updateFeatures(transaction.features);
|
|
16923
|
+
transaction.artifactSectionIdsToDelete && yDoc.deleteArtifactSections(transaction.artifactSectionIdsToDelete);
|
|
16924
|
+
transaction.artifactSections && yDoc.updateArtifactSections(transaction.artifactSections);
|
|
16925
|
+
transaction.featureSectionIdsToDelete && yDoc.deleteFeatureSections(transaction.featureSectionIdsToDelete);
|
|
16926
|
+
transaction.featureSections && yDoc.updateFeatureSections(transaction.featureSections);
|
|
16870
16927
|
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
16871
16928
|
});
|
|
16872
16929
|
}
|
|
@@ -17105,16 +17162,22 @@ var LocalProjectActionExecutor = class {
|
|
|
17105
17162
|
__publicField(this, "projectId");
|
|
17106
17163
|
__publicField(this, "artifacts");
|
|
17107
17164
|
__publicField(this, "features");
|
|
17165
|
+
__publicField(this, "artifactSections");
|
|
17166
|
+
__publicField(this, "featureSections");
|
|
17108
17167
|
const { projectId, remoteState, userId } = config;
|
|
17109
17168
|
this.userId = userId;
|
|
17110
17169
|
this.projectId = projectId;
|
|
17111
17170
|
this.artifacts = mapByUnique(remoteState.artifacts, (p) => p.id);
|
|
17112
17171
|
this.features = mapByUnique(remoteState.features, (p) => p.id);
|
|
17172
|
+
this.artifactSections = mapByUnique(remoteState.artifactSections, (p) => p.id);
|
|
17173
|
+
this.featureSections = mapByUnique(remoteState.featureSections, (p) => p.id);
|
|
17113
17174
|
}
|
|
17114
17175
|
get localState() {
|
|
17115
17176
|
return {
|
|
17116
17177
|
artifacts: Array.from(this.artifacts.values()),
|
|
17117
|
-
features: Array.from(this.features.values())
|
|
17178
|
+
features: Array.from(this.features.values()),
|
|
17179
|
+
artifactSections: Array.from(this.artifactSections.values()),
|
|
17180
|
+
featureSections: Array.from(this.featureSections.values())
|
|
17118
17181
|
};
|
|
17119
17182
|
}
|
|
17120
17183
|
applyActions(trx) {
|
|
@@ -17134,6 +17197,12 @@ var LocalProjectActionExecutor = class {
|
|
|
17134
17197
|
return this.featureDelete(trx);
|
|
17135
17198
|
case "FeatureUpdate":
|
|
17136
17199
|
return this.featureUpdate(trx);
|
|
17200
|
+
case "SectionCreate":
|
|
17201
|
+
return this.sectionCreate(trx);
|
|
17202
|
+
case "SectionUpdate":
|
|
17203
|
+
return this.sectionUpdate(trx);
|
|
17204
|
+
case "SectionDelete":
|
|
17205
|
+
return this.sectionDelete(trx);
|
|
17137
17206
|
}
|
|
17138
17207
|
}
|
|
17139
17208
|
//
|
|
@@ -17215,6 +17284,48 @@ var LocalProjectActionExecutor = class {
|
|
|
17215
17284
|
throw new Error(`Cannot delete feature: feature ${id} was not found in local storage`);
|
|
17216
17285
|
}
|
|
17217
17286
|
}
|
|
17287
|
+
//
|
|
17288
|
+
// Sections
|
|
17289
|
+
//
|
|
17290
|
+
sectionCreate(trx) {
|
|
17291
|
+
const { input } = trx;
|
|
17292
|
+
const { id } = input;
|
|
17293
|
+
const sections = input.childType === "Artifact" ? this.artifactSections : this.featureSections;
|
|
17294
|
+
sections.set(id, {
|
|
17295
|
+
id,
|
|
17296
|
+
projectId: this.projectId,
|
|
17297
|
+
name: input.name,
|
|
17298
|
+
childType: input.childType,
|
|
17299
|
+
sortOrder: 0,
|
|
17300
|
+
// TODO: Use Roman's calculate functions
|
|
17301
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
17302
|
+
createdAt: /* @__PURE__ */ new Date()
|
|
17303
|
+
});
|
|
17304
|
+
}
|
|
17305
|
+
sectionUpdate(trx) {
|
|
17306
|
+
const { input } = trx;
|
|
17307
|
+
const { id } = input;
|
|
17308
|
+
const existingSection = this.artifactSections.get(id) ?? this.featureSections.get(id);
|
|
17309
|
+
if (!existingSection) {
|
|
17310
|
+
throw new Error(`Cannot update section: section ${id} was not found in local storage`);
|
|
17311
|
+
}
|
|
17312
|
+
const mergedSection = {
|
|
17313
|
+
...existingSection,
|
|
17314
|
+
name: input.name ?? existingSection.name,
|
|
17315
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
17316
|
+
};
|
|
17317
|
+
const sections = existingSection.childType === "Artifact" ? this.artifactSections : this.featureSections;
|
|
17318
|
+
sections.set(id, mergedSection);
|
|
17319
|
+
}
|
|
17320
|
+
sectionDelete(trx) {
|
|
17321
|
+
const { input } = trx;
|
|
17322
|
+
const { id } = input;
|
|
17323
|
+
const isArtifactSection = this.artifactSections.delete(id);
|
|
17324
|
+
const isFeatureSection = this.featureSections.delete(id);
|
|
17325
|
+
if (!isArtifactSection && !isFeatureSection) {
|
|
17326
|
+
throw new Error(`Cannot delete section: section ${id} was not found in local storage`);
|
|
17327
|
+
}
|
|
17328
|
+
}
|
|
17218
17329
|
};
|
|
17219
17330
|
|
|
17220
17331
|
// src/sync/project-content-repo.ts
|
|
@@ -17328,7 +17439,9 @@ var ForgeProjectContentRepository = class {
|
|
|
17328
17439
|
});
|
|
17329
17440
|
return {
|
|
17330
17441
|
artifacts: state.artifacts,
|
|
17331
|
-
features: state.features
|
|
17442
|
+
features: state.features,
|
|
17443
|
+
artifactSections: state.artifactSections,
|
|
17444
|
+
featureSections: state.featureSections
|
|
17332
17445
|
};
|
|
17333
17446
|
}
|
|
17334
17447
|
onYUpdate() {
|
|
@@ -17917,6 +18030,7 @@ export {
|
|
|
17917
18030
|
DTOWorkspaceProfile,
|
|
17918
18031
|
DTOWorkspaceResponse,
|
|
17919
18032
|
DTOWorkspaceRole,
|
|
18033
|
+
DTOWorkspaceSeatType,
|
|
17920
18034
|
DTOWorkspaceUntypedData,
|
|
17921
18035
|
DTOWorkspaceUntypedDataCreatePayload,
|
|
17922
18036
|
DTOWorkspaceUntypedDataListResponse,
|
|
@@ -17970,6 +18084,7 @@ export {
|
|
|
17970
18084
|
ListTreeBuilder,
|
|
17971
18085
|
LiveblocksEndpoint,
|
|
17972
18086
|
LocalDocsElementActionExecutor,
|
|
18087
|
+
LocalProjectActionExecutor,
|
|
17973
18088
|
NpmRegistryInput,
|
|
17974
18089
|
ObjectMeta2 as ObjectMeta,
|
|
17975
18090
|
OverridesEndpoint,
|
|
@@ -18008,6 +18123,7 @@ export {
|
|
|
18008
18123
|
WorkspacesEndpoint,
|
|
18009
18124
|
applyActionsLocally,
|
|
18010
18125
|
applyPrivacyConfigurationToNestedItems,
|
|
18126
|
+
applyProjectActionsLocally,
|
|
18011
18127
|
blockToProsemirrorNode,
|
|
18012
18128
|
buildDocPagePublishPaths,
|
|
18013
18129
|
calculateElementParentChain,
|