qing-client 0.0.34 → 0.0.36
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/lib/index.d.ts +1 -1
- package/lib/service/OrgService.js +4 -4
- package/lib/types/ai.d.ts +1 -7
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export * from './types/file';
|
|
|
18
18
|
export * from "./types/fronthost";
|
|
19
19
|
export * from "./types/audit";
|
|
20
20
|
export * from "./types/aigc";
|
|
21
|
-
export { ApiSuccessResponse, ApiErrorResponse,
|
|
21
|
+
export { ApiSuccessResponse, ApiErrorResponse, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionStreamResponse, ProviderListItem, ProviderDetail, ProviderModel, ModelListItem, ModelDetail, ModelConfig, CreateAssistantRequest, UpdateAssistantRequest, AssistantResponse, AssistantListResponse, SessionMessage, SessionResponse, SessionListResponse, SessionDetailResponse, SessionStatistics, PaginatedSessionMessageResponse, SessionMessageDetail, BatchDeleteSessionsResponse, AssistantModelsResponse, ModelInfoResponse, AddMessageRequest, SwitchModelRequest, CreateSessionRequest, UpdateSessionRequest } from "./types/ai";
|
|
22
22
|
export { BaseClient } from './client/BaseClient';
|
|
23
23
|
export * from "./types/provider";
|
|
24
24
|
export * from "./types/usage";
|
|
@@ -65,7 +65,7 @@ class OrgService extends BaseClient_1.BaseClient {
|
|
|
65
65
|
* GET /admin/projects
|
|
66
66
|
*/
|
|
67
67
|
async adminListProjects(query, options) {
|
|
68
|
-
return this.
|
|
68
|
+
return this.paginatedRequest("/admin/projects", {
|
|
69
69
|
...options,
|
|
70
70
|
method: "GET",
|
|
71
71
|
params: query,
|
|
@@ -160,7 +160,7 @@ class OrgService extends BaseClient_1.BaseClient {
|
|
|
160
160
|
* GET /admin/apps
|
|
161
161
|
*/
|
|
162
162
|
async adminListApps(query, options) {
|
|
163
|
-
return this.
|
|
163
|
+
return this.paginatedRequest("/admin/apps", {
|
|
164
164
|
...options,
|
|
165
165
|
method: "GET",
|
|
166
166
|
params: query,
|
|
@@ -234,7 +234,7 @@ class OrgService extends BaseClient_1.BaseClient {
|
|
|
234
234
|
* GET /admin/orgs
|
|
235
235
|
*/
|
|
236
236
|
async adminListOrganizations(query, options) {
|
|
237
|
-
return this.
|
|
237
|
+
return this.paginatedRequest("/admin/orgs", {
|
|
238
238
|
...options,
|
|
239
239
|
method: "GET",
|
|
240
240
|
params: query,
|
|
@@ -298,7 +298,7 @@ class OrgService extends BaseClient_1.BaseClient {
|
|
|
298
298
|
* GET /admin/org-resolution-rules
|
|
299
299
|
*/
|
|
300
300
|
async adminListOrgResolutionRules(query, options) {
|
|
301
|
-
return this.
|
|
301
|
+
return this.paginatedRequest("/admin/org-resolution-rules", {
|
|
302
302
|
...options,
|
|
303
303
|
method: "GET",
|
|
304
304
|
params: query,
|
package/lib/types/ai.d.ts
CHANGED
|
@@ -9,13 +9,7 @@ export interface ApiErrorResponse {
|
|
|
9
9
|
error?: string;
|
|
10
10
|
}
|
|
11
11
|
export type ApiResponse<T = any> = ApiSuccessResponse<T> | ApiErrorResponse;
|
|
12
|
-
export
|
|
13
|
-
data: T[];
|
|
14
|
-
total: number;
|
|
15
|
-
page: number;
|
|
16
|
-
limit: number;
|
|
17
|
-
totalPages: number;
|
|
18
|
-
}
|
|
12
|
+
export { PaginatedResponse, Pagination } from './index';
|
|
19
13
|
export interface ChatCompletionRequest {
|
|
20
14
|
sessionId: string;
|
|
21
15
|
message: string;
|