@locusai/shared 0.7.7 → 0.8.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/enums.d.ts +5 -1
- package/dist/enums.d.ts.map +1 -1
- package/dist/index.js +270 -140
- package/dist/models/activity.d.ts +52 -0
- package/dist/models/activity.d.ts.map +1 -1
- package/dist/models/ai.d.ts +4 -28
- package/dist/models/ai.d.ts.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/manifest.d.ts +175 -0
- package/dist/models/manifest.d.ts.map +1 -0
- package/dist/models/workspace.d.ts +27 -0
- package/dist/models/workspace.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/enums.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export declare enum EventType {
|
|
|
47
47
|
SPRINT_CREATED = "SPRINT_CREATED",
|
|
48
48
|
SPRINT_STATUS_CHANGED = "SPRINT_STATUS_CHANGED",
|
|
49
49
|
SPRINT_DELETED = "SPRINT_DELETED",
|
|
50
|
-
CHECKLIST_INITIALIZED = "CHECKLIST_INITIALIZED"
|
|
50
|
+
CHECKLIST_INITIALIZED = "CHECKLIST_INITIALIZED",
|
|
51
|
+
INTERVIEW_STARTED = "INTERVIEW_STARTED",
|
|
52
|
+
INTERVIEW_FIELD_COMPLETED = "INTERVIEW_FIELD_COMPLETED",
|
|
53
|
+
INTERVIEW_COMPLETED = "INTERVIEW_COMPLETED",
|
|
54
|
+
INTERVIEW_ABANDONED = "INTERVIEW_ABANDONED"
|
|
51
55
|
}
|
|
52
56
|
//# sourceMappingURL=enums.d.ts.map
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,cAAc;IACxB,KAAK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,QAAQ,aAAa;CACtB;AAED,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,oBAAY,SAAS;IACnB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,qBAAqB,0BAA0B;IAC/C,cAAc,mBAAmB;IACjC,qBAAqB,0BAA0B;IAC/C,iBAAiB,sBAAsB;IACvC,yBAAyB,8BAA8B;IACvD,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;CAC5C"}
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(exports_src, {
|
|
|
34
34
|
getAuthUserId: () => getAuthUserId,
|
|
35
35
|
generateUUID: () => generateUUID,
|
|
36
36
|
WorkspacesResponseSchema: () => WorkspacesResponseSchema,
|
|
37
|
+
WorkspaceWithManifestInfoSchema: () => WorkspaceWithManifestInfoSchema,
|
|
37
38
|
WorkspaceStatsSchema: () => WorkspaceStatsSchema,
|
|
38
39
|
WorkspaceStatsResponseSchema: () => WorkspaceStatsResponseSchema,
|
|
39
40
|
WorkspaceSchema: () => WorkspaceSchema,
|
|
@@ -66,6 +67,7 @@ __export(exports_src, {
|
|
|
66
67
|
SuccessResponseSchema: () => SuccessResponseSchema,
|
|
67
68
|
StatusChangedPayloadSchema: () => StatusChangedPayloadSchema,
|
|
68
69
|
SprintsResponseSchema: () => SprintsResponseSchema,
|
|
70
|
+
SprintStatusSchema: () => SprintStatusSchema,
|
|
69
71
|
SprintStatusChangedPayloadSchema: () => SprintStatusChangedPayloadSchema,
|
|
70
72
|
SprintStatus: () => SprintStatus,
|
|
71
73
|
SprintSchema: () => SprintSchema,
|
|
@@ -74,8 +76,16 @@ __export(exports_src, {
|
|
|
74
76
|
SprintIdParamSchema: () => SprintIdParamSchema,
|
|
75
77
|
SprintCreatedPayloadSchema: () => SprintCreatedPayloadSchema,
|
|
76
78
|
ShareChatRequestSchema: () => ShareChatRequestSchema,
|
|
79
|
+
RepositoryContextSchema: () => RepositoryContextSchema,
|
|
77
80
|
ReportCiResultSchema: () => ReportCiResultSchema,
|
|
78
81
|
RecordCiSchema: () => RecordCiSchema,
|
|
82
|
+
REQUIRED_MANIFEST_FIELDS: () => REQUIRED_MANIFEST_FIELDS,
|
|
83
|
+
ProjectTimelineSchema: () => ProjectTimelineSchema,
|
|
84
|
+
ProjectSprintSchema: () => ProjectSprintSchema,
|
|
85
|
+
ProjectPhaseSchema: () => ProjectPhaseSchema,
|
|
86
|
+
ProjectMilestoneSchema: () => ProjectMilestoneSchema,
|
|
87
|
+
ProjectManifestSchema: () => ProjectManifestSchema,
|
|
88
|
+
PartialProjectManifestSchema: () => PartialProjectManifestSchema,
|
|
79
89
|
PaginationRequestSchema: () => PaginationRequestSchema,
|
|
80
90
|
PaginationMetaSchema: () => PaginationMetaSchema,
|
|
81
91
|
OtpRequestSchema: () => OtpRequestSchema,
|
|
@@ -83,6 +93,7 @@ __export(exports_src, {
|
|
|
83
93
|
OrganizationSchema: () => OrganizationSchema,
|
|
84
94
|
OrganizationResponseSchema: () => OrganizationResponseSchema,
|
|
85
95
|
OrgIdParamSchema: () => OrgIdParamSchema,
|
|
96
|
+
MilestoneStatusSchema: () => MilestoneStatusSchema,
|
|
86
97
|
MembershipWithUserSchema: () => MembershipWithUserSchema,
|
|
87
98
|
MembershipRole: () => MembershipRole,
|
|
88
99
|
MembershipResponseSchema: () => MembershipResponseSchema,
|
|
@@ -90,6 +101,7 @@ __export(exports_src, {
|
|
|
90
101
|
MembersResponseSchema: () => MembersResponseSchema,
|
|
91
102
|
MemberInvitedPayloadSchema: () => MemberInvitedPayloadSchema,
|
|
92
103
|
MemberAddedPayloadSchema: () => MemberAddedPayloadSchema,
|
|
104
|
+
ManifestStatusResponseSchema: () => ManifestStatusResponseSchema,
|
|
93
105
|
LockSchema: () => LockSchema,
|
|
94
106
|
JwtAuthUserSchema: () => JwtAuthUserSchema,
|
|
95
107
|
JWTPayloadSchema: () => JWTPayloadSchema,
|
|
@@ -99,6 +111,10 @@ __export(exports_src, {
|
|
|
99
111
|
InvitationResponseSchema: () => InvitationResponseSchema,
|
|
100
112
|
InvitationQuerySchema: () => InvitationQuerySchema,
|
|
101
113
|
InvitationIdParamSchema: () => InvitationIdParamSchema,
|
|
114
|
+
InterviewStartedPayloadSchema: () => InterviewStartedPayloadSchema,
|
|
115
|
+
InterviewFieldCompletedPayloadSchema: () => InterviewFieldCompletedPayloadSchema,
|
|
116
|
+
InterviewCompletedPayloadSchema: () => InterviewCompletedPayloadSchema,
|
|
117
|
+
InterviewAbandonedPayloadSchema: () => InterviewAbandonedPayloadSchema,
|
|
102
118
|
EventsResponseSchema: () => EventsResponseSchema,
|
|
103
119
|
EventType: () => EventType,
|
|
104
120
|
EventSchema: () => EventSchema,
|
|
@@ -118,6 +134,7 @@ __export(exports_src, {
|
|
|
118
134
|
DocGroupResponseSchema: () => DocGroupResponseSchema,
|
|
119
135
|
DocGroupIdParamSchema: () => DocGroupIdParamSchema,
|
|
120
136
|
DispatchTaskSchema: () => DispatchTaskSchema,
|
|
137
|
+
DEFAULT_MANIFEST_VALUES: () => DEFAULT_MANIFEST_VALUES,
|
|
121
138
|
CreateWorkspaceSchema: () => CreateWorkspaceSchema,
|
|
122
139
|
CreateUserSchema: () => CreateUserSchema,
|
|
123
140
|
CreateTaskSchema: () => CreateTaskSchema,
|
|
@@ -273,6 +290,10 @@ var EventType;
|
|
|
273
290
|
EventType2["SPRINT_STATUS_CHANGED"] = "SPRINT_STATUS_CHANGED";
|
|
274
291
|
EventType2["SPRINT_DELETED"] = "SPRINT_DELETED";
|
|
275
292
|
EventType2["CHECKLIST_INITIALIZED"] = "CHECKLIST_INITIALIZED";
|
|
293
|
+
EventType2["INTERVIEW_STARTED"] = "INTERVIEW_STARTED";
|
|
294
|
+
EventType2["INTERVIEW_FIELD_COMPLETED"] = "INTERVIEW_FIELD_COMPLETED";
|
|
295
|
+
EventType2["INTERVIEW_COMPLETED"] = "INTERVIEW_COMPLETED";
|
|
296
|
+
EventType2["INTERVIEW_ABANDONED"] = "INTERVIEW_ABANDONED";
|
|
276
297
|
})(EventType ||= {});
|
|
277
298
|
// src/models/activity.ts
|
|
278
299
|
var import_zod2 = require("zod");
|
|
@@ -339,6 +360,25 @@ var CiRanPayloadSchema = import_zod2.z.object({
|
|
|
339
360
|
processed: import_zod2.z.boolean(),
|
|
340
361
|
commands: import_zod2.z.array(import_zod2.z.object({ cmd: import_zod2.z.string(), exitCode: import_zod2.z.number() }))
|
|
341
362
|
});
|
|
363
|
+
var InterviewStartedPayloadSchema = import_zod2.z.object({
|
|
364
|
+
workspaceName: import_zod2.z.string(),
|
|
365
|
+
firstFieldName: import_zod2.z.string()
|
|
366
|
+
});
|
|
367
|
+
var InterviewFieldCompletedPayloadSchema = import_zod2.z.object({
|
|
368
|
+
fieldName: import_zod2.z.string(),
|
|
369
|
+
completionPercentage: import_zod2.z.number()
|
|
370
|
+
});
|
|
371
|
+
var InterviewCompletedPayloadSchema = import_zod2.z.object({
|
|
372
|
+
workspaceName: import_zod2.z.string(),
|
|
373
|
+
timeToCompleteMs: import_zod2.z.number(),
|
|
374
|
+
completedVia: import_zod2.z.enum(["interview", "manual_bypass"])
|
|
375
|
+
});
|
|
376
|
+
var InterviewAbandonedPayloadSchema = import_zod2.z.object({
|
|
377
|
+
workspaceName: import_zod2.z.string(),
|
|
378
|
+
lastActiveAt: import_zod2.z.union([import_zod2.z.date(), import_zod2.z.string()]),
|
|
379
|
+
completionPercentage: import_zod2.z.number(),
|
|
380
|
+
daysInactive: import_zod2.z.number()
|
|
381
|
+
});
|
|
342
382
|
var EventPayloadSchema = import_zod2.z.discriminatedUnion("type", [
|
|
343
383
|
import_zod2.z.object({
|
|
344
384
|
type: import_zod2.z.literal("TASK_CREATED" /* TASK_CREATED */),
|
|
@@ -383,6 +423,22 @@ var EventPayloadSchema = import_zod2.z.discriminatedUnion("type", [
|
|
|
383
423
|
import_zod2.z.object({
|
|
384
424
|
type: import_zod2.z.literal("CI_RAN" /* CI_RAN */),
|
|
385
425
|
payload: CiRanPayloadSchema
|
|
426
|
+
}),
|
|
427
|
+
import_zod2.z.object({
|
|
428
|
+
type: import_zod2.z.literal("INTERVIEW_STARTED" /* INTERVIEW_STARTED */),
|
|
429
|
+
payload: InterviewStartedPayloadSchema
|
|
430
|
+
}),
|
|
431
|
+
import_zod2.z.object({
|
|
432
|
+
type: import_zod2.z.literal("INTERVIEW_FIELD_COMPLETED" /* INTERVIEW_FIELD_COMPLETED */),
|
|
433
|
+
payload: InterviewFieldCompletedPayloadSchema
|
|
434
|
+
}),
|
|
435
|
+
import_zod2.z.object({
|
|
436
|
+
type: import_zod2.z.literal("INTERVIEW_COMPLETED" /* INTERVIEW_COMPLETED */),
|
|
437
|
+
payload: InterviewCompletedPayloadSchema
|
|
438
|
+
}),
|
|
439
|
+
import_zod2.z.object({
|
|
440
|
+
type: import_zod2.z.literal("INTERVIEW_ABANDONED" /* INTERVIEW_ABANDONED */),
|
|
441
|
+
payload: InterviewAbandonedPayloadSchema
|
|
386
442
|
})
|
|
387
443
|
]);
|
|
388
444
|
var EventSchema = import_zod2.z.object({
|
|
@@ -454,7 +510,7 @@ var import_zod4 = require("zod");
|
|
|
454
510
|
var AIRoleSchema = import_zod4.z.enum(["user", "assistant", "system"]);
|
|
455
511
|
var AIArtifactSchema = import_zod4.z.object({
|
|
456
512
|
id: import_zod4.z.string(),
|
|
457
|
-
type: import_zod4.z.enum(["code", "document"
|
|
513
|
+
type: import_zod4.z.enum(["code", "document"]),
|
|
458
514
|
title: import_zod4.z.string(),
|
|
459
515
|
content: import_zod4.z.string(),
|
|
460
516
|
language: import_zod4.z.string().optional(),
|
|
@@ -462,13 +518,7 @@ var AIArtifactSchema = import_zod4.z.object({
|
|
|
462
518
|
});
|
|
463
519
|
var SuggestedActionSchema = import_zod4.z.object({
|
|
464
520
|
label: import_zod4.z.string(),
|
|
465
|
-
type: import_zod4.z.enum([
|
|
466
|
-
"create_task",
|
|
467
|
-
"create_doc",
|
|
468
|
-
"chat_suggestion",
|
|
469
|
-
"start_sprint",
|
|
470
|
-
"plan_sprint"
|
|
471
|
-
]),
|
|
521
|
+
type: import_zod4.z.enum(["chat_suggestion", "create_doc"]),
|
|
472
522
|
payload: import_zod4.z.any()
|
|
473
523
|
});
|
|
474
524
|
var AIMessageSchema = import_zod4.z.object({
|
|
@@ -748,72 +798,141 @@ var AcceptInvitationResponseSchema = import_zod10.z.object({
|
|
|
748
798
|
createdAt: import_zod10.z.number()
|
|
749
799
|
})
|
|
750
800
|
});
|
|
751
|
-
// src/models/
|
|
801
|
+
// src/models/manifest.ts
|
|
752
802
|
var import_zod11 = require("zod");
|
|
803
|
+
var ProjectPhaseSchema = import_zod11.z.enum([
|
|
804
|
+
"PLANNING",
|
|
805
|
+
"MVP_BUILD",
|
|
806
|
+
"SCALING",
|
|
807
|
+
"MAINTENANCE"
|
|
808
|
+
]);
|
|
809
|
+
var SprintStatusSchema = import_zod11.z.enum(["PLANNED", "ACTIVE", "COMPLETED"]);
|
|
810
|
+
var ProjectSprintSchema = import_zod11.z.object({
|
|
811
|
+
id: import_zod11.z.string(),
|
|
812
|
+
goal: import_zod11.z.string(),
|
|
813
|
+
tasks: import_zod11.z.array(import_zod11.z.string()),
|
|
814
|
+
status: SprintStatusSchema
|
|
815
|
+
});
|
|
816
|
+
var MilestoneStatusSchema = import_zod11.z.enum(["PENDING", "COMPLETED"]);
|
|
817
|
+
var ProjectMilestoneSchema = import_zod11.z.object({
|
|
818
|
+
title: import_zod11.z.string(),
|
|
819
|
+
date: import_zod11.z.string().optional(),
|
|
820
|
+
status: MilestoneStatusSchema
|
|
821
|
+
});
|
|
822
|
+
var ProjectTimelineSchema = import_zod11.z.object({
|
|
823
|
+
sprints: import_zod11.z.array(ProjectSprintSchema),
|
|
824
|
+
milestones: import_zod11.z.array(ProjectMilestoneSchema)
|
|
825
|
+
});
|
|
826
|
+
var RepositoryContextSchema = import_zod11.z.object({
|
|
827
|
+
summary: import_zod11.z.string(),
|
|
828
|
+
fileStructure: import_zod11.z.string(),
|
|
829
|
+
dependencies: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.string()),
|
|
830
|
+
frameworks: import_zod11.z.array(import_zod11.z.string()),
|
|
831
|
+
configFiles: import_zod11.z.array(import_zod11.z.string()),
|
|
832
|
+
lastAnalysis: import_zod11.z.string()
|
|
833
|
+
});
|
|
834
|
+
var ProjectManifestSchema = import_zod11.z.object({
|
|
835
|
+
name: import_zod11.z.string(),
|
|
836
|
+
mission: import_zod11.z.string(),
|
|
837
|
+
targetUsers: import_zod11.z.array(import_zod11.z.string()),
|
|
838
|
+
techStack: import_zod11.z.array(import_zod11.z.string()),
|
|
839
|
+
phase: ProjectPhaseSchema,
|
|
840
|
+
features: import_zod11.z.array(import_zod11.z.string()),
|
|
841
|
+
competitors: import_zod11.z.array(import_zod11.z.string()),
|
|
842
|
+
brandVoice: import_zod11.z.string().optional(),
|
|
843
|
+
successMetrics: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
844
|
+
completenessScore: import_zod11.z.number().min(0).max(100),
|
|
845
|
+
timeline: ProjectTimelineSchema.optional(),
|
|
846
|
+
repositoryState: RepositoryContextSchema.optional()
|
|
847
|
+
});
|
|
848
|
+
var PartialProjectManifestSchema = ProjectManifestSchema.partial();
|
|
849
|
+
var DEFAULT_MANIFEST_VALUES = {
|
|
850
|
+
name: "",
|
|
851
|
+
mission: "",
|
|
852
|
+
targetUsers: [],
|
|
853
|
+
techStack: [],
|
|
854
|
+
phase: "PLANNING",
|
|
855
|
+
features: [],
|
|
856
|
+
competitors: [],
|
|
857
|
+
brandVoice: "",
|
|
858
|
+
successMetrics: [],
|
|
859
|
+
completenessScore: 0
|
|
860
|
+
};
|
|
861
|
+
var REQUIRED_MANIFEST_FIELDS = [
|
|
862
|
+
"name",
|
|
863
|
+
"mission",
|
|
864
|
+
"targetUsers",
|
|
865
|
+
"techStack",
|
|
866
|
+
"phase",
|
|
867
|
+
"features",
|
|
868
|
+
"competitors"
|
|
869
|
+
];
|
|
870
|
+
// src/models/organization.ts
|
|
871
|
+
var import_zod12 = require("zod");
|
|
753
872
|
var OrganizationSchema = BaseEntitySchema.extend({
|
|
754
|
-
name:
|
|
755
|
-
avatarUrl:
|
|
873
|
+
name: import_zod12.z.string().min(1, "Name is required").max(100),
|
|
874
|
+
avatarUrl: import_zod12.z.string().url("Invalid avatar URL").nullable().optional().or(import_zod12.z.literal(""))
|
|
756
875
|
});
|
|
757
|
-
var CreateOrganizationSchema =
|
|
758
|
-
name:
|
|
759
|
-
avatarUrl:
|
|
876
|
+
var CreateOrganizationSchema = import_zod12.z.object({
|
|
877
|
+
name: import_zod12.z.string().min(1, "Name is required").max(100),
|
|
878
|
+
avatarUrl: import_zod12.z.string().url("Invalid avatar URL").optional().or(import_zod12.z.literal(""))
|
|
760
879
|
});
|
|
761
880
|
var UpdateOrganizationSchema = OrganizationSchema.partial().omit({
|
|
762
881
|
id: true,
|
|
763
882
|
createdAt: true,
|
|
764
883
|
updatedAt: true
|
|
765
884
|
});
|
|
766
|
-
var AddMemberSchema =
|
|
767
|
-
userId:
|
|
768
|
-
role:
|
|
769
|
-
});
|
|
770
|
-
var MembershipWithUserSchema =
|
|
771
|
-
id:
|
|
772
|
-
userId:
|
|
773
|
-
orgId:
|
|
774
|
-
role:
|
|
775
|
-
createdAt:
|
|
776
|
-
user:
|
|
777
|
-
id:
|
|
778
|
-
email:
|
|
779
|
-
name:
|
|
780
|
-
avatarUrl:
|
|
885
|
+
var AddMemberSchema = import_zod12.z.object({
|
|
886
|
+
userId: import_zod12.z.string().uuid("Invalid User ID"),
|
|
887
|
+
role: import_zod12.z.enum(["ADMIN", "MEMBER"]).default("MEMBER")
|
|
888
|
+
});
|
|
889
|
+
var MembershipWithUserSchema = import_zod12.z.object({
|
|
890
|
+
id: import_zod12.z.uuid(),
|
|
891
|
+
userId: import_zod12.z.uuid(),
|
|
892
|
+
orgId: import_zod12.z.uuid(),
|
|
893
|
+
role: import_zod12.z.string(),
|
|
894
|
+
createdAt: import_zod12.z.number(),
|
|
895
|
+
user: import_zod12.z.object({
|
|
896
|
+
id: import_zod12.z.uuid(),
|
|
897
|
+
email: import_zod12.z.string().email(),
|
|
898
|
+
name: import_zod12.z.string(),
|
|
899
|
+
avatarUrl: import_zod12.z.string().url().nullable().optional()
|
|
781
900
|
})
|
|
782
901
|
});
|
|
783
|
-
var OrgIdParamSchema =
|
|
784
|
-
orgId:
|
|
902
|
+
var OrgIdParamSchema = import_zod12.z.object({
|
|
903
|
+
orgId: import_zod12.z.string().uuid("Invalid Organization ID")
|
|
785
904
|
});
|
|
786
|
-
var MembershipIdParamSchema =
|
|
787
|
-
id:
|
|
905
|
+
var MembershipIdParamSchema = import_zod12.z.object({
|
|
906
|
+
id: import_zod12.z.string().uuid("Invalid Membership ID")
|
|
788
907
|
});
|
|
789
|
-
var OrganizationResponseSchema =
|
|
908
|
+
var OrganizationResponseSchema = import_zod12.z.object({
|
|
790
909
|
organization: OrganizationSchema
|
|
791
910
|
});
|
|
792
|
-
var OrganizationsResponseSchema =
|
|
793
|
-
organizations:
|
|
911
|
+
var OrganizationsResponseSchema = import_zod12.z.object({
|
|
912
|
+
organizations: import_zod12.z.array(OrganizationSchema)
|
|
794
913
|
});
|
|
795
|
-
var MembersResponseSchema =
|
|
796
|
-
members:
|
|
914
|
+
var MembersResponseSchema = import_zod12.z.object({
|
|
915
|
+
members: import_zod12.z.array(MembershipWithUserSchema)
|
|
797
916
|
});
|
|
798
|
-
var MembershipResponseSchema =
|
|
917
|
+
var MembershipResponseSchema = import_zod12.z.object({
|
|
799
918
|
membership: MembershipWithUserSchema
|
|
800
919
|
});
|
|
801
920
|
// src/models/sprint.ts
|
|
802
|
-
var
|
|
921
|
+
var import_zod13 = require("zod");
|
|
803
922
|
var SprintSchema = BaseEntitySchema.extend({
|
|
804
|
-
workspaceId:
|
|
805
|
-
name:
|
|
806
|
-
status:
|
|
807
|
-
startDate:
|
|
808
|
-
endDate:
|
|
809
|
-
mindmap:
|
|
810
|
-
mindmapUpdatedAt:
|
|
811
|
-
});
|
|
812
|
-
var CreateSprintSchema =
|
|
813
|
-
name:
|
|
814
|
-
startDate:
|
|
815
|
-
endDate:
|
|
816
|
-
taskIds:
|
|
923
|
+
workspaceId: import_zod13.z.uuid().nullable().optional(),
|
|
924
|
+
name: import_zod13.z.string().min(1, "Name is required").max(100),
|
|
925
|
+
status: import_zod13.z.enum(SprintStatus),
|
|
926
|
+
startDate: import_zod13.z.union([import_zod13.z.date(), import_zod13.z.number()]).nullable().optional(),
|
|
927
|
+
endDate: import_zod13.z.union([import_zod13.z.date(), import_zod13.z.number()]).nullable().optional(),
|
|
928
|
+
mindmap: import_zod13.z.string().nullable().optional(),
|
|
929
|
+
mindmapUpdatedAt: import_zod13.z.union([import_zod13.z.date(), import_zod13.z.number()]).nullable().optional()
|
|
930
|
+
});
|
|
931
|
+
var CreateSprintSchema = import_zod13.z.object({
|
|
932
|
+
name: import_zod13.z.string().min(1, "Name is required").max(100),
|
|
933
|
+
startDate: import_zod13.z.union([import_zod13.z.string(), import_zod13.z.number()]).optional(),
|
|
934
|
+
endDate: import_zod13.z.union([import_zod13.z.string(), import_zod13.z.number()]).optional(),
|
|
935
|
+
taskIds: import_zod13.z.array(import_zod13.z.string()).optional()
|
|
817
936
|
});
|
|
818
937
|
var UpdateSprintSchema = SprintSchema.partial().omit({
|
|
819
938
|
id: true,
|
|
@@ -823,58 +942,58 @@ var UpdateSprintSchema = SprintSchema.partial().omit({
|
|
|
823
942
|
endDate: true,
|
|
824
943
|
mindmapUpdatedAt: true
|
|
825
944
|
}).extend({
|
|
826
|
-
name:
|
|
827
|
-
startDate:
|
|
828
|
-
endDate:
|
|
829
|
-
mindmapUpdatedAt:
|
|
945
|
+
name: import_zod13.z.string().min(1).max(100).optional(),
|
|
946
|
+
startDate: import_zod13.z.union([import_zod13.z.string(), import_zod13.z.number()]).optional().nullable(),
|
|
947
|
+
endDate: import_zod13.z.union([import_zod13.z.string(), import_zod13.z.number()]).optional().nullable(),
|
|
948
|
+
mindmapUpdatedAt: import_zod13.z.union([import_zod13.z.string(), import_zod13.z.number()]).optional().nullable()
|
|
830
949
|
});
|
|
831
|
-
var SprintIdParamSchema =
|
|
832
|
-
id:
|
|
950
|
+
var SprintIdParamSchema = import_zod13.z.object({
|
|
951
|
+
id: import_zod13.z.string().uuid("Invalid Sprint ID")
|
|
833
952
|
});
|
|
834
|
-
var SprintQuerySchema =
|
|
835
|
-
var SprintResponseSchema =
|
|
953
|
+
var SprintQuerySchema = import_zod13.z.object({});
|
|
954
|
+
var SprintResponseSchema = import_zod13.z.object({
|
|
836
955
|
sprint: SprintSchema
|
|
837
956
|
});
|
|
838
|
-
var SprintsResponseSchema =
|
|
839
|
-
sprints:
|
|
957
|
+
var SprintsResponseSchema = import_zod13.z.object({
|
|
958
|
+
sprints: import_zod13.z.array(SprintSchema)
|
|
840
959
|
});
|
|
841
960
|
// src/models/task.ts
|
|
842
|
-
var
|
|
843
|
-
var AcceptanceItemSchema =
|
|
844
|
-
id:
|
|
845
|
-
text:
|
|
846
|
-
done:
|
|
961
|
+
var import_zod14 = require("zod");
|
|
962
|
+
var AcceptanceItemSchema = import_zod14.z.object({
|
|
963
|
+
id: import_zod14.z.string(),
|
|
964
|
+
text: import_zod14.z.string(),
|
|
965
|
+
done: import_zod14.z.boolean()
|
|
847
966
|
});
|
|
848
967
|
var TaskSchema = BaseEntitySchema.extend({
|
|
849
|
-
workspaceId:
|
|
850
|
-
title:
|
|
851
|
-
description:
|
|
852
|
-
status:
|
|
853
|
-
priority:
|
|
854
|
-
labels:
|
|
855
|
-
assigneeRole:
|
|
856
|
-
assignedTo:
|
|
857
|
-
sprintId:
|
|
858
|
-
parentId:
|
|
859
|
-
dueDate:
|
|
860
|
-
acceptanceChecklist:
|
|
861
|
-
comments:
|
|
862
|
-
activityLog:
|
|
863
|
-
docs:
|
|
864
|
-
});
|
|
865
|
-
var CreateTaskSchema =
|
|
866
|
-
title:
|
|
867
|
-
description:
|
|
868
|
-
status:
|
|
869
|
-
priority:
|
|
870
|
-
labels:
|
|
871
|
-
assigneeRole:
|
|
872
|
-
assignedTo:
|
|
873
|
-
dueDate:
|
|
874
|
-
parentId:
|
|
875
|
-
sprintId:
|
|
876
|
-
acceptanceChecklist:
|
|
877
|
-
docIds:
|
|
968
|
+
workspaceId: import_zod14.z.uuid().nullable().optional(),
|
|
969
|
+
title: import_zod14.z.string().min(1, "Title is required").max(200),
|
|
970
|
+
description: import_zod14.z.string(),
|
|
971
|
+
status: import_zod14.z.enum(TaskStatus),
|
|
972
|
+
priority: import_zod14.z.enum(TaskPriority),
|
|
973
|
+
labels: import_zod14.z.array(import_zod14.z.string()),
|
|
974
|
+
assigneeRole: import_zod14.z.enum(AssigneeRole).nullable().optional(),
|
|
975
|
+
assignedTo: import_zod14.z.string().nullable().optional(),
|
|
976
|
+
sprintId: import_zod14.z.uuid().nullable().optional(),
|
|
977
|
+
parentId: import_zod14.z.uuid().nullable().optional(),
|
|
978
|
+
dueDate: import_zod14.z.union([import_zod14.z.string(), import_zod14.z.number()]).nullable().optional(),
|
|
979
|
+
acceptanceChecklist: import_zod14.z.array(AcceptanceItemSchema),
|
|
980
|
+
comments: import_zod14.z.array(CommentSchema).optional(),
|
|
981
|
+
activityLog: import_zod14.z.array(EventSchema).optional(),
|
|
982
|
+
docs: import_zod14.z.array(DocSchema)
|
|
983
|
+
});
|
|
984
|
+
var CreateTaskSchema = import_zod14.z.object({
|
|
985
|
+
title: import_zod14.z.string().min(1, "Title is required").max(200),
|
|
986
|
+
description: import_zod14.z.string().optional().default(""),
|
|
987
|
+
status: import_zod14.z.enum(TaskStatus).optional().default("BACKLOG" /* BACKLOG */),
|
|
988
|
+
priority: import_zod14.z.enum(TaskPriority).optional().default("MEDIUM" /* MEDIUM */),
|
|
989
|
+
labels: import_zod14.z.array(import_zod14.z.string()).optional().default([]),
|
|
990
|
+
assigneeRole: import_zod14.z.enum(AssigneeRole).optional(),
|
|
991
|
+
assignedTo: import_zod14.z.string().nullable().optional(),
|
|
992
|
+
dueDate: import_zod14.z.union([import_zod14.z.string(), import_zod14.z.number()]).nullable().optional(),
|
|
993
|
+
parentId: import_zod14.z.string().nullable().optional(),
|
|
994
|
+
sprintId: import_zod14.z.string().nullable().optional(),
|
|
995
|
+
acceptanceChecklist: import_zod14.z.array(AcceptanceItemSchema).optional(),
|
|
996
|
+
docIds: import_zod14.z.array(import_zod14.z.string()).optional()
|
|
878
997
|
});
|
|
879
998
|
var UpdateTaskSchema = TaskSchema.partial().omit({
|
|
880
999
|
id: true,
|
|
@@ -886,43 +1005,43 @@ var UpdateTaskSchema = TaskSchema.partial().omit({
|
|
|
886
1005
|
activityLog: true,
|
|
887
1006
|
docs: true
|
|
888
1007
|
}).extend({
|
|
889
|
-
title:
|
|
890
|
-
dueDate:
|
|
891
|
-
acceptanceChecklist:
|
|
892
|
-
docIds:
|
|
1008
|
+
title: import_zod14.z.string().min(1).max(200).optional(),
|
|
1009
|
+
dueDate: import_zod14.z.union([import_zod14.z.string(), import_zod14.z.number()]).optional().nullable(),
|
|
1010
|
+
acceptanceChecklist: import_zod14.z.array(AcceptanceItemSchema).optional(),
|
|
1011
|
+
docIds: import_zod14.z.array(import_zod14.z.string()).optional()
|
|
893
1012
|
});
|
|
894
|
-
var AddCommentSchema =
|
|
895
|
-
author:
|
|
896
|
-
text:
|
|
1013
|
+
var AddCommentSchema = import_zod14.z.object({
|
|
1014
|
+
author: import_zod14.z.string().min(1, "Author is required"),
|
|
1015
|
+
text: import_zod14.z.string().min(1, "Comment text is required")
|
|
897
1016
|
});
|
|
898
|
-
var DispatchTaskSchema =
|
|
899
|
-
workerId:
|
|
900
|
-
sprintId:
|
|
1017
|
+
var DispatchTaskSchema = import_zod14.z.object({
|
|
1018
|
+
workerId: import_zod14.z.string().optional(),
|
|
1019
|
+
sprintId: import_zod14.z.uuid().optional().nullable()
|
|
901
1020
|
});
|
|
902
|
-
var TaskIdParamSchema =
|
|
903
|
-
id:
|
|
1021
|
+
var TaskIdParamSchema = import_zod14.z.object({
|
|
1022
|
+
id: import_zod14.z.string().uuid("Invalid Task ID")
|
|
904
1023
|
});
|
|
905
|
-
var TaskQuerySchema =
|
|
906
|
-
var TaskResponseSchema =
|
|
1024
|
+
var TaskQuerySchema = import_zod14.z.object({});
|
|
1025
|
+
var TaskResponseSchema = import_zod14.z.object({
|
|
907
1026
|
task: TaskSchema
|
|
908
1027
|
});
|
|
909
|
-
var TasksResponseSchema =
|
|
910
|
-
tasks:
|
|
1028
|
+
var TasksResponseSchema = import_zod14.z.object({
|
|
1029
|
+
tasks: import_zod14.z.array(TaskSchema)
|
|
911
1030
|
});
|
|
912
1031
|
// src/models/workspace.ts
|
|
913
|
-
var
|
|
914
|
-
var ChecklistItemSchema =
|
|
915
|
-
id:
|
|
916
|
-
text:
|
|
917
|
-
done:
|
|
1032
|
+
var import_zod15 = require("zod");
|
|
1033
|
+
var ChecklistItemSchema = import_zod15.z.object({
|
|
1034
|
+
id: import_zod15.z.string(),
|
|
1035
|
+
text: import_zod15.z.string(),
|
|
1036
|
+
done: import_zod15.z.boolean()
|
|
918
1037
|
});
|
|
919
1038
|
var WorkspaceSchema = BaseEntitySchema.extend({
|
|
920
|
-
orgId:
|
|
921
|
-
name:
|
|
922
|
-
defaultChecklist:
|
|
1039
|
+
orgId: import_zod15.z.uuid(),
|
|
1040
|
+
name: import_zod15.z.string().min(1, "Name is required").max(100),
|
|
1041
|
+
defaultChecklist: import_zod15.z.array(ChecklistItemSchema).nullable().optional()
|
|
923
1042
|
});
|
|
924
|
-
var CreateWorkspaceSchema =
|
|
925
|
-
name:
|
|
1043
|
+
var CreateWorkspaceSchema = import_zod15.z.object({
|
|
1044
|
+
name: import_zod15.z.string().min(1, "Name is required").max(100)
|
|
926
1045
|
});
|
|
927
1046
|
var UpdateWorkspaceSchema = WorkspaceSchema.partial().omit({
|
|
928
1047
|
id: true,
|
|
@@ -930,28 +1049,39 @@ var UpdateWorkspaceSchema = WorkspaceSchema.partial().omit({
|
|
|
930
1049
|
createdAt: true,
|
|
931
1050
|
updatedAt: true
|
|
932
1051
|
});
|
|
933
|
-
var AddWorkspaceMemberSchema =
|
|
934
|
-
userId:
|
|
935
|
-
role:
|
|
1052
|
+
var AddWorkspaceMemberSchema = import_zod15.z.object({
|
|
1053
|
+
userId: import_zod15.z.string().uuid("Invalid User ID"),
|
|
1054
|
+
role: import_zod15.z.string().optional()
|
|
936
1055
|
});
|
|
937
|
-
var WorkspaceIdParamSchema =
|
|
938
|
-
workspaceId:
|
|
1056
|
+
var WorkspaceIdParamSchema = import_zod15.z.object({
|
|
1057
|
+
workspaceId: import_zod15.z.string().uuid("Invalid Workspace ID")
|
|
939
1058
|
});
|
|
940
|
-
var WorkspaceAndUserParamSchema =
|
|
941
|
-
workspaceId:
|
|
942
|
-
userId:
|
|
1059
|
+
var WorkspaceAndUserParamSchema = import_zod15.z.object({
|
|
1060
|
+
workspaceId: import_zod15.z.string().uuid("Invalid Workspace ID"),
|
|
1061
|
+
userId: import_zod15.z.string().uuid("Invalid User ID")
|
|
943
1062
|
});
|
|
944
|
-
var
|
|
945
|
-
|
|
1063
|
+
var WorkspaceWithManifestInfoSchema = WorkspaceSchema.extend({
|
|
1064
|
+
isManifestComplete: import_zod15.z.boolean(),
|
|
1065
|
+
manifestCompletionPercentage: import_zod15.z.number().min(0).max(100)
|
|
946
1066
|
});
|
|
947
|
-
var
|
|
948
|
-
|
|
1067
|
+
var WorkspaceResponseSchema = import_zod15.z.object({
|
|
1068
|
+
workspace: WorkspaceWithManifestInfoSchema
|
|
949
1069
|
});
|
|
950
|
-
var
|
|
951
|
-
|
|
952
|
-
taskCounts: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.number()),
|
|
953
|
-
memberCount: import_zod14.z.number()
|
|
1070
|
+
var WorkspacesResponseSchema = import_zod15.z.object({
|
|
1071
|
+
workspaces: import_zod15.z.array(WorkspaceWithManifestInfoSchema)
|
|
954
1072
|
});
|
|
955
|
-
var
|
|
1073
|
+
var WorkspaceStatsSchema = import_zod15.z.object({
|
|
1074
|
+
workspaceName: import_zod15.z.string(),
|
|
1075
|
+
taskCounts: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.number()),
|
|
1076
|
+
memberCount: import_zod15.z.number()
|
|
1077
|
+
});
|
|
1078
|
+
var WorkspaceStatsResponseSchema = import_zod15.z.object({
|
|
956
1079
|
stats: WorkspaceStatsSchema
|
|
957
1080
|
});
|
|
1081
|
+
var ManifestStatusResponseSchema = import_zod15.z.object({
|
|
1082
|
+
isComplete: import_zod15.z.boolean(),
|
|
1083
|
+
percentage: import_zod15.z.number().min(0).max(100),
|
|
1084
|
+
missingFields: import_zod15.z.array(import_zod15.z.string()),
|
|
1085
|
+
filledFields: import_zod15.z.array(import_zod15.z.string()),
|
|
1086
|
+
completenessScore: import_zod15.z.number().min(0).max(100).nullable()
|
|
1087
|
+
});
|
|
@@ -74,6 +74,28 @@ export declare const CiRanPayloadSchema: z.ZodObject<{
|
|
|
74
74
|
exitCode: z.ZodNumber;
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
|
+
export declare const InterviewStartedPayloadSchema: z.ZodObject<{
|
|
78
|
+
workspaceName: z.ZodString;
|
|
79
|
+
firstFieldName: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const InterviewFieldCompletedPayloadSchema: z.ZodObject<{
|
|
82
|
+
fieldName: z.ZodString;
|
|
83
|
+
completionPercentage: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const InterviewCompletedPayloadSchema: z.ZodObject<{
|
|
86
|
+
workspaceName: z.ZodString;
|
|
87
|
+
timeToCompleteMs: z.ZodNumber;
|
|
88
|
+
completedVia: z.ZodEnum<{
|
|
89
|
+
interview: "interview";
|
|
90
|
+
manual_bypass: "manual_bypass";
|
|
91
|
+
}>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export declare const InterviewAbandonedPayloadSchema: z.ZodObject<{
|
|
94
|
+
workspaceName: z.ZodString;
|
|
95
|
+
lastActiveAt: z.ZodUnion<readonly [z.ZodDate, z.ZodString]>;
|
|
96
|
+
completionPercentage: z.ZodNumber;
|
|
97
|
+
daysInactive: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>;
|
|
77
99
|
export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
100
|
type: z.ZodLiteral<EventType.TASK_CREATED>;
|
|
79
101
|
payload: z.ZodObject<{
|
|
@@ -147,6 +169,36 @@ export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
147
169
|
exitCode: z.ZodNumber;
|
|
148
170
|
}, z.core.$strip>>;
|
|
149
171
|
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<EventType.INTERVIEW_STARTED>;
|
|
174
|
+
payload: z.ZodObject<{
|
|
175
|
+
workspaceName: z.ZodString;
|
|
176
|
+
firstFieldName: z.ZodString;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
type: z.ZodLiteral<EventType.INTERVIEW_FIELD_COMPLETED>;
|
|
180
|
+
payload: z.ZodObject<{
|
|
181
|
+
fieldName: z.ZodString;
|
|
182
|
+
completionPercentage: z.ZodNumber;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
type: z.ZodLiteral<EventType.INTERVIEW_COMPLETED>;
|
|
186
|
+
payload: z.ZodObject<{
|
|
187
|
+
workspaceName: z.ZodString;
|
|
188
|
+
timeToCompleteMs: z.ZodNumber;
|
|
189
|
+
completedVia: z.ZodEnum<{
|
|
190
|
+
interview: "interview";
|
|
191
|
+
manual_bypass: "manual_bypass";
|
|
192
|
+
}>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
type: z.ZodLiteral<EventType.INTERVIEW_ABANDONED>;
|
|
196
|
+
payload: z.ZodObject<{
|
|
197
|
+
workspaceName: z.ZodString;
|
|
198
|
+
lastActiveAt: z.ZodUnion<readonly [z.ZodDate, z.ZodString]>;
|
|
199
|
+
completionPercentage: z.ZodNumber;
|
|
200
|
+
daysInactive: z.ZodNumber;
|
|
201
|
+
}, z.core.$strip>;
|
|
150
202
|
}, z.core.$strip>], "type">;
|
|
151
203
|
export type EventPayload = z.infer<typeof EventPayloadSchema>;
|
|
152
204
|
export declare const EventSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/models/activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE/D,eAAO,MAAM,aAAa;;;;;;;iBAIxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;;;;;;;;;iBASzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAMtD,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAE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;;;;;;;;iBAE/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAY/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/models/ai.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ export declare const AIArtifactSchema: z.ZodObject<{
|
|
|
10
10
|
type: z.ZodEnum<{
|
|
11
11
|
code: "code";
|
|
12
12
|
document: "document";
|
|
13
|
-
sprint: "sprint";
|
|
14
|
-
task_list: "task_list";
|
|
15
|
-
task: "task";
|
|
16
13
|
}>;
|
|
17
14
|
title: z.ZodString;
|
|
18
15
|
content: z.ZodString;
|
|
@@ -23,11 +20,8 @@ export type AIArtifact = z.infer<typeof AIArtifactSchema>;
|
|
|
23
20
|
export declare const SuggestedActionSchema: z.ZodObject<{
|
|
24
21
|
label: z.ZodString;
|
|
25
22
|
type: z.ZodEnum<{
|
|
26
|
-
create_task: "create_task";
|
|
27
|
-
create_doc: "create_doc";
|
|
28
23
|
chat_suggestion: "chat_suggestion";
|
|
29
|
-
|
|
30
|
-
plan_sprint: "plan_sprint";
|
|
24
|
+
create_doc: "create_doc";
|
|
31
25
|
}>;
|
|
32
26
|
payload: z.ZodAny;
|
|
33
27
|
}, z.core.$strip>;
|
|
@@ -47,9 +41,6 @@ export declare const AIMessageSchema: z.ZodObject<{
|
|
|
47
41
|
type: z.ZodEnum<{
|
|
48
42
|
code: "code";
|
|
49
43
|
document: "document";
|
|
50
|
-
sprint: "sprint";
|
|
51
|
-
task_list: "task_list";
|
|
52
|
-
task: "task";
|
|
53
44
|
}>;
|
|
54
45
|
title: z.ZodString;
|
|
55
46
|
content: z.ZodString;
|
|
@@ -59,11 +50,8 @@ export declare const AIMessageSchema: z.ZodObject<{
|
|
|
59
50
|
suggestedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
51
|
label: z.ZodString;
|
|
61
52
|
type: z.ZodEnum<{
|
|
62
|
-
create_task: "create_task";
|
|
63
|
-
create_doc: "create_doc";
|
|
64
53
|
chat_suggestion: "chat_suggestion";
|
|
65
|
-
|
|
66
|
-
plan_sprint: "plan_sprint";
|
|
54
|
+
create_doc: "create_doc";
|
|
67
55
|
}>;
|
|
68
56
|
payload: z.ZodAny;
|
|
69
57
|
}, z.core.$strip>>>;
|
|
@@ -90,9 +78,6 @@ export declare const ChatResponseSchema: z.ZodObject<{
|
|
|
90
78
|
type: z.ZodEnum<{
|
|
91
79
|
code: "code";
|
|
92
80
|
document: "document";
|
|
93
|
-
sprint: "sprint";
|
|
94
|
-
task_list: "task_list";
|
|
95
|
-
task: "task";
|
|
96
81
|
}>;
|
|
97
82
|
title: z.ZodString;
|
|
98
83
|
content: z.ZodString;
|
|
@@ -102,11 +87,8 @@ export declare const ChatResponseSchema: z.ZodObject<{
|
|
|
102
87
|
suggestedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
103
88
|
label: z.ZodString;
|
|
104
89
|
type: z.ZodEnum<{
|
|
105
|
-
create_task: "create_task";
|
|
106
|
-
create_doc: "create_doc";
|
|
107
90
|
chat_suggestion: "chat_suggestion";
|
|
108
|
-
|
|
109
|
-
plan_sprint: "plan_sprint";
|
|
91
|
+
create_doc: "create_doc";
|
|
110
92
|
}>;
|
|
111
93
|
payload: z.ZodAny;
|
|
112
94
|
}, z.core.$strip>>>;
|
|
@@ -127,9 +109,6 @@ export declare const ChatResponseSchema: z.ZodObject<{
|
|
|
127
109
|
type: z.ZodEnum<{
|
|
128
110
|
code: "code";
|
|
129
111
|
document: "document";
|
|
130
|
-
sprint: "sprint";
|
|
131
|
-
task_list: "task_list";
|
|
132
|
-
task: "task";
|
|
133
112
|
}>;
|
|
134
113
|
title: z.ZodString;
|
|
135
114
|
content: z.ZodString;
|
|
@@ -139,11 +118,8 @@ export declare const ChatResponseSchema: z.ZodObject<{
|
|
|
139
118
|
suggestedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
119
|
label: z.ZodString;
|
|
141
120
|
type: z.ZodEnum<{
|
|
142
|
-
create_task: "create_task";
|
|
143
|
-
create_doc: "create_doc";
|
|
144
121
|
chat_suggestion: "chat_suggestion";
|
|
145
|
-
|
|
146
|
-
plan_sprint: "plan_sprint";
|
|
122
|
+
create_doc: "create_doc";
|
|
147
123
|
}>;
|
|
148
124
|
payload: z.ZodAny;
|
|
149
125
|
}, z.core.$strip>>>;
|
package/dist/models/ai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/models/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;EAA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ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ProjectPhaseSchema: z.ZodEnum<{
|
|
3
|
+
PLANNING: "PLANNING";
|
|
4
|
+
MVP_BUILD: "MVP_BUILD";
|
|
5
|
+
SCALING: "SCALING";
|
|
6
|
+
MAINTENANCE: "MAINTENANCE";
|
|
7
|
+
}>;
|
|
8
|
+
export type ProjectPhase = z.infer<typeof ProjectPhaseSchema>;
|
|
9
|
+
export declare const SprintStatusSchema: z.ZodEnum<{
|
|
10
|
+
PLANNED: "PLANNED";
|
|
11
|
+
ACTIVE: "ACTIVE";
|
|
12
|
+
COMPLETED: "COMPLETED";
|
|
13
|
+
}>;
|
|
14
|
+
export declare const ProjectSprintSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
goal: z.ZodString;
|
|
17
|
+
tasks: z.ZodArray<z.ZodString>;
|
|
18
|
+
status: z.ZodEnum<{
|
|
19
|
+
PLANNED: "PLANNED";
|
|
20
|
+
ACTIVE: "ACTIVE";
|
|
21
|
+
COMPLETED: "COMPLETED";
|
|
22
|
+
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type ProjectSprint = z.infer<typeof ProjectSprintSchema>;
|
|
25
|
+
export declare const MilestoneStatusSchema: z.ZodEnum<{
|
|
26
|
+
COMPLETED: "COMPLETED";
|
|
27
|
+
PENDING: "PENDING";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const ProjectMilestoneSchema: z.ZodObject<{
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
date: z.ZodOptional<z.ZodString>;
|
|
32
|
+
status: z.ZodEnum<{
|
|
33
|
+
COMPLETED: "COMPLETED";
|
|
34
|
+
PENDING: "PENDING";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ProjectMilestone = z.infer<typeof ProjectMilestoneSchema>;
|
|
38
|
+
export declare const ProjectTimelineSchema: z.ZodObject<{
|
|
39
|
+
sprints: z.ZodArray<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
goal: z.ZodString;
|
|
42
|
+
tasks: z.ZodArray<z.ZodString>;
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
PLANNED: "PLANNED";
|
|
45
|
+
ACTIVE: "ACTIVE";
|
|
46
|
+
COMPLETED: "COMPLETED";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
date: z.ZodOptional<z.ZodString>;
|
|
52
|
+
status: z.ZodEnum<{
|
|
53
|
+
COMPLETED: "COMPLETED";
|
|
54
|
+
PENDING: "PENDING";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type ProjectTimeline = z.infer<typeof ProjectTimelineSchema>;
|
|
59
|
+
export declare const RepositoryContextSchema: z.ZodObject<{
|
|
60
|
+
summary: z.ZodString;
|
|
61
|
+
fileStructure: z.ZodString;
|
|
62
|
+
dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
63
|
+
frameworks: z.ZodArray<z.ZodString>;
|
|
64
|
+
configFiles: z.ZodArray<z.ZodString>;
|
|
65
|
+
lastAnalysis: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type RepositoryContext = z.infer<typeof RepositoryContextSchema>;
|
|
68
|
+
export declare const ProjectManifestSchema: z.ZodObject<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
mission: z.ZodString;
|
|
71
|
+
targetUsers: z.ZodArray<z.ZodString>;
|
|
72
|
+
techStack: z.ZodArray<z.ZodString>;
|
|
73
|
+
phase: z.ZodEnum<{
|
|
74
|
+
PLANNING: "PLANNING";
|
|
75
|
+
MVP_BUILD: "MVP_BUILD";
|
|
76
|
+
SCALING: "SCALING";
|
|
77
|
+
MAINTENANCE: "MAINTENANCE";
|
|
78
|
+
}>;
|
|
79
|
+
features: z.ZodArray<z.ZodString>;
|
|
80
|
+
competitors: z.ZodArray<z.ZodString>;
|
|
81
|
+
brandVoice: z.ZodOptional<z.ZodString>;
|
|
82
|
+
successMetrics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
+
completenessScore: z.ZodNumber;
|
|
84
|
+
timeline: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
sprints: z.ZodArray<z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
goal: z.ZodString;
|
|
88
|
+
tasks: z.ZodArray<z.ZodString>;
|
|
89
|
+
status: z.ZodEnum<{
|
|
90
|
+
PLANNED: "PLANNED";
|
|
91
|
+
ACTIVE: "ACTIVE";
|
|
92
|
+
COMPLETED: "COMPLETED";
|
|
93
|
+
}>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
96
|
+
title: z.ZodString;
|
|
97
|
+
date: z.ZodOptional<z.ZodString>;
|
|
98
|
+
status: z.ZodEnum<{
|
|
99
|
+
COMPLETED: "COMPLETED";
|
|
100
|
+
PENDING: "PENDING";
|
|
101
|
+
}>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
repositoryState: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
summary: z.ZodString;
|
|
106
|
+
fileStructure: z.ZodString;
|
|
107
|
+
dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
108
|
+
frameworks: z.ZodArray<z.ZodString>;
|
|
109
|
+
configFiles: z.ZodArray<z.ZodString>;
|
|
110
|
+
lastAnalysis: z.ZodString;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type ProjectManifestType = z.infer<typeof ProjectManifestSchema>;
|
|
114
|
+
export declare const PartialProjectManifestSchema: z.ZodObject<{
|
|
115
|
+
name: z.ZodOptional<z.ZodString>;
|
|
116
|
+
mission: z.ZodOptional<z.ZodString>;
|
|
117
|
+
targetUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
techStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
phase: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
PLANNING: "PLANNING";
|
|
121
|
+
MVP_BUILD: "MVP_BUILD";
|
|
122
|
+
SCALING: "SCALING";
|
|
123
|
+
MAINTENANCE: "MAINTENANCE";
|
|
124
|
+
}>>;
|
|
125
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
|
+
competitors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
brandVoice: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
successMetrics: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
129
|
+
completenessScore: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
timeline: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
131
|
+
sprints: z.ZodArray<z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
goal: z.ZodString;
|
|
134
|
+
tasks: z.ZodArray<z.ZodString>;
|
|
135
|
+
status: z.ZodEnum<{
|
|
136
|
+
PLANNED: "PLANNED";
|
|
137
|
+
ACTIVE: "ACTIVE";
|
|
138
|
+
COMPLETED: "COMPLETED";
|
|
139
|
+
}>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
142
|
+
title: z.ZodString;
|
|
143
|
+
date: z.ZodOptional<z.ZodString>;
|
|
144
|
+
status: z.ZodEnum<{
|
|
145
|
+
COMPLETED: "COMPLETED";
|
|
146
|
+
PENDING: "PENDING";
|
|
147
|
+
}>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
}, z.core.$strip>>>;
|
|
150
|
+
repositoryState: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
151
|
+
summary: z.ZodString;
|
|
152
|
+
fileStructure: z.ZodString;
|
|
153
|
+
dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
154
|
+
frameworks: z.ZodArray<z.ZodString>;
|
|
155
|
+
configFiles: z.ZodArray<z.ZodString>;
|
|
156
|
+
lastAnalysis: z.ZodString;
|
|
157
|
+
}, z.core.$strip>>>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
export type PartialProjectManifest = z.infer<typeof PartialProjectManifestSchema>;
|
|
160
|
+
export declare const DEFAULT_MANIFEST_VALUES: ProjectManifestType;
|
|
161
|
+
export declare const REQUIRED_MANIFEST_FIELDS: (keyof ProjectManifestType)[];
|
|
162
|
+
export interface ManifestValidationResult {
|
|
163
|
+
isValid: boolean;
|
|
164
|
+
wasRepaired: boolean;
|
|
165
|
+
repairedFields: string[];
|
|
166
|
+
errors: string[];
|
|
167
|
+
manifest: Partial<ProjectManifestType> | null;
|
|
168
|
+
}
|
|
169
|
+
export interface ManifestCompletionResult {
|
|
170
|
+
isManifestComplete: boolean;
|
|
171
|
+
manifestCompletionPercentage: number;
|
|
172
|
+
filledFields: (keyof ProjectManifestType)[];
|
|
173
|
+
missingFields: (keyof ProjectManifestType)[];
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/models/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB;;;;;EAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D,eAAO,MAAM,kBAAkB;;;;EAA6C,CAAC;AAE7E,eAAO,MAAM,mBAAmB;;;;;;;;;iBAK9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,qBAAqB;;;EAAmC,CAAC;AAEtE,eAAO,MAAM,sBAAsB;;;;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;iBAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,uBAAuB;;;;;;;iBAOlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAahC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMxE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC;AAE5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAMF,eAAO,MAAM,uBAAuB,EAAE,mBAWrC,CAAC;AAMF,eAAO,MAAM,wBAAwB,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAQjE,CAAC;AAMF,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC;CAC/C;AAMD,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,4BAA4B,EAAE,MAAM,CAAC;IACrC,YAAY,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAE,CAAC;IAC5C,aAAa,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAE,CAAC;CAC9C"}
|
|
@@ -45,6 +45,21 @@ export declare const WorkspaceAndUserParamSchema: z.ZodObject<{
|
|
|
45
45
|
userId: z.ZodString;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
export type WorkspaceAndUserParam = z.infer<typeof WorkspaceAndUserParamSchema>;
|
|
48
|
+
export declare const WorkspaceWithManifestInfoSchema: z.ZodObject<{
|
|
49
|
+
id: z.ZodUUID;
|
|
50
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
51
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
52
|
+
orgId: z.ZodUUID;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
defaultChecklist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
text: z.ZodString;
|
|
57
|
+
done: z.ZodBoolean;
|
|
58
|
+
}, z.core.$strip>>>>;
|
|
59
|
+
isManifestComplete: z.ZodBoolean;
|
|
60
|
+
manifestCompletionPercentage: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type WorkspaceWithManifestInfo = z.infer<typeof WorkspaceWithManifestInfoSchema>;
|
|
48
63
|
export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
49
64
|
workspace: z.ZodObject<{
|
|
50
65
|
id: z.ZodUUID;
|
|
@@ -57,6 +72,8 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
57
72
|
text: z.ZodString;
|
|
58
73
|
done: z.ZodBoolean;
|
|
59
74
|
}, z.core.$strip>>>>;
|
|
75
|
+
isManifestComplete: z.ZodBoolean;
|
|
76
|
+
manifestCompletionPercentage: z.ZodNumber;
|
|
60
77
|
}, z.core.$strip>;
|
|
61
78
|
}, z.core.$strip>;
|
|
62
79
|
export type WorkspaceResponse = z.infer<typeof WorkspaceResponseSchema>;
|
|
@@ -72,6 +89,8 @@ export declare const WorkspacesResponseSchema: z.ZodObject<{
|
|
|
72
89
|
text: z.ZodString;
|
|
73
90
|
done: z.ZodBoolean;
|
|
74
91
|
}, z.core.$strip>>>>;
|
|
92
|
+
isManifestComplete: z.ZodBoolean;
|
|
93
|
+
manifestCompletionPercentage: z.ZodNumber;
|
|
75
94
|
}, z.core.$strip>>;
|
|
76
95
|
}, z.core.$strip>;
|
|
77
96
|
export type WorkspacesResponse = z.infer<typeof WorkspacesResponseSchema>;
|
|
@@ -89,4 +108,12 @@ export declare const WorkspaceStatsResponseSchema: z.ZodObject<{
|
|
|
89
108
|
}, z.core.$strip>;
|
|
90
109
|
}, z.core.$strip>;
|
|
91
110
|
export type WorkspaceStatsResponse = z.infer<typeof WorkspaceStatsResponseSchema>;
|
|
111
|
+
export declare const ManifestStatusResponseSchema: z.ZodObject<{
|
|
112
|
+
isComplete: z.ZodBoolean;
|
|
113
|
+
percentage: z.ZodNumber;
|
|
114
|
+
missingFields: z.ZodArray<z.ZodString>;
|
|
115
|
+
filledFields: z.ZodArray<z.ZodString>;
|
|
116
|
+
completenessScore: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type ManifestStatusResponse = z.infer<typeof ManifestStatusResponseSchema>;
|
|
92
119
|
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/models/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe;;;;;;;;;;;iBAI1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;;;;iBAKhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,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