@supernova-studio/client 1.10.1 → 1.10.3
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 +2374 -2255
- package/dist/index.d.ts +2374 -2255
- package/dist/index.js +82 -51
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1045 -1014
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -458,6 +458,7 @@ var ForgeChatMessage = z14.object({
|
|
|
458
458
|
payload: z14.string(),
|
|
459
459
|
createdAt: z14.coerce.date(),
|
|
460
460
|
updatedAt: z14.coerce.date(),
|
|
461
|
+
opikSpanId: z14.string().optional(),
|
|
461
462
|
sender: ForgeChatMessageSender
|
|
462
463
|
});
|
|
463
464
|
var ForgeChatThread = z15.object({
|
|
@@ -6239,7 +6240,7 @@ var DTOPagination = z210.object({
|
|
|
6239
6240
|
});
|
|
6240
6241
|
|
|
6241
6242
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6242
|
-
import { z as
|
|
6243
|
+
import { z as z252 } from "zod";
|
|
6243
6244
|
|
|
6244
6245
|
// src/api/dto/design-systems/brand.ts
|
|
6245
6246
|
import { z as z211 } from "zod";
|
|
@@ -6888,197 +6889,147 @@ var DTOStorybookEntryListResponse = z228.object({ entries: z228.array(DTOStorybo
|
|
|
6888
6889
|
var DTOStorybookEntryResponse = z228.object({ entry: DTOStorybookEntry });
|
|
6889
6890
|
|
|
6890
6891
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6891
|
-
import { z as
|
|
6892
|
-
|
|
6893
|
-
// src/api/dto/workspaces/chat-threads.ts
|
|
6894
|
-
import { z as z229 } from "zod";
|
|
6895
|
-
var DTOForgeChatMessage = ForgeChatMessage;
|
|
6896
|
-
var DTOForgeChatThread = ForgeChatThread;
|
|
6897
|
-
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
6898
|
-
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
6899
|
-
var DTOForgeChatThreadCreateInput = z229.object({
|
|
6900
|
-
title: z229.string().optional()
|
|
6901
|
-
});
|
|
6902
|
-
var DTOForgeChatThreadCreateResponse = z229.object({
|
|
6903
|
-
thread: DTOForgeChatThread
|
|
6904
|
-
});
|
|
6905
|
-
var DTOForgeChatThreadUpdateInput = z229.object({
|
|
6906
|
-
title: z229.string()
|
|
6907
|
-
});
|
|
6908
|
-
var DTOForgeChatThreadUpdateResponse = z229.object({
|
|
6909
|
-
thread: DTOForgeChatThread
|
|
6910
|
-
});
|
|
6911
|
-
var DTOForgeChatThreadDeleteResponse = z229.object({
|
|
6912
|
-
success: z229.boolean()
|
|
6913
|
-
});
|
|
6914
|
-
var DTOForgeChatThreadListQuery = z229.object({
|
|
6915
|
-
limit: z229.number().optional(),
|
|
6916
|
-
offset: z229.number().optional()
|
|
6917
|
-
});
|
|
6918
|
-
var DTOForgeChatThreadListResponse = z229.object({
|
|
6919
|
-
threads: z229.array(DTOForgeChatThread),
|
|
6920
|
-
pagination: z229.object({
|
|
6921
|
-
offset: z229.number(),
|
|
6922
|
-
limit: z229.number(),
|
|
6923
|
-
total: z229.number()
|
|
6924
|
-
})
|
|
6925
|
-
});
|
|
6926
|
-
var DTOForgeChatMessageCreateInput = z229.object({
|
|
6927
|
-
payload: z229.string(),
|
|
6928
|
-
sender: DTOForgeChatMessageSender.optional()
|
|
6929
|
-
});
|
|
6930
|
-
var DTOForgeChatMessageCreateResponse = z229.object({
|
|
6931
|
-
message: DTOForgeChatMessage
|
|
6932
|
-
});
|
|
6933
|
-
var DTOForgeChatMessageListQuery = z229.object({
|
|
6934
|
-
limit: z229.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
6935
|
-
offset: z229.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
6936
|
-
});
|
|
6937
|
-
var DTOForgeChatMessageListResponse = z229.object({
|
|
6938
|
-
messages: z229.array(DTOForgeChatMessage),
|
|
6939
|
-
totalCount: z229.number(),
|
|
6940
|
-
hasMore: z229.boolean()
|
|
6941
|
-
});
|
|
6892
|
+
import { z as z236 } from "zod";
|
|
6942
6893
|
|
|
6943
6894
|
// src/api/dto/workspaces/git.ts
|
|
6944
|
-
import { z as
|
|
6945
|
-
var DTOGitOrganization =
|
|
6946
|
-
id:
|
|
6947
|
-
name:
|
|
6948
|
-
url:
|
|
6949
|
-
slug:
|
|
6950
|
-
});
|
|
6951
|
-
var DTOGitProject =
|
|
6952
|
-
id:
|
|
6953
|
-
name:
|
|
6954
|
-
url:
|
|
6955
|
-
slug:
|
|
6956
|
-
});
|
|
6957
|
-
var DTOGitRepository =
|
|
6958
|
-
id:
|
|
6959
|
-
name:
|
|
6960
|
-
url:
|
|
6961
|
-
slug:
|
|
6962
|
-
defaultBranch:
|
|
6963
|
-
});
|
|
6964
|
-
var DTOGitBranch =
|
|
6965
|
-
name:
|
|
6966
|
-
lastCommitId:
|
|
6895
|
+
import { z as z229 } from "zod";
|
|
6896
|
+
var DTOGitOrganization = z229.object({
|
|
6897
|
+
id: z229.string(),
|
|
6898
|
+
name: z229.string(),
|
|
6899
|
+
url: z229.string(),
|
|
6900
|
+
slug: z229.string()
|
|
6901
|
+
});
|
|
6902
|
+
var DTOGitProject = z229.object({
|
|
6903
|
+
id: z229.string(),
|
|
6904
|
+
name: z229.string(),
|
|
6905
|
+
url: z229.string(),
|
|
6906
|
+
slug: z229.string()
|
|
6907
|
+
});
|
|
6908
|
+
var DTOGitRepository = z229.object({
|
|
6909
|
+
id: z229.string(),
|
|
6910
|
+
name: z229.string(),
|
|
6911
|
+
url: z229.string(),
|
|
6912
|
+
slug: z229.string(),
|
|
6913
|
+
defaultBranch: z229.string().optional()
|
|
6914
|
+
});
|
|
6915
|
+
var DTOGitBranch = z229.object({
|
|
6916
|
+
name: z229.string(),
|
|
6917
|
+
lastCommitId: z229.string()
|
|
6967
6918
|
});
|
|
6968
6919
|
|
|
6969
6920
|
// src/api/dto/workspaces/integrations.ts
|
|
6970
|
-
import { z as
|
|
6921
|
+
import { z as z230 } from "zod";
|
|
6971
6922
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6972
6923
|
accessToken: true,
|
|
6973
6924
|
refreshToken: true
|
|
6974
6925
|
});
|
|
6975
|
-
var DTOIntegration =
|
|
6976
|
-
id:
|
|
6977
|
-
workspaceId:
|
|
6926
|
+
var DTOIntegration = z230.object({
|
|
6927
|
+
id: z230.string(),
|
|
6928
|
+
workspaceId: z230.string(),
|
|
6978
6929
|
type: ExtendedIntegrationType,
|
|
6979
|
-
createdAt:
|
|
6980
|
-
integrationCredentials:
|
|
6981
|
-
integrationDesignSystems:
|
|
6930
|
+
createdAt: z230.coerce.date(),
|
|
6931
|
+
integrationCredentials: z230.array(DTOIntegrationCredentials).optional(),
|
|
6932
|
+
integrationDesignSystems: z230.array(IntegrationDesignSystem).optional()
|
|
6982
6933
|
});
|
|
6983
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6984
|
-
url:
|
|
6934
|
+
var DTOIntegrationOAuthGetResponse = z230.object({
|
|
6935
|
+
url: z230.string()
|
|
6985
6936
|
});
|
|
6986
|
-
var DTOIntegrationPostResponse =
|
|
6937
|
+
var DTOIntegrationPostResponse = z230.object({
|
|
6987
6938
|
integration: DTOIntegration
|
|
6988
6939
|
});
|
|
6989
|
-
var DTOIntegrationsGetListResponse =
|
|
6940
|
+
var DTOIntegrationsGetListResponse = z230.object({
|
|
6990
6941
|
integrations: DTOIntegration.array()
|
|
6991
6942
|
});
|
|
6992
6943
|
|
|
6993
6944
|
// src/api/dto/workspaces/invitations.ts
|
|
6994
|
-
import { z as
|
|
6995
|
-
var DTOWorkspaceInvitationInput =
|
|
6996
|
-
email:
|
|
6945
|
+
import { z as z231 } from "zod";
|
|
6946
|
+
var DTOWorkspaceInvitationInput = z231.object({
|
|
6947
|
+
email: z231.string().email(),
|
|
6997
6948
|
role: WorkspaceRoleSchema
|
|
6998
6949
|
});
|
|
6999
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6950
|
+
var DTOWorkspaceInvitationsListInput = z231.object({
|
|
7000
6951
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
7001
|
-
designSystemId:
|
|
6952
|
+
designSystemId: z231.string().optional()
|
|
7002
6953
|
});
|
|
7003
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6954
|
+
var DTOWorkspaceInvitationsResponse = z231.object({
|
|
7004
6955
|
invitations: WorkspaceInvitation.array()
|
|
7005
6956
|
});
|
|
7006
|
-
var DTOWorkspaceInviteUpdate =
|
|
6957
|
+
var DTOWorkspaceInviteUpdate = z231.object({
|
|
7007
6958
|
role: WorkspaceRoleSchema
|
|
7008
6959
|
});
|
|
7009
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6960
|
+
var DTOWorkspaceInvitationUpdateResponse = z231.object({
|
|
7010
6961
|
invitation: WorkspaceInvitation
|
|
7011
6962
|
});
|
|
7012
6963
|
|
|
7013
6964
|
// src/api/dto/workspaces/membership.ts
|
|
7014
|
-
import { z as
|
|
6965
|
+
import { z as z234 } from "zod";
|
|
7015
6966
|
|
|
7016
6967
|
// src/api/dto/workspaces/workspace.ts
|
|
7017
|
-
import { z as
|
|
6968
|
+
import { z as z233 } from "zod";
|
|
7018
6969
|
|
|
7019
6970
|
// src/api/dto/workspaces/npm-registry.ts
|
|
7020
|
-
import { z as
|
|
6971
|
+
import { z as z232 } from "zod";
|
|
7021
6972
|
var DTONpmRegistryConfigConstants = {
|
|
7022
6973
|
passwordPlaceholder: "redacted"
|
|
7023
6974
|
};
|
|
7024
|
-
var DTONpmRegistryConfig =
|
|
6975
|
+
var DTONpmRegistryConfig = z232.object({
|
|
7025
6976
|
// Registry basic configuration
|
|
7026
6977
|
registryType: NpmRegistryType,
|
|
7027
|
-
registryUrl:
|
|
7028
|
-
customRegistryUrl:
|
|
6978
|
+
registryUrl: z232.string(),
|
|
6979
|
+
customRegistryUrl: z232.string().optional(),
|
|
7029
6980
|
// URL of Supernova NPM packages proxy
|
|
7030
|
-
proxyUrl:
|
|
6981
|
+
proxyUrl: z232.string(),
|
|
7031
6982
|
// Auth configuration
|
|
7032
6983
|
authType: NpmRegistryAuthType,
|
|
7033
|
-
accessToken:
|
|
7034
|
-
username:
|
|
7035
|
-
password:
|
|
6984
|
+
accessToken: z232.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6985
|
+
username: z232.string().optional(),
|
|
6986
|
+
password: z232.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
7036
6987
|
// NPM package scopes for whih the proxy should be enabled
|
|
7037
|
-
enabledScopes:
|
|
6988
|
+
enabledScopes: z232.array(z232.string()),
|
|
7038
6989
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
7039
6990
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
7040
|
-
bypassProxy:
|
|
6991
|
+
bypassProxy: z232.boolean()
|
|
7041
6992
|
});
|
|
7042
|
-
var DTONpmRegistryAccessTokenResponse =
|
|
7043
|
-
version:
|
|
7044
|
-
accessToken:
|
|
7045
|
-
registryUrl:
|
|
6993
|
+
var DTONpmRegistryAccessTokenResponse = z232.object({
|
|
6994
|
+
version: z232.number(),
|
|
6995
|
+
accessToken: z232.string().optional(),
|
|
6996
|
+
registryUrl: z232.string()
|
|
7046
6997
|
});
|
|
7047
|
-
var DTOUpdateRegistryInput =
|
|
6998
|
+
var DTOUpdateRegistryInput = z232.object({
|
|
7048
6999
|
registryType: nullishToOptional(NpmRegistryType),
|
|
7049
7000
|
authType: nullishToOptional(NpmRegistryAuthType),
|
|
7050
|
-
enabledScopes: nullishToOptional(
|
|
7051
|
-
customRegistryUrl: nullishToOptional(
|
|
7052
|
-
bypassProxy: nullishToOptional(
|
|
7053
|
-
npmProxyVersion: nullishToOptional(
|
|
7054
|
-
authHeaderName: nullishToOptional(
|
|
7055
|
-
authHeaderValue: nullishToOptional(
|
|
7056
|
-
accessToken: nullishToOptional(
|
|
7057
|
-
username: nullishToOptional(
|
|
7058
|
-
password: nullishToOptional(
|
|
7059
|
-
});
|
|
7060
|
-
var DTOUpdateRegistryOutput =
|
|
7001
|
+
enabledScopes: nullishToOptional(z232.array(z232.string())),
|
|
7002
|
+
customRegistryUrl: nullishToOptional(z232.string()),
|
|
7003
|
+
bypassProxy: nullishToOptional(z232.boolean()),
|
|
7004
|
+
npmProxyVersion: nullishToOptional(z232.number()),
|
|
7005
|
+
authHeaderName: nullishToOptional(z232.string()),
|
|
7006
|
+
authHeaderValue: nullishToOptional(z232.string()),
|
|
7007
|
+
accessToken: nullishToOptional(z232.string()),
|
|
7008
|
+
username: nullishToOptional(z232.string()),
|
|
7009
|
+
password: nullishToOptional(z232.string())
|
|
7010
|
+
});
|
|
7011
|
+
var DTOUpdateRegistryOutput = z232.object({
|
|
7061
7012
|
npmRegistrySettings: DTONpmRegistryConfig
|
|
7062
7013
|
});
|
|
7063
7014
|
|
|
7064
7015
|
// src/api/dto/workspaces/workspace.ts
|
|
7065
7016
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
7066
|
-
var DTOWorkspace =
|
|
7067
|
-
id:
|
|
7017
|
+
var DTOWorkspace = z233.object({
|
|
7018
|
+
id: z233.string(),
|
|
7068
7019
|
profile: DTOWorkspaceProfile,
|
|
7069
7020
|
subscription: Subscription,
|
|
7070
7021
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
7071
7022
|
});
|
|
7072
|
-
var DTOWorkspaceCreateInput =
|
|
7073
|
-
name:
|
|
7023
|
+
var DTOWorkspaceCreateInput = z233.object({
|
|
7024
|
+
name: z233.string()
|
|
7074
7025
|
});
|
|
7075
|
-
var DTOWorkspaceResponse =
|
|
7026
|
+
var DTOWorkspaceResponse = z233.object({
|
|
7076
7027
|
workspace: DTOWorkspace
|
|
7077
7028
|
});
|
|
7078
7029
|
|
|
7079
7030
|
// src/api/dto/workspaces/membership.ts
|
|
7080
|
-
var DTOWorkspaceRole =
|
|
7081
|
-
var DTOUserWorkspaceMembership =
|
|
7031
|
+
var DTOWorkspaceRole = z234.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
7032
|
+
var DTOUserWorkspaceMembership = z234.object({
|
|
7082
7033
|
// Workspace the user is a member of
|
|
7083
7034
|
workspace: DTOWorkspace,
|
|
7084
7035
|
// Assigned role the user has in the workspace
|
|
@@ -7088,54 +7039,54 @@ var DTOUserWorkspaceMembership = z235.object({
|
|
|
7088
7039
|
// when a workspace's subscription is downgraded to free tier
|
|
7089
7040
|
effectiveRole: DTOWorkspaceRole
|
|
7090
7041
|
});
|
|
7091
|
-
var DTOWorkspaceMember =
|
|
7042
|
+
var DTOWorkspaceMember = z234.object({
|
|
7092
7043
|
user: User,
|
|
7093
7044
|
role: WorkspaceRoleSchema,
|
|
7094
7045
|
effectiveRole: WorkspaceRoleSchema
|
|
7095
7046
|
});
|
|
7096
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
7097
|
-
membership:
|
|
7047
|
+
var DTOUserWorkspaceMembershipsResponse = z234.object({
|
|
7048
|
+
membership: z234.array(DTOUserWorkspaceMembership)
|
|
7098
7049
|
});
|
|
7099
|
-
var DTOWorkspaceMembersListResponse =
|
|
7100
|
-
members:
|
|
7050
|
+
var DTOWorkspaceMembersListResponse = z234.object({
|
|
7051
|
+
members: z234.array(DTOWorkspaceMember)
|
|
7101
7052
|
});
|
|
7102
7053
|
|
|
7103
7054
|
// src/api/dto/workspaces/untyped-data.ts
|
|
7104
|
-
import { z as
|
|
7055
|
+
import { z as z235 } from "zod";
|
|
7105
7056
|
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
7106
|
-
var DTOWorkspaceUntypedDataListResponse =
|
|
7057
|
+
var DTOWorkspaceUntypedDataListResponse = z235.object({
|
|
7107
7058
|
data: DTOWorkspaceUntypedData.array()
|
|
7108
7059
|
});
|
|
7109
|
-
var DTOWorkspaceUntypedDataResponse =
|
|
7060
|
+
var DTOWorkspaceUntypedDataResponse = z235.object({
|
|
7110
7061
|
data: DTOWorkspaceUntypedData
|
|
7111
7062
|
});
|
|
7112
|
-
var DTOWorkspaceUntypedDataCreatePayload =
|
|
7113
|
-
value:
|
|
7063
|
+
var DTOWorkspaceUntypedDataCreatePayload = z235.object({
|
|
7064
|
+
value: z235.unknown()
|
|
7114
7065
|
});
|
|
7115
|
-
var DTOWorkspaceUntypedDataUpdatePayload =
|
|
7116
|
-
value:
|
|
7066
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z235.object({
|
|
7067
|
+
value: z235.unknown()
|
|
7117
7068
|
});
|
|
7118
7069
|
|
|
7119
7070
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
7120
|
-
var DTOUserDesignSystemsResponse =
|
|
7071
|
+
var DTOUserDesignSystemsResponse = z236.object({
|
|
7121
7072
|
designSystems: DTODesignSystem.array(),
|
|
7122
7073
|
workspaces: DTOWorkspace.array()
|
|
7123
7074
|
});
|
|
7124
7075
|
|
|
7125
7076
|
// src/api/dto/design-systems/version-room.ts
|
|
7126
|
-
import { z as
|
|
7127
|
-
var DTODesignSystemVersionRoom =
|
|
7128
|
-
id:
|
|
7077
|
+
import { z as z237 } from "zod";
|
|
7078
|
+
var DTODesignSystemVersionRoom = z237.object({
|
|
7079
|
+
id: z237.string()
|
|
7129
7080
|
});
|
|
7130
|
-
var DTODesignSystemVersionRoomResponse =
|
|
7081
|
+
var DTODesignSystemVersionRoomResponse = z237.object({
|
|
7131
7082
|
room: DTODesignSystemVersionRoom
|
|
7132
7083
|
});
|
|
7133
7084
|
|
|
7134
7085
|
// src/api/dto/design-systems/version.ts
|
|
7135
|
-
import { z as
|
|
7086
|
+
import { z as z250 } from "zod";
|
|
7136
7087
|
|
|
7137
7088
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
7138
|
-
import { z as
|
|
7089
|
+
import { z as z238 } from "zod";
|
|
7139
7090
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
7140
7091
|
id: true,
|
|
7141
7092
|
workspaceId: true,
|
|
@@ -7147,56 +7098,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
7147
7098
|
}).extend({
|
|
7148
7099
|
meta: ObjectMeta.partial().optional()
|
|
7149
7100
|
});
|
|
7150
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
7101
|
+
var DTODesignSystemUpdateAccessModeInput = z238.object({
|
|
7151
7102
|
accessMode: DesignSystemAccessMode,
|
|
7152
|
-
retain:
|
|
7153
|
-
userIds:
|
|
7154
|
-
inviteIds:
|
|
7103
|
+
retain: z238.object({
|
|
7104
|
+
userIds: z238.string().array(),
|
|
7105
|
+
inviteIds: z238.string().array()
|
|
7155
7106
|
}).optional()
|
|
7156
7107
|
});
|
|
7157
7108
|
|
|
7158
7109
|
// src/api/payloads/design-systems/version.ts
|
|
7159
|
-
import { z as
|
|
7160
|
-
var ObjectMeta2 =
|
|
7161
|
-
name:
|
|
7162
|
-
description:
|
|
7110
|
+
import { z as z239 } from "zod";
|
|
7111
|
+
var ObjectMeta2 = z239.object({
|
|
7112
|
+
name: z239.string().max(150).optional(),
|
|
7113
|
+
description: z239.string().max(2e3).optional()
|
|
7163
7114
|
});
|
|
7164
7115
|
function validateDesignSystemVersion(version) {
|
|
7165
7116
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
7166
7117
|
return urlCompliantRegex.test(version);
|
|
7167
7118
|
}
|
|
7168
|
-
var DTOCreateVersionInput =
|
|
7119
|
+
var DTOCreateVersionInput = z239.object({
|
|
7169
7120
|
meta: ObjectMeta2,
|
|
7170
|
-
version:
|
|
7121
|
+
version: z239.string().refine(validateDesignSystemVersion, {
|
|
7171
7122
|
message: "Invalid semantic versioning format"
|
|
7172
7123
|
}),
|
|
7173
|
-
changeLog:
|
|
7124
|
+
changeLog: z239.string().optional()
|
|
7174
7125
|
});
|
|
7175
|
-
var DTOUpdateVersionInput =
|
|
7126
|
+
var DTOUpdateVersionInput = z239.object({
|
|
7176
7127
|
meta: ObjectMeta2,
|
|
7177
|
-
version:
|
|
7128
|
+
version: z239.string(),
|
|
7178
7129
|
// required for PUT, but not editable
|
|
7179
|
-
changeLog:
|
|
7130
|
+
changeLog: z239.string()
|
|
7180
7131
|
});
|
|
7181
7132
|
|
|
7182
7133
|
// src/api/payloads/documentation/analytics.ts
|
|
7183
|
-
import { z as
|
|
7184
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
7185
|
-
referencePeriod:
|
|
7186
|
-
start:
|
|
7187
|
-
end:
|
|
7134
|
+
import { z as z240 } from "zod";
|
|
7135
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z240.object({
|
|
7136
|
+
referencePeriod: z240.object({
|
|
7137
|
+
start: z240.coerce.date(),
|
|
7138
|
+
end: z240.coerce.date().optional()
|
|
7188
7139
|
}),
|
|
7189
|
-
baselinePeriod:
|
|
7190
|
-
start:
|
|
7191
|
-
end:
|
|
7140
|
+
baselinePeriod: z240.object({
|
|
7141
|
+
start: z240.coerce.date(),
|
|
7142
|
+
end: z240.coerce.date().optional()
|
|
7192
7143
|
})
|
|
7193
7144
|
});
|
|
7194
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
7195
|
-
timeFrames:
|
|
7145
|
+
var DTODocumentationAnalyticsDiffPayload = z240.object({
|
|
7146
|
+
timeFrames: z240.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
7196
7147
|
});
|
|
7197
7148
|
|
|
7198
7149
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7199
|
-
import { z as
|
|
7150
|
+
import { z as z241 } from "zod";
|
|
7200
7151
|
|
|
7201
7152
|
// src/api/dto/documentation/block-definition.ts
|
|
7202
7153
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -7208,79 +7159,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
7208
7159
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
7209
7160
|
|
|
7210
7161
|
// src/api/payloads/documentation/block-definitions.ts
|
|
7211
|
-
var DTOGetBlockDefinitionsQuery =
|
|
7212
|
-
files:
|
|
7162
|
+
var DTOGetBlockDefinitionsQuery = z241.object({
|
|
7163
|
+
files: z241.coerce.boolean().optional()
|
|
7213
7164
|
});
|
|
7214
|
-
var DTOGetBlockDefinitionsOutput =
|
|
7215
|
-
definitions:
|
|
7165
|
+
var DTOGetBlockDefinitionsOutput = z241.object({
|
|
7166
|
+
definitions: z241.array(DTOPageBlockDefinition)
|
|
7216
7167
|
});
|
|
7217
7168
|
|
|
7218
7169
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
7219
|
-
import { z as
|
|
7220
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
7221
|
-
environment:
|
|
7170
|
+
import { z as z242 } from "zod";
|
|
7171
|
+
var DTODocumentationPublishTypeQueryParams = z242.object({
|
|
7172
|
+
environment: z242.enum(["Live", "Preview"])
|
|
7222
7173
|
});
|
|
7223
7174
|
|
|
7224
7175
|
// src/api/payloads/export/pipeline.ts
|
|
7225
|
-
import { z as
|
|
7176
|
+
import { z as z244 } from "zod";
|
|
7226
7177
|
|
|
7227
7178
|
// src/api/dto/export/exporter-property.ts
|
|
7228
|
-
import { z as
|
|
7229
|
-
var PrimitiveValue2 =
|
|
7230
|
-
var ArrayValue2 =
|
|
7231
|
-
var ObjectValue2 =
|
|
7179
|
+
import { z as z243 } from "zod";
|
|
7180
|
+
var PrimitiveValue2 = z243.number().or(z243.boolean()).or(z243.string());
|
|
7181
|
+
var ArrayValue2 = z243.array(z243.string());
|
|
7182
|
+
var ObjectValue2 = z243.record(z243.string());
|
|
7232
7183
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
7233
|
-
var DTOExporterPropertyType =
|
|
7234
|
-
var PropertyDefinitionBase2 =
|
|
7235
|
-
key:
|
|
7236
|
-
title:
|
|
7237
|
-
description:
|
|
7238
|
-
category:
|
|
7239
|
-
dependsOn:
|
|
7240
|
-
});
|
|
7241
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
7242
|
-
label:
|
|
7243
|
-
description:
|
|
7184
|
+
var DTOExporterPropertyType = z243.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
7185
|
+
var PropertyDefinitionBase2 = z243.object({
|
|
7186
|
+
key: z243.string(),
|
|
7187
|
+
title: z243.string(),
|
|
7188
|
+
description: z243.string(),
|
|
7189
|
+
category: z243.string().optional(),
|
|
7190
|
+
dependsOn: z243.record(z243.boolean()).optional()
|
|
7191
|
+
});
|
|
7192
|
+
var DTOExporterPropertyDefinitionEnumOption = z243.object({
|
|
7193
|
+
label: z243.string(),
|
|
7194
|
+
description: z243.string()
|
|
7244
7195
|
});
|
|
7245
7196
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
7246
|
-
type:
|
|
7247
|
-
options:
|
|
7248
|
-
default:
|
|
7197
|
+
type: z243.literal(DTOExporterPropertyType.Enum.Enum),
|
|
7198
|
+
options: z243.record(DTOExporterPropertyDefinitionEnumOption),
|
|
7199
|
+
default: z243.string()
|
|
7249
7200
|
});
|
|
7250
7201
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
7251
|
-
type:
|
|
7252
|
-
default:
|
|
7202
|
+
type: z243.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
7203
|
+
default: z243.boolean()
|
|
7253
7204
|
});
|
|
7254
7205
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
7255
|
-
type:
|
|
7256
|
-
default:
|
|
7257
|
-
isMultiline:
|
|
7206
|
+
type: z243.literal(DTOExporterPropertyType.Enum.String),
|
|
7207
|
+
default: z243.string(),
|
|
7208
|
+
isMultiline: z243.boolean().optional()
|
|
7258
7209
|
});
|
|
7259
7210
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
7260
|
-
type:
|
|
7261
|
-
default:
|
|
7211
|
+
type: z243.literal(DTOExporterPropertyType.Enum.Number),
|
|
7212
|
+
default: z243.number()
|
|
7262
7213
|
});
|
|
7263
7214
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
7264
|
-
type:
|
|
7215
|
+
type: z243.literal(DTOExporterPropertyType.Enum.Array),
|
|
7265
7216
|
default: ArrayValue2
|
|
7266
7217
|
});
|
|
7267
7218
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
7268
|
-
type:
|
|
7219
|
+
type: z243.literal(DTOExporterPropertyType.Enum.Object),
|
|
7269
7220
|
default: ObjectValue2,
|
|
7270
|
-
allowedKeys:
|
|
7271
|
-
options:
|
|
7272
|
-
type:
|
|
7221
|
+
allowedKeys: z243.object({
|
|
7222
|
+
options: z243.string().array(),
|
|
7223
|
+
type: z243.string()
|
|
7273
7224
|
}).optional(),
|
|
7274
|
-
allowedValues:
|
|
7275
|
-
type:
|
|
7225
|
+
allowedValues: z243.object({
|
|
7226
|
+
type: z243.string()
|
|
7276
7227
|
}).optional()
|
|
7277
7228
|
});
|
|
7278
7229
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
7279
|
-
type:
|
|
7280
|
-
language:
|
|
7281
|
-
default:
|
|
7230
|
+
type: z243.literal(DTOExporterPropertyType.Enum.Code),
|
|
7231
|
+
language: z243.string(),
|
|
7232
|
+
default: z243.string()
|
|
7282
7233
|
});
|
|
7283
|
-
var DTOExporterPropertyDefinition =
|
|
7234
|
+
var DTOExporterPropertyDefinition = z243.discriminatedUnion("type", [
|
|
7284
7235
|
DTOExporterPropertyDefinitionEnum,
|
|
7285
7236
|
DTOExporterPropertyDefinitionBoolean,
|
|
7286
7237
|
DTOExporterPropertyDefinitionString,
|
|
@@ -7289,84 +7240,84 @@ var DTOExporterPropertyDefinition = z244.discriminatedUnion("type", [
|
|
|
7289
7240
|
DTOExporterPropertyDefinitionObject,
|
|
7290
7241
|
DTOExporterPropertyDefinitionCode
|
|
7291
7242
|
]);
|
|
7292
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
7243
|
+
var DTOExporterPropertyDefinitionsResponse = z243.object({
|
|
7293
7244
|
properties: DTOExporterPropertyDefinition.array()
|
|
7294
7245
|
});
|
|
7295
|
-
var DTOExporterPropertyValueMap =
|
|
7246
|
+
var DTOExporterPropertyValueMap = z243.record(DTOExporterPropertyValue);
|
|
7296
7247
|
|
|
7297
7248
|
// src/api/payloads/export/pipeline.ts
|
|
7298
|
-
var GitDestinationOptions =
|
|
7299
|
-
branch:
|
|
7300
|
-
commitMessage:
|
|
7301
|
-
commitAuthorName:
|
|
7302
|
-
commitAuthorEmail:
|
|
7303
|
-
pullRequestTitle:
|
|
7304
|
-
pullRequestDescription:
|
|
7305
|
-
relativePath:
|
|
7306
|
-
purgeDirectory:
|
|
7307
|
-
});
|
|
7308
|
-
var DTOPipelineCreateBody =
|
|
7309
|
-
name:
|
|
7310
|
-
exporterId:
|
|
7311
|
-
designSystemId:
|
|
7312
|
-
isEnabled:
|
|
7249
|
+
var GitDestinationOptions = z244.object({
|
|
7250
|
+
branch: z244.string().min(1).nullish(),
|
|
7251
|
+
commitMessage: z244.string().min(1).nullish(),
|
|
7252
|
+
commitAuthorName: z244.string().min(1).nullish(),
|
|
7253
|
+
commitAuthorEmail: z244.string().email().nullish(),
|
|
7254
|
+
pullRequestTitle: z244.string().min(1).nullish(),
|
|
7255
|
+
pullRequestDescription: z244.string().min(1).nullish(),
|
|
7256
|
+
relativePath: z244.string().nullish(),
|
|
7257
|
+
purgeDirectory: z244.boolean().nullish()
|
|
7258
|
+
});
|
|
7259
|
+
var DTOPipelineCreateBody = z244.object({
|
|
7260
|
+
name: z244.string(),
|
|
7261
|
+
exporterId: z244.string(),
|
|
7262
|
+
designSystemId: z244.string(),
|
|
7263
|
+
isEnabled: z244.boolean(),
|
|
7313
7264
|
eventType: PipelineEventType,
|
|
7314
|
-
brandPersistentId:
|
|
7315
|
-
themePersistentId:
|
|
7316
|
-
themePersistentIds:
|
|
7265
|
+
brandPersistentId: z244.string().optional(),
|
|
7266
|
+
themePersistentId: z244.string().optional(),
|
|
7267
|
+
themePersistentIds: z244.string().array().optional(),
|
|
7317
7268
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7318
7269
|
destination: PipelineDestinationType.optional(),
|
|
7319
7270
|
gitQuery: GitObjectsQuery,
|
|
7320
|
-
destinations:
|
|
7271
|
+
destinations: z244.object({
|
|
7321
7272
|
s3: ExporterDestinationS3.nullish(),
|
|
7322
7273
|
azure: ExporterDestinationAzure.nullish(),
|
|
7323
7274
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7324
7275
|
github: ExporterDestinationGithub.nullish(),
|
|
7325
7276
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7326
7277
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7327
|
-
webhookUrl:
|
|
7278
|
+
webhookUrl: z244.string().nullish()
|
|
7328
7279
|
})
|
|
7329
7280
|
});
|
|
7330
|
-
var DTOPipelineUpdateBody =
|
|
7331
|
-
exporterId:
|
|
7332
|
-
name:
|
|
7333
|
-
isEnabled:
|
|
7281
|
+
var DTOPipelineUpdateBody = z244.object({
|
|
7282
|
+
exporterId: z244.string().optional(),
|
|
7283
|
+
name: z244.string().optional(),
|
|
7284
|
+
isEnabled: z244.boolean().optional(),
|
|
7334
7285
|
eventType: PipelineEventType.optional(),
|
|
7335
|
-
brandPersistentId:
|
|
7336
|
-
themePersistentId:
|
|
7337
|
-
themePersistentIds:
|
|
7286
|
+
brandPersistentId: z244.string().optional(),
|
|
7287
|
+
themePersistentId: z244.string().optional(),
|
|
7288
|
+
themePersistentIds: z244.string().array().optional(),
|
|
7338
7289
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7339
7290
|
destination: PipelineDestinationType.optional(),
|
|
7340
7291
|
gitQuery: GitObjectsQuery.optional(),
|
|
7341
|
-
destinations:
|
|
7292
|
+
destinations: z244.object({
|
|
7342
7293
|
s3: ExporterDestinationS3.nullish(),
|
|
7343
7294
|
azure: ExporterDestinationAzure.nullish(),
|
|
7344
7295
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7345
7296
|
github: ExporterDestinationGithub.nullish(),
|
|
7346
7297
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7347
7298
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7348
|
-
webhookUrl:
|
|
7299
|
+
webhookUrl: z244.string().nullish()
|
|
7349
7300
|
}).optional(),
|
|
7350
7301
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
7351
7302
|
});
|
|
7352
|
-
var DTOPipelineTriggerBody =
|
|
7353
|
-
designSystemVersionId:
|
|
7303
|
+
var DTOPipelineTriggerBody = z244.object({
|
|
7304
|
+
designSystemVersionId: z244.string()
|
|
7354
7305
|
});
|
|
7355
7306
|
|
|
7356
7307
|
// src/api/payloads/liveblocks/auth.ts
|
|
7357
|
-
import { z as
|
|
7358
|
-
var DTOLiveblocksAuthRequest =
|
|
7359
|
-
room:
|
|
7308
|
+
import { z as z245 } from "zod";
|
|
7309
|
+
var DTOLiveblocksAuthRequest = z245.object({
|
|
7310
|
+
room: z245.string().optional()
|
|
7360
7311
|
});
|
|
7361
7312
|
|
|
7362
7313
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
7363
|
-
import { z as
|
|
7364
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
7314
|
+
import { z as z246 } from "zod";
|
|
7315
|
+
var DTOUpdateUserNotificationSettingsPayload = z246.object({
|
|
7365
7316
|
notificationSettings: UserNotificationSettings
|
|
7366
7317
|
});
|
|
7367
|
-
var DTOUserNotificationSettingsResponse =
|
|
7368
|
-
userId:
|
|
7369
|
-
workspaceId:
|
|
7318
|
+
var DTOUserNotificationSettingsResponse = z246.object({
|
|
7319
|
+
userId: z246.string(),
|
|
7320
|
+
workspaceId: z246.string(),
|
|
7370
7321
|
notificationSettings: UserNotificationSettings
|
|
7371
7322
|
});
|
|
7372
7323
|
|
|
@@ -7374,13 +7325,13 @@ var DTOUserNotificationSettingsResponse = z247.object({
|
|
|
7374
7325
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
7375
7326
|
|
|
7376
7327
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
7377
|
-
import { z as
|
|
7378
|
-
var DTOTransferOwnershipPayload =
|
|
7379
|
-
newOwnerId:
|
|
7328
|
+
import { z as z247 } from "zod";
|
|
7329
|
+
var DTOTransferOwnershipPayload = z247.object({
|
|
7330
|
+
newOwnerId: z247.string()
|
|
7380
7331
|
});
|
|
7381
7332
|
|
|
7382
7333
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
7383
|
-
import { z as
|
|
7334
|
+
import { z as z248 } from "zod";
|
|
7384
7335
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
7385
7336
|
function validateSsoPayload(ssoPayload) {
|
|
7386
7337
|
const keys = [];
|
|
@@ -7403,21 +7354,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
7403
7354
|
keys
|
|
7404
7355
|
};
|
|
7405
7356
|
}
|
|
7406
|
-
var NpmRegistryInput =
|
|
7407
|
-
enabledScopes:
|
|
7408
|
-
customRegistryUrl:
|
|
7409
|
-
bypassProxy:
|
|
7410
|
-
npmProxyRegistryConfigId:
|
|
7411
|
-
npmProxyVersion:
|
|
7412
|
-
registryType:
|
|
7413
|
-
authType:
|
|
7414
|
-
authHeaderName:
|
|
7415
|
-
authHeaderValue:
|
|
7416
|
-
accessToken:
|
|
7417
|
-
username:
|
|
7418
|
-
password:
|
|
7419
|
-
});
|
|
7420
|
-
var WorkspaceConfigurationPayload =
|
|
7357
|
+
var NpmRegistryInput = z248.object({
|
|
7358
|
+
enabledScopes: z248.array(z248.string()),
|
|
7359
|
+
customRegistryUrl: z248.string().optional(),
|
|
7360
|
+
bypassProxy: z248.boolean().optional(),
|
|
7361
|
+
npmProxyRegistryConfigId: z248.string().optional(),
|
|
7362
|
+
npmProxyVersion: z248.number().optional(),
|
|
7363
|
+
registryType: z248.string(),
|
|
7364
|
+
authType: z248.string(),
|
|
7365
|
+
authHeaderName: z248.string(),
|
|
7366
|
+
authHeaderValue: z248.string(),
|
|
7367
|
+
accessToken: z248.string(),
|
|
7368
|
+
username: z248.string(),
|
|
7369
|
+
password: z248.string()
|
|
7370
|
+
});
|
|
7371
|
+
var WorkspaceConfigurationPayload = z248.object({
|
|
7421
7372
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
7422
7373
|
sso: SsoProvider.partial().optional(),
|
|
7423
7374
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -7425,107 +7376,107 @@ var WorkspaceConfigurationPayload = z249.object({
|
|
|
7425
7376
|
});
|
|
7426
7377
|
|
|
7427
7378
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
7428
|
-
import { z as
|
|
7429
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
7379
|
+
import { z as z249 } from "zod";
|
|
7380
|
+
var DTOWorkspaceIntegrationOauthInput = z249.object({
|
|
7430
7381
|
type: IntegrationType
|
|
7431
7382
|
});
|
|
7432
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
7383
|
+
var DTOWorkspaceIntegrationPATInput = z249.object({
|
|
7433
7384
|
type: IntegrationType,
|
|
7434
7385
|
token: IntegrationToken
|
|
7435
7386
|
});
|
|
7436
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
7437
|
-
organization:
|
|
7387
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z249.object({
|
|
7388
|
+
organization: z249.string().optional(),
|
|
7438
7389
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
7439
|
-
project:
|
|
7390
|
+
project: z249.string().optional(),
|
|
7440
7391
|
// Only for Bitbucket and Azure
|
|
7441
|
-
repository:
|
|
7392
|
+
repository: z249.string().optional(),
|
|
7442
7393
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
7443
|
-
branch:
|
|
7394
|
+
branch: z249.string().optional(),
|
|
7444
7395
|
// For all providers, useful for PR creations.
|
|
7445
|
-
user:
|
|
7396
|
+
user: z249.string().optional()
|
|
7446
7397
|
// Only for Gitlab User Repositories
|
|
7447
7398
|
});
|
|
7448
7399
|
|
|
7449
7400
|
// src/api/dto/design-systems/version.ts
|
|
7450
|
-
var DTODesignSystemVersion =
|
|
7451
|
-
id:
|
|
7452
|
-
createdAt:
|
|
7401
|
+
var DTODesignSystemVersion = z250.object({
|
|
7402
|
+
id: z250.string(),
|
|
7403
|
+
createdAt: z250.coerce.date(),
|
|
7453
7404
|
meta: ObjectMeta,
|
|
7454
|
-
version:
|
|
7455
|
-
isReadonly:
|
|
7456
|
-
changeLog:
|
|
7457
|
-
designSystemId:
|
|
7405
|
+
version: z250.string(),
|
|
7406
|
+
isReadonly: z250.boolean(),
|
|
7407
|
+
changeLog: z250.string(),
|
|
7408
|
+
designSystemId: z250.string()
|
|
7458
7409
|
});
|
|
7459
|
-
var DTODesignSystemVersionsListResponse =
|
|
7460
|
-
designSystemVersions:
|
|
7410
|
+
var DTODesignSystemVersionsListResponse = z250.object({
|
|
7411
|
+
designSystemVersions: z250.array(DTODesignSystemVersion)
|
|
7461
7412
|
});
|
|
7462
|
-
var DTODesignSystemVersionGetResponse =
|
|
7413
|
+
var DTODesignSystemVersionGetResponse = z250.object({
|
|
7463
7414
|
designSystemVersion: DTODesignSystemVersion
|
|
7464
7415
|
});
|
|
7465
|
-
var DTODesignSystemVersionCreationResponse =
|
|
7416
|
+
var DTODesignSystemVersionCreationResponse = z250.object({
|
|
7466
7417
|
meta: ObjectMeta,
|
|
7467
|
-
version:
|
|
7468
|
-
changeLog:
|
|
7469
|
-
isReadOnly:
|
|
7470
|
-
designSystemId:
|
|
7471
|
-
jobId:
|
|
7472
|
-
});
|
|
7473
|
-
var VersionSQSPayload =
|
|
7474
|
-
jobId:
|
|
7475
|
-
designSystemId:
|
|
7418
|
+
version: z250.string(),
|
|
7419
|
+
changeLog: z250.string(),
|
|
7420
|
+
isReadOnly: z250.boolean(),
|
|
7421
|
+
designSystemId: z250.string(),
|
|
7422
|
+
jobId: z250.string()
|
|
7423
|
+
});
|
|
7424
|
+
var VersionSQSPayload = z250.object({
|
|
7425
|
+
jobId: z250.string(),
|
|
7426
|
+
designSystemId: z250.string(),
|
|
7476
7427
|
input: DTOCreateVersionInput
|
|
7477
7428
|
});
|
|
7478
|
-
var DTODesignSystemVersionJobsResponse =
|
|
7479
|
-
jobs:
|
|
7429
|
+
var DTODesignSystemVersionJobsResponse = z250.object({
|
|
7430
|
+
jobs: z250.array(VersionCreationJob)
|
|
7480
7431
|
});
|
|
7481
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
7432
|
+
var DTODesignSystemVersionJobStatusResponse = z250.object({
|
|
7482
7433
|
job: VersionCreationJob
|
|
7483
7434
|
});
|
|
7484
7435
|
|
|
7485
7436
|
// src/api/dto/design-systems/view.ts
|
|
7486
|
-
import { z as
|
|
7487
|
-
var DTOElementViewColumnSharedAttributes =
|
|
7488
|
-
id:
|
|
7489
|
-
persistentId:
|
|
7490
|
-
width:
|
|
7437
|
+
import { z as z251 } from "zod";
|
|
7438
|
+
var DTOElementViewColumnSharedAttributes = z251.object({
|
|
7439
|
+
id: z251.string(),
|
|
7440
|
+
persistentId: z251.string(),
|
|
7441
|
+
width: z251.number()
|
|
7491
7442
|
});
|
|
7492
7443
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7493
|
-
type:
|
|
7444
|
+
type: z251.literal("BaseProperty"),
|
|
7494
7445
|
basePropertyType: ElementViewBaseColumnType
|
|
7495
7446
|
});
|
|
7496
7447
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7497
|
-
type:
|
|
7498
|
-
propertyDefinitionId:
|
|
7448
|
+
type: z251.literal("PropertyDefinition"),
|
|
7449
|
+
propertyDefinitionId: z251.string()
|
|
7499
7450
|
});
|
|
7500
7451
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7501
|
-
type:
|
|
7502
|
-
themeId:
|
|
7452
|
+
type: z251.literal("Theme"),
|
|
7453
|
+
themeId: z251.string()
|
|
7503
7454
|
});
|
|
7504
|
-
var DTOElementViewColumn =
|
|
7455
|
+
var DTOElementViewColumn = z251.discriminatedUnion("type", [
|
|
7505
7456
|
DTOElementViewBasePropertyColumn,
|
|
7506
7457
|
DTOElementViewPropertyDefinitionColumn,
|
|
7507
7458
|
DTOElementViewThemeColumn
|
|
7508
7459
|
]);
|
|
7509
|
-
var DTOElementView =
|
|
7460
|
+
var DTOElementView = z251.object({
|
|
7510
7461
|
meta: ObjectMeta,
|
|
7511
|
-
persistentId:
|
|
7462
|
+
persistentId: z251.string(),
|
|
7512
7463
|
targetElementType: ElementPropertyTargetType,
|
|
7513
|
-
id:
|
|
7514
|
-
isDefault:
|
|
7515
|
-
columns:
|
|
7464
|
+
id: z251.string(),
|
|
7465
|
+
isDefault: z251.boolean(),
|
|
7466
|
+
columns: z251.array(DTOElementViewColumn)
|
|
7516
7467
|
});
|
|
7517
|
-
var DTOElementViewsListResponse =
|
|
7518
|
-
elementDataViews:
|
|
7468
|
+
var DTOElementViewsListResponse = z251.object({
|
|
7469
|
+
elementDataViews: z251.array(DTOElementView)
|
|
7519
7470
|
});
|
|
7520
7471
|
|
|
7521
7472
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
7522
|
-
var DTOAppBootstrapDataQuery =
|
|
7523
|
-
preferredWorkspaceId:
|
|
7524
|
-
preferredDesignSystemId:
|
|
7525
|
-
preferredVersionId:
|
|
7526
|
-
preferredBrandId:
|
|
7473
|
+
var DTOAppBootstrapDataQuery = z252.object({
|
|
7474
|
+
preferredWorkspaceId: z252.string().optional(),
|
|
7475
|
+
preferredDesignSystemId: z252.string().optional(),
|
|
7476
|
+
preferredVersionId: z252.string().optional(),
|
|
7477
|
+
preferredBrandId: z252.string().optional()
|
|
7527
7478
|
});
|
|
7528
|
-
var DTOAppBootstrapDataResponse =
|
|
7479
|
+
var DTOAppBootstrapDataResponse = z252.object({
|
|
7529
7480
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
7530
7481
|
designSystem: DTODesignSystem.optional(),
|
|
7531
7482
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -7533,92 +7484,92 @@ var DTOAppBootstrapDataResponse = z253.object({
|
|
|
7533
7484
|
});
|
|
7534
7485
|
|
|
7535
7486
|
// src/api/dto/collections/token-collection.ts
|
|
7536
|
-
import { z as
|
|
7537
|
-
var DTOTokenCollection =
|
|
7538
|
-
id:
|
|
7539
|
-
persistentId:
|
|
7540
|
-
designSystemVersionId:
|
|
7487
|
+
import { z as z253 } from "zod";
|
|
7488
|
+
var DTOTokenCollection = z253.object({
|
|
7489
|
+
id: z253.string(),
|
|
7490
|
+
persistentId: z253.string(),
|
|
7491
|
+
designSystemVersionId: z253.string(),
|
|
7541
7492
|
meta: ObjectMeta,
|
|
7542
7493
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
7543
|
-
elementPropertyOptionId:
|
|
7544
|
-
createdAt:
|
|
7545
|
-
updatedAt:
|
|
7494
|
+
elementPropertyOptionId: z253.string(),
|
|
7495
|
+
createdAt: z253.coerce.date(),
|
|
7496
|
+
updatedAt: z253.coerce.date(),
|
|
7546
7497
|
origin: CollectionOrigin.optional()
|
|
7547
7498
|
});
|
|
7548
|
-
var DTOTokenCollectionsListReponse =
|
|
7499
|
+
var DTOTokenCollectionsListReponse = z253.object({
|
|
7549
7500
|
collections: DTOTokenCollection.array()
|
|
7550
7501
|
});
|
|
7551
7502
|
|
|
7552
7503
|
// src/api/dto/design-tokens/design-token.ts
|
|
7553
|
-
import { z as
|
|
7504
|
+
import { z as z254 } from "zod";
|
|
7554
7505
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
7555
|
-
|
|
7556
|
-
id:
|
|
7557
|
-
persistentId:
|
|
7558
|
-
designSystemVersionId:
|
|
7506
|
+
z254.object({
|
|
7507
|
+
id: z254.string(),
|
|
7508
|
+
persistentId: z254.string(),
|
|
7509
|
+
designSystemVersionId: z254.string(),
|
|
7559
7510
|
meta: ObjectMeta,
|
|
7560
7511
|
originStyle: DesignTokenOrigin.optional(),
|
|
7561
|
-
brandId:
|
|
7562
|
-
collectionId:
|
|
7563
|
-
updatedAt:
|
|
7512
|
+
brandId: z254.string(),
|
|
7513
|
+
collectionId: z254.string().optional(),
|
|
7514
|
+
updatedAt: z254.coerce.date()
|
|
7564
7515
|
})
|
|
7565
7516
|
);
|
|
7566
|
-
var DTODesignTokenListResponse =
|
|
7517
|
+
var DTODesignTokenListResponse = z254.object({
|
|
7567
7518
|
tokens: DTODesignToken.array()
|
|
7568
7519
|
});
|
|
7569
|
-
var DTODesignTokenResponse =
|
|
7520
|
+
var DTODesignTokenResponse = z254.object({
|
|
7570
7521
|
token: DTODesignToken
|
|
7571
7522
|
});
|
|
7572
|
-
var DTODesignTokenGroup =
|
|
7573
|
-
id:
|
|
7523
|
+
var DTODesignTokenGroup = z254.object({
|
|
7524
|
+
id: z254.string(),
|
|
7574
7525
|
tokenType: DesignTokenType,
|
|
7575
|
-
persistentId:
|
|
7576
|
-
isRoot:
|
|
7577
|
-
brandId:
|
|
7526
|
+
persistentId: z254.string(),
|
|
7527
|
+
isRoot: z254.boolean(),
|
|
7528
|
+
brandId: z254.string(),
|
|
7578
7529
|
meta: ObjectMeta,
|
|
7579
|
-
childrenIds:
|
|
7530
|
+
childrenIds: z254.string().array()
|
|
7580
7531
|
});
|
|
7581
|
-
var DTODesignTokenGroupListResponse =
|
|
7532
|
+
var DTODesignTokenGroupListResponse = z254.object({
|
|
7582
7533
|
groups: DTODesignTokenGroup.array()
|
|
7583
7534
|
});
|
|
7584
|
-
var DTODesignTokenGroupResponse =
|
|
7535
|
+
var DTODesignTokenGroupResponse = z254.object({
|
|
7585
7536
|
group: DTODesignTokenGroup
|
|
7586
7537
|
});
|
|
7587
7538
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
7588
|
-
|
|
7589
|
-
persistentId:
|
|
7539
|
+
z254.object({
|
|
7540
|
+
persistentId: z254.string(),
|
|
7590
7541
|
meta: ObjectMeta,
|
|
7591
|
-
brandId:
|
|
7592
|
-
groupPersistentId:
|
|
7542
|
+
brandId: z254.string(),
|
|
7543
|
+
groupPersistentId: z254.string().optional()
|
|
7593
7544
|
})
|
|
7594
7545
|
);
|
|
7595
|
-
var DTODesignTokenGroupCreatePayload =
|
|
7596
|
-
persistentId:
|
|
7546
|
+
var DTODesignTokenGroupCreatePayload = z254.object({
|
|
7547
|
+
persistentId: z254.string(),
|
|
7597
7548
|
meta: ObjectMeta,
|
|
7598
|
-
brandId:
|
|
7599
|
-
parentId:
|
|
7549
|
+
brandId: z254.string(),
|
|
7550
|
+
parentId: z254.string().optional(),
|
|
7600
7551
|
tokenType: DesignTokenType,
|
|
7601
|
-
childrenIds:
|
|
7552
|
+
childrenIds: z254.string().array()
|
|
7602
7553
|
});
|
|
7603
7554
|
|
|
7604
7555
|
// src/api/dto/documentation/analytics-v2.ts
|
|
7605
|
-
import { z as
|
|
7606
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
7607
|
-
start:
|
|
7608
|
-
end:
|
|
7556
|
+
import { z as z255 } from "zod";
|
|
7557
|
+
var DTODocumentationAnalyticsTimeFrame = z255.object({
|
|
7558
|
+
start: z255.coerce.date(),
|
|
7559
|
+
end: z255.coerce.date().optional()
|
|
7609
7560
|
});
|
|
7610
|
-
var DTOPublishedDocVisitData =
|
|
7611
|
-
timestamp:
|
|
7612
|
-
versionId:
|
|
7613
|
-
locale:
|
|
7614
|
-
visits:
|
|
7615
|
-
sessions:
|
|
7561
|
+
var DTOPublishedDocVisitData = z255.object({
|
|
7562
|
+
timestamp: z255.coerce.date(),
|
|
7563
|
+
versionId: z255.string(),
|
|
7564
|
+
locale: z255.string().optional(),
|
|
7565
|
+
visits: z255.number(),
|
|
7566
|
+
sessions: z255.number()
|
|
7616
7567
|
});
|
|
7617
7568
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
7618
|
-
pagePersistentId:
|
|
7569
|
+
pagePersistentId: z255.string()
|
|
7619
7570
|
});
|
|
7620
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
7621
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7571
|
+
var DTOPublishedDocVisitHeatMapDay = z255.number().array().length(12);
|
|
7572
|
+
var DTOPublishedDocVisitHeatMapWeek = z255.object({
|
|
7622
7573
|
/**
|
|
7623
7574
|
* For which timeframe it was calculated
|
|
7624
7575
|
*/
|
|
@@ -7631,65 +7582,65 @@ var DTOPublishedDocVisitHeatMapWeek = z256.object({
|
|
|
7631
7582
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
7632
7583
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
7633
7584
|
});
|
|
7634
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7585
|
+
var DTOPublishedDocAnalyticsComparisonData = z255.object({
|
|
7635
7586
|
/**
|
|
7636
7587
|
* For which timeframe it was calculated
|
|
7637
7588
|
*/
|
|
7638
7589
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7639
|
-
priorVisitCount:
|
|
7640
|
-
priorSessionCount:
|
|
7641
|
-
currentVisitCount:
|
|
7642
|
-
currentSessionCount:
|
|
7590
|
+
priorVisitCount: z255.number(),
|
|
7591
|
+
priorSessionCount: z255.number(),
|
|
7592
|
+
currentVisitCount: z255.number(),
|
|
7593
|
+
currentSessionCount: z255.number()
|
|
7643
7594
|
});
|
|
7644
7595
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7645
|
-
pagePersistentId:
|
|
7596
|
+
pagePersistentId: z255.string()
|
|
7646
7597
|
});
|
|
7647
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7598
|
+
var DTODocumentationPageAnalyticsResponse = z255.object({
|
|
7648
7599
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7649
7600
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7650
7601
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7651
7602
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7652
7603
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7653
7604
|
});
|
|
7654
|
-
var DTODocumentationAnalyticsRequest =
|
|
7655
|
-
timeFrames:
|
|
7605
|
+
var DTODocumentationAnalyticsRequest = z255.object({
|
|
7606
|
+
timeFrames: z255.array(DTODocumentationAnalyticsTimeFrame)
|
|
7656
7607
|
});
|
|
7657
7608
|
|
|
7658
7609
|
// src/api/dto/documentation/analytics.ts
|
|
7659
|
-
import { z as
|
|
7660
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7661
|
-
startDate:
|
|
7662
|
-
endDate:
|
|
7663
|
-
currentVisitCount:
|
|
7664
|
-
currentSessionCount:
|
|
7665
|
-
priorVisitCount:
|
|
7666
|
-
priorSessionCount:
|
|
7610
|
+
import { z as z256 } from "zod";
|
|
7611
|
+
var DTODocumentationPageAnalyticsDifference = z256.object({
|
|
7612
|
+
startDate: z256.coerce.date(),
|
|
7613
|
+
endDate: z256.coerce.date().optional(),
|
|
7614
|
+
currentVisitCount: z256.number(),
|
|
7615
|
+
currentSessionCount: z256.number(),
|
|
7616
|
+
priorVisitCount: z256.number(),
|
|
7617
|
+
priorSessionCount: z256.number()
|
|
7667
7618
|
});
|
|
7668
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7669
|
-
differences:
|
|
7619
|
+
var DTODocumentationPageIntervalDifferenceResponse = z256.object({
|
|
7620
|
+
differences: z256.array(DTODocumentationPageAnalyticsDifference)
|
|
7670
7621
|
});
|
|
7671
7622
|
|
|
7672
7623
|
// src/api/dto/documentation/anchor.ts
|
|
7673
|
-
import { z as
|
|
7624
|
+
import { z as z257 } from "zod";
|
|
7674
7625
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7675
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7676
|
-
anchors:
|
|
7626
|
+
var DTOGetDocumentationPageAnchorsResponse = z257.object({
|
|
7627
|
+
anchors: z257.array(DTODocumentationPageAnchor)
|
|
7677
7628
|
});
|
|
7678
7629
|
|
|
7679
7630
|
// src/api/dto/documentation/approvals.ts
|
|
7680
|
-
import { z as
|
|
7681
|
-
var DTODocumentationPageApprovalState =
|
|
7631
|
+
import { z as z258 } from "zod";
|
|
7632
|
+
var DTODocumentationPageApprovalState = z258.object({
|
|
7682
7633
|
approvalState: DocumentationPageApprovalState,
|
|
7683
|
-
pagePersistentId:
|
|
7684
|
-
updatedByUserId:
|
|
7685
|
-
designSystemVersionId:
|
|
7686
|
-
updatedAt:
|
|
7687
|
-
createdAt:
|
|
7688
|
-
});
|
|
7689
|
-
var DTODocumentationGroupApprovalState =
|
|
7690
|
-
persistentId:
|
|
7691
|
-
groupPersistentId:
|
|
7692
|
-
designSystemVersionId:
|
|
7634
|
+
pagePersistentId: z258.string(),
|
|
7635
|
+
updatedByUserId: z258.string(),
|
|
7636
|
+
designSystemVersionId: z258.string(),
|
|
7637
|
+
updatedAt: z258.coerce.date(),
|
|
7638
|
+
createdAt: z258.coerce.date()
|
|
7639
|
+
});
|
|
7640
|
+
var DTODocumentationGroupApprovalState = z258.object({
|
|
7641
|
+
persistentId: z258.string(),
|
|
7642
|
+
groupPersistentId: z258.string(),
|
|
7643
|
+
designSystemVersionId: z258.string(),
|
|
7693
7644
|
approvalState: DocumentationPageApprovalState
|
|
7694
7645
|
});
|
|
7695
7646
|
|
|
@@ -7697,68 +7648,68 @@ var DTODocumentationGroupApprovalState = z259.object({
|
|
|
7697
7648
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7698
7649
|
|
|
7699
7650
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7700
|
-
import { z as
|
|
7651
|
+
import { z as z263 } from "zod";
|
|
7701
7652
|
|
|
7702
7653
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7703
|
-
import { z as
|
|
7654
|
+
import { z as z262 } from "zod";
|
|
7704
7655
|
|
|
7705
7656
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7706
|
-
import { z as
|
|
7657
|
+
import { z as z260 } from "zod";
|
|
7707
7658
|
|
|
7708
7659
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7709
|
-
import { z as
|
|
7660
|
+
import { z as z259 } from "zod";
|
|
7710
7661
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7711
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7712
|
-
showSidebar:
|
|
7713
|
-
isPrivate:
|
|
7714
|
-
isHidden:
|
|
7662
|
+
var DTODocumentationItemConfigurationV2 = z259.object({
|
|
7663
|
+
showSidebar: z259.boolean(),
|
|
7664
|
+
isPrivate: z259.boolean(),
|
|
7665
|
+
isHidden: z259.boolean(),
|
|
7715
7666
|
header: DTODocumentationItemHeaderV2
|
|
7716
7667
|
});
|
|
7717
7668
|
|
|
7718
7669
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7719
|
-
var DTODocumentationDraftChangeType =
|
|
7720
|
-
var DTODocumentationDraftStateCreated =
|
|
7721
|
-
changeType:
|
|
7722
|
-
});
|
|
7723
|
-
var DTODocumentationDraftStateUpdated =
|
|
7724
|
-
changeType:
|
|
7725
|
-
changes:
|
|
7726
|
-
previousTitle:
|
|
7670
|
+
var DTODocumentationDraftChangeType = z260.enum(["Created", "Updated", "Deleted"]);
|
|
7671
|
+
var DTODocumentationDraftStateCreated = z260.object({
|
|
7672
|
+
changeType: z260.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7673
|
+
});
|
|
7674
|
+
var DTODocumentationDraftStateUpdated = z260.object({
|
|
7675
|
+
changeType: z260.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7676
|
+
changes: z260.object({
|
|
7677
|
+
previousTitle: z260.string().optional(),
|
|
7727
7678
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7728
|
-
previousContentHash:
|
|
7679
|
+
previousContentHash: z260.string().optional()
|
|
7729
7680
|
})
|
|
7730
7681
|
});
|
|
7731
|
-
var DTODocumentationDraftStateDeleted =
|
|
7732
|
-
changeType:
|
|
7733
|
-
deletedAt:
|
|
7734
|
-
deletedByUserId:
|
|
7682
|
+
var DTODocumentationDraftStateDeleted = z260.object({
|
|
7683
|
+
changeType: z260.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7684
|
+
deletedAt: z260.coerce.date(),
|
|
7685
|
+
deletedByUserId: z260.string()
|
|
7735
7686
|
});
|
|
7736
|
-
var DTODocumentationDraftState =
|
|
7687
|
+
var DTODocumentationDraftState = z260.discriminatedUnion("changeType", [
|
|
7737
7688
|
DTODocumentationDraftStateCreated,
|
|
7738
7689
|
DTODocumentationDraftStateUpdated,
|
|
7739
7690
|
DTODocumentationDraftStateDeleted
|
|
7740
7691
|
]);
|
|
7741
7692
|
|
|
7742
7693
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7743
|
-
import { z as
|
|
7744
|
-
var DTODocumentationPublishMetadata =
|
|
7745
|
-
lastPublishedByUserId:
|
|
7746
|
-
lastPublishedAt:
|
|
7694
|
+
import { z as z261 } from "zod";
|
|
7695
|
+
var DTODocumentationPublishMetadata = z261.object({
|
|
7696
|
+
lastPublishedByUserId: z261.string(),
|
|
7697
|
+
lastPublishedAt: z261.coerce.date()
|
|
7747
7698
|
});
|
|
7748
7699
|
|
|
7749
7700
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7750
|
-
var DTODocumentationPageV2 =
|
|
7751
|
-
id:
|
|
7752
|
-
persistentId:
|
|
7753
|
-
designSystemVersionId:
|
|
7754
|
-
title:
|
|
7701
|
+
var DTODocumentationPageV2 = z262.object({
|
|
7702
|
+
id: z262.string(),
|
|
7703
|
+
persistentId: z262.string(),
|
|
7704
|
+
designSystemVersionId: z262.string(),
|
|
7705
|
+
title: z262.string(),
|
|
7755
7706
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7756
|
-
shortPersistentId:
|
|
7757
|
-
slug:
|
|
7758
|
-
userSlug:
|
|
7759
|
-
createdAt:
|
|
7760
|
-
updatedAt:
|
|
7761
|
-
path:
|
|
7707
|
+
shortPersistentId: z262.string(),
|
|
7708
|
+
slug: z262.string().optional(),
|
|
7709
|
+
userSlug: z262.string().optional(),
|
|
7710
|
+
createdAt: z262.coerce.date(),
|
|
7711
|
+
updatedAt: z262.coerce.date(),
|
|
7712
|
+
path: z262.string(),
|
|
7762
7713
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7763
7714
|
draftState: DTODocumentationDraftState.optional(),
|
|
7764
7715
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7766,267 +7717,267 @@ var DTODocumentationPageV2 = z263.object({
|
|
|
7766
7717
|
/** Defines the approval state of the documentation page */
|
|
7767
7718
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7768
7719
|
/** Id of the page document room */
|
|
7769
|
-
liveblocksRoomId:
|
|
7720
|
+
liveblocksRoomId: z262.string().optional(),
|
|
7770
7721
|
// Backward compatibility
|
|
7771
|
-
type:
|
|
7722
|
+
type: z262.literal("Page")
|
|
7772
7723
|
});
|
|
7773
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7724
|
+
var DTOCreateDocumentationPageInputV2 = z262.object({
|
|
7774
7725
|
// Identifier
|
|
7775
|
-
persistentId:
|
|
7726
|
+
persistentId: z262.string(),
|
|
7776
7727
|
// Page properties
|
|
7777
|
-
title:
|
|
7728
|
+
title: z262.string(),
|
|
7778
7729
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7779
7730
|
// Page placement properties
|
|
7780
|
-
parentPersistentId:
|
|
7781
|
-
afterPersistentId:
|
|
7731
|
+
parentPersistentId: z262.string(),
|
|
7732
|
+
afterPersistentId: z262.string().nullish()
|
|
7782
7733
|
});
|
|
7783
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7734
|
+
var DTOUpdateDocumentationPageInputV2 = z262.object({
|
|
7784
7735
|
// Identifier of the page to update
|
|
7785
|
-
id:
|
|
7736
|
+
id: z262.string(),
|
|
7786
7737
|
// Page properties
|
|
7787
|
-
title:
|
|
7738
|
+
title: z262.string().optional(),
|
|
7788
7739
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7789
7740
|
});
|
|
7790
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7741
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z262.object({
|
|
7791
7742
|
// Identifier of the page to update
|
|
7792
|
-
id:
|
|
7743
|
+
id: z262.string(),
|
|
7793
7744
|
// Page properties
|
|
7794
|
-
documentItems:
|
|
7745
|
+
documentItems: z262.array(DocumentationPageContentItem)
|
|
7795
7746
|
});
|
|
7796
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7747
|
+
var DTOMoveDocumentationPageInputV2 = z262.object({
|
|
7797
7748
|
// Identifier of the group to update
|
|
7798
|
-
id:
|
|
7749
|
+
id: z262.string(),
|
|
7799
7750
|
// Page placement properties
|
|
7800
|
-
parentPersistentId:
|
|
7801
|
-
afterPersistentId:
|
|
7751
|
+
parentPersistentId: z262.string(),
|
|
7752
|
+
afterPersistentId: z262.string().nullish()
|
|
7802
7753
|
});
|
|
7803
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7754
|
+
var DTODuplicateDocumentationPageInputV2 = z262.object({
|
|
7804
7755
|
// Identifier of the page to duplicate from
|
|
7805
|
-
id:
|
|
7756
|
+
id: z262.string(),
|
|
7806
7757
|
// New page persistent id
|
|
7807
|
-
persistentId:
|
|
7758
|
+
persistentId: z262.string(),
|
|
7808
7759
|
// Page placement properties
|
|
7809
|
-
parentPersistentId:
|
|
7810
|
-
afterPersistentId:
|
|
7760
|
+
parentPersistentId: z262.string(),
|
|
7761
|
+
afterPersistentId: z262.string().nullish()
|
|
7811
7762
|
});
|
|
7812
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7763
|
+
var DTODeleteDocumentationPageInputV2 = z262.object({
|
|
7813
7764
|
// Identifier
|
|
7814
|
-
id:
|
|
7765
|
+
id: z262.string()
|
|
7815
7766
|
});
|
|
7816
|
-
var DTORestoreDocumentationPageInput =
|
|
7817
|
-
persistentId:
|
|
7818
|
-
snapshotId:
|
|
7767
|
+
var DTORestoreDocumentationPageInput = z262.object({
|
|
7768
|
+
persistentId: z262.string(),
|
|
7769
|
+
snapshotId: z262.string().optional()
|
|
7819
7770
|
});
|
|
7820
|
-
var DTORestoreDocumentationGroupInput =
|
|
7821
|
-
persistentId:
|
|
7822
|
-
snapshotId:
|
|
7771
|
+
var DTORestoreDocumentationGroupInput = z262.object({
|
|
7772
|
+
persistentId: z262.string(),
|
|
7773
|
+
snapshotId: z262.string().optional()
|
|
7823
7774
|
});
|
|
7824
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7825
|
-
persistentId:
|
|
7775
|
+
var DTODocumentationPageApprovalStateChangeInput = z262.object({
|
|
7776
|
+
persistentId: z262.string(),
|
|
7826
7777
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7827
7778
|
});
|
|
7828
7779
|
|
|
7829
7780
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7830
|
-
var DTODocumentationPageSnapshot =
|
|
7831
|
-
id:
|
|
7832
|
-
designSystemVersionId:
|
|
7833
|
-
createdAt:
|
|
7834
|
-
updatedAt:
|
|
7781
|
+
var DTODocumentationPageSnapshot = z263.object({
|
|
7782
|
+
id: z263.string(),
|
|
7783
|
+
designSystemVersionId: z263.string(),
|
|
7784
|
+
createdAt: z263.string(),
|
|
7785
|
+
updatedAt: z263.string(),
|
|
7835
7786
|
documentationPage: DTODocumentationPageV2,
|
|
7836
|
-
pageContentHash:
|
|
7787
|
+
pageContentHash: z263.string(),
|
|
7837
7788
|
reason: DesignElementSnapshotReason
|
|
7838
7789
|
});
|
|
7839
7790
|
|
|
7840
7791
|
// src/api/dto/documentation/link-preview.ts
|
|
7841
|
-
import { z as
|
|
7842
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7792
|
+
import { z as z264 } from "zod";
|
|
7793
|
+
var DTODocumentationLinkPreviewResponse = z264.object({
|
|
7843
7794
|
linkPreview: DocumentationLinkPreview
|
|
7844
7795
|
});
|
|
7845
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7846
|
-
url:
|
|
7847
|
-
documentationItemPersistentId:
|
|
7796
|
+
var DTODocumentationLinkPreviewRequest = z264.object({
|
|
7797
|
+
url: z264.string().optional(),
|
|
7798
|
+
documentationItemPersistentId: z264.string().optional()
|
|
7848
7799
|
});
|
|
7849
7800
|
|
|
7850
7801
|
// src/api/dto/documentation/publish.ts
|
|
7851
|
-
import { z as
|
|
7802
|
+
import { z as z268 } from "zod";
|
|
7852
7803
|
|
|
7853
7804
|
// src/api/dto/export/exporter.ts
|
|
7854
|
-
import { z as
|
|
7855
|
-
var DTOExporterType =
|
|
7856
|
-
var DTOExporterSource =
|
|
7857
|
-
var DTOExporterMembershipRole =
|
|
7858
|
-
var DTOExporterListQuery =
|
|
7859
|
-
limit:
|
|
7860
|
-
offset:
|
|
7805
|
+
import { z as z265 } from "zod";
|
|
7806
|
+
var DTOExporterType = z265.enum(["documentation", "code"]);
|
|
7807
|
+
var DTOExporterSource = z265.enum(["git", "upload"]);
|
|
7808
|
+
var DTOExporterMembershipRole = z265.enum(["Owner", "OwnerArchived", "User"]);
|
|
7809
|
+
var DTOExporterListQuery = z265.object({
|
|
7810
|
+
limit: z265.coerce.number().optional(),
|
|
7811
|
+
offset: z265.coerce.number().optional(),
|
|
7861
7812
|
type: DTOExporterType.optional(),
|
|
7862
|
-
search:
|
|
7813
|
+
search: z265.string().optional()
|
|
7863
7814
|
});
|
|
7864
|
-
var DTOExporter =
|
|
7865
|
-
id:
|
|
7866
|
-
name:
|
|
7867
|
-
isPrivate:
|
|
7815
|
+
var DTOExporter = z265.object({
|
|
7816
|
+
id: z265.string(),
|
|
7817
|
+
name: z265.string(),
|
|
7818
|
+
isPrivate: z265.boolean(),
|
|
7868
7819
|
exporterType: DTOExporterType,
|
|
7869
|
-
isDefaultDocumentationExporter:
|
|
7870
|
-
iconURL:
|
|
7820
|
+
isDefaultDocumentationExporter: z265.boolean(),
|
|
7821
|
+
iconURL: z265.string().optional(),
|
|
7871
7822
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7872
7823
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7873
7824
|
customBlocks: PulsarCustomBlock.array(),
|
|
7874
|
-
blockVariants:
|
|
7875
|
-
homepage:
|
|
7876
|
-
organization:
|
|
7877
|
-
packageId:
|
|
7878
|
-
tags:
|
|
7879
|
-
author:
|
|
7880
|
-
version:
|
|
7881
|
-
description:
|
|
7882
|
-
usesLocale:
|
|
7883
|
-
usesBrands:
|
|
7884
|
-
usesThemes:
|
|
7885
|
-
readme:
|
|
7886
|
-
routingVersion:
|
|
7825
|
+
blockVariants: z265.record(z265.string(), PulsarContributionVariant.array()),
|
|
7826
|
+
homepage: z265.string().optional(),
|
|
7827
|
+
organization: z265.string().optional(),
|
|
7828
|
+
packageId: z265.string().optional(),
|
|
7829
|
+
tags: z265.array(z265.string()),
|
|
7830
|
+
author: z265.string().optional(),
|
|
7831
|
+
version: z265.string(),
|
|
7832
|
+
description: z265.string(),
|
|
7833
|
+
usesLocale: z265.boolean(),
|
|
7834
|
+
usesBrands: z265.boolean(),
|
|
7835
|
+
usesThemes: z265.boolean(),
|
|
7836
|
+
readme: z265.string().optional(),
|
|
7837
|
+
routingVersion: z265.string().optional(),
|
|
7887
7838
|
source: DTOExporterSource,
|
|
7888
|
-
gitProvider:
|
|
7889
|
-
gitUrl: nullishToOptional(
|
|
7890
|
-
gitBranch: nullishToOptional(
|
|
7891
|
-
gitDirectory: nullishToOptional(
|
|
7892
|
-
isDeprecated:
|
|
7893
|
-
deprecationNote:
|
|
7894
|
-
replacementExporterId:
|
|
7895
|
-
});
|
|
7896
|
-
var DTOExporterMembership =
|
|
7897
|
-
workspaceId:
|
|
7898
|
-
exporterId:
|
|
7839
|
+
gitProvider: z265.string().optional(),
|
|
7840
|
+
gitUrl: nullishToOptional(z265.string()),
|
|
7841
|
+
gitBranch: nullishToOptional(z265.string()),
|
|
7842
|
+
gitDirectory: nullishToOptional(z265.string()),
|
|
7843
|
+
isDeprecated: z265.boolean(),
|
|
7844
|
+
deprecationNote: z265.string().optional(),
|
|
7845
|
+
replacementExporterId: z265.string().optional()
|
|
7846
|
+
});
|
|
7847
|
+
var DTOExporterMembership = z265.object({
|
|
7848
|
+
workspaceId: z265.string(),
|
|
7849
|
+
exporterId: z265.string(),
|
|
7899
7850
|
role: DTOExporterMembershipRole
|
|
7900
7851
|
});
|
|
7901
|
-
var DTOExporterResponse =
|
|
7852
|
+
var DTOExporterResponse = z265.object({
|
|
7902
7853
|
exporter: DTOExporter,
|
|
7903
7854
|
membership: DTOExporterMembership
|
|
7904
7855
|
});
|
|
7905
|
-
var DTOExporterListResponse =
|
|
7856
|
+
var DTOExporterListResponse = z265.object({
|
|
7906
7857
|
exporters: DTOExporter.array(),
|
|
7907
7858
|
membership: DTOExporterMembership.array(),
|
|
7908
|
-
total:
|
|
7859
|
+
total: z265.number()
|
|
7909
7860
|
});
|
|
7910
|
-
var DTOExporterGitProviderEnum =
|
|
7911
|
-
var DTOExporterCreateInput =
|
|
7912
|
-
url:
|
|
7861
|
+
var DTOExporterGitProviderEnum = z265.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7862
|
+
var DTOExporterCreateInput = z265.object({
|
|
7863
|
+
url: z265.string(),
|
|
7913
7864
|
provider: DTOExporterGitProviderEnum
|
|
7914
7865
|
});
|
|
7915
|
-
var DTOExporterUpdateInput =
|
|
7916
|
-
url:
|
|
7866
|
+
var DTOExporterUpdateInput = z265.object({
|
|
7867
|
+
url: z265.string().optional()
|
|
7917
7868
|
});
|
|
7918
|
-
var DTOExporterDeprecationInput =
|
|
7919
|
-
isDeprecated:
|
|
7920
|
-
deprecationNote:
|
|
7921
|
-
replacementExporterId:
|
|
7869
|
+
var DTOExporterDeprecationInput = z265.object({
|
|
7870
|
+
isDeprecated: z265.boolean(),
|
|
7871
|
+
deprecationNote: z265.string().optional(),
|
|
7872
|
+
replacementExporterId: z265.string().optional()
|
|
7922
7873
|
});
|
|
7923
7874
|
|
|
7924
7875
|
// src/api/dto/export/filter.ts
|
|
7925
7876
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7926
7877
|
|
|
7927
7878
|
// src/api/dto/export/job.ts
|
|
7928
|
-
import { z as
|
|
7929
|
-
var DTOExportJobCreatedBy =
|
|
7930
|
-
userId:
|
|
7931
|
-
userName:
|
|
7879
|
+
import { z as z266 } from "zod";
|
|
7880
|
+
var DTOExportJobCreatedBy = z266.object({
|
|
7881
|
+
userId: z266.string(),
|
|
7882
|
+
userName: z266.string()
|
|
7932
7883
|
});
|
|
7933
|
-
var DTOExportJobDesignSystemPreview =
|
|
7934
|
-
id:
|
|
7884
|
+
var DTOExportJobDesignSystemPreview = z266.object({
|
|
7885
|
+
id: z266.string(),
|
|
7935
7886
|
meta: ObjectMeta
|
|
7936
7887
|
});
|
|
7937
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7938
|
-
id:
|
|
7888
|
+
var DTOExportJobDesignSystemVersionPreview = z266.object({
|
|
7889
|
+
id: z266.string(),
|
|
7939
7890
|
meta: ObjectMeta,
|
|
7940
|
-
version:
|
|
7941
|
-
isReadonly:
|
|
7891
|
+
version: z266.string(),
|
|
7892
|
+
isReadonly: z266.boolean()
|
|
7942
7893
|
});
|
|
7943
|
-
var DTOExportJobDestinations =
|
|
7894
|
+
var DTOExportJobDestinations = z266.object({
|
|
7944
7895
|
s3: ExporterDestinationS3.optional(),
|
|
7945
7896
|
azure: ExporterDestinationAzure.optional(),
|
|
7946
7897
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7947
7898
|
github: ExporterDestinationGithub.optional(),
|
|
7948
7899
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7949
7900
|
documentation: ExporterDestinationDocs.optional(),
|
|
7950
|
-
webhookUrl:
|
|
7901
|
+
webhookUrl: z266.string().optional()
|
|
7951
7902
|
});
|
|
7952
7903
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7953
7904
|
sndocs: true
|
|
7954
7905
|
}).extend({
|
|
7955
7906
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7956
7907
|
});
|
|
7957
|
-
var DTOExportJob =
|
|
7958
|
-
id:
|
|
7959
|
-
createdAt:
|
|
7960
|
-
finishedAt:
|
|
7961
|
-
index:
|
|
7908
|
+
var DTOExportJob = z266.object({
|
|
7909
|
+
id: z266.string(),
|
|
7910
|
+
createdAt: z266.coerce.date(),
|
|
7911
|
+
finishedAt: z266.coerce.date().optional(),
|
|
7912
|
+
index: z266.number().optional(),
|
|
7962
7913
|
status: ExportJobStatus,
|
|
7963
|
-
estimatedExecutionTime:
|
|
7914
|
+
estimatedExecutionTime: z266.number().optional(),
|
|
7964
7915
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7965
7916
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7966
7917
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7967
7918
|
destinations: DTOExportJobDestinations,
|
|
7968
|
-
exporterId:
|
|
7969
|
-
scheduleId:
|
|
7919
|
+
exporterId: z266.string(),
|
|
7920
|
+
scheduleId: z266.string().optional(),
|
|
7970
7921
|
result: DTOExportJobResult.optional(),
|
|
7971
|
-
brandPersistentId:
|
|
7972
|
-
themePersistentId:
|
|
7973
|
-
themePersistentIds:
|
|
7922
|
+
brandPersistentId: z266.string().optional(),
|
|
7923
|
+
themePersistentId: z266.string().optional(),
|
|
7924
|
+
themePersistentIds: z266.string().array().optional(),
|
|
7974
7925
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7975
7926
|
});
|
|
7976
|
-
var DTOExportJobResponse =
|
|
7927
|
+
var DTOExportJobResponse = z266.object({
|
|
7977
7928
|
job: DTOExportJob
|
|
7978
7929
|
});
|
|
7979
|
-
var DTOExportJobResponseLegacy =
|
|
7980
|
-
job:
|
|
7981
|
-
id:
|
|
7930
|
+
var DTOExportJobResponseLegacy = z266.object({
|
|
7931
|
+
job: z266.object({
|
|
7932
|
+
id: z266.string(),
|
|
7982
7933
|
status: ExportJobStatus
|
|
7983
7934
|
})
|
|
7984
7935
|
});
|
|
7985
|
-
var DTOExportJobCreateInput =
|
|
7986
|
-
designSystemId:
|
|
7987
|
-
designSystemVersionId:
|
|
7988
|
-
exporterId:
|
|
7989
|
-
brandId:
|
|
7990
|
-
themeId:
|
|
7991
|
-
themePersistentIds:
|
|
7936
|
+
var DTOExportJobCreateInput = z266.object({
|
|
7937
|
+
designSystemId: z266.string(),
|
|
7938
|
+
designSystemVersionId: z266.string(),
|
|
7939
|
+
exporterId: z266.string(),
|
|
7940
|
+
brandId: z266.string().optional(),
|
|
7941
|
+
themeId: z266.string().optional(),
|
|
7942
|
+
themePersistentIds: z266.string().array().optional(),
|
|
7992
7943
|
destinations: DTOExportJobDestinations,
|
|
7993
7944
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7994
|
-
previewMode:
|
|
7945
|
+
previewMode: z266.boolean().optional()
|
|
7995
7946
|
});
|
|
7996
7947
|
|
|
7997
7948
|
// src/api/dto/export/pipeline.ts
|
|
7998
|
-
import { z as
|
|
7999
|
-
var DTOPipelineListQuery =
|
|
8000
|
-
designSystemId:
|
|
8001
|
-
exporterId:
|
|
8002
|
-
latestJobsLimit:
|
|
8003
|
-
});
|
|
8004
|
-
var DTOPipeline =
|
|
8005
|
-
id:
|
|
8006
|
-
name:
|
|
7949
|
+
import { z as z267 } from "zod";
|
|
7950
|
+
var DTOPipelineListQuery = z267.object({
|
|
7951
|
+
designSystemId: z267.string().optional(),
|
|
7952
|
+
exporterId: z267.string().optional(),
|
|
7953
|
+
latestJobsLimit: z267.coerce.number().optional()
|
|
7954
|
+
});
|
|
7955
|
+
var DTOPipeline = z267.object({
|
|
7956
|
+
id: z267.string(),
|
|
7957
|
+
name: z267.string(),
|
|
8007
7958
|
eventType: PipelineEventType,
|
|
8008
|
-
isEnabled:
|
|
8009
|
-
workspaceId:
|
|
8010
|
-
designSystemId:
|
|
8011
|
-
exporterId:
|
|
8012
|
-
brandPersistentId:
|
|
8013
|
-
themePersistentId:
|
|
8014
|
-
themePersistentIds:
|
|
7959
|
+
isEnabled: z267.boolean(),
|
|
7960
|
+
workspaceId: z267.string(),
|
|
7961
|
+
designSystemId: z267.string(),
|
|
7962
|
+
exporterId: z267.string(),
|
|
7963
|
+
brandPersistentId: z267.string().optional(),
|
|
7964
|
+
themePersistentId: z267.string().optional(),
|
|
7965
|
+
themePersistentIds: z267.string().array().optional(),
|
|
8015
7966
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8016
7967
|
...ExportDestinationsMap.shape,
|
|
8017
7968
|
latestJobs: DTOExportJob.array(),
|
|
8018
|
-
isExporterDeprecated:
|
|
7969
|
+
isExporterDeprecated: z267.boolean()
|
|
8019
7970
|
});
|
|
8020
|
-
var DTOPipelineListResponse =
|
|
7971
|
+
var DTOPipelineListResponse = z267.object({
|
|
8021
7972
|
pipelines: DTOPipeline.array()
|
|
8022
7973
|
});
|
|
8023
|
-
var DTOPipelineResponse =
|
|
7974
|
+
var DTOPipelineResponse = z267.object({
|
|
8024
7975
|
pipeline: DTOPipeline
|
|
8025
7976
|
});
|
|
8026
7977
|
|
|
8027
7978
|
// src/api/dto/documentation/publish.ts
|
|
8028
7979
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
8029
|
-
var DTOPublishDocumentationRequest =
|
|
7980
|
+
var DTOPublishDocumentationRequest = z268.object({
|
|
8030
7981
|
environment: PublishedDocEnvironment,
|
|
8031
7982
|
/**
|
|
8032
7983
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -8034,66 +7985,66 @@ var DTOPublishDocumentationRequest = z269.object({
|
|
|
8034
7985
|
*/
|
|
8035
7986
|
changes: DTOPublishDocumentationChanges.optional()
|
|
8036
7987
|
});
|
|
8037
|
-
var DTOPublishDocumentationResponse =
|
|
7988
|
+
var DTOPublishDocumentationResponse = z268.object({
|
|
8038
7989
|
job: DTOExportJob
|
|
8039
7990
|
});
|
|
8040
7991
|
|
|
8041
7992
|
// src/api/dto/documentation/room.ts
|
|
8042
|
-
import { z as
|
|
8043
|
-
var DTODocumentationPageRoom =
|
|
8044
|
-
id:
|
|
7993
|
+
import { z as z269 } from "zod";
|
|
7994
|
+
var DTODocumentationPageRoom = z269.object({
|
|
7995
|
+
id: z269.string()
|
|
8045
7996
|
});
|
|
8046
|
-
var DTODocumentationPageRoomResponse =
|
|
7997
|
+
var DTODocumentationPageRoomResponse = z269.object({
|
|
8047
7998
|
room: DTODocumentationPageRoom
|
|
8048
7999
|
});
|
|
8049
8000
|
|
|
8050
8001
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
8051
|
-
import
|
|
8052
|
-
var DTOFigmaComponentGroup =
|
|
8053
|
-
id:
|
|
8054
|
-
designSystemVersionId:
|
|
8055
|
-
persistentId:
|
|
8056
|
-
isRoot:
|
|
8057
|
-
brandId:
|
|
8002
|
+
import z270 from "zod";
|
|
8003
|
+
var DTOFigmaComponentGroup = z270.object({
|
|
8004
|
+
id: z270.string(),
|
|
8005
|
+
designSystemVersionId: z270.string(),
|
|
8006
|
+
persistentId: z270.string(),
|
|
8007
|
+
isRoot: z270.boolean(),
|
|
8008
|
+
brandId: z270.string(),
|
|
8058
8009
|
meta: DTOObjectMeta,
|
|
8059
|
-
childrenIds:
|
|
8010
|
+
childrenIds: z270.string().array()
|
|
8060
8011
|
});
|
|
8061
|
-
var DTOFigmaComponentGroupListResponse =
|
|
8012
|
+
var DTOFigmaComponentGroupListResponse = z270.object({
|
|
8062
8013
|
groups: DTOFigmaComponentGroup.array()
|
|
8063
8014
|
});
|
|
8064
8015
|
|
|
8065
8016
|
// src/api/dto/elements/components/figma-component.ts
|
|
8066
|
-
import { z as
|
|
8017
|
+
import { z as z271 } from "zod";
|
|
8067
8018
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
8068
|
-
var DTOFigmaComponentPropertyMap =
|
|
8069
|
-
var DTOFigmaComponent =
|
|
8070
|
-
id:
|
|
8071
|
-
persistentId:
|
|
8072
|
-
designSystemVersionId:
|
|
8073
|
-
brandId:
|
|
8074
|
-
thumbnailUrl:
|
|
8075
|
-
svgUrl:
|
|
8076
|
-
exportProperties:
|
|
8077
|
-
isAsset:
|
|
8019
|
+
var DTOFigmaComponentPropertyMap = z271.record(DTOFigmaComponentProperty);
|
|
8020
|
+
var DTOFigmaComponent = z271.object({
|
|
8021
|
+
id: z271.string(),
|
|
8022
|
+
persistentId: z271.string(),
|
|
8023
|
+
designSystemVersionId: z271.string(),
|
|
8024
|
+
brandId: z271.string(),
|
|
8025
|
+
thumbnailUrl: z271.string().optional(),
|
|
8026
|
+
svgUrl: z271.string().optional(),
|
|
8027
|
+
exportProperties: z271.object({
|
|
8028
|
+
isAsset: z271.boolean()
|
|
8078
8029
|
}),
|
|
8079
|
-
createdAt:
|
|
8080
|
-
updatedAt:
|
|
8030
|
+
createdAt: z271.coerce.date(),
|
|
8031
|
+
updatedAt: z271.coerce.date(),
|
|
8081
8032
|
meta: ObjectMeta,
|
|
8082
8033
|
originComponent: FigmaComponentOrigin.optional(),
|
|
8083
|
-
parentComponentPersistentId:
|
|
8084
|
-
childrenPersistentIds:
|
|
8034
|
+
parentComponentPersistentId: z271.string().optional(),
|
|
8035
|
+
childrenPersistentIds: z271.string().array().optional(),
|
|
8085
8036
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
8086
|
-
variantPropertyValues:
|
|
8037
|
+
variantPropertyValues: z271.record(z271.string()).optional()
|
|
8087
8038
|
});
|
|
8088
|
-
var DTOFigmaComponentListResponse =
|
|
8039
|
+
var DTOFigmaComponentListResponse = z271.object({
|
|
8089
8040
|
components: DTOFigmaComponent.array()
|
|
8090
8041
|
});
|
|
8091
8042
|
|
|
8092
8043
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8093
|
-
import { z as
|
|
8044
|
+
import { z as z273 } from "zod";
|
|
8094
8045
|
|
|
8095
8046
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
8096
|
-
import { z as
|
|
8047
|
+
import { z as z272 } from "zod";
|
|
8097
8048
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
8098
8049
|
sortOrder: true,
|
|
8099
8050
|
parentPersistentId: true,
|
|
@@ -8103,13 +8054,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8103
8054
|
data: true,
|
|
8104
8055
|
shortPersistentId: true
|
|
8105
8056
|
}).extend({
|
|
8106
|
-
title:
|
|
8107
|
-
isRoot:
|
|
8108
|
-
childrenIds:
|
|
8057
|
+
title: z272.string(),
|
|
8058
|
+
isRoot: z272.boolean(),
|
|
8059
|
+
childrenIds: z272.array(z272.string()),
|
|
8109
8060
|
groupBehavior: DocumentationGroupBehavior,
|
|
8110
|
-
shortPersistentId:
|
|
8061
|
+
shortPersistentId: z272.string(),
|
|
8111
8062
|
configuration: DTODocumentationItemConfigurationV2,
|
|
8112
|
-
type:
|
|
8063
|
+
type: z272.literal("Group"),
|
|
8113
8064
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
8114
8065
|
draftState: DTODocumentationDraftState.optional(),
|
|
8115
8066
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -8117,127 +8068,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8117
8068
|
//** An approval state for frontend to utilize. */
|
|
8118
8069
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
8119
8070
|
});
|
|
8120
|
-
var DTOCreateDocumentationGroupInput =
|
|
8071
|
+
var DTOCreateDocumentationGroupInput = z272.object({
|
|
8121
8072
|
// Identifier
|
|
8122
|
-
persistentId:
|
|
8073
|
+
persistentId: z272.string(),
|
|
8123
8074
|
// Group properties
|
|
8124
|
-
title:
|
|
8075
|
+
title: z272.string(),
|
|
8125
8076
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
8126
8077
|
// Group placement properties
|
|
8127
|
-
afterPersistentId:
|
|
8128
|
-
parentPersistentId:
|
|
8078
|
+
afterPersistentId: z272.string().nullish(),
|
|
8079
|
+
parentPersistentId: z272.string()
|
|
8129
8080
|
});
|
|
8130
|
-
var DTOUpdateDocumentationGroupInput =
|
|
8081
|
+
var DTOUpdateDocumentationGroupInput = z272.object({
|
|
8131
8082
|
// Identifier of the group to update
|
|
8132
|
-
id:
|
|
8083
|
+
id: z272.string(),
|
|
8133
8084
|
// Group properties
|
|
8134
|
-
title:
|
|
8085
|
+
title: z272.string().optional(),
|
|
8135
8086
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
8136
8087
|
});
|
|
8137
|
-
var DTOMoveDocumentationGroupInput =
|
|
8088
|
+
var DTOMoveDocumentationGroupInput = z272.object({
|
|
8138
8089
|
// Identifier of the group to update
|
|
8139
|
-
id:
|
|
8090
|
+
id: z272.string(),
|
|
8140
8091
|
// Group placement properties
|
|
8141
|
-
parentPersistentId:
|
|
8142
|
-
afterPersistentId:
|
|
8092
|
+
parentPersistentId: z272.string(),
|
|
8093
|
+
afterPersistentId: z272.string().nullish()
|
|
8143
8094
|
});
|
|
8144
|
-
var DTODuplicateDocumentationGroupInput =
|
|
8095
|
+
var DTODuplicateDocumentationGroupInput = z272.object({
|
|
8145
8096
|
// Identifier of the group to duplicate from
|
|
8146
|
-
id:
|
|
8097
|
+
id: z272.string(),
|
|
8147
8098
|
// New group persistent id
|
|
8148
|
-
persistentId:
|
|
8099
|
+
persistentId: z272.string(),
|
|
8149
8100
|
// Group placement properties
|
|
8150
|
-
afterPersistentId:
|
|
8151
|
-
parentPersistentId:
|
|
8101
|
+
afterPersistentId: z272.string().nullish(),
|
|
8102
|
+
parentPersistentId: z272.string()
|
|
8152
8103
|
});
|
|
8153
|
-
var DTOCreateDocumentationTabInput =
|
|
8104
|
+
var DTOCreateDocumentationTabInput = z272.object({
|
|
8154
8105
|
// New group persistent id
|
|
8155
|
-
persistentId:
|
|
8106
|
+
persistentId: z272.string(),
|
|
8156
8107
|
// If this is page, we will attempt to convert it to tab
|
|
8157
8108
|
// If this is tab group, we will add a new tab to it
|
|
8158
|
-
fromItemPersistentId:
|
|
8159
|
-
tabName:
|
|
8109
|
+
fromItemPersistentId: z272.string(),
|
|
8110
|
+
tabName: z272.string()
|
|
8160
8111
|
});
|
|
8161
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
8112
|
+
var DTODeleteDocumentationTabGroupInput = z272.object({
|
|
8162
8113
|
// Deleted group id
|
|
8163
|
-
id:
|
|
8114
|
+
id: z272.string()
|
|
8164
8115
|
});
|
|
8165
|
-
var DTODeleteDocumentationGroupInput =
|
|
8116
|
+
var DTODeleteDocumentationGroupInput = z272.object({
|
|
8166
8117
|
// Identifier
|
|
8167
|
-
id:
|
|
8118
|
+
id: z272.string(),
|
|
8168
8119
|
// Deletion options
|
|
8169
|
-
deleteSubtree:
|
|
8120
|
+
deleteSubtree: z272.boolean().default(false)
|
|
8170
8121
|
});
|
|
8171
8122
|
|
|
8172
8123
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8173
|
-
var SuccessPayload =
|
|
8174
|
-
success:
|
|
8124
|
+
var SuccessPayload = z273.object({
|
|
8125
|
+
success: z273.literal(true)
|
|
8175
8126
|
});
|
|
8176
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
8177
|
-
type:
|
|
8127
|
+
var DTODocumentationGroupCreateActionOutputV2 = z273.object({
|
|
8128
|
+
type: z273.literal("DocumentationGroupCreate"),
|
|
8178
8129
|
output: SuccessPayload
|
|
8179
8130
|
});
|
|
8180
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
8181
|
-
type:
|
|
8131
|
+
var DTODocumentationTabCreateActionOutputV2 = z273.object({
|
|
8132
|
+
type: z273.literal("DocumentationTabCreate"),
|
|
8182
8133
|
output: SuccessPayload
|
|
8183
8134
|
});
|
|
8184
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
8185
|
-
type:
|
|
8135
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z273.object({
|
|
8136
|
+
type: z273.literal("DocumentationGroupUpdate"),
|
|
8186
8137
|
output: SuccessPayload
|
|
8187
8138
|
});
|
|
8188
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
8189
|
-
type:
|
|
8139
|
+
var DTODocumentationGroupMoveActionOutputV2 = z273.object({
|
|
8140
|
+
type: z273.literal("DocumentationGroupMove"),
|
|
8190
8141
|
output: SuccessPayload
|
|
8191
8142
|
});
|
|
8192
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
8193
|
-
type:
|
|
8143
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z273.object({
|
|
8144
|
+
type: z273.literal("DocumentationGroupDuplicate"),
|
|
8194
8145
|
output: SuccessPayload
|
|
8195
8146
|
});
|
|
8196
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
8197
|
-
type:
|
|
8147
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z273.object({
|
|
8148
|
+
type: z273.literal("DocumentationGroupDelete"),
|
|
8198
8149
|
output: SuccessPayload
|
|
8199
8150
|
});
|
|
8200
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
8201
|
-
type:
|
|
8151
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z273.object({
|
|
8152
|
+
type: z273.literal("DocumentationTabGroupDelete"),
|
|
8202
8153
|
output: SuccessPayload
|
|
8203
8154
|
});
|
|
8204
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
8205
|
-
type:
|
|
8155
|
+
var DTODocumentationGroupCreateActionInputV2 = z273.object({
|
|
8156
|
+
type: z273.literal("DocumentationGroupCreate"),
|
|
8206
8157
|
input: DTOCreateDocumentationGroupInput
|
|
8207
8158
|
});
|
|
8208
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
8209
|
-
type:
|
|
8159
|
+
var DTODocumentationTabCreateActionInputV2 = z273.object({
|
|
8160
|
+
type: z273.literal("DocumentationTabCreate"),
|
|
8210
8161
|
input: DTOCreateDocumentationTabInput
|
|
8211
8162
|
});
|
|
8212
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
8213
|
-
type:
|
|
8163
|
+
var DTODocumentationGroupUpdateActionInputV2 = z273.object({
|
|
8164
|
+
type: z273.literal("DocumentationGroupUpdate"),
|
|
8214
8165
|
input: DTOUpdateDocumentationGroupInput
|
|
8215
8166
|
});
|
|
8216
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
8217
|
-
type:
|
|
8167
|
+
var DTODocumentationGroupMoveActionInputV2 = z273.object({
|
|
8168
|
+
type: z273.literal("DocumentationGroupMove"),
|
|
8218
8169
|
input: DTOMoveDocumentationGroupInput
|
|
8219
8170
|
});
|
|
8220
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
8221
|
-
type:
|
|
8171
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z273.object({
|
|
8172
|
+
type: z273.literal("DocumentationGroupDuplicate"),
|
|
8222
8173
|
input: DTODuplicateDocumentationGroupInput
|
|
8223
8174
|
});
|
|
8224
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
8225
|
-
type:
|
|
8175
|
+
var DTODocumentationGroupDeleteActionInputV2 = z273.object({
|
|
8176
|
+
type: z273.literal("DocumentationGroupDelete"),
|
|
8226
8177
|
input: DTODeleteDocumentationGroupInput
|
|
8227
8178
|
});
|
|
8228
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
8229
|
-
type:
|
|
8179
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z273.object({
|
|
8180
|
+
type: z273.literal("DocumentationTabGroupDelete"),
|
|
8230
8181
|
input: DTODeleteDocumentationTabGroupInput
|
|
8231
8182
|
});
|
|
8232
8183
|
|
|
8233
8184
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
8234
|
-
import { z as
|
|
8185
|
+
import { z as z275 } from "zod";
|
|
8235
8186
|
|
|
8236
8187
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
8237
|
-
import { z as
|
|
8238
|
-
var DocumentationColorV1 =
|
|
8239
|
-
aliasTo:
|
|
8240
|
-
value:
|
|
8188
|
+
import { z as z274 } from "zod";
|
|
8189
|
+
var DocumentationColorV1 = z274.object({
|
|
8190
|
+
aliasTo: z274.string().optional(),
|
|
8191
|
+
value: z274.string().optional()
|
|
8241
8192
|
});
|
|
8242
8193
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
8243
8194
|
foregroundColor: true,
|
|
@@ -8246,10 +8197,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
8246
8197
|
foregroundColor: DocumentationColorV1.optional(),
|
|
8247
8198
|
backgroundColor: DocumentationColorV1.optional()
|
|
8248
8199
|
});
|
|
8249
|
-
var DTODocumentationItemConfigurationV1 =
|
|
8250
|
-
showSidebar:
|
|
8251
|
-
isPrivate:
|
|
8252
|
-
isHidden:
|
|
8200
|
+
var DTODocumentationItemConfigurationV1 = z274.object({
|
|
8201
|
+
showSidebar: z274.boolean(),
|
|
8202
|
+
isPrivate: z274.boolean(),
|
|
8203
|
+
isHidden: z274.boolean(),
|
|
8253
8204
|
header: DTODocumentationItemHeaderV1
|
|
8254
8205
|
});
|
|
8255
8206
|
|
|
@@ -8263,145 +8214,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
8263
8214
|
data: true,
|
|
8264
8215
|
shortPersistentId: true
|
|
8265
8216
|
}).extend({
|
|
8266
|
-
title:
|
|
8267
|
-
isRoot:
|
|
8268
|
-
childrenIds:
|
|
8217
|
+
title: z275.string(),
|
|
8218
|
+
isRoot: z275.boolean(),
|
|
8219
|
+
childrenIds: z275.array(z275.string()),
|
|
8269
8220
|
groupBehavior: DocumentationGroupBehavior,
|
|
8270
|
-
shortPersistentId:
|
|
8271
|
-
type:
|
|
8221
|
+
shortPersistentId: z275.string(),
|
|
8222
|
+
type: z275.literal("Group")
|
|
8272
8223
|
});
|
|
8273
8224
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
8274
8225
|
configuration: DTODocumentationItemConfigurationV1
|
|
8275
8226
|
});
|
|
8276
8227
|
|
|
8277
8228
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
8278
|
-
import { z as
|
|
8279
|
-
var DTODocumentationHierarchyV2 =
|
|
8280
|
-
pages:
|
|
8229
|
+
import { z as z276 } from "zod";
|
|
8230
|
+
var DTODocumentationHierarchyV2 = z276.object({
|
|
8231
|
+
pages: z276.array(
|
|
8281
8232
|
DTODocumentationPageV2.extend({
|
|
8282
8233
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8283
8234
|
draftState: DTODocumentationDraftState.optional()
|
|
8284
8235
|
})
|
|
8285
8236
|
),
|
|
8286
|
-
groups:
|
|
8237
|
+
groups: z276.array(
|
|
8287
8238
|
DTODocumentationGroupV2.extend({
|
|
8288
8239
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8289
8240
|
draftState: DTODocumentationDraftState.optional()
|
|
8290
8241
|
})
|
|
8291
8242
|
),
|
|
8292
8243
|
/** True if the documentation was already published, false otherwise. */
|
|
8293
|
-
hasPublishedDocumentationContent:
|
|
8244
|
+
hasPublishedDocumentationContent: z276.boolean()
|
|
8294
8245
|
});
|
|
8295
8246
|
|
|
8296
8247
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
8297
|
-
import { z as
|
|
8298
|
-
var SuccessPayload2 =
|
|
8299
|
-
success:
|
|
8248
|
+
import { z as z277 } from "zod";
|
|
8249
|
+
var SuccessPayload2 = z277.object({
|
|
8250
|
+
success: z277.literal(true)
|
|
8300
8251
|
});
|
|
8301
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
8302
|
-
type:
|
|
8252
|
+
var DTODocumentationPageCreateActionOutputV2 = z277.object({
|
|
8253
|
+
type: z277.literal("DocumentationPageCreate"),
|
|
8303
8254
|
output: SuccessPayload2
|
|
8304
8255
|
});
|
|
8305
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
8306
|
-
type:
|
|
8256
|
+
var DTODocumentationPageUpdateActionOutputV2 = z277.object({
|
|
8257
|
+
type: z277.literal("DocumentationPageUpdate"),
|
|
8307
8258
|
output: SuccessPayload2
|
|
8308
8259
|
});
|
|
8309
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
8310
|
-
type:
|
|
8260
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z277.object({
|
|
8261
|
+
type: z277.literal("DocumentationPageUpdateDocument"),
|
|
8311
8262
|
output: SuccessPayload2
|
|
8312
8263
|
});
|
|
8313
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
8314
|
-
type:
|
|
8264
|
+
var DTODocumentationPageMoveActionOutputV2 = z277.object({
|
|
8265
|
+
type: z277.literal("DocumentationPageMove"),
|
|
8315
8266
|
output: SuccessPayload2
|
|
8316
8267
|
});
|
|
8317
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
8318
|
-
type:
|
|
8268
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z277.object({
|
|
8269
|
+
type: z277.literal("DocumentationPageDuplicate"),
|
|
8319
8270
|
output: SuccessPayload2
|
|
8320
8271
|
});
|
|
8321
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
8322
|
-
type:
|
|
8272
|
+
var DTODocumentationPageDeleteActionOutputV2 = z277.object({
|
|
8273
|
+
type: z277.literal("DocumentationPageDelete"),
|
|
8323
8274
|
output: SuccessPayload2
|
|
8324
8275
|
});
|
|
8325
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
8326
|
-
type:
|
|
8276
|
+
var DTODocumentationPageRestoreActionOutput = z277.object({
|
|
8277
|
+
type: z277.literal("DocumentationPageRestore"),
|
|
8327
8278
|
output: SuccessPayload2
|
|
8328
8279
|
});
|
|
8329
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
8330
|
-
type:
|
|
8280
|
+
var DTODocumentationGroupRestoreActionOutput = z277.object({
|
|
8281
|
+
type: z277.literal("DocumentationGroupRestore"),
|
|
8331
8282
|
output: SuccessPayload2
|
|
8332
8283
|
});
|
|
8333
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
8334
|
-
type:
|
|
8284
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z277.object({
|
|
8285
|
+
type: z277.literal("DocumentationPageApprovalStateChange"),
|
|
8335
8286
|
output: SuccessPayload2
|
|
8336
8287
|
});
|
|
8337
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
8338
|
-
type:
|
|
8288
|
+
var DTODocumentationPageCreateActionInputV2 = z277.object({
|
|
8289
|
+
type: z277.literal("DocumentationPageCreate"),
|
|
8339
8290
|
input: DTOCreateDocumentationPageInputV2
|
|
8340
8291
|
});
|
|
8341
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
8342
|
-
type:
|
|
8292
|
+
var DTODocumentationPageUpdateActionInputV2 = z277.object({
|
|
8293
|
+
type: z277.literal("DocumentationPageUpdate"),
|
|
8343
8294
|
input: DTOUpdateDocumentationPageInputV2
|
|
8344
8295
|
});
|
|
8345
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
8346
|
-
type:
|
|
8296
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z277.object({
|
|
8297
|
+
type: z277.literal("DocumentationPageUpdateDocument"),
|
|
8347
8298
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
8348
8299
|
});
|
|
8349
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
8350
|
-
type:
|
|
8300
|
+
var DTODocumentationPageMoveActionInputV2 = z277.object({
|
|
8301
|
+
type: z277.literal("DocumentationPageMove"),
|
|
8351
8302
|
input: DTOMoveDocumentationPageInputV2
|
|
8352
8303
|
});
|
|
8353
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
8354
|
-
type:
|
|
8304
|
+
var DTODocumentationPageDuplicateActionInputV2 = z277.object({
|
|
8305
|
+
type: z277.literal("DocumentationPageDuplicate"),
|
|
8355
8306
|
input: DTODuplicateDocumentationPageInputV2
|
|
8356
8307
|
});
|
|
8357
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
8358
|
-
type:
|
|
8308
|
+
var DTODocumentationPageDeleteActionInputV2 = z277.object({
|
|
8309
|
+
type: z277.literal("DocumentationPageDelete"),
|
|
8359
8310
|
input: DTODeleteDocumentationPageInputV2
|
|
8360
8311
|
});
|
|
8361
|
-
var DTODocumentationPageRestoreActionInput =
|
|
8362
|
-
type:
|
|
8312
|
+
var DTODocumentationPageRestoreActionInput = z277.object({
|
|
8313
|
+
type: z277.literal("DocumentationPageRestore"),
|
|
8363
8314
|
input: DTORestoreDocumentationPageInput
|
|
8364
8315
|
});
|
|
8365
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
8366
|
-
type:
|
|
8316
|
+
var DTODocumentationGroupRestoreActionInput = z277.object({
|
|
8317
|
+
type: z277.literal("DocumentationGroupRestore"),
|
|
8367
8318
|
input: DTORestoreDocumentationGroupInput
|
|
8368
8319
|
});
|
|
8369
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
8370
|
-
type:
|
|
8320
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z277.object({
|
|
8321
|
+
type: z277.literal("DocumentationPageApprovalStateChange"),
|
|
8371
8322
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
8372
8323
|
});
|
|
8373
8324
|
|
|
8374
8325
|
// src/api/dto/elements/documentation/page-content.ts
|
|
8375
|
-
import { z as
|
|
8326
|
+
import { z as z278 } from "zod";
|
|
8376
8327
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
8377
|
-
var DTODocumentationPageContentGetResponse =
|
|
8328
|
+
var DTODocumentationPageContentGetResponse = z278.object({
|
|
8378
8329
|
pageContent: DTODocumentationPageContent
|
|
8379
8330
|
});
|
|
8380
8331
|
|
|
8381
8332
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
8382
|
-
import { z as
|
|
8383
|
-
var DTODocumentationPageDependencies =
|
|
8384
|
-
id:
|
|
8385
|
-
designSystemVersionId:
|
|
8386
|
-
createdAt:
|
|
8387
|
-
updatedAt:
|
|
8388
|
-
documentationPageId:
|
|
8389
|
-
tokenPersistentIds:
|
|
8390
|
-
figmaComponentPersistentIds:
|
|
8391
|
-
componentPersistentIds:
|
|
8392
|
-
figmaNodePersistentIds:
|
|
8393
|
-
groupPersistentIds:
|
|
8394
|
-
propertyPersistentIds:
|
|
8395
|
-
themePersistentIds:
|
|
8396
|
-
documentationPagePersistentIds:
|
|
8397
|
-
storybookEntriesStoryIds:
|
|
8398
|
-
});
|
|
8399
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
8400
|
-
dependencies:
|
|
8333
|
+
import { z as z279 } from "zod";
|
|
8334
|
+
var DTODocumentationPageDependencies = z279.object({
|
|
8335
|
+
id: z279.string(),
|
|
8336
|
+
designSystemVersionId: z279.string(),
|
|
8337
|
+
createdAt: z279.coerce.date(),
|
|
8338
|
+
updatedAt: z279.coerce.date(),
|
|
8339
|
+
documentationPageId: z279.string(),
|
|
8340
|
+
tokenPersistentIds: z279.array(z279.string()),
|
|
8341
|
+
figmaComponentPersistentIds: z279.array(z279.string()),
|
|
8342
|
+
componentPersistentIds: z279.array(z279.string()),
|
|
8343
|
+
figmaNodePersistentIds: z279.array(z279.string()),
|
|
8344
|
+
groupPersistentIds: z279.array(z279.string()),
|
|
8345
|
+
propertyPersistentIds: z279.array(z279.string()),
|
|
8346
|
+
themePersistentIds: z279.array(z279.string()),
|
|
8347
|
+
documentationPagePersistentIds: z279.array(z279.string()),
|
|
8348
|
+
storybookEntriesStoryIds: z279.array(z279.string())
|
|
8349
|
+
});
|
|
8350
|
+
var DTODocumentationPageDependenciesGetResponse = z279.object({
|
|
8351
|
+
dependencies: z279.array(DTODocumentationPageDependencies)
|
|
8401
8352
|
});
|
|
8402
8353
|
|
|
8403
8354
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
8404
|
-
import { z as
|
|
8355
|
+
import { z as z280 } from "zod";
|
|
8405
8356
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
8406
8357
|
data: true,
|
|
8407
8358
|
meta: true,
|
|
@@ -8409,81 +8360,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
8409
8360
|
sortOrder: true
|
|
8410
8361
|
}).extend({
|
|
8411
8362
|
configuration: DTODocumentationItemConfigurationV1,
|
|
8412
|
-
blocks:
|
|
8413
|
-
title:
|
|
8414
|
-
path:
|
|
8363
|
+
blocks: z280.array(PageBlockV1),
|
|
8364
|
+
title: z280.string(),
|
|
8365
|
+
path: z280.string()
|
|
8415
8366
|
});
|
|
8416
8367
|
|
|
8417
8368
|
// src/api/dto/elements/documentation/settings.ts
|
|
8418
|
-
import { z as
|
|
8419
|
-
var DTODocumentationSettings =
|
|
8420
|
-
isDraftFeatureAdopted:
|
|
8421
|
-
isApprovalsFeatureEnabled:
|
|
8422
|
-
isApprovalRequiredForPublishing:
|
|
8369
|
+
import { z as z281 } from "zod";
|
|
8370
|
+
var DTODocumentationSettings = z281.object({
|
|
8371
|
+
isDraftFeatureAdopted: z281.boolean(),
|
|
8372
|
+
isApprovalsFeatureEnabled: z281.boolean(),
|
|
8373
|
+
isApprovalRequiredForPublishing: z281.boolean()
|
|
8423
8374
|
});
|
|
8424
8375
|
|
|
8425
8376
|
// src/api/dto/elements/documentation/structure.ts
|
|
8426
|
-
import { z as
|
|
8427
|
-
var DTODocumentationStructureItemType =
|
|
8428
|
-
var DTODocumentationStructureItemBase =
|
|
8377
|
+
import { z as z282 } from "zod";
|
|
8378
|
+
var DTODocumentationStructureItemType = z282.enum(["Group", "Page"]);
|
|
8379
|
+
var DTODocumentationStructureItemBase = z282.object({
|
|
8429
8380
|
type: DTODocumentationStructureItemType,
|
|
8430
|
-
id:
|
|
8431
|
-
designSystemVersionId:
|
|
8432
|
-
shortPersistentId:
|
|
8433
|
-
persistentId:
|
|
8434
|
-
title:
|
|
8435
|
-
createdAt:
|
|
8436
|
-
updatedAt:
|
|
8381
|
+
id: z282.string(),
|
|
8382
|
+
designSystemVersionId: z282.string(),
|
|
8383
|
+
shortPersistentId: z282.string(),
|
|
8384
|
+
persistentId: z282.string(),
|
|
8385
|
+
title: z282.string(),
|
|
8386
|
+
createdAt: z282.coerce.date(),
|
|
8387
|
+
updatedAt: z282.coerce.date()
|
|
8437
8388
|
});
|
|
8438
8389
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
8439
|
-
type:
|
|
8440
|
-
groupBehavior:
|
|
8441
|
-
childrenIds:
|
|
8442
|
-
isRoot:
|
|
8390
|
+
type: z282.literal(DTODocumentationStructureItemType.enum.Group),
|
|
8391
|
+
groupBehavior: z282.string(),
|
|
8392
|
+
childrenIds: z282.string().array(),
|
|
8393
|
+
isRoot: z282.boolean()
|
|
8443
8394
|
});
|
|
8444
8395
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
8445
|
-
type:
|
|
8446
|
-
path:
|
|
8396
|
+
type: z282.literal(DTODocumentationStructureItemType.enum.Page),
|
|
8397
|
+
path: z282.string()
|
|
8447
8398
|
});
|
|
8448
|
-
var DTODocumentationStructureItem =
|
|
8399
|
+
var DTODocumentationStructureItem = z282.discriminatedUnion("type", [
|
|
8449
8400
|
DTODocumentationStructureGroupItem,
|
|
8450
8401
|
DTODocumentationStructurePageItem
|
|
8451
8402
|
]);
|
|
8452
|
-
var DTODocumentationStructure =
|
|
8453
|
-
items:
|
|
8403
|
+
var DTODocumentationStructure = z282.object({
|
|
8404
|
+
items: z282.array(DTODocumentationStructureItem)
|
|
8454
8405
|
});
|
|
8455
8406
|
|
|
8456
8407
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
8457
|
-
import { z as
|
|
8458
|
-
var DTOFigmaNodeStructure =
|
|
8459
|
-
id:
|
|
8460
|
-
sourceId:
|
|
8408
|
+
import { z as z283 } from "zod";
|
|
8409
|
+
var DTOFigmaNodeStructure = z283.object({
|
|
8410
|
+
id: z283.string(),
|
|
8411
|
+
sourceId: z283.string(),
|
|
8461
8412
|
importState: FigmaNodeStructureStateV2,
|
|
8462
|
-
createdAt:
|
|
8463
|
-
updatedAt:
|
|
8413
|
+
createdAt: z283.coerce.date(),
|
|
8414
|
+
updatedAt: z283.coerce.date()
|
|
8464
8415
|
});
|
|
8465
8416
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
8466
8417
|
rootNode: FigmaFileStructureNode
|
|
8467
8418
|
});
|
|
8468
|
-
var DTOFigmaNodeStructureListResponse =
|
|
8419
|
+
var DTOFigmaNodeStructureListResponse = z283.object({
|
|
8469
8420
|
structures: DTOFigmaNodeStructure.array()
|
|
8470
8421
|
});
|
|
8471
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
8422
|
+
var DTOFigmaNodeStructureDetailResponse = z283.object({
|
|
8472
8423
|
structure: DTOFigmaNodeStructureDetail
|
|
8473
8424
|
});
|
|
8474
8425
|
|
|
8475
8426
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8476
|
-
import { z as
|
|
8427
|
+
import { z as z285 } from "zod";
|
|
8477
8428
|
|
|
8478
8429
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
8479
|
-
import { z as
|
|
8430
|
+
import { z as z284 } from "zod";
|
|
8480
8431
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
8481
|
-
var DTOFigmaNodeOrigin =
|
|
8482
|
-
sourceId:
|
|
8483
|
-
fileId:
|
|
8484
|
-
parentName:
|
|
8432
|
+
var DTOFigmaNodeOrigin = z284.object({
|
|
8433
|
+
sourceId: z284.string(),
|
|
8434
|
+
fileId: z284.string().optional(),
|
|
8435
|
+
parentName: z284.string().optional()
|
|
8485
8436
|
});
|
|
8486
|
-
var DTOFigmaNodeRenderInputBase =
|
|
8437
|
+
var DTOFigmaNodeRenderInputBase = z284.object({
|
|
8487
8438
|
/**
|
|
8488
8439
|
* Format in which the node must be rendered, png by default.
|
|
8489
8440
|
*/
|
|
@@ -8491,57 +8442,57 @@ var DTOFigmaNodeRenderInputBase = z285.object({
|
|
|
8491
8442
|
/**
|
|
8492
8443
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
8493
8444
|
*/
|
|
8494
|
-
scale:
|
|
8445
|
+
scale: z284.number().optional()
|
|
8495
8446
|
});
|
|
8496
8447
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8497
|
-
inputType:
|
|
8448
|
+
inputType: z284.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
8498
8449
|
/**
|
|
8499
8450
|
* Id of a design system's data source representing a linked Figma file
|
|
8500
8451
|
*/
|
|
8501
|
-
sourceId:
|
|
8452
|
+
sourceId: z284.string(),
|
|
8502
8453
|
/**
|
|
8503
8454
|
* Id of a node within the Figma file
|
|
8504
8455
|
*/
|
|
8505
|
-
figmaFileNodeId:
|
|
8456
|
+
figmaFileNodeId: z284.string()
|
|
8506
8457
|
});
|
|
8507
8458
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8508
|
-
inputType:
|
|
8459
|
+
inputType: z284.literal("URL"),
|
|
8509
8460
|
/**
|
|
8510
8461
|
* Id of a design system's data source representing a linked Figma file
|
|
8511
8462
|
*/
|
|
8512
|
-
figmaNodeUrl:
|
|
8463
|
+
figmaNodeUrl: z284.string(),
|
|
8513
8464
|
/**
|
|
8514
8465
|
* Brand persistent id to use in case a source has to be created for this render
|
|
8515
8466
|
*/
|
|
8516
|
-
brandPersistentId:
|
|
8467
|
+
brandPersistentId: z284.string()
|
|
8517
8468
|
});
|
|
8518
|
-
var DTOFigmaNodeRerenderInput =
|
|
8519
|
-
inputType:
|
|
8469
|
+
var DTOFigmaNodeRerenderInput = z284.object({
|
|
8470
|
+
inputType: z284.literal("Rerender"),
|
|
8520
8471
|
/**
|
|
8521
8472
|
* Persistent ID of an existing Figma node
|
|
8522
8473
|
*/
|
|
8523
|
-
figmaNodePersistentId:
|
|
8474
|
+
figmaNodePersistentId: z284.string()
|
|
8524
8475
|
});
|
|
8525
|
-
var DTOFigmaNodeRenderInput =
|
|
8476
|
+
var DTOFigmaNodeRenderInput = z284.discriminatedUnion("inputType", [
|
|
8526
8477
|
DTOFigmaNodeRenderIdInput,
|
|
8527
8478
|
DTOFigmaNodeRenderUrlInput,
|
|
8528
8479
|
DTOFigmaNodeRerenderInput
|
|
8529
8480
|
]);
|
|
8530
8481
|
|
|
8531
8482
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8532
|
-
var DTOFigmaNodeData =
|
|
8483
|
+
var DTOFigmaNodeData = z285.object({
|
|
8533
8484
|
// Id of the node in the Figma file
|
|
8534
|
-
figmaNodeId:
|
|
8485
|
+
figmaNodeId: z285.string(),
|
|
8535
8486
|
// Validity
|
|
8536
|
-
isValid:
|
|
8487
|
+
isValid: z285.boolean(),
|
|
8537
8488
|
// Asset data
|
|
8538
|
-
assetId:
|
|
8539
|
-
assetUrl:
|
|
8489
|
+
assetId: z285.string(),
|
|
8490
|
+
assetUrl: z285.string(),
|
|
8540
8491
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
8541
8492
|
// Asset metadata
|
|
8542
|
-
assetScale:
|
|
8543
|
-
assetWidth:
|
|
8544
|
-
assetHeight:
|
|
8493
|
+
assetScale: z285.number(),
|
|
8494
|
+
assetWidth: z285.number().optional(),
|
|
8495
|
+
assetHeight: z285.number().optional()
|
|
8545
8496
|
});
|
|
8546
8497
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
8547
8498
|
data: true,
|
|
@@ -8552,15 +8503,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
8552
8503
|
});
|
|
8553
8504
|
|
|
8554
8505
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
8555
|
-
import { z as
|
|
8556
|
-
var DTOFigmaNodeDataV2 =
|
|
8557
|
-
sceneNodeId:
|
|
8506
|
+
import { z as z286 } from "zod";
|
|
8507
|
+
var DTOFigmaNodeDataV2 = z286.object({
|
|
8508
|
+
sceneNodeId: z286.string(),
|
|
8558
8509
|
format: FigmaNodeRenderFormat,
|
|
8559
|
-
scale:
|
|
8510
|
+
scale: z286.number().optional(),
|
|
8560
8511
|
renderState: FigmaNodeRenderState,
|
|
8561
8512
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
8562
8513
|
renderError: FigmaNodeRenderError.optional(),
|
|
8563
|
-
hasSource:
|
|
8514
|
+
hasSource: z286.boolean()
|
|
8564
8515
|
});
|
|
8565
8516
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
8566
8517
|
data: true,
|
|
@@ -8571,113 +8522,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
8571
8522
|
});
|
|
8572
8523
|
|
|
8573
8524
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
8574
|
-
import { z as
|
|
8575
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
8576
|
-
type:
|
|
8577
|
-
figmaNodes:
|
|
8525
|
+
import { z as z287 } from "zod";
|
|
8526
|
+
var DTOFigmaNodeRenderActionOutput = z287.object({
|
|
8527
|
+
type: z287.literal("FigmaNodeRender"),
|
|
8528
|
+
figmaNodes: z287.array(DTOFigmaNode)
|
|
8578
8529
|
});
|
|
8579
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
8580
|
-
type:
|
|
8581
|
-
figmaNodes:
|
|
8530
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z287.object({
|
|
8531
|
+
type: z287.literal("FigmaNodeRenderAsync"),
|
|
8532
|
+
figmaNodes: z287.array(DTOFigmaNodeV2)
|
|
8582
8533
|
});
|
|
8583
|
-
var DTOFigmaNodeRenderActionInput =
|
|
8584
|
-
type:
|
|
8534
|
+
var DTOFigmaNodeRenderActionInput = z287.object({
|
|
8535
|
+
type: z287.literal("FigmaNodeRender"),
|
|
8585
8536
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
8586
8537
|
});
|
|
8587
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
8588
|
-
type:
|
|
8538
|
+
var DTOFigmaNodeRenderAsyncActionInput = z287.object({
|
|
8539
|
+
type: z287.literal("FigmaNodeRenderAsync"),
|
|
8589
8540
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
8590
8541
|
});
|
|
8591
8542
|
|
|
8592
8543
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8593
|
-
import { z as
|
|
8594
|
-
var DTOFrameNodeStructure =
|
|
8595
|
-
id:
|
|
8596
|
-
persistentId:
|
|
8597
|
-
designSystemVersionId:
|
|
8544
|
+
import { z as z288 } from "zod";
|
|
8545
|
+
var DTOFrameNodeStructure = z288.object({
|
|
8546
|
+
id: z288.string(),
|
|
8547
|
+
persistentId: z288.string(),
|
|
8548
|
+
designSystemVersionId: z288.string(),
|
|
8598
8549
|
origin: FigmaFileStructureOrigin,
|
|
8599
8550
|
assetsInFile: FigmaFileStructureStatistics
|
|
8600
8551
|
});
|
|
8601
|
-
var DTOFrameNodeStructureListResponse =
|
|
8552
|
+
var DTOFrameNodeStructureListResponse = z288.object({
|
|
8602
8553
|
structures: DTOFrameNodeStructure.array()
|
|
8603
8554
|
});
|
|
8604
8555
|
|
|
8605
8556
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8606
|
-
import { z as
|
|
8557
|
+
import { z as z289 } from "zod";
|
|
8607
8558
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8608
|
-
var DTOElementPropertyDefinitionOption =
|
|
8609
|
-
id:
|
|
8610
|
-
name:
|
|
8559
|
+
var DTOElementPropertyDefinitionOption = z289.object({
|
|
8560
|
+
id: z289.string(),
|
|
8561
|
+
name: z289.string(),
|
|
8611
8562
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8612
8563
|
});
|
|
8613
|
-
var DTOElementPropertyDefinition =
|
|
8614
|
-
id:
|
|
8615
|
-
designSystemVersionId:
|
|
8564
|
+
var DTOElementPropertyDefinition = z289.object({
|
|
8565
|
+
id: z289.string(),
|
|
8566
|
+
designSystemVersionId: z289.string(),
|
|
8616
8567
|
meta: DTOObjectMeta,
|
|
8617
|
-
persistentId:
|
|
8568
|
+
persistentId: z289.string(),
|
|
8618
8569
|
type: ElementPropertyTypeSchema,
|
|
8619
8570
|
targetElementType: ElementPropertyTargetType,
|
|
8620
|
-
codeName:
|
|
8621
|
-
options: nullishToOptional(
|
|
8571
|
+
codeName: z289.string().regex(CODE_NAME_REGEX2),
|
|
8572
|
+
options: nullishToOptional(z289.array(DTOElementPropertyDefinitionOption)),
|
|
8622
8573
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8623
|
-
isImmutable:
|
|
8574
|
+
isImmutable: z289.boolean(),
|
|
8624
8575
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8625
8576
|
});
|
|
8626
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8627
|
-
definitions:
|
|
8577
|
+
var DTOElementPropertyDefinitionListResponse = z289.object({
|
|
8578
|
+
definitions: z289.array(DTOElementPropertyDefinition)
|
|
8628
8579
|
});
|
|
8629
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8580
|
+
var DTOElementPropertyDefinitionResponse = z289.object({
|
|
8630
8581
|
definition: DTOElementPropertyDefinition
|
|
8631
8582
|
});
|
|
8632
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8583
|
+
var DTOElementPropertyDefinitionCreatePayload = z289.object({
|
|
8633
8584
|
meta: DTOObjectMeta,
|
|
8634
|
-
persistentId:
|
|
8585
|
+
persistentId: z289.string(),
|
|
8635
8586
|
type: ElementPropertyTypeSchema,
|
|
8636
8587
|
targetElementType: ElementPropertyTargetType,
|
|
8637
|
-
codeName:
|
|
8638
|
-
options: nullishToOptional(
|
|
8588
|
+
codeName: z289.string().regex(CODE_NAME_REGEX2),
|
|
8589
|
+
options: nullishToOptional(z289.array(DTOElementPropertyDefinitionOption)),
|
|
8639
8590
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8640
|
-
columnWidth:
|
|
8591
|
+
columnWidth: z289.number().max(1024).optional()
|
|
8641
8592
|
});
|
|
8642
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8593
|
+
var DTOElementPropertyDefinitionUpdatePayload = z289.object({
|
|
8643
8594
|
meta: DTOObjectMeta.optional(),
|
|
8644
|
-
codeName:
|
|
8645
|
-
options:
|
|
8595
|
+
codeName: z289.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8596
|
+
options: z289.array(DTOElementPropertyDefinitionOption).optional()
|
|
8646
8597
|
});
|
|
8647
8598
|
|
|
8648
8599
|
// src/api/dto/elements/properties/property-values.ts
|
|
8649
|
-
import { z as
|
|
8650
|
-
var DTOElementPropertyValue =
|
|
8651
|
-
id:
|
|
8652
|
-
designSystemVersionId:
|
|
8653
|
-
definitionId:
|
|
8654
|
-
targetElementId:
|
|
8655
|
-
value:
|
|
8656
|
-
valuePreview:
|
|
8657
|
-
});
|
|
8658
|
-
var DTOElementPropertyValueListResponse =
|
|
8659
|
-
values:
|
|
8660
|
-
});
|
|
8661
|
-
var DTOElementPropertyValueResponse =
|
|
8600
|
+
import { z as z290 } from "zod";
|
|
8601
|
+
var DTOElementPropertyValue = z290.object({
|
|
8602
|
+
id: z290.string(),
|
|
8603
|
+
designSystemVersionId: z290.string(),
|
|
8604
|
+
definitionId: z290.string(),
|
|
8605
|
+
targetElementId: z290.string(),
|
|
8606
|
+
value: z290.union([z290.string(), z290.number(), z290.boolean()]).optional(),
|
|
8607
|
+
valuePreview: z290.string().optional()
|
|
8608
|
+
});
|
|
8609
|
+
var DTOElementPropertyValueListResponse = z290.object({
|
|
8610
|
+
values: z290.array(DTOElementPropertyValue)
|
|
8611
|
+
});
|
|
8612
|
+
var DTOElementPropertyValueResponse = z290.object({
|
|
8662
8613
|
value: DTOElementPropertyValue
|
|
8663
8614
|
});
|
|
8664
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8665
|
-
type:
|
|
8666
|
-
output:
|
|
8615
|
+
var DTOElementPropertyValuesEditActionOutput = z290.object({
|
|
8616
|
+
type: z290.literal("ElementPropertyValuesEdit"),
|
|
8617
|
+
output: z290.object({ success: z290.literal(true) })
|
|
8667
8618
|
});
|
|
8668
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8669
|
-
definitionId:
|
|
8670
|
-
targetElementId:
|
|
8671
|
-
value:
|
|
8619
|
+
var DTOElementPropertyValueUpsertPaylod = z290.object({
|
|
8620
|
+
definitionId: z290.string(),
|
|
8621
|
+
targetElementId: z290.string(),
|
|
8622
|
+
value: z290.string().or(z290.number()).or(z290.boolean()).nullable()
|
|
8672
8623
|
});
|
|
8673
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8674
|
-
type:
|
|
8624
|
+
var DTOElementPropertyValuesEditActionInput = z290.object({
|
|
8625
|
+
type: z290.literal("ElementPropertyValuesEdit"),
|
|
8675
8626
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8676
8627
|
});
|
|
8677
8628
|
|
|
8678
8629
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8679
|
-
import { z as
|
|
8680
|
-
var DTOElementActionOutput =
|
|
8630
|
+
import { z as z291 } from "zod";
|
|
8631
|
+
var DTOElementActionOutput = z291.discriminatedUnion("type", [
|
|
8681
8632
|
// Documentation pages
|
|
8682
8633
|
DTODocumentationPageCreateActionOutputV2,
|
|
8683
8634
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8704,7 +8655,7 @@ var DTOElementActionOutput = z292.discriminatedUnion("type", [
|
|
|
8704
8655
|
// Element properties
|
|
8705
8656
|
DTOElementPropertyValuesEditActionOutput
|
|
8706
8657
|
]);
|
|
8707
|
-
var DTOElementActionInput =
|
|
8658
|
+
var DTOElementActionInput = z291.discriminatedUnion("type", [
|
|
8708
8659
|
// Documentation pages
|
|
8709
8660
|
DTODocumentationPageCreateActionInputV2,
|
|
8710
8661
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8731,78 +8682,78 @@ var DTOElementActionInput = z292.discriminatedUnion("type", [
|
|
|
8731
8682
|
// Element properties
|
|
8732
8683
|
DTOElementPropertyValuesEditActionInput
|
|
8733
8684
|
]).and(
|
|
8734
|
-
|
|
8735
|
-
tId:
|
|
8685
|
+
z291.object({
|
|
8686
|
+
tId: z291.string().optional()
|
|
8736
8687
|
})
|
|
8737
8688
|
);
|
|
8738
8689
|
|
|
8739
8690
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8740
|
-
import { z as
|
|
8741
|
-
var DTOElementsGetTypeFilter =
|
|
8742
|
-
var DTOElementsGetQuerySchema =
|
|
8743
|
-
types:
|
|
8744
|
-
responseVersion:
|
|
8691
|
+
import { z as z292 } from "zod";
|
|
8692
|
+
var DTOElementsGetTypeFilter = z292.enum(["FigmaNode"]);
|
|
8693
|
+
var DTOElementsGetQuerySchema = z292.object({
|
|
8694
|
+
types: z292.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8695
|
+
responseVersion: z292.coerce.number().default(1)
|
|
8745
8696
|
});
|
|
8746
|
-
var DTOElementsGetOutput =
|
|
8747
|
-
figmaNodes:
|
|
8697
|
+
var DTOElementsGetOutput = z292.object({
|
|
8698
|
+
figmaNodes: z292.array(DTOFigmaNode).optional()
|
|
8748
8699
|
});
|
|
8749
|
-
var DTOElementsGetOutputV2 =
|
|
8750
|
-
figmaNodes:
|
|
8700
|
+
var DTOElementsGetOutputV2 = z292.object({
|
|
8701
|
+
figmaNodes: z292.array(DTOFigmaNodeV2).optional()
|
|
8751
8702
|
});
|
|
8752
8703
|
|
|
8753
8704
|
// src/api/dto/figma-components/assets/download.ts
|
|
8754
|
-
import { z as
|
|
8755
|
-
var DTOAssetRenderConfiguration =
|
|
8756
|
-
prefix:
|
|
8757
|
-
suffix:
|
|
8758
|
-
scale:
|
|
8759
|
-
format:
|
|
8760
|
-
});
|
|
8761
|
-
var DTORenderedAssetFile =
|
|
8762
|
-
assetId:
|
|
8763
|
-
fileName:
|
|
8764
|
-
sourceUrl:
|
|
8705
|
+
import { z as z293 } from "zod";
|
|
8706
|
+
var DTOAssetRenderConfiguration = z293.object({
|
|
8707
|
+
prefix: z293.string().optional(),
|
|
8708
|
+
suffix: z293.string().optional(),
|
|
8709
|
+
scale: z293.enum(["x1", "x2", "x3", "x4"]),
|
|
8710
|
+
format: z293.enum(["png", "pdf", "svg"])
|
|
8711
|
+
});
|
|
8712
|
+
var DTORenderedAssetFile = z293.object({
|
|
8713
|
+
assetId: z293.string(),
|
|
8714
|
+
fileName: z293.string(),
|
|
8715
|
+
sourceUrl: z293.string(),
|
|
8765
8716
|
settings: DTOAssetRenderConfiguration,
|
|
8766
|
-
originalName:
|
|
8717
|
+
originalName: z293.string()
|
|
8767
8718
|
});
|
|
8768
|
-
var DTODownloadAssetsRequest =
|
|
8769
|
-
persistentIds:
|
|
8719
|
+
var DTODownloadAssetsRequest = z293.object({
|
|
8720
|
+
persistentIds: z293.array(z293.string().uuid()).optional(),
|
|
8770
8721
|
settings: DTOAssetRenderConfiguration.array()
|
|
8771
8722
|
});
|
|
8772
|
-
var DTODownloadAssetsResponse =
|
|
8723
|
+
var DTODownloadAssetsResponse = z293.object({
|
|
8773
8724
|
items: DTORenderedAssetFile.array()
|
|
8774
8725
|
});
|
|
8775
8726
|
|
|
8776
8727
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
8777
|
-
import { z as
|
|
8778
|
-
var DTOFigmaNodeResponse =
|
|
8728
|
+
import { z as z294 } from "zod";
|
|
8729
|
+
var DTOFigmaNodeResponse = z294.object({
|
|
8779
8730
|
nodes: FigmaExporterAnyDesignNodeSchema
|
|
8780
8731
|
});
|
|
8781
8732
|
|
|
8782
8733
|
// src/api/dto/forge/agent.ts
|
|
8783
|
-
import { z as
|
|
8734
|
+
import { z as z295 } from "zod";
|
|
8784
8735
|
var DTOForgeAgent = ForgeAgent;
|
|
8785
8736
|
var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
|
|
8786
8737
|
var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
|
|
8787
|
-
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id:
|
|
8788
|
-
var DTOCreateForgeAgentResponse =
|
|
8738
|
+
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z295.string() });
|
|
8739
|
+
var DTOCreateForgeAgentResponse = z295.object({
|
|
8789
8740
|
agent: DTOForgeAgent
|
|
8790
8741
|
});
|
|
8791
|
-
var DTOUGetForgeAgentResponse =
|
|
8742
|
+
var DTOUGetForgeAgentResponse = z295.object({
|
|
8792
8743
|
agent: DTOForgeAgent.nullable()
|
|
8793
8744
|
});
|
|
8794
|
-
var DTOUpdateForgeAgentResponse =
|
|
8745
|
+
var DTOUpdateForgeAgentResponse = z295.object({
|
|
8795
8746
|
agent: DTOForgeAgent.nullable()
|
|
8796
8747
|
});
|
|
8797
|
-
var DTOForgeAgentsListResponse =
|
|
8798
|
-
agents:
|
|
8748
|
+
var DTOForgeAgentsListResponse = z295.object({
|
|
8749
|
+
agents: z295.array(DTOForgeAgent)
|
|
8799
8750
|
});
|
|
8800
|
-
var DTODeleteForgeAgentResponse =
|
|
8801
|
-
ok:
|
|
8751
|
+
var DTODeleteForgeAgentResponse = z295.object({
|
|
8752
|
+
ok: z295.literal(true)
|
|
8802
8753
|
});
|
|
8803
8754
|
|
|
8804
8755
|
// src/api/dto/forge/artifact.ts
|
|
8805
|
-
import { z as
|
|
8756
|
+
import { z as z296 } from "zod";
|
|
8806
8757
|
var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
|
|
8807
8758
|
id: true,
|
|
8808
8759
|
createdAt: true,
|
|
@@ -8823,48 +8774,48 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
|
|
|
8823
8774
|
createdAt: true,
|
|
8824
8775
|
projectIterationId: true
|
|
8825
8776
|
});
|
|
8826
|
-
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id:
|
|
8827
|
-
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id:
|
|
8828
|
-
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id:
|
|
8829
|
-
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id:
|
|
8777
|
+
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z296.string() });
|
|
8778
|
+
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z296.string() });
|
|
8779
|
+
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z296.string() });
|
|
8780
|
+
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z296.string() });
|
|
8830
8781
|
var DTOForgeArtifact = ForgeArtifact;
|
|
8831
8782
|
var DTOForgeBuildArtifact = ForgeBuildArtifact;
|
|
8832
8783
|
var DTOForgeFileArtifact = ForgeFileArtifact;
|
|
8833
8784
|
var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
|
|
8834
8785
|
var DTOForgeSpecArtifact = ForgeSpecArtifact;
|
|
8835
|
-
var DTOCreateForgeArtifact =
|
|
8786
|
+
var DTOCreateForgeArtifact = z296.union([
|
|
8836
8787
|
DTOCreateForgeBuildArtifact,
|
|
8837
8788
|
DTOCreateForgeFileArtifact,
|
|
8838
8789
|
DTOCreateForgeFigmaArtifact,
|
|
8839
8790
|
DTOCreateForgeSpecArtifact
|
|
8840
8791
|
]);
|
|
8841
|
-
var DTOUpdateForgeArtifact =
|
|
8792
|
+
var DTOUpdateForgeArtifact = z296.union([
|
|
8842
8793
|
DTOUpdateForgeFileArtifact,
|
|
8843
8794
|
DTOUpdateForgeBuildArtifact,
|
|
8844
8795
|
DTOUpdateForgeSpecArtifact,
|
|
8845
8796
|
DTOUpdateForgeFigmaArtifact
|
|
8846
8797
|
]);
|
|
8847
|
-
var DTOCreateForgeArtifactResponse =
|
|
8798
|
+
var DTOCreateForgeArtifactResponse = z296.object({
|
|
8848
8799
|
artifact: DTOForgeArtifact
|
|
8849
8800
|
});
|
|
8850
|
-
var DTOUpdateForgeArtifactResponse =
|
|
8801
|
+
var DTOUpdateForgeArtifactResponse = z296.object({
|
|
8851
8802
|
artifact: DTOForgeArtifact.nullable()
|
|
8852
8803
|
});
|
|
8853
|
-
var DTODeleteForgeArtifactResponse =
|
|
8854
|
-
ok:
|
|
8804
|
+
var DTODeleteForgeArtifactResponse = z296.object({
|
|
8805
|
+
ok: z296.literal(true)
|
|
8855
8806
|
});
|
|
8856
|
-
var DTOForgeArtifactsListResponse =
|
|
8857
|
-
artifacts:
|
|
8807
|
+
var DTOForgeArtifactsListResponse = z296.object({
|
|
8808
|
+
artifacts: z296.array(DTOForgeArtifact)
|
|
8858
8809
|
});
|
|
8859
|
-
var DTOForgeArtifactGetResponse =
|
|
8810
|
+
var DTOForgeArtifactGetResponse = z296.object({
|
|
8860
8811
|
artifact: DTOForgeArtifact.nullable()
|
|
8861
8812
|
});
|
|
8862
8813
|
|
|
8863
8814
|
// src/api/dto/forge/iteration-message.ts
|
|
8864
|
-
import { z as
|
|
8815
|
+
import { z as z298 } from "zod";
|
|
8865
8816
|
|
|
8866
8817
|
// src/api/dto/forge/participant.ts
|
|
8867
|
-
import { z as
|
|
8818
|
+
import { z as z297 } from "zod";
|
|
8868
8819
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
8869
8820
|
agent: DTOForgeAgent.optional(),
|
|
8870
8821
|
user: DTOUser.optional()
|
|
@@ -8874,20 +8825,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
8874
8825
|
agent: true,
|
|
8875
8826
|
user: true
|
|
8876
8827
|
});
|
|
8877
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
8878
|
-
var DTOCreateForgeParticipantResponse =
|
|
8828
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z297.string() });
|
|
8829
|
+
var DTOCreateForgeParticipantResponse = z297.object({
|
|
8879
8830
|
participant: DTOForgeParticipant
|
|
8880
8831
|
});
|
|
8881
|
-
var DTOUpdateForgeParticipantResponse =
|
|
8832
|
+
var DTOUpdateForgeParticipantResponse = z297.object({
|
|
8882
8833
|
participant: DTOForgeParticipant.nullable()
|
|
8883
8834
|
});
|
|
8884
|
-
var DTODeleteForgeParticipantResponse =
|
|
8885
|
-
ok:
|
|
8835
|
+
var DTODeleteForgeParticipantResponse = z297.object({
|
|
8836
|
+
ok: z297.literal(true)
|
|
8886
8837
|
});
|
|
8887
|
-
var DTOForgeParticipantsListResponse =
|
|
8888
|
-
participants:
|
|
8838
|
+
var DTOForgeParticipantsListResponse = z297.object({
|
|
8839
|
+
participants: z297.array(DTOForgeParticipant)
|
|
8889
8840
|
});
|
|
8890
|
-
var DTOForgeParticipantGetResponse =
|
|
8841
|
+
var DTOForgeParticipantGetResponse = z297.object({
|
|
8891
8842
|
participant: DTOForgeParticipant.nullable()
|
|
8892
8843
|
});
|
|
8893
8844
|
|
|
@@ -8899,25 +8850,25 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
8899
8850
|
projectIterationId: true,
|
|
8900
8851
|
participant: true
|
|
8901
8852
|
});
|
|
8902
|
-
var DTOGetForgeIterationMessageResponse =
|
|
8853
|
+
var DTOGetForgeIterationMessageResponse = z298.object({
|
|
8903
8854
|
message: DTOForgeIterationMessage.nullable()
|
|
8904
8855
|
});
|
|
8905
|
-
var DTOForgeIterationMessagesListResponse =
|
|
8906
|
-
messages:
|
|
8856
|
+
var DTOForgeIterationMessagesListResponse = z298.object({
|
|
8857
|
+
messages: z298.array(DTOForgeIterationMessage)
|
|
8907
8858
|
});
|
|
8908
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
8909
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
8859
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z298.string() });
|
|
8860
|
+
var DTOCreateForgeIterationMessageResponse = z298.object({
|
|
8910
8861
|
message: DTOForgeIterationMessage
|
|
8911
8862
|
});
|
|
8912
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
8863
|
+
var DTOUpdateForgeIterationMessageResponse = z298.object({
|
|
8913
8864
|
message: DTOForgeIterationMessage.nullable()
|
|
8914
8865
|
});
|
|
8915
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
8916
|
-
ok:
|
|
8866
|
+
var DTODeleteForgeIterationMessageResponse = z298.object({
|
|
8867
|
+
ok: z298.literal(true)
|
|
8917
8868
|
});
|
|
8918
8869
|
|
|
8919
8870
|
// src/api/dto/forge/project-context.ts
|
|
8920
|
-
import { z as
|
|
8871
|
+
import { z as z299 } from "zod";
|
|
8921
8872
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
8922
8873
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
8923
8874
|
definition: true,
|
|
@@ -8929,17 +8880,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
8929
8880
|
tailwindConfig: true,
|
|
8930
8881
|
styling: true
|
|
8931
8882
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
8932
|
-
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id:
|
|
8933
|
-
var DTOForgeProjectContextGetResponse =
|
|
8934
|
-
var DTOForgeProjectContextListResponse =
|
|
8935
|
-
var DTOForgeProjectContextCreateResponse =
|
|
8936
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
8937
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
8938
|
-
ok:
|
|
8883
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z299.string() });
|
|
8884
|
+
var DTOForgeProjectContextGetResponse = z299.object({ context: DTOForgeProjectContext.nullable() });
|
|
8885
|
+
var DTOForgeProjectContextListResponse = z299.object({ contexts: z299.array(DTOForgeProjectContext) });
|
|
8886
|
+
var DTOForgeProjectContextCreateResponse = z299.object({ context: DTOForgeProjectContext });
|
|
8887
|
+
var DTOForgeProjectContextUpdateResponse = z299.object({ context: DTOForgeProjectContext.nullable() });
|
|
8888
|
+
var DTOForgeProjectContextRemoveResponse = z299.object({
|
|
8889
|
+
ok: z299.literal(true)
|
|
8939
8890
|
});
|
|
8940
8891
|
|
|
8941
8892
|
// src/api/dto/forge/project-iteration.ts
|
|
8942
|
-
import { z as
|
|
8893
|
+
import { z as z300 } from "zod";
|
|
8943
8894
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
8944
8895
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
8945
8896
|
artifacts: true,
|
|
@@ -8950,7 +8901,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
8950
8901
|
messages: DTOForgeIterationMessage.array(),
|
|
8951
8902
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
8952
8903
|
});
|
|
8953
|
-
var DTOGetForgeProjectIterationResponse =
|
|
8904
|
+
var DTOGetForgeProjectIterationResponse = z300.object({
|
|
8954
8905
|
iteration: DTOForgeProjectIteration.nullable()
|
|
8955
8906
|
});
|
|
8956
8907
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -8960,55 +8911,55 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
8960
8911
|
mergeMeta: true,
|
|
8961
8912
|
createdAt: true
|
|
8962
8913
|
});
|
|
8963
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
8964
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
8914
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z300.string() });
|
|
8915
|
+
var DTOCreateForgeProjectIterationResponse = z300.object({
|
|
8965
8916
|
iteration: DTOForgeProjectIteration
|
|
8966
8917
|
});
|
|
8967
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
8918
|
+
var DTOUpdateForgeProjectIterationResponse = z300.object({
|
|
8968
8919
|
iteration: DTOForgeProjectIteration.nullable()
|
|
8969
8920
|
});
|
|
8970
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
8971
|
-
ok:
|
|
8921
|
+
var DTODeleteForgeProjectIterationResponse = z300.object({
|
|
8922
|
+
ok: z300.literal(true)
|
|
8972
8923
|
});
|
|
8973
|
-
var DTOForgeProjectIterationListResponse =
|
|
8924
|
+
var DTOForgeProjectIterationListResponse = z300.object({ iterations: z300.array(DTOForgeProjectIteration) });
|
|
8974
8925
|
|
|
8975
8926
|
// src/api/dto/forge/project-member.ts
|
|
8976
|
-
import { z as
|
|
8977
|
-
var DTOForgeProjectMember =
|
|
8927
|
+
import { z as z301 } from "zod";
|
|
8928
|
+
var DTOForgeProjectMember = z301.object({
|
|
8978
8929
|
user: DTOUser,
|
|
8979
|
-
role:
|
|
8930
|
+
role: z301.string()
|
|
8980
8931
|
// TODO: RCT-5287 Define enum for role
|
|
8981
8932
|
});
|
|
8982
|
-
var DTOCreateForgeProjectMember =
|
|
8983
|
-
userId:
|
|
8984
|
-
role:
|
|
8933
|
+
var DTOCreateForgeProjectMember = z301.object({
|
|
8934
|
+
userId: z301.string(),
|
|
8935
|
+
role: z301.string()
|
|
8985
8936
|
// TODO: RCT-5287 Define enum for role
|
|
8986
8937
|
});
|
|
8987
8938
|
var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
8988
|
-
var DTORemoveForgeProjectMember =
|
|
8989
|
-
userId:
|
|
8939
|
+
var DTORemoveForgeProjectMember = z301.object({
|
|
8940
|
+
userId: z301.string()
|
|
8990
8941
|
});
|
|
8991
|
-
var DTOForgeProjectMembersListResponse =
|
|
8992
|
-
members:
|
|
8942
|
+
var DTOForgeProjectMembersListResponse = z301.object({
|
|
8943
|
+
members: z301.array(DTOForgeProjectMember)
|
|
8993
8944
|
});
|
|
8994
|
-
var DTOForgeProjectMemberGetResponse =
|
|
8945
|
+
var DTOForgeProjectMemberGetResponse = z301.object({
|
|
8995
8946
|
member: DTOForgeProjectMember.nullable()
|
|
8996
8947
|
});
|
|
8997
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
8948
|
+
var DTOForgeProjectMemberCreateResponse = z301.object({
|
|
8998
8949
|
member: DTOForgeProjectMember
|
|
8999
8950
|
});
|
|
9000
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
8951
|
+
var DTOForgeProjectMemberUpdateResponse = z301.object({
|
|
9001
8952
|
member: DTOForgeProjectMember.nullable()
|
|
9002
8953
|
});
|
|
9003
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9004
|
-
ok:
|
|
8954
|
+
var DTOForgeProjectMemberRemoveResponse = z301.object({
|
|
8955
|
+
ok: z301.literal(true)
|
|
9005
8956
|
});
|
|
9006
8957
|
|
|
9007
8958
|
// src/api/dto/forge/project.ts
|
|
9008
|
-
import { z as
|
|
8959
|
+
import { z as z302 } from "zod";
|
|
9009
8960
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9010
8961
|
context: ForgeProjectContext,
|
|
9011
|
-
members:
|
|
8962
|
+
members: z302.array(DTOForgeProjectMember)
|
|
9012
8963
|
});
|
|
9013
8964
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9014
8965
|
instruction: true,
|
|
@@ -9016,16 +8967,77 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9016
8967
|
meta: true,
|
|
9017
8968
|
fpContextId: true
|
|
9018
8969
|
});
|
|
9019
|
-
var DTOUpdateForgeProject = DTOCreateForgeProject.extend({ id:
|
|
9020
|
-
var DTOForgeProjectGetResponse =
|
|
9021
|
-
var DTOForgeProjectsListResponse =
|
|
9022
|
-
var DTOCreateForgeProjectResponse =
|
|
8970
|
+
var DTOUpdateForgeProject = DTOCreateForgeProject.extend({ id: z302.string() });
|
|
8971
|
+
var DTOForgeProjectGetResponse = z302.object({ project: DTOForgeProject.nullable() });
|
|
8972
|
+
var DTOForgeProjectsListResponse = z302.object({ projects: z302.array(DTOForgeProject) });
|
|
8973
|
+
var DTOCreateForgeProjectResponse = z302.object({
|
|
9023
8974
|
project: DTOForgeProject
|
|
9024
8975
|
});
|
|
9025
|
-
var DTOUpdateForgeProjectResponse =
|
|
8976
|
+
var DTOUpdateForgeProjectResponse = z302.object({
|
|
9026
8977
|
project: DTOForgeProject.nullable()
|
|
9027
8978
|
});
|
|
9028
|
-
var DTORemoveForgeProjectResponse =
|
|
8979
|
+
var DTORemoveForgeProjectResponse = z302.object({ ok: z302.literal(true) });
|
|
8980
|
+
|
|
8981
|
+
// src/api/dto/forge/threads.ts
|
|
8982
|
+
import { z as z303 } from "zod";
|
|
8983
|
+
var DTOForgeChatMessage = ForgeChatMessage;
|
|
8984
|
+
var DTOForgeChatThread = ForgeChatThread;
|
|
8985
|
+
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
8986
|
+
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
8987
|
+
var DTOForgeChatThreadCreateInput = z303.object({
|
|
8988
|
+
title: z303.string().optional()
|
|
8989
|
+
});
|
|
8990
|
+
var DTOForgeChatThreadCreateResponse = z303.object({
|
|
8991
|
+
thread: DTOForgeChatThread
|
|
8992
|
+
});
|
|
8993
|
+
var DTOForgeChatThreadUpdateInput = z303.object({
|
|
8994
|
+
title: z303.string()
|
|
8995
|
+
});
|
|
8996
|
+
var DTOForgeChatThreadUpdateResponse = z303.object({
|
|
8997
|
+
thread: DTOForgeChatThread
|
|
8998
|
+
});
|
|
8999
|
+
var DTOForgeChatThreadDeleteResponse = z303.object({
|
|
9000
|
+
success: z303.boolean()
|
|
9001
|
+
});
|
|
9002
|
+
var DTOForgeChatThreadListQuery = z303.object({
|
|
9003
|
+
limit: z303.number().optional(),
|
|
9004
|
+
offset: z303.number().optional()
|
|
9005
|
+
});
|
|
9006
|
+
var DTOForgeChatThreadListResponse = z303.object({
|
|
9007
|
+
threads: z303.array(DTOForgeChatThread),
|
|
9008
|
+
pagination: z303.object({
|
|
9009
|
+
offset: z303.number(),
|
|
9010
|
+
limit: z303.number(),
|
|
9011
|
+
total: z303.number()
|
|
9012
|
+
})
|
|
9013
|
+
});
|
|
9014
|
+
var DTOForgeChatMessageCreateInput = z303.object({
|
|
9015
|
+
payload: z303.string(),
|
|
9016
|
+
sender: DTOForgeChatMessageSender.optional(),
|
|
9017
|
+
opikSpanId: z303.string().optional()
|
|
9018
|
+
});
|
|
9019
|
+
var DTOForgeChatMessageCreateResponse = z303.object({
|
|
9020
|
+
message: DTOForgeChatMessage
|
|
9021
|
+
});
|
|
9022
|
+
var DTOForgeChatMessageListQuery = z303.object({
|
|
9023
|
+
limit: z303.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9024
|
+
offset: z303.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9025
|
+
});
|
|
9026
|
+
var DTOForgeChatMessageListResponse = z303.object({
|
|
9027
|
+
messages: z303.array(DTOForgeChatMessage),
|
|
9028
|
+
totalCount: z303.number(),
|
|
9029
|
+
hasMore: z303.boolean()
|
|
9030
|
+
});
|
|
9031
|
+
var DTOForgeChatMessageScoreInput = z303.object({
|
|
9032
|
+
messageId: z303.string(),
|
|
9033
|
+
name: z303.string(),
|
|
9034
|
+
value: z303.number(),
|
|
9035
|
+
categoryName: z303.string().optional(),
|
|
9036
|
+
reason: z303.string().optional()
|
|
9037
|
+
});
|
|
9038
|
+
var DTOForgeChatMessageScoreRequest = z303.object({
|
|
9039
|
+
scores: DTOForgeChatMessageScoreInput.array()
|
|
9040
|
+
});
|
|
9029
9041
|
|
|
9030
9042
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9031
9043
|
import { z as z304 } from "zod";
|
|
@@ -10670,6 +10682,12 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10670
10682
|
}
|
|
10671
10683
|
);
|
|
10672
10684
|
}
|
|
10685
|
+
score(workspaceId, threadId, body) {
|
|
10686
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z318.any(), {
|
|
10687
|
+
method: "POST",
|
|
10688
|
+
body
|
|
10689
|
+
});
|
|
10690
|
+
}
|
|
10673
10691
|
};
|
|
10674
10692
|
|
|
10675
10693
|
// src/api/endpoints/workspaces/integrations.ts
|
|
@@ -10797,6 +10815,17 @@ var WorkspacesEndpoint = class {
|
|
|
10797
10815
|
subscription(workspaceId) {
|
|
10798
10816
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z321.any(), { method: "GET" });
|
|
10799
10817
|
}
|
|
10818
|
+
getPortalSettings(workspaceId) {
|
|
10819
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
10820
|
+
method: "GET"
|
|
10821
|
+
});
|
|
10822
|
+
}
|
|
10823
|
+
updatePortalSettings(workspaceId, body) {
|
|
10824
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
10825
|
+
method: "PUT",
|
|
10826
|
+
body
|
|
10827
|
+
});
|
|
10828
|
+
}
|
|
10800
10829
|
transferOwnership(workspaceId, body) {
|
|
10801
10830
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
10802
10831
|
method: "PUT",
|
|
@@ -16759,6 +16788,8 @@ export {
|
|
|
16759
16788
|
DTOForgeChatMessageCreateResponse,
|
|
16760
16789
|
DTOForgeChatMessageListQuery,
|
|
16761
16790
|
DTOForgeChatMessageListResponse,
|
|
16791
|
+
DTOForgeChatMessageScoreInput,
|
|
16792
|
+
DTOForgeChatMessageScoreRequest,
|
|
16762
16793
|
DTOForgeChatMessageSender,
|
|
16763
16794
|
DTOForgeChatMessageSenderType,
|
|
16764
16795
|
DTOForgeChatThread,
|