@codemap-ai/shared 1.0.2
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/LICENSE +21 -0
- package/dist/admin.d.ts +211 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +13 -0
- package/dist/auth.d.ts +13 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +13 -0
- package/dist/github.d.ts +16 -0
- package/dist/github.d.ts.map +1 -0
- package/dist/github.js +2 -0
- package/dist/gitlab.d.ts +16 -0
- package/dist/gitlab.d.ts.map +1 -0
- package/dist/gitlab.js +2 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/integration-schemas.d.ts +16 -0
- package/dist/integration-schemas.d.ts.map +1 -0
- package/dist/integration-schemas.js +15 -0
- package/dist/mcp-auth-schemas.d.ts +19 -0
- package/dist/mcp-auth-schemas.d.ts.map +1 -0
- package/dist/mcp-auth-schemas.js +17 -0
- package/dist/mcp-auth.d.ts +36 -0
- package/dist/mcp-auth.d.ts.map +1 -0
- package/dist/mcp-auth.js +2 -0
- package/dist/project-entities.d.ts +93 -0
- package/dist/project-entities.d.ts.map +1 -0
- package/dist/project-entities.js +2 -0
- package/dist/project-file.d.ts +114 -0
- package/dist/project-file.d.ts.map +1 -0
- package/dist/project-file.js +2 -0
- package/dist/project-map.d.ts +292 -0
- package/dist/project-map.d.ts.map +1 -0
- package/dist/project-map.js +2 -0
- package/dist/project-mcp.d.ts +102 -0
- package/dist/project-mcp.d.ts.map +1 -0
- package/dist/project-mcp.js +2 -0
- package/dist/project-schemas.d.ts +177 -0
- package/dist/project-schemas.d.ts.map +1 -0
- package/dist/project-schemas.js +145 -0
- package/dist/projects.d.ts +5 -0
- package/dist/projects.d.ts.map +1 -0
- package/dist/projects.js +20 -0
- package/dist/settings-schemas.d.ts +14 -0
- package/dist/settings-schemas.d.ts.map +1 -0
- package/dist/settings-schemas.js +11 -0
- package/dist/workspace-schemas.d.ts +34 -0
- package/dist/workspace-schemas.d.ts.map +1 -0
- package/dist/workspace-schemas.js +28 -0
- package/dist/workspace.d.ts +72 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +2 -0
- package/package.json +24 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const repoSymbolKindValues: readonly ["module", "namespace", "class", "interface", "trait", "mixin", "enum", "enum_member", "function", "component", "method", "constructor", "property", "field", "variable", "constant", "type_alias", "parameter"];
|
|
3
|
+
export declare const projectListIncludeSchema: z.ZodEnum<{
|
|
4
|
+
latestImport: "latestImport";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const projectVisibilitySchema: z.ZodEnum<{
|
|
7
|
+
private: "private";
|
|
8
|
+
public: "public";
|
|
9
|
+
internal: "internal";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const projectProviderSchema: z.ZodEnum<{
|
|
12
|
+
github: "github";
|
|
13
|
+
gitlab: "gitlab";
|
|
14
|
+
local_workspace: "local_workspace";
|
|
15
|
+
}>;
|
|
16
|
+
export declare const listProjectsQuerySchema: z.ZodObject<{
|
|
17
|
+
include: z.ZodPreprocess<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
18
|
+
latestImport: "latestImport";
|
|
19
|
+
}>>>>;
|
|
20
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const createProjectInputSchema: z.ZodObject<{
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
25
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
26
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
private: "private";
|
|
29
|
+
public: "public";
|
|
30
|
+
internal: "internal";
|
|
31
|
+
}>>;
|
|
32
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
github: "github";
|
|
34
|
+
gitlab: "gitlab";
|
|
35
|
+
local_workspace: "local_workspace";
|
|
36
|
+
}>>>;
|
|
37
|
+
defaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
repositoryUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
localWorkspacePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
externalRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const updateProjectInputSchema: z.ZodObject<{
|
|
43
|
+
name: z.ZodOptional<z.ZodString>;
|
|
44
|
+
slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
46
|
+
visibility: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
private: "private";
|
|
48
|
+
public: "public";
|
|
49
|
+
internal: "internal";
|
|
50
|
+
}>>>;
|
|
51
|
+
provider: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
github: "github";
|
|
53
|
+
gitlab: "gitlab";
|
|
54
|
+
local_workspace: "local_workspace";
|
|
55
|
+
}>>>>;
|
|
56
|
+
defaultBranch: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
57
|
+
repositoryUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
58
|
+
localWorkspacePath: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
59
|
+
externalRepoId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const createProjectFromGithubInputSchema: z.ZodObject<{
|
|
62
|
+
name: z.ZodOptional<z.ZodString>;
|
|
63
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
64
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
repositoryUrl: z.ZodString;
|
|
66
|
+
externalRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
defaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
69
|
+
isPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const createProjectFromGitlabInputSchema: z.ZodObject<{
|
|
72
|
+
name: z.ZodOptional<z.ZodString>;
|
|
73
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
74
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
repositoryUrl: z.ZodString;
|
|
76
|
+
externalRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
defaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
79
|
+
isPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const triggerProjectImportInputSchema: z.ZodObject<{
|
|
83
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const projectFileContentQuerySchema: z.ZodObject<{
|
|
86
|
+
path: z.ZodString;
|
|
87
|
+
startLine: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
88
|
+
endLine: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const projectFileQuerySchema: z.ZodObject<{
|
|
91
|
+
path: z.ZodString;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export declare const projectMapSearchQuerySchema: z.ZodObject<{
|
|
94
|
+
q: z.ZodString;
|
|
95
|
+
symbolKinds: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
96
|
+
function: "function";
|
|
97
|
+
module: "module";
|
|
98
|
+
namespace: "namespace";
|
|
99
|
+
class: "class";
|
|
100
|
+
interface: "interface";
|
|
101
|
+
trait: "trait";
|
|
102
|
+
mixin: "mixin";
|
|
103
|
+
enum: "enum";
|
|
104
|
+
enum_member: "enum_member";
|
|
105
|
+
component: "component";
|
|
106
|
+
method: "method";
|
|
107
|
+
constructor: "constructor";
|
|
108
|
+
property: "property";
|
|
109
|
+
field: "field";
|
|
110
|
+
variable: "variable";
|
|
111
|
+
constant: "constant";
|
|
112
|
+
type_alias: "type_alias";
|
|
113
|
+
parameter: "parameter";
|
|
114
|
+
}>>>>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export declare const projectSemanticSearchQuerySchema: z.ZodObject<{
|
|
117
|
+
q: z.ZodString;
|
|
118
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
119
|
+
chunkTypes: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
120
|
+
symbol: "symbol";
|
|
121
|
+
file: "file";
|
|
122
|
+
doc: "doc";
|
|
123
|
+
test: "test";
|
|
124
|
+
route: "route";
|
|
125
|
+
config: "config";
|
|
126
|
+
}>>>>;
|
|
127
|
+
language: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export type ProjectSemanticSearchQuery = z.infer<typeof projectSemanticSearchQuerySchema>;
|
|
130
|
+
export declare const projectMapInsightsQuerySchema: z.ZodObject<{
|
|
131
|
+
file: z.ZodOptional<z.ZodString>;
|
|
132
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export declare const projectImportCompareQuerySchema: z.ZodObject<{
|
|
135
|
+
base: z.ZodUUID;
|
|
136
|
+
head: z.ZodUUID;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export declare const listProjectImportsQuerySchema: z.ZodObject<{
|
|
139
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
140
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export declare const projectEditLocationsQuerySchema: z.ZodObject<{
|
|
143
|
+
q: z.ZodString;
|
|
144
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export declare const projectSymbolUsagesQuerySchema: z.ZodObject<{
|
|
147
|
+
symbolName: z.ZodString;
|
|
148
|
+
path: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export declare const projectSymbolGraphQuerySchema: z.ZodObject<{
|
|
151
|
+
file: z.ZodString;
|
|
152
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export declare const createProjectFromUploadQuerySchema: z.ZodObject<{
|
|
155
|
+
name: z.ZodOptional<z.ZodString>;
|
|
156
|
+
description: z.ZodOptional<z.ZodString>;
|
|
157
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
158
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export type CreateProjectInput = z.infer<typeof createProjectInputSchema>;
|
|
161
|
+
export type UpdateProjectInput = z.infer<typeof updateProjectInputSchema>;
|
|
162
|
+
export type CreateProjectFromGithubInput = z.infer<typeof createProjectFromGithubInputSchema>;
|
|
163
|
+
export type CreateProjectFromGitlabInput = z.infer<typeof createProjectFromGitlabInputSchema>;
|
|
164
|
+
export type TriggerProjectImportInput = z.infer<typeof triggerProjectImportInputSchema>;
|
|
165
|
+
export type ProjectListInclude = z.infer<typeof projectListIncludeSchema>;
|
|
166
|
+
export type ListProjectsQuery = z.infer<typeof listProjectsQuerySchema>;
|
|
167
|
+
export type ProjectFileContentQuery = z.infer<typeof projectFileContentQuerySchema>;
|
|
168
|
+
export type ProjectFileQuery = z.infer<typeof projectFileQuerySchema>;
|
|
169
|
+
export type ProjectMapSearchQuery = z.infer<typeof projectMapSearchQuerySchema>;
|
|
170
|
+
export type ProjectMapInsightsQuery = z.infer<typeof projectMapInsightsQuerySchema>;
|
|
171
|
+
export type ProjectImportCompareQuery = z.infer<typeof projectImportCompareQuerySchema>;
|
|
172
|
+
export type ProjectEditLocationsQuery = z.infer<typeof projectEditLocationsQuerySchema>;
|
|
173
|
+
export type ProjectSymbolUsagesQuery = z.infer<typeof projectSymbolUsagesQuerySchema>;
|
|
174
|
+
export type ProjectSymbolGraphQuery = z.infer<typeof projectSymbolGraphQuerySchema>;
|
|
175
|
+
export type CreateProjectFromUploadQuery = z.infer<typeof createProjectFromUploadQuerySchema>;
|
|
176
|
+
export type ListProjectImportsQuery = z.infer<typeof listProjectImportsQuerySchema>;
|
|
177
|
+
//# sourceMappingURL=project-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-schemas.d.ts","sourceRoot":"","sources":["../src/project-schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createProjectFromUploadQuerySchema = exports.projectSymbolGraphQuerySchema = exports.projectSymbolUsagesQuerySchema = exports.projectEditLocationsQuerySchema = exports.listProjectImportsQuerySchema = exports.projectImportCompareQuerySchema = exports.projectMapInsightsQuerySchema = exports.projectSemanticSearchQuerySchema = exports.projectMapSearchQuerySchema = exports.projectFileQuerySchema = exports.projectFileContentQuerySchema = exports.triggerProjectImportInputSchema = exports.createProjectFromGitlabInputSchema = exports.createProjectFromGithubInputSchema = exports.updateProjectInputSchema = exports.createProjectInputSchema = exports.listProjectsQuerySchema = exports.projectProviderSchema = exports.projectVisibilitySchema = exports.projectListIncludeSchema = exports.repoSymbolKindValues = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.repoSymbolKindValues = [
|
|
6
|
+
"module",
|
|
7
|
+
"namespace",
|
|
8
|
+
"class",
|
|
9
|
+
"interface",
|
|
10
|
+
"trait",
|
|
11
|
+
"mixin",
|
|
12
|
+
"enum",
|
|
13
|
+
"enum_member",
|
|
14
|
+
"function",
|
|
15
|
+
"component",
|
|
16
|
+
"method",
|
|
17
|
+
"constructor",
|
|
18
|
+
"property",
|
|
19
|
+
"field",
|
|
20
|
+
"variable",
|
|
21
|
+
"constant",
|
|
22
|
+
"type_alias",
|
|
23
|
+
"parameter",
|
|
24
|
+
];
|
|
25
|
+
const nullableTrimmedString = zod_1.z.string().trim().min(1).max(500).nullable();
|
|
26
|
+
const nullableShortString = zod_1.z.string().trim().min(1).max(255).nullable();
|
|
27
|
+
const nullableRepositoryUrl = zod_1.z.string().trim().url().max(500).nullable();
|
|
28
|
+
function parseIncludeQueryValue(value) {
|
|
29
|
+
if (Array.isArray(value)) {
|
|
30
|
+
return value
|
|
31
|
+
.flatMap((item) => `${item}`.split(","))
|
|
32
|
+
.map((item) => item.trim())
|
|
33
|
+
.filter(Boolean);
|
|
34
|
+
}
|
|
35
|
+
if (typeof value === "string") {
|
|
36
|
+
return value
|
|
37
|
+
.split(",")
|
|
38
|
+
.map((item) => item.trim())
|
|
39
|
+
.filter(Boolean);
|
|
40
|
+
}
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
exports.projectListIncludeSchema = zod_1.z.enum(["latestImport"]);
|
|
44
|
+
exports.projectVisibilitySchema = zod_1.z.enum([
|
|
45
|
+
"private",
|
|
46
|
+
"public",
|
|
47
|
+
"internal",
|
|
48
|
+
]);
|
|
49
|
+
exports.projectProviderSchema = zod_1.z.enum([
|
|
50
|
+
"github",
|
|
51
|
+
"gitlab",
|
|
52
|
+
"local_workspace",
|
|
53
|
+
]);
|
|
54
|
+
exports.listProjectsQuerySchema = zod_1.z.object({
|
|
55
|
+
include: zod_1.z.preprocess(parseIncludeQueryValue, zod_1.z.array(exports.projectListIncludeSchema).default([])),
|
|
56
|
+
workspaceId: zod_1.z.uuid().optional(),
|
|
57
|
+
});
|
|
58
|
+
exports.createProjectInputSchema = zod_1.z.object({
|
|
59
|
+
name: zod_1.z.string().trim().min(1).max(120),
|
|
60
|
+
workspaceId: zod_1.z.uuid().optional(),
|
|
61
|
+
slug: zod_1.z
|
|
62
|
+
.string()
|
|
63
|
+
.trim()
|
|
64
|
+
.min(2)
|
|
65
|
+
.max(140)
|
|
66
|
+
.regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
67
|
+
.optional(),
|
|
68
|
+
description: nullableTrimmedString.optional(),
|
|
69
|
+
visibility: exports.projectVisibilitySchema.optional(),
|
|
70
|
+
provider: exports.projectProviderSchema.nullable().optional(),
|
|
71
|
+
defaultBranch: nullableShortString.optional(),
|
|
72
|
+
repositoryUrl: nullableRepositoryUrl.optional(),
|
|
73
|
+
localWorkspacePath: zod_1.z.string().trim().min(1).max(4000).nullable().optional(),
|
|
74
|
+
externalRepoId: nullableShortString.optional(),
|
|
75
|
+
});
|
|
76
|
+
exports.updateProjectInputSchema = exports.createProjectInputSchema
|
|
77
|
+
.omit({ workspaceId: true })
|
|
78
|
+
.partial()
|
|
79
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
80
|
+
message: "At least one field must be provided",
|
|
81
|
+
});
|
|
82
|
+
exports.createProjectFromGithubInputSchema = zod_1.z.object({
|
|
83
|
+
name: zod_1.z.string().trim().min(1).max(120).optional(),
|
|
84
|
+
workspaceId: zod_1.z.uuid().optional(),
|
|
85
|
+
description: nullableTrimmedString.optional(),
|
|
86
|
+
repositoryUrl: zod_1.z.string().trim().url().max(500),
|
|
87
|
+
externalRepoId: nullableShortString.optional(),
|
|
88
|
+
defaultBranch: nullableShortString.optional(),
|
|
89
|
+
branch: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
90
|
+
isPrivate: zod_1.z.boolean().optional(),
|
|
91
|
+
});
|
|
92
|
+
exports.createProjectFromGitlabInputSchema = exports.createProjectFromGithubInputSchema.extend({
|
|
93
|
+
accessToken: zod_1.z.string().trim().min(1).max(500).optional(),
|
|
94
|
+
});
|
|
95
|
+
exports.triggerProjectImportInputSchema = zod_1.z.object({
|
|
96
|
+
branch: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
97
|
+
});
|
|
98
|
+
exports.projectFileContentQuerySchema = zod_1.z.object({
|
|
99
|
+
path: zod_1.z.string().trim().min(1).max(2000),
|
|
100
|
+
startLine: zod_1.z.coerce.number().int().min(1).optional(),
|
|
101
|
+
endLine: zod_1.z.coerce.number().int().min(1).optional(),
|
|
102
|
+
});
|
|
103
|
+
exports.projectFileQuerySchema = zod_1.z.object({
|
|
104
|
+
path: zod_1.z.string().trim().min(1).max(2000),
|
|
105
|
+
});
|
|
106
|
+
exports.projectMapSearchQuerySchema = zod_1.z.object({
|
|
107
|
+
q: zod_1.z.string().trim().min(0).max(200),
|
|
108
|
+
symbolKinds: zod_1.z.preprocess((val) => (typeof val === "string" ? val.split(",").filter(Boolean) : val), zod_1.z.array(zod_1.z.enum(exports.repoSymbolKindValues)).optional()),
|
|
109
|
+
});
|
|
110
|
+
exports.projectSemanticSearchQuerySchema = zod_1.z.object({
|
|
111
|
+
q: zod_1.z.string().trim().min(1).max(500),
|
|
112
|
+
limit: zod_1.z.coerce.number().int().min(1).max(50).optional().default(10),
|
|
113
|
+
chunkTypes: zod_1.z.preprocess((val) => (typeof val === "string" ? val.split(",").filter(Boolean) : val), zod_1.z.array(zod_1.z.enum(["file", "symbol", "doc", "test", "route", "config"])).optional()),
|
|
114
|
+
language: zod_1.z.string().trim().min(1).max(50).optional(),
|
|
115
|
+
});
|
|
116
|
+
exports.projectMapInsightsQuerySchema = zod_1.z.object({
|
|
117
|
+
file: zod_1.z.string().trim().min(1).max(2000).optional(),
|
|
118
|
+
symbol: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
119
|
+
});
|
|
120
|
+
exports.projectImportCompareQuerySchema = zod_1.z.object({
|
|
121
|
+
base: zod_1.z.uuid(),
|
|
122
|
+
head: zod_1.z.uuid(),
|
|
123
|
+
});
|
|
124
|
+
exports.listProjectImportsQuerySchema = zod_1.z.object({
|
|
125
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
|
|
126
|
+
cursor: zod_1.z.string().datetime().optional(),
|
|
127
|
+
});
|
|
128
|
+
exports.projectEditLocationsQuerySchema = zod_1.z.object({
|
|
129
|
+
q: zod_1.z.string().trim().min(1).max(500),
|
|
130
|
+
limit: zod_1.z.coerce.number().int().min(1).max(25).default(10),
|
|
131
|
+
});
|
|
132
|
+
exports.projectSymbolUsagesQuerySchema = zod_1.z.object({
|
|
133
|
+
symbolName: zod_1.z.string().trim().min(1).max(255),
|
|
134
|
+
path: zod_1.z.string().trim().min(1).max(2000).optional(),
|
|
135
|
+
});
|
|
136
|
+
exports.projectSymbolGraphQuerySchema = zod_1.z.object({
|
|
137
|
+
file: zod_1.z.string().trim().min(1).max(2000),
|
|
138
|
+
symbol: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
139
|
+
});
|
|
140
|
+
exports.createProjectFromUploadQuerySchema = zod_1.z.object({
|
|
141
|
+
name: zod_1.z.string().trim().min(1).max(120).optional(),
|
|
142
|
+
description: zod_1.z.string().trim().min(1).max(500).optional(),
|
|
143
|
+
branch: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
144
|
+
workspaceId: zod_1.z.uuid().optional(),
|
|
145
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../src/projects.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
package/dist/projects.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./project-entities"), exports);
|
|
18
|
+
__exportStar(require("./project-file"), exports);
|
|
19
|
+
__exportStar(require("./project-map"), exports);
|
|
20
|
+
__exportStar(require("./project-mcp"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const createApiKeyBodySchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
expiryPreset: z.ZodDefault<z.ZodEnum<{
|
|
5
|
+
never: "never";
|
|
6
|
+
"90_days": "90_days";
|
|
7
|
+
}>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const revokeApiKeyParamsSchema: z.ZodObject<{
|
|
10
|
+
apiKeyId: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type CreateApiKeyBody = z.infer<typeof createApiKeyBodySchema>;
|
|
13
|
+
export type RevokeApiKeyParams = z.infer<typeof revokeApiKeyParamsSchema>;
|
|
14
|
+
//# sourceMappingURL=settings-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-schemas.d.ts","sourceRoot":"","sources":["../src/settings-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;iBAGjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.revokeApiKeyParamsSchema = exports.createApiKeyBodySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.createApiKeyBodySchema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string().trim().min(1).max(120),
|
|
7
|
+
expiryPreset: zod_1.z.enum(["never", "90_days"]).default("90_days"),
|
|
8
|
+
});
|
|
9
|
+
exports.revokeApiKeyParamsSchema = zod_1.z.object({
|
|
10
|
+
apiKeyId: zod_1.z.string().trim().min(1),
|
|
11
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const workspaceTypeSchema: z.ZodEnum<{
|
|
3
|
+
personal: "personal";
|
|
4
|
+
team: "team";
|
|
5
|
+
}>;
|
|
6
|
+
export declare const workspacePlanSchema: z.ZodEnum<{
|
|
7
|
+
team: "team";
|
|
8
|
+
basic: "basic";
|
|
9
|
+
beta: "beta";
|
|
10
|
+
developer: "developer";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const workspaceRoleSchema: z.ZodEnum<{
|
|
13
|
+
owner: "owner";
|
|
14
|
+
admin: "admin";
|
|
15
|
+
member: "member";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const workspaceParamsSchema: z.ZodObject<{
|
|
18
|
+
workspaceId: z.ZodUUID;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const createWorkspaceInputSchema: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
23
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
24
|
+
personal: "personal";
|
|
25
|
+
team: "team";
|
|
26
|
+
}>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const updateWorkspaceInputSchema: z.ZodObject<{
|
|
29
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type CreateWorkspaceInput = z.infer<typeof createWorkspaceInputSchema>;
|
|
32
|
+
export type UpdateWorkspaceInput = z.infer<typeof updateWorkspaceInputSchema>;
|
|
33
|
+
export type WorkspaceParams = z.infer<typeof workspaceParamsSchema>;
|
|
34
|
+
//# sourceMappingURL=workspace-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-schemas.d.ts","sourceRoot":"","sources":["../src/workspace-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;EAA+B,CAAC;AAChE,eAAO,MAAM,mBAAmB;;;;;EAAiD,CAAC;AAClF,eAAO,MAAM,mBAAmB;;;;EAAuC,CAAC;AAExE,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAMnC,CAAC;AAEL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateWorkspaceInputSchema = exports.createWorkspaceInputSchema = exports.workspaceParamsSchema = exports.workspaceRoleSchema = exports.workspacePlanSchema = exports.workspaceTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.workspaceTypeSchema = zod_1.z.enum(["personal", "team"]);
|
|
6
|
+
exports.workspacePlanSchema = zod_1.z.enum(["basic", "beta", "developer", "team"]);
|
|
7
|
+
exports.workspaceRoleSchema = zod_1.z.enum(["owner", "admin", "member"]);
|
|
8
|
+
exports.workspaceParamsSchema = zod_1.z.object({
|
|
9
|
+
workspaceId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.createWorkspaceInputSchema = zod_1.z.object({
|
|
12
|
+
name: zod_1.z.string().trim().min(1).max(120),
|
|
13
|
+
slug: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.trim()
|
|
16
|
+
.min(2)
|
|
17
|
+
.max(140)
|
|
18
|
+
.regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/)
|
|
19
|
+
.optional(),
|
|
20
|
+
type: exports.workspaceTypeSchema.default("team"),
|
|
21
|
+
});
|
|
22
|
+
exports.updateWorkspaceInputSchema = zod_1.z
|
|
23
|
+
.object({
|
|
24
|
+
name: zod_1.z.string().trim().min(1).max(120).optional(),
|
|
25
|
+
})
|
|
26
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
27
|
+
message: "At least one field must be provided",
|
|
28
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export type WorkspaceType = "personal" | "team";
|
|
2
|
+
export type WorkspacePlan = "basic" | "beta" | "developer" | "team";
|
|
3
|
+
export type WorkspaceRole = "owner" | "admin" | "member";
|
|
4
|
+
export type BillingProvider = "paypal" | "stripe" | "manual";
|
|
5
|
+
export type SubscriptionStatus = "active" | "cancelling" | "cancelled" | "past_due" | "paused" | "trialing";
|
|
6
|
+
export type UsageEventType = "project_created" | "import_triggered" | "parse_completed" | "mcp_session_created";
|
|
7
|
+
export interface Workspace {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
type: WorkspaceType;
|
|
12
|
+
ownerUserId: string;
|
|
13
|
+
plan: WorkspacePlan;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
}
|
|
17
|
+
export interface WorkspaceMember {
|
|
18
|
+
workspaceId: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
role: WorkspaceRole;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
user?: {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string | null;
|
|
26
|
+
email: string;
|
|
27
|
+
image: string | null;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface WorkspaceEntitlements {
|
|
31
|
+
plan: WorkspacePlan;
|
|
32
|
+
maxProjects: number | null;
|
|
33
|
+
maxImportsPerMonth: number | null;
|
|
34
|
+
maxIndexedFilesPerImport: number | null;
|
|
35
|
+
privateRepoImports: boolean;
|
|
36
|
+
mcpAccess: boolean;
|
|
37
|
+
teamMembers: boolean;
|
|
38
|
+
cloudImportAccess: boolean;
|
|
39
|
+
graphAccess: boolean;
|
|
40
|
+
insightsAccess: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface WorkspaceUsageSummary {
|
|
43
|
+
projectCount: number;
|
|
44
|
+
importsThisMonth: number;
|
|
45
|
+
indexedFilesThisMonth: number;
|
|
46
|
+
indexedSymbolsThisMonth: number;
|
|
47
|
+
indexedEdgesThisMonth: number;
|
|
48
|
+
mcpSessionsCreatedThisMonth: number;
|
|
49
|
+
}
|
|
50
|
+
export interface WorkspaceSubscription {
|
|
51
|
+
id: string;
|
|
52
|
+
workspaceId: string;
|
|
53
|
+
plan: WorkspacePlan;
|
|
54
|
+
provider: BillingProvider;
|
|
55
|
+
providerSubscriptionId: string | null;
|
|
56
|
+
providerPlanId: string | null;
|
|
57
|
+
status: SubscriptionStatus;
|
|
58
|
+
currentPeriodStart: string | null;
|
|
59
|
+
currentPeriodEnd: string | null;
|
|
60
|
+
cancelledAt: string | null;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
}
|
|
64
|
+
export interface WorkspaceDetail {
|
|
65
|
+
workspace: Workspace;
|
|
66
|
+
membership: WorkspaceMember;
|
|
67
|
+
entitlements: WorkspaceEntitlements;
|
|
68
|
+
usage: WorkspaceUsageSummary;
|
|
69
|
+
activeSubscription: WorkspaceSubscription | null;
|
|
70
|
+
latestSubscription: WorkspaceSubscription | null;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codemap-ai/shared",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"zod": "^4.3.6"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/trieuluan/codemap.git",
|
|
15
|
+
"directory": "packages/shared"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/trieuluan/codemap#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/trieuluan/codemap/issues"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -b"
|
|
23
|
+
}
|
|
24
|
+
}
|