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