@supernova-studio/client 1.10.24 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +292 -6
- package/dist/index.d.ts +292 -6
- package/dist/index.js +65 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +273 -210
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8981,17 +8981,65 @@ var DTODeleteForgeIterationMessageResponse = z304.object({
|
|
|
8981
8981
|
ok: z304.literal(true)
|
|
8982
8982
|
});
|
|
8983
8983
|
|
|
8984
|
-
// src/api/dto/forge/project-
|
|
8985
|
-
import
|
|
8986
|
-
|
|
8984
|
+
// src/api/dto/forge/project-action.ts
|
|
8985
|
+
import z306 from "zod";
|
|
8986
|
+
|
|
8987
|
+
// src/api/dto/forge/project-feature.ts
|
|
8988
|
+
import z305 from "zod";
|
|
8989
|
+
var DTOForgeProjectFeature = z305.object({
|
|
8990
|
+
id: z305.string(),
|
|
8991
|
+
name: z305.string(),
|
|
8992
|
+
description: z305.string(),
|
|
8993
|
+
isArchived: z305.boolean()
|
|
8994
|
+
});
|
|
8995
|
+
var DTOForgeProjectFeatureListResponse = z305.object({
|
|
8996
|
+
features: DTOForgeProjectFeature.array()
|
|
8997
|
+
});
|
|
8998
|
+
var DTOForgeProjectFeatureCreateInput = z305.object({
|
|
8999
|
+
id: z305.string(),
|
|
9000
|
+
name: z305.string(),
|
|
9001
|
+
description: z305.string()
|
|
9002
|
+
});
|
|
9003
|
+
var DTOForgeProjectFeatureUpdateInput = z305.object({
|
|
9004
|
+
id: z305.string(),
|
|
9005
|
+
name: z305.string().optional(),
|
|
9006
|
+
description: z305.string().optional(),
|
|
9007
|
+
isArchived: z305.boolean().optional()
|
|
9008
|
+
});
|
|
9009
|
+
var DTOForgeProjectFeatureDeleteInput = z305.object({
|
|
8987
9010
|
id: z305.string()
|
|
8988
9011
|
});
|
|
8989
|
-
|
|
9012
|
+
|
|
9013
|
+
// src/api/dto/forge/project-action.ts
|
|
9014
|
+
var DTOForgeProjectActionFeatureCreate = z306.object({
|
|
9015
|
+
type: z306.literal("FeatureCreate"),
|
|
9016
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
9017
|
+
});
|
|
9018
|
+
var DTOForgeProjectActionFeatureUpdate = z306.object({
|
|
9019
|
+
type: z306.literal("FeatureUpdate"),
|
|
9020
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
9021
|
+
});
|
|
9022
|
+
var DTOForgeProjectActionFeatureDelete = z306.object({
|
|
9023
|
+
type: z306.literal("FeatureDelete"),
|
|
9024
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
9025
|
+
});
|
|
9026
|
+
var DTOForgeProjectAction = z306.discriminatedUnion("type", [
|
|
9027
|
+
DTOForgeProjectActionFeatureCreate,
|
|
9028
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
9029
|
+
DTOForgeProjectActionFeatureDelete
|
|
9030
|
+
]);
|
|
9031
|
+
|
|
9032
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
9033
|
+
import { z as z307 } from "zod";
|
|
9034
|
+
var DTOForgeProjectArtifactRoom = z307.object({
|
|
9035
|
+
id: z307.string()
|
|
9036
|
+
});
|
|
9037
|
+
var DTOForgeProjectArtifactRoomResponse = z307.object({
|
|
8990
9038
|
room: DTOForgeProjectArtifactRoom
|
|
8991
9039
|
});
|
|
8992
9040
|
|
|
8993
9041
|
// src/api/dto/forge/project-artifact.ts
|
|
8994
|
-
import { z as
|
|
9042
|
+
import { z as z308 } from "zod";
|
|
8995
9043
|
var omitProps = {
|
|
8996
9044
|
id: true,
|
|
8997
9045
|
projectId: true,
|
|
@@ -9005,24 +9053,24 @@ var DTOForgeProjectArtifactUpdate = DTOForgeProjectArtifact.omit({
|
|
|
9005
9053
|
iterationId: true
|
|
9006
9054
|
}).partial();
|
|
9007
9055
|
var DTOForgeProjectArtifactCreate = DTOForgeProjectArtifact.omit(omitProps);
|
|
9008
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
9056
|
+
var DTOForgeProjectArtifactGetResponse = z308.object({
|
|
9009
9057
|
artifact: DTOForgeProjectArtifact
|
|
9010
9058
|
});
|
|
9011
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
9059
|
+
var DTOForgeProjectArtifactCreateResponse = z308.object({
|
|
9012
9060
|
artifact: DTOForgeProjectArtifact
|
|
9013
9061
|
});
|
|
9014
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
9062
|
+
var DTOForgeProjectArtifactUpdateResponse = z308.object({
|
|
9015
9063
|
artifact: DTOForgeProjectArtifact
|
|
9016
9064
|
});
|
|
9017
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
9018
|
-
ok:
|
|
9065
|
+
var DTOForgeProjectArtifactDeleteResponse = z308.object({
|
|
9066
|
+
ok: z308.literal(true)
|
|
9019
9067
|
});
|
|
9020
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
9021
|
-
artifacts:
|
|
9068
|
+
var DTOForgeProjectArtifactsListResponse = z308.object({
|
|
9069
|
+
artifacts: z308.array(DTOForgeProjectArtifact)
|
|
9022
9070
|
});
|
|
9023
9071
|
|
|
9024
9072
|
// src/api/dto/forge/project-context.ts
|
|
9025
|
-
import { z as
|
|
9073
|
+
import { z as z309 } from "zod";
|
|
9026
9074
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9027
9075
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9028
9076
|
definition: true,
|
|
@@ -9034,17 +9082,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9034
9082
|
tailwindConfig: true,
|
|
9035
9083
|
styling: true
|
|
9036
9084
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
9037
|
-
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id:
|
|
9038
|
-
var DTOForgeProjectContextGetResponse =
|
|
9039
|
-
var DTOForgeProjectContextListResponse =
|
|
9040
|
-
var DTOForgeProjectContextCreateResponse =
|
|
9041
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
9042
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
9043
|
-
ok:
|
|
9085
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z309.string() });
|
|
9086
|
+
var DTOForgeProjectContextGetResponse = z309.object({ context: DTOForgeProjectContext.nullable() });
|
|
9087
|
+
var DTOForgeProjectContextListResponse = z309.object({ contexts: z309.array(DTOForgeProjectContext) });
|
|
9088
|
+
var DTOForgeProjectContextCreateResponse = z309.object({ context: DTOForgeProjectContext });
|
|
9089
|
+
var DTOForgeProjectContextUpdateResponse = z309.object({ context: DTOForgeProjectContext.nullable() });
|
|
9090
|
+
var DTOForgeProjectContextRemoveResponse = z309.object({
|
|
9091
|
+
ok: z309.literal(true)
|
|
9044
9092
|
});
|
|
9045
9093
|
|
|
9046
9094
|
// src/api/dto/forge/project-invitation.ts
|
|
9047
|
-
import { z as
|
|
9095
|
+
import { z as z310 } from "zod";
|
|
9048
9096
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9049
9097
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9050
9098
|
email: true,
|
|
@@ -9056,24 +9104,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({ ema
|
|
|
9056
9104
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9057
9105
|
email: true
|
|
9058
9106
|
});
|
|
9059
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
9060
|
-
invitations:
|
|
9107
|
+
var DTOForgeProjectInvitationsListResponse = z310.object({
|
|
9108
|
+
invitations: z310.array(DTOForgeProjectInvitation)
|
|
9061
9109
|
});
|
|
9062
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9110
|
+
var DTOForgeProjectInvitationGetResponse = z310.object({
|
|
9063
9111
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9064
9112
|
});
|
|
9065
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9113
|
+
var DTOForgeProjectInvitationCreateResponse = z310.object({
|
|
9066
9114
|
invitation: DTOForgeProjectInvitation
|
|
9067
9115
|
});
|
|
9068
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9116
|
+
var DTOForgeProjectInvitationUpdateResponse = z310.object({
|
|
9069
9117
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9070
9118
|
});
|
|
9071
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
9072
|
-
ok:
|
|
9119
|
+
var DTOForgeProjectInvitationRemoveResponse = z310.object({
|
|
9120
|
+
ok: z310.literal(true)
|
|
9073
9121
|
});
|
|
9074
9122
|
|
|
9075
9123
|
// src/api/dto/forge/project-iteration.ts
|
|
9076
|
-
import { z as
|
|
9124
|
+
import { z as z311 } from "zod";
|
|
9077
9125
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9078
9126
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9079
9127
|
artifacts: true,
|
|
@@ -9084,7 +9132,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9084
9132
|
messages: DTOForgeIterationMessage.array(),
|
|
9085
9133
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9086
9134
|
});
|
|
9087
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9135
|
+
var DTOGetForgeProjectIterationResponse = z311.object({
|
|
9088
9136
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9089
9137
|
});
|
|
9090
9138
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9094,20 +9142,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9094
9142
|
mergeMeta: true,
|
|
9095
9143
|
createdAt: true
|
|
9096
9144
|
});
|
|
9097
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9098
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9145
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z311.string() });
|
|
9146
|
+
var DTOCreateForgeProjectIterationResponse = z311.object({
|
|
9099
9147
|
iteration: DTOForgeProjectIteration
|
|
9100
9148
|
});
|
|
9101
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9149
|
+
var DTOUpdateForgeProjectIterationResponse = z311.object({
|
|
9102
9150
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9103
9151
|
});
|
|
9104
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9105
|
-
ok:
|
|
9152
|
+
var DTODeleteForgeProjectIterationResponse = z311.object({
|
|
9153
|
+
ok: z311.literal(true)
|
|
9106
9154
|
});
|
|
9107
|
-
var DTOForgeProjectIterationListResponse =
|
|
9155
|
+
var DTOForgeProjectIterationListResponse = z311.object({ iterations: z311.array(DTOForgeProjectIteration) });
|
|
9108
9156
|
|
|
9109
9157
|
// src/api/dto/forge/project-member.ts
|
|
9110
|
-
import { z as
|
|
9158
|
+
import { z as z312 } from "zod";
|
|
9111
9159
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9112
9160
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9113
9161
|
user: DTOUser,
|
|
@@ -9121,36 +9169,36 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: tru
|
|
|
9121
9169
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9122
9170
|
userId: true
|
|
9123
9171
|
});
|
|
9124
|
-
var DTOForgeProjectMembersListResponse =
|
|
9125
|
-
members:
|
|
9172
|
+
var DTOForgeProjectMembersListResponse = z312.object({
|
|
9173
|
+
members: z312.array(DTOForgeProjectMember)
|
|
9126
9174
|
});
|
|
9127
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9175
|
+
var DTOForgeProjectMemberGetResponse = z312.object({
|
|
9128
9176
|
member: DTOForgeProjectMember.nullable()
|
|
9129
9177
|
});
|
|
9130
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9178
|
+
var DTOForgeProjectMemberCreateResponse = z312.object({
|
|
9131
9179
|
member: DTOForgeProjectMember
|
|
9132
9180
|
});
|
|
9133
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9181
|
+
var DTOForgeProjectMemberUpdateResponse = z312.object({
|
|
9134
9182
|
member: DTOForgeProjectMember.nullable()
|
|
9135
9183
|
});
|
|
9136
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9137
|
-
ok:
|
|
9184
|
+
var DTOForgeProjectMemberRemoveResponse = z312.object({
|
|
9185
|
+
ok: z312.literal(true)
|
|
9138
9186
|
});
|
|
9139
9187
|
|
|
9140
9188
|
// src/api/dto/forge/project-room.ts
|
|
9141
|
-
import { z as
|
|
9142
|
-
var DTOForgeProjectRoom =
|
|
9143
|
-
id:
|
|
9189
|
+
import { z as z313 } from "zod";
|
|
9190
|
+
var DTOForgeProjectRoom = z313.object({
|
|
9191
|
+
id: z313.string()
|
|
9144
9192
|
});
|
|
9145
|
-
var DTOForgeProjectRoomResponse =
|
|
9193
|
+
var DTOForgeProjectRoomResponse = z313.object({
|
|
9146
9194
|
room: DTOForgeProjectRoom
|
|
9147
9195
|
});
|
|
9148
9196
|
|
|
9149
9197
|
// src/api/dto/forge/project.ts
|
|
9150
|
-
import { z as
|
|
9198
|
+
import { z as z314 } from "zod";
|
|
9151
9199
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9152
9200
|
context: ForgeProjectContext,
|
|
9153
|
-
members:
|
|
9201
|
+
members: z314.array(DTOForgeProjectMember)
|
|
9154
9202
|
});
|
|
9155
9203
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9156
9204
|
instruction: true,
|
|
@@ -9162,151 +9210,156 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9162
9210
|
isArchived: true
|
|
9163
9211
|
});
|
|
9164
9212
|
var DTOUpdateForgeProject = DTOCreateForgeProject.partial().extend({
|
|
9165
|
-
id:
|
|
9166
|
-
membersToRetain:
|
|
9213
|
+
id: z314.string(),
|
|
9214
|
+
membersToRetain: z314.string().array().min(1).optional()
|
|
9167
9215
|
});
|
|
9168
|
-
var DTOForgeProjectGetResponse =
|
|
9169
|
-
var DTOForgeProjectsListResponse =
|
|
9170
|
-
var DTOCreateForgeProjectResponse =
|
|
9216
|
+
var DTOForgeProjectGetResponse = z314.object({ project: DTOForgeProject.nullable() });
|
|
9217
|
+
var DTOForgeProjectsListResponse = z314.object({ projects: z314.array(DTOForgeProject) });
|
|
9218
|
+
var DTOCreateForgeProjectResponse = z314.object({
|
|
9171
9219
|
project: DTOForgeProject
|
|
9172
9220
|
});
|
|
9173
|
-
var DTOUpdateForgeProjectResponse =
|
|
9221
|
+
var DTOUpdateForgeProjectResponse = z314.object({
|
|
9174
9222
|
project: DTOForgeProject.nullable()
|
|
9175
9223
|
});
|
|
9176
|
-
var DTOUGetForgeProjectResponse =
|
|
9224
|
+
var DTOUGetForgeProjectResponse = z314.object({
|
|
9177
9225
|
project: DTOForgeProject
|
|
9178
9226
|
});
|
|
9179
|
-
var DTORemoveForgeProjectResponse =
|
|
9227
|
+
var DTORemoveForgeProjectResponse = z314.object({ ok: z314.literal(true) });
|
|
9180
9228
|
|
|
9181
9229
|
// src/api/dto/forge/threads.ts
|
|
9182
|
-
import { z as
|
|
9230
|
+
import { z as z315 } from "zod";
|
|
9183
9231
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9184
9232
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9185
9233
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9186
9234
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9187
|
-
var DTOForgeChatThreadCreateInput =
|
|
9188
|
-
title:
|
|
9235
|
+
var DTOForgeChatThreadCreateInput = z315.object({
|
|
9236
|
+
title: z315.string().optional()
|
|
9189
9237
|
});
|
|
9190
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9238
|
+
var DTOForgeChatThreadCreateResponse = z315.object({
|
|
9191
9239
|
thread: DTOForgeChatThread
|
|
9192
9240
|
});
|
|
9193
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9194
|
-
title:
|
|
9241
|
+
var DTOForgeChatThreadUpdateInput = z315.object({
|
|
9242
|
+
title: z315.string()
|
|
9195
9243
|
});
|
|
9196
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9244
|
+
var DTOForgeChatThreadUpdateResponse = z315.object({
|
|
9197
9245
|
thread: DTOForgeChatThread
|
|
9198
9246
|
});
|
|
9199
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9200
|
-
success:
|
|
9247
|
+
var DTOForgeChatThreadDeleteResponse = z315.object({
|
|
9248
|
+
success: z315.boolean()
|
|
9201
9249
|
});
|
|
9202
|
-
var DTOForgeChatThreadListQuery =
|
|
9203
|
-
limit:
|
|
9204
|
-
offset:
|
|
9250
|
+
var DTOForgeChatThreadListQuery = z315.object({
|
|
9251
|
+
limit: z315.number().optional(),
|
|
9252
|
+
offset: z315.number().optional()
|
|
9205
9253
|
});
|
|
9206
|
-
var DTOForgeChatThreadListResponse =
|
|
9207
|
-
threads:
|
|
9208
|
-
pagination:
|
|
9209
|
-
offset:
|
|
9210
|
-
limit:
|
|
9211
|
-
total:
|
|
9254
|
+
var DTOForgeChatThreadListResponse = z315.object({
|
|
9255
|
+
threads: z315.array(DTOForgeChatThread),
|
|
9256
|
+
pagination: z315.object({
|
|
9257
|
+
offset: z315.number(),
|
|
9258
|
+
limit: z315.number(),
|
|
9259
|
+
total: z315.number()
|
|
9212
9260
|
})
|
|
9213
9261
|
});
|
|
9214
|
-
var DTOForgeChatMessageCreateInput =
|
|
9215
|
-
payload:
|
|
9262
|
+
var DTOForgeChatMessageCreateInput = z315.object({
|
|
9263
|
+
payload: z315.string(),
|
|
9216
9264
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9217
|
-
opikTraceId:
|
|
9265
|
+
opikTraceId: z315.string().optional()
|
|
9218
9266
|
});
|
|
9219
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9267
|
+
var DTOForgeChatMessageCreateResponse = z315.object({
|
|
9220
9268
|
message: DTOForgeChatMessage
|
|
9221
9269
|
});
|
|
9222
|
-
var DTOForgeChatMessageListQuery =
|
|
9223
|
-
limit:
|
|
9224
|
-
offset:
|
|
9270
|
+
var DTOForgeChatMessageListQuery = z315.object({
|
|
9271
|
+
limit: z315.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9272
|
+
offset: z315.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9273
|
+
});
|
|
9274
|
+
var DTOForgeChatMessageListResponse = z315.object({
|
|
9275
|
+
messages: z315.array(DTOForgeChatMessage),
|
|
9276
|
+
totalCount: z315.number(),
|
|
9277
|
+
hasMore: z315.boolean()
|
|
9225
9278
|
});
|
|
9226
|
-
var
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9279
|
+
var DTOForgeChatMessageScoreInput = z315.object({
|
|
9280
|
+
messageId: z315.string(),
|
|
9281
|
+
name: z315.string(),
|
|
9282
|
+
value: z315.number(),
|
|
9283
|
+
categoryName: z315.string().optional(),
|
|
9284
|
+
reason: z315.string().optional()
|
|
9230
9285
|
});
|
|
9231
|
-
var
|
|
9232
|
-
messageId:
|
|
9233
|
-
|
|
9234
|
-
value: z313.number(),
|
|
9235
|
-
categoryName: z313.string().optional(),
|
|
9236
|
-
reason: z313.string().optional()
|
|
9286
|
+
var DTOForgeChatMessageTagInput = z315.object({
|
|
9287
|
+
messageId: z315.string(),
|
|
9288
|
+
tags: z315.array(z315.string())
|
|
9237
9289
|
});
|
|
9238
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9239
|
-
scores: DTOForgeChatMessageScoreInput.array()
|
|
9290
|
+
var DTOForgeChatMessageScoreRequest = z315.object({
|
|
9291
|
+
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9292
|
+
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9240
9293
|
});
|
|
9241
9294
|
|
|
9242
9295
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9243
|
-
import { z as
|
|
9244
|
-
var DTOLiveblocksAuthResponse =
|
|
9245
|
-
token:
|
|
9296
|
+
import { z as z316 } from "zod";
|
|
9297
|
+
var DTOLiveblocksAuthResponse = z316.object({
|
|
9298
|
+
token: z316.string()
|
|
9246
9299
|
});
|
|
9247
9300
|
|
|
9248
9301
|
// src/api/dto/portal/portal-settings.ts
|
|
9249
|
-
import { z as
|
|
9302
|
+
import { z as z317 } from "zod";
|
|
9250
9303
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9251
9304
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9252
9305
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9253
9306
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9254
|
-
var DTOPortalSettings =
|
|
9255
|
-
id:
|
|
9256
|
-
workspaceId:
|
|
9257
|
-
enabledDesignSystemIds:
|
|
9258
|
-
enabledBrandPersistentIds:
|
|
9307
|
+
var DTOPortalSettings = z317.object({
|
|
9308
|
+
id: z317.string(),
|
|
9309
|
+
workspaceId: z317.string(),
|
|
9310
|
+
enabledDesignSystemIds: z317.array(z317.string()),
|
|
9311
|
+
enabledBrandPersistentIds: z317.array(z317.string()),
|
|
9259
9312
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9260
9313
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9261
|
-
createdAt:
|
|
9262
|
-
updatedAt:
|
|
9314
|
+
createdAt: z317.coerce.date(),
|
|
9315
|
+
updatedAt: z317.coerce.date()
|
|
9263
9316
|
});
|
|
9264
|
-
var DTOPortalSettingsGetResponse =
|
|
9317
|
+
var DTOPortalSettingsGetResponse = z317.object({
|
|
9265
9318
|
portalSettings: DTOPortalSettings
|
|
9266
9319
|
});
|
|
9267
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9268
|
-
enabledDesignSystemIds:
|
|
9269
|
-
enabledBrandPersistentIds:
|
|
9320
|
+
var DTOPortalSettingsUpdatePayload = z317.object({
|
|
9321
|
+
enabledDesignSystemIds: z317.array(z317.string()).optional(),
|
|
9322
|
+
enabledBrandPersistentIds: z317.array(z317.string()).optional(),
|
|
9270
9323
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9271
9324
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9272
9325
|
});
|
|
9273
9326
|
|
|
9274
9327
|
// src/api/dto/themes/override.ts
|
|
9275
|
-
import { z as
|
|
9328
|
+
import { z as z318 } from "zod";
|
|
9276
9329
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9277
|
-
|
|
9278
|
-
tokenPersistentId:
|
|
9330
|
+
z318.object({
|
|
9331
|
+
tokenPersistentId: z318.string(),
|
|
9279
9332
|
origin: ThemeOverrideOrigin.optional()
|
|
9280
9333
|
})
|
|
9281
9334
|
);
|
|
9282
9335
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9283
|
-
|
|
9284
|
-
tokenPersistentId:
|
|
9336
|
+
z318.object({
|
|
9337
|
+
tokenPersistentId: z318.string()
|
|
9285
9338
|
})
|
|
9286
9339
|
);
|
|
9287
9340
|
|
|
9288
9341
|
// src/api/dto/themes/theme.ts
|
|
9289
|
-
import { z as
|
|
9290
|
-
var DTOTheme =
|
|
9291
|
-
id:
|
|
9292
|
-
persistentId:
|
|
9293
|
-
designSystemVersionId:
|
|
9294
|
-
brandId:
|
|
9342
|
+
import { z as z319 } from "zod";
|
|
9343
|
+
var DTOTheme = z319.object({
|
|
9344
|
+
id: z319.string(),
|
|
9345
|
+
persistentId: z319.string(),
|
|
9346
|
+
designSystemVersionId: z319.string(),
|
|
9347
|
+
brandId: z319.string(),
|
|
9295
9348
|
meta: ObjectMeta,
|
|
9296
|
-
codeName:
|
|
9349
|
+
codeName: z319.string(),
|
|
9297
9350
|
overrides: DTOThemeOverride.array()
|
|
9298
9351
|
});
|
|
9299
|
-
var DTOThemeResponse =
|
|
9352
|
+
var DTOThemeResponse = z319.object({
|
|
9300
9353
|
theme: DTOTheme
|
|
9301
9354
|
});
|
|
9302
|
-
var DTOThemeListResponse =
|
|
9355
|
+
var DTOThemeListResponse = z319.object({
|
|
9303
9356
|
themes: DTOTheme.array()
|
|
9304
9357
|
});
|
|
9305
|
-
var DTOThemeCreatePayload =
|
|
9358
|
+
var DTOThemeCreatePayload = z319.object({
|
|
9306
9359
|
meta: ObjectMeta,
|
|
9307
|
-
persistentId:
|
|
9308
|
-
brandId:
|
|
9309
|
-
codeName:
|
|
9360
|
+
persistentId: z319.string(),
|
|
9361
|
+
brandId: z319.string(),
|
|
9362
|
+
codeName: z319.string(),
|
|
9310
9363
|
overrides: DTOThemeOverride.array()
|
|
9311
9364
|
});
|
|
9312
9365
|
|
|
@@ -9542,13 +9595,13 @@ var ExportersEndpoint = class {
|
|
|
9542
9595
|
};
|
|
9543
9596
|
|
|
9544
9597
|
// src/api/endpoints/codegen/jobs.ts
|
|
9545
|
-
import { z as
|
|
9598
|
+
import { z as z320 } from "zod";
|
|
9546
9599
|
var ExporterJobsEndpoint = class {
|
|
9547
9600
|
constructor(requestExecutor) {
|
|
9548
9601
|
this.requestExecutor = requestExecutor;
|
|
9549
9602
|
}
|
|
9550
9603
|
list(workspaceId) {
|
|
9551
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9604
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z320.any());
|
|
9552
9605
|
}
|
|
9553
9606
|
get(workspaceId, jobId) {
|
|
9554
9607
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9606,7 +9659,7 @@ var CodegenEndpoint = class {
|
|
|
9606
9659
|
};
|
|
9607
9660
|
|
|
9608
9661
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9609
|
-
import { z as
|
|
9662
|
+
import { z as z321 } from "zod";
|
|
9610
9663
|
var BrandsEndpoint = class {
|
|
9611
9664
|
constructor(requestExecutor) {
|
|
9612
9665
|
this.requestExecutor = requestExecutor;
|
|
@@ -9640,7 +9693,7 @@ var BrandsEndpoint = class {
|
|
|
9640
9693
|
});
|
|
9641
9694
|
}
|
|
9642
9695
|
delete(dsId, vId, brandId) {
|
|
9643
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
9696
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z321.any(), {
|
|
9644
9697
|
method: "DELETE"
|
|
9645
9698
|
});
|
|
9646
9699
|
}
|
|
@@ -9907,7 +9960,7 @@ var ImportJobsEndpoint = class {
|
|
|
9907
9960
|
};
|
|
9908
9961
|
|
|
9909
9962
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
9910
|
-
import { z as
|
|
9963
|
+
import { z as z322 } from "zod";
|
|
9911
9964
|
var OverridesEndpoint = class {
|
|
9912
9965
|
constructor(requestExecutor) {
|
|
9913
9966
|
this.requestExecutor = requestExecutor;
|
|
@@ -9915,7 +9968,7 @@ var OverridesEndpoint = class {
|
|
|
9915
9968
|
create(dsId, versionId, themeId, body) {
|
|
9916
9969
|
return this.requestExecutor.json(
|
|
9917
9970
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
9918
|
-
|
|
9971
|
+
z322.any(),
|
|
9919
9972
|
{
|
|
9920
9973
|
method: "POST",
|
|
9921
9974
|
body
|
|
@@ -9925,7 +9978,7 @@ var OverridesEndpoint = class {
|
|
|
9925
9978
|
};
|
|
9926
9979
|
|
|
9927
9980
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
9928
|
-
import { z as
|
|
9981
|
+
import { z as z323 } from "zod";
|
|
9929
9982
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
9930
9983
|
constructor(requestExecutor) {
|
|
9931
9984
|
this.requestExecutor = requestExecutor;
|
|
@@ -9953,7 +10006,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
9953
10006
|
delete(designSystemId, versionId, defId) {
|
|
9954
10007
|
return this.requestExecutor.json(
|
|
9955
10008
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
9956
|
-
|
|
10009
|
+
z323.any(),
|
|
9957
10010
|
{ method: "DELETE" }
|
|
9958
10011
|
);
|
|
9959
10012
|
}
|
|
@@ -9992,7 +10045,7 @@ var VersionStatsEndpoint = class {
|
|
|
9992
10045
|
};
|
|
9993
10046
|
|
|
9994
10047
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
9995
|
-
import { z as
|
|
10048
|
+
import { z as z324 } from "zod";
|
|
9996
10049
|
var ThemesEndpoint = class {
|
|
9997
10050
|
constructor(requestExecutor) {
|
|
9998
10051
|
this.requestExecutor = requestExecutor;
|
|
@@ -10015,7 +10068,7 @@ var ThemesEndpoint = class {
|
|
|
10015
10068
|
});
|
|
10016
10069
|
}
|
|
10017
10070
|
delete(dsId, versionId, themeId) {
|
|
10018
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
10071
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z324.any(), {
|
|
10019
10072
|
method: "DELETE"
|
|
10020
10073
|
});
|
|
10021
10074
|
}
|
|
@@ -10186,7 +10239,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10186
10239
|
};
|
|
10187
10240
|
|
|
10188
10241
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10189
|
-
import { z as
|
|
10242
|
+
import { z as z328 } from "zod";
|
|
10190
10243
|
|
|
10191
10244
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10192
10245
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10263,7 +10316,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10263
10316
|
};
|
|
10264
10317
|
|
|
10265
10318
|
// src/api/endpoints/design-system/sources.ts
|
|
10266
|
-
import { z as
|
|
10319
|
+
import { z as z325 } from "zod";
|
|
10267
10320
|
var DesignSystemSourcesEndpoint = class {
|
|
10268
10321
|
constructor(requestExecutor) {
|
|
10269
10322
|
this.requestExecutor = requestExecutor;
|
|
@@ -10281,7 +10334,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10281
10334
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10282
10335
|
}
|
|
10283
10336
|
delete(dsId, sourceId) {
|
|
10284
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10337
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z325.any(), { method: "DELETE" });
|
|
10285
10338
|
}
|
|
10286
10339
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10287
10340
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10324,7 +10377,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10324
10377
|
};
|
|
10325
10378
|
|
|
10326
10379
|
// src/api/endpoints/design-system/storybook.ts
|
|
10327
|
-
import { z as
|
|
10380
|
+
import { z as z326 } from "zod";
|
|
10328
10381
|
var StorybookEntriesEndpoint = class {
|
|
10329
10382
|
constructor(requestExecutor) {
|
|
10330
10383
|
this.requestExecutor = requestExecutor;
|
|
@@ -10340,14 +10393,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10340
10393
|
);
|
|
10341
10394
|
}
|
|
10342
10395
|
delete(dsId, entryId) {
|
|
10343
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10396
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z326.any(), {
|
|
10344
10397
|
method: "DELETE"
|
|
10345
10398
|
});
|
|
10346
10399
|
}
|
|
10347
10400
|
};
|
|
10348
10401
|
|
|
10349
10402
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10350
|
-
import { z as
|
|
10403
|
+
import { z as z327 } from "zod";
|
|
10351
10404
|
var StorybookHostingEndpoint = class {
|
|
10352
10405
|
constructor(requestExecutor) {
|
|
10353
10406
|
this.requestExecutor = requestExecutor;
|
|
@@ -10361,7 +10414,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10361
10414
|
delete(dsId, storybookUploadId) {
|
|
10362
10415
|
return this.requestExecutor.json(
|
|
10363
10416
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10364
|
-
|
|
10417
|
+
z327.object({ ok: z327.boolean() }),
|
|
10365
10418
|
{
|
|
10366
10419
|
method: "DELETE"
|
|
10367
10420
|
}
|
|
@@ -10419,7 +10472,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10419
10472
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10420
10473
|
}
|
|
10421
10474
|
delete(dsId) {
|
|
10422
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10475
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z328.any(), { method: "DELETE" });
|
|
10423
10476
|
}
|
|
10424
10477
|
update(dsId, body) {
|
|
10425
10478
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10617,7 +10670,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10617
10670
|
};
|
|
10618
10671
|
|
|
10619
10672
|
// src/api/endpoints/forge/project-members.ts
|
|
10620
|
-
import { z as
|
|
10673
|
+
import { z as z329 } from "zod";
|
|
10621
10674
|
var ForgeProjectMembersEndpoint = class {
|
|
10622
10675
|
constructor(requestExecutor) {
|
|
10623
10676
|
this.requestExecutor = requestExecutor;
|
|
@@ -10646,7 +10699,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10646
10699
|
delete(projectId, userId) {
|
|
10647
10700
|
return this.requestExecutor.json(
|
|
10648
10701
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10649
|
-
|
|
10702
|
+
z329.object({ ok: z329.literal(true) }),
|
|
10650
10703
|
{
|
|
10651
10704
|
method: "DELETE"
|
|
10652
10705
|
}
|
|
@@ -10800,7 +10853,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
10800
10853
|
};
|
|
10801
10854
|
|
|
10802
10855
|
// src/api/endpoints/forge/project-invitations.ts
|
|
10803
|
-
import { z as
|
|
10856
|
+
import { z as z330 } from "zod";
|
|
10804
10857
|
var ForgeProjectInvitationsEndpoint = class {
|
|
10805
10858
|
constructor(requestExecutor) {
|
|
10806
10859
|
this.requestExecutor = requestExecutor;
|
|
@@ -10837,7 +10890,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
10837
10890
|
delete(projectId, email) {
|
|
10838
10891
|
return this.requestExecutor.json(
|
|
10839
10892
|
`/forge/projects/${projectId}/invitations/${encodeURI(email)}`,
|
|
10840
|
-
|
|
10893
|
+
z330.object({ ok: z330.literal(true) }),
|
|
10841
10894
|
{
|
|
10842
10895
|
method: "DELETE"
|
|
10843
10896
|
}
|
|
@@ -10870,7 +10923,7 @@ var ForgesEndpoint = class {
|
|
|
10870
10923
|
};
|
|
10871
10924
|
|
|
10872
10925
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
10873
|
-
import { z as
|
|
10926
|
+
import { z as z331 } from "zod";
|
|
10874
10927
|
var WorkspaceChatThreadsEndpoint = class {
|
|
10875
10928
|
constructor(requestExecutor) {
|
|
10876
10929
|
this.requestExecutor = requestExecutor;
|
|
@@ -10902,7 +10955,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
10902
10955
|
);
|
|
10903
10956
|
}
|
|
10904
10957
|
delete(workspaceId, threadId) {
|
|
10905
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
10958
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z331.any(), {
|
|
10906
10959
|
method: "DELETE"
|
|
10907
10960
|
});
|
|
10908
10961
|
}
|
|
@@ -10934,7 +10987,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10934
10987
|
);
|
|
10935
10988
|
}
|
|
10936
10989
|
score(workspaceId, threadId, body) {
|
|
10937
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
10990
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z331.any(), {
|
|
10938
10991
|
method: "POST",
|
|
10939
10992
|
body
|
|
10940
10993
|
});
|
|
@@ -10942,7 +10995,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10942
10995
|
};
|
|
10943
10996
|
|
|
10944
10997
|
// src/api/endpoints/workspaces/integrations.ts
|
|
10945
|
-
import { z as
|
|
10998
|
+
import { z as z332 } from "zod";
|
|
10946
10999
|
var WorkspaceIntegrationsEndpoint = class {
|
|
10947
11000
|
constructor(requestExecutor) {
|
|
10948
11001
|
this.requestExecutor = requestExecutor;
|
|
@@ -10951,7 +11004,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
10951
11004
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
10952
11005
|
}
|
|
10953
11006
|
delete(wsId, iId) {
|
|
10954
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11007
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z332.unknown(), { method: "DELETE" });
|
|
10955
11008
|
}
|
|
10956
11009
|
};
|
|
10957
11010
|
|
|
@@ -10983,7 +11036,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
10983
11036
|
};
|
|
10984
11037
|
|
|
10985
11038
|
// src/api/endpoints/workspaces/members.ts
|
|
10986
|
-
import { z as
|
|
11039
|
+
import { z as z333 } from "zod";
|
|
10987
11040
|
var WorkspaceMembersEndpoint = class {
|
|
10988
11041
|
constructor(requestExecutor) {
|
|
10989
11042
|
this.requestExecutor = requestExecutor;
|
|
@@ -11000,7 +11053,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11000
11053
|
});
|
|
11001
11054
|
}
|
|
11002
11055
|
invite(workspaceId, body) {
|
|
11003
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11056
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z333.any(), { method: "POST", body });
|
|
11004
11057
|
}
|
|
11005
11058
|
delete(workspaceId, userId) {
|
|
11006
11059
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11029,7 +11082,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11029
11082
|
};
|
|
11030
11083
|
|
|
11031
11084
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11032
|
-
import { z as
|
|
11085
|
+
import { z as z334 } from "zod";
|
|
11033
11086
|
var WorkspacesEndpoint = class {
|
|
11034
11087
|
constructor(requestExecutor) {
|
|
11035
11088
|
this.requestExecutor = requestExecutor;
|
|
@@ -11061,10 +11114,10 @@ var WorkspacesEndpoint = class {
|
|
|
11061
11114
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11062
11115
|
}
|
|
11063
11116
|
delete(workspaceId) {
|
|
11064
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11117
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z334.any(), { method: "DELETE" });
|
|
11065
11118
|
}
|
|
11066
11119
|
subscription(workspaceId) {
|
|
11067
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11120
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z334.any(), { method: "GET" });
|
|
11068
11121
|
}
|
|
11069
11122
|
getPortalSettings(workspaceId) {
|
|
11070
11123
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11175,9 +11228,9 @@ ${bodyText}`,
|
|
|
11175
11228
|
|
|
11176
11229
|
// src/api/transport/request-executor.ts
|
|
11177
11230
|
import fetch from "node-fetch";
|
|
11178
|
-
import { z as
|
|
11179
|
-
var ResponseWrapper =
|
|
11180
|
-
result:
|
|
11231
|
+
import { z as z335 } from "zod";
|
|
11232
|
+
var ResponseWrapper = z335.object({
|
|
11233
|
+
result: z335.record(z335.any())
|
|
11181
11234
|
});
|
|
11182
11235
|
var RequestExecutor = class {
|
|
11183
11236
|
constructor(testServerConfig) {
|
|
@@ -11254,31 +11307,31 @@ var SupernovaApiClient = class {
|
|
|
11254
11307
|
};
|
|
11255
11308
|
|
|
11256
11309
|
// src/events/design-system.ts
|
|
11257
|
-
import { z as
|
|
11258
|
-
var DTOEventFigmaNodesRendered =
|
|
11259
|
-
type:
|
|
11260
|
-
designSystemId:
|
|
11261
|
-
versionId:
|
|
11262
|
-
figmaNodePersistentIds:
|
|
11263
|
-
});
|
|
11264
|
-
var DTOEventDataSourcesImported =
|
|
11265
|
-
type:
|
|
11266
|
-
designSystemId:
|
|
11267
|
-
versionId:
|
|
11268
|
-
importJobId:
|
|
11310
|
+
import { z as z336 } from "zod";
|
|
11311
|
+
var DTOEventFigmaNodesRendered = z336.object({
|
|
11312
|
+
type: z336.literal("DesignSystem.FigmaNodesRendered"),
|
|
11313
|
+
designSystemId: z336.string(),
|
|
11314
|
+
versionId: z336.string(),
|
|
11315
|
+
figmaNodePersistentIds: z336.string().array()
|
|
11316
|
+
});
|
|
11317
|
+
var DTOEventDataSourcesImported = z336.object({
|
|
11318
|
+
type: z336.literal("DesignSystem.ImportJobFinished"),
|
|
11319
|
+
designSystemId: z336.string(),
|
|
11320
|
+
versionId: z336.string(),
|
|
11321
|
+
importJobId: z336.string(),
|
|
11269
11322
|
dataSourceType: DataSourceRemoteType,
|
|
11270
|
-
dataSourceIds:
|
|
11323
|
+
dataSourceIds: z336.string().array()
|
|
11271
11324
|
});
|
|
11272
11325
|
|
|
11273
11326
|
// src/events/event.ts
|
|
11274
|
-
import { z as
|
|
11275
|
-
var DTOEvent =
|
|
11327
|
+
import { z as z337 } from "zod";
|
|
11328
|
+
var DTOEvent = z337.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11276
11329
|
|
|
11277
11330
|
// src/sync/docs-structure-repo.ts
|
|
11278
11331
|
import PQueue from "p-queue";
|
|
11279
11332
|
|
|
11280
11333
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11281
|
-
import { z as
|
|
11334
|
+
import { z as z338 } from "zod";
|
|
11282
11335
|
|
|
11283
11336
|
// src/yjs/version-room/base.ts
|
|
11284
11337
|
var VersionRoomBaseYDoc = class {
|
|
@@ -11828,24 +11881,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
11828
11881
|
};
|
|
11829
11882
|
|
|
11830
11883
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11831
|
-
var DocumentationHierarchySettings =
|
|
11832
|
-
routingVersion:
|
|
11833
|
-
isDraftFeatureAdopted:
|
|
11834
|
-
isApprovalFeatureEnabled:
|
|
11835
|
-
approvalRequiredForPublishing:
|
|
11884
|
+
var DocumentationHierarchySettings = z338.object({
|
|
11885
|
+
routingVersion: z338.string(),
|
|
11886
|
+
isDraftFeatureAdopted: z338.boolean(),
|
|
11887
|
+
isApprovalFeatureEnabled: z338.boolean(),
|
|
11888
|
+
approvalRequiredForPublishing: z338.boolean()
|
|
11836
11889
|
});
|
|
11837
11890
|
function yjsToDocumentationHierarchy(doc) {
|
|
11838
11891
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
11839
11892
|
}
|
|
11840
11893
|
|
|
11841
11894
|
// src/yjs/design-system-content/item-configuration.ts
|
|
11842
|
-
import { z as
|
|
11843
|
-
var DTODocumentationPageRoomHeaderData =
|
|
11844
|
-
title:
|
|
11895
|
+
import { z as z339 } from "zod";
|
|
11896
|
+
var DTODocumentationPageRoomHeaderData = z339.object({
|
|
11897
|
+
title: z339.string(),
|
|
11845
11898
|
configuration: DTODocumentationItemConfigurationV2
|
|
11846
11899
|
});
|
|
11847
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
11848
|
-
title:
|
|
11900
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z339.object({
|
|
11901
|
+
title: z339.string().optional(),
|
|
11849
11902
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
11850
11903
|
});
|
|
11851
11904
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -11880,9 +11933,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
11880
11933
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
11881
11934
|
|
|
11882
11935
|
// src/yjs/docs-editor/model/page.ts
|
|
11883
|
-
import { z as
|
|
11884
|
-
var DocumentationPageEditorModel =
|
|
11885
|
-
blocks:
|
|
11936
|
+
import { z as z340 } from "zod";
|
|
11937
|
+
var DocumentationPageEditorModel = z340.object({
|
|
11938
|
+
blocks: z340.array(DocumentationPageContentItem)
|
|
11886
11939
|
});
|
|
11887
11940
|
|
|
11888
11941
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -15559,7 +15612,7 @@ var blocks = [
|
|
|
15559
15612
|
|
|
15560
15613
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
15561
15614
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
15562
|
-
import { z as
|
|
15615
|
+
import { z as z341 } from "zod";
|
|
15563
15616
|
function yDocToPage(yDoc, definitions) {
|
|
15564
15617
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
15565
15618
|
}
|
|
@@ -15635,7 +15688,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
15635
15688
|
if (!id) return null;
|
|
15636
15689
|
return {
|
|
15637
15690
|
id,
|
|
15638
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
15691
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z341.string()) ?? "",
|
|
15639
15692
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
15640
15693
|
};
|
|
15641
15694
|
}
|
|
@@ -15669,7 +15722,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
15669
15722
|
});
|
|
15670
15723
|
}
|
|
15671
15724
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
15672
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
15725
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z341.string());
|
|
15673
15726
|
if (!definitionId) {
|
|
15674
15727
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
15675
15728
|
return [];
|
|
@@ -15710,7 +15763,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
15710
15763
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15711
15764
|
if (!id) return null;
|
|
15712
15765
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15713
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
15766
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z341.string().optional()));
|
|
15714
15767
|
return {
|
|
15715
15768
|
id,
|
|
15716
15769
|
type: "Block",
|
|
@@ -15833,9 +15886,9 @@ function parseRichTextAttribute(mark) {
|
|
|
15833
15886
|
return null;
|
|
15834
15887
|
}
|
|
15835
15888
|
function parseProsemirrorLink(mark) {
|
|
15836
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
15889
|
+
const href = getProsemirrorAttribute(mark, "href", z341.string().optional());
|
|
15837
15890
|
if (!href) return null;
|
|
15838
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
15891
|
+
const target = getProsemirrorAttribute(mark, "target", z341.string().optional());
|
|
15839
15892
|
const openInNewTab = target === "_blank";
|
|
15840
15893
|
if (href.startsWith("@")) {
|
|
15841
15894
|
return {
|
|
@@ -15854,9 +15907,9 @@ function parseProsemirrorLink(mark) {
|
|
|
15854
15907
|
}
|
|
15855
15908
|
}
|
|
15856
15909
|
function parseProsemirrorCommentHighlight(mark) {
|
|
15857
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
15910
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z341.string().optional());
|
|
15858
15911
|
if (!highlightId) return null;
|
|
15859
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
15912
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z341.boolean().optional()) ?? false;
|
|
15860
15913
|
return {
|
|
15861
15914
|
type: "Comment",
|
|
15862
15915
|
commentHighlightId: highlightId,
|
|
@@ -15867,7 +15920,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15867
15920
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15868
15921
|
if (!id) return null;
|
|
15869
15922
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15870
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
15923
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z341.boolean().optional()) !== false;
|
|
15871
15924
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
15872
15925
|
if (!tableChild) {
|
|
15873
15926
|
return emptyTable(id, variantId, 0);
|
|
@@ -15913,9 +15966,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15913
15966
|
function parseAsTableCell(prosemirrorNode) {
|
|
15914
15967
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15915
15968
|
if (!id) return null;
|
|
15916
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
15969
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z341.string().optional());
|
|
15917
15970
|
let columnWidth;
|
|
15918
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
15971
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z341.array(z341.number()).nullish());
|
|
15919
15972
|
if (columnWidthArray) {
|
|
15920
15973
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
15921
15974
|
}
|
|
@@ -15951,7 +16004,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
15951
16004
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
15952
16005
|
};
|
|
15953
16006
|
case "image":
|
|
15954
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16007
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z341.string());
|
|
15955
16008
|
if (!items) return null;
|
|
15956
16009
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
15957
16010
|
if (!parsedItems.success) return null;
|
|
@@ -16065,7 +16118,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
16065
16118
|
);
|
|
16066
16119
|
}
|
|
16067
16120
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
16068
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16121
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z341.string());
|
|
16069
16122
|
if (!itemsString) return null;
|
|
16070
16123
|
const itemsJson = JSON.parse(itemsString);
|
|
16071
16124
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -16076,18 +16129,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
16076
16129
|
}
|
|
16077
16130
|
function parseAppearance(prosemirrorNode) {
|
|
16078
16131
|
let appearance = {};
|
|
16079
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16132
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z341.string().optional());
|
|
16080
16133
|
if (rawAppearanceString) {
|
|
16081
16134
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
16082
16135
|
if (parsedAppearance.success) {
|
|
16083
16136
|
appearance = parsedAppearance.data;
|
|
16084
16137
|
}
|
|
16085
16138
|
}
|
|
16086
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16139
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z341.number().optional());
|
|
16087
16140
|
if (columns) {
|
|
16088
16141
|
appearance.numberOfColumns = columns;
|
|
16089
16142
|
}
|
|
16090
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16143
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z341.string().optional());
|
|
16091
16144
|
if (backgroundColor) {
|
|
16092
16145
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
16093
16146
|
if (parsedColor.success) {
|
|
@@ -16188,12 +16241,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16188
16241
|
}
|
|
16189
16242
|
}
|
|
16190
16243
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16191
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16244
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z341.string());
|
|
16192
16245
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16193
16246
|
return id;
|
|
16194
16247
|
}
|
|
16195
16248
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16196
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16249
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z341.string()));
|
|
16197
16250
|
}
|
|
16198
16251
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16199
16252
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -17044,6 +17097,7 @@ export {
|
|
|
17044
17097
|
DTOForgeChatMessageScoreRequest,
|
|
17045
17098
|
DTOForgeChatMessageSender,
|
|
17046
17099
|
DTOForgeChatMessageSenderType,
|
|
17100
|
+
DTOForgeChatMessageTagInput,
|
|
17047
17101
|
DTOForgeChatThread,
|
|
17048
17102
|
DTOForgeChatThreadCreateInput,
|
|
17049
17103
|
DTOForgeChatThreadCreateResponse,
|
|
@@ -17060,6 +17114,10 @@ export {
|
|
|
17060
17114
|
DTOForgeParticipantGetResponse,
|
|
17061
17115
|
DTOForgeParticipantsListResponse,
|
|
17062
17116
|
DTOForgeProject,
|
|
17117
|
+
DTOForgeProjectAction,
|
|
17118
|
+
DTOForgeProjectActionFeatureCreate,
|
|
17119
|
+
DTOForgeProjectActionFeatureDelete,
|
|
17120
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
17063
17121
|
DTOForgeProjectArtifact,
|
|
17064
17122
|
DTOForgeProjectArtifactCreate,
|
|
17065
17123
|
DTOForgeProjectArtifactCreateResponse,
|
|
@@ -17076,6 +17134,11 @@ export {
|
|
|
17076
17134
|
DTOForgeProjectContextListResponse,
|
|
17077
17135
|
DTOForgeProjectContextRemoveResponse,
|
|
17078
17136
|
DTOForgeProjectContextUpdateResponse,
|
|
17137
|
+
DTOForgeProjectFeature,
|
|
17138
|
+
DTOForgeProjectFeatureCreateInput,
|
|
17139
|
+
DTOForgeProjectFeatureDeleteInput,
|
|
17140
|
+
DTOForgeProjectFeatureListResponse,
|
|
17141
|
+
DTOForgeProjectFeatureUpdateInput,
|
|
17079
17142
|
DTOForgeProjectGetResponse,
|
|
17080
17143
|
DTOForgeProjectInvitation,
|
|
17081
17144
|
DTOForgeProjectInvitationCreateResponse,
|