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.
@@ -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
- chatsDelete({ pathParams: { chatId }, config, }: {
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
- 'DELETE chatsChatId': typeof Components.chatsDelete;
142
- 'GET chatsChatId': typeof Components.chatsGetById;
143
- 'PATCH chatsChatId': typeof Components.chatsUpdate;
144
- 'PUT chatsChatIdFavorite': typeof Components.chatsFavorite;
145
- 'POST chatsChatIdFork': typeof Components.chatsFork;
146
- 'GET chatsChatIdProject': typeof Components.projectsGetByChatId;
147
- 'POST chatsChatIdMessages': typeof Components.chatsSendMessage;
148
- 'GET chatsChatIdMetadata': typeof Components.chatsGetMetadata;
149
- 'POST chatsChatIdMessagesMessageIdResume': typeof Components.chatsResume;
150
- 'GET deploymentsDeploymentIdLogs': typeof Components.deploymentsFindLogs;
151
- 'GET deploymentsDeploymentIdErrors': typeof Components.deploymentsFindErrors;
152
- 'GET integrationsVercelProjects': typeof Components.integrationsVercelProjectsFind;
153
- 'POST integrationsVercelProjects': typeof Components.integrationsVercelProjectsCreate;
154
- 'GET projects': typeof Components.projectsFind;
155
- 'POST projects': typeof Components.projectsCreate;
156
- 'POST projectsProjectIdAssign': typeof Components.projectsAssign;
157
- 'GET rateLimits': typeof Components.rateLimitsFind;
158
- 'GET user': typeof Components.userGet;
159
- 'GET userBilling': typeof Components.userGetBilling;
160
- 'GET userPlan': typeof Components.userGetPlan;
161
- 'GET userScopes': typeof Components.userGetScopes;
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
- chatsDelete({ pathParams: { chatId }, config, }: {
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
- 'DELETE chatsChatId': typeof Components.chatsDelete;
142
- 'GET chatsChatId': typeof Components.chatsGetById;
143
- 'PATCH chatsChatId': typeof Components.chatsUpdate;
144
- 'PUT chatsChatIdFavorite': typeof Components.chatsFavorite;
145
- 'POST chatsChatIdFork': typeof Components.chatsFork;
146
- 'GET chatsChatIdProject': typeof Components.projectsGetByChatId;
147
- 'POST chatsChatIdMessages': typeof Components.chatsSendMessage;
148
- 'GET chatsChatIdMetadata': typeof Components.chatsGetMetadata;
149
- 'POST chatsChatIdMessagesMessageIdResume': typeof Components.chatsResume;
150
- 'GET deploymentsDeploymentIdLogs': typeof Components.deploymentsFindLogs;
151
- 'GET deploymentsDeploymentIdErrors': typeof Components.deploymentsFindErrors;
152
- 'GET integrationsVercelProjects': typeof Components.integrationsVercelProjectsFind;
153
- 'POST integrationsVercelProjects': typeof Components.integrationsVercelProjectsCreate;
154
- 'GET projects': typeof Components.projectsFind;
155
- 'POST projects': typeof Components.projectsCreate;
156
- 'POST projectsProjectIdAssign': typeof Components.projectsAssign;
157
- 'GET rateLimits': typeof Components.rateLimitsFind;
158
- 'GET user': typeof Components.userGet;
159
- 'GET userBilling': typeof Components.userGetBilling;
160
- 'GET userPlan': typeof Components.userGetPlan;
161
- 'GET userScopes': typeof Components.userGetScopes;
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";
@@ -1,4 +1,4 @@
1
- import { FetchImpl } from "./fetch.mjs";
1
+ import type { FetchImpl } from "./fetch.mjs";
2
2
  export type FetcherConfig = {
3
3
  baseUrl?: string;
4
4
  token?: string | null;
@@ -1,4 +1,4 @@
1
- import { FetchImpl } from "./fetch.js";
1
+ import type { FetchImpl } from "./fetch.js";
2
2
  export type FetcherConfig = {
3
3
  baseUrl?: string;
4
4
  token?: string | null;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v0-api",
3
- "version": "0.0.2",
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": "./src/index.ts",
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.15.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": "^4.0.5"
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": {