@supernova-studio/client 1.10.17 → 1.10.19
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 +88 -53
- package/dist/index.d.ts +88 -53
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +637 -624
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5588,7 +5588,8 @@ var ForgeProject = z198.object({
|
|
|
5588
5588
|
tags: ForgeProjectTag,
|
|
5589
5589
|
updatedAt: z198.coerce.date().optional(),
|
|
5590
5590
|
workspaceId: z198.string(),
|
|
5591
|
-
accessMode: ForgeProjectAccessMode
|
|
5591
|
+
accessMode: ForgeProjectAccessMode,
|
|
5592
|
+
isArchived: z198.boolean().optional()
|
|
5592
5593
|
});
|
|
5593
5594
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5594
5595
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -7852,7 +7853,7 @@ var DTODocumentationLinkPreviewRequest = z265.object({
|
|
|
7852
7853
|
});
|
|
7853
7854
|
|
|
7854
7855
|
// src/api/dto/documentation/publish.ts
|
|
7855
|
-
import { z as
|
|
7856
|
+
import { z as z270 } from "zod";
|
|
7856
7857
|
|
|
7857
7858
|
// src/api/dto/export/exporter.ts
|
|
7858
7859
|
import { z as z266 } from "zod";
|
|
@@ -7926,111 +7927,122 @@ var DTOExporterDeprecationInput = z266.object({
|
|
|
7926
7927
|
});
|
|
7927
7928
|
|
|
7928
7929
|
// src/api/dto/export/filter.ts
|
|
7929
|
-
|
|
7930
|
+
import { z as z267 } from "zod";
|
|
7931
|
+
var DTOExportJobsListFilter = z267.object({
|
|
7932
|
+
exporterId: z267.string().optional(),
|
|
7933
|
+
designSystemVersionId: z267.string().optional(),
|
|
7934
|
+
createdByUserId: z267.string().optional(),
|
|
7935
|
+
status: ExportJobStatus.optional(),
|
|
7936
|
+
scheduleId: z267.string().optional(),
|
|
7937
|
+
designSystemId: z267.string().optional(),
|
|
7938
|
+
themeId: z267.string().optional(),
|
|
7939
|
+
brandId: z267.string().optional(),
|
|
7940
|
+
destinations: z267.string().transform((s) => s.split(",").map((p) => ExportJobDestinationType.parse(p))).optional()
|
|
7941
|
+
});
|
|
7930
7942
|
|
|
7931
7943
|
// src/api/dto/export/job.ts
|
|
7932
|
-
import { z as
|
|
7933
|
-
var DTOExportJobCreatedBy =
|
|
7934
|
-
userId:
|
|
7935
|
-
userName:
|
|
7944
|
+
import { z as z268 } from "zod";
|
|
7945
|
+
var DTOExportJobCreatedBy = z268.object({
|
|
7946
|
+
userId: z268.string(),
|
|
7947
|
+
userName: z268.string()
|
|
7936
7948
|
});
|
|
7937
|
-
var DTOExportJobDesignSystemPreview =
|
|
7938
|
-
id:
|
|
7949
|
+
var DTOExportJobDesignSystemPreview = z268.object({
|
|
7950
|
+
id: z268.string(),
|
|
7939
7951
|
meta: ObjectMeta
|
|
7940
7952
|
});
|
|
7941
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7942
|
-
id:
|
|
7953
|
+
var DTOExportJobDesignSystemVersionPreview = z268.object({
|
|
7954
|
+
id: z268.string(),
|
|
7943
7955
|
meta: ObjectMeta,
|
|
7944
|
-
version:
|
|
7945
|
-
isReadonly:
|
|
7956
|
+
version: z268.string(),
|
|
7957
|
+
isReadonly: z268.boolean()
|
|
7946
7958
|
});
|
|
7947
|
-
var DTOExportJobDestinations =
|
|
7959
|
+
var DTOExportJobDestinations = z268.object({
|
|
7948
7960
|
s3: ExporterDestinationS3.optional(),
|
|
7949
7961
|
azure: ExporterDestinationAzure.optional(),
|
|
7950
7962
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7951
7963
|
github: ExporterDestinationGithub.optional(),
|
|
7952
7964
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7953
7965
|
documentation: ExporterDestinationDocs.optional(),
|
|
7954
|
-
webhookUrl:
|
|
7966
|
+
webhookUrl: z268.string().optional()
|
|
7955
7967
|
});
|
|
7956
7968
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7957
7969
|
sndocs: true
|
|
7958
7970
|
}).extend({
|
|
7959
7971
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7960
7972
|
});
|
|
7961
|
-
var DTOExportJob =
|
|
7962
|
-
id:
|
|
7963
|
-
createdAt:
|
|
7964
|
-
finishedAt:
|
|
7965
|
-
index:
|
|
7973
|
+
var DTOExportJob = z268.object({
|
|
7974
|
+
id: z268.string(),
|
|
7975
|
+
createdAt: z268.coerce.date(),
|
|
7976
|
+
finishedAt: z268.coerce.date().optional(),
|
|
7977
|
+
index: z268.number().optional(),
|
|
7966
7978
|
status: ExportJobStatus,
|
|
7967
|
-
estimatedExecutionTime:
|
|
7979
|
+
estimatedExecutionTime: z268.number().optional(),
|
|
7968
7980
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7969
7981
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7970
7982
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7971
7983
|
destinations: DTOExportJobDestinations,
|
|
7972
|
-
exporterId:
|
|
7973
|
-
scheduleId:
|
|
7984
|
+
exporterId: z268.string(),
|
|
7985
|
+
scheduleId: z268.string().optional(),
|
|
7974
7986
|
result: DTOExportJobResult.optional(),
|
|
7975
|
-
brandPersistentId:
|
|
7976
|
-
themePersistentId:
|
|
7977
|
-
themePersistentIds:
|
|
7987
|
+
brandPersistentId: z268.string().optional(),
|
|
7988
|
+
themePersistentId: z268.string().optional(),
|
|
7989
|
+
themePersistentIds: z268.string().array().optional(),
|
|
7978
7990
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7979
7991
|
});
|
|
7980
|
-
var DTOExportJobResponse =
|
|
7992
|
+
var DTOExportJobResponse = z268.object({
|
|
7981
7993
|
job: DTOExportJob
|
|
7982
7994
|
});
|
|
7983
|
-
var DTOExportJobResponseLegacy =
|
|
7984
|
-
job:
|
|
7985
|
-
id:
|
|
7995
|
+
var DTOExportJobResponseLegacy = z268.object({
|
|
7996
|
+
job: z268.object({
|
|
7997
|
+
id: z268.string(),
|
|
7986
7998
|
status: ExportJobStatus
|
|
7987
7999
|
})
|
|
7988
8000
|
});
|
|
7989
|
-
var DTOExportJobCreateInput =
|
|
7990
|
-
designSystemId:
|
|
7991
|
-
designSystemVersionId:
|
|
7992
|
-
exporterId:
|
|
7993
|
-
brandId:
|
|
7994
|
-
themeId:
|
|
7995
|
-
themePersistentIds:
|
|
8001
|
+
var DTOExportJobCreateInput = z268.object({
|
|
8002
|
+
designSystemId: z268.string(),
|
|
8003
|
+
designSystemVersionId: z268.string(),
|
|
8004
|
+
exporterId: z268.string(),
|
|
8005
|
+
brandId: z268.string().optional(),
|
|
8006
|
+
themeId: z268.string().optional(),
|
|
8007
|
+
themePersistentIds: z268.string().array().optional(),
|
|
7996
8008
|
destinations: DTOExportJobDestinations,
|
|
7997
8009
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7998
|
-
previewMode:
|
|
8010
|
+
previewMode: z268.boolean().optional()
|
|
7999
8011
|
});
|
|
8000
8012
|
|
|
8001
8013
|
// src/api/dto/export/pipeline.ts
|
|
8002
|
-
import { z as
|
|
8003
|
-
var DTOPipelineListQuery =
|
|
8004
|
-
designSystemId:
|
|
8005
|
-
exporterId:
|
|
8006
|
-
latestJobsLimit:
|
|
8007
|
-
});
|
|
8008
|
-
var DTOPipeline =
|
|
8009
|
-
id:
|
|
8010
|
-
name:
|
|
8014
|
+
import { z as z269 } from "zod";
|
|
8015
|
+
var DTOPipelineListQuery = z269.object({
|
|
8016
|
+
designSystemId: z269.string().optional(),
|
|
8017
|
+
exporterId: z269.string().optional(),
|
|
8018
|
+
latestJobsLimit: z269.coerce.number().optional()
|
|
8019
|
+
});
|
|
8020
|
+
var DTOPipeline = z269.object({
|
|
8021
|
+
id: z269.string(),
|
|
8022
|
+
name: z269.string(),
|
|
8011
8023
|
eventType: PipelineEventType,
|
|
8012
|
-
isEnabled:
|
|
8013
|
-
workspaceId:
|
|
8014
|
-
designSystemId:
|
|
8015
|
-
exporterId:
|
|
8016
|
-
brandPersistentId:
|
|
8017
|
-
themePersistentId:
|
|
8018
|
-
themePersistentIds:
|
|
8024
|
+
isEnabled: z269.boolean(),
|
|
8025
|
+
workspaceId: z269.string(),
|
|
8026
|
+
designSystemId: z269.string(),
|
|
8027
|
+
exporterId: z269.string(),
|
|
8028
|
+
brandPersistentId: z269.string().optional(),
|
|
8029
|
+
themePersistentId: z269.string().optional(),
|
|
8030
|
+
themePersistentIds: z269.string().array().optional(),
|
|
8019
8031
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
8020
8032
|
...ExportDestinationsMap.shape,
|
|
8021
8033
|
latestJobs: DTOExportJob.array(),
|
|
8022
|
-
isExporterDeprecated:
|
|
8034
|
+
isExporterDeprecated: z269.boolean()
|
|
8023
8035
|
});
|
|
8024
|
-
var DTOPipelineListResponse =
|
|
8036
|
+
var DTOPipelineListResponse = z269.object({
|
|
8025
8037
|
pipelines: DTOPipeline.array()
|
|
8026
8038
|
});
|
|
8027
|
-
var DTOPipelineResponse =
|
|
8039
|
+
var DTOPipelineResponse = z269.object({
|
|
8028
8040
|
pipeline: DTOPipeline
|
|
8029
8041
|
});
|
|
8030
8042
|
|
|
8031
8043
|
// src/api/dto/documentation/publish.ts
|
|
8032
8044
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
8033
|
-
var DTOPublishDocumentationRequest =
|
|
8045
|
+
var DTOPublishDocumentationRequest = z270.object({
|
|
8034
8046
|
environment: PublishedDocEnvironment,
|
|
8035
8047
|
/**
|
|
8036
8048
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -8038,66 +8050,66 @@ var DTOPublishDocumentationRequest = z269.object({
|
|
|
8038
8050
|
*/
|
|
8039
8051
|
changes: DTOPublishDocumentationChanges.optional()
|
|
8040
8052
|
});
|
|
8041
|
-
var DTOPublishDocumentationResponse =
|
|
8053
|
+
var DTOPublishDocumentationResponse = z270.object({
|
|
8042
8054
|
job: DTOExportJob
|
|
8043
8055
|
});
|
|
8044
8056
|
|
|
8045
8057
|
// src/api/dto/documentation/room.ts
|
|
8046
|
-
import { z as
|
|
8047
|
-
var DTODocumentationPageRoom =
|
|
8048
|
-
id:
|
|
8058
|
+
import { z as z271 } from "zod";
|
|
8059
|
+
var DTODocumentationPageRoom = z271.object({
|
|
8060
|
+
id: z271.string()
|
|
8049
8061
|
});
|
|
8050
|
-
var DTODocumentationPageRoomResponse =
|
|
8062
|
+
var DTODocumentationPageRoomResponse = z271.object({
|
|
8051
8063
|
room: DTODocumentationPageRoom
|
|
8052
8064
|
});
|
|
8053
8065
|
|
|
8054
8066
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
8055
|
-
import
|
|
8056
|
-
var DTOFigmaComponentGroup =
|
|
8057
|
-
id:
|
|
8058
|
-
designSystemVersionId:
|
|
8059
|
-
persistentId:
|
|
8060
|
-
isRoot:
|
|
8061
|
-
brandId:
|
|
8067
|
+
import z272 from "zod";
|
|
8068
|
+
var DTOFigmaComponentGroup = z272.object({
|
|
8069
|
+
id: z272.string(),
|
|
8070
|
+
designSystemVersionId: z272.string(),
|
|
8071
|
+
persistentId: z272.string(),
|
|
8072
|
+
isRoot: z272.boolean(),
|
|
8073
|
+
brandId: z272.string(),
|
|
8062
8074
|
meta: DTOObjectMeta,
|
|
8063
|
-
childrenIds:
|
|
8075
|
+
childrenIds: z272.string().array()
|
|
8064
8076
|
});
|
|
8065
|
-
var DTOFigmaComponentGroupListResponse =
|
|
8077
|
+
var DTOFigmaComponentGroupListResponse = z272.object({
|
|
8066
8078
|
groups: DTOFigmaComponentGroup.array()
|
|
8067
8079
|
});
|
|
8068
8080
|
|
|
8069
8081
|
// src/api/dto/elements/components/figma-component.ts
|
|
8070
|
-
import { z as
|
|
8082
|
+
import { z as z273 } from "zod";
|
|
8071
8083
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
8072
|
-
var DTOFigmaComponentPropertyMap =
|
|
8073
|
-
var DTOFigmaComponent =
|
|
8074
|
-
id:
|
|
8075
|
-
persistentId:
|
|
8076
|
-
designSystemVersionId:
|
|
8077
|
-
brandId:
|
|
8078
|
-
thumbnailUrl:
|
|
8079
|
-
svgUrl:
|
|
8080
|
-
exportProperties:
|
|
8081
|
-
isAsset:
|
|
8084
|
+
var DTOFigmaComponentPropertyMap = z273.record(DTOFigmaComponentProperty);
|
|
8085
|
+
var DTOFigmaComponent = z273.object({
|
|
8086
|
+
id: z273.string(),
|
|
8087
|
+
persistentId: z273.string(),
|
|
8088
|
+
designSystemVersionId: z273.string(),
|
|
8089
|
+
brandId: z273.string(),
|
|
8090
|
+
thumbnailUrl: z273.string().optional(),
|
|
8091
|
+
svgUrl: z273.string().optional(),
|
|
8092
|
+
exportProperties: z273.object({
|
|
8093
|
+
isAsset: z273.boolean()
|
|
8082
8094
|
}),
|
|
8083
|
-
createdAt:
|
|
8084
|
-
updatedAt:
|
|
8095
|
+
createdAt: z273.coerce.date(),
|
|
8096
|
+
updatedAt: z273.coerce.date(),
|
|
8085
8097
|
meta: ObjectMeta,
|
|
8086
8098
|
originComponent: FigmaComponentOrigin.optional(),
|
|
8087
|
-
parentComponentPersistentId:
|
|
8088
|
-
childrenPersistentIds:
|
|
8099
|
+
parentComponentPersistentId: z273.string().optional(),
|
|
8100
|
+
childrenPersistentIds: z273.string().array().optional(),
|
|
8089
8101
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
8090
|
-
variantPropertyValues:
|
|
8102
|
+
variantPropertyValues: z273.record(z273.string()).optional()
|
|
8091
8103
|
});
|
|
8092
|
-
var DTOFigmaComponentListResponse =
|
|
8104
|
+
var DTOFigmaComponentListResponse = z273.object({
|
|
8093
8105
|
components: DTOFigmaComponent.array()
|
|
8094
8106
|
});
|
|
8095
8107
|
|
|
8096
8108
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8097
|
-
import { z as
|
|
8109
|
+
import { z as z275 } from "zod";
|
|
8098
8110
|
|
|
8099
8111
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
8100
|
-
import { z as
|
|
8112
|
+
import { z as z274 } from "zod";
|
|
8101
8113
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
8102
8114
|
sortOrder: true,
|
|
8103
8115
|
parentPersistentId: true,
|
|
@@ -8107,13 +8119,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8107
8119
|
data: true,
|
|
8108
8120
|
shortPersistentId: true
|
|
8109
8121
|
}).extend({
|
|
8110
|
-
title:
|
|
8111
|
-
isRoot:
|
|
8112
|
-
childrenIds:
|
|
8122
|
+
title: z274.string(),
|
|
8123
|
+
isRoot: z274.boolean(),
|
|
8124
|
+
childrenIds: z274.array(z274.string()),
|
|
8113
8125
|
groupBehavior: DocumentationGroupBehavior,
|
|
8114
|
-
shortPersistentId:
|
|
8126
|
+
shortPersistentId: z274.string(),
|
|
8115
8127
|
configuration: DTODocumentationItemConfigurationV2,
|
|
8116
|
-
type:
|
|
8128
|
+
type: z274.literal("Group"),
|
|
8117
8129
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
8118
8130
|
draftState: DTODocumentationDraftState.optional(),
|
|
8119
8131
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -8121,127 +8133,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
8121
8133
|
//** An approval state for frontend to utilize. */
|
|
8122
8134
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
8123
8135
|
});
|
|
8124
|
-
var DTOCreateDocumentationGroupInput =
|
|
8136
|
+
var DTOCreateDocumentationGroupInput = z274.object({
|
|
8125
8137
|
// Identifier
|
|
8126
|
-
persistentId:
|
|
8138
|
+
persistentId: z274.string(),
|
|
8127
8139
|
// Group properties
|
|
8128
|
-
title:
|
|
8140
|
+
title: z274.string(),
|
|
8129
8141
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
8130
8142
|
// Group placement properties
|
|
8131
|
-
afterPersistentId:
|
|
8132
|
-
parentPersistentId:
|
|
8143
|
+
afterPersistentId: z274.string().nullish(),
|
|
8144
|
+
parentPersistentId: z274.string()
|
|
8133
8145
|
});
|
|
8134
|
-
var DTOUpdateDocumentationGroupInput =
|
|
8146
|
+
var DTOUpdateDocumentationGroupInput = z274.object({
|
|
8135
8147
|
// Identifier of the group to update
|
|
8136
|
-
id:
|
|
8148
|
+
id: z274.string(),
|
|
8137
8149
|
// Group properties
|
|
8138
|
-
title:
|
|
8150
|
+
title: z274.string().optional(),
|
|
8139
8151
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
8140
8152
|
});
|
|
8141
|
-
var DTOMoveDocumentationGroupInput =
|
|
8153
|
+
var DTOMoveDocumentationGroupInput = z274.object({
|
|
8142
8154
|
// Identifier of the group to update
|
|
8143
|
-
id:
|
|
8155
|
+
id: z274.string(),
|
|
8144
8156
|
// Group placement properties
|
|
8145
|
-
parentPersistentId:
|
|
8146
|
-
afterPersistentId:
|
|
8157
|
+
parentPersistentId: z274.string(),
|
|
8158
|
+
afterPersistentId: z274.string().nullish()
|
|
8147
8159
|
});
|
|
8148
|
-
var DTODuplicateDocumentationGroupInput =
|
|
8160
|
+
var DTODuplicateDocumentationGroupInput = z274.object({
|
|
8149
8161
|
// Identifier of the group to duplicate from
|
|
8150
|
-
id:
|
|
8162
|
+
id: z274.string(),
|
|
8151
8163
|
// New group persistent id
|
|
8152
|
-
persistentId:
|
|
8164
|
+
persistentId: z274.string(),
|
|
8153
8165
|
// Group placement properties
|
|
8154
|
-
afterPersistentId:
|
|
8155
|
-
parentPersistentId:
|
|
8166
|
+
afterPersistentId: z274.string().nullish(),
|
|
8167
|
+
parentPersistentId: z274.string()
|
|
8156
8168
|
});
|
|
8157
|
-
var DTOCreateDocumentationTabInput =
|
|
8169
|
+
var DTOCreateDocumentationTabInput = z274.object({
|
|
8158
8170
|
// New group persistent id
|
|
8159
|
-
persistentId:
|
|
8171
|
+
persistentId: z274.string(),
|
|
8160
8172
|
// If this is page, we will attempt to convert it to tab
|
|
8161
8173
|
// If this is tab group, we will add a new tab to it
|
|
8162
|
-
fromItemPersistentId:
|
|
8163
|
-
tabName:
|
|
8174
|
+
fromItemPersistentId: z274.string(),
|
|
8175
|
+
tabName: z274.string()
|
|
8164
8176
|
});
|
|
8165
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
8177
|
+
var DTODeleteDocumentationTabGroupInput = z274.object({
|
|
8166
8178
|
// Deleted group id
|
|
8167
|
-
id:
|
|
8179
|
+
id: z274.string()
|
|
8168
8180
|
});
|
|
8169
|
-
var DTODeleteDocumentationGroupInput =
|
|
8181
|
+
var DTODeleteDocumentationGroupInput = z274.object({
|
|
8170
8182
|
// Identifier
|
|
8171
|
-
id:
|
|
8183
|
+
id: z274.string(),
|
|
8172
8184
|
// Deletion options
|
|
8173
|
-
deleteSubtree:
|
|
8185
|
+
deleteSubtree: z274.boolean().default(false)
|
|
8174
8186
|
});
|
|
8175
8187
|
|
|
8176
8188
|
// src/api/dto/elements/documentation/group-action.ts
|
|
8177
|
-
var SuccessPayload =
|
|
8178
|
-
success:
|
|
8189
|
+
var SuccessPayload = z275.object({
|
|
8190
|
+
success: z275.literal(true)
|
|
8179
8191
|
});
|
|
8180
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
8181
|
-
type:
|
|
8192
|
+
var DTODocumentationGroupCreateActionOutputV2 = z275.object({
|
|
8193
|
+
type: z275.literal("DocumentationGroupCreate"),
|
|
8182
8194
|
output: SuccessPayload
|
|
8183
8195
|
});
|
|
8184
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
8185
|
-
type:
|
|
8196
|
+
var DTODocumentationTabCreateActionOutputV2 = z275.object({
|
|
8197
|
+
type: z275.literal("DocumentationTabCreate"),
|
|
8186
8198
|
output: SuccessPayload
|
|
8187
8199
|
});
|
|
8188
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
8189
|
-
type:
|
|
8200
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z275.object({
|
|
8201
|
+
type: z275.literal("DocumentationGroupUpdate"),
|
|
8190
8202
|
output: SuccessPayload
|
|
8191
8203
|
});
|
|
8192
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
8193
|
-
type:
|
|
8204
|
+
var DTODocumentationGroupMoveActionOutputV2 = z275.object({
|
|
8205
|
+
type: z275.literal("DocumentationGroupMove"),
|
|
8194
8206
|
output: SuccessPayload
|
|
8195
8207
|
});
|
|
8196
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
8197
|
-
type:
|
|
8208
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z275.object({
|
|
8209
|
+
type: z275.literal("DocumentationGroupDuplicate"),
|
|
8198
8210
|
output: SuccessPayload
|
|
8199
8211
|
});
|
|
8200
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
8201
|
-
type:
|
|
8212
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z275.object({
|
|
8213
|
+
type: z275.literal("DocumentationGroupDelete"),
|
|
8202
8214
|
output: SuccessPayload
|
|
8203
8215
|
});
|
|
8204
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
8205
|
-
type:
|
|
8216
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z275.object({
|
|
8217
|
+
type: z275.literal("DocumentationTabGroupDelete"),
|
|
8206
8218
|
output: SuccessPayload
|
|
8207
8219
|
});
|
|
8208
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
8209
|
-
type:
|
|
8220
|
+
var DTODocumentationGroupCreateActionInputV2 = z275.object({
|
|
8221
|
+
type: z275.literal("DocumentationGroupCreate"),
|
|
8210
8222
|
input: DTOCreateDocumentationGroupInput
|
|
8211
8223
|
});
|
|
8212
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
8213
|
-
type:
|
|
8224
|
+
var DTODocumentationTabCreateActionInputV2 = z275.object({
|
|
8225
|
+
type: z275.literal("DocumentationTabCreate"),
|
|
8214
8226
|
input: DTOCreateDocumentationTabInput
|
|
8215
8227
|
});
|
|
8216
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
8217
|
-
type:
|
|
8228
|
+
var DTODocumentationGroupUpdateActionInputV2 = z275.object({
|
|
8229
|
+
type: z275.literal("DocumentationGroupUpdate"),
|
|
8218
8230
|
input: DTOUpdateDocumentationGroupInput
|
|
8219
8231
|
});
|
|
8220
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
8221
|
-
type:
|
|
8232
|
+
var DTODocumentationGroupMoveActionInputV2 = z275.object({
|
|
8233
|
+
type: z275.literal("DocumentationGroupMove"),
|
|
8222
8234
|
input: DTOMoveDocumentationGroupInput
|
|
8223
8235
|
});
|
|
8224
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
8225
|
-
type:
|
|
8236
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z275.object({
|
|
8237
|
+
type: z275.literal("DocumentationGroupDuplicate"),
|
|
8226
8238
|
input: DTODuplicateDocumentationGroupInput
|
|
8227
8239
|
});
|
|
8228
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
8229
|
-
type:
|
|
8240
|
+
var DTODocumentationGroupDeleteActionInputV2 = z275.object({
|
|
8241
|
+
type: z275.literal("DocumentationGroupDelete"),
|
|
8230
8242
|
input: DTODeleteDocumentationGroupInput
|
|
8231
8243
|
});
|
|
8232
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
8233
|
-
type:
|
|
8244
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z275.object({
|
|
8245
|
+
type: z275.literal("DocumentationTabGroupDelete"),
|
|
8234
8246
|
input: DTODeleteDocumentationTabGroupInput
|
|
8235
8247
|
});
|
|
8236
8248
|
|
|
8237
8249
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
8238
|
-
import { z as
|
|
8250
|
+
import { z as z277 } from "zod";
|
|
8239
8251
|
|
|
8240
8252
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
8241
|
-
import { z as
|
|
8242
|
-
var DocumentationColorV1 =
|
|
8243
|
-
aliasTo:
|
|
8244
|
-
value:
|
|
8253
|
+
import { z as z276 } from "zod";
|
|
8254
|
+
var DocumentationColorV1 = z276.object({
|
|
8255
|
+
aliasTo: z276.string().optional(),
|
|
8256
|
+
value: z276.string().optional()
|
|
8245
8257
|
});
|
|
8246
8258
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
8247
8259
|
foregroundColor: true,
|
|
@@ -8250,10 +8262,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
8250
8262
|
foregroundColor: DocumentationColorV1.optional(),
|
|
8251
8263
|
backgroundColor: DocumentationColorV1.optional()
|
|
8252
8264
|
});
|
|
8253
|
-
var DTODocumentationItemConfigurationV1 =
|
|
8254
|
-
showSidebar:
|
|
8255
|
-
isPrivate:
|
|
8256
|
-
isHidden:
|
|
8265
|
+
var DTODocumentationItemConfigurationV1 = z276.object({
|
|
8266
|
+
showSidebar: z276.boolean(),
|
|
8267
|
+
isPrivate: z276.boolean(),
|
|
8268
|
+
isHidden: z276.boolean(),
|
|
8257
8269
|
header: DTODocumentationItemHeaderV1
|
|
8258
8270
|
});
|
|
8259
8271
|
|
|
@@ -8267,145 +8279,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
8267
8279
|
data: true,
|
|
8268
8280
|
shortPersistentId: true
|
|
8269
8281
|
}).extend({
|
|
8270
|
-
title:
|
|
8271
|
-
isRoot:
|
|
8272
|
-
childrenIds:
|
|
8282
|
+
title: z277.string(),
|
|
8283
|
+
isRoot: z277.boolean(),
|
|
8284
|
+
childrenIds: z277.array(z277.string()),
|
|
8273
8285
|
groupBehavior: DocumentationGroupBehavior,
|
|
8274
|
-
shortPersistentId:
|
|
8275
|
-
type:
|
|
8286
|
+
shortPersistentId: z277.string(),
|
|
8287
|
+
type: z277.literal("Group")
|
|
8276
8288
|
});
|
|
8277
8289
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
8278
8290
|
configuration: DTODocumentationItemConfigurationV1
|
|
8279
8291
|
});
|
|
8280
8292
|
|
|
8281
8293
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
8282
|
-
import { z as
|
|
8283
|
-
var DTODocumentationHierarchyV2 =
|
|
8284
|
-
pages:
|
|
8294
|
+
import { z as z278 } from "zod";
|
|
8295
|
+
var DTODocumentationHierarchyV2 = z278.object({
|
|
8296
|
+
pages: z278.array(
|
|
8285
8297
|
DTODocumentationPageV2.extend({
|
|
8286
8298
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8287
8299
|
draftState: DTODocumentationDraftState.optional()
|
|
8288
8300
|
})
|
|
8289
8301
|
),
|
|
8290
|
-
groups:
|
|
8302
|
+
groups: z278.array(
|
|
8291
8303
|
DTODocumentationGroupV2.extend({
|
|
8292
8304
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8293
8305
|
draftState: DTODocumentationDraftState.optional()
|
|
8294
8306
|
})
|
|
8295
8307
|
),
|
|
8296
8308
|
/** True if the documentation was already published, false otherwise. */
|
|
8297
|
-
hasPublishedDocumentationContent:
|
|
8309
|
+
hasPublishedDocumentationContent: z278.boolean()
|
|
8298
8310
|
});
|
|
8299
8311
|
|
|
8300
8312
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
8301
|
-
import { z as
|
|
8302
|
-
var SuccessPayload2 =
|
|
8303
|
-
success:
|
|
8313
|
+
import { z as z279 } from "zod";
|
|
8314
|
+
var SuccessPayload2 = z279.object({
|
|
8315
|
+
success: z279.literal(true)
|
|
8304
8316
|
});
|
|
8305
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
8306
|
-
type:
|
|
8317
|
+
var DTODocumentationPageCreateActionOutputV2 = z279.object({
|
|
8318
|
+
type: z279.literal("DocumentationPageCreate"),
|
|
8307
8319
|
output: SuccessPayload2
|
|
8308
8320
|
});
|
|
8309
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
8310
|
-
type:
|
|
8321
|
+
var DTODocumentationPageUpdateActionOutputV2 = z279.object({
|
|
8322
|
+
type: z279.literal("DocumentationPageUpdate"),
|
|
8311
8323
|
output: SuccessPayload2
|
|
8312
8324
|
});
|
|
8313
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
8314
|
-
type:
|
|
8325
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z279.object({
|
|
8326
|
+
type: z279.literal("DocumentationPageUpdateDocument"),
|
|
8315
8327
|
output: SuccessPayload2
|
|
8316
8328
|
});
|
|
8317
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
8318
|
-
type:
|
|
8329
|
+
var DTODocumentationPageMoveActionOutputV2 = z279.object({
|
|
8330
|
+
type: z279.literal("DocumentationPageMove"),
|
|
8319
8331
|
output: SuccessPayload2
|
|
8320
8332
|
});
|
|
8321
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
8322
|
-
type:
|
|
8333
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z279.object({
|
|
8334
|
+
type: z279.literal("DocumentationPageDuplicate"),
|
|
8323
8335
|
output: SuccessPayload2
|
|
8324
8336
|
});
|
|
8325
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
8326
|
-
type:
|
|
8337
|
+
var DTODocumentationPageDeleteActionOutputV2 = z279.object({
|
|
8338
|
+
type: z279.literal("DocumentationPageDelete"),
|
|
8327
8339
|
output: SuccessPayload2
|
|
8328
8340
|
});
|
|
8329
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
8330
|
-
type:
|
|
8341
|
+
var DTODocumentationPageRestoreActionOutput = z279.object({
|
|
8342
|
+
type: z279.literal("DocumentationPageRestore"),
|
|
8331
8343
|
output: SuccessPayload2
|
|
8332
8344
|
});
|
|
8333
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
8334
|
-
type:
|
|
8345
|
+
var DTODocumentationGroupRestoreActionOutput = z279.object({
|
|
8346
|
+
type: z279.literal("DocumentationGroupRestore"),
|
|
8335
8347
|
output: SuccessPayload2
|
|
8336
8348
|
});
|
|
8337
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
8338
|
-
type:
|
|
8349
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z279.object({
|
|
8350
|
+
type: z279.literal("DocumentationPageApprovalStateChange"),
|
|
8339
8351
|
output: SuccessPayload2
|
|
8340
8352
|
});
|
|
8341
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
8342
|
-
type:
|
|
8353
|
+
var DTODocumentationPageCreateActionInputV2 = z279.object({
|
|
8354
|
+
type: z279.literal("DocumentationPageCreate"),
|
|
8343
8355
|
input: DTOCreateDocumentationPageInputV2
|
|
8344
8356
|
});
|
|
8345
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
8346
|
-
type:
|
|
8357
|
+
var DTODocumentationPageUpdateActionInputV2 = z279.object({
|
|
8358
|
+
type: z279.literal("DocumentationPageUpdate"),
|
|
8347
8359
|
input: DTOUpdateDocumentationPageInputV2
|
|
8348
8360
|
});
|
|
8349
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
8350
|
-
type:
|
|
8361
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z279.object({
|
|
8362
|
+
type: z279.literal("DocumentationPageUpdateDocument"),
|
|
8351
8363
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
8352
8364
|
});
|
|
8353
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
8354
|
-
type:
|
|
8365
|
+
var DTODocumentationPageMoveActionInputV2 = z279.object({
|
|
8366
|
+
type: z279.literal("DocumentationPageMove"),
|
|
8355
8367
|
input: DTOMoveDocumentationPageInputV2
|
|
8356
8368
|
});
|
|
8357
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
8358
|
-
type:
|
|
8369
|
+
var DTODocumentationPageDuplicateActionInputV2 = z279.object({
|
|
8370
|
+
type: z279.literal("DocumentationPageDuplicate"),
|
|
8359
8371
|
input: DTODuplicateDocumentationPageInputV2
|
|
8360
8372
|
});
|
|
8361
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
8362
|
-
type:
|
|
8373
|
+
var DTODocumentationPageDeleteActionInputV2 = z279.object({
|
|
8374
|
+
type: z279.literal("DocumentationPageDelete"),
|
|
8363
8375
|
input: DTODeleteDocumentationPageInputV2
|
|
8364
8376
|
});
|
|
8365
|
-
var DTODocumentationPageRestoreActionInput =
|
|
8366
|
-
type:
|
|
8377
|
+
var DTODocumentationPageRestoreActionInput = z279.object({
|
|
8378
|
+
type: z279.literal("DocumentationPageRestore"),
|
|
8367
8379
|
input: DTORestoreDocumentationPageInput
|
|
8368
8380
|
});
|
|
8369
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
8370
|
-
type:
|
|
8381
|
+
var DTODocumentationGroupRestoreActionInput = z279.object({
|
|
8382
|
+
type: z279.literal("DocumentationGroupRestore"),
|
|
8371
8383
|
input: DTORestoreDocumentationGroupInput
|
|
8372
8384
|
});
|
|
8373
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
8374
|
-
type:
|
|
8385
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z279.object({
|
|
8386
|
+
type: z279.literal("DocumentationPageApprovalStateChange"),
|
|
8375
8387
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
8376
8388
|
});
|
|
8377
8389
|
|
|
8378
8390
|
// src/api/dto/elements/documentation/page-content.ts
|
|
8379
|
-
import { z as
|
|
8391
|
+
import { z as z280 } from "zod";
|
|
8380
8392
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
8381
|
-
var DTODocumentationPageContentGetResponse =
|
|
8393
|
+
var DTODocumentationPageContentGetResponse = z280.object({
|
|
8382
8394
|
pageContent: DTODocumentationPageContent
|
|
8383
8395
|
});
|
|
8384
8396
|
|
|
8385
8397
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
8386
|
-
import { z as
|
|
8387
|
-
var DTODocumentationPageDependencies =
|
|
8388
|
-
id:
|
|
8389
|
-
designSystemVersionId:
|
|
8390
|
-
createdAt:
|
|
8391
|
-
updatedAt:
|
|
8392
|
-
documentationPageId:
|
|
8393
|
-
tokenPersistentIds:
|
|
8394
|
-
figmaComponentPersistentIds:
|
|
8395
|
-
componentPersistentIds:
|
|
8396
|
-
figmaNodePersistentIds:
|
|
8397
|
-
groupPersistentIds:
|
|
8398
|
-
propertyPersistentIds:
|
|
8399
|
-
themePersistentIds:
|
|
8400
|
-
documentationPagePersistentIds:
|
|
8401
|
-
storybookEntriesStoryIds:
|
|
8402
|
-
});
|
|
8403
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
8404
|
-
dependencies:
|
|
8398
|
+
import { z as z281 } from "zod";
|
|
8399
|
+
var DTODocumentationPageDependencies = z281.object({
|
|
8400
|
+
id: z281.string(),
|
|
8401
|
+
designSystemVersionId: z281.string(),
|
|
8402
|
+
createdAt: z281.coerce.date(),
|
|
8403
|
+
updatedAt: z281.coerce.date(),
|
|
8404
|
+
documentationPageId: z281.string(),
|
|
8405
|
+
tokenPersistentIds: z281.array(z281.string()),
|
|
8406
|
+
figmaComponentPersistentIds: z281.array(z281.string()),
|
|
8407
|
+
componentPersistentIds: z281.array(z281.string()),
|
|
8408
|
+
figmaNodePersistentIds: z281.array(z281.string()),
|
|
8409
|
+
groupPersistentIds: z281.array(z281.string()),
|
|
8410
|
+
propertyPersistentIds: z281.array(z281.string()),
|
|
8411
|
+
themePersistentIds: z281.array(z281.string()),
|
|
8412
|
+
documentationPagePersistentIds: z281.array(z281.string()),
|
|
8413
|
+
storybookEntriesStoryIds: z281.array(z281.string())
|
|
8414
|
+
});
|
|
8415
|
+
var DTODocumentationPageDependenciesGetResponse = z281.object({
|
|
8416
|
+
dependencies: z281.array(DTODocumentationPageDependencies)
|
|
8405
8417
|
});
|
|
8406
8418
|
|
|
8407
8419
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
8408
|
-
import { z as
|
|
8420
|
+
import { z as z282 } from "zod";
|
|
8409
8421
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
8410
8422
|
data: true,
|
|
8411
8423
|
meta: true,
|
|
@@ -8413,81 +8425,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
8413
8425
|
sortOrder: true
|
|
8414
8426
|
}).extend({
|
|
8415
8427
|
configuration: DTODocumentationItemConfigurationV1,
|
|
8416
|
-
blocks:
|
|
8417
|
-
title:
|
|
8418
|
-
path:
|
|
8428
|
+
blocks: z282.array(PageBlockV1),
|
|
8429
|
+
title: z282.string(),
|
|
8430
|
+
path: z282.string()
|
|
8419
8431
|
});
|
|
8420
8432
|
|
|
8421
8433
|
// src/api/dto/elements/documentation/settings.ts
|
|
8422
|
-
import { z as
|
|
8423
|
-
var DTODocumentationSettings =
|
|
8424
|
-
isDraftFeatureAdopted:
|
|
8425
|
-
isApprovalsFeatureEnabled:
|
|
8426
|
-
isApprovalRequiredForPublishing:
|
|
8434
|
+
import { z as z283 } from "zod";
|
|
8435
|
+
var DTODocumentationSettings = z283.object({
|
|
8436
|
+
isDraftFeatureAdopted: z283.boolean(),
|
|
8437
|
+
isApprovalsFeatureEnabled: z283.boolean(),
|
|
8438
|
+
isApprovalRequiredForPublishing: z283.boolean()
|
|
8427
8439
|
});
|
|
8428
8440
|
|
|
8429
8441
|
// src/api/dto/elements/documentation/structure.ts
|
|
8430
|
-
import { z as
|
|
8431
|
-
var DTODocumentationStructureItemType =
|
|
8432
|
-
var DTODocumentationStructureItemBase =
|
|
8442
|
+
import { z as z284 } from "zod";
|
|
8443
|
+
var DTODocumentationStructureItemType = z284.enum(["Group", "Page"]);
|
|
8444
|
+
var DTODocumentationStructureItemBase = z284.object({
|
|
8433
8445
|
type: DTODocumentationStructureItemType,
|
|
8434
|
-
id:
|
|
8435
|
-
designSystemVersionId:
|
|
8436
|
-
shortPersistentId:
|
|
8437
|
-
persistentId:
|
|
8438
|
-
title:
|
|
8439
|
-
createdAt:
|
|
8440
|
-
updatedAt:
|
|
8446
|
+
id: z284.string(),
|
|
8447
|
+
designSystemVersionId: z284.string(),
|
|
8448
|
+
shortPersistentId: z284.string(),
|
|
8449
|
+
persistentId: z284.string(),
|
|
8450
|
+
title: z284.string(),
|
|
8451
|
+
createdAt: z284.coerce.date(),
|
|
8452
|
+
updatedAt: z284.coerce.date()
|
|
8441
8453
|
});
|
|
8442
8454
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
8443
|
-
type:
|
|
8444
|
-
groupBehavior:
|
|
8445
|
-
childrenIds:
|
|
8446
|
-
isRoot:
|
|
8455
|
+
type: z284.literal(DTODocumentationStructureItemType.enum.Group),
|
|
8456
|
+
groupBehavior: z284.string(),
|
|
8457
|
+
childrenIds: z284.string().array(),
|
|
8458
|
+
isRoot: z284.boolean()
|
|
8447
8459
|
});
|
|
8448
8460
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
8449
|
-
type:
|
|
8450
|
-
path:
|
|
8461
|
+
type: z284.literal(DTODocumentationStructureItemType.enum.Page),
|
|
8462
|
+
path: z284.string()
|
|
8451
8463
|
});
|
|
8452
|
-
var DTODocumentationStructureItem =
|
|
8464
|
+
var DTODocumentationStructureItem = z284.discriminatedUnion("type", [
|
|
8453
8465
|
DTODocumentationStructureGroupItem,
|
|
8454
8466
|
DTODocumentationStructurePageItem
|
|
8455
8467
|
]);
|
|
8456
|
-
var DTODocumentationStructure =
|
|
8457
|
-
items:
|
|
8468
|
+
var DTODocumentationStructure = z284.object({
|
|
8469
|
+
items: z284.array(DTODocumentationStructureItem)
|
|
8458
8470
|
});
|
|
8459
8471
|
|
|
8460
8472
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
8461
|
-
import { z as
|
|
8462
|
-
var DTOFigmaNodeStructure =
|
|
8463
|
-
id:
|
|
8464
|
-
sourceId:
|
|
8473
|
+
import { z as z285 } from "zod";
|
|
8474
|
+
var DTOFigmaNodeStructure = z285.object({
|
|
8475
|
+
id: z285.string(),
|
|
8476
|
+
sourceId: z285.string(),
|
|
8465
8477
|
importState: FigmaNodeStructureStateV2,
|
|
8466
|
-
createdAt:
|
|
8467
|
-
updatedAt:
|
|
8478
|
+
createdAt: z285.coerce.date(),
|
|
8479
|
+
updatedAt: z285.coerce.date()
|
|
8468
8480
|
});
|
|
8469
8481
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
8470
8482
|
rootNode: FigmaFileStructureNode
|
|
8471
8483
|
});
|
|
8472
|
-
var DTOFigmaNodeStructureListResponse =
|
|
8484
|
+
var DTOFigmaNodeStructureListResponse = z285.object({
|
|
8473
8485
|
structures: DTOFigmaNodeStructure.array()
|
|
8474
8486
|
});
|
|
8475
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
8487
|
+
var DTOFigmaNodeStructureDetailResponse = z285.object({
|
|
8476
8488
|
structure: DTOFigmaNodeStructureDetail
|
|
8477
8489
|
});
|
|
8478
8490
|
|
|
8479
8491
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8480
|
-
import { z as
|
|
8492
|
+
import { z as z287 } from "zod";
|
|
8481
8493
|
|
|
8482
8494
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
8483
|
-
import { z as
|
|
8495
|
+
import { z as z286 } from "zod";
|
|
8484
8496
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
8485
|
-
var DTOFigmaNodeOrigin =
|
|
8486
|
-
sourceId:
|
|
8487
|
-
fileId:
|
|
8488
|
-
parentName:
|
|
8497
|
+
var DTOFigmaNodeOrigin = z286.object({
|
|
8498
|
+
sourceId: z286.string(),
|
|
8499
|
+
fileId: z286.string().optional(),
|
|
8500
|
+
parentName: z286.string().optional()
|
|
8489
8501
|
});
|
|
8490
|
-
var DTOFigmaNodeRenderInputBase =
|
|
8502
|
+
var DTOFigmaNodeRenderInputBase = z286.object({
|
|
8491
8503
|
/**
|
|
8492
8504
|
* Format in which the node must be rendered, png by default.
|
|
8493
8505
|
*/
|
|
@@ -8495,57 +8507,57 @@ var DTOFigmaNodeRenderInputBase = z285.object({
|
|
|
8495
8507
|
/**
|
|
8496
8508
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
8497
8509
|
*/
|
|
8498
|
-
scale:
|
|
8510
|
+
scale: z286.number().optional()
|
|
8499
8511
|
});
|
|
8500
8512
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8501
|
-
inputType:
|
|
8513
|
+
inputType: z286.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
8502
8514
|
/**
|
|
8503
8515
|
* Id of a design system's data source representing a linked Figma file
|
|
8504
8516
|
*/
|
|
8505
|
-
sourceId:
|
|
8517
|
+
sourceId: z286.string(),
|
|
8506
8518
|
/**
|
|
8507
8519
|
* Id of a node within the Figma file
|
|
8508
8520
|
*/
|
|
8509
|
-
figmaFileNodeId:
|
|
8521
|
+
figmaFileNodeId: z286.string()
|
|
8510
8522
|
});
|
|
8511
8523
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8512
|
-
inputType:
|
|
8524
|
+
inputType: z286.literal("URL"),
|
|
8513
8525
|
/**
|
|
8514
8526
|
* Id of a design system's data source representing a linked Figma file
|
|
8515
8527
|
*/
|
|
8516
|
-
figmaNodeUrl:
|
|
8528
|
+
figmaNodeUrl: z286.string(),
|
|
8517
8529
|
/**
|
|
8518
8530
|
* Brand persistent id to use in case a source has to be created for this render
|
|
8519
8531
|
*/
|
|
8520
|
-
brandPersistentId:
|
|
8532
|
+
brandPersistentId: z286.string()
|
|
8521
8533
|
});
|
|
8522
|
-
var DTOFigmaNodeRerenderInput =
|
|
8523
|
-
inputType:
|
|
8534
|
+
var DTOFigmaNodeRerenderInput = z286.object({
|
|
8535
|
+
inputType: z286.literal("Rerender"),
|
|
8524
8536
|
/**
|
|
8525
8537
|
* Persistent ID of an existing Figma node
|
|
8526
8538
|
*/
|
|
8527
|
-
figmaNodePersistentId:
|
|
8539
|
+
figmaNodePersistentId: z286.string()
|
|
8528
8540
|
});
|
|
8529
|
-
var DTOFigmaNodeRenderInput =
|
|
8541
|
+
var DTOFigmaNodeRenderInput = z286.discriminatedUnion("inputType", [
|
|
8530
8542
|
DTOFigmaNodeRenderIdInput,
|
|
8531
8543
|
DTOFigmaNodeRenderUrlInput,
|
|
8532
8544
|
DTOFigmaNodeRerenderInput
|
|
8533
8545
|
]);
|
|
8534
8546
|
|
|
8535
8547
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8536
|
-
var DTOFigmaNodeData =
|
|
8548
|
+
var DTOFigmaNodeData = z287.object({
|
|
8537
8549
|
// Id of the node in the Figma file
|
|
8538
|
-
figmaNodeId:
|
|
8550
|
+
figmaNodeId: z287.string(),
|
|
8539
8551
|
// Validity
|
|
8540
|
-
isValid:
|
|
8552
|
+
isValid: z287.boolean(),
|
|
8541
8553
|
// Asset data
|
|
8542
|
-
assetId:
|
|
8543
|
-
assetUrl:
|
|
8554
|
+
assetId: z287.string(),
|
|
8555
|
+
assetUrl: z287.string(),
|
|
8544
8556
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
8545
8557
|
// Asset metadata
|
|
8546
|
-
assetScale:
|
|
8547
|
-
assetWidth:
|
|
8548
|
-
assetHeight:
|
|
8558
|
+
assetScale: z287.number(),
|
|
8559
|
+
assetWidth: z287.number().optional(),
|
|
8560
|
+
assetHeight: z287.number().optional()
|
|
8549
8561
|
});
|
|
8550
8562
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
8551
8563
|
data: true,
|
|
@@ -8556,15 +8568,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
8556
8568
|
});
|
|
8557
8569
|
|
|
8558
8570
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
8559
|
-
import { z as
|
|
8560
|
-
var DTOFigmaNodeDataV2 =
|
|
8561
|
-
sceneNodeId:
|
|
8571
|
+
import { z as z288 } from "zod";
|
|
8572
|
+
var DTOFigmaNodeDataV2 = z288.object({
|
|
8573
|
+
sceneNodeId: z288.string(),
|
|
8562
8574
|
format: FigmaNodeRenderFormat,
|
|
8563
|
-
scale:
|
|
8575
|
+
scale: z288.number().optional(),
|
|
8564
8576
|
renderState: FigmaNodeRenderState,
|
|
8565
8577
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
8566
8578
|
renderError: FigmaNodeRenderError.optional(),
|
|
8567
|
-
hasSource:
|
|
8579
|
+
hasSource: z288.boolean()
|
|
8568
8580
|
});
|
|
8569
8581
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
8570
8582
|
data: true,
|
|
@@ -8575,113 +8587,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
8575
8587
|
});
|
|
8576
8588
|
|
|
8577
8589
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
8578
|
-
import { z as
|
|
8579
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
8580
|
-
type:
|
|
8581
|
-
figmaNodes:
|
|
8590
|
+
import { z as z289 } from "zod";
|
|
8591
|
+
var DTOFigmaNodeRenderActionOutput = z289.object({
|
|
8592
|
+
type: z289.literal("FigmaNodeRender"),
|
|
8593
|
+
figmaNodes: z289.array(DTOFigmaNode)
|
|
8582
8594
|
});
|
|
8583
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
8584
|
-
type:
|
|
8585
|
-
figmaNodes:
|
|
8595
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z289.object({
|
|
8596
|
+
type: z289.literal("FigmaNodeRenderAsync"),
|
|
8597
|
+
figmaNodes: z289.array(DTOFigmaNodeV2)
|
|
8586
8598
|
});
|
|
8587
|
-
var DTOFigmaNodeRenderActionInput =
|
|
8588
|
-
type:
|
|
8599
|
+
var DTOFigmaNodeRenderActionInput = z289.object({
|
|
8600
|
+
type: z289.literal("FigmaNodeRender"),
|
|
8589
8601
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
8590
8602
|
});
|
|
8591
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
8592
|
-
type:
|
|
8603
|
+
var DTOFigmaNodeRenderAsyncActionInput = z289.object({
|
|
8604
|
+
type: z289.literal("FigmaNodeRenderAsync"),
|
|
8593
8605
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
8594
8606
|
});
|
|
8595
8607
|
|
|
8596
8608
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8597
|
-
import { z as
|
|
8598
|
-
var DTOFrameNodeStructure =
|
|
8599
|
-
id:
|
|
8600
|
-
persistentId:
|
|
8601
|
-
designSystemVersionId:
|
|
8609
|
+
import { z as z290 } from "zod";
|
|
8610
|
+
var DTOFrameNodeStructure = z290.object({
|
|
8611
|
+
id: z290.string(),
|
|
8612
|
+
persistentId: z290.string(),
|
|
8613
|
+
designSystemVersionId: z290.string(),
|
|
8602
8614
|
origin: FigmaFileStructureOrigin,
|
|
8603
8615
|
assetsInFile: FigmaFileStructureStatistics
|
|
8604
8616
|
});
|
|
8605
|
-
var DTOFrameNodeStructureListResponse =
|
|
8617
|
+
var DTOFrameNodeStructureListResponse = z290.object({
|
|
8606
8618
|
structures: DTOFrameNodeStructure.array()
|
|
8607
8619
|
});
|
|
8608
8620
|
|
|
8609
8621
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8610
|
-
import { z as
|
|
8622
|
+
import { z as z291 } from "zod";
|
|
8611
8623
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8612
|
-
var DTOElementPropertyDefinitionOption =
|
|
8613
|
-
id:
|
|
8614
|
-
name:
|
|
8624
|
+
var DTOElementPropertyDefinitionOption = z291.object({
|
|
8625
|
+
id: z291.string(),
|
|
8626
|
+
name: z291.string(),
|
|
8615
8627
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8616
8628
|
});
|
|
8617
|
-
var DTOElementPropertyDefinition =
|
|
8618
|
-
id:
|
|
8619
|
-
designSystemVersionId:
|
|
8629
|
+
var DTOElementPropertyDefinition = z291.object({
|
|
8630
|
+
id: z291.string(),
|
|
8631
|
+
designSystemVersionId: z291.string(),
|
|
8620
8632
|
meta: DTOObjectMeta,
|
|
8621
|
-
persistentId:
|
|
8633
|
+
persistentId: z291.string(),
|
|
8622
8634
|
type: ElementPropertyTypeSchema,
|
|
8623
8635
|
targetElementType: ElementPropertyTargetType,
|
|
8624
|
-
codeName:
|
|
8625
|
-
options: nullishToOptional(
|
|
8636
|
+
codeName: z291.string().regex(CODE_NAME_REGEX2),
|
|
8637
|
+
options: nullishToOptional(z291.array(DTOElementPropertyDefinitionOption)),
|
|
8626
8638
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8627
|
-
isImmutable:
|
|
8639
|
+
isImmutable: z291.boolean(),
|
|
8628
8640
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8629
8641
|
});
|
|
8630
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8631
|
-
definitions:
|
|
8642
|
+
var DTOElementPropertyDefinitionListResponse = z291.object({
|
|
8643
|
+
definitions: z291.array(DTOElementPropertyDefinition)
|
|
8632
8644
|
});
|
|
8633
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8645
|
+
var DTOElementPropertyDefinitionResponse = z291.object({
|
|
8634
8646
|
definition: DTOElementPropertyDefinition
|
|
8635
8647
|
});
|
|
8636
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8648
|
+
var DTOElementPropertyDefinitionCreatePayload = z291.object({
|
|
8637
8649
|
meta: DTOObjectMeta,
|
|
8638
|
-
persistentId:
|
|
8650
|
+
persistentId: z291.string(),
|
|
8639
8651
|
type: ElementPropertyTypeSchema,
|
|
8640
8652
|
targetElementType: ElementPropertyTargetType,
|
|
8641
|
-
codeName:
|
|
8642
|
-
options: nullishToOptional(
|
|
8653
|
+
codeName: z291.string().regex(CODE_NAME_REGEX2),
|
|
8654
|
+
options: nullishToOptional(z291.array(DTOElementPropertyDefinitionOption)),
|
|
8643
8655
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8644
|
-
columnWidth:
|
|
8656
|
+
columnWidth: z291.number().max(1024).optional()
|
|
8645
8657
|
});
|
|
8646
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8658
|
+
var DTOElementPropertyDefinitionUpdatePayload = z291.object({
|
|
8647
8659
|
meta: DTOObjectMeta.optional(),
|
|
8648
|
-
codeName:
|
|
8649
|
-
options:
|
|
8660
|
+
codeName: z291.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8661
|
+
options: z291.array(DTOElementPropertyDefinitionOption).optional()
|
|
8650
8662
|
});
|
|
8651
8663
|
|
|
8652
8664
|
// src/api/dto/elements/properties/property-values.ts
|
|
8653
|
-
import { z as
|
|
8654
|
-
var DTOElementPropertyValue =
|
|
8655
|
-
id:
|
|
8656
|
-
designSystemVersionId:
|
|
8657
|
-
definitionId:
|
|
8658
|
-
targetElementId:
|
|
8659
|
-
value:
|
|
8660
|
-
valuePreview:
|
|
8661
|
-
});
|
|
8662
|
-
var DTOElementPropertyValueListResponse =
|
|
8663
|
-
values:
|
|
8664
|
-
});
|
|
8665
|
-
var DTOElementPropertyValueResponse =
|
|
8665
|
+
import { z as z292 } from "zod";
|
|
8666
|
+
var DTOElementPropertyValue = z292.object({
|
|
8667
|
+
id: z292.string(),
|
|
8668
|
+
designSystemVersionId: z292.string(),
|
|
8669
|
+
definitionId: z292.string(),
|
|
8670
|
+
targetElementId: z292.string(),
|
|
8671
|
+
value: z292.union([z292.string(), z292.number(), z292.boolean()]).optional(),
|
|
8672
|
+
valuePreview: z292.string().optional()
|
|
8673
|
+
});
|
|
8674
|
+
var DTOElementPropertyValueListResponse = z292.object({
|
|
8675
|
+
values: z292.array(DTOElementPropertyValue)
|
|
8676
|
+
});
|
|
8677
|
+
var DTOElementPropertyValueResponse = z292.object({
|
|
8666
8678
|
value: DTOElementPropertyValue
|
|
8667
8679
|
});
|
|
8668
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8669
|
-
type:
|
|
8670
|
-
output:
|
|
8680
|
+
var DTOElementPropertyValuesEditActionOutput = z292.object({
|
|
8681
|
+
type: z292.literal("ElementPropertyValuesEdit"),
|
|
8682
|
+
output: z292.object({ success: z292.literal(true) })
|
|
8671
8683
|
});
|
|
8672
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8673
|
-
definitionId:
|
|
8674
|
-
targetElementId:
|
|
8675
|
-
value:
|
|
8684
|
+
var DTOElementPropertyValueUpsertPaylod = z292.object({
|
|
8685
|
+
definitionId: z292.string(),
|
|
8686
|
+
targetElementId: z292.string(),
|
|
8687
|
+
value: z292.string().or(z292.number()).or(z292.boolean()).nullable()
|
|
8676
8688
|
});
|
|
8677
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8678
|
-
type:
|
|
8689
|
+
var DTOElementPropertyValuesEditActionInput = z292.object({
|
|
8690
|
+
type: z292.literal("ElementPropertyValuesEdit"),
|
|
8679
8691
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8680
8692
|
});
|
|
8681
8693
|
|
|
8682
8694
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8683
|
-
import { z as
|
|
8684
|
-
var DTOElementActionOutput =
|
|
8695
|
+
import { z as z293 } from "zod";
|
|
8696
|
+
var DTOElementActionOutput = z293.discriminatedUnion("type", [
|
|
8685
8697
|
// Documentation pages
|
|
8686
8698
|
DTODocumentationPageCreateActionOutputV2,
|
|
8687
8699
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8708,7 +8720,7 @@ var DTOElementActionOutput = z292.discriminatedUnion("type", [
|
|
|
8708
8720
|
// Element properties
|
|
8709
8721
|
DTOElementPropertyValuesEditActionOutput
|
|
8710
8722
|
]);
|
|
8711
|
-
var DTOElementActionInput =
|
|
8723
|
+
var DTOElementActionInput = z293.discriminatedUnion("type", [
|
|
8712
8724
|
// Documentation pages
|
|
8713
8725
|
DTODocumentationPageCreateActionInputV2,
|
|
8714
8726
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8735,78 +8747,78 @@ var DTOElementActionInput = z292.discriminatedUnion("type", [
|
|
|
8735
8747
|
// Element properties
|
|
8736
8748
|
DTOElementPropertyValuesEditActionInput
|
|
8737
8749
|
]).and(
|
|
8738
|
-
|
|
8739
|
-
tId:
|
|
8750
|
+
z293.object({
|
|
8751
|
+
tId: z293.string().optional()
|
|
8740
8752
|
})
|
|
8741
8753
|
);
|
|
8742
8754
|
|
|
8743
8755
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8744
|
-
import { z as
|
|
8745
|
-
var DTOElementsGetTypeFilter =
|
|
8746
|
-
var DTOElementsGetQuerySchema =
|
|
8747
|
-
types:
|
|
8748
|
-
responseVersion:
|
|
8756
|
+
import { z as z294 } from "zod";
|
|
8757
|
+
var DTOElementsGetTypeFilter = z294.enum(["FigmaNode"]);
|
|
8758
|
+
var DTOElementsGetQuerySchema = z294.object({
|
|
8759
|
+
types: z294.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8760
|
+
responseVersion: z294.coerce.number().default(1)
|
|
8749
8761
|
});
|
|
8750
|
-
var DTOElementsGetOutput =
|
|
8751
|
-
figmaNodes:
|
|
8762
|
+
var DTOElementsGetOutput = z294.object({
|
|
8763
|
+
figmaNodes: z294.array(DTOFigmaNode).optional()
|
|
8752
8764
|
});
|
|
8753
|
-
var DTOElementsGetOutputV2 =
|
|
8754
|
-
figmaNodes:
|
|
8765
|
+
var DTOElementsGetOutputV2 = z294.object({
|
|
8766
|
+
figmaNodes: z294.array(DTOFigmaNodeV2).optional()
|
|
8755
8767
|
});
|
|
8756
8768
|
|
|
8757
8769
|
// src/api/dto/figma-components/assets/download.ts
|
|
8758
|
-
import { z as
|
|
8759
|
-
var DTOAssetRenderConfiguration =
|
|
8760
|
-
prefix:
|
|
8761
|
-
suffix:
|
|
8762
|
-
scale:
|
|
8763
|
-
format:
|
|
8764
|
-
});
|
|
8765
|
-
var DTORenderedAssetFile =
|
|
8766
|
-
assetId:
|
|
8767
|
-
fileName:
|
|
8768
|
-
sourceUrl:
|
|
8770
|
+
import { z as z295 } from "zod";
|
|
8771
|
+
var DTOAssetRenderConfiguration = z295.object({
|
|
8772
|
+
prefix: z295.string().optional(),
|
|
8773
|
+
suffix: z295.string().optional(),
|
|
8774
|
+
scale: z295.enum(["x1", "x2", "x3", "x4"]),
|
|
8775
|
+
format: z295.enum(["png", "pdf", "svg"])
|
|
8776
|
+
});
|
|
8777
|
+
var DTORenderedAssetFile = z295.object({
|
|
8778
|
+
assetId: z295.string(),
|
|
8779
|
+
fileName: z295.string(),
|
|
8780
|
+
sourceUrl: z295.string(),
|
|
8769
8781
|
settings: DTOAssetRenderConfiguration,
|
|
8770
|
-
originalName:
|
|
8782
|
+
originalName: z295.string()
|
|
8771
8783
|
});
|
|
8772
|
-
var DTODownloadAssetsRequest =
|
|
8773
|
-
persistentIds:
|
|
8784
|
+
var DTODownloadAssetsRequest = z295.object({
|
|
8785
|
+
persistentIds: z295.array(z295.string().uuid()).optional(),
|
|
8774
8786
|
settings: DTOAssetRenderConfiguration.array()
|
|
8775
8787
|
});
|
|
8776
|
-
var DTODownloadAssetsResponse =
|
|
8788
|
+
var DTODownloadAssetsResponse = z295.object({
|
|
8777
8789
|
items: DTORenderedAssetFile.array()
|
|
8778
8790
|
});
|
|
8779
8791
|
|
|
8780
8792
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
8781
|
-
import { z as
|
|
8782
|
-
var DTOFigmaNodeResponse =
|
|
8793
|
+
import { z as z296 } from "zod";
|
|
8794
|
+
var DTOFigmaNodeResponse = z296.object({
|
|
8783
8795
|
nodes: FigmaExporterAnyDesignNodeSchema
|
|
8784
8796
|
});
|
|
8785
8797
|
|
|
8786
8798
|
// src/api/dto/forge/agent.ts
|
|
8787
|
-
import { z as
|
|
8799
|
+
import { z as z297 } from "zod";
|
|
8788
8800
|
var DTOForgeAgent = ForgeAgent;
|
|
8789
8801
|
var DTOForgeAvatarBuilder = ForgeAvatarBuilder;
|
|
8790
8802
|
var DTOCreateForgeAgent = DTOForgeAgent.omit({ projectId: true });
|
|
8791
|
-
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id:
|
|
8792
|
-
var DTOCreateForgeAgentResponse =
|
|
8803
|
+
var DTOUpdateForgeAgent = DTOCreateForgeAgent.extend({ id: z297.string() });
|
|
8804
|
+
var DTOCreateForgeAgentResponse = z297.object({
|
|
8793
8805
|
agent: DTOForgeAgent
|
|
8794
8806
|
});
|
|
8795
|
-
var DTOUGetForgeAgentResponse =
|
|
8807
|
+
var DTOUGetForgeAgentResponse = z297.object({
|
|
8796
8808
|
agent: DTOForgeAgent.nullable()
|
|
8797
8809
|
});
|
|
8798
|
-
var DTOUpdateForgeAgentResponse =
|
|
8810
|
+
var DTOUpdateForgeAgentResponse = z297.object({
|
|
8799
8811
|
agent: DTOForgeAgent.nullable()
|
|
8800
8812
|
});
|
|
8801
|
-
var DTOForgeAgentsListResponse =
|
|
8802
|
-
agents:
|
|
8813
|
+
var DTOForgeAgentsListResponse = z297.object({
|
|
8814
|
+
agents: z297.array(DTOForgeAgent)
|
|
8803
8815
|
});
|
|
8804
|
-
var DTODeleteForgeAgentResponse =
|
|
8805
|
-
ok:
|
|
8816
|
+
var DTODeleteForgeAgentResponse = z297.object({
|
|
8817
|
+
ok: z297.literal(true)
|
|
8806
8818
|
});
|
|
8807
8819
|
|
|
8808
8820
|
// src/api/dto/forge/artifact.ts
|
|
8809
|
-
import { z as
|
|
8821
|
+
import { z as z298 } from "zod";
|
|
8810
8822
|
var DTOCreateForgeBuildArtifact = ForgeBuildArtifact.omit({
|
|
8811
8823
|
id: true,
|
|
8812
8824
|
createdAt: true,
|
|
@@ -8827,48 +8839,48 @@ var DTOCreateForgeSpecArtifact = ForgeSpecArtifact.omit({
|
|
|
8827
8839
|
createdAt: true,
|
|
8828
8840
|
projectIterationId: true
|
|
8829
8841
|
});
|
|
8830
|
-
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id:
|
|
8831
|
-
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id:
|
|
8832
|
-
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id:
|
|
8833
|
-
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id:
|
|
8842
|
+
var DTOUpdateForgeBuildArtifact = DTOCreateForgeBuildArtifact.extend({ id: z298.string() });
|
|
8843
|
+
var DTOUpdateForgeFileArtifact = DTOCreateForgeFileArtifact.extend({ id: z298.string() });
|
|
8844
|
+
var DTOUpdateForgeFigmaArtifact = DTOCreateForgeFigmaArtifact.extend({ id: z298.string() });
|
|
8845
|
+
var DTOUpdateForgeSpecArtifact = DTOCreateForgeSpecArtifact.extend({ id: z298.string() });
|
|
8834
8846
|
var DTOForgeArtifact = ForgeArtifact;
|
|
8835
8847
|
var DTOForgeBuildArtifact = ForgeBuildArtifact;
|
|
8836
8848
|
var DTOForgeFileArtifact = ForgeFileArtifact;
|
|
8837
8849
|
var DTOForgeFigmaArtifact = ForgeFigmaArtifact;
|
|
8838
8850
|
var DTOForgeSpecArtifact = ForgeSpecArtifact;
|
|
8839
|
-
var DTOCreateForgeArtifact =
|
|
8851
|
+
var DTOCreateForgeArtifact = z298.union([
|
|
8840
8852
|
DTOCreateForgeBuildArtifact,
|
|
8841
8853
|
DTOCreateForgeFileArtifact,
|
|
8842
8854
|
DTOCreateForgeFigmaArtifact,
|
|
8843
8855
|
DTOCreateForgeSpecArtifact
|
|
8844
8856
|
]);
|
|
8845
|
-
var DTOUpdateForgeArtifact =
|
|
8857
|
+
var DTOUpdateForgeArtifact = z298.union([
|
|
8846
8858
|
DTOUpdateForgeFileArtifact,
|
|
8847
8859
|
DTOUpdateForgeBuildArtifact,
|
|
8848
8860
|
DTOUpdateForgeSpecArtifact,
|
|
8849
8861
|
DTOUpdateForgeFigmaArtifact
|
|
8850
8862
|
]);
|
|
8851
|
-
var DTOCreateForgeArtifactResponse =
|
|
8863
|
+
var DTOCreateForgeArtifactResponse = z298.object({
|
|
8852
8864
|
artifact: DTOForgeArtifact
|
|
8853
8865
|
});
|
|
8854
|
-
var DTOUpdateForgeArtifactResponse =
|
|
8866
|
+
var DTOUpdateForgeArtifactResponse = z298.object({
|
|
8855
8867
|
artifact: DTOForgeArtifact.nullable()
|
|
8856
8868
|
});
|
|
8857
|
-
var DTODeleteForgeArtifactResponse =
|
|
8858
|
-
ok:
|
|
8869
|
+
var DTODeleteForgeArtifactResponse = z298.object({
|
|
8870
|
+
ok: z298.literal(true)
|
|
8859
8871
|
});
|
|
8860
|
-
var DTOForgeArtifactsListResponse =
|
|
8861
|
-
artifacts:
|
|
8872
|
+
var DTOForgeArtifactsListResponse = z298.object({
|
|
8873
|
+
artifacts: z298.array(DTOForgeArtifact)
|
|
8862
8874
|
});
|
|
8863
|
-
var DTOForgeArtifactGetResponse =
|
|
8875
|
+
var DTOForgeArtifactGetResponse = z298.object({
|
|
8864
8876
|
artifact: DTOForgeArtifact.nullable()
|
|
8865
8877
|
});
|
|
8866
8878
|
|
|
8867
8879
|
// src/api/dto/forge/iteration-message.ts
|
|
8868
|
-
import { z as
|
|
8880
|
+
import { z as z300 } from "zod";
|
|
8869
8881
|
|
|
8870
8882
|
// src/api/dto/forge/participant.ts
|
|
8871
|
-
import { z as
|
|
8883
|
+
import { z as z299 } from "zod";
|
|
8872
8884
|
var DTOForgeParticipant = ForgeParticipant.omit({ agent: true, user: true }).extend({
|
|
8873
8885
|
agent: DTOForgeAgent.optional(),
|
|
8874
8886
|
user: DTOUser.optional()
|
|
@@ -8878,20 +8890,20 @@ var DTOCreateForgeParticipant = DTOForgeParticipant.omit({
|
|
|
8878
8890
|
agent: true,
|
|
8879
8891
|
user: true
|
|
8880
8892
|
});
|
|
8881
|
-
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id:
|
|
8882
|
-
var DTOCreateForgeParticipantResponse =
|
|
8893
|
+
var DTOUpdateForgeParticipant = DTOCreateForgeParticipant.extend({ id: z299.string() });
|
|
8894
|
+
var DTOCreateForgeParticipantResponse = z299.object({
|
|
8883
8895
|
participant: DTOForgeParticipant
|
|
8884
8896
|
});
|
|
8885
|
-
var DTOUpdateForgeParticipantResponse =
|
|
8897
|
+
var DTOUpdateForgeParticipantResponse = z299.object({
|
|
8886
8898
|
participant: DTOForgeParticipant.nullable()
|
|
8887
8899
|
});
|
|
8888
|
-
var DTODeleteForgeParticipantResponse =
|
|
8889
|
-
ok:
|
|
8900
|
+
var DTODeleteForgeParticipantResponse = z299.object({
|
|
8901
|
+
ok: z299.literal(true)
|
|
8890
8902
|
});
|
|
8891
|
-
var DTOForgeParticipantsListResponse =
|
|
8892
|
-
participants:
|
|
8903
|
+
var DTOForgeParticipantsListResponse = z299.object({
|
|
8904
|
+
participants: z299.array(DTOForgeParticipant)
|
|
8893
8905
|
});
|
|
8894
|
-
var DTOForgeParticipantGetResponse =
|
|
8906
|
+
var DTOForgeParticipantGetResponse = z299.object({
|
|
8895
8907
|
participant: DTOForgeParticipant.nullable()
|
|
8896
8908
|
});
|
|
8897
8909
|
|
|
@@ -8903,25 +8915,25 @@ var DTOCreateForgeIterationMessage = DTOForgeIterationMessage.omit({
|
|
|
8903
8915
|
projectIterationId: true,
|
|
8904
8916
|
participant: true
|
|
8905
8917
|
});
|
|
8906
|
-
var DTOGetForgeIterationMessageResponse =
|
|
8918
|
+
var DTOGetForgeIterationMessageResponse = z300.object({
|
|
8907
8919
|
message: DTOForgeIterationMessage.nullable()
|
|
8908
8920
|
});
|
|
8909
|
-
var DTOForgeIterationMessagesListResponse =
|
|
8910
|
-
messages:
|
|
8921
|
+
var DTOForgeIterationMessagesListResponse = z300.object({
|
|
8922
|
+
messages: z300.array(DTOForgeIterationMessage)
|
|
8911
8923
|
});
|
|
8912
|
-
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id:
|
|
8913
|
-
var DTOCreateForgeIterationMessageResponse =
|
|
8924
|
+
var DTOUpdateForgeIterationMessage = DTOCreateForgeIterationMessage.extend({ id: z300.string() });
|
|
8925
|
+
var DTOCreateForgeIterationMessageResponse = z300.object({
|
|
8914
8926
|
message: DTOForgeIterationMessage
|
|
8915
8927
|
});
|
|
8916
|
-
var DTOUpdateForgeIterationMessageResponse =
|
|
8928
|
+
var DTOUpdateForgeIterationMessageResponse = z300.object({
|
|
8917
8929
|
message: DTOForgeIterationMessage.nullable()
|
|
8918
8930
|
});
|
|
8919
|
-
var DTODeleteForgeIterationMessageResponse =
|
|
8920
|
-
ok:
|
|
8931
|
+
var DTODeleteForgeIterationMessageResponse = z300.object({
|
|
8932
|
+
ok: z300.literal(true)
|
|
8921
8933
|
});
|
|
8922
8934
|
|
|
8923
8935
|
// src/api/dto/forge/project-context.ts
|
|
8924
|
-
import { z as
|
|
8936
|
+
import { z as z301 } from "zod";
|
|
8925
8937
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
8926
8938
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
8927
8939
|
definition: true,
|
|
@@ -8933,17 +8945,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
8933
8945
|
tailwindConfig: true,
|
|
8934
8946
|
styling: true
|
|
8935
8947
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
8936
|
-
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id:
|
|
8937
|
-
var DTOForgeProjectContextGetResponse =
|
|
8938
|
-
var DTOForgeProjectContextListResponse =
|
|
8939
|
-
var DTOForgeProjectContextCreateResponse =
|
|
8940
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
8941
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
8942
|
-
ok:
|
|
8948
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z301.string() });
|
|
8949
|
+
var DTOForgeProjectContextGetResponse = z301.object({ context: DTOForgeProjectContext.nullable() });
|
|
8950
|
+
var DTOForgeProjectContextListResponse = z301.object({ contexts: z301.array(DTOForgeProjectContext) });
|
|
8951
|
+
var DTOForgeProjectContextCreateResponse = z301.object({ context: DTOForgeProjectContext });
|
|
8952
|
+
var DTOForgeProjectContextUpdateResponse = z301.object({ context: DTOForgeProjectContext.nullable() });
|
|
8953
|
+
var DTOForgeProjectContextRemoveResponse = z301.object({
|
|
8954
|
+
ok: z301.literal(true)
|
|
8943
8955
|
});
|
|
8944
8956
|
|
|
8945
8957
|
// src/api/dto/forge/project-invitation.ts
|
|
8946
|
-
import { z as
|
|
8958
|
+
import { z as z302 } from "zod";
|
|
8947
8959
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
8948
8960
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
8949
8961
|
email: true,
|
|
@@ -8955,24 +8967,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({ ema
|
|
|
8955
8967
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
8956
8968
|
email: true
|
|
8957
8969
|
});
|
|
8958
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
8959
|
-
invitations:
|
|
8970
|
+
var DTOForgeProjectInvitationsListResponse = z302.object({
|
|
8971
|
+
invitations: z302.array(DTOForgeProjectInvitation)
|
|
8960
8972
|
});
|
|
8961
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
8973
|
+
var DTOForgeProjectInvitationGetResponse = z302.object({
|
|
8962
8974
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
8963
8975
|
});
|
|
8964
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
8976
|
+
var DTOForgeProjectInvitationCreateResponse = z302.object({
|
|
8965
8977
|
invitation: DTOForgeProjectInvitation
|
|
8966
8978
|
});
|
|
8967
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
8979
|
+
var DTOForgeProjectInvitationUpdateResponse = z302.object({
|
|
8968
8980
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
8969
8981
|
});
|
|
8970
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
8971
|
-
ok:
|
|
8982
|
+
var DTOForgeProjectInvitationRemoveResponse = z302.object({
|
|
8983
|
+
ok: z302.literal(true)
|
|
8972
8984
|
});
|
|
8973
8985
|
|
|
8974
8986
|
// src/api/dto/forge/project-iteration.ts
|
|
8975
|
-
import { z as
|
|
8987
|
+
import { z as z303 } from "zod";
|
|
8976
8988
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
8977
8989
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
8978
8990
|
artifacts: true,
|
|
@@ -8983,7 +8995,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
8983
8995
|
messages: DTOForgeIterationMessage.array(),
|
|
8984
8996
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
8985
8997
|
});
|
|
8986
|
-
var DTOGetForgeProjectIterationResponse =
|
|
8998
|
+
var DTOGetForgeProjectIterationResponse = z303.object({
|
|
8987
8999
|
iteration: DTOForgeProjectIteration.nullable()
|
|
8988
9000
|
});
|
|
8989
9001
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -8993,20 +9005,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
8993
9005
|
mergeMeta: true,
|
|
8994
9006
|
createdAt: true
|
|
8995
9007
|
});
|
|
8996
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
8997
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9008
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z303.string() });
|
|
9009
|
+
var DTOCreateForgeProjectIterationResponse = z303.object({
|
|
8998
9010
|
iteration: DTOForgeProjectIteration
|
|
8999
9011
|
});
|
|
9000
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9012
|
+
var DTOUpdateForgeProjectIterationResponse = z303.object({
|
|
9001
9013
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9002
9014
|
});
|
|
9003
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9004
|
-
ok:
|
|
9015
|
+
var DTODeleteForgeProjectIterationResponse = z303.object({
|
|
9016
|
+
ok: z303.literal(true)
|
|
9005
9017
|
});
|
|
9006
|
-
var DTOForgeProjectIterationListResponse =
|
|
9018
|
+
var DTOForgeProjectIterationListResponse = z303.object({ iterations: z303.array(DTOForgeProjectIteration) });
|
|
9007
9019
|
|
|
9008
9020
|
// src/api/dto/forge/project-member.ts
|
|
9009
|
-
import { z as
|
|
9021
|
+
import { z as z304 } from "zod";
|
|
9010
9022
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9011
9023
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9012
9024
|
user: DTOUser,
|
|
@@ -9020,27 +9032,27 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: tru
|
|
|
9020
9032
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9021
9033
|
userId: true
|
|
9022
9034
|
});
|
|
9023
|
-
var DTOForgeProjectMembersListResponse =
|
|
9024
|
-
members:
|
|
9035
|
+
var DTOForgeProjectMembersListResponse = z304.object({
|
|
9036
|
+
members: z304.array(DTOForgeProjectMember)
|
|
9025
9037
|
});
|
|
9026
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9038
|
+
var DTOForgeProjectMemberGetResponse = z304.object({
|
|
9027
9039
|
member: DTOForgeProjectMember.nullable()
|
|
9028
9040
|
});
|
|
9029
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9041
|
+
var DTOForgeProjectMemberCreateResponse = z304.object({
|
|
9030
9042
|
member: DTOForgeProjectMember
|
|
9031
9043
|
});
|
|
9032
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9044
|
+
var DTOForgeProjectMemberUpdateResponse = z304.object({
|
|
9033
9045
|
member: DTOForgeProjectMember.nullable()
|
|
9034
9046
|
});
|
|
9035
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9036
|
-
ok:
|
|
9047
|
+
var DTOForgeProjectMemberRemoveResponse = z304.object({
|
|
9048
|
+
ok: z304.literal(true)
|
|
9037
9049
|
});
|
|
9038
9050
|
|
|
9039
9051
|
// src/api/dto/forge/project.ts
|
|
9040
|
-
import { z as
|
|
9052
|
+
import { z as z305 } from "zod";
|
|
9041
9053
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9042
9054
|
context: ForgeProjectContext,
|
|
9043
|
-
members:
|
|
9055
|
+
members: z305.array(DTOForgeProjectMember)
|
|
9044
9056
|
});
|
|
9045
9057
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9046
9058
|
instruction: true,
|
|
@@ -9048,151 +9060,152 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9048
9060
|
meta: true,
|
|
9049
9061
|
tags: true,
|
|
9050
9062
|
accessMode: true,
|
|
9051
|
-
fpContextId: true
|
|
9063
|
+
fpContextId: true,
|
|
9064
|
+
isArchived: true
|
|
9052
9065
|
});
|
|
9053
|
-
var DTOUpdateForgeProject = DTOCreateForgeProject.extend({ id:
|
|
9054
|
-
var DTOForgeProjectGetResponse =
|
|
9055
|
-
var DTOForgeProjectsListResponse =
|
|
9056
|
-
var DTOCreateForgeProjectResponse =
|
|
9066
|
+
var DTOUpdateForgeProject = DTOCreateForgeProject.extend({ id: z305.string() });
|
|
9067
|
+
var DTOForgeProjectGetResponse = z305.object({ project: DTOForgeProject.nullable() });
|
|
9068
|
+
var DTOForgeProjectsListResponse = z305.object({ projects: z305.array(DTOForgeProject) });
|
|
9069
|
+
var DTOCreateForgeProjectResponse = z305.object({
|
|
9057
9070
|
project: DTOForgeProject
|
|
9058
9071
|
});
|
|
9059
|
-
var DTOUpdateForgeProjectResponse =
|
|
9072
|
+
var DTOUpdateForgeProjectResponse = z305.object({
|
|
9060
9073
|
project: DTOForgeProject.nullable()
|
|
9061
9074
|
});
|
|
9062
|
-
var DTOUGetForgeProjectResponse =
|
|
9075
|
+
var DTOUGetForgeProjectResponse = z305.object({
|
|
9063
9076
|
project: DTOForgeProject
|
|
9064
9077
|
});
|
|
9065
|
-
var DTORemoveForgeProjectResponse =
|
|
9078
|
+
var DTORemoveForgeProjectResponse = z305.object({ ok: z305.literal(true) });
|
|
9066
9079
|
|
|
9067
9080
|
// src/api/dto/forge/threads.ts
|
|
9068
|
-
import { z as
|
|
9081
|
+
import { z as z306 } from "zod";
|
|
9069
9082
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9070
9083
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9071
9084
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9072
9085
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9073
|
-
var DTOForgeChatThreadCreateInput =
|
|
9074
|
-
title:
|
|
9086
|
+
var DTOForgeChatThreadCreateInput = z306.object({
|
|
9087
|
+
title: z306.string().optional()
|
|
9075
9088
|
});
|
|
9076
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9089
|
+
var DTOForgeChatThreadCreateResponse = z306.object({
|
|
9077
9090
|
thread: DTOForgeChatThread
|
|
9078
9091
|
});
|
|
9079
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9080
|
-
title:
|
|
9092
|
+
var DTOForgeChatThreadUpdateInput = z306.object({
|
|
9093
|
+
title: z306.string()
|
|
9081
9094
|
});
|
|
9082
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9095
|
+
var DTOForgeChatThreadUpdateResponse = z306.object({
|
|
9083
9096
|
thread: DTOForgeChatThread
|
|
9084
9097
|
});
|
|
9085
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9086
|
-
success:
|
|
9098
|
+
var DTOForgeChatThreadDeleteResponse = z306.object({
|
|
9099
|
+
success: z306.boolean()
|
|
9087
9100
|
});
|
|
9088
|
-
var DTOForgeChatThreadListQuery =
|
|
9089
|
-
limit:
|
|
9090
|
-
offset:
|
|
9101
|
+
var DTOForgeChatThreadListQuery = z306.object({
|
|
9102
|
+
limit: z306.number().optional(),
|
|
9103
|
+
offset: z306.number().optional()
|
|
9091
9104
|
});
|
|
9092
|
-
var DTOForgeChatThreadListResponse =
|
|
9093
|
-
threads:
|
|
9094
|
-
pagination:
|
|
9095
|
-
offset:
|
|
9096
|
-
limit:
|
|
9097
|
-
total:
|
|
9105
|
+
var DTOForgeChatThreadListResponse = z306.object({
|
|
9106
|
+
threads: z306.array(DTOForgeChatThread),
|
|
9107
|
+
pagination: z306.object({
|
|
9108
|
+
offset: z306.number(),
|
|
9109
|
+
limit: z306.number(),
|
|
9110
|
+
total: z306.number()
|
|
9098
9111
|
})
|
|
9099
9112
|
});
|
|
9100
|
-
var DTOForgeChatMessageCreateInput =
|
|
9101
|
-
payload:
|
|
9113
|
+
var DTOForgeChatMessageCreateInput = z306.object({
|
|
9114
|
+
payload: z306.string(),
|
|
9102
9115
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9103
|
-
opikTraceId:
|
|
9116
|
+
opikTraceId: z306.string().optional()
|
|
9104
9117
|
});
|
|
9105
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9118
|
+
var DTOForgeChatMessageCreateResponse = z306.object({
|
|
9106
9119
|
message: DTOForgeChatMessage
|
|
9107
9120
|
});
|
|
9108
|
-
var DTOForgeChatMessageListQuery =
|
|
9109
|
-
limit:
|
|
9110
|
-
offset:
|
|
9121
|
+
var DTOForgeChatMessageListQuery = z306.object({
|
|
9122
|
+
limit: z306.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9123
|
+
offset: z306.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9111
9124
|
});
|
|
9112
|
-
var DTOForgeChatMessageListResponse =
|
|
9113
|
-
messages:
|
|
9114
|
-
totalCount:
|
|
9115
|
-
hasMore:
|
|
9125
|
+
var DTOForgeChatMessageListResponse = z306.object({
|
|
9126
|
+
messages: z306.array(DTOForgeChatMessage),
|
|
9127
|
+
totalCount: z306.number(),
|
|
9128
|
+
hasMore: z306.boolean()
|
|
9116
9129
|
});
|
|
9117
|
-
var DTOForgeChatMessageScoreInput =
|
|
9118
|
-
messageId:
|
|
9119
|
-
name:
|
|
9120
|
-
value:
|
|
9121
|
-
categoryName:
|
|
9122
|
-
reason:
|
|
9130
|
+
var DTOForgeChatMessageScoreInput = z306.object({
|
|
9131
|
+
messageId: z306.string(),
|
|
9132
|
+
name: z306.string(),
|
|
9133
|
+
value: z306.number(),
|
|
9134
|
+
categoryName: z306.string().optional(),
|
|
9135
|
+
reason: z306.string().optional()
|
|
9123
9136
|
});
|
|
9124
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9137
|
+
var DTOForgeChatMessageScoreRequest = z306.object({
|
|
9125
9138
|
scores: DTOForgeChatMessageScoreInput.array()
|
|
9126
9139
|
});
|
|
9127
9140
|
|
|
9128
9141
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9129
|
-
import { z as
|
|
9130
|
-
var DTOLiveblocksAuthResponse =
|
|
9131
|
-
token:
|
|
9142
|
+
import { z as z307 } from "zod";
|
|
9143
|
+
var DTOLiveblocksAuthResponse = z307.object({
|
|
9144
|
+
token: z307.string()
|
|
9132
9145
|
});
|
|
9133
9146
|
|
|
9134
9147
|
// src/api/dto/portal/portal-settings.ts
|
|
9135
|
-
import { z as
|
|
9148
|
+
import { z as z308 } from "zod";
|
|
9136
9149
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9137
9150
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9138
9151
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9139
9152
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9140
|
-
var DTOPortalSettings =
|
|
9141
|
-
id:
|
|
9142
|
-
workspaceId:
|
|
9143
|
-
enabledDesignSystemIds:
|
|
9144
|
-
enabledBrandPersistentIds:
|
|
9153
|
+
var DTOPortalSettings = z308.object({
|
|
9154
|
+
id: z308.string(),
|
|
9155
|
+
workspaceId: z308.string(),
|
|
9156
|
+
enabledDesignSystemIds: z308.array(z308.string()),
|
|
9157
|
+
enabledBrandPersistentIds: z308.array(z308.string()),
|
|
9145
9158
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9146
9159
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9147
|
-
createdAt:
|
|
9148
|
-
updatedAt:
|
|
9160
|
+
createdAt: z308.coerce.date(),
|
|
9161
|
+
updatedAt: z308.coerce.date()
|
|
9149
9162
|
});
|
|
9150
|
-
var DTOPortalSettingsGetResponse =
|
|
9163
|
+
var DTOPortalSettingsGetResponse = z308.object({
|
|
9151
9164
|
portalSettings: DTOPortalSettings
|
|
9152
9165
|
});
|
|
9153
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9154
|
-
enabledDesignSystemIds:
|
|
9155
|
-
enabledBrandPersistentIds:
|
|
9166
|
+
var DTOPortalSettingsUpdatePayload = z308.object({
|
|
9167
|
+
enabledDesignSystemIds: z308.array(z308.string()).optional(),
|
|
9168
|
+
enabledBrandPersistentIds: z308.array(z308.string()).optional(),
|
|
9156
9169
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9157
9170
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9158
9171
|
});
|
|
9159
9172
|
|
|
9160
9173
|
// src/api/dto/themes/override.ts
|
|
9161
|
-
import { z as
|
|
9174
|
+
import { z as z309 } from "zod";
|
|
9162
9175
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9163
|
-
|
|
9164
|
-
tokenPersistentId:
|
|
9176
|
+
z309.object({
|
|
9177
|
+
tokenPersistentId: z309.string(),
|
|
9165
9178
|
origin: ThemeOverrideOrigin.optional()
|
|
9166
9179
|
})
|
|
9167
9180
|
);
|
|
9168
9181
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9169
|
-
|
|
9170
|
-
tokenPersistentId:
|
|
9182
|
+
z309.object({
|
|
9183
|
+
tokenPersistentId: z309.string()
|
|
9171
9184
|
})
|
|
9172
9185
|
);
|
|
9173
9186
|
|
|
9174
9187
|
// src/api/dto/themes/theme.ts
|
|
9175
|
-
import { z as
|
|
9176
|
-
var DTOTheme =
|
|
9177
|
-
id:
|
|
9178
|
-
persistentId:
|
|
9179
|
-
designSystemVersionId:
|
|
9180
|
-
brandId:
|
|
9188
|
+
import { z as z310 } from "zod";
|
|
9189
|
+
var DTOTheme = z310.object({
|
|
9190
|
+
id: z310.string(),
|
|
9191
|
+
persistentId: z310.string(),
|
|
9192
|
+
designSystemVersionId: z310.string(),
|
|
9193
|
+
brandId: z310.string(),
|
|
9181
9194
|
meta: ObjectMeta,
|
|
9182
|
-
codeName:
|
|
9195
|
+
codeName: z310.string(),
|
|
9183
9196
|
overrides: DTOThemeOverride.array()
|
|
9184
9197
|
});
|
|
9185
|
-
var DTOThemeResponse =
|
|
9198
|
+
var DTOThemeResponse = z310.object({
|
|
9186
9199
|
theme: DTOTheme
|
|
9187
9200
|
});
|
|
9188
|
-
var DTOThemeListResponse =
|
|
9201
|
+
var DTOThemeListResponse = z310.object({
|
|
9189
9202
|
themes: DTOTheme.array()
|
|
9190
9203
|
});
|
|
9191
|
-
var DTOThemeCreatePayload =
|
|
9204
|
+
var DTOThemeCreatePayload = z310.object({
|
|
9192
9205
|
meta: ObjectMeta,
|
|
9193
|
-
persistentId:
|
|
9194
|
-
brandId:
|
|
9195
|
-
codeName:
|
|
9206
|
+
persistentId: z310.string(),
|
|
9207
|
+
brandId: z310.string(),
|
|
9208
|
+
codeName: z310.string(),
|
|
9196
9209
|
overrides: DTOThemeOverride.array()
|
|
9197
9210
|
});
|
|
9198
9211
|
|
|
@@ -9428,13 +9441,13 @@ var ExportersEndpoint = class {
|
|
|
9428
9441
|
};
|
|
9429
9442
|
|
|
9430
9443
|
// src/api/endpoints/codegen/jobs.ts
|
|
9431
|
-
import { z as
|
|
9444
|
+
import { z as z311 } from "zod";
|
|
9432
9445
|
var ExporterJobsEndpoint = class {
|
|
9433
9446
|
constructor(requestExecutor) {
|
|
9434
9447
|
this.requestExecutor = requestExecutor;
|
|
9435
9448
|
}
|
|
9436
9449
|
list(workspaceId) {
|
|
9437
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9450
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z311.any());
|
|
9438
9451
|
}
|
|
9439
9452
|
get(workspaceId, jobId) {
|
|
9440
9453
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9492,7 +9505,7 @@ var CodegenEndpoint = class {
|
|
|
9492
9505
|
};
|
|
9493
9506
|
|
|
9494
9507
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9495
|
-
import { z as
|
|
9508
|
+
import { z as z312 } from "zod";
|
|
9496
9509
|
var BrandsEndpoint = class {
|
|
9497
9510
|
constructor(requestExecutor) {
|
|
9498
9511
|
this.requestExecutor = requestExecutor;
|
|
@@ -9526,7 +9539,7 @@ var BrandsEndpoint = class {
|
|
|
9526
9539
|
});
|
|
9527
9540
|
}
|
|
9528
9541
|
delete(dsId, vId, brandId) {
|
|
9529
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
9542
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z312.any(), {
|
|
9530
9543
|
method: "DELETE"
|
|
9531
9544
|
});
|
|
9532
9545
|
}
|
|
@@ -9793,7 +9806,7 @@ var ImportJobsEndpoint = class {
|
|
|
9793
9806
|
};
|
|
9794
9807
|
|
|
9795
9808
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
9796
|
-
import { z as
|
|
9809
|
+
import { z as z313 } from "zod";
|
|
9797
9810
|
var OverridesEndpoint = class {
|
|
9798
9811
|
constructor(requestExecutor) {
|
|
9799
9812
|
this.requestExecutor = requestExecutor;
|
|
@@ -9801,7 +9814,7 @@ var OverridesEndpoint = class {
|
|
|
9801
9814
|
create(dsId, versionId, themeId, body) {
|
|
9802
9815
|
return this.requestExecutor.json(
|
|
9803
9816
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
9804
|
-
|
|
9817
|
+
z313.any(),
|
|
9805
9818
|
{
|
|
9806
9819
|
method: "POST",
|
|
9807
9820
|
body
|
|
@@ -9811,7 +9824,7 @@ var OverridesEndpoint = class {
|
|
|
9811
9824
|
};
|
|
9812
9825
|
|
|
9813
9826
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
9814
|
-
import { z as
|
|
9827
|
+
import { z as z314 } from "zod";
|
|
9815
9828
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
9816
9829
|
constructor(requestExecutor) {
|
|
9817
9830
|
this.requestExecutor = requestExecutor;
|
|
@@ -9839,7 +9852,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
9839
9852
|
delete(designSystemId, versionId, defId) {
|
|
9840
9853
|
return this.requestExecutor.json(
|
|
9841
9854
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
9842
|
-
|
|
9855
|
+
z314.any(),
|
|
9843
9856
|
{ method: "DELETE" }
|
|
9844
9857
|
);
|
|
9845
9858
|
}
|
|
@@ -9878,7 +9891,7 @@ var VersionStatsEndpoint = class {
|
|
|
9878
9891
|
};
|
|
9879
9892
|
|
|
9880
9893
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
9881
|
-
import { z as
|
|
9894
|
+
import { z as z315 } from "zod";
|
|
9882
9895
|
var ThemesEndpoint = class {
|
|
9883
9896
|
constructor(requestExecutor) {
|
|
9884
9897
|
this.requestExecutor = requestExecutor;
|
|
@@ -9901,7 +9914,7 @@ var ThemesEndpoint = class {
|
|
|
9901
9914
|
});
|
|
9902
9915
|
}
|
|
9903
9916
|
delete(dsId, versionId, themeId) {
|
|
9904
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
9917
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z315.any(), {
|
|
9905
9918
|
method: "DELETE"
|
|
9906
9919
|
});
|
|
9907
9920
|
}
|
|
@@ -10072,7 +10085,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10072
10085
|
};
|
|
10073
10086
|
|
|
10074
10087
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10075
|
-
import { z as
|
|
10088
|
+
import { z as z319 } from "zod";
|
|
10076
10089
|
|
|
10077
10090
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10078
10091
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10149,7 +10162,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10149
10162
|
};
|
|
10150
10163
|
|
|
10151
10164
|
// src/api/endpoints/design-system/sources.ts
|
|
10152
|
-
import { z as
|
|
10165
|
+
import { z as z316 } from "zod";
|
|
10153
10166
|
var DesignSystemSourcesEndpoint = class {
|
|
10154
10167
|
constructor(requestExecutor) {
|
|
10155
10168
|
this.requestExecutor = requestExecutor;
|
|
@@ -10167,7 +10180,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10167
10180
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10168
10181
|
}
|
|
10169
10182
|
delete(dsId, sourceId) {
|
|
10170
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10183
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z316.any(), { method: "DELETE" });
|
|
10171
10184
|
}
|
|
10172
10185
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10173
10186
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10210,7 +10223,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10210
10223
|
};
|
|
10211
10224
|
|
|
10212
10225
|
// src/api/endpoints/design-system/storybook.ts
|
|
10213
|
-
import { z as
|
|
10226
|
+
import { z as z317 } from "zod";
|
|
10214
10227
|
var StorybookEntriesEndpoint = class {
|
|
10215
10228
|
constructor(requestExecutor) {
|
|
10216
10229
|
this.requestExecutor = requestExecutor;
|
|
@@ -10226,14 +10239,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10226
10239
|
);
|
|
10227
10240
|
}
|
|
10228
10241
|
delete(dsId, entryId) {
|
|
10229
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10242
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z317.any(), {
|
|
10230
10243
|
method: "DELETE"
|
|
10231
10244
|
});
|
|
10232
10245
|
}
|
|
10233
10246
|
};
|
|
10234
10247
|
|
|
10235
10248
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10236
|
-
import { z as
|
|
10249
|
+
import { z as z318 } from "zod";
|
|
10237
10250
|
var StorybookHostingEndpoint = class {
|
|
10238
10251
|
constructor(requestExecutor) {
|
|
10239
10252
|
this.requestExecutor = requestExecutor;
|
|
@@ -10247,7 +10260,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10247
10260
|
delete(dsId, storybookUploadId) {
|
|
10248
10261
|
return this.requestExecutor.json(
|
|
10249
10262
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10250
|
-
|
|
10263
|
+
z318.object({ ok: z318.boolean() }),
|
|
10251
10264
|
{
|
|
10252
10265
|
method: "DELETE"
|
|
10253
10266
|
}
|
|
@@ -10305,7 +10318,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10305
10318
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10306
10319
|
}
|
|
10307
10320
|
delete(dsId) {
|
|
10308
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10321
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z319.any(), { method: "DELETE" });
|
|
10309
10322
|
}
|
|
10310
10323
|
update(dsId, body) {
|
|
10311
10324
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10503,7 +10516,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10503
10516
|
};
|
|
10504
10517
|
|
|
10505
10518
|
// src/api/endpoints/forge/project-members.ts
|
|
10506
|
-
import { z as
|
|
10519
|
+
import { z as z320 } from "zod";
|
|
10507
10520
|
var ForgeProjectMembersEndpoint = class {
|
|
10508
10521
|
constructor(requestExecutor) {
|
|
10509
10522
|
this.requestExecutor = requestExecutor;
|
|
@@ -10532,7 +10545,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10532
10545
|
delete(projectId, userId) {
|
|
10533
10546
|
return this.requestExecutor.json(
|
|
10534
10547
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10535
|
-
|
|
10548
|
+
z320.object({ ok: z320.literal(true) }),
|
|
10536
10549
|
{
|
|
10537
10550
|
method: "DELETE"
|
|
10538
10551
|
}
|
|
@@ -10686,7 +10699,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
10686
10699
|
};
|
|
10687
10700
|
|
|
10688
10701
|
// src/api/endpoints/forge/project-invitations.ts
|
|
10689
|
-
import { z as
|
|
10702
|
+
import { z as z321 } from "zod";
|
|
10690
10703
|
var ForgeProjectInvitationsEndpoint = class {
|
|
10691
10704
|
constructor(requestExecutor) {
|
|
10692
10705
|
this.requestExecutor = requestExecutor;
|
|
@@ -10723,7 +10736,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
10723
10736
|
delete(projectId, email) {
|
|
10724
10737
|
return this.requestExecutor.json(
|
|
10725
10738
|
`/forge/projects/${projectId}/invitations/${encodeURI(email)}`,
|
|
10726
|
-
|
|
10739
|
+
z321.object({ ok: z321.literal(true) }),
|
|
10727
10740
|
{
|
|
10728
10741
|
method: "DELETE"
|
|
10729
10742
|
}
|
|
@@ -10756,7 +10769,7 @@ var ForgesEndpoint = class {
|
|
|
10756
10769
|
};
|
|
10757
10770
|
|
|
10758
10771
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
10759
|
-
import { z as
|
|
10772
|
+
import { z as z322 } from "zod";
|
|
10760
10773
|
var WorkspaceChatThreadsEndpoint = class {
|
|
10761
10774
|
constructor(requestExecutor) {
|
|
10762
10775
|
this.requestExecutor = requestExecutor;
|
|
@@ -10788,7 +10801,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
10788
10801
|
);
|
|
10789
10802
|
}
|
|
10790
10803
|
delete(workspaceId, threadId) {
|
|
10791
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
10804
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z322.any(), {
|
|
10792
10805
|
method: "DELETE"
|
|
10793
10806
|
});
|
|
10794
10807
|
}
|
|
@@ -10820,7 +10833,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10820
10833
|
);
|
|
10821
10834
|
}
|
|
10822
10835
|
score(workspaceId, threadId, body) {
|
|
10823
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
10836
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z322.any(), {
|
|
10824
10837
|
method: "POST",
|
|
10825
10838
|
body
|
|
10826
10839
|
});
|
|
@@ -10828,7 +10841,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10828
10841
|
};
|
|
10829
10842
|
|
|
10830
10843
|
// src/api/endpoints/workspaces/integrations.ts
|
|
10831
|
-
import { z as
|
|
10844
|
+
import { z as z323 } from "zod";
|
|
10832
10845
|
var WorkspaceIntegrationsEndpoint = class {
|
|
10833
10846
|
constructor(requestExecutor) {
|
|
10834
10847
|
this.requestExecutor = requestExecutor;
|
|
@@ -10837,7 +10850,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
10837
10850
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
10838
10851
|
}
|
|
10839
10852
|
delete(wsId, iId) {
|
|
10840
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
10853
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z323.unknown(), { method: "DELETE" });
|
|
10841
10854
|
}
|
|
10842
10855
|
};
|
|
10843
10856
|
|
|
@@ -10869,7 +10882,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
10869
10882
|
};
|
|
10870
10883
|
|
|
10871
10884
|
// src/api/endpoints/workspaces/members.ts
|
|
10872
|
-
import { z as
|
|
10885
|
+
import { z as z324 } from "zod";
|
|
10873
10886
|
var WorkspaceMembersEndpoint = class {
|
|
10874
10887
|
constructor(requestExecutor) {
|
|
10875
10888
|
this.requestExecutor = requestExecutor;
|
|
@@ -10886,7 +10899,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
10886
10899
|
});
|
|
10887
10900
|
}
|
|
10888
10901
|
invite(workspaceId, body) {
|
|
10889
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
10902
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z324.any(), { method: "POST", body });
|
|
10890
10903
|
}
|
|
10891
10904
|
delete(workspaceId, userId) {
|
|
10892
10905
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -10915,7 +10928,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
10915
10928
|
};
|
|
10916
10929
|
|
|
10917
10930
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
10918
|
-
import { z as
|
|
10931
|
+
import { z as z325 } from "zod";
|
|
10919
10932
|
var WorkspacesEndpoint = class {
|
|
10920
10933
|
constructor(requestExecutor) {
|
|
10921
10934
|
this.requestExecutor = requestExecutor;
|
|
@@ -10947,10 +10960,10 @@ var WorkspacesEndpoint = class {
|
|
|
10947
10960
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
10948
10961
|
}
|
|
10949
10962
|
delete(workspaceId) {
|
|
10950
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
10963
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z325.any(), { method: "DELETE" });
|
|
10951
10964
|
}
|
|
10952
10965
|
subscription(workspaceId) {
|
|
10953
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
10966
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z325.any(), { method: "GET" });
|
|
10954
10967
|
}
|
|
10955
10968
|
getPortalSettings(workspaceId) {
|
|
10956
10969
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11061,9 +11074,9 @@ ${bodyText}`,
|
|
|
11061
11074
|
|
|
11062
11075
|
// src/api/transport/request-executor.ts
|
|
11063
11076
|
import fetch from "node-fetch";
|
|
11064
|
-
import { z as
|
|
11065
|
-
var ResponseWrapper =
|
|
11066
|
-
result:
|
|
11077
|
+
import { z as z326 } from "zod";
|
|
11078
|
+
var ResponseWrapper = z326.object({
|
|
11079
|
+
result: z326.record(z326.any())
|
|
11067
11080
|
});
|
|
11068
11081
|
var RequestExecutor = class {
|
|
11069
11082
|
constructor(testServerConfig) {
|
|
@@ -11140,31 +11153,31 @@ var SupernovaApiClient = class {
|
|
|
11140
11153
|
};
|
|
11141
11154
|
|
|
11142
11155
|
// src/events/design-system.ts
|
|
11143
|
-
import { z as
|
|
11144
|
-
var DTOEventFigmaNodesRendered =
|
|
11145
|
-
type:
|
|
11146
|
-
designSystemId:
|
|
11147
|
-
versionId:
|
|
11148
|
-
figmaNodePersistentIds:
|
|
11149
|
-
});
|
|
11150
|
-
var DTOEventDataSourcesImported =
|
|
11151
|
-
type:
|
|
11152
|
-
designSystemId:
|
|
11153
|
-
versionId:
|
|
11154
|
-
importJobId:
|
|
11156
|
+
import { z as z327 } from "zod";
|
|
11157
|
+
var DTOEventFigmaNodesRendered = z327.object({
|
|
11158
|
+
type: z327.literal("DesignSystem.FigmaNodesRendered"),
|
|
11159
|
+
designSystemId: z327.string(),
|
|
11160
|
+
versionId: z327.string(),
|
|
11161
|
+
figmaNodePersistentIds: z327.string().array()
|
|
11162
|
+
});
|
|
11163
|
+
var DTOEventDataSourcesImported = z327.object({
|
|
11164
|
+
type: z327.literal("DesignSystem.ImportJobFinished"),
|
|
11165
|
+
designSystemId: z327.string(),
|
|
11166
|
+
versionId: z327.string(),
|
|
11167
|
+
importJobId: z327.string(),
|
|
11155
11168
|
dataSourceType: DataSourceRemoteType,
|
|
11156
|
-
dataSourceIds:
|
|
11169
|
+
dataSourceIds: z327.string().array()
|
|
11157
11170
|
});
|
|
11158
11171
|
|
|
11159
11172
|
// src/events/event.ts
|
|
11160
|
-
import { z as
|
|
11161
|
-
var DTOEvent =
|
|
11173
|
+
import { z as z328 } from "zod";
|
|
11174
|
+
var DTOEvent = z328.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11162
11175
|
|
|
11163
11176
|
// src/sync/docs-structure-repo.ts
|
|
11164
11177
|
import PQueue from "p-queue";
|
|
11165
11178
|
|
|
11166
11179
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11167
|
-
import { z as
|
|
11180
|
+
import { z as z329 } from "zod";
|
|
11168
11181
|
|
|
11169
11182
|
// src/yjs/version-room/base.ts
|
|
11170
11183
|
var VersionRoomBaseYDoc = class {
|
|
@@ -11714,24 +11727,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
11714
11727
|
};
|
|
11715
11728
|
|
|
11716
11729
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11717
|
-
var DocumentationHierarchySettings =
|
|
11718
|
-
routingVersion:
|
|
11719
|
-
isDraftFeatureAdopted:
|
|
11720
|
-
isApprovalFeatureEnabled:
|
|
11721
|
-
approvalRequiredForPublishing:
|
|
11730
|
+
var DocumentationHierarchySettings = z329.object({
|
|
11731
|
+
routingVersion: z329.string(),
|
|
11732
|
+
isDraftFeatureAdopted: z329.boolean(),
|
|
11733
|
+
isApprovalFeatureEnabled: z329.boolean(),
|
|
11734
|
+
approvalRequiredForPublishing: z329.boolean()
|
|
11722
11735
|
});
|
|
11723
11736
|
function yjsToDocumentationHierarchy(doc) {
|
|
11724
11737
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
11725
11738
|
}
|
|
11726
11739
|
|
|
11727
11740
|
// src/yjs/design-system-content/item-configuration.ts
|
|
11728
|
-
import { z as
|
|
11729
|
-
var DTODocumentationPageRoomHeaderData =
|
|
11730
|
-
title:
|
|
11741
|
+
import { z as z330 } from "zod";
|
|
11742
|
+
var DTODocumentationPageRoomHeaderData = z330.object({
|
|
11743
|
+
title: z330.string(),
|
|
11731
11744
|
configuration: DTODocumentationItemConfigurationV2
|
|
11732
11745
|
});
|
|
11733
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
11734
|
-
title:
|
|
11746
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z330.object({
|
|
11747
|
+
title: z330.string().optional(),
|
|
11735
11748
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
11736
11749
|
});
|
|
11737
11750
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -11766,9 +11779,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
11766
11779
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
11767
11780
|
|
|
11768
11781
|
// src/yjs/docs-editor/model/page.ts
|
|
11769
|
-
import { z as
|
|
11770
|
-
var DocumentationPageEditorModel =
|
|
11771
|
-
blocks:
|
|
11782
|
+
import { z as z331 } from "zod";
|
|
11783
|
+
var DocumentationPageEditorModel = z331.object({
|
|
11784
|
+
blocks: z331.array(DocumentationPageContentItem)
|
|
11772
11785
|
});
|
|
11773
11786
|
|
|
11774
11787
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -15445,7 +15458,7 @@ var blocks = [
|
|
|
15445
15458
|
|
|
15446
15459
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
15447
15460
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
15448
|
-
import { z as
|
|
15461
|
+
import { z as z332 } from "zod";
|
|
15449
15462
|
function yDocToPage(yDoc, definitions) {
|
|
15450
15463
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
15451
15464
|
}
|
|
@@ -15521,7 +15534,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
15521
15534
|
if (!id) return null;
|
|
15522
15535
|
return {
|
|
15523
15536
|
id,
|
|
15524
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
15537
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z332.string()) ?? "",
|
|
15525
15538
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
15526
15539
|
};
|
|
15527
15540
|
}
|
|
@@ -15555,7 +15568,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
15555
15568
|
});
|
|
15556
15569
|
}
|
|
15557
15570
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
15558
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
15571
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z332.string());
|
|
15559
15572
|
if (!definitionId) {
|
|
15560
15573
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
15561
15574
|
return [];
|
|
@@ -15596,7 +15609,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
15596
15609
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15597
15610
|
if (!id) return null;
|
|
15598
15611
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15599
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
15612
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z332.string().optional()));
|
|
15600
15613
|
return {
|
|
15601
15614
|
id,
|
|
15602
15615
|
type: "Block",
|
|
@@ -15719,9 +15732,9 @@ function parseRichTextAttribute(mark) {
|
|
|
15719
15732
|
return null;
|
|
15720
15733
|
}
|
|
15721
15734
|
function parseProsemirrorLink(mark) {
|
|
15722
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
15735
|
+
const href = getProsemirrorAttribute(mark, "href", z332.string().optional());
|
|
15723
15736
|
if (!href) return null;
|
|
15724
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
15737
|
+
const target = getProsemirrorAttribute(mark, "target", z332.string().optional());
|
|
15725
15738
|
const openInNewTab = target === "_blank";
|
|
15726
15739
|
if (href.startsWith("@")) {
|
|
15727
15740
|
return {
|
|
@@ -15740,9 +15753,9 @@ function parseProsemirrorLink(mark) {
|
|
|
15740
15753
|
}
|
|
15741
15754
|
}
|
|
15742
15755
|
function parseProsemirrorCommentHighlight(mark) {
|
|
15743
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
15756
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z332.string().optional());
|
|
15744
15757
|
if (!highlightId) return null;
|
|
15745
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
15758
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z332.boolean().optional()) ?? false;
|
|
15746
15759
|
return {
|
|
15747
15760
|
type: "Comment",
|
|
15748
15761
|
commentHighlightId: highlightId,
|
|
@@ -15753,7 +15766,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15753
15766
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15754
15767
|
if (!id) return null;
|
|
15755
15768
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15756
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
15769
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z332.boolean().optional()) !== false;
|
|
15757
15770
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
15758
15771
|
if (!tableChild) {
|
|
15759
15772
|
return emptyTable(id, variantId, 0);
|
|
@@ -15799,9 +15812,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15799
15812
|
function parseAsTableCell(prosemirrorNode) {
|
|
15800
15813
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15801
15814
|
if (!id) return null;
|
|
15802
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
15815
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z332.string().optional());
|
|
15803
15816
|
let columnWidth;
|
|
15804
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
15817
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z332.array(z332.number()).nullish());
|
|
15805
15818
|
if (columnWidthArray) {
|
|
15806
15819
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
15807
15820
|
}
|
|
@@ -15837,7 +15850,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
15837
15850
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
15838
15851
|
};
|
|
15839
15852
|
case "image":
|
|
15840
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
15853
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z332.string());
|
|
15841
15854
|
if (!items) return null;
|
|
15842
15855
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
15843
15856
|
if (!parsedItems.success) return null;
|
|
@@ -15951,7 +15964,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
15951
15964
|
);
|
|
15952
15965
|
}
|
|
15953
15966
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
15954
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
15967
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z332.string());
|
|
15955
15968
|
if (!itemsString) return null;
|
|
15956
15969
|
const itemsJson = JSON.parse(itemsString);
|
|
15957
15970
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -15962,18 +15975,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
15962
15975
|
}
|
|
15963
15976
|
function parseAppearance(prosemirrorNode) {
|
|
15964
15977
|
let appearance = {};
|
|
15965
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
15978
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z332.string().optional());
|
|
15966
15979
|
if (rawAppearanceString) {
|
|
15967
15980
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
15968
15981
|
if (parsedAppearance.success) {
|
|
15969
15982
|
appearance = parsedAppearance.data;
|
|
15970
15983
|
}
|
|
15971
15984
|
}
|
|
15972
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
15985
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z332.number().optional());
|
|
15973
15986
|
if (columns) {
|
|
15974
15987
|
appearance.numberOfColumns = columns;
|
|
15975
15988
|
}
|
|
15976
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
15989
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z332.string().optional());
|
|
15977
15990
|
if (backgroundColor) {
|
|
15978
15991
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
15979
15992
|
if (parsedColor.success) {
|
|
@@ -16074,12 +16087,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16074
16087
|
}
|
|
16075
16088
|
}
|
|
16076
16089
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16077
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16090
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z332.string());
|
|
16078
16091
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16079
16092
|
return id;
|
|
16080
16093
|
}
|
|
16081
16094
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16082
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16095
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z332.string()));
|
|
16083
16096
|
}
|
|
16084
16097
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16085
16098
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|