v0-api 0.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/README.md +3 -0
- package/dist/client.d.mts +57 -0
- package/dist/client.d.ts +57 -0
- package/dist/client.js +53 -0
- package/dist/client.mjs +46 -0
- package/dist/generated/components.d.mts +341 -0
- package/dist/generated/components.d.ts +341 -0
- package/dist/generated/components.js +391 -0
- package/dist/generated/components.mjs +362 -0
- package/dist/generated/schemas.d.mts +1115 -0
- package/dist/generated/schemas.d.ts +1115 -0
- package/dist/generated/schemas.js +1096 -0
- package/dist/generated/schemas.mjs +1088 -0
- package/dist/generated/types.d.mts +1628 -0
- package/dist/generated/types.d.ts +1628 -0
- package/dist/generated/types.js +93 -0
- package/dist/generated/types.mjs +90 -0
- package/dist/index.d.mts +228 -0
- package/dist/index.d.ts +228 -0
- package/dist/index.js +49 -0
- package/dist/index.mjs +7 -0
- package/dist/utils/fetch.d.mts +18 -0
- package/dist/utils/fetch.d.ts +18 -0
- package/dist/utils/fetch.js +8 -0
- package/dist/utils/fetch.mjs +5 -0
- package/dist/utils/fetcher.d.mts +22 -0
- package/dist/utils/fetcher.d.ts +22 -0
- package/dist/utils/fetcher.js +68 -0
- package/dist/utils/fetcher.mjs +65 -0
- package/dist/utils/lang.d.mts +1 -0
- package/dist/utils/lang.d.ts +1 -0
- package/dist/utils/lang.js +9 -0
- package/dist/utils/lang.mjs +6 -0
- package/dist/utils/types.d.mts +3 -0
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.mjs +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.versionSummaryStatusEnum = exports.versionDetailStatusEnum = exports.messageSummaryRoleEnum = exports.messageSummaryTypeEnum = exports.modelConfigurationModelIdEnum2 = exports.latestVersionStatusEnum2 = exports.chatSummaryPrivacyEnum = exports.modelConfigurationModelIdEnum = exports.latestVersionStatusEnum = exports.messagesRoleEnum = exports.messagesTypeEnum = exports.chatDetailPrivacyEnum = void 0;
|
|
8
|
+
exports.chatDetailPrivacyEnum = {
|
|
9
|
+
private: 'private',
|
|
10
|
+
public: 'public',
|
|
11
|
+
team: 'team',
|
|
12
|
+
'team-edit': 'team-edit',
|
|
13
|
+
unlisted: 'unlisted',
|
|
14
|
+
};
|
|
15
|
+
exports.messagesTypeEnum = {
|
|
16
|
+
'added-environment-variables': 'added-environment-variables',
|
|
17
|
+
'added-integration': 'added-integration',
|
|
18
|
+
'deleted-file': 'deleted-file',
|
|
19
|
+
'edited-file': 'edited-file',
|
|
20
|
+
'fix-with-v0': 'fix-with-v0',
|
|
21
|
+
'forked-block': 'forked-block',
|
|
22
|
+
'forked-chat': 'forked-chat',
|
|
23
|
+
message: 'message',
|
|
24
|
+
'moved-file': 'moved-file',
|
|
25
|
+
'open-in-v0': 'open-in-v0',
|
|
26
|
+
refinement: 'refinement',
|
|
27
|
+
'renamed-file': 'renamed-file',
|
|
28
|
+
'replace-src': 'replace-src',
|
|
29
|
+
'reverted-block': 'reverted-block',
|
|
30
|
+
'sync-git': 'sync-git',
|
|
31
|
+
};
|
|
32
|
+
exports.messagesRoleEnum = {
|
|
33
|
+
assistant: 'assistant',
|
|
34
|
+
user: 'user',
|
|
35
|
+
};
|
|
36
|
+
exports.latestVersionStatusEnum = {
|
|
37
|
+
completed: 'completed',
|
|
38
|
+
failed: 'failed',
|
|
39
|
+
pending: 'pending',
|
|
40
|
+
};
|
|
41
|
+
exports.modelConfigurationModelIdEnum = {
|
|
42
|
+
'v0-1.5-lg': 'v0-1.5-lg',
|
|
43
|
+
'v0-1.5-md': 'v0-1.5-md',
|
|
44
|
+
'v0-1.5-sm': 'v0-1.5-sm',
|
|
45
|
+
};
|
|
46
|
+
exports.chatSummaryPrivacyEnum = {
|
|
47
|
+
private: 'private',
|
|
48
|
+
public: 'public',
|
|
49
|
+
team: 'team',
|
|
50
|
+
'team-edit': 'team-edit',
|
|
51
|
+
unlisted: 'unlisted',
|
|
52
|
+
};
|
|
53
|
+
exports.latestVersionStatusEnum2 = {
|
|
54
|
+
completed: 'completed',
|
|
55
|
+
failed: 'failed',
|
|
56
|
+
pending: 'pending',
|
|
57
|
+
};
|
|
58
|
+
exports.modelConfigurationModelIdEnum2 = {
|
|
59
|
+
'v0-1.5-lg': 'v0-1.5-lg',
|
|
60
|
+
'v0-1.5-md': 'v0-1.5-md',
|
|
61
|
+
'v0-1.5-sm': 'v0-1.5-sm',
|
|
62
|
+
};
|
|
63
|
+
exports.messageSummaryTypeEnum = {
|
|
64
|
+
'added-environment-variables': 'added-environment-variables',
|
|
65
|
+
'added-integration': 'added-integration',
|
|
66
|
+
'deleted-file': 'deleted-file',
|
|
67
|
+
'edited-file': 'edited-file',
|
|
68
|
+
'fix-with-v0': 'fix-with-v0',
|
|
69
|
+
'forked-block': 'forked-block',
|
|
70
|
+
'forked-chat': 'forked-chat',
|
|
71
|
+
message: 'message',
|
|
72
|
+
'moved-file': 'moved-file',
|
|
73
|
+
'open-in-v0': 'open-in-v0',
|
|
74
|
+
refinement: 'refinement',
|
|
75
|
+
'renamed-file': 'renamed-file',
|
|
76
|
+
'replace-src': 'replace-src',
|
|
77
|
+
'reverted-block': 'reverted-block',
|
|
78
|
+
'sync-git': 'sync-git',
|
|
79
|
+
};
|
|
80
|
+
exports.messageSummaryRoleEnum = {
|
|
81
|
+
assistant: 'assistant',
|
|
82
|
+
user: 'user',
|
|
83
|
+
};
|
|
84
|
+
exports.versionDetailStatusEnum = {
|
|
85
|
+
completed: 'completed',
|
|
86
|
+
failed: 'failed',
|
|
87
|
+
pending: 'pending',
|
|
88
|
+
};
|
|
89
|
+
exports.versionSummaryStatusEnum = {
|
|
90
|
+
completed: 'completed',
|
|
91
|
+
failed: 'failed',
|
|
92
|
+
pending: 'pending',
|
|
93
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
export const chatDetailPrivacyEnum = {
|
|
6
|
+
private: 'private',
|
|
7
|
+
public: 'public',
|
|
8
|
+
team: 'team',
|
|
9
|
+
'team-edit': 'team-edit',
|
|
10
|
+
unlisted: 'unlisted',
|
|
11
|
+
};
|
|
12
|
+
export const messagesTypeEnum = {
|
|
13
|
+
'added-environment-variables': 'added-environment-variables',
|
|
14
|
+
'added-integration': 'added-integration',
|
|
15
|
+
'deleted-file': 'deleted-file',
|
|
16
|
+
'edited-file': 'edited-file',
|
|
17
|
+
'fix-with-v0': 'fix-with-v0',
|
|
18
|
+
'forked-block': 'forked-block',
|
|
19
|
+
'forked-chat': 'forked-chat',
|
|
20
|
+
message: 'message',
|
|
21
|
+
'moved-file': 'moved-file',
|
|
22
|
+
'open-in-v0': 'open-in-v0',
|
|
23
|
+
refinement: 'refinement',
|
|
24
|
+
'renamed-file': 'renamed-file',
|
|
25
|
+
'replace-src': 'replace-src',
|
|
26
|
+
'reverted-block': 'reverted-block',
|
|
27
|
+
'sync-git': 'sync-git',
|
|
28
|
+
};
|
|
29
|
+
export const messagesRoleEnum = {
|
|
30
|
+
assistant: 'assistant',
|
|
31
|
+
user: 'user',
|
|
32
|
+
};
|
|
33
|
+
export const latestVersionStatusEnum = {
|
|
34
|
+
completed: 'completed',
|
|
35
|
+
failed: 'failed',
|
|
36
|
+
pending: 'pending',
|
|
37
|
+
};
|
|
38
|
+
export const modelConfigurationModelIdEnum = {
|
|
39
|
+
'v0-1.5-lg': 'v0-1.5-lg',
|
|
40
|
+
'v0-1.5-md': 'v0-1.5-md',
|
|
41
|
+
'v0-1.5-sm': 'v0-1.5-sm',
|
|
42
|
+
};
|
|
43
|
+
export const chatSummaryPrivacyEnum = {
|
|
44
|
+
private: 'private',
|
|
45
|
+
public: 'public',
|
|
46
|
+
team: 'team',
|
|
47
|
+
'team-edit': 'team-edit',
|
|
48
|
+
unlisted: 'unlisted',
|
|
49
|
+
};
|
|
50
|
+
export const latestVersionStatusEnum2 = {
|
|
51
|
+
completed: 'completed',
|
|
52
|
+
failed: 'failed',
|
|
53
|
+
pending: 'pending',
|
|
54
|
+
};
|
|
55
|
+
export const modelConfigurationModelIdEnum2 = {
|
|
56
|
+
'v0-1.5-lg': 'v0-1.5-lg',
|
|
57
|
+
'v0-1.5-md': 'v0-1.5-md',
|
|
58
|
+
'v0-1.5-sm': 'v0-1.5-sm',
|
|
59
|
+
};
|
|
60
|
+
export const messageSummaryTypeEnum = {
|
|
61
|
+
'added-environment-variables': 'added-environment-variables',
|
|
62
|
+
'added-integration': 'added-integration',
|
|
63
|
+
'deleted-file': 'deleted-file',
|
|
64
|
+
'edited-file': 'edited-file',
|
|
65
|
+
'fix-with-v0': 'fix-with-v0',
|
|
66
|
+
'forked-block': 'forked-block',
|
|
67
|
+
'forked-chat': 'forked-chat',
|
|
68
|
+
message: 'message',
|
|
69
|
+
'moved-file': 'moved-file',
|
|
70
|
+
'open-in-v0': 'open-in-v0',
|
|
71
|
+
refinement: 'refinement',
|
|
72
|
+
'renamed-file': 'renamed-file',
|
|
73
|
+
'replace-src': 'replace-src',
|
|
74
|
+
'reverted-block': 'reverted-block',
|
|
75
|
+
'sync-git': 'sync-git',
|
|
76
|
+
};
|
|
77
|
+
export const messageSummaryRoleEnum = {
|
|
78
|
+
assistant: 'assistant',
|
|
79
|
+
user: 'user',
|
|
80
|
+
};
|
|
81
|
+
export const versionDetailStatusEnum = {
|
|
82
|
+
completed: 'completed',
|
|
83
|
+
failed: 'failed',
|
|
84
|
+
pending: 'pending',
|
|
85
|
+
};
|
|
86
|
+
export const versionSummaryStatusEnum = {
|
|
87
|
+
completed: 'completed',
|
|
88
|
+
failed: 'failed',
|
|
89
|
+
pending: 'pending',
|
|
90
|
+
};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as Components from "./generated/components.mjs";
|
|
2
|
+
import * as Schemas from "./generated/schemas.mjs";
|
|
3
|
+
import * as Types from "./generated/types.mjs";
|
|
4
|
+
declare const Fetchers: {
|
|
5
|
+
chatsCreate({ config }: {
|
|
6
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
7
|
+
client?: typeof import("./utils/fetcher").client;
|
|
8
|
+
};
|
|
9
|
+
}): Promise<unknown>;
|
|
10
|
+
chatsFind({ queryParams, config, }: {
|
|
11
|
+
queryParams?: Types.ChatsFindQueryParams;
|
|
12
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
13
|
+
client?: typeof import("./utils/fetcher").client;
|
|
14
|
+
};
|
|
15
|
+
}): Promise<unknown>;
|
|
16
|
+
chatsDelete({ pathParams: { chatId }, config, }: {
|
|
17
|
+
pathParams: Types.ChatsDeletePathParams;
|
|
18
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
19
|
+
client?: typeof import("./utils/fetcher").client;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<unknown>;
|
|
22
|
+
chatsGetById({ pathParams: { chatId }, config, }: {
|
|
23
|
+
pathParams: Types.ChatsGetByIdPathParams;
|
|
24
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
25
|
+
client?: typeof import("./utils/fetcher").client;
|
|
26
|
+
};
|
|
27
|
+
}): Promise<unknown>;
|
|
28
|
+
chatsUpdate({ pathParams: { chatId }, config, }: {
|
|
29
|
+
pathParams: Types.ChatsUpdatePathParams;
|
|
30
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
31
|
+
client?: typeof import("./utils/fetcher").client;
|
|
32
|
+
};
|
|
33
|
+
}): Promise<unknown>;
|
|
34
|
+
chatsFavorite({ pathParams: { chatId }, config, }: {
|
|
35
|
+
pathParams: Types.ChatsFavoritePathParams;
|
|
36
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
37
|
+
client?: typeof import("./utils/fetcher").client;
|
|
38
|
+
};
|
|
39
|
+
}): Promise<unknown>;
|
|
40
|
+
chatsFork({ pathParams: { chatId }, config, }: {
|
|
41
|
+
pathParams: Types.ChatsForkPathParams;
|
|
42
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
43
|
+
client?: typeof import("./utils/fetcher").client;
|
|
44
|
+
};
|
|
45
|
+
}): Promise<unknown>;
|
|
46
|
+
projectsGetByChatId({ pathParams: { chatId }, config, }: {
|
|
47
|
+
pathParams: Types.ProjectsGetByChatIdPathParams;
|
|
48
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
49
|
+
client?: typeof import("./utils/fetcher").client;
|
|
50
|
+
};
|
|
51
|
+
}): Promise<unknown>;
|
|
52
|
+
chatsSendMessage({ pathParams: { chatId }, config, }: {
|
|
53
|
+
pathParams: Types.ChatsSendMessagePathParams;
|
|
54
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
55
|
+
client?: typeof import("./utils/fetcher").client;
|
|
56
|
+
};
|
|
57
|
+
}): Promise<unknown>;
|
|
58
|
+
chatsGetMetadata({ pathParams: { chatId }, config, }: {
|
|
59
|
+
pathParams: Types.ChatsGetMetadataPathParams;
|
|
60
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
61
|
+
client?: typeof import("./utils/fetcher").client;
|
|
62
|
+
};
|
|
63
|
+
}): Promise<unknown>;
|
|
64
|
+
chatsResume({ pathParams: { chatId, messageId }, config, }: {
|
|
65
|
+
pathParams: Types.ChatsResumePathParams;
|
|
66
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
67
|
+
client?: typeof import("./utils/fetcher").client;
|
|
68
|
+
};
|
|
69
|
+
}): Promise<unknown>;
|
|
70
|
+
deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config, }: {
|
|
71
|
+
pathParams: Types.DeploymentsFindLogsPathParams;
|
|
72
|
+
queryParams?: Types.DeploymentsFindLogsQueryParams;
|
|
73
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
74
|
+
client?: typeof import("./utils/fetcher").client;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<unknown>;
|
|
77
|
+
deploymentsFindErrors({ pathParams: { deploymentId }, config, }: {
|
|
78
|
+
pathParams: Types.DeploymentsFindErrorsPathParams;
|
|
79
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
80
|
+
client?: typeof import("./utils/fetcher").client;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<unknown>;
|
|
83
|
+
integrationsVercelProjectsFind({ config }: {
|
|
84
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
85
|
+
client?: typeof import("./utils/fetcher").client;
|
|
86
|
+
};
|
|
87
|
+
}): Promise<unknown>;
|
|
88
|
+
integrationsVercelProjectsCreate({ config }: {
|
|
89
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
90
|
+
client?: typeof import("./utils/fetcher").client;
|
|
91
|
+
};
|
|
92
|
+
}): Promise<unknown>;
|
|
93
|
+
projectsFind({ config }: {
|
|
94
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
95
|
+
client?: typeof import("./utils/fetcher").client;
|
|
96
|
+
};
|
|
97
|
+
}): Promise<unknown>;
|
|
98
|
+
projectsCreate({ config }: {
|
|
99
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
100
|
+
client?: typeof import("./utils/fetcher").client;
|
|
101
|
+
};
|
|
102
|
+
}): Promise<unknown>;
|
|
103
|
+
projectsAssign({ pathParams: { projectId }, config, }: {
|
|
104
|
+
pathParams: Types.ProjectsAssignPathParams;
|
|
105
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
106
|
+
client?: typeof import("./utils/fetcher").client;
|
|
107
|
+
};
|
|
108
|
+
}): Promise<unknown>;
|
|
109
|
+
rateLimitsFind({ queryParams, config, }: {
|
|
110
|
+
queryParams?: Types.RateLimitsFindQueryParams;
|
|
111
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
112
|
+
client?: typeof import("./utils/fetcher").client;
|
|
113
|
+
};
|
|
114
|
+
}): Promise<unknown>;
|
|
115
|
+
userGet({ config }: {
|
|
116
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
117
|
+
client?: typeof import("./utils/fetcher").client;
|
|
118
|
+
};
|
|
119
|
+
}): Promise<unknown>;
|
|
120
|
+
userGetBilling({ queryParams, config, }: {
|
|
121
|
+
queryParams?: Types.UserGetBillingQueryParams;
|
|
122
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
123
|
+
client?: typeof import("./utils/fetcher").client;
|
|
124
|
+
};
|
|
125
|
+
}): Promise<unknown>;
|
|
126
|
+
userGetPlan({ config }: {
|
|
127
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
128
|
+
client?: typeof import("./utils/fetcher").client;
|
|
129
|
+
};
|
|
130
|
+
}): Promise<unknown>;
|
|
131
|
+
userGetScopes({ config }: {
|
|
132
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
133
|
+
client?: typeof import("./utils/fetcher").client;
|
|
134
|
+
};
|
|
135
|
+
}): Promise<unknown>;
|
|
136
|
+
};
|
|
137
|
+
declare const Helpers: {
|
|
138
|
+
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;
|
|
162
|
+
};
|
|
163
|
+
operationsByTag: {
|
|
164
|
+
chats: {
|
|
165
|
+
chatsCreate: typeof Components.chatsCreate;
|
|
166
|
+
chatsFind: typeof Components.chatsFind;
|
|
167
|
+
chatsDelete: typeof Components.chatsDelete;
|
|
168
|
+
chatsGetById: typeof Components.chatsGetById;
|
|
169
|
+
chatsUpdate: typeof Components.chatsUpdate;
|
|
170
|
+
chatsFavorite: typeof Components.chatsFavorite;
|
|
171
|
+
chatsFork: typeof Components.chatsFork;
|
|
172
|
+
chatsSendMessage: typeof Components.chatsSendMessage;
|
|
173
|
+
chatsGetMetadata: typeof Components.chatsGetMetadata;
|
|
174
|
+
chatsResume: typeof Components.chatsResume;
|
|
175
|
+
};
|
|
176
|
+
projects: {
|
|
177
|
+
projectsGetByChatId: typeof Components.projectsGetByChatId;
|
|
178
|
+
projectsFind: typeof Components.projectsFind;
|
|
179
|
+
projectsCreate: typeof Components.projectsCreate;
|
|
180
|
+
projectsAssign: typeof Components.projectsAssign;
|
|
181
|
+
};
|
|
182
|
+
deployments: {
|
|
183
|
+
deploymentsFindLogs: typeof Components.deploymentsFindLogs;
|
|
184
|
+
deploymentsFindErrors: typeof Components.deploymentsFindErrors;
|
|
185
|
+
};
|
|
186
|
+
integrations: {
|
|
187
|
+
integrationsVercelProjectsFind: typeof Components.integrationsVercelProjectsFind;
|
|
188
|
+
integrationsVercelProjectsCreate: typeof Components.integrationsVercelProjectsCreate;
|
|
189
|
+
};
|
|
190
|
+
ratelimits: {
|
|
191
|
+
rateLimitsFind: typeof Components.rateLimitsFind;
|
|
192
|
+
};
|
|
193
|
+
user: {
|
|
194
|
+
userGet: typeof Components.userGet;
|
|
195
|
+
userGetBilling: typeof Components.userGetBilling;
|
|
196
|
+
userGetPlan: typeof Components.userGetPlan;
|
|
197
|
+
userGetScopes: typeof Components.userGetScopes;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
tagDictionary: {
|
|
201
|
+
readonly chats: {
|
|
202
|
+
readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
203
|
+
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
204
|
+
readonly DELETE: readonly ["chatsDelete"];
|
|
205
|
+
readonly PATCH: readonly ["chatsUpdate"];
|
|
206
|
+
readonly PUT: readonly ["chatsFavorite"];
|
|
207
|
+
};
|
|
208
|
+
readonly projects: {
|
|
209
|
+
readonly GET: readonly ["projectsGetByChatId", "projectsFind"];
|
|
210
|
+
readonly POST: readonly ["projectsCreate", "projectsAssign"];
|
|
211
|
+
};
|
|
212
|
+
readonly deployments: {
|
|
213
|
+
readonly GET: readonly ["deploymentsFindLogs", "deploymentsFindErrors"];
|
|
214
|
+
};
|
|
215
|
+
readonly integrations: {
|
|
216
|
+
readonly GET: readonly ["integrationsVercelProjectsFind"];
|
|
217
|
+
readonly POST: readonly ["integrationsVercelProjectsCreate"];
|
|
218
|
+
};
|
|
219
|
+
readonly ratelimits: {
|
|
220
|
+
readonly GET: readonly ["rateLimitsFind"];
|
|
221
|
+
};
|
|
222
|
+
readonly user: {
|
|
223
|
+
readonly GET: readonly ["userGet", "userGetBilling", "userGetPlan", "userGetScopes"];
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
export * from "./client.mjs";
|
|
228
|
+
export { Fetchers, Helpers, Schemas, Types };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as Components from "./generated/components.js";
|
|
2
|
+
import * as Schemas from "./generated/schemas.js";
|
|
3
|
+
import * as Types from "./generated/types.js";
|
|
4
|
+
declare const Fetchers: {
|
|
5
|
+
chatsCreate({ config }: {
|
|
6
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
7
|
+
client?: typeof import("./utils/fetcher").client;
|
|
8
|
+
};
|
|
9
|
+
}): Promise<unknown>;
|
|
10
|
+
chatsFind({ queryParams, config, }: {
|
|
11
|
+
queryParams?: Types.ChatsFindQueryParams;
|
|
12
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
13
|
+
client?: typeof import("./utils/fetcher").client;
|
|
14
|
+
};
|
|
15
|
+
}): Promise<unknown>;
|
|
16
|
+
chatsDelete({ pathParams: { chatId }, config, }: {
|
|
17
|
+
pathParams: Types.ChatsDeletePathParams;
|
|
18
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
19
|
+
client?: typeof import("./utils/fetcher").client;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<unknown>;
|
|
22
|
+
chatsGetById({ pathParams: { chatId }, config, }: {
|
|
23
|
+
pathParams: Types.ChatsGetByIdPathParams;
|
|
24
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
25
|
+
client?: typeof import("./utils/fetcher").client;
|
|
26
|
+
};
|
|
27
|
+
}): Promise<unknown>;
|
|
28
|
+
chatsUpdate({ pathParams: { chatId }, config, }: {
|
|
29
|
+
pathParams: Types.ChatsUpdatePathParams;
|
|
30
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
31
|
+
client?: typeof import("./utils/fetcher").client;
|
|
32
|
+
};
|
|
33
|
+
}): Promise<unknown>;
|
|
34
|
+
chatsFavorite({ pathParams: { chatId }, config, }: {
|
|
35
|
+
pathParams: Types.ChatsFavoritePathParams;
|
|
36
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
37
|
+
client?: typeof import("./utils/fetcher").client;
|
|
38
|
+
};
|
|
39
|
+
}): Promise<unknown>;
|
|
40
|
+
chatsFork({ pathParams: { chatId }, config, }: {
|
|
41
|
+
pathParams: Types.ChatsForkPathParams;
|
|
42
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
43
|
+
client?: typeof import("./utils/fetcher").client;
|
|
44
|
+
};
|
|
45
|
+
}): Promise<unknown>;
|
|
46
|
+
projectsGetByChatId({ pathParams: { chatId }, config, }: {
|
|
47
|
+
pathParams: Types.ProjectsGetByChatIdPathParams;
|
|
48
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
49
|
+
client?: typeof import("./utils/fetcher").client;
|
|
50
|
+
};
|
|
51
|
+
}): Promise<unknown>;
|
|
52
|
+
chatsSendMessage({ pathParams: { chatId }, config, }: {
|
|
53
|
+
pathParams: Types.ChatsSendMessagePathParams;
|
|
54
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
55
|
+
client?: typeof import("./utils/fetcher").client;
|
|
56
|
+
};
|
|
57
|
+
}): Promise<unknown>;
|
|
58
|
+
chatsGetMetadata({ pathParams: { chatId }, config, }: {
|
|
59
|
+
pathParams: Types.ChatsGetMetadataPathParams;
|
|
60
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
61
|
+
client?: typeof import("./utils/fetcher").client;
|
|
62
|
+
};
|
|
63
|
+
}): Promise<unknown>;
|
|
64
|
+
chatsResume({ pathParams: { chatId, messageId }, config, }: {
|
|
65
|
+
pathParams: Types.ChatsResumePathParams;
|
|
66
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
67
|
+
client?: typeof import("./utils/fetcher").client;
|
|
68
|
+
};
|
|
69
|
+
}): Promise<unknown>;
|
|
70
|
+
deploymentsFindLogs({ pathParams: { deploymentId }, queryParams, config, }: {
|
|
71
|
+
pathParams: Types.DeploymentsFindLogsPathParams;
|
|
72
|
+
queryParams?: Types.DeploymentsFindLogsQueryParams;
|
|
73
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
74
|
+
client?: typeof import("./utils/fetcher").client;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<unknown>;
|
|
77
|
+
deploymentsFindErrors({ pathParams: { deploymentId }, config, }: {
|
|
78
|
+
pathParams: Types.DeploymentsFindErrorsPathParams;
|
|
79
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
80
|
+
client?: typeof import("./utils/fetcher").client;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<unknown>;
|
|
83
|
+
integrationsVercelProjectsFind({ config }: {
|
|
84
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
85
|
+
client?: typeof import("./utils/fetcher").client;
|
|
86
|
+
};
|
|
87
|
+
}): Promise<unknown>;
|
|
88
|
+
integrationsVercelProjectsCreate({ config }: {
|
|
89
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
90
|
+
client?: typeof import("./utils/fetcher").client;
|
|
91
|
+
};
|
|
92
|
+
}): Promise<unknown>;
|
|
93
|
+
projectsFind({ config }: {
|
|
94
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
95
|
+
client?: typeof import("./utils/fetcher").client;
|
|
96
|
+
};
|
|
97
|
+
}): Promise<unknown>;
|
|
98
|
+
projectsCreate({ config }: {
|
|
99
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
100
|
+
client?: typeof import("./utils/fetcher").client;
|
|
101
|
+
};
|
|
102
|
+
}): Promise<unknown>;
|
|
103
|
+
projectsAssign({ pathParams: { projectId }, config, }: {
|
|
104
|
+
pathParams: Types.ProjectsAssignPathParams;
|
|
105
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
106
|
+
client?: typeof import("./utils/fetcher").client;
|
|
107
|
+
};
|
|
108
|
+
}): Promise<unknown>;
|
|
109
|
+
rateLimitsFind({ queryParams, config, }: {
|
|
110
|
+
queryParams?: Types.RateLimitsFindQueryParams;
|
|
111
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
112
|
+
client?: typeof import("./utils/fetcher").client;
|
|
113
|
+
};
|
|
114
|
+
}): Promise<unknown>;
|
|
115
|
+
userGet({ config }: {
|
|
116
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
117
|
+
client?: typeof import("./utils/fetcher").client;
|
|
118
|
+
};
|
|
119
|
+
}): Promise<unknown>;
|
|
120
|
+
userGetBilling({ queryParams, config, }: {
|
|
121
|
+
queryParams?: Types.UserGetBillingQueryParams;
|
|
122
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
123
|
+
client?: typeof import("./utils/fetcher").client;
|
|
124
|
+
};
|
|
125
|
+
}): Promise<unknown>;
|
|
126
|
+
userGetPlan({ config }: {
|
|
127
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
128
|
+
client?: typeof import("./utils/fetcher").client;
|
|
129
|
+
};
|
|
130
|
+
}): Promise<unknown>;
|
|
131
|
+
userGetScopes({ config }: {
|
|
132
|
+
config?: Partial<import("./utils/fetcher").FetcherConfig> & {
|
|
133
|
+
client?: typeof import("./utils/fetcher").client;
|
|
134
|
+
};
|
|
135
|
+
}): Promise<unknown>;
|
|
136
|
+
};
|
|
137
|
+
declare const Helpers: {
|
|
138
|
+
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;
|
|
162
|
+
};
|
|
163
|
+
operationsByTag: {
|
|
164
|
+
chats: {
|
|
165
|
+
chatsCreate: typeof Components.chatsCreate;
|
|
166
|
+
chatsFind: typeof Components.chatsFind;
|
|
167
|
+
chatsDelete: typeof Components.chatsDelete;
|
|
168
|
+
chatsGetById: typeof Components.chatsGetById;
|
|
169
|
+
chatsUpdate: typeof Components.chatsUpdate;
|
|
170
|
+
chatsFavorite: typeof Components.chatsFavorite;
|
|
171
|
+
chatsFork: typeof Components.chatsFork;
|
|
172
|
+
chatsSendMessage: typeof Components.chatsSendMessage;
|
|
173
|
+
chatsGetMetadata: typeof Components.chatsGetMetadata;
|
|
174
|
+
chatsResume: typeof Components.chatsResume;
|
|
175
|
+
};
|
|
176
|
+
projects: {
|
|
177
|
+
projectsGetByChatId: typeof Components.projectsGetByChatId;
|
|
178
|
+
projectsFind: typeof Components.projectsFind;
|
|
179
|
+
projectsCreate: typeof Components.projectsCreate;
|
|
180
|
+
projectsAssign: typeof Components.projectsAssign;
|
|
181
|
+
};
|
|
182
|
+
deployments: {
|
|
183
|
+
deploymentsFindLogs: typeof Components.deploymentsFindLogs;
|
|
184
|
+
deploymentsFindErrors: typeof Components.deploymentsFindErrors;
|
|
185
|
+
};
|
|
186
|
+
integrations: {
|
|
187
|
+
integrationsVercelProjectsFind: typeof Components.integrationsVercelProjectsFind;
|
|
188
|
+
integrationsVercelProjectsCreate: typeof Components.integrationsVercelProjectsCreate;
|
|
189
|
+
};
|
|
190
|
+
ratelimits: {
|
|
191
|
+
rateLimitsFind: typeof Components.rateLimitsFind;
|
|
192
|
+
};
|
|
193
|
+
user: {
|
|
194
|
+
userGet: typeof Components.userGet;
|
|
195
|
+
userGetBilling: typeof Components.userGetBilling;
|
|
196
|
+
userGetPlan: typeof Components.userGetPlan;
|
|
197
|
+
userGetScopes: typeof Components.userGetScopes;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
tagDictionary: {
|
|
201
|
+
readonly chats: {
|
|
202
|
+
readonly POST: readonly ["chatsCreate", "chatsFork", "chatsSendMessage", "chatsResume"];
|
|
203
|
+
readonly GET: readonly ["chatsFind", "chatsGetById", "chatsGetMetadata"];
|
|
204
|
+
readonly DELETE: readonly ["chatsDelete"];
|
|
205
|
+
readonly PATCH: readonly ["chatsUpdate"];
|
|
206
|
+
readonly PUT: readonly ["chatsFavorite"];
|
|
207
|
+
};
|
|
208
|
+
readonly projects: {
|
|
209
|
+
readonly GET: readonly ["projectsGetByChatId", "projectsFind"];
|
|
210
|
+
readonly POST: readonly ["projectsCreate", "projectsAssign"];
|
|
211
|
+
};
|
|
212
|
+
readonly deployments: {
|
|
213
|
+
readonly GET: readonly ["deploymentsFindLogs", "deploymentsFindErrors"];
|
|
214
|
+
};
|
|
215
|
+
readonly integrations: {
|
|
216
|
+
readonly GET: readonly ["integrationsVercelProjectsFind"];
|
|
217
|
+
readonly POST: readonly ["integrationsVercelProjectsCreate"];
|
|
218
|
+
};
|
|
219
|
+
readonly ratelimits: {
|
|
220
|
+
readonly GET: readonly ["rateLimitsFind"];
|
|
221
|
+
};
|
|
222
|
+
readonly user: {
|
|
223
|
+
readonly GET: readonly ["userGet", "userGetBilling", "userGetPlan", "userGetScopes"];
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
export * from "./client.js";
|
|
228
|
+
export { Fetchers, Helpers, Schemas, Types };
|