@locusai/shared 0.16.2 → 0.17.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/common.d.ts +0 -53
- package/dist/common.d.ts.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +174 -1050
- package/package.json +1 -1
- package/dist/constants.d.ts +0 -2
- package/dist/constants.d.ts.map +0 -1
- package/dist/enums.d.ts +0 -56
- package/dist/enums.d.ts.map +0 -1
- package/dist/models/activity.d.ts +0 -274
- package/dist/models/activity.d.ts.map +0 -1
- package/dist/models/agent.d.ts +0 -42
- package/dist/models/agent.d.ts.map +0 -1
- package/dist/models/auth.d.ts +0 -170
- package/dist/models/auth.d.ts.map +0 -1
- package/dist/models/ci.d.ts +0 -18
- package/dist/models/ci.d.ts.map +0 -1
- package/dist/models/doc-group.d.ts +0 -47
- package/dist/models/doc-group.d.ts.map +0 -1
- package/dist/models/doc.d.ts +0 -84
- package/dist/models/doc.d.ts.map +0 -1
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/invitation.d.ts +0 -80
- package/dist/models/invitation.d.ts.map +0 -1
- package/dist/models/organization.d.ts +0 -102
- package/dist/models/organization.d.ts.map +0 -1
- package/dist/models/sprint.d.ts +0 -61
- package/dist/models/sprint.d.ts.map +0 -1
- package/dist/models/task.d.ts +0 -235
- package/dist/models/task.d.ts.map +0 -1
- package/dist/models/user.d.ts +0 -38
- package/dist/models/user.d.ts.map +0 -1
- package/dist/models/workspace.d.ts +0 -92
- package/dist/models/workspace.d.ts.map +0 -1
package/package.json
CHANGED
package/dist/constants.d.ts
DELETED
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAiB,CAAC"}
|
package/dist/enums.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export declare enum UserRole {
|
|
2
|
-
USER = "USER",
|
|
3
|
-
ADMIN = "ADMIN"
|
|
4
|
-
}
|
|
5
|
-
export declare enum MembershipRole {
|
|
6
|
-
OWNER = "OWNER",
|
|
7
|
-
ADMIN = "ADMIN",
|
|
8
|
-
MEMBER = "MEMBER",
|
|
9
|
-
VIEWER = "VIEWER"
|
|
10
|
-
}
|
|
11
|
-
export declare enum TaskStatus {
|
|
12
|
-
BACKLOG = "BACKLOG",
|
|
13
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
14
|
-
IN_REVIEW = "IN_REVIEW",
|
|
15
|
-
BLOCKED = "BLOCKED",
|
|
16
|
-
DONE = "DONE"
|
|
17
|
-
}
|
|
18
|
-
export declare enum TaskPriority {
|
|
19
|
-
LOW = "LOW",
|
|
20
|
-
MEDIUM = "MEDIUM",
|
|
21
|
-
HIGH = "HIGH",
|
|
22
|
-
CRITICAL = "CRITICAL"
|
|
23
|
-
}
|
|
24
|
-
export declare enum AssigneeRole {
|
|
25
|
-
BACKEND = "BACKEND",
|
|
26
|
-
FRONTEND = "FRONTEND",
|
|
27
|
-
QA = "QA",
|
|
28
|
-
PM = "PM",
|
|
29
|
-
DESIGN = "DESIGN"
|
|
30
|
-
}
|
|
31
|
-
export declare enum SprintStatus {
|
|
32
|
-
PLANNED = "PLANNED",
|
|
33
|
-
ACTIVE = "ACTIVE",
|
|
34
|
-
COMPLETED = "COMPLETED"
|
|
35
|
-
}
|
|
36
|
-
export declare enum EventType {
|
|
37
|
-
TASK_CREATED = "TASK_CREATED",
|
|
38
|
-
TASK_UPDATED = "TASK_UPDATED",
|
|
39
|
-
TASK_DELETED = "TASK_DELETED",
|
|
40
|
-
STATUS_CHANGED = "STATUS_CHANGED",
|
|
41
|
-
COMMENT_ADDED = "COMMENT_ADDED",
|
|
42
|
-
CI_RAN = "CI_RAN",
|
|
43
|
-
WORKSPACE_CREATED = "WORKSPACE_CREATED",
|
|
44
|
-
MEMBER_ADDED = "MEMBER_ADDED",
|
|
45
|
-
MEMBER_INVITED = "MEMBER_INVITED",
|
|
46
|
-
SPRINT_CREATED = "SPRINT_CREATED",
|
|
47
|
-
SPRINT_STATUS_CHANGED = "SPRINT_STATUS_CHANGED",
|
|
48
|
-
SPRINT_DELETED = "SPRINT_DELETED",
|
|
49
|
-
CHECKLIST_INITIALIZED = "CHECKLIST_INITIALIZED",
|
|
50
|
-
AGENT_HEARTBEAT = "AGENT_HEARTBEAT",
|
|
51
|
-
TASK_DISPATCHED = "TASK_DISPATCHED",
|
|
52
|
-
PR_CREATED = "PR_CREATED",
|
|
53
|
-
PR_REVIEWED = "PR_REVIEWED",
|
|
54
|
-
PR_MERGED = "PR_MERGED"
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=enums.d.ts.map
|
package/dist/enums.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,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,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;CACxB"}
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { EventType, SprintStatus, TaskStatus } from "../enums";
|
|
3
|
-
export declare const CommentSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodUUID;
|
|
5
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
6
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
7
|
-
taskId: z.ZodUUID;
|
|
8
|
-
author: z.ZodString;
|
|
9
|
-
text: z.ZodString;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type Comment = z.infer<typeof CommentSchema>;
|
|
12
|
-
export declare const ArtifactSchema: z.ZodObject<{
|
|
13
|
-
id: z.ZodUUID;
|
|
14
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
15
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
16
|
-
taskId: z.ZodUUID;
|
|
17
|
-
type: z.ZodString;
|
|
18
|
-
title: z.ZodString;
|
|
19
|
-
contentText: z.ZodOptional<z.ZodString>;
|
|
20
|
-
filePath: z.ZodOptional<z.ZodString>;
|
|
21
|
-
url: z.ZodOptional<z.ZodString>;
|
|
22
|
-
size: z.ZodOptional<z.ZodString>;
|
|
23
|
-
createdBy: z.ZodString;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export type Artifact = z.infer<typeof ArtifactSchema>;
|
|
26
|
-
export declare const TaskCreatedPayloadSchema: z.ZodObject<{
|
|
27
|
-
title: z.ZodString;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export declare const TaskDeletedPayloadSchema: z.ZodObject<{
|
|
30
|
-
title: z.ZodString;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export declare const StatusChangedPayloadSchema: z.ZodObject<{
|
|
33
|
-
title: z.ZodString;
|
|
34
|
-
oldStatus: z.ZodEnum<typeof TaskStatus>;
|
|
35
|
-
newStatus: z.ZodEnum<typeof TaskStatus>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export declare const CommentAddedPayloadSchema: z.ZodObject<{
|
|
38
|
-
title: z.ZodString;
|
|
39
|
-
author: z.ZodString;
|
|
40
|
-
text: z.ZodString;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export declare const WorkspaceCreatedPayloadSchema: z.ZodObject<{
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
export declare const MemberAddedPayloadSchema: z.ZodObject<{
|
|
46
|
-
userId: z.ZodString;
|
|
47
|
-
role: z.ZodString;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
export declare const MemberInvitedPayloadSchema: z.ZodObject<{
|
|
50
|
-
email: z.ZodString;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
|
-
export declare const SprintCreatedPayloadSchema: z.ZodObject<{
|
|
53
|
-
name: z.ZodString;
|
|
54
|
-
sprintId: z.ZodUUID;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
export declare const SprintStatusChangedPayloadSchema: z.ZodObject<{
|
|
57
|
-
name: z.ZodString;
|
|
58
|
-
sprintId: z.ZodUUID;
|
|
59
|
-
oldStatus: z.ZodEnum<typeof SprintStatus>;
|
|
60
|
-
newStatus: z.ZodEnum<typeof SprintStatus>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
export declare const ChecklistInitializedPayloadSchema: z.ZodObject<{
|
|
63
|
-
itemCount: z.ZodNumber;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
export declare const CiRanPayloadSchema: z.ZodObject<{
|
|
66
|
-
preset: z.ZodString;
|
|
67
|
-
ok: z.ZodBoolean;
|
|
68
|
-
summary: z.ZodString;
|
|
69
|
-
source: z.ZodString;
|
|
70
|
-
deferred: z.ZodBoolean;
|
|
71
|
-
processed: z.ZodBoolean;
|
|
72
|
-
commands: z.ZodArray<z.ZodObject<{
|
|
73
|
-
cmd: z.ZodString;
|
|
74
|
-
exitCode: z.ZodNumber;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
export declare const EventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
-
type: z.ZodLiteral<EventType.TASK_CREATED>;
|
|
79
|
-
payload: z.ZodObject<{
|
|
80
|
-
title: z.ZodString;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
type: z.ZodLiteral<EventType.TASK_DELETED>;
|
|
84
|
-
payload: z.ZodObject<{
|
|
85
|
-
title: z.ZodString;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
type: z.ZodLiteral<EventType.STATUS_CHANGED>;
|
|
89
|
-
payload: z.ZodObject<{
|
|
90
|
-
title: z.ZodString;
|
|
91
|
-
oldStatus: z.ZodEnum<typeof TaskStatus>;
|
|
92
|
-
newStatus: z.ZodEnum<typeof TaskStatus>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
type: z.ZodLiteral<EventType.COMMENT_ADDED>;
|
|
96
|
-
payload: z.ZodObject<{
|
|
97
|
-
title: z.ZodString;
|
|
98
|
-
author: z.ZodString;
|
|
99
|
-
text: z.ZodString;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
type: z.ZodLiteral<EventType.WORKSPACE_CREATED>;
|
|
103
|
-
payload: z.ZodObject<{
|
|
104
|
-
name: z.ZodString;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
-
type: z.ZodLiteral<EventType.MEMBER_ADDED>;
|
|
108
|
-
payload: z.ZodObject<{
|
|
109
|
-
userId: z.ZodString;
|
|
110
|
-
role: z.ZodString;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
-
type: z.ZodLiteral<EventType.MEMBER_INVITED>;
|
|
114
|
-
payload: z.ZodObject<{
|
|
115
|
-
email: z.ZodString;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
-
type: z.ZodLiteral<EventType.SPRINT_CREATED>;
|
|
119
|
-
payload: z.ZodObject<{
|
|
120
|
-
name: z.ZodString;
|
|
121
|
-
sprintId: z.ZodUUID;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
-
type: z.ZodLiteral<EventType.SPRINT_STATUS_CHANGED>;
|
|
125
|
-
payload: z.ZodObject<{
|
|
126
|
-
name: z.ZodString;
|
|
127
|
-
sprintId: z.ZodUUID;
|
|
128
|
-
oldStatus: z.ZodEnum<typeof SprintStatus>;
|
|
129
|
-
newStatus: z.ZodEnum<typeof SprintStatus>;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
-
type: z.ZodLiteral<EventType.CHECKLIST_INITIALIZED>;
|
|
133
|
-
payload: z.ZodObject<{
|
|
134
|
-
itemCount: z.ZodNumber;
|
|
135
|
-
}, z.core.$strip>;
|
|
136
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
-
type: z.ZodLiteral<EventType.CI_RAN>;
|
|
138
|
-
payload: z.ZodObject<{
|
|
139
|
-
preset: z.ZodString;
|
|
140
|
-
ok: z.ZodBoolean;
|
|
141
|
-
summary: z.ZodString;
|
|
142
|
-
source: z.ZodString;
|
|
143
|
-
deferred: z.ZodBoolean;
|
|
144
|
-
processed: z.ZodBoolean;
|
|
145
|
-
commands: z.ZodArray<z.ZodObject<{
|
|
146
|
-
cmd: z.ZodString;
|
|
147
|
-
exitCode: z.ZodNumber;
|
|
148
|
-
}, z.core.$strip>>;
|
|
149
|
-
}, z.core.$strip>;
|
|
150
|
-
}, z.core.$strip>], "type">;
|
|
151
|
-
export type EventPayload = z.infer<typeof EventPayloadSchema>;
|
|
152
|
-
export declare const EventSchema: z.ZodObject<{
|
|
153
|
-
id: z.ZodString;
|
|
154
|
-
workspaceId: z.ZodString;
|
|
155
|
-
taskId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
156
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
157
|
-
type: z.ZodEnum<typeof EventType>;
|
|
158
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
159
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
160
|
-
}, z.core.$strip>;
|
|
161
|
-
export type Event = z.infer<typeof EventSchema>;
|
|
162
|
-
export declare const ArtifactParamSchema: z.ZodObject<{
|
|
163
|
-
taskId: z.ZodString;
|
|
164
|
-
type: z.ZodString;
|
|
165
|
-
filename: z.ZodString;
|
|
166
|
-
}, z.core.$strip>;
|
|
167
|
-
export type ArtifactParam = z.infer<typeof ArtifactParamSchema>;
|
|
168
|
-
export declare const TaskIdOnlyParamSchema: z.ZodObject<{
|
|
169
|
-
taskId: z.ZodString;
|
|
170
|
-
}, z.core.$strip>;
|
|
171
|
-
export type TaskIdOnlyParam = z.infer<typeof TaskIdOnlyParamSchema>;
|
|
172
|
-
export declare const EventQuerySchema: z.ZodObject<{
|
|
173
|
-
taskId: z.ZodOptional<z.ZodString>;
|
|
174
|
-
}, z.core.$strip>;
|
|
175
|
-
export type EventQuery = z.infer<typeof EventQuerySchema>;
|
|
176
|
-
export declare const EventResponseSchema: z.ZodObject<{
|
|
177
|
-
event: z.ZodObject<{
|
|
178
|
-
id: z.ZodString;
|
|
179
|
-
workspaceId: z.ZodString;
|
|
180
|
-
taskId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
181
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
|
-
type: z.ZodEnum<typeof EventType>;
|
|
183
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
184
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
185
|
-
}, z.core.$strip>;
|
|
186
|
-
}, z.core.$strip>;
|
|
187
|
-
export type EventResponse = z.infer<typeof EventResponseSchema>;
|
|
188
|
-
export declare const EventsResponseSchema: z.ZodObject<{
|
|
189
|
-
events: z.ZodArray<z.ZodObject<{
|
|
190
|
-
id: z.ZodString;
|
|
191
|
-
workspaceId: z.ZodString;
|
|
192
|
-
taskId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
193
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
194
|
-
type: z.ZodEnum<typeof EventType>;
|
|
195
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
196
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
197
|
-
}, z.core.$strip>>;
|
|
198
|
-
}, z.core.$strip>;
|
|
199
|
-
export type EventsResponse = z.infer<typeof EventsResponseSchema>;
|
|
200
|
-
export declare const ActivityResponseSchema: z.ZodObject<{
|
|
201
|
-
activity: z.ZodArray<z.ZodObject<{
|
|
202
|
-
id: z.ZodString;
|
|
203
|
-
workspaceId: z.ZodString;
|
|
204
|
-
taskId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
205
|
-
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
206
|
-
type: z.ZodEnum<typeof EventType>;
|
|
207
|
-
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
208
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
209
|
-
}, z.core.$strip>>;
|
|
210
|
-
}, z.core.$strip>;
|
|
211
|
-
export type ActivityResponse = z.infer<typeof ActivityResponseSchema>;
|
|
212
|
-
export declare const CommentResponseSchema: z.ZodObject<{
|
|
213
|
-
comment: z.ZodObject<{
|
|
214
|
-
id: z.ZodUUID;
|
|
215
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
216
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
217
|
-
taskId: z.ZodUUID;
|
|
218
|
-
author: z.ZodString;
|
|
219
|
-
text: z.ZodString;
|
|
220
|
-
}, z.core.$strip>;
|
|
221
|
-
}, z.core.$strip>;
|
|
222
|
-
export type CommentResponse = z.infer<typeof CommentResponseSchema>;
|
|
223
|
-
export declare const ArtifactResponseSchema: z.ZodObject<{
|
|
224
|
-
artifact: z.ZodObject<{
|
|
225
|
-
id: z.ZodUUID;
|
|
226
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
227
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
228
|
-
taskId: z.ZodUUID;
|
|
229
|
-
type: z.ZodString;
|
|
230
|
-
title: z.ZodString;
|
|
231
|
-
contentText: z.ZodOptional<z.ZodString>;
|
|
232
|
-
filePath: z.ZodOptional<z.ZodString>;
|
|
233
|
-
url: z.ZodOptional<z.ZodString>;
|
|
234
|
-
size: z.ZodOptional<z.ZodString>;
|
|
235
|
-
createdBy: z.ZodString;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
}, z.core.$strip>;
|
|
238
|
-
export type ArtifactResponse = z.infer<typeof ArtifactResponseSchema>;
|
|
239
|
-
export declare const ArtifactsResponseSchema: z.ZodObject<{
|
|
240
|
-
artifacts: z.ZodArray<z.ZodObject<{
|
|
241
|
-
id: z.ZodUUID;
|
|
242
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
243
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
244
|
-
taskId: z.ZodUUID;
|
|
245
|
-
type: z.ZodString;
|
|
246
|
-
title: z.ZodString;
|
|
247
|
-
contentText: z.ZodOptional<z.ZodString>;
|
|
248
|
-
filePath: z.ZodOptional<z.ZodString>;
|
|
249
|
-
url: z.ZodOptional<z.ZodString>;
|
|
250
|
-
size: z.ZodOptional<z.ZodString>;
|
|
251
|
-
createdBy: z.ZodString;
|
|
252
|
-
}, z.core.$strip>>;
|
|
253
|
-
}, z.core.$strip>;
|
|
254
|
-
export type ArtifactsResponse = z.infer<typeof ArtifactsResponseSchema>;
|
|
255
|
-
export declare const CreateArtifactSchema: z.ZodObject<{
|
|
256
|
-
taskId: z.ZodUUID;
|
|
257
|
-
type: z.ZodString;
|
|
258
|
-
title: z.ZodString;
|
|
259
|
-
contentText: z.ZodOptional<z.ZodString>;
|
|
260
|
-
}, z.core.$strip>;
|
|
261
|
-
export type CreateArtifact = z.infer<typeof CreateArtifactSchema>;
|
|
262
|
-
export declare const ReportCiResultSchema: z.ZodObject<{
|
|
263
|
-
workspaceId: z.ZodUUID;
|
|
264
|
-
taskId: z.ZodOptional<z.ZodUUID>;
|
|
265
|
-
preset: z.ZodString;
|
|
266
|
-
ok: z.ZodBoolean;
|
|
267
|
-
summary: z.ZodString;
|
|
268
|
-
commands: z.ZodArray<z.ZodObject<{
|
|
269
|
-
cmd: z.ZodString;
|
|
270
|
-
exitCode: z.ZodNumber;
|
|
271
|
-
}, z.core.$strip>>;
|
|
272
|
-
}, z.core.$strip>;
|
|
273
|
-
export type ReportCiResult = z.infer<typeof ReportCiResultSchema>;
|
|
274
|
-
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/models/activity.ts"],"names":[],"mappings":"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"}
|
package/dist/models/agent.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const LockSchema: z.ZodObject<{
|
|
3
|
-
agentId: z.ZodString;
|
|
4
|
-
ttlSeconds: z.ZodNumber;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const UnlockSchema: z.ZodObject<{
|
|
7
|
-
agentId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
export type Lock = z.infer<typeof LockSchema>;
|
|
10
|
-
export type Unlock = z.infer<typeof UnlockSchema>;
|
|
11
|
-
export declare const AgentHeartbeatSchema: z.ZodObject<{
|
|
12
|
-
agentId: z.ZodString;
|
|
13
|
-
currentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
COMPLETED: "COMPLETED";
|
|
16
|
-
IDLE: "IDLE";
|
|
17
|
-
WORKING: "WORKING";
|
|
18
|
-
FAILED: "FAILED";
|
|
19
|
-
}>>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type AgentHeartbeat = z.infer<typeof AgentHeartbeatSchema>;
|
|
22
|
-
export declare const AgentRegistrationResponse: z.ZodObject<{
|
|
23
|
-
agentId: z.ZodString;
|
|
24
|
-
workspaceId: z.ZodString;
|
|
25
|
-
currentTaskId: z.ZodNullable<z.ZodString>;
|
|
26
|
-
status: z.ZodString;
|
|
27
|
-
lastHeartbeat: z.ZodString;
|
|
28
|
-
createdAt: z.ZodString;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export type AgentRegistrationInfo = z.infer<typeof AgentRegistrationResponse>;
|
|
31
|
-
export declare const AgentsListResponse: z.ZodObject<{
|
|
32
|
-
agents: z.ZodArray<z.ZodObject<{
|
|
33
|
-
agentId: z.ZodString;
|
|
34
|
-
workspaceId: z.ZodString;
|
|
35
|
-
currentTaskId: z.ZodNullable<z.ZodString>;
|
|
36
|
-
status: z.ZodString;
|
|
37
|
-
lastHeartbeat: z.ZodString;
|
|
38
|
-
createdAt: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export type AgentsList = z.infer<typeof AgentsListResponse>;
|
|
42
|
-
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/models/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;iBAGrB,CAAC;AAEH,eAAO,MAAM,YAAY;;iBAEvB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAMlD,eAAO,MAAM,oBAAoB;;;;;;;;;iBAO/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,yBAAyB;;;;;;;iBAOpC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE9E,eAAO,MAAM,kBAAkB;;;;;;;;;iBAE7B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/models/auth.d.ts
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authentication Models and Schemas
|
|
3
|
-
*/
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { UserRole } from "../enums";
|
|
6
|
-
/**
|
|
7
|
-
* User authenticated via JWT (web dashboard)
|
|
8
|
-
*/
|
|
9
|
-
export declare const JwtAuthUserSchema: z.ZodObject<{
|
|
10
|
-
authType: z.ZodLiteral<"jwt">;
|
|
11
|
-
id: z.ZodUUID;
|
|
12
|
-
email: z.ZodString;
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
15
|
-
orgId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
16
|
-
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type JwtAuthUser = z.infer<typeof JwtAuthUserSchema>;
|
|
19
|
-
/**
|
|
20
|
-
* User authenticated via API Key (CLI/agents)
|
|
21
|
-
* Note: API keys don't have a real user ID - they represent organization-level access
|
|
22
|
-
*/
|
|
23
|
-
export declare const ApiKeyAuthUserSchema: z.ZodObject<{
|
|
24
|
-
authType: z.ZodLiteral<"api_key">;
|
|
25
|
-
apiKeyId: z.ZodString;
|
|
26
|
-
apiKeyName: z.ZodString;
|
|
27
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
28
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export type ApiKeyAuthUser = z.infer<typeof ApiKeyAuthUserSchema>;
|
|
31
|
-
/**
|
|
32
|
-
* Union type for any authenticated request
|
|
33
|
-
*/
|
|
34
|
-
export declare const AuthenticatedUserSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
-
authType: z.ZodLiteral<"jwt">;
|
|
36
|
-
id: z.ZodUUID;
|
|
37
|
-
email: z.ZodString;
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
40
|
-
orgId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
41
|
-
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
authType: z.ZodLiteral<"api_key">;
|
|
44
|
-
apiKeyId: z.ZodString;
|
|
45
|
-
apiKeyName: z.ZodString;
|
|
46
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
47
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>], "authType">;
|
|
49
|
-
export type AuthenticatedUser = z.infer<typeof AuthenticatedUserSchema>;
|
|
50
|
-
/**
|
|
51
|
-
* Type guard to check if user is JWT authenticated
|
|
52
|
-
*/
|
|
53
|
-
export declare function isJwtUser(user: AuthenticatedUser): user is JwtAuthUser;
|
|
54
|
-
/**
|
|
55
|
-
* Type guard to check if user is API key authenticated
|
|
56
|
-
*/
|
|
57
|
-
export declare function isApiKeyUser(user: AuthenticatedUser): user is ApiKeyAuthUser;
|
|
58
|
-
/**
|
|
59
|
-
* Get the user ID for event logging. Returns null for API key users.
|
|
60
|
-
* Use this when you need to store a reference to the user in the database.
|
|
61
|
-
*/
|
|
62
|
-
export declare function getAuthUserId(user: AuthenticatedUser): string | null;
|
|
63
|
-
export declare const AuthResponseSchema: z.ZodObject<{
|
|
64
|
-
token: z.ZodString;
|
|
65
|
-
user: z.ZodObject<{
|
|
66
|
-
id: z.ZodUUID;
|
|
67
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
68
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
69
|
-
email: z.ZodString;
|
|
70
|
-
name: z.ZodString;
|
|
71
|
-
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
73
|
-
orgId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
74
|
-
workspaceId: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
75
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
76
|
-
userRole: z.ZodOptional<z.ZodString>;
|
|
77
|
-
teamSize: z.ZodOptional<z.ZodString>;
|
|
78
|
-
onboardingCompleted: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
-
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
export type AuthResponse = z.infer<typeof AuthResponseSchema>;
|
|
83
|
-
export type LoginResponse = AuthResponse;
|
|
84
|
-
export declare const OtpRequestSchema: z.ZodObject<{
|
|
85
|
-
email: z.ZodString;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
export type OtpRequest = z.infer<typeof OtpRequestSchema>;
|
|
88
|
-
export declare const VerifyOtpSchema: z.ZodObject<{
|
|
89
|
-
email: z.ZodString;
|
|
90
|
-
otp: z.ZodString;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
export type VerifyOtp = z.infer<typeof VerifyOtpSchema>;
|
|
93
|
-
export declare const CompleteRegistrationSchema: z.ZodObject<{
|
|
94
|
-
email: z.ZodString;
|
|
95
|
-
otp: z.ZodString;
|
|
96
|
-
name: z.ZodString;
|
|
97
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
98
|
-
teamSize: z.ZodOptional<z.ZodEnum<{
|
|
99
|
-
solo: "solo";
|
|
100
|
-
"2-10": "2-10";
|
|
101
|
-
"11-50": "11-50";
|
|
102
|
-
"51-200": "51-200";
|
|
103
|
-
"200+": "200+";
|
|
104
|
-
}>>;
|
|
105
|
-
userRole: z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
developer: "developer";
|
|
107
|
-
designer: "designer";
|
|
108
|
-
product_manager: "product_manager";
|
|
109
|
-
other: "other";
|
|
110
|
-
}>>;
|
|
111
|
-
workspaceName: z.ZodOptional<z.ZodString>;
|
|
112
|
-
invitedEmails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
export type CompleteRegistration = z.infer<typeof CompleteRegistrationSchema>;
|
|
115
|
-
export declare const JWTPayloadSchema: z.ZodObject<{
|
|
116
|
-
sub: z.ZodString;
|
|
117
|
-
email: z.ZodString;
|
|
118
|
-
name: z.ZodString;
|
|
119
|
-
role: z.ZodString;
|
|
120
|
-
orgId: z.ZodOptional<z.ZodUUID>;
|
|
121
|
-
iat: z.ZodNumber;
|
|
122
|
-
exp: z.ZodNumber;
|
|
123
|
-
}, z.core.$strip>;
|
|
124
|
-
export type JWTPayload = z.infer<typeof JWTPayloadSchema>;
|
|
125
|
-
export declare const AuthContextSchema: z.ZodObject<{
|
|
126
|
-
userId: z.ZodString;
|
|
127
|
-
email: z.ZodString;
|
|
128
|
-
name: z.ZodString;
|
|
129
|
-
role: z.ZodString;
|
|
130
|
-
orgId: z.ZodOptional<z.ZodUUID>;
|
|
131
|
-
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
132
|
-
authType: z.ZodEnum<{
|
|
133
|
-
jwt: "jwt";
|
|
134
|
-
api_key: "api_key";
|
|
135
|
-
local: "local";
|
|
136
|
-
}>;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
export type AuthContext = z.infer<typeof AuthContextSchema>;
|
|
139
|
-
export declare const APIKeySchema: z.ZodObject<{
|
|
140
|
-
id: z.ZodString;
|
|
141
|
-
name: z.ZodString;
|
|
142
|
-
keyPrefix: z.ZodString;
|
|
143
|
-
workspaceId: z.ZodString;
|
|
144
|
-
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
145
|
-
createdAt: z.ZodNumber;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
export type APIKey = z.infer<typeof APIKeySchema>;
|
|
148
|
-
export declare const APIKeyCreateResponseSchema: z.ZodObject<{
|
|
149
|
-
id: z.ZodString;
|
|
150
|
-
name: z.ZodString;
|
|
151
|
-
keyPrefix: z.ZodString;
|
|
152
|
-
key: z.ZodString;
|
|
153
|
-
createdAt: z.ZodNumber;
|
|
154
|
-
}, z.core.$strip>;
|
|
155
|
-
export type APIKeyCreateResponse = z.infer<typeof APIKeyCreateResponseSchema>;
|
|
156
|
-
export declare const ApiKeyIdParamSchema: z.ZodObject<{
|
|
157
|
-
id: z.ZodString;
|
|
158
|
-
}, z.core.$strip>;
|
|
159
|
-
export type ApiKeyIdParam = z.infer<typeof ApiKeyIdParamSchema>;
|
|
160
|
-
export declare const ApiKeyQuerySchema: z.ZodObject<{
|
|
161
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, z.core.$strip>;
|
|
163
|
-
export type ApiKeyQuery = z.infer<typeof ApiKeyQuerySchema>;
|
|
164
|
-
export declare const CreateApiKeySchema: z.ZodObject<{
|
|
165
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
166
|
-
name: z.ZodString;
|
|
167
|
-
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
}, z.core.$strip>;
|
|
169
|
-
export type CreateApiKey = z.infer<typeof CreateApiKeySchema>;
|
|
170
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/models/auth.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAOpC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;+BAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,WAAW,CAEtE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,cAAc,CAE5E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAEpE;AAMD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;iBAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AAMzC,eAAO,MAAM,gBAAgB;;iBAE3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAWrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,gBAAgB;;;;;;;;iBAQ3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAQ5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,YAAY;;;;;;;iBAOvB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,0BAA0B;;;;;;iBAMrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/models/ci.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const RecordCiSchema: z.ZodObject<{
|
|
3
|
-
taskId: z.ZodUUID;
|
|
4
|
-
workspaceId: z.ZodUUID;
|
|
5
|
-
result: z.ZodObject<{
|
|
6
|
-
ok: z.ZodBoolean;
|
|
7
|
-
summary: z.ZodString;
|
|
8
|
-
commands: z.ZodArray<z.ZodObject<{
|
|
9
|
-
cmd: z.ZodString;
|
|
10
|
-
exitCode: z.ZodNumber;
|
|
11
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
error: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
preset: z.ZodString;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type RecordCi = z.infer<typeof RecordCiSchema>;
|
|
18
|
-
//# sourceMappingURL=ci.d.ts.map
|
package/dist/models/ci.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../../src/models/ci.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAgBzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const DocGroupSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodUUID;
|
|
4
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
5
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
6
|
-
workspaceId: z.ZodUUID;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
order: z.ZodDefault<z.ZodNumber>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type DocGroup = z.infer<typeof DocGroupSchema>;
|
|
11
|
-
export declare const CreateDocGroupSchema: z.ZodObject<{
|
|
12
|
-
name: z.ZodString;
|
|
13
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type CreateDocGroup = z.infer<typeof CreateDocGroupSchema>;
|
|
16
|
-
export declare const UpdateDocGroupSchema: z.ZodObject<{
|
|
17
|
-
name: z.ZodOptional<z.ZodString>;
|
|
18
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type UpdateDocGroup = z.infer<typeof UpdateDocGroupSchema>;
|
|
21
|
-
export declare const DocGroupResponseSchema: z.ZodObject<{
|
|
22
|
-
group: z.ZodObject<{
|
|
23
|
-
id: z.ZodUUID;
|
|
24
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
25
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
26
|
-
workspaceId: z.ZodUUID;
|
|
27
|
-
name: z.ZodString;
|
|
28
|
-
order: z.ZodDefault<z.ZodNumber>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
export type DocGroupResponse = z.infer<typeof DocGroupResponseSchema>;
|
|
32
|
-
export declare const DocGroupsResponseSchema: z.ZodObject<{
|
|
33
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
34
|
-
id: z.ZodUUID;
|
|
35
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
36
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
37
|
-
workspaceId: z.ZodUUID;
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
order: z.ZodDefault<z.ZodNumber>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export type DocGroupsResponse = z.infer<typeof DocGroupsResponseSchema>;
|
|
43
|
-
export declare const DocGroupIdParamSchema: z.ZodObject<{
|
|
44
|
-
id: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
export type DocGroupIdParam = z.infer<typeof DocGroupIdParamSchema>;
|
|
47
|
-
//# sourceMappingURL=doc-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doc-group.d.ts","sourceRoot":"","sources":["../../src/models/doc-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;iBAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB;;;iBAG/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,uBAAuB;;;;;;;;;iBAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|