v0-api 0.0.2 → 0.0.3
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/client.d.mts +28 -27
- package/dist/client.d.ts +28 -27
- package/dist/generated/components.d.mts +80 -68
- package/dist/generated/components.d.ts +80 -68
- package/dist/generated/components.js +157 -99
- package/dist/generated/components.mjs +156 -99
- package/dist/generated/mcp.d.mts +261 -0
- package/dist/generated/mcp.d.ts +261 -0
- package/dist/generated/mcp.js +554 -0
- package/dist/generated/mcp.mjs +524 -0
- package/dist/generated/schemas.d.mts +520 -151
- package/dist/generated/schemas.d.ts +520 -151
- package/dist/generated/schemas.js +106 -69
- package/dist/generated/schemas.mjs +100 -63
- package/dist/generated/types.d.mts +41 -0
- package/dist/generated/types.d.ts +41 -0
- package/dist/generated/types.js +12 -12
- package/dist/generated/types.mjs +12 -12
- package/dist/index.d.mts +50 -43
- package/dist/index.d.ts +50 -43
- package/dist/mcp.d.mts +1 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +5 -0
- package/dist/mcp.mjs +1 -0
- package/dist/utils/fetcher.d.mts +1 -1
- package/dist/utils/fetcher.d.ts +1 -1
- package/dist/utils/mcp.d.mts +1 -0
- package/dist/utils/mcp.d.ts +1 -0
- package/dist/utils/mcp.js +2 -0
- package/dist/utils/mcp.mjs +1 -0
- package/package.json +14 -4
package/dist/generated/types.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const chatDetailPrivacyEnum = {
|
|
|
7
7
|
public: 'public',
|
|
8
8
|
team: 'team',
|
|
9
9
|
'team-edit': 'team-edit',
|
|
10
|
-
unlisted: 'unlisted'
|
|
10
|
+
unlisted: 'unlisted'
|
|
11
11
|
};
|
|
12
12
|
export const messagesTypeEnum = {
|
|
13
13
|
'added-environment-variables': 'added-environment-variables',
|
|
@@ -24,38 +24,38 @@ export const messagesTypeEnum = {
|
|
|
24
24
|
'renamed-file': 'renamed-file',
|
|
25
25
|
'replace-src': 'replace-src',
|
|
26
26
|
'reverted-block': 'reverted-block',
|
|
27
|
-
'sync-git': 'sync-git'
|
|
27
|
+
'sync-git': 'sync-git'
|
|
28
28
|
};
|
|
29
29
|
export const messagesRoleEnum = {
|
|
30
30
|
assistant: 'assistant',
|
|
31
|
-
user: 'user'
|
|
31
|
+
user: 'user'
|
|
32
32
|
};
|
|
33
33
|
export const latestVersionStatusEnum = {
|
|
34
34
|
completed: 'completed',
|
|
35
35
|
failed: 'failed',
|
|
36
|
-
pending: 'pending'
|
|
36
|
+
pending: 'pending'
|
|
37
37
|
};
|
|
38
38
|
export const modelConfigurationModelIdEnum = {
|
|
39
39
|
'v0-1.5-lg': 'v0-1.5-lg',
|
|
40
40
|
'v0-1.5-md': 'v0-1.5-md',
|
|
41
|
-
'v0-1.5-sm': 'v0-1.5-sm'
|
|
41
|
+
'v0-1.5-sm': 'v0-1.5-sm'
|
|
42
42
|
};
|
|
43
43
|
export const chatSummaryPrivacyEnum = {
|
|
44
44
|
private: 'private',
|
|
45
45
|
public: 'public',
|
|
46
46
|
team: 'team',
|
|
47
47
|
'team-edit': 'team-edit',
|
|
48
|
-
unlisted: 'unlisted'
|
|
48
|
+
unlisted: 'unlisted'
|
|
49
49
|
};
|
|
50
50
|
export const latestVersionStatusEnum2 = {
|
|
51
51
|
completed: 'completed',
|
|
52
52
|
failed: 'failed',
|
|
53
|
-
pending: 'pending'
|
|
53
|
+
pending: 'pending'
|
|
54
54
|
};
|
|
55
55
|
export const modelConfigurationModelIdEnum2 = {
|
|
56
56
|
'v0-1.5-lg': 'v0-1.5-lg',
|
|
57
57
|
'v0-1.5-md': 'v0-1.5-md',
|
|
58
|
-
'v0-1.5-sm': 'v0-1.5-sm'
|
|
58
|
+
'v0-1.5-sm': 'v0-1.5-sm'
|
|
59
59
|
};
|
|
60
60
|
export const messageSummaryTypeEnum = {
|
|
61
61
|
'added-environment-variables': 'added-environment-variables',
|
|
@@ -72,19 +72,19 @@ export const messageSummaryTypeEnum = {
|
|
|
72
72
|
'renamed-file': 'renamed-file',
|
|
73
73
|
'replace-src': 'replace-src',
|
|
74
74
|
'reverted-block': 'reverted-block',
|
|
75
|
-
'sync-git': 'sync-git'
|
|
75
|
+
'sync-git': 'sync-git'
|
|
76
76
|
};
|
|
77
77
|
export const messageSummaryRoleEnum = {
|
|
78
78
|
assistant: 'assistant',
|
|
79
|
-
user: 'user'
|
|
79
|
+
user: 'user'
|
|
80
80
|
};
|
|
81
81
|
export const versionDetailStatusEnum = {
|
|
82
82
|
completed: 'completed',
|
|
83
83
|
failed: 'failed',
|
|
84
|
-
pending: 'pending'
|
|
84
|
+
pending: 'pending'
|
|
85
85
|
};
|
|
86
86
|
export const versionSummaryStatusEnum = {
|
|
87
87
|
completed: 'completed',
|
|
88
88
|
failed: 'failed',
|
|
89
|
-
pending: 'pending'
|
|
89
|
+
pending: 'pending'
|
|
90
90
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -7,74 +7,79 @@ declare const Fetchers: {
|
|
|
7
7
|
client?: typeof import("./utils/fetcher").client;
|
|
8
8
|
};
|
|
9
9
|
}): Promise<unknown>;
|
|
10
|
-
chatsFind({ queryParams, config
|
|
11
|
-
queryParams?: Types.ChatsFindQueryParams;
|
|
10
|
+
chatsFind({ queryParams, config }: {
|
|
11
|
+
queryParams?: Types.ChatsFindQueryParams | undefined;
|
|
12
12
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
13
13
|
client?: typeof import("./utils/fetcher").client;
|
|
14
14
|
};
|
|
15
15
|
}): Promise<unknown>;
|
|
16
|
-
|
|
16
|
+
chatsInitCreate({ config }: {
|
|
17
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
18
|
+
client?: typeof import("./utils/fetcher").client;
|
|
19
|
+
};
|
|
20
|
+
}): Promise<unknown>;
|
|
21
|
+
chatsDelete({ pathParams: { chatId }, config }: {
|
|
17
22
|
pathParams: Types.ChatsDeletePathParams;
|
|
18
23
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
19
24
|
client?: typeof import("./utils/fetcher").client;
|
|
20
25
|
};
|
|
21
26
|
}): Promise<unknown>;
|
|
22
|
-
chatsGetById({ pathParams: { chatId }, config
|
|
27
|
+
chatsGetById({ pathParams: { chatId }, config }: {
|
|
23
28
|
pathParams: Types.ChatsGetByIdPathParams;
|
|
24
29
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
25
30
|
client?: typeof import("./utils/fetcher").client;
|
|
26
31
|
};
|
|
27
32
|
}): Promise<unknown>;
|
|
28
|
-
chatsUpdate({ pathParams: { chatId }, config
|
|
33
|
+
chatsUpdate({ pathParams: { chatId }, config }: {
|
|
29
34
|
pathParams: Types.ChatsUpdatePathParams;
|
|
30
35
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
31
36
|
client?: typeof import("./utils/fetcher").client;
|
|
32
37
|
};
|
|
33
38
|
}): Promise<unknown>;
|
|
34
|
-
chatsFavorite({ pathParams: { chatId }, config
|
|
39
|
+
chatsFavorite({ pathParams: { chatId }, config }: {
|
|
35
40
|
pathParams: Types.ChatsFavoritePathParams;
|
|
36
41
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
37
42
|
client?: typeof import("./utils/fetcher").client;
|
|
38
43
|
};
|
|
39
44
|
}): Promise<unknown>;
|
|
40
|
-
chatsFork({ pathParams: { chatId }, config
|
|
45
|
+
chatsFork({ pathParams: { chatId }, config }: {
|
|
41
46
|
pathParams: Types.ChatsForkPathParams;
|
|
42
47
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
43
48
|
client?: typeof import("./utils/fetcher").client;
|
|
44
49
|
};
|
|
45
50
|
}): Promise<unknown>;
|
|
46
|
-
projectsGetByChatId({ pathParams: { chatId }, config
|
|
51
|
+
projectsGetByChatId({ pathParams: { chatId }, config }: {
|
|
47
52
|
pathParams: Types.ProjectsGetByChatIdPathParams;
|
|
48
53
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
49
54
|
client?: typeof import("./utils/fetcher").client;
|
|
50
55
|
};
|
|
51
56
|
}): Promise<unknown>;
|
|
52
|
-
chatsSendMessage({ pathParams: { chatId }, config
|
|
57
|
+
chatsSendMessage({ pathParams: { chatId }, config }: {
|
|
53
58
|
pathParams: Types.ChatsSendMessagePathParams;
|
|
54
59
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
55
60
|
client?: typeof import("./utils/fetcher").client;
|
|
56
61
|
};
|
|
57
62
|
}): Promise<unknown>;
|
|
58
|
-
chatsGetMetadata({ pathParams: { chatId }, config
|
|
63
|
+
chatsGetMetadata({ pathParams: { chatId }, config }: {
|
|
59
64
|
pathParams: Types.ChatsGetMetadataPathParams;
|
|
60
65
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
61
66
|
client?: typeof import("./utils/fetcher").client;
|
|
62
67
|
};
|
|
63
68
|
}): Promise<unknown>;
|
|
64
|
-
chatsResume({ pathParams: { chatId, messageId }, config
|
|
69
|
+
chatsResume({ pathParams: { chatId, messageId }, config }: {
|
|
65
70
|
pathParams: Types.ChatsResumePathParams;
|
|
66
71
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
67
72
|
client?: typeof import("./utils/fetcher").client;
|
|
68
73
|
};
|
|
69
74
|
}): Promise<unknown>;
|
|
70
|
-
deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config
|
|
75
|
+
deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config }: {
|
|
71
76
|
pathParams: Types.DeploymentsFindLogsPathParams;
|
|
72
|
-
queryParams?: Types.DeploymentsFindLogsQueryParams;
|
|
77
|
+
queryParams?: Types.DeploymentsFindLogsQueryParams | undefined;
|
|
73
78
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
74
79
|
client?: typeof import("./utils/fetcher").client;
|
|
75
80
|
};
|
|
76
81
|
}): Promise<unknown>;
|
|
77
|
-
deploymentsFindErrors({ pathParams: { deploymentId }, config
|
|
82
|
+
deploymentsFindErrors({ pathParams: { deploymentId }, config }: {
|
|
78
83
|
pathParams: Types.DeploymentsFindErrorsPathParams;
|
|
79
84
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
80
85
|
client?: typeof import("./utils/fetcher").client;
|
|
@@ -100,14 +105,14 @@ declare const Fetchers: {
|
|
|
100
105
|
client?: typeof import("./utils/fetcher").client;
|
|
101
106
|
};
|
|
102
107
|
}): Promise<unknown>;
|
|
103
|
-
projectsAssign({ pathParams: { projectId }, config
|
|
108
|
+
projectsAssign({ pathParams: { projectId }, config }: {
|
|
104
109
|
pathParams: Types.ProjectsAssignPathParams;
|
|
105
110
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
106
111
|
client?: typeof import("./utils/fetcher").client;
|
|
107
112
|
};
|
|
108
113
|
}): Promise<unknown>;
|
|
109
|
-
rateLimitsFind({ queryParams, config
|
|
110
|
-
queryParams?: Types.RateLimitsFindQueryParams;
|
|
114
|
+
rateLimitsFind({ queryParams, config }: {
|
|
115
|
+
queryParams?: Types.RateLimitsFindQueryParams | undefined;
|
|
111
116
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
112
117
|
client?: typeof import("./utils/fetcher").client;
|
|
113
118
|
};
|
|
@@ -117,8 +122,8 @@ declare const Fetchers: {
|
|
|
117
122
|
client?: typeof import("./utils/fetcher").client;
|
|
118
123
|
};
|
|
119
124
|
}): Promise<unknown>;
|
|
120
|
-
userGetBilling({ queryParams, config
|
|
121
|
-
queryParams?: Types.UserGetBillingQueryParams;
|
|
125
|
+
userGetBilling({ queryParams, config }: {
|
|
126
|
+
queryParams?: Types.UserGetBillingQueryParams | undefined;
|
|
122
127
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
123
128
|
client?: typeof import("./utils/fetcher").client;
|
|
124
129
|
};
|
|
@@ -136,34 +141,36 @@ declare const Fetchers: {
|
|
|
136
141
|
};
|
|
137
142
|
declare const Helpers: {
|
|
138
143
|
operationsByPath: {
|
|
139
|
-
'POST chats': typeof Components.chatsCreate;
|
|
140
|
-
'GET chats': typeof Components.chatsFind;
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'GET
|
|
152
|
-
'GET
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'POST
|
|
157
|
-
'
|
|
158
|
-
'GET
|
|
159
|
-
'GET
|
|
160
|
-
'GET
|
|
161
|
-
'GET
|
|
144
|
+
'POST /chats': typeof Components.chatsCreate;
|
|
145
|
+
'GET /chats': typeof Components.chatsFind;
|
|
146
|
+
'POST /chats/init': typeof Components.chatsInitCreate;
|
|
147
|
+
'DELETE /chats/{chatId}': typeof Components.chatsDelete;
|
|
148
|
+
'GET /chats/{chatId}': typeof Components.chatsGetById;
|
|
149
|
+
'PATCH /chats/{chatId}': typeof Components.chatsUpdate;
|
|
150
|
+
'PUT /chats/{chatId}/favorite': typeof Components.chatsFavorite;
|
|
151
|
+
'POST /chats/{chatId}/fork': typeof Components.chatsFork;
|
|
152
|
+
'GET /chats/{chatId}/project': typeof Components.projectsGetByChatId;
|
|
153
|
+
'POST /chats/{chatId}/messages': typeof Components.chatsSendMessage;
|
|
154
|
+
'GET /chats/{chatId}/metadata': typeof Components.chatsGetMetadata;
|
|
155
|
+
'POST /chats/{chatId}/messages/{messageId}/resume': typeof Components.chatsResume;
|
|
156
|
+
'GET /deployments/{deploymentId}/logs': typeof Components.deploymentsFindLogs;
|
|
157
|
+
'GET /deployments/{deploymentId}/errors': typeof Components.deploymentsFindErrors;
|
|
158
|
+
'GET /integrations/vercel/projects': typeof Components.integrationsVercelProjectsFind;
|
|
159
|
+
'POST /integrations/vercel/projects': typeof Components.integrationsVercelProjectsCreate;
|
|
160
|
+
'GET /projects': typeof Components.projectsFind;
|
|
161
|
+
'POST /projects': typeof Components.projectsCreate;
|
|
162
|
+
'POST /projects/{projectId}/assign': typeof Components.projectsAssign;
|
|
163
|
+
'GET /rate-limits': typeof Components.rateLimitsFind;
|
|
164
|
+
'GET /user': typeof Components.userGet;
|
|
165
|
+
'GET /user/billing': typeof Components.userGetBilling;
|
|
166
|
+
'GET /user/plan': typeof Components.userGetPlan;
|
|
167
|
+
'GET /user/scopes': typeof Components.userGetScopes;
|
|
162
168
|
};
|
|
163
169
|
operationsByTag: {
|
|
164
170
|
chats: {
|
|
165
171
|
chatsCreate: typeof Components.chatsCreate;
|
|
166
172
|
chatsFind: typeof Components.chatsFind;
|
|
173
|
+
chatsInitCreate: typeof Components.chatsInitCreate;
|
|
167
174
|
chatsDelete: typeof Components.chatsDelete;
|
|
168
175
|
chatsGetById: typeof Components.chatsGetById;
|
|
169
176
|
chatsUpdate: typeof Components.chatsUpdate;
|
|
@@ -199,7 +206,7 @@ declare const Helpers: {
|
|
|
199
206
|
};
|
|
200
207
|
tagDictionary: {
|
|
201
208
|
readonly chats: {
|
|
202
|
-
readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
209
|
+
readonly POST: readonly ["chatsCreate", "chatsInitCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
203
210
|
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
204
211
|
readonly DELETE: readonly ["chatsDelete"];
|
|
205
212
|
readonly PATCH: readonly ["chatsUpdate"];
|
package/dist/index.d.ts
CHANGED
|
@@ -7,74 +7,79 @@ declare const Fetchers: {
|
|
|
7
7
|
client?: typeof import("./utils/fetcher").client;
|
|
8
8
|
};
|
|
9
9
|
}): Promise<unknown>;
|
|
10
|
-
chatsFind({ queryParams, config
|
|
11
|
-
queryParams?: Types.ChatsFindQueryParams;
|
|
10
|
+
chatsFind({ queryParams, config }: {
|
|
11
|
+
queryParams?: Types.ChatsFindQueryParams | undefined;
|
|
12
12
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
13
13
|
client?: typeof import("./utils/fetcher").client;
|
|
14
14
|
};
|
|
15
15
|
}): Promise<unknown>;
|
|
16
|
-
|
|
16
|
+
chatsInitCreate({ config }: {
|
|
17
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
18
|
+
client?: typeof import("./utils/fetcher").client;
|
|
19
|
+
};
|
|
20
|
+
}): Promise<unknown>;
|
|
21
|
+
chatsDelete({ pathParams: { chatId }, config }: {
|
|
17
22
|
pathParams: Types.ChatsDeletePathParams;
|
|
18
23
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
19
24
|
client?: typeof import("./utils/fetcher").client;
|
|
20
25
|
};
|
|
21
26
|
}): Promise<unknown>;
|
|
22
|
-
chatsGetById({ pathParams: { chatId }, config
|
|
27
|
+
chatsGetById({ pathParams: { chatId }, config }: {
|
|
23
28
|
pathParams: Types.ChatsGetByIdPathParams;
|
|
24
29
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
25
30
|
client?: typeof import("./utils/fetcher").client;
|
|
26
31
|
};
|
|
27
32
|
}): Promise<unknown>;
|
|
28
|
-
chatsUpdate({ pathParams: { chatId }, config
|
|
33
|
+
chatsUpdate({ pathParams: { chatId }, config }: {
|
|
29
34
|
pathParams: Types.ChatsUpdatePathParams;
|
|
30
35
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
31
36
|
client?: typeof import("./utils/fetcher").client;
|
|
32
37
|
};
|
|
33
38
|
}): Promise<unknown>;
|
|
34
|
-
chatsFavorite({ pathParams: { chatId }, config
|
|
39
|
+
chatsFavorite({ pathParams: { chatId }, config }: {
|
|
35
40
|
pathParams: Types.ChatsFavoritePathParams;
|
|
36
41
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
37
42
|
client?: typeof import("./utils/fetcher").client;
|
|
38
43
|
};
|
|
39
44
|
}): Promise<unknown>;
|
|
40
|
-
chatsFork({ pathParams: { chatId }, config
|
|
45
|
+
chatsFork({ pathParams: { chatId }, config }: {
|
|
41
46
|
pathParams: Types.ChatsForkPathParams;
|
|
42
47
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
43
48
|
client?: typeof import("./utils/fetcher").client;
|
|
44
49
|
};
|
|
45
50
|
}): Promise<unknown>;
|
|
46
|
-
projectsGetByChatId({ pathParams: { chatId }, config
|
|
51
|
+
projectsGetByChatId({ pathParams: { chatId }, config }: {
|
|
47
52
|
pathParams: Types.ProjectsGetByChatIdPathParams;
|
|
48
53
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
49
54
|
client?: typeof import("./utils/fetcher").client;
|
|
50
55
|
};
|
|
51
56
|
}): Promise<unknown>;
|
|
52
|
-
chatsSendMessage({ pathParams: { chatId }, config
|
|
57
|
+
chatsSendMessage({ pathParams: { chatId }, config }: {
|
|
53
58
|
pathParams: Types.ChatsSendMessagePathParams;
|
|
54
59
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
55
60
|
client?: typeof import("./utils/fetcher").client;
|
|
56
61
|
};
|
|
57
62
|
}): Promise<unknown>;
|
|
58
|
-
chatsGetMetadata({ pathParams: { chatId }, config
|
|
63
|
+
chatsGetMetadata({ pathParams: { chatId }, config }: {
|
|
59
64
|
pathParams: Types.ChatsGetMetadataPathParams;
|
|
60
65
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
61
66
|
client?: typeof import("./utils/fetcher").client;
|
|
62
67
|
};
|
|
63
68
|
}): Promise<unknown>;
|
|
64
|
-
chatsResume({ pathParams: { chatId, messageId }, config
|
|
69
|
+
chatsResume({ pathParams: { chatId, messageId }, config }: {
|
|
65
70
|
pathParams: Types.ChatsResumePathParams;
|
|
66
71
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
67
72
|
client?: typeof import("./utils/fetcher").client;
|
|
68
73
|
};
|
|
69
74
|
}): Promise<unknown>;
|
|
70
|
-
deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config
|
|
75
|
+
deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config }: {
|
|
71
76
|
pathParams: Types.DeploymentsFindLogsPathParams;
|
|
72
|
-
queryParams?: Types.DeploymentsFindLogsQueryParams;
|
|
77
|
+
queryParams?: Types.DeploymentsFindLogsQueryParams | undefined;
|
|
73
78
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
74
79
|
client?: typeof import("./utils/fetcher").client;
|
|
75
80
|
};
|
|
76
81
|
}): Promise<unknown>;
|
|
77
|
-
deploymentsFindErrors({ pathParams: { deploymentId }, config
|
|
82
|
+
deploymentsFindErrors({ pathParams: { deploymentId }, config }: {
|
|
78
83
|
pathParams: Types.DeploymentsFindErrorsPathParams;
|
|
79
84
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
80
85
|
client?: typeof import("./utils/fetcher").client;
|
|
@@ -100,14 +105,14 @@ declare const Fetchers: {
|
|
|
100
105
|
client?: typeof import("./utils/fetcher").client;
|
|
101
106
|
};
|
|
102
107
|
}): Promise<unknown>;
|
|
103
|
-
projectsAssign({ pathParams: { projectId }, config
|
|
108
|
+
projectsAssign({ pathParams: { projectId }, config }: {
|
|
104
109
|
pathParams: Types.ProjectsAssignPathParams;
|
|
105
110
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
106
111
|
client?: typeof import("./utils/fetcher").client;
|
|
107
112
|
};
|
|
108
113
|
}): Promise<unknown>;
|
|
109
|
-
rateLimitsFind({ queryParams, config
|
|
110
|
-
queryParams?: Types.RateLimitsFindQueryParams;
|
|
114
|
+
rateLimitsFind({ queryParams, config }: {
|
|
115
|
+
queryParams?: Types.RateLimitsFindQueryParams | undefined;
|
|
111
116
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
112
117
|
client?: typeof import("./utils/fetcher").client;
|
|
113
118
|
};
|
|
@@ -117,8 +122,8 @@ declare const Fetchers: {
|
|
|
117
122
|
client?: typeof import("./utils/fetcher").client;
|
|
118
123
|
};
|
|
119
124
|
}): Promise<unknown>;
|
|
120
|
-
userGetBilling({ queryParams, config
|
|
121
|
-
queryParams?: Types.UserGetBillingQueryParams;
|
|
125
|
+
userGetBilling({ queryParams, config }: {
|
|
126
|
+
queryParams?: Types.UserGetBillingQueryParams | undefined;
|
|
122
127
|
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
123
128
|
client?: typeof import("./utils/fetcher").client;
|
|
124
129
|
};
|
|
@@ -136,34 +141,36 @@ declare const Fetchers: {
|
|
|
136
141
|
};
|
|
137
142
|
declare const Helpers: {
|
|
138
143
|
operationsByPath: {
|
|
139
|
-
'POST chats': typeof Components.chatsCreate;
|
|
140
|
-
'GET chats': typeof Components.chatsFind;
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'GET
|
|
152
|
-
'GET
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'POST
|
|
157
|
-
'
|
|
158
|
-
'GET
|
|
159
|
-
'GET
|
|
160
|
-
'GET
|
|
161
|
-
'GET
|
|
144
|
+
'POST /chats': typeof Components.chatsCreate;
|
|
145
|
+
'GET /chats': typeof Components.chatsFind;
|
|
146
|
+
'POST /chats/init': typeof Components.chatsInitCreate;
|
|
147
|
+
'DELETE /chats/{chatId}': typeof Components.chatsDelete;
|
|
148
|
+
'GET /chats/{chatId}': typeof Components.chatsGetById;
|
|
149
|
+
'PATCH /chats/{chatId}': typeof Components.chatsUpdate;
|
|
150
|
+
'PUT /chats/{chatId}/favorite': typeof Components.chatsFavorite;
|
|
151
|
+
'POST /chats/{chatId}/fork': typeof Components.chatsFork;
|
|
152
|
+
'GET /chats/{chatId}/project': typeof Components.projectsGetByChatId;
|
|
153
|
+
'POST /chats/{chatId}/messages': typeof Components.chatsSendMessage;
|
|
154
|
+
'GET /chats/{chatId}/metadata': typeof Components.chatsGetMetadata;
|
|
155
|
+
'POST /chats/{chatId}/messages/{messageId}/resume': typeof Components.chatsResume;
|
|
156
|
+
'GET /deployments/{deploymentId}/logs': typeof Components.deploymentsFindLogs;
|
|
157
|
+
'GET /deployments/{deploymentId}/errors': typeof Components.deploymentsFindErrors;
|
|
158
|
+
'GET /integrations/vercel/projects': typeof Components.integrationsVercelProjectsFind;
|
|
159
|
+
'POST /integrations/vercel/projects': typeof Components.integrationsVercelProjectsCreate;
|
|
160
|
+
'GET /projects': typeof Components.projectsFind;
|
|
161
|
+
'POST /projects': typeof Components.projectsCreate;
|
|
162
|
+
'POST /projects/{projectId}/assign': typeof Components.projectsAssign;
|
|
163
|
+
'GET /rate-limits': typeof Components.rateLimitsFind;
|
|
164
|
+
'GET /user': typeof Components.userGet;
|
|
165
|
+
'GET /user/billing': typeof Components.userGetBilling;
|
|
166
|
+
'GET /user/plan': typeof Components.userGetPlan;
|
|
167
|
+
'GET /user/scopes': typeof Components.userGetScopes;
|
|
162
168
|
};
|
|
163
169
|
operationsByTag: {
|
|
164
170
|
chats: {
|
|
165
171
|
chatsCreate: typeof Components.chatsCreate;
|
|
166
172
|
chatsFind: typeof Components.chatsFind;
|
|
173
|
+
chatsInitCreate: typeof Components.chatsInitCreate;
|
|
167
174
|
chatsDelete: typeof Components.chatsDelete;
|
|
168
175
|
chatsGetById: typeof Components.chatsGetById;
|
|
169
176
|
chatsUpdate: typeof Components.chatsUpdate;
|
|
@@ -199,7 +206,7 @@ declare const Helpers: {
|
|
|
199
206
|
};
|
|
200
207
|
tagDictionary: {
|
|
201
208
|
readonly chats: {
|
|
202
|
-
readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
209
|
+
readonly POST: readonly ["chatsCreate", "chatsInitCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
203
210
|
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
204
211
|
readonly DELETE: readonly ["chatsDelete"];
|
|
205
212
|
readonly PATCH: readonly ["chatsUpdate"];
|
package/dist/mcp.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initMcpTools } from "./generated/mcp.mjs";
|
package/dist/mcp.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initMcpTools } from "./generated/mcp.js";
|
package/dist/mcp.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initMcpTools = void 0;
|
|
4
|
+
var mcp_1 = require("./generated/mcp.js");
|
|
5
|
+
Object.defineProperty(exports, "initMcpTools", { enumerable: true, get: function () { return mcp_1.initMcpTools; } });
|
package/dist/mcp.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initMcpTools } from "./generated/mcp.mjs";
|
package/dist/utils/fetcher.d.mts
CHANGED
package/dist/utils/fetcher.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v0-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Vercel v0 auto-generated type-safe API client",
|
|
5
5
|
"author": "SferaDev",
|
|
6
6
|
"license": "ISC",
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
"url": "https://github.com/SferaDev/openapi-clients/issues"
|
|
9
9
|
},
|
|
10
10
|
"homepage": "https://github.com/SferaDev/openapi-clients#readme",
|
|
11
|
-
"zshy":
|
|
11
|
+
"zshy": {
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./src/index.ts",
|
|
14
|
+
"./mcp": "./src/mcp.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
12
17
|
"repository": {
|
|
13
18
|
"type": "git",
|
|
14
19
|
"url": "git+https://github.com/SferaDev/openapi-clients.git"
|
|
@@ -16,14 +21,14 @@
|
|
|
16
21
|
"devDependencies": {
|
|
17
22
|
"@kubb/cli": "^3.16.0",
|
|
18
23
|
"@kubb/core": "^3.16.0",
|
|
19
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
24
|
+
"@modelcontextprotocol/sdk": "^1.16.0",
|
|
20
25
|
"openapi-utils": "0.0.1"
|
|
21
26
|
},
|
|
22
27
|
"peerDependencies": {
|
|
23
28
|
"@modelcontextprotocol/sdk": "^1.15.1"
|
|
24
29
|
},
|
|
25
30
|
"dependencies": {
|
|
26
|
-
"zod": "
|
|
31
|
+
"zod": "=3.25.76"
|
|
27
32
|
},
|
|
28
33
|
"files": [
|
|
29
34
|
"dist"
|
|
@@ -36,6 +41,11 @@
|
|
|
36
41
|
"types": "./dist/index.d.ts",
|
|
37
42
|
"import": "./dist/index.mjs",
|
|
38
43
|
"require": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./mcp": {
|
|
46
|
+
"types": "./dist/mcp.d.ts",
|
|
47
|
+
"import": "./dist/mcp.mjs",
|
|
48
|
+
"require": "./dist/mcp.js"
|
|
39
49
|
}
|
|
40
50
|
},
|
|
41
51
|
"scripts": {
|