@redonvn/event-ws-cliproxyapi-sdk 0.1.0 → 0.2.1
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 +430 -425
- package/dist/ws/client.js +6 -1
- package/dist/ws/types.d.ts +1 -0
- package/package.json +24 -28
- package/dist/client.d.ts +0 -19
- package/dist/client.js +0 -96
- package/dist/codec.d.ts +0 -8
- package/dist/codec.js +0 -79
- package/dist/errors/index.d.ts +0 -13
- package/dist/errors/index.js +0 -26
- package/dist/http/client.d.ts +0 -260
- package/dist/http/client.js +0 -591
- package/dist/http/index.d.ts +0 -2
- package/dist/http/index.js +0 -2
- package/dist/http/types.d.ts +0 -783
- package/dist/http/types.js +0 -1
- package/dist/http-client.d.ts +0 -259
- package/dist/http-client.js +0 -557
- package/dist/http-types.d.ts +0 -677
- package/dist/http-types.js +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/dist/types.d.ts +0 -101
- package/dist/types.js +0 -1
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/index.js +0 -2
package/dist/http/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/http-client.d.ts
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import type { ApiCallRequest, ApiCallResponse, AuthFileDeleteResponse, AuthFileListResponse, AuthFileListQuery, AuthFileModelsResponse, AuthFileModelsQuery, AuthFileStatusRequest, AuthFileStatusResponse, AuthStatusResponse, CliproxyAuthsQuery, CliproxyAuthsResponse, CliproxyModelsQuery, CliproxyModelsResponse, CliproxyChatRequest, Config, DeleteLogsResponse, ErrorLogFilesResponse, GeminiCompatibleRequest, GeminiGenerateContentRequest, OpenAIChatCompletionRequest, OpenAICompletionRequest, OpenAIResponsesRequest, ClaudeMessagesRequest, KeepAliveResponse, LogLinesResponse, ModelListResponse, OAuthCallbackRequest, OAuthCallbackResponse, OAuthStartResponse, RootResponse, UsageExportResponse, UsageGetResponse, UsageImportRequest, UsageImportResponse, KeyedValueResponse, PatchByIndexOrMatch, PatchStringListRequest, GeminiKey, GeminiKeyPatch, ClaudeKey, ClaudeKeyPatch, CodexKey, CodexKeyPatch, OpenAICompatibility, OpenAICompatPatch, VertexCompatKey, VertexCompatPatch, OAuthModelAlias, OAuthModelAliasPatch, OAuthExcludedModelsPatch, AmpModelMapping, AmpModelMappingsPatch, AmpUpstreamAPIKeyEntry, AmpUpstreamAPIKeysPatch } from './http-types.js';
|
|
2
|
-
export interface HttpClientOptions {
|
|
3
|
-
baseUrl: string;
|
|
4
|
-
accessKey?: string;
|
|
5
|
-
managementKey?: string;
|
|
6
|
-
localPassword?: string;
|
|
7
|
-
fetch?: typeof fetch;
|
|
8
|
-
}
|
|
9
|
-
export interface RequestOptions {
|
|
10
|
-
query?: Record<string, string | number | boolean | undefined>;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export declare class CliproxyApiClient {
|
|
14
|
-
readonly baseUrl: string;
|
|
15
|
-
private accessKey?;
|
|
16
|
-
private managementKey?;
|
|
17
|
-
private localPassword?;
|
|
18
|
-
private fetchImpl;
|
|
19
|
-
constructor(options: HttpClientOptions);
|
|
20
|
-
setAccessKey(key?: string): void;
|
|
21
|
-
setManagementKey(key?: string): void;
|
|
22
|
-
setLocalPassword(value?: string): void;
|
|
23
|
-
private buildUrl;
|
|
24
|
-
private requestJson;
|
|
25
|
-
private requestText;
|
|
26
|
-
private requestRaw;
|
|
27
|
-
private applyAuth;
|
|
28
|
-
getWebsocketUrl(path?: string): string;
|
|
29
|
-
getRoot(): Promise<RootResponse>;
|
|
30
|
-
getManagementHtml(): Promise<Response>;
|
|
31
|
-
keepAlive(): Promise<KeepAliveResponse>;
|
|
32
|
-
anthropicCallback(query: {
|
|
33
|
-
code?: string;
|
|
34
|
-
state?: string;
|
|
35
|
-
error?: string;
|
|
36
|
-
error_description?: string;
|
|
37
|
-
}): Promise<Response>;
|
|
38
|
-
codexCallback(query: {
|
|
39
|
-
code?: string;
|
|
40
|
-
state?: string;
|
|
41
|
-
error?: string;
|
|
42
|
-
error_description?: string;
|
|
43
|
-
}): Promise<Response>;
|
|
44
|
-
googleCallback(query: {
|
|
45
|
-
code?: string;
|
|
46
|
-
state?: string;
|
|
47
|
-
error?: string;
|
|
48
|
-
error_description?: string;
|
|
49
|
-
}): Promise<Response>;
|
|
50
|
-
iflowCallback(query: {
|
|
51
|
-
code?: string;
|
|
52
|
-
state?: string;
|
|
53
|
-
error?: string;
|
|
54
|
-
error_description?: string;
|
|
55
|
-
}): Promise<Response>;
|
|
56
|
-
antigravityCallback(query: {
|
|
57
|
-
code?: string;
|
|
58
|
-
state?: string;
|
|
59
|
-
error?: string;
|
|
60
|
-
error_description?: string;
|
|
61
|
-
}): Promise<Response>;
|
|
62
|
-
postV1Internal(method: string, body: GeminiGenerateContentRequest, options?: RequestOptions): Promise<Response>;
|
|
63
|
-
getModels(): Promise<ModelListResponse>;
|
|
64
|
-
postChatCompletions(body: OpenAIChatCompletionRequest, options?: RequestOptions): Promise<Response>;
|
|
65
|
-
postCompletions(body: OpenAICompletionRequest, options?: RequestOptions): Promise<Response>;
|
|
66
|
-
postMessages(body: ClaudeMessagesRequest, options?: RequestOptions): Promise<Response>;
|
|
67
|
-
postMessagesCountTokens(body: ClaudeMessagesRequest, options?: RequestOptions): Promise<Response>;
|
|
68
|
-
postResponses(body: OpenAIResponsesRequest, options?: RequestOptions): Promise<Response>;
|
|
69
|
-
postResponsesCompact(body: OpenAIResponsesRequest, options?: RequestOptions): Promise<Response>;
|
|
70
|
-
getCliproxyAuths(query?: CliproxyAuthsQuery): Promise<CliproxyAuthsResponse>;
|
|
71
|
-
getCliproxyModels(query?: CliproxyModelsQuery): Promise<CliproxyModelsResponse>;
|
|
72
|
-
postCliproxyChat(body: CliproxyChatRequest, options?: RequestOptions): Promise<Response>;
|
|
73
|
-
getGeminiModels(options?: RequestOptions): Promise<Response>;
|
|
74
|
-
postGeminiModelsAction(action: string, body: GeminiCompatibleRequest, options?: RequestOptions): Promise<Response>;
|
|
75
|
-
getGeminiModelsAction(action: string, query?: Record<string, string | number | boolean | undefined>, options?: RequestOptions): Promise<Response>;
|
|
76
|
-
getUsage(): Promise<UsageGetResponse>;
|
|
77
|
-
exportUsage(): Promise<UsageExportResponse>;
|
|
78
|
-
importUsage(body: UsageImportRequest): Promise<UsageImportResponse>;
|
|
79
|
-
getConfig(): Promise<Config>;
|
|
80
|
-
getConfigYaml(): Promise<string>;
|
|
81
|
-
putConfigYaml(body: string): Promise<KeyedValueResponse<"status", "ok">>;
|
|
82
|
-
getLatestVersion(): Promise<KeyedValueResponse<"latest-version", string>>;
|
|
83
|
-
getDebug(): Promise<KeyedValueResponse<"debug", boolean>>;
|
|
84
|
-
putDebug(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
85
|
-
patchDebug(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
86
|
-
getLoggingToFile(): Promise<KeyedValueResponse<"logging-to-file", boolean>>;
|
|
87
|
-
putLoggingToFile(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
88
|
-
patchLoggingToFile(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
89
|
-
getLogsMaxTotalSizeMB(): Promise<KeyedValueResponse<"logs-max-total-size-mb", number>>;
|
|
90
|
-
putLogsMaxTotalSizeMB(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
91
|
-
patchLogsMaxTotalSizeMB(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
92
|
-
getErrorLogsMaxFiles(): Promise<KeyedValueResponse<"error-logs-max-files", number>>;
|
|
93
|
-
putErrorLogsMaxFiles(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
94
|
-
patchErrorLogsMaxFiles(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
95
|
-
getUsageStatisticsEnabled(): Promise<KeyedValueResponse<"usage-statistics-enabled", boolean>>;
|
|
96
|
-
putUsageStatisticsEnabled(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
97
|
-
patchUsageStatisticsEnabled(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
98
|
-
getProxyUrl(): Promise<KeyedValueResponse<"proxy-url", string>>;
|
|
99
|
-
putProxyUrl(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
100
|
-
patchProxyUrl(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
101
|
-
deleteProxyUrl(): Promise<KeyedValueResponse<"status", "ok">>;
|
|
102
|
-
apiCall(body: ApiCallRequest): Promise<ApiCallResponse>;
|
|
103
|
-
getSwitchProject(): Promise<KeyedValueResponse<"switch-project", boolean>>;
|
|
104
|
-
putSwitchProject(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
105
|
-
patchSwitchProject(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
106
|
-
getSwitchPreviewModel(): Promise<KeyedValueResponse<"switch-preview-model", boolean>>;
|
|
107
|
-
putSwitchPreviewModel(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
108
|
-
patchSwitchPreviewModel(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
109
|
-
getApiKeys(): Promise<KeyedValueResponse<"api-keys", string[]>>;
|
|
110
|
-
putApiKeys(body: string[] | {
|
|
111
|
-
items: string[];
|
|
112
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
113
|
-
patchApiKeys(body: PatchStringListRequest): Promise<KeyedValueResponse<"status", "ok">>;
|
|
114
|
-
deleteApiKeys(query?: {
|
|
115
|
-
index?: number;
|
|
116
|
-
value?: string;
|
|
117
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
118
|
-
getGeminiKeys(): Promise<KeyedValueResponse<"gemini-api-key", GeminiKey[]>>;
|
|
119
|
-
putGeminiKeys(body: GeminiKey[] | {
|
|
120
|
-
items: GeminiKey[];
|
|
121
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
122
|
-
patchGeminiKey(body: PatchByIndexOrMatch<GeminiKeyPatch>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
123
|
-
deleteGeminiKey(query?: {
|
|
124
|
-
'api-key'?: string;
|
|
125
|
-
index?: number;
|
|
126
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
127
|
-
getLogs(query?: {
|
|
128
|
-
limit?: number;
|
|
129
|
-
after?: number;
|
|
130
|
-
}): Promise<LogLinesResponse>;
|
|
131
|
-
deleteLogs(): Promise<DeleteLogsResponse>;
|
|
132
|
-
getRequestErrorLogs(): Promise<ErrorLogFilesResponse>;
|
|
133
|
-
downloadRequestErrorLog(name: string): Promise<Response>;
|
|
134
|
-
getRequestLogById(id: string): Promise<Response>;
|
|
135
|
-
getRequestLog(): Promise<KeyedValueResponse<"request-log", boolean>>;
|
|
136
|
-
putRequestLog(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
137
|
-
patchRequestLog(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
138
|
-
getWebsocketAuth(): Promise<KeyedValueResponse<"ws-auth", boolean>>;
|
|
139
|
-
putWebsocketAuth(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
140
|
-
patchWebsocketAuth(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
141
|
-
getAmpCode(): Promise<KeyedValueResponse<"ampcode", import("./http-types.js").AmpCodeConfig>>;
|
|
142
|
-
getAmpUpstreamUrl(): Promise<KeyedValueResponse<"upstream-url", string>>;
|
|
143
|
-
putAmpUpstreamUrl(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
144
|
-
patchAmpUpstreamUrl(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
145
|
-
deleteAmpUpstreamUrl(): Promise<KeyedValueResponse<"status", "ok">>;
|
|
146
|
-
getAmpUpstreamApiKey(): Promise<KeyedValueResponse<"upstream-api-key", string>>;
|
|
147
|
-
putAmpUpstreamApiKey(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
148
|
-
patchAmpUpstreamApiKey(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
149
|
-
deleteAmpUpstreamApiKey(): Promise<KeyedValueResponse<"status", "ok">>;
|
|
150
|
-
getAmpRestrictManagementToLocalhost(): Promise<KeyedValueResponse<"restrict-management-to-localhost", boolean>>;
|
|
151
|
-
putAmpRestrictManagementToLocalhost(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
152
|
-
patchAmpRestrictManagementToLocalhost(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
153
|
-
getAmpModelMappings(): Promise<KeyedValueResponse<"model-mappings", AmpModelMapping[]>>;
|
|
154
|
-
putAmpModelMappings(body: AmpModelMapping[] | AmpModelMappingsPatch): Promise<KeyedValueResponse<"status", "ok">>;
|
|
155
|
-
patchAmpModelMappings(body: AmpModelMappingsPatch): Promise<KeyedValueResponse<"status", "ok">>;
|
|
156
|
-
deleteAmpModelMappings(query?: {
|
|
157
|
-
index?: number;
|
|
158
|
-
match?: string;
|
|
159
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
160
|
-
getAmpForceModelMappings(): Promise<KeyedValueResponse<"force-model-mappings", boolean>>;
|
|
161
|
-
putAmpForceModelMappings(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
162
|
-
patchAmpForceModelMappings(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
163
|
-
getAmpUpstreamApiKeys(): Promise<KeyedValueResponse<"upstream-api-keys", AmpUpstreamAPIKeyEntry[]>>;
|
|
164
|
-
putAmpUpstreamApiKeys(body: AmpUpstreamAPIKeyEntry[] | AmpUpstreamAPIKeysPatch): Promise<KeyedValueResponse<"status", "ok">>;
|
|
165
|
-
patchAmpUpstreamApiKeys(body: AmpUpstreamAPIKeysPatch): Promise<KeyedValueResponse<"status", "ok">>;
|
|
166
|
-
deleteAmpUpstreamApiKeys(query?: {
|
|
167
|
-
index?: number;
|
|
168
|
-
match?: string;
|
|
169
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
170
|
-
getRequestRetry(): Promise<KeyedValueResponse<"request-retry", number>>;
|
|
171
|
-
putRequestRetry(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
172
|
-
patchRequestRetry(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
173
|
-
getMaxRetryInterval(): Promise<KeyedValueResponse<"max-retry-interval", number>>;
|
|
174
|
-
putMaxRetryInterval(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
175
|
-
patchMaxRetryInterval(body: KeyedValueResponse<'value', number>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
176
|
-
getForceModelPrefix(): Promise<KeyedValueResponse<"force-model-prefix", boolean>>;
|
|
177
|
-
putForceModelPrefix(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
178
|
-
patchForceModelPrefix(body: KeyedValueResponse<'value', boolean>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
179
|
-
getRoutingStrategy(): Promise<KeyedValueResponse<"strategy", string>>;
|
|
180
|
-
putRoutingStrategy(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
181
|
-
patchRoutingStrategy(body: KeyedValueResponse<'value', string>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
182
|
-
getClaudeKeys(): Promise<KeyedValueResponse<"claude-api-key", ClaudeKey[]>>;
|
|
183
|
-
putClaudeKeys(body: ClaudeKey[] | {
|
|
184
|
-
items: ClaudeKey[];
|
|
185
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
186
|
-
patchClaudeKey(body: PatchByIndexOrMatch<ClaudeKeyPatch>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
187
|
-
deleteClaudeKey(query?: {
|
|
188
|
-
'api-key'?: string;
|
|
189
|
-
index?: number;
|
|
190
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
191
|
-
getCodexKeys(): Promise<KeyedValueResponse<"codex-api-key", CodexKey[]>>;
|
|
192
|
-
putCodexKeys(body: CodexKey[] | {
|
|
193
|
-
items: CodexKey[];
|
|
194
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
195
|
-
patchCodexKey(body: PatchByIndexOrMatch<CodexKeyPatch>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
196
|
-
deleteCodexKey(query?: {
|
|
197
|
-
'api-key'?: string;
|
|
198
|
-
index?: number;
|
|
199
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
200
|
-
getOpenAICompatibility(): Promise<KeyedValueResponse<"openai-compatibility", OpenAICompatibility[]>>;
|
|
201
|
-
putOpenAICompatibility(body: OpenAICompatibility[] | {
|
|
202
|
-
items: OpenAICompatibility[];
|
|
203
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
204
|
-
patchOpenAICompatibility(body: PatchByIndexOrMatch<OpenAICompatPatch>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
205
|
-
deleteOpenAICompatibility(query?: {
|
|
206
|
-
name?: string;
|
|
207
|
-
index?: number;
|
|
208
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
209
|
-
getVertexCompatKeys(): Promise<KeyedValueResponse<"vertex-api-key", VertexCompatKey[]>>;
|
|
210
|
-
putVertexCompatKeys(body: VertexCompatKey[] | {
|
|
211
|
-
items: VertexCompatKey[];
|
|
212
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
213
|
-
patchVertexCompatKey(body: PatchByIndexOrMatch<VertexCompatPatch>): Promise<KeyedValueResponse<"status", "ok">>;
|
|
214
|
-
deleteVertexCompatKey(query?: {
|
|
215
|
-
'api-key'?: string;
|
|
216
|
-
index?: number;
|
|
217
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
218
|
-
getOAuthExcludedModels(): Promise<KeyedValueResponse<"oauth-excluded-models", Record<string, string[]>>>;
|
|
219
|
-
putOAuthExcludedModels(body: Record<string, string[]> | {
|
|
220
|
-
items: Record<string, string[]>;
|
|
221
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
222
|
-
patchOAuthExcludedModels(body: OAuthExcludedModelsPatch): Promise<KeyedValueResponse<"status", "ok">>;
|
|
223
|
-
deleteOAuthExcludedModels(query?: {
|
|
224
|
-
provider?: string;
|
|
225
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
226
|
-
getOAuthModelAlias(): Promise<KeyedValueResponse<"oauth-model-alias", Record<string, OAuthModelAlias[]>>>;
|
|
227
|
-
putOAuthModelAlias(body: Record<string, OAuthModelAlias[]> | {
|
|
228
|
-
items: Record<string, OAuthModelAlias[]>;
|
|
229
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
230
|
-
patchOAuthModelAlias(body: PatchByIndexOrMatch<OAuthModelAliasPatch> | OAuthModelAliasPatch): Promise<KeyedValueResponse<"status", "ok">>;
|
|
231
|
-
deleteOAuthModelAlias(query?: {
|
|
232
|
-
provider?: string;
|
|
233
|
-
channel?: string;
|
|
234
|
-
}): Promise<KeyedValueResponse<"status", "ok">>;
|
|
235
|
-
listAuthFiles(query?: AuthFileListQuery): Promise<AuthFileListResponse>;
|
|
236
|
-
getAuthFileModels(query: AuthFileModelsQuery): Promise<AuthFileModelsResponse>;
|
|
237
|
-
getStaticModelDefinitions(channel: string): Promise<Response>;
|
|
238
|
-
downloadAuthFile(query: {
|
|
239
|
-
name: string;
|
|
240
|
-
}): Promise<Response>;
|
|
241
|
-
uploadAuthFile(file: Blob, name?: string): Promise<Response>;
|
|
242
|
-
deleteAuthFile(query: {
|
|
243
|
-
name: string;
|
|
244
|
-
}): Promise<AuthFileDeleteResponse>;
|
|
245
|
-
patchAuthFileStatus(body: AuthFileStatusRequest): Promise<AuthFileStatusResponse>;
|
|
246
|
-
importVertexCredential(file: Blob): Promise<Response>;
|
|
247
|
-
requestAnthropicAuthUrl(): Promise<OAuthStartResponse>;
|
|
248
|
-
requestCodexAuthUrl(): Promise<OAuthStartResponse>;
|
|
249
|
-
requestGeminiCliAuthUrl(): Promise<OAuthStartResponse>;
|
|
250
|
-
requestAntigravityAuthUrl(): Promise<OAuthStartResponse>;
|
|
251
|
-
requestQwenAuthUrl(): Promise<OAuthStartResponse>;
|
|
252
|
-
requestKimiAuthUrl(): Promise<OAuthStartResponse>;
|
|
253
|
-
requestIFlowAuthUrl(): Promise<OAuthStartResponse>;
|
|
254
|
-
requestIFlowCookieToken(body: KeyedValueResponse<'cookie', string>): Promise<OAuthStartResponse>;
|
|
255
|
-
postOAuthCallback(body: OAuthCallbackRequest): Promise<OAuthCallbackResponse>;
|
|
256
|
-
getAuthStatus(query?: {
|
|
257
|
-
state?: string;
|
|
258
|
-
}): Promise<AuthStatusResponse>;
|
|
259
|
-
}
|