@opsee/mcp-server 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/opsee-mcp.js +21 -0
- package/gen/api/v1/account_pb.d.ts +393 -0
- package/gen/api/v1/account_pb.js +111 -0
- package/gen/api/v1/activity_log_pb.d.ts +297 -0
- package/gen/api/v1/activity_log_pb.js +89 -0
- package/gen/api/v1/ai_run_status_pb.d.ts +237 -0
- package/gen/api/v1/ai_run_status_pb.js +89 -0
- package/gen/api/v1/ai_unit_category_pb.d.ts +237 -0
- package/gen/api/v1/ai_unit_category_pb.js +89 -0
- package/gen/api/v1/ai_unit_stage_pb.d.ts +347 -0
- package/gen/api/v1/ai_unit_stage_pb.js +117 -0
- package/gen/api/v1/ai_unit_status_pb.d.ts +237 -0
- package/gen/api/v1/ai_unit_status_pb.js +89 -0
- package/gen/api/v1/ai_workflow_run_pb.d.ts +542 -0
- package/gen/api/v1/ai_workflow_run_pb.js +159 -0
- package/gen/api/v1/ai_workflow_unit_pb.d.ts +431 -0
- package/gen/api/v1/ai_workflow_unit_pb.js +103 -0
- package/gen/api/v1/attachment_pb.d.ts +297 -0
- package/gen/api/v1/attachment_pb.js +89 -0
- package/gen/api/v1/billing_pb.d.ts +1206 -0
- package/gen/api/v1/billing_pb.js +288 -0
- package/gen/api/v1/board_column_pb.d.ts +282 -0
- package/gen/api/v1/board_column_pb.js +89 -0
- package/gen/api/v1/board_pb.d.ts +296 -0
- package/gen/api/v1/board_pb.js +96 -0
- package/gen/api/v1/comment_pb.d.ts +277 -0
- package/gen/api/v1/comment_pb.js +89 -0
- package/gen/api/v1/company_pb.d.ts +452 -0
- package/gen/api/v1/company_pb.js +110 -0
- package/gen/api/v1/component_pb.d.ts +267 -0
- package/gen/api/v1/component_pb.js +89 -0
- package/gen/api/v1/contact_pb.d.ts +58 -0
- package/gen/api/v1/contact_pb.js +28 -0
- package/gen/api/v1/country_pb.d.ts +257 -0
- package/gen/api/v1/country_pb.js +89 -0
- package/gen/api/v1/credit_transaction_pb.d.ts +277 -0
- package/gen/api/v1/credit_transaction_pb.js +89 -0
- package/gen/api/v1/cycle_pb.d.ts +281 -0
- package/gen/api/v1/cycle_pb.js +87 -0
- package/gen/api/v1/deployment_pb.d.ts +277 -0
- package/gen/api/v1/deployment_pb.js +89 -0
- package/gen/api/v1/doc_page_pb.d.ts +505 -0
- package/gen/api/v1/doc_page_pb.js +138 -0
- package/gen/api/v1/doc_page_version_pb.d.ts +287 -0
- package/gen/api/v1/doc_page_version_pb.js +89 -0
- package/gen/api/v1/doc_space_pb.d.ts +297 -0
- package/gen/api/v1/doc_space_pb.js +89 -0
- package/gen/api/v1/document_link_pb.d.ts +174 -0
- package/gen/api/v1/document_link_pb.js +61 -0
- package/gen/api/v1/document_pb.d.ts +548 -0
- package/gen/api/v1/document_pb.js +152 -0
- package/gen/api/v1/environment_pb.d.ts +277 -0
- package/gen/api/v1/environment_pb.js +89 -0
- package/gen/api/v1/filter_pb.d.ts +66 -0
- package/gen/api/v1/filter_pb.js +26 -0
- package/gen/api/v1/label_pb.d.ts +267 -0
- package/gen/api/v1/label_pb.js +89 -0
- package/gen/api/v1/models_pb.d.ts +3137 -0
- package/gen/api/v1/models_pb.js +357 -0
- package/gen/api/v1/notification_pb.d.ts +317 -0
- package/gen/api/v1/notification_pb.js +89 -0
- package/gen/api/v1/orchestrator_pb.d.ts +1813 -0
- package/gen/api/v1/orchestrator_pb.js +353 -0
- package/gen/api/v1/pagination_pb.d.ts +92 -0
- package/gen/api/v1/pagination_pb.js +33 -0
- package/gen/api/v1/permission_pb.d.ts +222 -0
- package/gen/api/v1/permission_pb.js +89 -0
- package/gen/api/v1/preference_pb.d.ts +109 -0
- package/gen/api/v1/preference_pb.js +42 -0
- package/gen/api/v1/project_membership_pb.d.ts +321 -0
- package/gen/api/v1/project_membership_pb.js +103 -0
- package/gen/api/v1/project_pb.d.ts +473 -0
- package/gen/api/v1/project_pb.js +145 -0
- package/gen/api/v1/reporting_pb.d.ts +1481 -0
- package/gen/api/v1/reporting_pb.js +373 -0
- package/gen/api/v1/role_pb.d.ts +252 -0
- package/gen/api/v1/role_pb.js +101 -0
- package/gen/api/v1/subscription_pb.d.ts +307 -0
- package/gen/api/v1/subscription_pb.js +89 -0
- package/gen/api/v1/swagger_pb.d.ts +11 -0
- package/gen/api/v1/swagger_pb.js +13 -0
- package/gen/api/v1/task_component_pb.d.ts +242 -0
- package/gen/api/v1/task_component_pb.js +89 -0
- package/gen/api/v1/task_contributor_pb.d.ts +252 -0
- package/gen/api/v1/task_contributor_pb.js +89 -0
- package/gen/api/v1/task_doc_page_pb.d.ts +186 -0
- package/gen/api/v1/task_doc_page_pb.js +73 -0
- package/gen/api/v1/task_document_pb.d.ts +186 -0
- package/gen/api/v1/task_document_pb.js +73 -0
- package/gen/api/v1/task_label_pb.d.ts +242 -0
- package/gen/api/v1/task_label_pb.js +89 -0
- package/gen/api/v1/task_pb.d.ts +780 -0
- package/gen/api/v1/task_pb.js +173 -0
- package/gen/api/v1/task_priority_pb.d.ts +267 -0
- package/gen/api/v1/task_priority_pb.js +89 -0
- package/gen/api/v1/task_repository_pb.d.ts +242 -0
- package/gen/api/v1/task_repository_pb.js +89 -0
- package/gen/api/v1/task_type_pb.d.ts +277 -0
- package/gen/api/v1/task_type_pb.js +89 -0
- package/gen/api/v1/test_run_pb.d.ts +277 -0
- package/gen/api/v1/test_run_pb.js +89 -0
- package/gen/api/v1/user_pb.d.ts +366 -0
- package/gen/api/v1/user_pb.js +117 -0
- package/gen/api/v1/vcs_connection_pb.d.ts +964 -0
- package/gen/api/v1/vcs_connection_pb.js +228 -0
- package/gen/api/v1/vcs_integration_pb.d.ts +479 -0
- package/gen/api/v1/vcs_integration_pb.js +125 -0
- package/gen/api/v1/vcs_pb.d.ts +36 -0
- package/gen/api/v1/vcs_pb.js +24 -0
- package/gen/api/v1/view_pb.d.ts +337 -0
- package/gen/api/v1/view_pb.js +102 -0
- package/gen/google/api/annotations_pb.d.ts +34 -0
- package/gen/google/api/annotations_pb.js +36 -0
- package/gen/google/api/http_pb.d.ts +477 -0
- package/gen/google/api/http_pb.js +47 -0
- package/gen/protoc-gen-openapiv2/options/annotations_pb.d.ts +63 -0
- package/gen/protoc-gen-openapiv2/options/annotations_pb.js +69 -0
- package/gen/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1497 -0
- package/gen/protoc-gen-openapiv2/options/openapiv2_pb.js +232 -0
- package/gen/validate/validate_pb.d.ts +1953 -0
- package/gen/validate/validate_pb.js +223 -0
- package/package.json +37 -0
- package/src/auth/credentials.ts +65 -0
- package/src/auth/login.ts +96 -0
- package/src/auth/manager.ts +49 -0
- package/src/client/api.ts +91 -0
- package/src/index.ts +13 -0
- package/src/server.ts +26 -0
- package/src/tools/cycles.ts +77 -0
- package/src/tools/docs.ts +148 -0
- package/src/tools/projects.ts +40 -0
- package/src/tools/repositories.ts +41 -0
- package/src/tools/task-metadata.ts +96 -0
- package/src/tools/tasks.ts +228 -0
- package/src/tools/user.ts +33 -0
- package/src/utils/format.ts +141 -0
package/bin/opsee-mcp.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env npx tsx
|
|
2
|
+
|
|
3
|
+
import { startLoginFlow } from "../src/auth/login.js";
|
|
4
|
+
|
|
5
|
+
const command = process.argv[2];
|
|
6
|
+
|
|
7
|
+
switch (command) {
|
|
8
|
+
case "login":
|
|
9
|
+
try {
|
|
10
|
+
await startLoginFlow();
|
|
11
|
+
} catch (error: any) {
|
|
12
|
+
console.error("Login failed:", error.message);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
break;
|
|
16
|
+
|
|
17
|
+
case "serve":
|
|
18
|
+
default:
|
|
19
|
+
await import("../src/index.js");
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file api/v1/account.proto (package api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { User } from "./models_pb";
|
|
8
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file api/v1/account.proto.
|
|
12
|
+
*/
|
|
13
|
+
export declare const file_api_v1_account: GenFile;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @generated from message api.v1.LoginRequest
|
|
17
|
+
*/
|
|
18
|
+
export declare type LoginRequest = Message<"api.v1.LoginRequest"> & {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: string email = 1;
|
|
21
|
+
*/
|
|
22
|
+
email: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from field: string password = 2;
|
|
26
|
+
*/
|
|
27
|
+
password: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: api.v1.AuthProvider provider = 3;
|
|
31
|
+
*/
|
|
32
|
+
provider: AuthProvider;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: string token = 4;
|
|
36
|
+
*/
|
|
37
|
+
token: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message api.v1.LoginRequest.
|
|
42
|
+
* Use `create(LoginRequestSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export declare const LoginRequestSchema: GenMessage<LoginRequest>;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from message api.v1.RegisterRequest
|
|
48
|
+
*/
|
|
49
|
+
export declare type RegisterRequest = Message<"api.v1.RegisterRequest"> & {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string email = 1;
|
|
52
|
+
*/
|
|
53
|
+
email: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string password = 2;
|
|
57
|
+
*/
|
|
58
|
+
password: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string password_confirmation = 3;
|
|
62
|
+
*/
|
|
63
|
+
passwordConfirmation: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: optional string first_name = 4;
|
|
67
|
+
*/
|
|
68
|
+
firstName?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: optional string last_name = 5;
|
|
72
|
+
*/
|
|
73
|
+
lastName?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: api.v1.AuthProvider provider = 6;
|
|
77
|
+
*/
|
|
78
|
+
provider: AuthProvider;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: string token = 7;
|
|
82
|
+
*/
|
|
83
|
+
token: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message api.v1.RegisterRequest.
|
|
88
|
+
* Use `create(RegisterRequestSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export declare const RegisterRequestSchema: GenMessage<RegisterRequest>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @generated from message api.v1.VerifyAccountRequest
|
|
94
|
+
*/
|
|
95
|
+
export declare type VerifyAccountRequest = Message<"api.v1.VerifyAccountRequest"> & {
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: string email = 1;
|
|
98
|
+
*/
|
|
99
|
+
email: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: string token = 2;
|
|
103
|
+
*/
|
|
104
|
+
token: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Describes the message api.v1.VerifyAccountRequest.
|
|
109
|
+
* Use `create(VerifyAccountRequestSchema)` to create a new message.
|
|
110
|
+
*/
|
|
111
|
+
export declare const VerifyAccountRequestSchema: GenMessage<VerifyAccountRequest>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @generated from message api.v1.PasswordRecoverRequest
|
|
115
|
+
*/
|
|
116
|
+
export declare type PasswordRecoverRequest = Message<"api.v1.PasswordRecoverRequest"> & {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: string email = 1;
|
|
119
|
+
*/
|
|
120
|
+
email: string;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message api.v1.PasswordRecoverRequest.
|
|
125
|
+
* Use `create(PasswordRecoverRequestSchema)` to create a new message.
|
|
126
|
+
*/
|
|
127
|
+
export declare const PasswordRecoverRequestSchema: GenMessage<PasswordRecoverRequest>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from message api.v1.PasswordResetRequest
|
|
131
|
+
*/
|
|
132
|
+
export declare type PasswordResetRequest = Message<"api.v1.PasswordResetRequest"> & {
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: string token = 1;
|
|
135
|
+
*/
|
|
136
|
+
token: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string email = 2;
|
|
140
|
+
*/
|
|
141
|
+
email: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: string password = 3;
|
|
145
|
+
*/
|
|
146
|
+
password: string;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message api.v1.PasswordResetRequest.
|
|
151
|
+
* Use `create(PasswordResetRequestSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
export declare const PasswordResetRequestSchema: GenMessage<PasswordResetRequest>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @generated from message api.v1.VerifyRecoveryTokenRequest
|
|
157
|
+
*/
|
|
158
|
+
export declare type VerifyRecoveryTokenRequest = Message<"api.v1.VerifyRecoveryTokenRequest"> & {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: string token = 1;
|
|
161
|
+
*/
|
|
162
|
+
token: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: string email = 2;
|
|
166
|
+
*/
|
|
167
|
+
email: string;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Describes the message api.v1.VerifyRecoveryTokenRequest.
|
|
172
|
+
* Use `create(VerifyRecoveryTokenRequestSchema)` to create a new message.
|
|
173
|
+
*/
|
|
174
|
+
export declare const VerifyRecoveryTokenRequestSchema: GenMessage<VerifyRecoveryTokenRequest>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @generated from message api.v1.GenerateMCPTokenRequest
|
|
178
|
+
*/
|
|
179
|
+
export declare type GenerateMCPTokenRequest = Message<"api.v1.GenerateMCPTokenRequest"> & {
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Describes the message api.v1.GenerateMCPTokenRequest.
|
|
184
|
+
* Use `create(GenerateMCPTokenRequestSchema)` to create a new message.
|
|
185
|
+
*/
|
|
186
|
+
export declare const GenerateMCPTokenRequestSchema: GenMessage<GenerateMCPTokenRequest>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message api.v1.GenerateMCPTokenResponse
|
|
190
|
+
*/
|
|
191
|
+
export declare type GenerateMCPTokenResponse = Message<"api.v1.GenerateMCPTokenResponse"> & {
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: string token = 1;
|
|
194
|
+
*/
|
|
195
|
+
token: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: string user_id = 2;
|
|
199
|
+
*/
|
|
200
|
+
userId: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: string company_id = 3;
|
|
204
|
+
*/
|
|
205
|
+
companyId: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string expires_at = 4;
|
|
209
|
+
*/
|
|
210
|
+
expiresAt: string;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Describes the message api.v1.GenerateMCPTokenResponse.
|
|
215
|
+
* Use `create(GenerateMCPTokenResponseSchema)` to create a new message.
|
|
216
|
+
*/
|
|
217
|
+
export declare const GenerateMCPTokenResponseSchema: GenMessage<GenerateMCPTokenResponse>;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @generated from message api.v1.RegisterResponse
|
|
221
|
+
*/
|
|
222
|
+
export declare type RegisterResponse = Message<"api.v1.RegisterResponse"> & {
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: string token = 1;
|
|
225
|
+
*/
|
|
226
|
+
token: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @generated from field: int64 expires_in = 2;
|
|
230
|
+
*/
|
|
231
|
+
expiresIn: bigint;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: api.v1.User user = 3;
|
|
235
|
+
*/
|
|
236
|
+
user?: User;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Describes the message api.v1.RegisterResponse.
|
|
241
|
+
* Use `create(RegisterResponseSchema)` to create a new message.
|
|
242
|
+
*/
|
|
243
|
+
export declare const RegisterResponseSchema: GenMessage<RegisterResponse>;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @generated from message api.v1.VerifyAccountResponse
|
|
247
|
+
*/
|
|
248
|
+
export declare type VerifyAccountResponse = Message<"api.v1.VerifyAccountResponse"> & {
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: string token = 1;
|
|
251
|
+
*/
|
|
252
|
+
token: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: int64 expires_in = 2;
|
|
256
|
+
*/
|
|
257
|
+
expiresIn: bigint;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @generated from field: api.v1.User user = 3;
|
|
261
|
+
*/
|
|
262
|
+
user?: User;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Describes the message api.v1.VerifyAccountResponse.
|
|
267
|
+
* Use `create(VerifyAccountResponseSchema)` to create a new message.
|
|
268
|
+
*/
|
|
269
|
+
export declare const VerifyAccountResponseSchema: GenMessage<VerifyAccountResponse>;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @generated from message api.v1.LoginResponse
|
|
273
|
+
*/
|
|
274
|
+
export declare type LoginResponse = Message<"api.v1.LoginResponse"> & {
|
|
275
|
+
/**
|
|
276
|
+
* @generated from field: string token = 1;
|
|
277
|
+
*/
|
|
278
|
+
token: string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: int64 expires_in = 2;
|
|
282
|
+
*/
|
|
283
|
+
expiresIn: bigint;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: api.v1.User user = 3;
|
|
287
|
+
*/
|
|
288
|
+
user?: User;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Describes the message api.v1.LoginResponse.
|
|
293
|
+
* Use `create(LoginResponseSchema)` to create a new message.
|
|
294
|
+
*/
|
|
295
|
+
export declare const LoginResponseSchema: GenMessage<LoginResponse>;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @generated from enum api.v1.AuthProvider
|
|
299
|
+
*/
|
|
300
|
+
export enum AuthProvider {
|
|
301
|
+
/**
|
|
302
|
+
* @generated from enum value: AUTH_PROVIDER_UNSPECIFIED = 0;
|
|
303
|
+
*/
|
|
304
|
+
UNSPECIFIED = 0,
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @generated from enum value: AUTH_PROVIDER_EMAIL = 1;
|
|
308
|
+
*/
|
|
309
|
+
EMAIL = 1,
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @generated from enum value: AUTH_PROVIDER_GOOGLE = 2;
|
|
313
|
+
*/
|
|
314
|
+
GOOGLE = 2,
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @generated from enum value: AUTH_PROVIDER_FACEBOOK = 3;
|
|
318
|
+
*/
|
|
319
|
+
FACEBOOK = 3,
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @generated from enum value: AUTH_PROVIDER_APPLE = 4;
|
|
323
|
+
*/
|
|
324
|
+
APPLE = 4,
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Describes the enum api.v1.AuthProvider.
|
|
329
|
+
*/
|
|
330
|
+
export declare const AuthProviderSchema: GenEnum<AuthProvider>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @generated from service api.v1.AccountService
|
|
334
|
+
*/
|
|
335
|
+
export declare const AccountService: GenService<{
|
|
336
|
+
/**
|
|
337
|
+
* @generated from rpc api.v1.AccountService.Login
|
|
338
|
+
*/
|
|
339
|
+
login: {
|
|
340
|
+
methodKind: "unary";
|
|
341
|
+
input: typeof LoginRequestSchema;
|
|
342
|
+
output: typeof LoginResponseSchema;
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* @generated from rpc api.v1.AccountService.Register
|
|
346
|
+
*/
|
|
347
|
+
register: {
|
|
348
|
+
methodKind: "unary";
|
|
349
|
+
input: typeof RegisterRequestSchema;
|
|
350
|
+
output: typeof RegisterResponseSchema;
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
* @generated from rpc api.v1.AccountService.VerifyAccount
|
|
354
|
+
*/
|
|
355
|
+
verifyAccount: {
|
|
356
|
+
methodKind: "unary";
|
|
357
|
+
input: typeof VerifyAccountRequestSchema;
|
|
358
|
+
output: typeof VerifyAccountResponseSchema;
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* @generated from rpc api.v1.AccountService.PasswordRecover
|
|
362
|
+
*/
|
|
363
|
+
passwordRecover: {
|
|
364
|
+
methodKind: "unary";
|
|
365
|
+
input: typeof PasswordRecoverRequestSchema;
|
|
366
|
+
output: typeof EmptySchema;
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
* @generated from rpc api.v1.AccountService.VerifyRecoveryToken
|
|
370
|
+
*/
|
|
371
|
+
verifyRecoveryToken: {
|
|
372
|
+
methodKind: "unary";
|
|
373
|
+
input: typeof VerifyRecoveryTokenRequestSchema;
|
|
374
|
+
output: typeof EmptySchema;
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
* @generated from rpc api.v1.AccountService.PasswordReset
|
|
378
|
+
*/
|
|
379
|
+
passwordReset: {
|
|
380
|
+
methodKind: "unary";
|
|
381
|
+
input: typeof PasswordResetRequestSchema;
|
|
382
|
+
output: typeof EmptySchema;
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
* @generated from rpc api.v1.AccountService.GenerateMCPToken
|
|
386
|
+
*/
|
|
387
|
+
generateMCPToken: {
|
|
388
|
+
methodKind: "unary";
|
|
389
|
+
input: typeof GenerateMCPTokenRequestSchema;
|
|
390
|
+
output: typeof GenerateMCPTokenResponseSchema;
|
|
391
|
+
},
|
|
392
|
+
}>;
|
|
393
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file api/v1/account.proto (package api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
import { file_google_api_annotations } from "../../google/api/annotations_pb";
|
|
8
|
+
import { file_validate_validate } from "../../validate/validate_pb";
|
|
9
|
+
import { file_api_v1_models } from "./models_pb";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file api/v1/account.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_api_v1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yUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIjgtPkkwIdOgEqIhgvYXBpL3YxL3JlY292ZXJfcGFzc3dvcmQSfQoTVmVyaWZ5UmVjb3ZlcnlUb2tlbhIiLmFwaS52MS5WZXJpZnlSZWNvdmVyeVRva2VuUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIqgtPkkwIkOgEqIh8vYXBpL3YxL3JlY292ZXJfcGFzc3dvcmQvdmVyaWZ5EmgKDVBhc3N3b3JkUmVzZXQSHC5hcGkudjEuUGFzc3dvcmRSZXNldFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiIYLT5JMCGzoBKiIWL2FwaS92MS9yZXNldF9wYXNzd29yZBJ4ChBHZW5lcmF0ZU1DUFRva2VuEh8uYXBpLnYxLkdlbmVyYXRlTUNQVG9rZW5SZXF1ZXN0GiAuYXBpLnYxLkdlbmVyYXRlTUNQVG9rZW5SZXNwb25zZSIhgtPkkwIbOgEqIhYvYXBpL3YxL2F1dGgvbWNwLXRva2VuQnEKCmNvbS5hcGkudjFCDEFjY291bnRQcm90b1ABWhxvcHNlZS9iYWNrZW5kL2dlbi9hcGkvdjE7Z2VuogIDQVhYqgIGQXBpLlYxygIGQXBpXFYx4gISQXBpXFYxXEdQQk1ldGFkYXRh6gIHQXBpOjpWMWIGcHJvdG8z", [file_google_protobuf_empty, file_google_api_annotations, file_validate_validate, file_api_v1_models]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message api.v1.LoginRequest.
|
|
19
|
+
* Use `create(LoginRequestSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const LoginRequestSchema = /*@__PURE__*/
|
|
22
|
+
messageDesc(file_api_v1_account, 0);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message api.v1.RegisterRequest.
|
|
26
|
+
* Use `create(RegisterRequestSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const RegisterRequestSchema = /*@__PURE__*/
|
|
29
|
+
messageDesc(file_api_v1_account, 1);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message api.v1.VerifyAccountRequest.
|
|
33
|
+
* Use `create(VerifyAccountRequestSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const VerifyAccountRequestSchema = /*@__PURE__*/
|
|
36
|
+
messageDesc(file_api_v1_account, 2);
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message api.v1.PasswordRecoverRequest.
|
|
40
|
+
* Use `create(PasswordRecoverRequestSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export const PasswordRecoverRequestSchema = /*@__PURE__*/
|
|
43
|
+
messageDesc(file_api_v1_account, 3);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message api.v1.PasswordResetRequest.
|
|
47
|
+
* Use `create(PasswordResetRequestSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const PasswordResetRequestSchema = /*@__PURE__*/
|
|
50
|
+
messageDesc(file_api_v1_account, 4);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message api.v1.VerifyRecoveryTokenRequest.
|
|
54
|
+
* Use `create(VerifyRecoveryTokenRequestSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const VerifyRecoveryTokenRequestSchema = /*@__PURE__*/
|
|
57
|
+
messageDesc(file_api_v1_account, 5);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Describes the message api.v1.GenerateMCPTokenRequest.
|
|
61
|
+
* Use `create(GenerateMCPTokenRequestSchema)` to create a new message.
|
|
62
|
+
*/
|
|
63
|
+
export const GenerateMCPTokenRequestSchema = /*@__PURE__*/
|
|
64
|
+
messageDesc(file_api_v1_account, 6);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message api.v1.GenerateMCPTokenResponse.
|
|
68
|
+
* Use `create(GenerateMCPTokenResponseSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export const GenerateMCPTokenResponseSchema = /*@__PURE__*/
|
|
71
|
+
messageDesc(file_api_v1_account, 7);
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Describes the message api.v1.RegisterResponse.
|
|
75
|
+
* Use `create(RegisterResponseSchema)` to create a new message.
|
|
76
|
+
*/
|
|
77
|
+
export const RegisterResponseSchema = /*@__PURE__*/
|
|
78
|
+
messageDesc(file_api_v1_account, 8);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Describes the message api.v1.VerifyAccountResponse.
|
|
82
|
+
* Use `create(VerifyAccountResponseSchema)` to create a new message.
|
|
83
|
+
*/
|
|
84
|
+
export const VerifyAccountResponseSchema = /*@__PURE__*/
|
|
85
|
+
messageDesc(file_api_v1_account, 9);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message api.v1.LoginResponse.
|
|
89
|
+
* Use `create(LoginResponseSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export const LoginResponseSchema = /*@__PURE__*/
|
|
92
|
+
messageDesc(file_api_v1_account, 10);
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Describes the enum api.v1.AuthProvider.
|
|
96
|
+
*/
|
|
97
|
+
export const AuthProviderSchema = /*@__PURE__*/
|
|
98
|
+
enumDesc(file_api_v1_account, 0);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum api.v1.AuthProvider
|
|
102
|
+
*/
|
|
103
|
+
export const AuthProvider = /*@__PURE__*/
|
|
104
|
+
tsEnum(AuthProviderSchema);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from service api.v1.AccountService
|
|
108
|
+
*/
|
|
109
|
+
export const AccountService = /*@__PURE__*/
|
|
110
|
+
serviceDesc(file_api_v1_account, 0);
|
|
111
|
+
|