@supernova-studio/client 1.10.25 → 1.11.1
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 +453 -8
- package/dist/index.d.ts +453 -8
- package/dist/index.js +72 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +283 -213
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7148,7 +7148,20 @@ var DTOSubscription = z239.object({
|
|
|
7148
7148
|
amount: z239.number(),
|
|
7149
7149
|
isTrial: z239.boolean(),
|
|
7150
7150
|
billingType: BillingTypeSchema.optional(),
|
|
7151
|
-
daysUntilDue: z239.number().optional()
|
|
7151
|
+
daysUntilDue: z239.number().optional(),
|
|
7152
|
+
creditBalance: z239.object({
|
|
7153
|
+
oneTime: z239.object({
|
|
7154
|
+
total: z239.number(),
|
|
7155
|
+
used: z239.number(),
|
|
7156
|
+
balance: z239.number()
|
|
7157
|
+
}),
|
|
7158
|
+
recurring: z239.object({
|
|
7159
|
+
total: z239.number(),
|
|
7160
|
+
used: z239.number(),
|
|
7161
|
+
balance: z239.number(),
|
|
7162
|
+
resetAt: z239.string().optional()
|
|
7163
|
+
})
|
|
7164
|
+
})
|
|
7152
7165
|
});
|
|
7153
7166
|
var DTOSubscriptionResponse = z239.object({
|
|
7154
7167
|
subscription: DTOSubscription
|
|
@@ -8981,17 +8994,65 @@ var DTODeleteForgeIterationMessageResponse = z304.object({
|
|
|
8981
8994
|
ok: z304.literal(true)
|
|
8982
8995
|
});
|
|
8983
8996
|
|
|
8984
|
-
// src/api/dto/forge/project-
|
|
8985
|
-
import
|
|
8986
|
-
|
|
8997
|
+
// src/api/dto/forge/project-action.ts
|
|
8998
|
+
import z306 from "zod";
|
|
8999
|
+
|
|
9000
|
+
// src/api/dto/forge/project-feature.ts
|
|
9001
|
+
import z305 from "zod";
|
|
9002
|
+
var DTOForgeProjectFeature = z305.object({
|
|
9003
|
+
id: z305.string(),
|
|
9004
|
+
name: z305.string(),
|
|
9005
|
+
description: z305.string(),
|
|
9006
|
+
isArchived: z305.boolean()
|
|
9007
|
+
});
|
|
9008
|
+
var DTOForgeProjectFeatureListResponse = z305.object({
|
|
9009
|
+
features: DTOForgeProjectFeature.array()
|
|
9010
|
+
});
|
|
9011
|
+
var DTOForgeProjectFeatureCreateInput = z305.object({
|
|
9012
|
+
id: z305.string(),
|
|
9013
|
+
name: z305.string(),
|
|
9014
|
+
description: z305.string()
|
|
9015
|
+
});
|
|
9016
|
+
var DTOForgeProjectFeatureUpdateInput = z305.object({
|
|
9017
|
+
id: z305.string(),
|
|
9018
|
+
name: z305.string().optional(),
|
|
9019
|
+
description: z305.string().optional(),
|
|
9020
|
+
isArchived: z305.boolean().optional()
|
|
9021
|
+
});
|
|
9022
|
+
var DTOForgeProjectFeatureDeleteInput = z305.object({
|
|
8987
9023
|
id: z305.string()
|
|
8988
9024
|
});
|
|
8989
|
-
|
|
9025
|
+
|
|
9026
|
+
// src/api/dto/forge/project-action.ts
|
|
9027
|
+
var DTOForgeProjectActionFeatureCreate = z306.object({
|
|
9028
|
+
type: z306.literal("FeatureCreate"),
|
|
9029
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
9030
|
+
});
|
|
9031
|
+
var DTOForgeProjectActionFeatureUpdate = z306.object({
|
|
9032
|
+
type: z306.literal("FeatureUpdate"),
|
|
9033
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
9034
|
+
});
|
|
9035
|
+
var DTOForgeProjectActionFeatureDelete = z306.object({
|
|
9036
|
+
type: z306.literal("FeatureDelete"),
|
|
9037
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
9038
|
+
});
|
|
9039
|
+
var DTOForgeProjectAction = z306.discriminatedUnion("type", [
|
|
9040
|
+
DTOForgeProjectActionFeatureCreate,
|
|
9041
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
9042
|
+
DTOForgeProjectActionFeatureDelete
|
|
9043
|
+
]);
|
|
9044
|
+
|
|
9045
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
9046
|
+
import { z as z307 } from "zod";
|
|
9047
|
+
var DTOForgeProjectArtifactRoom = z307.object({
|
|
9048
|
+
id: z307.string()
|
|
9049
|
+
});
|
|
9050
|
+
var DTOForgeProjectArtifactRoomResponse = z307.object({
|
|
8990
9051
|
room: DTOForgeProjectArtifactRoom
|
|
8991
9052
|
});
|
|
8992
9053
|
|
|
8993
9054
|
// src/api/dto/forge/project-artifact.ts
|
|
8994
|
-
import { z as
|
|
9055
|
+
import { z as z308 } from "zod";
|
|
8995
9056
|
var omitProps = {
|
|
8996
9057
|
id: true,
|
|
8997
9058
|
projectId: true,
|
|
@@ -9005,24 +9066,24 @@ var DTOForgeProjectArtifactUpdate = DTOForgeProjectArtifact.omit({
|
|
|
9005
9066
|
iterationId: true
|
|
9006
9067
|
}).partial();
|
|
9007
9068
|
var DTOForgeProjectArtifactCreate = DTOForgeProjectArtifact.omit(omitProps);
|
|
9008
|
-
var DTOForgeProjectArtifactGetResponse =
|
|
9069
|
+
var DTOForgeProjectArtifactGetResponse = z308.object({
|
|
9009
9070
|
artifact: DTOForgeProjectArtifact
|
|
9010
9071
|
});
|
|
9011
|
-
var DTOForgeProjectArtifactCreateResponse =
|
|
9072
|
+
var DTOForgeProjectArtifactCreateResponse = z308.object({
|
|
9012
9073
|
artifact: DTOForgeProjectArtifact
|
|
9013
9074
|
});
|
|
9014
|
-
var DTOForgeProjectArtifactUpdateResponse =
|
|
9075
|
+
var DTOForgeProjectArtifactUpdateResponse = z308.object({
|
|
9015
9076
|
artifact: DTOForgeProjectArtifact
|
|
9016
9077
|
});
|
|
9017
|
-
var DTOForgeProjectArtifactDeleteResponse =
|
|
9018
|
-
ok:
|
|
9078
|
+
var DTOForgeProjectArtifactDeleteResponse = z308.object({
|
|
9079
|
+
ok: z308.literal(true)
|
|
9019
9080
|
});
|
|
9020
|
-
var DTOForgeProjectArtifactsListResponse =
|
|
9021
|
-
artifacts:
|
|
9081
|
+
var DTOForgeProjectArtifactsListResponse = z308.object({
|
|
9082
|
+
artifacts: z308.array(DTOForgeProjectArtifact)
|
|
9022
9083
|
});
|
|
9023
9084
|
|
|
9024
9085
|
// src/api/dto/forge/project-context.ts
|
|
9025
|
-
import { z as
|
|
9086
|
+
import { z as z309 } from "zod";
|
|
9026
9087
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9027
9088
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9028
9089
|
definition: true,
|
|
@@ -9034,17 +9095,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9034
9095
|
tailwindConfig: true,
|
|
9035
9096
|
styling: true
|
|
9036
9097
|
}).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:
|
|
9098
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z309.string() });
|
|
9099
|
+
var DTOForgeProjectContextGetResponse = z309.object({ context: DTOForgeProjectContext.nullable() });
|
|
9100
|
+
var DTOForgeProjectContextListResponse = z309.object({ contexts: z309.array(DTOForgeProjectContext) });
|
|
9101
|
+
var DTOForgeProjectContextCreateResponse = z309.object({ context: DTOForgeProjectContext });
|
|
9102
|
+
var DTOForgeProjectContextUpdateResponse = z309.object({ context: DTOForgeProjectContext.nullable() });
|
|
9103
|
+
var DTOForgeProjectContextRemoveResponse = z309.object({
|
|
9104
|
+
ok: z309.literal(true)
|
|
9044
9105
|
});
|
|
9045
9106
|
|
|
9046
9107
|
// src/api/dto/forge/project-invitation.ts
|
|
9047
|
-
import { z as
|
|
9108
|
+
import { z as z310 } from "zod";
|
|
9048
9109
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9049
9110
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9050
9111
|
email: true,
|
|
@@ -9056,24 +9117,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({ ema
|
|
|
9056
9117
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9057
9118
|
email: true
|
|
9058
9119
|
});
|
|
9059
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
9060
|
-
invitations:
|
|
9120
|
+
var DTOForgeProjectInvitationsListResponse = z310.object({
|
|
9121
|
+
invitations: z310.array(DTOForgeProjectInvitation)
|
|
9061
9122
|
});
|
|
9062
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9123
|
+
var DTOForgeProjectInvitationGetResponse = z310.object({
|
|
9063
9124
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9064
9125
|
});
|
|
9065
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9126
|
+
var DTOForgeProjectInvitationCreateResponse = z310.object({
|
|
9066
9127
|
invitation: DTOForgeProjectInvitation
|
|
9067
9128
|
});
|
|
9068
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9129
|
+
var DTOForgeProjectInvitationUpdateResponse = z310.object({
|
|
9069
9130
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9070
9131
|
});
|
|
9071
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
9072
|
-
ok:
|
|
9132
|
+
var DTOForgeProjectInvitationRemoveResponse = z310.object({
|
|
9133
|
+
ok: z310.literal(true)
|
|
9073
9134
|
});
|
|
9074
9135
|
|
|
9075
9136
|
// src/api/dto/forge/project-iteration.ts
|
|
9076
|
-
import { z as
|
|
9137
|
+
import { z as z311 } from "zod";
|
|
9077
9138
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9078
9139
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9079
9140
|
artifacts: true,
|
|
@@ -9084,7 +9145,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9084
9145
|
messages: DTOForgeIterationMessage.array(),
|
|
9085
9146
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9086
9147
|
});
|
|
9087
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9148
|
+
var DTOGetForgeProjectIterationResponse = z311.object({
|
|
9088
9149
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9089
9150
|
});
|
|
9090
9151
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9094,20 +9155,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9094
9155
|
mergeMeta: true,
|
|
9095
9156
|
createdAt: true
|
|
9096
9157
|
});
|
|
9097
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9098
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9158
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z311.string() });
|
|
9159
|
+
var DTOCreateForgeProjectIterationResponse = z311.object({
|
|
9099
9160
|
iteration: DTOForgeProjectIteration
|
|
9100
9161
|
});
|
|
9101
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9162
|
+
var DTOUpdateForgeProjectIterationResponse = z311.object({
|
|
9102
9163
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9103
9164
|
});
|
|
9104
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9105
|
-
ok:
|
|
9165
|
+
var DTODeleteForgeProjectIterationResponse = z311.object({
|
|
9166
|
+
ok: z311.literal(true)
|
|
9106
9167
|
});
|
|
9107
|
-
var DTOForgeProjectIterationListResponse =
|
|
9168
|
+
var DTOForgeProjectIterationListResponse = z311.object({ iterations: z311.array(DTOForgeProjectIteration) });
|
|
9108
9169
|
|
|
9109
9170
|
// src/api/dto/forge/project-member.ts
|
|
9110
|
-
import { z as
|
|
9171
|
+
import { z as z312 } from "zod";
|
|
9111
9172
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9112
9173
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9113
9174
|
user: DTOUser,
|
|
@@ -9121,36 +9182,36 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember.omit({ userId: tru
|
|
|
9121
9182
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9122
9183
|
userId: true
|
|
9123
9184
|
});
|
|
9124
|
-
var DTOForgeProjectMembersListResponse =
|
|
9125
|
-
members:
|
|
9185
|
+
var DTOForgeProjectMembersListResponse = z312.object({
|
|
9186
|
+
members: z312.array(DTOForgeProjectMember)
|
|
9126
9187
|
});
|
|
9127
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9188
|
+
var DTOForgeProjectMemberGetResponse = z312.object({
|
|
9128
9189
|
member: DTOForgeProjectMember.nullable()
|
|
9129
9190
|
});
|
|
9130
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9191
|
+
var DTOForgeProjectMemberCreateResponse = z312.object({
|
|
9131
9192
|
member: DTOForgeProjectMember
|
|
9132
9193
|
});
|
|
9133
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9194
|
+
var DTOForgeProjectMemberUpdateResponse = z312.object({
|
|
9134
9195
|
member: DTOForgeProjectMember.nullable()
|
|
9135
9196
|
});
|
|
9136
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9137
|
-
ok:
|
|
9197
|
+
var DTOForgeProjectMemberRemoveResponse = z312.object({
|
|
9198
|
+
ok: z312.literal(true)
|
|
9138
9199
|
});
|
|
9139
9200
|
|
|
9140
9201
|
// src/api/dto/forge/project-room.ts
|
|
9141
|
-
import { z as
|
|
9142
|
-
var DTOForgeProjectRoom =
|
|
9143
|
-
id:
|
|
9202
|
+
import { z as z313 } from "zod";
|
|
9203
|
+
var DTOForgeProjectRoom = z313.object({
|
|
9204
|
+
id: z313.string()
|
|
9144
9205
|
});
|
|
9145
|
-
var DTOForgeProjectRoomResponse =
|
|
9206
|
+
var DTOForgeProjectRoomResponse = z313.object({
|
|
9146
9207
|
room: DTOForgeProjectRoom
|
|
9147
9208
|
});
|
|
9148
9209
|
|
|
9149
9210
|
// src/api/dto/forge/project.ts
|
|
9150
|
-
import { z as
|
|
9211
|
+
import { z as z314 } from "zod";
|
|
9151
9212
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9152
9213
|
context: ForgeProjectContext,
|
|
9153
|
-
members:
|
|
9214
|
+
members: z314.array(DTOForgeProjectMember)
|
|
9154
9215
|
});
|
|
9155
9216
|
var DTOCreateForgeProject = ForgeProject.pick({
|
|
9156
9217
|
instruction: true,
|
|
@@ -9162,156 +9223,156 @@ var DTOCreateForgeProject = ForgeProject.pick({
|
|
|
9162
9223
|
isArchived: true
|
|
9163
9224
|
});
|
|
9164
9225
|
var DTOUpdateForgeProject = DTOCreateForgeProject.partial().extend({
|
|
9165
|
-
id:
|
|
9166
|
-
membersToRetain:
|
|
9226
|
+
id: z314.string(),
|
|
9227
|
+
membersToRetain: z314.string().array().min(1).optional()
|
|
9167
9228
|
});
|
|
9168
|
-
var DTOForgeProjectGetResponse =
|
|
9169
|
-
var DTOForgeProjectsListResponse =
|
|
9170
|
-
var DTOCreateForgeProjectResponse =
|
|
9229
|
+
var DTOForgeProjectGetResponse = z314.object({ project: DTOForgeProject.nullable() });
|
|
9230
|
+
var DTOForgeProjectsListResponse = z314.object({ projects: z314.array(DTOForgeProject) });
|
|
9231
|
+
var DTOCreateForgeProjectResponse = z314.object({
|
|
9171
9232
|
project: DTOForgeProject
|
|
9172
9233
|
});
|
|
9173
|
-
var DTOUpdateForgeProjectResponse =
|
|
9234
|
+
var DTOUpdateForgeProjectResponse = z314.object({
|
|
9174
9235
|
project: DTOForgeProject.nullable()
|
|
9175
9236
|
});
|
|
9176
|
-
var DTOUGetForgeProjectResponse =
|
|
9237
|
+
var DTOUGetForgeProjectResponse = z314.object({
|
|
9177
9238
|
project: DTOForgeProject
|
|
9178
9239
|
});
|
|
9179
|
-
var DTORemoveForgeProjectResponse =
|
|
9240
|
+
var DTORemoveForgeProjectResponse = z314.object({ ok: z314.literal(true) });
|
|
9180
9241
|
|
|
9181
9242
|
// src/api/dto/forge/threads.ts
|
|
9182
|
-
import { z as
|
|
9243
|
+
import { z as z315 } from "zod";
|
|
9183
9244
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9184
9245
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9185
9246
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9186
9247
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9187
|
-
var DTOForgeChatThreadCreateInput =
|
|
9188
|
-
title:
|
|
9248
|
+
var DTOForgeChatThreadCreateInput = z315.object({
|
|
9249
|
+
title: z315.string().optional()
|
|
9189
9250
|
});
|
|
9190
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9251
|
+
var DTOForgeChatThreadCreateResponse = z315.object({
|
|
9191
9252
|
thread: DTOForgeChatThread
|
|
9192
9253
|
});
|
|
9193
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9194
|
-
title:
|
|
9254
|
+
var DTOForgeChatThreadUpdateInput = z315.object({
|
|
9255
|
+
title: z315.string()
|
|
9195
9256
|
});
|
|
9196
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9257
|
+
var DTOForgeChatThreadUpdateResponse = z315.object({
|
|
9197
9258
|
thread: DTOForgeChatThread
|
|
9198
9259
|
});
|
|
9199
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9200
|
-
success:
|
|
9260
|
+
var DTOForgeChatThreadDeleteResponse = z315.object({
|
|
9261
|
+
success: z315.boolean()
|
|
9201
9262
|
});
|
|
9202
|
-
var DTOForgeChatThreadListQuery =
|
|
9203
|
-
limit:
|
|
9204
|
-
offset:
|
|
9263
|
+
var DTOForgeChatThreadListQuery = z315.object({
|
|
9264
|
+
limit: z315.number().optional(),
|
|
9265
|
+
offset: z315.number().optional()
|
|
9205
9266
|
});
|
|
9206
|
-
var DTOForgeChatThreadListResponse =
|
|
9207
|
-
threads:
|
|
9208
|
-
pagination:
|
|
9209
|
-
offset:
|
|
9210
|
-
limit:
|
|
9211
|
-
total:
|
|
9267
|
+
var DTOForgeChatThreadListResponse = z315.object({
|
|
9268
|
+
threads: z315.array(DTOForgeChatThread),
|
|
9269
|
+
pagination: z315.object({
|
|
9270
|
+
offset: z315.number(),
|
|
9271
|
+
limit: z315.number(),
|
|
9272
|
+
total: z315.number()
|
|
9212
9273
|
})
|
|
9213
9274
|
});
|
|
9214
|
-
var DTOForgeChatMessageCreateInput =
|
|
9215
|
-
payload:
|
|
9275
|
+
var DTOForgeChatMessageCreateInput = z315.object({
|
|
9276
|
+
payload: z315.string(),
|
|
9216
9277
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9217
|
-
opikTraceId:
|
|
9278
|
+
opikTraceId: z315.string().optional()
|
|
9218
9279
|
});
|
|
9219
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9280
|
+
var DTOForgeChatMessageCreateResponse = z315.object({
|
|
9220
9281
|
message: DTOForgeChatMessage
|
|
9221
9282
|
});
|
|
9222
|
-
var DTOForgeChatMessageListQuery =
|
|
9223
|
-
limit:
|
|
9224
|
-
offset:
|
|
9283
|
+
var DTOForgeChatMessageListQuery = z315.object({
|
|
9284
|
+
limit: z315.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9285
|
+
offset: z315.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9225
9286
|
});
|
|
9226
|
-
var DTOForgeChatMessageListResponse =
|
|
9227
|
-
messages:
|
|
9228
|
-
totalCount:
|
|
9229
|
-
hasMore:
|
|
9287
|
+
var DTOForgeChatMessageListResponse = z315.object({
|
|
9288
|
+
messages: z315.array(DTOForgeChatMessage),
|
|
9289
|
+
totalCount: z315.number(),
|
|
9290
|
+
hasMore: z315.boolean()
|
|
9230
9291
|
});
|
|
9231
|
-
var DTOForgeChatMessageScoreInput =
|
|
9232
|
-
messageId:
|
|
9233
|
-
name:
|
|
9234
|
-
value:
|
|
9235
|
-
categoryName:
|
|
9236
|
-
reason:
|
|
9292
|
+
var DTOForgeChatMessageScoreInput = z315.object({
|
|
9293
|
+
messageId: z315.string(),
|
|
9294
|
+
name: z315.string(),
|
|
9295
|
+
value: z315.number(),
|
|
9296
|
+
categoryName: z315.string().optional(),
|
|
9297
|
+
reason: z315.string().optional()
|
|
9237
9298
|
});
|
|
9238
|
-
var DTOForgeChatMessageTagInput =
|
|
9239
|
-
messageId:
|
|
9240
|
-
tags:
|
|
9299
|
+
var DTOForgeChatMessageTagInput = z315.object({
|
|
9300
|
+
messageId: z315.string(),
|
|
9301
|
+
tags: z315.array(z315.string())
|
|
9241
9302
|
});
|
|
9242
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9303
|
+
var DTOForgeChatMessageScoreRequest = z315.object({
|
|
9243
9304
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9244
9305
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9245
9306
|
});
|
|
9246
9307
|
|
|
9247
9308
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9248
|
-
import { z as
|
|
9249
|
-
var DTOLiveblocksAuthResponse =
|
|
9250
|
-
token:
|
|
9309
|
+
import { z as z316 } from "zod";
|
|
9310
|
+
var DTOLiveblocksAuthResponse = z316.object({
|
|
9311
|
+
token: z316.string()
|
|
9251
9312
|
});
|
|
9252
9313
|
|
|
9253
9314
|
// src/api/dto/portal/portal-settings.ts
|
|
9254
|
-
import { z as
|
|
9315
|
+
import { z as z317 } from "zod";
|
|
9255
9316
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9256
9317
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9257
9318
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9258
9319
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9259
|
-
var DTOPortalSettings =
|
|
9260
|
-
id:
|
|
9261
|
-
workspaceId:
|
|
9262
|
-
enabledDesignSystemIds:
|
|
9263
|
-
enabledBrandPersistentIds:
|
|
9320
|
+
var DTOPortalSettings = z317.object({
|
|
9321
|
+
id: z317.string(),
|
|
9322
|
+
workspaceId: z317.string(),
|
|
9323
|
+
enabledDesignSystemIds: z317.array(z317.string()),
|
|
9324
|
+
enabledBrandPersistentIds: z317.array(z317.string()),
|
|
9264
9325
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9265
9326
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9266
|
-
createdAt:
|
|
9267
|
-
updatedAt:
|
|
9327
|
+
createdAt: z317.coerce.date(),
|
|
9328
|
+
updatedAt: z317.coerce.date()
|
|
9268
9329
|
});
|
|
9269
|
-
var DTOPortalSettingsGetResponse =
|
|
9330
|
+
var DTOPortalSettingsGetResponse = z317.object({
|
|
9270
9331
|
portalSettings: DTOPortalSettings
|
|
9271
9332
|
});
|
|
9272
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9273
|
-
enabledDesignSystemIds:
|
|
9274
|
-
enabledBrandPersistentIds:
|
|
9333
|
+
var DTOPortalSettingsUpdatePayload = z317.object({
|
|
9334
|
+
enabledDesignSystemIds: z317.array(z317.string()).optional(),
|
|
9335
|
+
enabledBrandPersistentIds: z317.array(z317.string()).optional(),
|
|
9275
9336
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9276
9337
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9277
9338
|
});
|
|
9278
9339
|
|
|
9279
9340
|
// src/api/dto/themes/override.ts
|
|
9280
|
-
import { z as
|
|
9341
|
+
import { z as z318 } from "zod";
|
|
9281
9342
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9282
|
-
|
|
9283
|
-
tokenPersistentId:
|
|
9343
|
+
z318.object({
|
|
9344
|
+
tokenPersistentId: z318.string(),
|
|
9284
9345
|
origin: ThemeOverrideOrigin.optional()
|
|
9285
9346
|
})
|
|
9286
9347
|
);
|
|
9287
9348
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9288
|
-
|
|
9289
|
-
tokenPersistentId:
|
|
9349
|
+
z318.object({
|
|
9350
|
+
tokenPersistentId: z318.string()
|
|
9290
9351
|
})
|
|
9291
9352
|
);
|
|
9292
9353
|
|
|
9293
9354
|
// src/api/dto/themes/theme.ts
|
|
9294
|
-
import { z as
|
|
9295
|
-
var DTOTheme =
|
|
9296
|
-
id:
|
|
9297
|
-
persistentId:
|
|
9298
|
-
designSystemVersionId:
|
|
9299
|
-
brandId:
|
|
9355
|
+
import { z as z319 } from "zod";
|
|
9356
|
+
var DTOTheme = z319.object({
|
|
9357
|
+
id: z319.string(),
|
|
9358
|
+
persistentId: z319.string(),
|
|
9359
|
+
designSystemVersionId: z319.string(),
|
|
9360
|
+
brandId: z319.string(),
|
|
9300
9361
|
meta: ObjectMeta,
|
|
9301
|
-
codeName:
|
|
9362
|
+
codeName: z319.string(),
|
|
9302
9363
|
overrides: DTOThemeOverride.array()
|
|
9303
9364
|
});
|
|
9304
|
-
var DTOThemeResponse =
|
|
9365
|
+
var DTOThemeResponse = z319.object({
|
|
9305
9366
|
theme: DTOTheme
|
|
9306
9367
|
});
|
|
9307
|
-
var DTOThemeListResponse =
|
|
9368
|
+
var DTOThemeListResponse = z319.object({
|
|
9308
9369
|
themes: DTOTheme.array()
|
|
9309
9370
|
});
|
|
9310
|
-
var DTOThemeCreatePayload =
|
|
9371
|
+
var DTOThemeCreatePayload = z319.object({
|
|
9311
9372
|
meta: ObjectMeta,
|
|
9312
|
-
persistentId:
|
|
9313
|
-
brandId:
|
|
9314
|
-
codeName:
|
|
9373
|
+
persistentId: z319.string(),
|
|
9374
|
+
brandId: z319.string(),
|
|
9375
|
+
codeName: z319.string(),
|
|
9315
9376
|
overrides: DTOThemeOverride.array()
|
|
9316
9377
|
});
|
|
9317
9378
|
|
|
@@ -9547,13 +9608,13 @@ var ExportersEndpoint = class {
|
|
|
9547
9608
|
};
|
|
9548
9609
|
|
|
9549
9610
|
// src/api/endpoints/codegen/jobs.ts
|
|
9550
|
-
import { z as
|
|
9611
|
+
import { z as z320 } from "zod";
|
|
9551
9612
|
var ExporterJobsEndpoint = class {
|
|
9552
9613
|
constructor(requestExecutor) {
|
|
9553
9614
|
this.requestExecutor = requestExecutor;
|
|
9554
9615
|
}
|
|
9555
9616
|
list(workspaceId) {
|
|
9556
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
9617
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z320.any());
|
|
9557
9618
|
}
|
|
9558
9619
|
get(workspaceId, jobId) {
|
|
9559
9620
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -9611,7 +9672,7 @@ var CodegenEndpoint = class {
|
|
|
9611
9672
|
};
|
|
9612
9673
|
|
|
9613
9674
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
9614
|
-
import { z as
|
|
9675
|
+
import { z as z321 } from "zod";
|
|
9615
9676
|
var BrandsEndpoint = class {
|
|
9616
9677
|
constructor(requestExecutor) {
|
|
9617
9678
|
this.requestExecutor = requestExecutor;
|
|
@@ -9645,7 +9706,7 @@ var BrandsEndpoint = class {
|
|
|
9645
9706
|
});
|
|
9646
9707
|
}
|
|
9647
9708
|
delete(dsId, vId, brandId) {
|
|
9648
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
9709
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z321.any(), {
|
|
9649
9710
|
method: "DELETE"
|
|
9650
9711
|
});
|
|
9651
9712
|
}
|
|
@@ -9912,7 +9973,7 @@ var ImportJobsEndpoint = class {
|
|
|
9912
9973
|
};
|
|
9913
9974
|
|
|
9914
9975
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
9915
|
-
import { z as
|
|
9976
|
+
import { z as z322 } from "zod";
|
|
9916
9977
|
var OverridesEndpoint = class {
|
|
9917
9978
|
constructor(requestExecutor) {
|
|
9918
9979
|
this.requestExecutor = requestExecutor;
|
|
@@ -9920,7 +9981,7 @@ var OverridesEndpoint = class {
|
|
|
9920
9981
|
create(dsId, versionId, themeId, body) {
|
|
9921
9982
|
return this.requestExecutor.json(
|
|
9922
9983
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
9923
|
-
|
|
9984
|
+
z322.any(),
|
|
9924
9985
|
{
|
|
9925
9986
|
method: "POST",
|
|
9926
9987
|
body
|
|
@@ -9930,7 +9991,7 @@ var OverridesEndpoint = class {
|
|
|
9930
9991
|
};
|
|
9931
9992
|
|
|
9932
9993
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
9933
|
-
import { z as
|
|
9994
|
+
import { z as z323 } from "zod";
|
|
9934
9995
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
9935
9996
|
constructor(requestExecutor) {
|
|
9936
9997
|
this.requestExecutor = requestExecutor;
|
|
@@ -9958,7 +10019,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
9958
10019
|
delete(designSystemId, versionId, defId) {
|
|
9959
10020
|
return this.requestExecutor.json(
|
|
9960
10021
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
9961
|
-
|
|
10022
|
+
z323.any(),
|
|
9962
10023
|
{ method: "DELETE" }
|
|
9963
10024
|
);
|
|
9964
10025
|
}
|
|
@@ -9997,7 +10058,7 @@ var VersionStatsEndpoint = class {
|
|
|
9997
10058
|
};
|
|
9998
10059
|
|
|
9999
10060
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
10000
|
-
import { z as
|
|
10061
|
+
import { z as z324 } from "zod";
|
|
10001
10062
|
var ThemesEndpoint = class {
|
|
10002
10063
|
constructor(requestExecutor) {
|
|
10003
10064
|
this.requestExecutor = requestExecutor;
|
|
@@ -10020,7 +10081,7 @@ var ThemesEndpoint = class {
|
|
|
10020
10081
|
});
|
|
10021
10082
|
}
|
|
10022
10083
|
delete(dsId, versionId, themeId) {
|
|
10023
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
10084
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z324.any(), {
|
|
10024
10085
|
method: "DELETE"
|
|
10025
10086
|
});
|
|
10026
10087
|
}
|
|
@@ -10191,7 +10252,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10191
10252
|
};
|
|
10192
10253
|
|
|
10193
10254
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10194
|
-
import { z as
|
|
10255
|
+
import { z as z328 } from "zod";
|
|
10195
10256
|
|
|
10196
10257
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10197
10258
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10268,7 +10329,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10268
10329
|
};
|
|
10269
10330
|
|
|
10270
10331
|
// src/api/endpoints/design-system/sources.ts
|
|
10271
|
-
import { z as
|
|
10332
|
+
import { z as z325 } from "zod";
|
|
10272
10333
|
var DesignSystemSourcesEndpoint = class {
|
|
10273
10334
|
constructor(requestExecutor) {
|
|
10274
10335
|
this.requestExecutor = requestExecutor;
|
|
@@ -10286,7 +10347,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10286
10347
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10287
10348
|
}
|
|
10288
10349
|
delete(dsId, sourceId) {
|
|
10289
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
10350
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z325.any(), { method: "DELETE" });
|
|
10290
10351
|
}
|
|
10291
10352
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10292
10353
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -10329,7 +10390,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10329
10390
|
};
|
|
10330
10391
|
|
|
10331
10392
|
// src/api/endpoints/design-system/storybook.ts
|
|
10332
|
-
import { z as
|
|
10393
|
+
import { z as z326 } from "zod";
|
|
10333
10394
|
var StorybookEntriesEndpoint = class {
|
|
10334
10395
|
constructor(requestExecutor) {
|
|
10335
10396
|
this.requestExecutor = requestExecutor;
|
|
@@ -10345,14 +10406,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
10345
10406
|
);
|
|
10346
10407
|
}
|
|
10347
10408
|
delete(dsId, entryId) {
|
|
10348
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
10409
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z326.any(), {
|
|
10349
10410
|
method: "DELETE"
|
|
10350
10411
|
});
|
|
10351
10412
|
}
|
|
10352
10413
|
};
|
|
10353
10414
|
|
|
10354
10415
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
10355
|
-
import { z as
|
|
10416
|
+
import { z as z327 } from "zod";
|
|
10356
10417
|
var StorybookHostingEndpoint = class {
|
|
10357
10418
|
constructor(requestExecutor) {
|
|
10358
10419
|
this.requestExecutor = requestExecutor;
|
|
@@ -10366,7 +10427,7 @@ var StorybookHostingEndpoint = class {
|
|
|
10366
10427
|
delete(dsId, storybookUploadId) {
|
|
10367
10428
|
return this.requestExecutor.json(
|
|
10368
10429
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
10369
|
-
|
|
10430
|
+
z327.object({ ok: z327.boolean() }),
|
|
10370
10431
|
{
|
|
10371
10432
|
method: "DELETE"
|
|
10372
10433
|
}
|
|
@@ -10424,7 +10485,7 @@ var DesignSystemsEndpoint = class {
|
|
|
10424
10485
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
10425
10486
|
}
|
|
10426
10487
|
delete(dsId) {
|
|
10427
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
10488
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z328.any(), { method: "DELETE" });
|
|
10428
10489
|
}
|
|
10429
10490
|
update(dsId, body) {
|
|
10430
10491
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -10622,7 +10683,7 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
10622
10683
|
};
|
|
10623
10684
|
|
|
10624
10685
|
// src/api/endpoints/forge/project-members.ts
|
|
10625
|
-
import { z as
|
|
10686
|
+
import { z as z329 } from "zod";
|
|
10626
10687
|
var ForgeProjectMembersEndpoint = class {
|
|
10627
10688
|
constructor(requestExecutor) {
|
|
10628
10689
|
this.requestExecutor = requestExecutor;
|
|
@@ -10651,7 +10712,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
10651
10712
|
delete(projectId, userId) {
|
|
10652
10713
|
return this.requestExecutor.json(
|
|
10653
10714
|
`/forge/projects/${projectId}/members/${userId}`,
|
|
10654
|
-
|
|
10715
|
+
z329.object({ ok: z329.literal(true) }),
|
|
10655
10716
|
{
|
|
10656
10717
|
method: "DELETE"
|
|
10657
10718
|
}
|
|
@@ -10805,7 +10866,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
10805
10866
|
};
|
|
10806
10867
|
|
|
10807
10868
|
// src/api/endpoints/forge/project-invitations.ts
|
|
10808
|
-
import { z as
|
|
10869
|
+
import { z as z330 } from "zod";
|
|
10809
10870
|
var ForgeProjectInvitationsEndpoint = class {
|
|
10810
10871
|
constructor(requestExecutor) {
|
|
10811
10872
|
this.requestExecutor = requestExecutor;
|
|
@@ -10842,7 +10903,7 @@ var ForgeProjectInvitationsEndpoint = class {
|
|
|
10842
10903
|
delete(projectId, email) {
|
|
10843
10904
|
return this.requestExecutor.json(
|
|
10844
10905
|
`/forge/projects/${projectId}/invitations/${encodeURI(email)}`,
|
|
10845
|
-
|
|
10906
|
+
z330.object({ ok: z330.literal(true) }),
|
|
10846
10907
|
{
|
|
10847
10908
|
method: "DELETE"
|
|
10848
10909
|
}
|
|
@@ -10875,7 +10936,7 @@ var ForgesEndpoint = class {
|
|
|
10875
10936
|
};
|
|
10876
10937
|
|
|
10877
10938
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
10878
|
-
import { z as
|
|
10939
|
+
import { z as z331 } from "zod";
|
|
10879
10940
|
var WorkspaceChatThreadsEndpoint = class {
|
|
10880
10941
|
constructor(requestExecutor) {
|
|
10881
10942
|
this.requestExecutor = requestExecutor;
|
|
@@ -10907,7 +10968,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
10907
10968
|
);
|
|
10908
10969
|
}
|
|
10909
10970
|
delete(workspaceId, threadId) {
|
|
10910
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
10971
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z331.any(), {
|
|
10911
10972
|
method: "DELETE"
|
|
10912
10973
|
});
|
|
10913
10974
|
}
|
|
@@ -10939,7 +11000,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10939
11000
|
);
|
|
10940
11001
|
}
|
|
10941
11002
|
score(workspaceId, threadId, body) {
|
|
10942
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11003
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z331.any(), {
|
|
10943
11004
|
method: "POST",
|
|
10944
11005
|
body
|
|
10945
11006
|
});
|
|
@@ -10947,7 +11008,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
10947
11008
|
};
|
|
10948
11009
|
|
|
10949
11010
|
// src/api/endpoints/workspaces/integrations.ts
|
|
10950
|
-
import { z as
|
|
11011
|
+
import { z as z332 } from "zod";
|
|
10951
11012
|
var WorkspaceIntegrationsEndpoint = class {
|
|
10952
11013
|
constructor(requestExecutor) {
|
|
10953
11014
|
this.requestExecutor = requestExecutor;
|
|
@@ -10956,7 +11017,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
10956
11017
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
10957
11018
|
}
|
|
10958
11019
|
delete(wsId, iId) {
|
|
10959
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11020
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z332.unknown(), { method: "DELETE" });
|
|
10960
11021
|
}
|
|
10961
11022
|
};
|
|
10962
11023
|
|
|
@@ -10988,7 +11049,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
10988
11049
|
};
|
|
10989
11050
|
|
|
10990
11051
|
// src/api/endpoints/workspaces/members.ts
|
|
10991
|
-
import { z as
|
|
11052
|
+
import { z as z333 } from "zod";
|
|
10992
11053
|
var WorkspaceMembersEndpoint = class {
|
|
10993
11054
|
constructor(requestExecutor) {
|
|
10994
11055
|
this.requestExecutor = requestExecutor;
|
|
@@ -11005,7 +11066,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11005
11066
|
});
|
|
11006
11067
|
}
|
|
11007
11068
|
invite(workspaceId, body) {
|
|
11008
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11069
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z333.any(), { method: "POST", body });
|
|
11009
11070
|
}
|
|
11010
11071
|
delete(workspaceId, userId) {
|
|
11011
11072
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11034,7 +11095,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11034
11095
|
};
|
|
11035
11096
|
|
|
11036
11097
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11037
|
-
import { z as
|
|
11098
|
+
import { z as z334 } from "zod";
|
|
11038
11099
|
var WorkspacesEndpoint = class {
|
|
11039
11100
|
constructor(requestExecutor) {
|
|
11040
11101
|
this.requestExecutor = requestExecutor;
|
|
@@ -11066,10 +11127,10 @@ var WorkspacesEndpoint = class {
|
|
|
11066
11127
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11067
11128
|
}
|
|
11068
11129
|
delete(workspaceId) {
|
|
11069
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11130
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z334.any(), { method: "DELETE" });
|
|
11070
11131
|
}
|
|
11071
11132
|
subscription(workspaceId) {
|
|
11072
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11133
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z334.any(), { method: "GET" });
|
|
11073
11134
|
}
|
|
11074
11135
|
getPortalSettings(workspaceId) {
|
|
11075
11136
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11180,9 +11241,9 @@ ${bodyText}`,
|
|
|
11180
11241
|
|
|
11181
11242
|
// src/api/transport/request-executor.ts
|
|
11182
11243
|
import fetch from "node-fetch";
|
|
11183
|
-
import { z as
|
|
11184
|
-
var ResponseWrapper =
|
|
11185
|
-
result:
|
|
11244
|
+
import { z as z335 } from "zod";
|
|
11245
|
+
var ResponseWrapper = z335.object({
|
|
11246
|
+
result: z335.record(z335.any())
|
|
11186
11247
|
});
|
|
11187
11248
|
var RequestExecutor = class {
|
|
11188
11249
|
constructor(testServerConfig) {
|
|
@@ -11259,31 +11320,31 @@ var SupernovaApiClient = class {
|
|
|
11259
11320
|
};
|
|
11260
11321
|
|
|
11261
11322
|
// src/events/design-system.ts
|
|
11262
|
-
import { z as
|
|
11263
|
-
var DTOEventFigmaNodesRendered =
|
|
11264
|
-
type:
|
|
11265
|
-
designSystemId:
|
|
11266
|
-
versionId:
|
|
11267
|
-
figmaNodePersistentIds:
|
|
11268
|
-
});
|
|
11269
|
-
var DTOEventDataSourcesImported =
|
|
11270
|
-
type:
|
|
11271
|
-
designSystemId:
|
|
11272
|
-
versionId:
|
|
11273
|
-
importJobId:
|
|
11323
|
+
import { z as z336 } from "zod";
|
|
11324
|
+
var DTOEventFigmaNodesRendered = z336.object({
|
|
11325
|
+
type: z336.literal("DesignSystem.FigmaNodesRendered"),
|
|
11326
|
+
designSystemId: z336.string(),
|
|
11327
|
+
versionId: z336.string(),
|
|
11328
|
+
figmaNodePersistentIds: z336.string().array()
|
|
11329
|
+
});
|
|
11330
|
+
var DTOEventDataSourcesImported = z336.object({
|
|
11331
|
+
type: z336.literal("DesignSystem.ImportJobFinished"),
|
|
11332
|
+
designSystemId: z336.string(),
|
|
11333
|
+
versionId: z336.string(),
|
|
11334
|
+
importJobId: z336.string(),
|
|
11274
11335
|
dataSourceType: DataSourceRemoteType,
|
|
11275
|
-
dataSourceIds:
|
|
11336
|
+
dataSourceIds: z336.string().array()
|
|
11276
11337
|
});
|
|
11277
11338
|
|
|
11278
11339
|
// src/events/event.ts
|
|
11279
|
-
import { z as
|
|
11280
|
-
var DTOEvent =
|
|
11340
|
+
import { z as z337 } from "zod";
|
|
11341
|
+
var DTOEvent = z337.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11281
11342
|
|
|
11282
11343
|
// src/sync/docs-structure-repo.ts
|
|
11283
11344
|
import PQueue from "p-queue";
|
|
11284
11345
|
|
|
11285
11346
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11286
|
-
import { z as
|
|
11347
|
+
import { z as z338 } from "zod";
|
|
11287
11348
|
|
|
11288
11349
|
// src/yjs/version-room/base.ts
|
|
11289
11350
|
var VersionRoomBaseYDoc = class {
|
|
@@ -11833,24 +11894,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
11833
11894
|
};
|
|
11834
11895
|
|
|
11835
11896
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
11836
|
-
var DocumentationHierarchySettings =
|
|
11837
|
-
routingVersion:
|
|
11838
|
-
isDraftFeatureAdopted:
|
|
11839
|
-
isApprovalFeatureEnabled:
|
|
11840
|
-
approvalRequiredForPublishing:
|
|
11897
|
+
var DocumentationHierarchySettings = z338.object({
|
|
11898
|
+
routingVersion: z338.string(),
|
|
11899
|
+
isDraftFeatureAdopted: z338.boolean(),
|
|
11900
|
+
isApprovalFeatureEnabled: z338.boolean(),
|
|
11901
|
+
approvalRequiredForPublishing: z338.boolean()
|
|
11841
11902
|
});
|
|
11842
11903
|
function yjsToDocumentationHierarchy(doc) {
|
|
11843
11904
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
11844
11905
|
}
|
|
11845
11906
|
|
|
11846
11907
|
// src/yjs/design-system-content/item-configuration.ts
|
|
11847
|
-
import { z as
|
|
11848
|
-
var DTODocumentationPageRoomHeaderData =
|
|
11849
|
-
title:
|
|
11908
|
+
import { z as z339 } from "zod";
|
|
11909
|
+
var DTODocumentationPageRoomHeaderData = z339.object({
|
|
11910
|
+
title: z339.string(),
|
|
11850
11911
|
configuration: DTODocumentationItemConfigurationV2
|
|
11851
11912
|
});
|
|
11852
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
11853
|
-
title:
|
|
11913
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z339.object({
|
|
11914
|
+
title: z339.string().optional(),
|
|
11854
11915
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
11855
11916
|
});
|
|
11856
11917
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -11885,9 +11946,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
11885
11946
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
11886
11947
|
|
|
11887
11948
|
// src/yjs/docs-editor/model/page.ts
|
|
11888
|
-
import { z as
|
|
11889
|
-
var DocumentationPageEditorModel =
|
|
11890
|
-
blocks:
|
|
11949
|
+
import { z as z340 } from "zod";
|
|
11950
|
+
var DocumentationPageEditorModel = z340.object({
|
|
11951
|
+
blocks: z340.array(DocumentationPageContentItem)
|
|
11891
11952
|
});
|
|
11892
11953
|
|
|
11893
11954
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -15564,7 +15625,7 @@ var blocks = [
|
|
|
15564
15625
|
|
|
15565
15626
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
15566
15627
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
15567
|
-
import { z as
|
|
15628
|
+
import { z as z341 } from "zod";
|
|
15568
15629
|
function yDocToPage(yDoc, definitions) {
|
|
15569
15630
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
15570
15631
|
}
|
|
@@ -15640,7 +15701,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
15640
15701
|
if (!id) return null;
|
|
15641
15702
|
return {
|
|
15642
15703
|
id,
|
|
15643
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
15704
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z341.string()) ?? "",
|
|
15644
15705
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
15645
15706
|
};
|
|
15646
15707
|
}
|
|
@@ -15674,7 +15735,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
15674
15735
|
});
|
|
15675
15736
|
}
|
|
15676
15737
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
15677
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
15738
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z341.string());
|
|
15678
15739
|
if (!definitionId) {
|
|
15679
15740
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
15680
15741
|
return [];
|
|
@@ -15715,7 +15776,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
15715
15776
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15716
15777
|
if (!id) return null;
|
|
15717
15778
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15718
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
15779
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z341.string().optional()));
|
|
15719
15780
|
return {
|
|
15720
15781
|
id,
|
|
15721
15782
|
type: "Block",
|
|
@@ -15838,9 +15899,9 @@ function parseRichTextAttribute(mark) {
|
|
|
15838
15899
|
return null;
|
|
15839
15900
|
}
|
|
15840
15901
|
function parseProsemirrorLink(mark) {
|
|
15841
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
15902
|
+
const href = getProsemirrorAttribute(mark, "href", z341.string().optional());
|
|
15842
15903
|
if (!href) return null;
|
|
15843
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
15904
|
+
const target = getProsemirrorAttribute(mark, "target", z341.string().optional());
|
|
15844
15905
|
const openInNewTab = target === "_blank";
|
|
15845
15906
|
if (href.startsWith("@")) {
|
|
15846
15907
|
return {
|
|
@@ -15859,9 +15920,9 @@ function parseProsemirrorLink(mark) {
|
|
|
15859
15920
|
}
|
|
15860
15921
|
}
|
|
15861
15922
|
function parseProsemirrorCommentHighlight(mark) {
|
|
15862
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
15923
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z341.string().optional());
|
|
15863
15924
|
if (!highlightId) return null;
|
|
15864
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
15925
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z341.boolean().optional()) ?? false;
|
|
15865
15926
|
return {
|
|
15866
15927
|
type: "Comment",
|
|
15867
15928
|
commentHighlightId: highlightId,
|
|
@@ -15872,7 +15933,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15872
15933
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15873
15934
|
if (!id) return null;
|
|
15874
15935
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
15875
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
15936
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z341.boolean().optional()) !== false;
|
|
15876
15937
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
15877
15938
|
if (!tableChild) {
|
|
15878
15939
|
return emptyTable(id, variantId, 0);
|
|
@@ -15918,9 +15979,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
15918
15979
|
function parseAsTableCell(prosemirrorNode) {
|
|
15919
15980
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
15920
15981
|
if (!id) return null;
|
|
15921
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
15982
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z341.string().optional());
|
|
15922
15983
|
let columnWidth;
|
|
15923
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
15984
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z341.array(z341.number()).nullish());
|
|
15924
15985
|
if (columnWidthArray) {
|
|
15925
15986
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
15926
15987
|
}
|
|
@@ -15956,7 +16017,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
15956
16017
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
15957
16018
|
};
|
|
15958
16019
|
case "image":
|
|
15959
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16020
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z341.string());
|
|
15960
16021
|
if (!items) return null;
|
|
15961
16022
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
15962
16023
|
if (!parsedItems.success) return null;
|
|
@@ -16070,7 +16131,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
16070
16131
|
);
|
|
16071
16132
|
}
|
|
16072
16133
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
16073
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16134
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z341.string());
|
|
16074
16135
|
if (!itemsString) return null;
|
|
16075
16136
|
const itemsJson = JSON.parse(itemsString);
|
|
16076
16137
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -16081,18 +16142,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
16081
16142
|
}
|
|
16082
16143
|
function parseAppearance(prosemirrorNode) {
|
|
16083
16144
|
let appearance = {};
|
|
16084
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
16145
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z341.string().optional());
|
|
16085
16146
|
if (rawAppearanceString) {
|
|
16086
16147
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
16087
16148
|
if (parsedAppearance.success) {
|
|
16088
16149
|
appearance = parsedAppearance.data;
|
|
16089
16150
|
}
|
|
16090
16151
|
}
|
|
16091
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
16152
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z341.number().optional());
|
|
16092
16153
|
if (columns) {
|
|
16093
16154
|
appearance.numberOfColumns = columns;
|
|
16094
16155
|
}
|
|
16095
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
16156
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z341.string().optional());
|
|
16096
16157
|
if (backgroundColor) {
|
|
16097
16158
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
16098
16159
|
if (parsedColor.success) {
|
|
@@ -16193,12 +16254,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
16193
16254
|
}
|
|
16194
16255
|
}
|
|
16195
16256
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
16196
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
16257
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z341.string());
|
|
16197
16258
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
16198
16259
|
return id;
|
|
16199
16260
|
}
|
|
16200
16261
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
16201
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
16262
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z341.string()));
|
|
16202
16263
|
}
|
|
16203
16264
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
16204
16265
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -17066,6 +17127,10 @@ export {
|
|
|
17066
17127
|
DTOForgeParticipantGetResponse,
|
|
17067
17128
|
DTOForgeParticipantsListResponse,
|
|
17068
17129
|
DTOForgeProject,
|
|
17130
|
+
DTOForgeProjectAction,
|
|
17131
|
+
DTOForgeProjectActionFeatureCreate,
|
|
17132
|
+
DTOForgeProjectActionFeatureDelete,
|
|
17133
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
17069
17134
|
DTOForgeProjectArtifact,
|
|
17070
17135
|
DTOForgeProjectArtifactCreate,
|
|
17071
17136
|
DTOForgeProjectArtifactCreateResponse,
|
|
@@ -17082,6 +17147,11 @@ export {
|
|
|
17082
17147
|
DTOForgeProjectContextListResponse,
|
|
17083
17148
|
DTOForgeProjectContextRemoveResponse,
|
|
17084
17149
|
DTOForgeProjectContextUpdateResponse,
|
|
17150
|
+
DTOForgeProjectFeature,
|
|
17151
|
+
DTOForgeProjectFeatureCreateInput,
|
|
17152
|
+
DTOForgeProjectFeatureDeleteInput,
|
|
17153
|
+
DTOForgeProjectFeatureListResponse,
|
|
17154
|
+
DTOForgeProjectFeatureUpdateInput,
|
|
17085
17155
|
DTOForgeProjectGetResponse,
|
|
17086
17156
|
DTOForgeProjectInvitation,
|
|
17087
17157
|
DTOForgeProjectInvitationCreateResponse,
|