@sdkwork/ai-sdk 1.0.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/README.md +276 -0
- package/dist/api/assistants.d.ts +19 -0
- package/dist/api/assistants.d.ts.map +1 -0
- package/dist/api/audio.d.ts +15 -0
- package/dist/api/audio.d.ts.map +1 -0
- package/dist/api/base.d.ts +13 -0
- package/dist/api/base.d.ts.map +1 -0
- package/dist/api/batches.d.ts +17 -0
- package/dist/api/batches.d.ts.map +1 -0
- package/dist/api/chat-completions.d.ts +19 -0
- package/dist/api/chat-completions.d.ts.map +1 -0
- package/dist/api/chat.d.ts +27 -0
- package/dist/api/chat.d.ts.map +1 -0
- package/dist/api/context.d.ts +16 -0
- package/dist/api/context.d.ts.map +1 -0
- package/dist/api/embeddings.d.ts +10 -0
- package/dist/api/embeddings.d.ts.map +1 -0
- package/dist/api/files.d.ts +19 -0
- package/dist/api/files.d.ts.map +1 -0
- package/dist/api/images.d.ts +14 -0
- package/dist/api/images.d.ts.map +1 -0
- package/dist/api/index.d.ts +20 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/knowledge-bases.d.ts +27 -0
- package/dist/api/knowledge-bases.d.ts.map +1 -0
- package/dist/api/models.d.ts +14 -0
- package/dist/api/models.d.ts.map +1 -0
- package/dist/api/moderations.d.ts +10 -0
- package/dist/api/moderations.d.ts.map +1 -0
- package/dist/api/music.d.ts +17 -0
- package/dist/api/music.d.ts.map +1 -0
- package/dist/api/paths.d.ts +3 -0
- package/dist/api/paths.d.ts.map +1 -0
- package/dist/api/rerank.d.ts +10 -0
- package/dist/api/rerank.d.ts.map +1 -0
- package/dist/api/responses.d.ts +18 -0
- package/dist/api/responses.d.ts.map +1 -0
- package/dist/api/threads.d.ts +43 -0
- package/dist/api/threads.d.ts.map +1 -0
- package/dist/api/videos.d.ts +17 -0
- package/dist/api/videos.d.ts.map +1 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/http/client.d.ts +21 -0
- package/dist/http/client.d.ts.map +1 -0
- package/dist/http/index.d.ts +2 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +639 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk.d.ts +49 -0
- package/dist/sdk.d.ts.map +1 -0
- package/dist/types/annotation.d.ts +11 -0
- package/dist/types/annotation.d.ts.map +1 -0
- package/dist/types/assistant-create-request.d.ts +26 -0
- package/dist/types/assistant-create-request.d.ts.map +1 -0
- package/dist/types/assistant-delete-response.d.ts +10 -0
- package/dist/types/assistant-delete-response.d.ts.map +1 -0
- package/dist/types/assistant-list-response.d.ts +15 -0
- package/dist/types/assistant-list-response.d.ts.map +1 -0
- package/dist/types/assistant-response.d.ts +30 -0
- package/dist/types/assistant-response.d.ts.map +1 -0
- package/dist/types/attachment.d.ts +8 -0
- package/dist/types/attachment.d.ts.map +1 -0
- package/dist/types/audio-parameters.d.ts +8 -0
- package/dist/types/audio-parameters.d.ts.map +1 -0
- package/dist/types/audio.d.ts +12 -0
- package/dist/types/audio.d.ts.map +1 -0
- package/dist/types/batch-create-request.d.ts +12 -0
- package/dist/types/batch-create-request.d.ts.map +1 -0
- package/dist/types/batch-list-response.d.ts +15 -0
- package/dist/types/batch-list-response.d.ts.map +1 -0
- package/dist/types/batch-response.d.ts +42 -0
- package/dist/types/batch-response.d.ts.map +1 -0
- package/dist/types/cancel-response-response.d.ts +2 -0
- package/dist/types/cancel-response-response.d.ts.map +1 -0
- package/dist/types/categories.d.ts +22 -0
- package/dist/types/categories.d.ts.map +1 -0
- package/dist/types/category-scores.d.ts +22 -0
- package/dist/types/category-scores.d.ts.map +1 -0
- package/dist/types/chat-completion-delete-response.d.ts +10 -0
- package/dist/types/chat-completion-delete-response.d.ts.map +1 -0
- package/dist/types/chat-completion-list.d.ts +15 -0
- package/dist/types/chat-completion-list.d.ts.map +1 -0
- package/dist/types/chat-completion-request.d.ts +66 -0
- package/dist/types/chat-completion-request.d.ts.map +1 -0
- package/dist/types/chat-completion-response.d.ts +22 -0
- package/dist/types/chat-completion-response.d.ts.map +1 -0
- package/dist/types/chat-message-list.d.ts +15 -0
- package/dist/types/chat-message-list.d.ts.map +1 -0
- package/dist/types/chat-message.d.ts +23 -0
- package/dist/types/chat-message.d.ts.map +1 -0
- package/dist/types/chat-with-context-request.d.ts +3 -0
- package/dist/types/chat-with-context-request.d.ts.map +1 -0
- package/dist/types/choice.d.ts +16 -0
- package/dist/types/choice.d.ts.map +1 -0
- package/dist/types/chunk-config.d.ts +10 -0
- package/dist/types/chunk-config.d.ts.map +1 -0
- package/dist/types/common.d.ts +36 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/completion-tokens-details.d.ts +12 -0
- package/dist/types/completion-tokens-details.d.ts.map +1 -0
- package/dist/types/content-block.d.ts +12 -0
- package/dist/types/content-block.d.ts.map +1 -0
- package/dist/types/content.d.ts +13 -0
- package/dist/types/content.d.ts.map +1 -0
- package/dist/types/context-create-request.d.ts +16 -0
- package/dist/types/context-create-request.d.ts.map +1 -0
- package/dist/types/context-message.d.ts +13 -0
- package/dist/types/context-message.d.ts.map +1 -0
- package/dist/types/context-response.d.ts +22 -0
- package/dist/types/context-response.d.ts.map +1 -0
- package/dist/types/count-claude-tokens-request.d.ts +2 -0
- package/dist/types/count-claude-tokens-request.d.ts.map +1 -0
- package/dist/types/count-claude-tokens-response.d.ts +2 -0
- package/dist/types/count-claude-tokens-response.d.ts.map +1 -0
- package/dist/types/create-chat-completion-response.d.ts +2 -0
- package/dist/types/create-chat-completion-response.d.ts.map +1 -0
- package/dist/types/create-claude-message-request.d.ts +2 -0
- package/dist/types/create-claude-message-request.d.ts.map +1 -0
- package/dist/types/create-claude-message-response.d.ts +2 -0
- package/dist/types/create-claude-message-response.d.ts.map +1 -0
- package/dist/types/create-response-request.d.ts +3 -0
- package/dist/types/create-response-request.d.ts.map +1 -0
- package/dist/types/create-response-response.d.ts +2 -0
- package/dist/types/create-response-response.d.ts.map +1 -0
- package/dist/types/create-run-response.d.ts +2 -0
- package/dist/types/create-run-response.d.ts.map +1 -0
- package/dist/types/create-thread-and-run-response.d.ts +2 -0
- package/dist/types/create-thread-and-run-response.d.ts.map +1 -0
- package/dist/types/create-transcription-request.d.ts +5 -0
- package/dist/types/create-transcription-request.d.ts.map +1 -0
- package/dist/types/create-translation-request.d.ts +5 -0
- package/dist/types/create-translation-request.d.ts.map +1 -0
- package/dist/types/delete-response-response.d.ts +2 -0
- package/dist/types/delete-response-response.d.ts.map +1 -0
- package/dist/types/document-add-request.d.ts +17 -0
- package/dist/types/document-add-request.d.ts.map +1 -0
- package/dist/types/document-response.d.ts +22 -0
- package/dist/types/document-response.d.ts.map +1 -0
- package/dist/types/document.d.ts +8 -0
- package/dist/types/document.d.ts.map +1 -0
- package/dist/types/embedding-request.d.ts +9 -0
- package/dist/types/embedding-request.d.ts.map +1 -0
- package/dist/types/embedding-response.d.ts +14 -0
- package/dist/types/embedding-response.d.ts.map +1 -0
- package/dist/types/embedding.d.ts +10 -0
- package/dist/types/embedding.d.ts.map +1 -0
- package/dist/types/error-object.d.ts +12 -0
- package/dist/types/error-object.d.ts.map +1 -0
- package/dist/types/errors.d.ts +9 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/file-citation.d.ts +8 -0
- package/dist/types/file-citation.d.ts.map +1 -0
- package/dist/types/filter.d.ts +10 -0
- package/dist/types/filter.d.ts.map +1 -0
- package/dist/types/function-call.d.ts +8 -0
- package/dist/types/function-call.d.ts.map +1 -0
- package/dist/types/function.d.ts +8 -0
- package/dist/types/function.d.ts.map +1 -0
- package/dist/types/get-response-response.d.ts +2 -0
- package/dist/types/get-response-response.d.ts.map +1 -0
- package/dist/types/image-data.d.ts +6 -0
- package/dist/types/image-data.d.ts.map +1 -0
- package/dist/types/image-file-content.d.ts +6 -0
- package/dist/types/image-file-content.d.ts.map +1 -0
- package/dist/types/image-generation-request.d.ts +14 -0
- package/dist/types/image-generation-request.d.ts.map +1 -0
- package/dist/types/image-generation-response.d.ts +6 -0
- package/dist/types/image-generation-response.d.ts.map +1 -0
- package/dist/types/index.d.ts +131 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/json-schema.d.ts +12 -0
- package/dist/types/json-schema.d.ts.map +1 -0
- package/dist/types/knowledge-base-create-request.d.ts +14 -0
- package/dist/types/knowledge-base-create-request.d.ts.map +1 -0
- package/dist/types/knowledge-base-list-response.d.ts +11 -0
- package/dist/types/knowledge-base-list-response.d.ts.map +1 -0
- package/dist/types/knowledge-base-response.d.ts +22 -0
- package/dist/types/knowledge-base-response.d.ts.map +1 -0
- package/dist/types/knowledge-search-request.d.ts +15 -0
- package/dist/types/knowledge-search-request.d.ts.map +1 -0
- package/dist/types/knowledge-search-response.d.ts +9 -0
- package/dist/types/knowledge-search-response.d.ts.map +1 -0
- package/dist/types/last-error.d.ts +8 -0
- package/dist/types/last-error.d.ts.map +1 -0
- package/dist/types/list-documents-response.d.ts +3 -0
- package/dist/types/list-documents-response.d.ts.map +1 -0
- package/dist/types/list-response-input-items-response.d.ts +2 -0
- package/dist/types/list-response-input-items-response.d.ts.map +1 -0
- package/dist/types/logprobs.d.ts +9 -0
- package/dist/types/logprobs.d.ts.map +1 -0
- package/dist/types/message.d.ts +17 -0
- package/dist/types/message.d.ts.map +1 -0
- package/dist/types/moderation-request.d.ts +7 -0
- package/dist/types/moderation-request.d.ts.map +1 -0
- package/dist/types/moderation-response.d.ts +11 -0
- package/dist/types/moderation-response.d.ts.map +1 -0
- package/dist/types/moderation-result.d.ts +12 -0
- package/dist/types/moderation-result.d.ts.map +1 -0
- package/dist/types/music-error.d.ts +8 -0
- package/dist/types/music-error.d.ts.map +1 -0
- package/dist/types/music-generation-request.d.ts +24 -0
- package/dist/types/music-generation-request.d.ts.map +1 -0
- package/dist/types/open-ai-file-delete-response.d.ts +6 -0
- package/dist/types/open-ai-file-delete-response.d.ts.map +1 -0
- package/dist/types/open-ai-file-list.d.ts +15 -0
- package/dist/types/open-ai-file-list.d.ts.map +1 -0
- package/dist/types/open-ai-file-object.d.ts +24 -0
- package/dist/types/open-ai-file-object.d.ts.map +1 -0
- package/dist/types/open-ai-model-delete-response.d.ts +6 -0
- package/dist/types/open-ai-model-delete-response.d.ts.map +1 -0
- package/dist/types/open-ai-model-list.d.ts +6 -0
- package/dist/types/open-ai-model-list.d.ts.map +1 -0
- package/dist/types/open-ai-model.d.ts +7 -0
- package/dist/types/open-ai-model.d.ts.map +1 -0
- package/dist/types/open-ai-video-delete-response.d.ts +6 -0
- package/dist/types/open-ai-video-delete-response.d.ts.map +1 -0
- package/dist/types/open-ai-video-list.d.ts +6 -0
- package/dist/types/open-ai-video-list.d.ts.map +1 -0
- package/dist/types/open-ai-video.d.ts +35 -0
- package/dist/types/open-ai-video.d.ts.map +1 -0
- package/dist/types/patch-update-completion-request.d.ts +2 -0
- package/dist/types/patch-update-completion-request.d.ts.map +1 -0
- package/dist/types/prompt-tokens-details.d.ts +8 -0
- package/dist/types/prompt-tokens-details.d.ts.map +1 -0
- package/dist/types/request-counts.d.ts +10 -0
- package/dist/types/request-counts.d.ts.map +1 -0
- package/dist/types/required-action.d.ts +9 -0
- package/dist/types/required-action.d.ts.map +1 -0
- package/dist/types/rerank-request.d.ts +15 -0
- package/dist/types/rerank-request.d.ts.map +1 -0
- package/dist/types/rerank-response.d.ts +16 -0
- package/dist/types/rerank-response.d.ts.map +1 -0
- package/dist/types/response-format.d.ts +9 -0
- package/dist/types/response-format.d.ts.map +1 -0
- package/dist/types/result.d.ts +10 -0
- package/dist/types/result.d.ts.map +1 -0
- package/dist/types/run-create-request.d.ts +33 -0
- package/dist/types/run-create-request.d.ts.map +1 -0
- package/dist/types/run-list-response.d.ts +15 -0
- package/dist/types/run-list-response.d.ts.map +1 -0
- package/dist/types/run-response.d.ts +55 -0
- package/dist/types/run-response.d.ts.map +1 -0
- package/dist/types/run-step-list-response.d.ts +15 -0
- package/dist/types/run-step-list-response.d.ts.map +1 -0
- package/dist/types/run-step-response.d.ts +34 -0
- package/dist/types/run-step-response.d.ts.map +1 -0
- package/dist/types/search-result.d.ts +14 -0
- package/dist/types/search-result.d.ts.map +1 -0
- package/dist/types/segment.d.ts +13 -0
- package/dist/types/segment.d.ts.map +1 -0
- package/dist/types/speech-request.d.ts +10 -0
- package/dist/types/speech-request.d.ts.map +1 -0
- package/dist/types/stream-options.d.ts +8 -0
- package/dist/types/stream-options.d.ts.map +1 -0
- package/dist/types/submit-tool-outputs-request.d.ts +3 -0
- package/dist/types/submit-tool-outputs-request.d.ts.map +1 -0
- package/dist/types/submit-tool-outputs-response.d.ts +2 -0
- package/dist/types/submit-tool-outputs-response.d.ts.map +1 -0
- package/dist/types/submit-tool-outputs.d.ts +7 -0
- package/dist/types/submit-tool-outputs.d.ts.map +1 -0
- package/dist/types/suno-music-delete-response.d.ts +6 -0
- package/dist/types/suno-music-delete-response.d.ts.map +1 -0
- package/dist/types/suno-music-list.d.ts +9 -0
- package/dist/types/suno-music-list.d.ts.map +1 -0
- package/dist/types/suno-music.d.ts +31 -0
- package/dist/types/suno-music.d.ts.map +1 -0
- package/dist/types/text-content.d.ts +8 -0
- package/dist/types/text-content.d.ts.map +1 -0
- package/dist/types/thinking.d.ts +6 -0
- package/dist/types/thinking.d.ts.map +1 -0
- package/dist/types/thread-create-request.d.ts +11 -0
- package/dist/types/thread-create-request.d.ts.map +1 -0
- package/dist/types/thread-delete-response.d.ts +10 -0
- package/dist/types/thread-delete-response.d.ts.map +1 -0
- package/dist/types/thread-message-create-request.d.ts +13 -0
- package/dist/types/thread-message-create-request.d.ts.map +1 -0
- package/dist/types/thread-message-list-response.d.ts +15 -0
- package/dist/types/thread-message-list-response.d.ts.map +1 -0
- package/dist/types/thread-message-modify-request.d.ts +6 -0
- package/dist/types/thread-message-modify-request.d.ts.map +1 -0
- package/dist/types/thread-message-response.d.ts +33 -0
- package/dist/types/thread-message-response.d.ts.map +1 -0
- package/dist/types/thread-response.d.ts +14 -0
- package/dist/types/thread-response.d.ts.map +1 -0
- package/dist/types/thread-run-create-request.d.ts +36 -0
- package/dist/types/thread-run-create-request.d.ts.map +1 -0
- package/dist/types/tool-call.d.ts +11 -0
- package/dist/types/tool-call.d.ts.map +1 -0
- package/dist/types/tool.d.ts +9 -0
- package/dist/types/tool.d.ts.map +1 -0
- package/dist/types/top-logprob.d.ts +10 -0
- package/dist/types/top-logprob.d.ts.map +1 -0
- package/dist/types/transcription-response.d.ts +11 -0
- package/dist/types/transcription-response.d.ts.map +1 -0
- package/dist/types/truncation-strategy.d.ts +8 -0
- package/dist/types/truncation-strategy.d.ts.map +1 -0
- package/dist/types/update-chat-completion-request.d.ts +3 -0
- package/dist/types/update-chat-completion-request.d.ts.map +1 -0
- package/dist/types/update-completion-request.d.ts +2 -0
- package/dist/types/update-completion-request.d.ts.map +1 -0
- package/dist/types/update-run-request.d.ts +3 -0
- package/dist/types/update-run-request.d.ts.map +1 -0
- package/dist/types/upload-file-request.d.ts +5 -0
- package/dist/types/upload-file-request.d.ts.map +1 -0
- package/dist/types/usage.d.ts +16 -0
- package/dist/types/usage.d.ts.map +1 -0
- package/dist/types/video-error.d.ts +12 -0
- package/dist/types/video-error.d.ts.map +1 -0
- package/dist/types/video-generation-request.d.ts +20 -0
- package/dist/types/video-generation-request.d.ts.map +1 -0
- package/dist/types/word.d.ts +6 -0
- package/dist/types/word.d.ts.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from '../http/client';
|
|
2
|
+
import { CancelResponseResponse, CreateResponseRequest, CreateResponseResponse, DeleteResponseResponse, GetResponseResponse, ListResponseInputItemsResponse } from '../types';
|
|
3
|
+
export declare class ResponsesApi {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: HttpClient);
|
|
6
|
+
/** Cancel response */
|
|
7
|
+
cancelResponse(response_id: string | number): Promise<CancelResponseResponse>;
|
|
8
|
+
/** Create response */
|
|
9
|
+
createResponse(body: CreateResponseRequest): Promise<CreateResponseResponse>;
|
|
10
|
+
/** List response input items */
|
|
11
|
+
listResponseInputItems(response_id: string | number): Promise<ListResponseInputItemsResponse>;
|
|
12
|
+
/** Get response */
|
|
13
|
+
getResponse(response_id: string | number): Promise<GetResponseResponse>;
|
|
14
|
+
/** Delete response */
|
|
15
|
+
deleteResponse(response_id: string | number): Promise<DeleteResponseResponse>;
|
|
16
|
+
}
|
|
17
|
+
export declare function createResponsesApi(client: HttpClient): ResponsesApi;
|
|
18
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/api/responses.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAGnL,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAa;gBAEf,MAAM,EAAE,UAAU;IAIhC,sBAAsB;IACd,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIrF,sBAAsB;IACd,cAAc,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIpF,gCAAgC;IACxB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAIrG,mBAAmB;IACX,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI/E,sBAAsB;IACd,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAGpF;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,YAAY,CAEnE"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpClient } from '../http/client';
|
|
2
|
+
import { QueryParams } from '../types/common';
|
|
3
|
+
import { CreateRunResponse, CreateThreadAndRunResponse, RunCreateRequest, RunListResponse, RunResponse, RunStepListResponse, RunStepResponse, SubmitToolOutputsRequest, SubmitToolOutputsResponse, ThreadCreateRequest, ThreadDeleteResponse, ThreadMessageCreateRequest, ThreadMessageListResponse, ThreadMessageModifyRequest, ThreadMessageResponse, ThreadResponse, ThreadRunCreateRequest, UpdateRunRequest } from '../types';
|
|
4
|
+
export declare class ThreadsApi {
|
|
5
|
+
private client;
|
|
6
|
+
constructor(client: HttpClient);
|
|
7
|
+
/** Submit tool outputs */
|
|
8
|
+
submitToolOutputs(thread_id: string | number, run_id: string | number, body: SubmitToolOutputsRequest): Promise<SubmitToolOutputsResponse>;
|
|
9
|
+
/** Cancel run */
|
|
10
|
+
cancelRun(thread_id: string | number, run_id: string | number): Promise<RunResponse>;
|
|
11
|
+
/** Get run */
|
|
12
|
+
getRun(thread_id: string | number, run_id: string | number): Promise<RunResponse>;
|
|
13
|
+
/** Modify run */
|
|
14
|
+
updateRun(thread_id: string | number, run_id: string | number, body: UpdateRunRequest): Promise<RunResponse>;
|
|
15
|
+
/** List runs */
|
|
16
|
+
listRuns(thread_id: string | number, params?: QueryParams): Promise<RunListResponse>;
|
|
17
|
+
/** Create run */
|
|
18
|
+
createRun(thread_id: string | number, body: RunCreateRequest): Promise<CreateRunResponse>;
|
|
19
|
+
/** Get thread message */
|
|
20
|
+
getThreadMessage(thread_id: string | number, message_id: string | number): Promise<ThreadMessageResponse>;
|
|
21
|
+
/** Modify thread message */
|
|
22
|
+
updateThreadMessage(thread_id: string | number, message_id: string | number, body: ThreadMessageModifyRequest): Promise<ThreadMessageResponse>;
|
|
23
|
+
/** List thread messages */
|
|
24
|
+
listThreadMessages(thread_id: string | number, params?: QueryParams): Promise<ThreadMessageListResponse>;
|
|
25
|
+
/** Create thread message */
|
|
26
|
+
createThreadMessage(thread_id: string | number, body: ThreadMessageCreateRequest): Promise<ThreadMessageResponse>;
|
|
27
|
+
/** Get thread */
|
|
28
|
+
getThread(thread_id: string | number): Promise<ThreadResponse>;
|
|
29
|
+
/** Update thread */
|
|
30
|
+
updateThread(thread_id: string | number, body: ThreadCreateRequest): Promise<ThreadResponse>;
|
|
31
|
+
/** Delete thread */
|
|
32
|
+
deleteThread(thread_id: string | number): Promise<ThreadDeleteResponse>;
|
|
33
|
+
/** Create thread and run */
|
|
34
|
+
createThreadAndRun(body: ThreadRunCreateRequest): Promise<CreateThreadAndRunResponse>;
|
|
35
|
+
/** Create thread */
|
|
36
|
+
createThread(body: ThreadCreateRequest): Promise<ThreadResponse>;
|
|
37
|
+
/** Get run step */
|
|
38
|
+
getRunStep(thread_id: string | number, run_id: string | number, step_id: string | number): Promise<RunStepResponse>;
|
|
39
|
+
/** List run steps */
|
|
40
|
+
listRunSteps(thread_id: string | number, run_id: string | number, params?: QueryParams): Promise<RunStepListResponse>;
|
|
41
|
+
}
|
|
42
|
+
export declare function createThreadsApi(client: HttpClient): ThreadsApi;
|
|
43
|
+
//# sourceMappingURL=threads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../src/api/threads.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,yBAAy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ttpClient } from '../http/client';
|
|
2
|
+
import { QueryParams } from '../types/common';
|
|
3
|
+
import { OpenAiVideo, OpenAiVideoDeleteResponse, OpenAiVideoList, VideoGenerationRequest } from '../types';
|
|
4
|
+
export declare class VideosApi {
|
|
5
|
+
private client;
|
|
6
|
+
constructor(client: HttpClient);
|
|
7
|
+
/** List videos */
|
|
8
|
+
listVideos(params?: QueryParams): Promise<OpenAiVideoList>;
|
|
9
|
+
/** Create video */
|
|
10
|
+
createVideo(body: VideoGenerationRequest): Promise<OpenAiVideo>;
|
|
11
|
+
/** Retrieve video */
|
|
12
|
+
retrieveVideo(videoId: string | number): Promise<OpenAiVideo>;
|
|
13
|
+
/** Delete video */
|
|
14
|
+
deleteVideo(videoId: string | number): Promise<OpenAiVideoDeleteResponse>;
|
|
15
|
+
}
|
|
16
|
+
export declare function createVideosApi(client: HttpClient): VideosApi;
|
|
17
|
+
//# sourceMappingURL=videos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../src/api/videos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGhH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAa;gBAEf,MAAM,EAAE,UAAU;IAIhC,kBAAkB;IACV,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAIlE,mBAAmB;IACX,WAAW,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIvE,qBAAqB;IACb,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIrE,mBAAmB;IACX,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAGhF;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAE7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAClF,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SdkworkAiConfig } from '../types/common';
|
|
2
|
+
import { RequestOptions, QueryParams, AuthTokenManager, BaseHttpClient } from '@sdkwork/sdk-common';
|
|
3
|
+
export declare class HttpClient extends BaseHttpClient {
|
|
4
|
+
private static readonly API_KEY_HEADER;
|
|
5
|
+
private static readonly API_KEY_USE_BEARER;
|
|
6
|
+
constructor(config: SdkworkAiConfig);
|
|
7
|
+
private getInternalAuthConfig;
|
|
8
|
+
private getInternalHeaders;
|
|
9
|
+
setApiKey(apiKey: string): void;
|
|
10
|
+
setAuthToken(token: string): void;
|
|
11
|
+
setAccessToken(token: string): void;
|
|
12
|
+
setTokenManager(manager: AuthTokenManager): void;
|
|
13
|
+
request<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
14
|
+
get<T>(path: string, params?: QueryParams, headers?: Record<string, string>): Promise<T>;
|
|
15
|
+
post<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T>;
|
|
16
|
+
put<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T>;
|
|
17
|
+
delete<T>(path: string, params?: QueryParams, headers?: Record<string, string>): Promise<T>;
|
|
18
|
+
patch<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createHttpClient(config: SdkworkAiConfig): HttpClient;
|
|
21
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/http/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAa,MAAM,qBAAqB,CAAC;AAEhE,qBAAa,UAAW,SAAQ,cAAc;IAC5C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAmB;IACzD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAQ;gBAEtC,MAAM,EAAE,eAAe;IAInC,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,kBAAkB;IAO1B,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAyB/B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQjC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQnC,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAS1C,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,CAAC,CAAC;IAelE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIxF,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIzG,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIxG,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3F,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAGjH;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,GAAG,UAAU,CAEpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@sdkwork/sdk-common"),r=class r extends c.BaseHttpClient{constructor(t){super(t)}getInternalAuthConfig(){const t=this;return t.authConfig=t.authConfig||{},t.authConfig}getInternalHeaders(){const t=this;return t.config=t.config||{},t.config.headers=t.config.headers||{},t.config.headers}setApiKey(t){const e=this.getInternalAuthConfig(),i=this.getInternalHeaders();if(e.apiKey=t,e.tokenManager?.clearTokens?.(),r.API_KEY_HEADER==="Authorization"&&r.API_KEY_USE_BEARER){e.authMode="apikey",delete i["Access-Token"];return}e.authMode="dual-token",i[r.API_KEY_HEADER]=r.API_KEY_USE_BEARER?`Bearer ${t}`:t,r.API_KEY_HEADER.toLowerCase()!=="authorization"&&delete i.Authorization,r.API_KEY_HEADER.toLowerCase()!=="access-token"&&delete i["Access-Token"]}setAuthToken(t){const e=this.getInternalHeaders();r.API_KEY_HEADER.toLowerCase()!=="authorization"&&delete e[r.API_KEY_HEADER],super.setAuthToken(t)}setAccessToken(t){const e=this.getInternalHeaders();r.API_KEY_HEADER.toLowerCase()!=="access-token"&&delete e[r.API_KEY_HEADER],super.setAccessToken(t)}setTokenManager(t){const e=Object.getPrototypeOf(r.prototype);if(typeof e.setTokenManager=="function"){e.setTokenManager.call(this,t);return}this.getInternalAuthConfig().tokenManager=t}async request(t,e={}){const i=this.execute;if(typeof i!="function")throw new Error("BaseHttpClient execute method is not available");return c.withRetry(()=>i.call(this,{url:t,method:e.method??"GET",...e}),{maxRetries:3})}async get(t,e,i){return this.request(t,{method:"GET",params:e,headers:i})}async post(t,e,i,a){return this.request(t,{method:"POST",body:e,params:i,headers:a})}async put(t,e,i,a){return this.request(t,{method:"PUT",body:e,params:i,headers:a})}async delete(t,e,i){return this.request(t,{method:"DELETE",params:e,headers:i})}async patch(t,e,i,a){return this.request(t,{method:"PATCH",body:e,params:i,headers:a})}};r.API_KEY_HEADER="Authorization",r.API_KEY_USE_BEARER=!0;let o=r;function l(n){return new o(n)}const h="/ai/v3";function s(n){if(!n)return h;if(/^https?:\/\//i.test(n))return n;const t=h.trim(),e=t?`/${t.replace(/^\/+|\/+$/g,"")}`:"",i=n.startsWith("/")?n:`/${n}`;return!e||e==="/"||i===e||i.startsWith(`${e}/`)?i:`${e}${i}`}class u{constructor(t){this.client=t}async getCompletion(t){return this.client.get(s(`/chat/completions/${t}`))}async updateCompletion(t,e){return this.client.post(s(`/chat/completions/${t}`),e)}async deleteCompletion(t){return this.client.delete(s(`/chat/completions/${t}`))}async patchUpdateCompletion(t,e){return this.client.patch(s(`/chat/completions/${t}`),e)}async countClaudeTokens(t){return this.client.post(s("/messages/count_tokens"),t)}async createClaudeMessage(t,e){return this.client.post(s("/messages"),t,void 0,e)}async listCompletions(t){return this.client.get(s("/chat/completions"),t)}async createChatCompletion(t){return this.client.post(s("/chat/completions"),t)}async getMessages(t,e){return this.client.get(s(`/chat/completions/${t}/messages`),e)}}function p(n){return new u(n)}class d{constructor(t){this.client=t}async listVideos(t){return this.client.get(s("/videos"),t)}async createVideo(t){return this.client.post(s("/videos"),t)}async retrieveVideo(t){return this.client.get(s(`/videos/${t}`))}async deleteVideo(t){return this.client.delete(s(`/videos/${t}`))}}function g(n){return new d(n)}class A{constructor(t){this.client=t}async submitToolOutputs(t,e,i){return this.client.post(s(`/threads/${t}/runs/${e}/submit_tool_outputs`),i)}async cancelRun(t,e){return this.client.post(s(`/threads/${t}/runs/${e}/cancel`))}async getRun(t,e){return this.client.get(s(`/threads/${t}/runs/${e}`))}async updateRun(t,e,i){return this.client.post(s(`/threads/${t}/runs/${e}`),i)}async listRuns(t,e){return this.client.get(s(`/threads/${t}/runs`),e)}async createRun(t,e){return this.client.post(s(`/threads/${t}/runs`),e)}async getThreadMessage(t,e){return this.client.get(s(`/threads/${t}/messages/${e}`))}async updateThreadMessage(t,e,i){return this.client.post(s(`/threads/${t}/messages/${e}`),i)}async listThreadMessages(t,e){return this.client.get(s(`/threads/${t}/messages`),e)}async createThreadMessage(t,e){return this.client.post(s(`/threads/${t}/messages`),e)}async getThread(t){return this.client.get(s(`/threads/${t}`))}async updateThread(t,e){return this.client.post(s(`/threads/${t}`),e)}async deleteThread(t){return this.client.delete(s(`/threads/${t}`))}async createThreadAndRun(t){return this.client.post(s("/threads/runs"),t)}async createThread(t){return this.client.post(s("/threads"),t)}async getRunStep(t,e,i){return this.client.get(s(`/threads/${t}/runs/${e}/steps/${i}`))}async listRunSteps(t,e,i){return this.client.get(s(`/threads/${t}/runs/${e}/steps`),i)}}function y(n){return new A(n)}class m{constructor(t){this.client=t}async cancelResponse(t){return this.client.post(s(`/responses/${t}/cancel`))}async createResponse(t){return this.client.post(s("/responses"),t)}async listResponseInputItems(t){return this.client.get(s(`/responses/${t}/input_items`))}async getResponse(t){return this.client.get(s(`/responses/${t}`))}async deleteResponse(t){return this.client.delete(s(`/responses/${t}`))}}function C(n){return new m(n)}class ${constructor(t){this.client=t}async rerank(t){return this.client.post(s("/rerank"),t)}}function f(n){return new $(n)}class E{constructor(t){this.client=t}async generate(t){return this.client.post(s("/music/generations"),t)}async retrieve(t){return this.client.get(s(`/music/${t}`))}async deleteMusic(t){return this.client.delete(s(`/music/${t}`))}async listMusic(t){return this.client.get(s("/music"),t)}}function k(n){return new E(n)}class T{constructor(t){this.client=t}async createModeration(t){return this.client.post(s("/moderations"),t)}}function w(n){return new T(n)}class b{constructor(t){this.client=t}async getChatCompletion(t){return this.client.get(s(`/management/chat/completions/${t}`))}async updateChatCompletion(t,e){return this.client.post(s(`/management/chat/completions/${t}`),e)}async deleteChatCompletion(t){return this.client.delete(s(`/management/chat/completions/${t}`))}async getChatMessages(t,e){return this.client.get(s(`/management/chat/completions/${t}/messages`),e)}async listChatCompletions(t){return this.client.get(s("/management/chat/completions"),t)}}function M(n){return new b(n)}class R{constructor(t){this.client=t}async listDocuments(t,e){return this.client.get(s(`/knowledge-bases/${t}/documents`),e)}async addDocument(t,e){return this.client.post(s(`/knowledge-bases/${t}/documents`),e)}async searchKnowledge(t){return this.client.post(s("/knowledge-bases/search"),t)}async listKnowledgeBases(t){return this.client.get(s("/knowledge-bases"),t)}async createKnowledgeBase(t){return this.client.post(s("/knowledge-bases"),t)}async getDocument(t,e){return this.client.get(s(`/knowledge-bases/${t}/documents/${e}`))}async deleteDocument(t,e){return this.client.delete(s(`/knowledge-bases/${t}/documents/${e}`))}async getKnowledgeBase(t){return this.client.get(s(`/knowledge-bases/${t}`))}async deleteKnowledgeBase(t){return this.client.delete(s(`/knowledge-bases/${t}`))}}function P(n){return new R(n)}class I{constructor(t){this.client=t}async createImageVariation(t){return this.client.post(s("/images/variations"),t)}async createImage(t){return this.client.post(s("/images/generations"),t)}async createImageEdit(t){return this.client.post(s("/images/edits"),t)}}function B(n){return new I(n)}class _{constructor(t){this.client=t}async listFiles(t){return this.client.get(s("/files"),t)}async uploadFile(t,e){return this.client.post(s("/files"),t,e)}async retrieveFileContent(t){return this.client.get(s(`/files/${t}/content`))}async retrieveFile(t){return this.client.get(s(`/files/${t}`))}async deleteFile(t){return this.client.delete(s(`/files/${t}`))}}function K(n){return new _(n)}class D{constructor(t){this.client=t}async createEmbedding(t){return this.client.post(s("/embeddings"),t)}}function x(n){return new D(n)}class S{constructor(t){this.client=t}async chatWith(t,e){return this.client.post(s(`/context/${t}/chat/completions`),e)}async createContext(t){return this.client.post(s("/context/create"),t)}async getContext(t){return this.client.get(s(`/context/${t}`))}async deleteContext(t){return this.client.delete(s(`/context/${t}`))}}function H(n){return new S(n)}class v{constructor(t){this.client=t}async cancelBatch(t){return this.client.post(s(`/batches/${t}/cancel`))}async listBatches(t){return this.client.get(s("/batches"),t)}async createBatch(t){return this.client.post(s("/batches"),t)}async getBatch(t){return this.client.get(s(`/batches/${t}`))}}function O(n){return new v(n)}class F{constructor(t){this.client=t}async createTranslation(t,e){return this.client.post(s("/audio/translations"),t,e)}async createTranscription(t,e){return this.client.post(s("/audio/transcriptions"),t,e)}async createSpeech(t){return this.client.post(s("/audio/speech"),t)}}function Y(n){return new F(n)}class U{constructor(t){this.client=t}async getAssistant(t){return this.client.get(s(`/assistants/${t}`))}async updateAssistant(t,e){return this.client.post(s(`/assistants/${t}`),e)}async deleteAssistant(t){return this.client.delete(s(`/assistants/${t}`))}async listAssistants(t){return this.client.get(s("/assistants"),t)}async createAssistant(t){return this.client.post(s("/assistants"),t)}}function V(n){return new U(n)}class z{constructor(t){this.client=t}async retrieveModel(t){return this.client.get(s(`/models/${t}`))}async deleteModel(t){return this.client.delete(s(`/models/${t}`))}async listModels(){return this.client.get(s("/models"))}}function q(n){return new z(n)}class L{constructor(t){this.httpClient=l(t),this.chat=p(this.httpClient),this.videos=g(this.httpClient),this.threads=y(this.httpClient),this.responses=C(this.httpClient),this.rerank=f(this.httpClient),this.music=k(this.httpClient),this.moderations=w(this.httpClient),this.chatCompletions=M(this.httpClient),this.knowledgeBases=P(this.httpClient),this.images=B(this.httpClient),this.files=K(this.httpClient),this.embeddings=x(this.httpClient),this.context=H(this.httpClient),this.batches=O(this.httpClient),this.audio=Y(this.httpClient),this.assistants=V(this.httpClient),this.models=q(this.httpClient)}setApiKey(t){return this.httpClient.setApiKey(t),this}setAuthToken(t){return this.httpClient.setAuthToken(t),this}setAccessToken(t){return this.httpClient.setAccessToken(t),this}setTokenManager(t){return this.httpClient.setTokenManager(t),this}get http(){return this.httpClient}}function j(n){return new L(n)}class W{constructor(t,e){this.http=t,this.basePath=e}async get(t,e,i){return this.http.get(`${this.basePath}${t}`,e,i)}async post(t,e,i,a){return this.http.post(`${this.basePath}${t}`,e,i,a)}async put(t,e,i,a){return this.http.put(`${this.basePath}${t}`,e,i,a)}async delete(t,e,i){return this.http.delete(`${this.basePath}${t}`,e,i)}async patch(t,e,i,a){return this.http.patch(`${this.basePath}${t}`,e,i,a)}}Object.defineProperty(exports,"DEFAULT_TIMEOUT",{enumerable:!0,get:()=>c.DEFAULT_TIMEOUT});Object.defineProperty(exports,"DefaultAuthTokenManager",{enumerable:!0,get:()=>c.DefaultAuthTokenManager});Object.defineProperty(exports,"SUCCESS_CODES",{enumerable:!0,get:()=>c.SUCCESS_CODES});Object.defineProperty(exports,"createTokenManager",{enumerable:!0,get:()=>c.createTokenManager});exports.AssistantsApi=U;exports.AudioApi=F;exports.BaseApi=W;exports.BatchesApi=v;exports.ChatApi=u;exports.ChatCompletionsApi=b;exports.ContextApi=S;exports.EmbeddingsApi=D;exports.FilesApi=_;exports.HttpClient=o;exports.ImagesApi=I;exports.KnowledgeBasesApi=R;exports.ModelsApi=z;exports.ModerationsApi=T;exports.MusicApi=E;exports.RerankApi=$;exports.ResponsesApi=m;exports.SdkworkAiClient=L;exports.ThreadsApi=A;exports.VideosApi=d;exports.aiApiPath=s;exports.createAssistantsApi=V;exports.createAudioApi=Y;exports.createBatchesApi=O;exports.createChatApi=p;exports.createChatCompletionsApi=M;exports.createClient=j;exports.createContextApi=H;exports.createEmbeddingsApi=x;exports.createFilesApi=K;exports.createHttpClient=l;exports.createImagesApi=B;exports.createKnowledgeBasesApi=P;exports.createModelsApi=q;exports.createModerationsApi=w;exports.createMusicApi=k;exports.createRerankApi=f;exports.createResponsesApi=C;exports.createThreadsApi=y;exports.createVideosApi=g;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/http/client.ts","../src/api/paths.ts","../src/api/chat.ts","../src/api/videos.ts","../src/api/threads.ts","../src/api/responses.ts","../src/api/rerank.ts","../src/api/music.ts","../src/api/moderations.ts","../src/api/chat-completions.ts","../src/api/knowledge-bases.ts","../src/api/images.ts","../src/api/files.ts","../src/api/embeddings.ts","../src/api/context.ts","../src/api/batches.ts","../src/api/audio.ts","../src/api/assistants.ts","../src/api/models.ts","../src/sdk.ts","../src/api/base.ts"],"sourcesContent":["import type { SdkworkAiConfig } from '../types/common';\nimport type { RequestOptions, QueryParams } from '@sdkwork/sdk-common';\nimport type { AuthTokenManager } from '@sdkwork/sdk-common';\nimport { BaseHttpClient, withRetry } from '@sdkwork/sdk-common';\n\nexport class HttpClient extends BaseHttpClient {\n private static readonly API_KEY_HEADER = 'Authorization';\n private static readonly API_KEY_USE_BEARER = true;\n\n constructor(config: SdkworkAiConfig) {\n super(config as any);\n }\n\n private getInternalAuthConfig(): any {\n const self = this as any;\n self.authConfig = self.authConfig || {};\n return self.authConfig;\n }\n\n private getInternalHeaders(): Record<string, string> {\n const self = this as any;\n self.config = self.config || {};\n self.config.headers = self.config.headers || {};\n return self.config.headers;\n }\n\n setApiKey(apiKey: string): void {\n const authConfig = this.getInternalAuthConfig();\n const headers = this.getInternalHeaders();\n authConfig.apiKey = apiKey;\n authConfig.tokenManager?.clearTokens?.();\n\n if (HttpClient.API_KEY_HEADER === 'Authorization' && HttpClient.API_KEY_USE_BEARER) {\n authConfig.authMode = 'apikey';\n delete headers['Access-Token'];\n return;\n }\n\n authConfig.authMode = 'dual-token';\n headers[HttpClient.API_KEY_HEADER] = HttpClient.API_KEY_USE_BEARER\n ? `Bearer ${apiKey}`\n : apiKey;\n\n if (HttpClient.API_KEY_HEADER.toLowerCase() !== 'authorization') {\n delete headers['Authorization'];\n }\n if (HttpClient.API_KEY_HEADER.toLowerCase() !== 'access-token') {\n delete headers['Access-Token'];\n }\n }\n\n setAuthToken(token: string): void {\n const headers = this.getInternalHeaders();\n if (HttpClient.API_KEY_HEADER.toLowerCase() !== 'authorization') {\n delete headers[HttpClient.API_KEY_HEADER];\n }\n super.setAuthToken(token);\n }\n\n setAccessToken(token: string): void {\n const headers = this.getInternalHeaders();\n if (HttpClient.API_KEY_HEADER.toLowerCase() !== 'access-token') {\n delete headers[HttpClient.API_KEY_HEADER];\n }\n super.setAccessToken(token);\n }\n\n setTokenManager(manager: AuthTokenManager): void {\n const baseProto = Object.getPrototypeOf(HttpClient.prototype) as { setTokenManager?: (this: HttpClient, m: AuthTokenManager) => void };\n if (typeof baseProto.setTokenManager === 'function') {\n baseProto.setTokenManager.call(this, manager);\n return;\n }\n this.getInternalAuthConfig().tokenManager = manager;\n }\n\n async request<T>(path: string, options: RequestOptions = {}): Promise<T> {\n const execute = (this as any).execute;\n if (typeof execute !== 'function') {\n throw new Error('BaseHttpClient execute method is not available');\n }\n return withRetry(\n () => execute.call(this, { \n url: path, \n method: options.method ?? 'GET', \n ...options \n }),\n { maxRetries: 3 }\n );\n }\n\n async get<T>(path: string, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.request<T>(path, { method: 'GET', params, headers });\n }\n\n async post<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.request<T>(path, { method: 'POST', body, params, headers });\n }\n\n async put<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.request<T>(path, { method: 'PUT', body, params, headers });\n }\n\n async delete<T>(path: string, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.request<T>(path, { method: 'DELETE', params, headers });\n }\n\n async patch<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.request<T>(path, { method: 'PATCH', body, params, headers });\n }\n}\n\nexport function createHttpClient(config: SdkworkAiConfig): HttpClient {\n return new HttpClient(config);\n}\n","export const AI_API_PREFIX = '/ai/v3';\n\nexport function aiApiPath(path: string): string {\n if (!path) {\n return AI_API_PREFIX;\n }\n if (/^https?:\\/\\//i.test(path)) {\n return path;\n }\n const normalizedPrefixRaw = (AI_API_PREFIX || '').trim();\n const normalizedPrefix = normalizedPrefixRaw\n ? `/${normalizedPrefixRaw.replace(/^\\/+|\\/+$/g, '')}`\n : '';\n const normalizedPath = path.startsWith('/') ? path : `/${path}`;\n\n if (!normalizedPrefix || normalizedPrefix === '/') {\n return normalizedPath;\n }\n if (normalizedPath === normalizedPrefix || normalizedPath.startsWith(`${normalizedPrefix}/`)) {\n return normalizedPath;\n }\n return `${normalizedPrefix}${normalizedPath}`;\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { ChatCompletionDeleteResponse, ChatCompletionList, ChatCompletionRequest, ChatCompletionResponse, ChatMessageList, CountClaudeTokensRequest, CountClaudeTokensResponse, CreateChatCompletionResponse, CreateClaudeMessageRequest, CreateClaudeMessageResponse, PatchUpdateCompletionRequest, UpdateCompletionRequest } from '../types';\n\n\nexport class ChatApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Get chat completion */\n async getCompletion(completion_id: string | number): Promise<ChatCompletionResponse> {\n return this.client.get<ChatCompletionResponse>(aiApiPath(`/chat/completions/${completion_id}`));\n }\n\n/** Update chat completion */\n async updateCompletion(completion_id: string | number, body: UpdateCompletionRequest): Promise<ChatCompletionResponse> {\n return this.client.post<ChatCompletionResponse>(aiApiPath(`/chat/completions/${completion_id}`), body);\n }\n\n/** Delete chat completion */\n async deleteCompletion(completion_id: string | number): Promise<ChatCompletionDeleteResponse> {\n return this.client.delete<ChatCompletionDeleteResponse>(aiApiPath(`/chat/completions/${completion_id}`));\n }\n\n/** Update chat completion */\n async patchUpdateCompletion(completion_id: string | number, body: PatchUpdateCompletionRequest): Promise<ChatCompletionResponse> {\n return this.client.patch<ChatCompletionResponse>(aiApiPath(`/chat/completions/${completion_id}`), body);\n }\n\n/** Count Claude tokens */\n async countClaudeTokens(body: CountClaudeTokensRequest): Promise<CountClaudeTokensResponse> {\n return this.client.post<CountClaudeTokensResponse>(aiApiPath(`/messages/count_tokens`), body);\n }\n\n/** Create Claude message */\n async createClaudeMessage(body: CreateClaudeMessageRequest, headers?: Record<string, string>): Promise<CreateClaudeMessageResponse> {\n return this.client.post<CreateClaudeMessageResponse>(aiApiPath(`/messages`), body, undefined, headers);\n }\n\n/** List chat completions */\n async listCompletions(params?: QueryParams): Promise<ChatCompletionList> {\n return this.client.get<ChatCompletionList>(aiApiPath(`/chat/completions`), params);\n }\n\n/** Create chat completion */\n async createChatCompletion(body: ChatCompletionRequest): Promise<CreateChatCompletionResponse> {\n return this.client.post<CreateChatCompletionResponse>(aiApiPath(`/chat/completions`), body);\n }\n\n/** Get chat completion messages */\n async getMessages(completion_id: string | number, params?: QueryParams): Promise<ChatMessageList> {\n return this.client.get<ChatMessageList>(aiApiPath(`/chat/completions/${completion_id}/messages`), params);\n }\n}\n\nexport function createChatApi(client: HttpClient): ChatApi {\n return new ChatApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { OpenAiVideo, OpenAiVideoDeleteResponse, OpenAiVideoList, VideoGenerationRequest } from '../types';\n\n\nexport class VideosApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** List videos */\n async listVideos(params?: QueryParams): Promise<OpenAiVideoList> {\n return this.client.get<OpenAiVideoList>(aiApiPath(`/videos`), params);\n }\n\n/** Create video */\n async createVideo(body: VideoGenerationRequest): Promise<OpenAiVideo> {\n return this.client.post<OpenAiVideo>(aiApiPath(`/videos`), body);\n }\n\n/** Retrieve video */\n async retrieveVideo(videoId: string | number): Promise<OpenAiVideo> {\n return this.client.get<OpenAiVideo>(aiApiPath(`/videos/${videoId}`));\n }\n\n/** Delete video */\n async deleteVideo(videoId: string | number): Promise<OpenAiVideoDeleteResponse> {\n return this.client.delete<OpenAiVideoDeleteResponse>(aiApiPath(`/videos/${videoId}`));\n }\n}\n\nexport function createVideosApi(client: HttpClient): VideosApi {\n return new VideosApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { CreateRunResponse, CreateThreadAndRunResponse, RunCreateRequest, RunListResponse, RunResponse, RunStepListResponse, RunStepResponse, SubmitToolOutputsRequest, SubmitToolOutputsResponse, ThreadCreateRequest, ThreadDeleteResponse, ThreadMessageCreateRequest, ThreadMessageListResponse, ThreadMessageModifyRequest, ThreadMessageResponse, ThreadResponse, ThreadRunCreateRequest, UpdateRunRequest } from '../types';\n\n\nexport class ThreadsApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Submit tool outputs */\n async submitToolOutputs(thread_id: string | number, run_id: string | number, body: SubmitToolOutputsRequest): Promise<SubmitToolOutputsResponse> {\n return this.client.post<SubmitToolOutputsResponse>(aiApiPath(`/threads/${thread_id}/runs/${run_id}/submit_tool_outputs`), body);\n }\n\n/** Cancel run */\n async cancelRun(thread_id: string | number, run_id: string | number): Promise<RunResponse> {\n return this.client.post<RunResponse>(aiApiPath(`/threads/${thread_id}/runs/${run_id}/cancel`));\n }\n\n/** Get run */\n async getRun(thread_id: string | number, run_id: string | number): Promise<RunResponse> {\n return this.client.get<RunResponse>(aiApiPath(`/threads/${thread_id}/runs/${run_id}`));\n }\n\n/** Modify run */\n async updateRun(thread_id: string | number, run_id: string | number, body: UpdateRunRequest): Promise<RunResponse> {\n return this.client.post<RunResponse>(aiApiPath(`/threads/${thread_id}/runs/${run_id}`), body);\n }\n\n/** List runs */\n async listRuns(thread_id: string | number, params?: QueryParams): Promise<RunListResponse> {\n return this.client.get<RunListResponse>(aiApiPath(`/threads/${thread_id}/runs`), params);\n }\n\n/** Create run */\n async createRun(thread_id: string | number, body: RunCreateRequest): Promise<CreateRunResponse> {\n return this.client.post<CreateRunResponse>(aiApiPath(`/threads/${thread_id}/runs`), body);\n }\n\n/** Get thread message */\n async getThreadMessage(thread_id: string | number, message_id: string | number): Promise<ThreadMessageResponse> {\n return this.client.get<ThreadMessageResponse>(aiApiPath(`/threads/${thread_id}/messages/${message_id}`));\n }\n\n/** Modify thread message */\n async updateThreadMessage(thread_id: string | number, message_id: string | number, body: ThreadMessageModifyRequest): Promise<ThreadMessageResponse> {\n return this.client.post<ThreadMessageResponse>(aiApiPath(`/threads/${thread_id}/messages/${message_id}`), body);\n }\n\n/** List thread messages */\n async listThreadMessages(thread_id: string | number, params?: QueryParams): Promise<ThreadMessageListResponse> {\n return this.client.get<ThreadMessageListResponse>(aiApiPath(`/threads/${thread_id}/messages`), params);\n }\n\n/** Create thread message */\n async createThreadMessage(thread_id: string | number, body: ThreadMessageCreateRequest): Promise<ThreadMessageResponse> {\n return this.client.post<ThreadMessageResponse>(aiApiPath(`/threads/${thread_id}/messages`), body);\n }\n\n/** Get thread */\n async getThread(thread_id: string | number): Promise<ThreadResponse> {\n return this.client.get<ThreadResponse>(aiApiPath(`/threads/${thread_id}`));\n }\n\n/** Update thread */\n async updateThread(thread_id: string | number, body: ThreadCreateRequest): Promise<ThreadResponse> {\n return this.client.post<ThreadResponse>(aiApiPath(`/threads/${thread_id}`), body);\n }\n\n/** Delete thread */\n async deleteThread(thread_id: string | number): Promise<ThreadDeleteResponse> {\n return this.client.delete<ThreadDeleteResponse>(aiApiPath(`/threads/${thread_id}`));\n }\n\n/** Create thread and run */\n async createThreadAndRun(body: ThreadRunCreateRequest): Promise<CreateThreadAndRunResponse> {\n return this.client.post<CreateThreadAndRunResponse>(aiApiPath(`/threads/runs`), body);\n }\n\n/** Create thread */\n async createThread(body: ThreadCreateRequest): Promise<ThreadResponse> {\n return this.client.post<ThreadResponse>(aiApiPath(`/threads`), body);\n }\n\n/** Get run step */\n async getRunStep(thread_id: string | number, run_id: string | number, step_id: string | number): Promise<RunStepResponse> {\n return this.client.get<RunStepResponse>(aiApiPath(`/threads/${thread_id}/runs/${run_id}/steps/${step_id}`));\n }\n\n/** List run steps */\n async listRunSteps(thread_id: string | number, run_id: string | number, params?: QueryParams): Promise<RunStepListResponse> {\n return this.client.get<RunStepListResponse>(aiApiPath(`/threads/${thread_id}/runs/${run_id}/steps`), params);\n }\n}\n\nexport function createThreadsApi(client: HttpClient): ThreadsApi {\n return new ThreadsApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { CancelResponseResponse, CreateResponseRequest, CreateResponseResponse, DeleteResponseResponse, GetResponseResponse, ListResponseInputItemsResponse } from '../types';\n\n\nexport class ResponsesApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Cancel response */\n async cancelResponse(response_id: string | number): Promise<CancelResponseResponse> {\n return this.client.post<CancelResponseResponse>(aiApiPath(`/responses/${response_id}/cancel`));\n }\n\n/** Create response */\n async createResponse(body: CreateResponseRequest): Promise<CreateResponseResponse> {\n return this.client.post<CreateResponseResponse>(aiApiPath(`/responses`), body);\n }\n\n/** List response input items */\n async listResponseInputItems(response_id: string | number): Promise<ListResponseInputItemsResponse> {\n return this.client.get<ListResponseInputItemsResponse>(aiApiPath(`/responses/${response_id}/input_items`));\n }\n\n/** Get response */\n async getResponse(response_id: string | number): Promise<GetResponseResponse> {\n return this.client.get<GetResponseResponse>(aiApiPath(`/responses/${response_id}`));\n }\n\n/** Delete response */\n async deleteResponse(response_id: string | number): Promise<DeleteResponseResponse> {\n return this.client.delete<DeleteResponseResponse>(aiApiPath(`/responses/${response_id}`));\n }\n}\n\nexport function createResponsesApi(client: HttpClient): ResponsesApi {\n return new ResponsesApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { RerankRequest, RerankResponse } from '../types';\n\n\nexport class RerankApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Rerank documents */\n async rerank(body: RerankRequest): Promise<RerankResponse> {\n return this.client.post<RerankResponse>(aiApiPath(`/rerank`), body);\n }\n}\n\nexport function createRerankApi(client: HttpClient): RerankApi {\n return new RerankApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { MusicGenerationRequest, SunoMusic, SunoMusicDeleteResponse, SunoMusicList } from '../types';\n\n\nexport class MusicApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Generate music */\n async generate(body: MusicGenerationRequest): Promise<SunoMusic> {\n return this.client.post<SunoMusic>(aiApiPath(`/music/generations`), body);\n }\n\n/** Retrieve music */\n async retrieve(musicId: string | number): Promise<SunoMusic> {\n return this.client.get<SunoMusic>(aiApiPath(`/music/${musicId}`));\n }\n\n/** Delete music */\n async deleteMusic(musicId: string | number): Promise<SunoMusicDeleteResponse> {\n return this.client.delete<SunoMusicDeleteResponse>(aiApiPath(`/music/${musicId}`));\n }\n\n/** List music */\n async listMusic(params?: QueryParams): Promise<SunoMusicList> {\n return this.client.get<SunoMusicList>(aiApiPath(`/music`), params);\n }\n}\n\nexport function createMusicApi(client: HttpClient): MusicApi {\n return new MusicApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { ModerationRequest, ModerationResponse } from '../types';\n\n\nexport class ModerationsApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Create moderation */\n async createModeration(body: ModerationRequest): Promise<ModerationResponse> {\n return this.client.post<ModerationResponse>(aiApiPath(`/moderations`), body);\n }\n}\n\nexport function createModerationsApi(client: HttpClient): ModerationsApi {\n return new ModerationsApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { ChatCompletionDeleteResponse, ChatCompletionList, ChatCompletionResponse, ChatMessageList, UpdateChatCompletionRequest } from '../types';\n\n\nexport class ChatCompletionsApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Get chat completion */\n async getChatCompletion(completionId: string | number): Promise<ChatCompletionResponse> {\n return this.client.get<ChatCompletionResponse>(aiApiPath(`/management/chat/completions/${completionId}`));\n }\n\n/** Update chat completion */\n async updateChatCompletion(completionId: string | number, body: UpdateChatCompletionRequest): Promise<ChatCompletionResponse> {\n return this.client.post<ChatCompletionResponse>(aiApiPath(`/management/chat/completions/${completionId}`), body);\n }\n\n/** Delete chat completion */\n async deleteChatCompletion(completionId: string | number): Promise<ChatCompletionDeleteResponse> {\n return this.client.delete<ChatCompletionDeleteResponse>(aiApiPath(`/management/chat/completions/${completionId}`));\n }\n\n/** Get chat messages */\n async getChatMessages(completionId: string | number, params?: QueryParams): Promise<ChatMessageList> {\n return this.client.get<ChatMessageList>(aiApiPath(`/management/chat/completions/${completionId}/messages`), params);\n }\n\n/** List chat completions */\n async listChatCompletions(params?: QueryParams): Promise<ChatCompletionList> {\n return this.client.get<ChatCompletionList>(aiApiPath(`/management/chat/completions`), params);\n }\n}\n\nexport function createChatCompletionsApi(client: HttpClient): ChatCompletionsApi {\n return new ChatCompletionsApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { DocumentAddRequest, DocumentResponse, KnowledgeBaseCreateRequest, KnowledgeBaseListResponse, KnowledgeBaseResponse, KnowledgeSearchRequest, KnowledgeSearchResponse, ListDocumentsResponse } from '../types';\n\n\nexport class KnowledgeBasesApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** List documents */\n async listDocuments(knowledgeBaseId: string | number, params?: QueryParams): Promise<ListDocumentsResponse> {\n return this.client.get<ListDocumentsResponse>(aiApiPath(`/knowledge-bases/${knowledgeBaseId}/documents`), params);\n }\n\n/** Add document */\n async addDocument(knowledgeBaseId: string | number, body: DocumentAddRequest): Promise<DocumentResponse> {\n return this.client.post<DocumentResponse>(aiApiPath(`/knowledge-bases/${knowledgeBaseId}/documents`), body);\n }\n\n/** Search knowledge */\n async searchKnowledge(body: KnowledgeSearchRequest): Promise<KnowledgeSearchResponse> {\n return this.client.post<KnowledgeSearchResponse>(aiApiPath(`/knowledge-bases/search`), body);\n }\n\n/** List knowledge bases */\n async listKnowledgeBases(params?: QueryParams): Promise<KnowledgeBaseListResponse> {\n return this.client.get<KnowledgeBaseListResponse>(aiApiPath(`/knowledge-bases`), params);\n }\n\n/** Create knowledge base */\n async createKnowledgeBase(body: KnowledgeBaseCreateRequest): Promise<KnowledgeBaseResponse> {\n return this.client.post<KnowledgeBaseResponse>(aiApiPath(`/knowledge-bases`), body);\n }\n\n/** Get document */\n async getDocument(knowledgeBaseId: string | number, documentId: string | number): Promise<DocumentResponse> {\n return this.client.get<DocumentResponse>(aiApiPath(`/knowledge-bases/${knowledgeBaseId}/documents/${documentId}`));\n }\n\n/** Delete document */\n async deleteDocument(knowledgeBaseId: string | number, documentId: string | number): Promise<void> {\n return this.client.delete<void>(aiApiPath(`/knowledge-bases/${knowledgeBaseId}/documents/${documentId}`));\n }\n\n/** Get knowledge base */\n async getKnowledgeBase(knowledgeBaseId: string | number): Promise<KnowledgeBaseResponse> {\n return this.client.get<KnowledgeBaseResponse>(aiApiPath(`/knowledge-bases/${knowledgeBaseId}`));\n }\n\n/** Delete knowledge base */\n async deleteKnowledgeBase(knowledgeBaseId: string | number): Promise<void> {\n return this.client.delete<void>(aiApiPath(`/knowledge-bases/${knowledgeBaseId}`));\n }\n}\n\nexport function createKnowledgeBasesApi(client: HttpClient): KnowledgeBasesApi {\n return new KnowledgeBasesApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { ImageGenerationRequest, ImageGenerationResponse } from '../types';\n\n\nexport class ImagesApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Create image variation */\n async createImageVariation(body: ImageGenerationRequest): Promise<ImageGenerationResponse> {\n return this.client.post<ImageGenerationResponse>(aiApiPath(`/images/variations`), body);\n }\n\n/** Create image */\n async createImage(body: ImageGenerationRequest): Promise<ImageGenerationResponse> {\n return this.client.post<ImageGenerationResponse>(aiApiPath(`/images/generations`), body);\n }\n\n/** Create image edit */\n async createImageEdit(body: ImageGenerationRequest): Promise<ImageGenerationResponse> {\n return this.client.post<ImageGenerationResponse>(aiApiPath(`/images/edits`), body);\n }\n}\n\nexport function createImagesApi(client: HttpClient): ImagesApi {\n return new ImagesApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { OpenAiFileDeleteResponse, OpenAiFileList, OpenAiFileObject } from '../types';\n\n\nexport class FilesApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** List files */\n async listFiles(params?: QueryParams): Promise<OpenAiFileList> {\n return this.client.get<OpenAiFileList>(aiApiPath(`/files`), params);\n }\n\n/** Upload file */\n async uploadFile(body?: FormData, params?: QueryParams): Promise<OpenAiFileObject> {\n return this.client.post<OpenAiFileObject>(aiApiPath(`/files`), body, params);\n }\n\n/** Retrieve file content */\n async retrieveFileContent(fileId: string | number): Promise<string> {\n return this.client.get<string>(aiApiPath(`/files/${fileId}/content`));\n }\n\n/** Retrieve file */\n async retrieveFile(fileId: string | number): Promise<OpenAiFileObject> {\n return this.client.get<OpenAiFileObject>(aiApiPath(`/files/${fileId}`));\n }\n\n/** Delete file */\n async deleteFile(fileId: string | number): Promise<OpenAiFileDeleteResponse> {\n return this.client.delete<OpenAiFileDeleteResponse>(aiApiPath(`/files/${fileId}`));\n }\n}\n\nexport function createFilesApi(client: HttpClient): FilesApi {\n return new FilesApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { EmbeddingRequest, EmbeddingResponse } from '../types';\n\n\nexport class EmbeddingsApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Create embeddings */\n async createEmbedding(body: EmbeddingRequest): Promise<EmbeddingResponse> {\n return this.client.post<EmbeddingResponse>(aiApiPath(`/embeddings`), body);\n }\n}\n\nexport function createEmbeddingsApi(client: HttpClient): EmbeddingsApi {\n return new EmbeddingsApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { ChatWithContextRequest, ContextCreateRequest, ContextResponse } from '../types';\n\n\nexport class ContextApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Chat with context */\n async chatWith(contextId: string | number, body: ChatWithContextRequest): Promise<ContextResponse> {\n return this.client.post<ContextResponse>(aiApiPath(`/context/${contextId}/chat/completions`), body);\n }\n\n/** Create context */\n async createContext(body: ContextCreateRequest): Promise<ContextResponse> {\n return this.client.post<ContextResponse>(aiApiPath(`/context/create`), body);\n }\n\n/** Get context */\n async getContext(contextId: string | number): Promise<ContextResponse> {\n return this.client.get<ContextResponse>(aiApiPath(`/context/${contextId}`));\n }\n\n/** Delete context */\n async deleteContext(contextId: string | number): Promise<void> {\n return this.client.delete<void>(aiApiPath(`/context/${contextId}`));\n }\n}\n\nexport function createContextApi(client: HttpClient): ContextApi {\n return new ContextApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { BatchCreateRequest, BatchListResponse, BatchResponse } from '../types';\n\n\nexport class BatchesApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Cancel batch */\n async cancelBatch(batch_id: string | number): Promise<BatchResponse> {\n return this.client.post<BatchResponse>(aiApiPath(`/batches/${batch_id}/cancel`));\n }\n\n/** List batches */\n async listBatches(params?: QueryParams): Promise<BatchListResponse> {\n return this.client.get<BatchListResponse>(aiApiPath(`/batches`), params);\n }\n\n/** Create batch */\n async createBatch(body: BatchCreateRequest): Promise<BatchResponse> {\n return this.client.post<BatchResponse>(aiApiPath(`/batches`), body);\n }\n\n/** Get batch */\n async getBatch(batch_id: string | number): Promise<BatchResponse> {\n return this.client.get<BatchResponse>(aiApiPath(`/batches/${batch_id}`));\n }\n}\n\nexport function createBatchesApi(client: HttpClient): BatchesApi {\n return new BatchesApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { SpeechRequest, TranscriptionResponse } from '../types';\n\n\nexport class AudioApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Create translation */\n async createTranslation(body?: FormData, params?: QueryParams): Promise<TranscriptionResponse> {\n return this.client.post<TranscriptionResponse>(aiApiPath(`/audio/translations`), body, params);\n }\n\n/** Create transcription */\n async createTranscription(body?: FormData, params?: QueryParams): Promise<TranscriptionResponse> {\n return this.client.post<TranscriptionResponse>(aiApiPath(`/audio/transcriptions`), body, params);\n }\n\n/** Create speech */\n async createSpeech(body: SpeechRequest): Promise<string> {\n return this.client.post<string>(aiApiPath(`/audio/speech`), body);\n }\n}\n\nexport function createAudioApi(client: HttpClient): AudioApi {\n return new AudioApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { AssistantCreateRequest, AssistantDeleteResponse, AssistantListResponse, AssistantResponse } from '../types';\n\n\nexport class AssistantsApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Get assistant */\n async getAssistant(assistant_id: string | number): Promise<AssistantResponse> {\n return this.client.get<AssistantResponse>(aiApiPath(`/assistants/${assistant_id}`));\n }\n\n/** Update assistant */\n async updateAssistant(assistant_id: string | number, body: AssistantCreateRequest): Promise<AssistantResponse> {\n return this.client.post<AssistantResponse>(aiApiPath(`/assistants/${assistant_id}`), body);\n }\n\n/** Delete assistant */\n async deleteAssistant(assistant_id: string | number): Promise<AssistantDeleteResponse> {\n return this.client.delete<AssistantDeleteResponse>(aiApiPath(`/assistants/${assistant_id}`));\n }\n\n/** List assistants */\n async listAssistants(params?: QueryParams): Promise<AssistantListResponse> {\n return this.client.get<AssistantListResponse>(aiApiPath(`/assistants`), params);\n }\n\n/** Create assistant */\n async createAssistant(body: AssistantCreateRequest): Promise<AssistantResponse> {\n return this.client.post<AssistantResponse>(aiApiPath(`/assistants`), body);\n }\n}\n\nexport function createAssistantsApi(client: HttpClient): AssistantsApi {\n return new AssistantsApi(client);\n}\n","import { aiApiPath } from './paths';\nimport type { HttpClient } from '../http/client';\nimport type { QueryParams } from '../types/common';\nimport type { OpenAiModel, OpenAiModelDeleteResponse, OpenAiModelList } from '../types';\n\n\nexport class ModelsApi {\n private client: HttpClient;\n \n constructor(client: HttpClient) { \n this.client = client; \n }\n\n/** Retrieve model */\n async retrieveModel(model: string | number): Promise<OpenAiModel> {\n return this.client.get<OpenAiModel>(aiApiPath(`/models/${model}`));\n }\n\n/** Delete model */\n async deleteModel(model: string | number): Promise<OpenAiModelDeleteResponse> {\n return this.client.delete<OpenAiModelDeleteResponse>(aiApiPath(`/models/${model}`));\n }\n\n/** List models */\n async listModels(): Promise<OpenAiModelList> {\n return this.client.get<OpenAiModelList>(aiApiPath(`/models`));\n }\n}\n\nexport function createModelsApi(client: HttpClient): ModelsApi {\n return new ModelsApi(client);\n}\n","import { HttpClient, createHttpClient } from './http/client';\nimport type { SdkworkAiConfig } from './types/common';\nimport type { AuthTokenManager } from '@sdkwork/sdk-common';\n\nimport { ChatApi, createChatApi } from './api/chat';\nimport { VideosApi, createVideosApi } from './api/videos';\nimport { ThreadsApi, createThreadsApi } from './api/threads';\nimport { ResponsesApi, createResponsesApi } from './api/responses';\nimport { RerankApi, createRerankApi } from './api/rerank';\nimport { MusicApi, createMusicApi } from './api/music';\nimport { ModerationsApi, createModerationsApi } from './api/moderations';\nimport { ChatCompletionsApi, createChatCompletionsApi } from './api/chat-completions';\nimport { KnowledgeBasesApi, createKnowledgeBasesApi } from './api/knowledge-bases';\nimport { ImagesApi, createImagesApi } from './api/images';\nimport { FilesApi, createFilesApi } from './api/files';\nimport { EmbeddingsApi, createEmbeddingsApi } from './api/embeddings';\nimport { ContextApi, createContextApi } from './api/context';\nimport { BatchesApi, createBatchesApi } from './api/batches';\nimport { AudioApi, createAudioApi } from './api/audio';\nimport { AssistantsApi, createAssistantsApi } from './api/assistants';\nimport { ModelsApi, createModelsApi } from './api/models';\n\nexport class SdkworkAiClient {\n private httpClient: HttpClient;\n\n public readonly chat: ChatApi;\n public readonly videos: VideosApi;\n public readonly threads: ThreadsApi;\n public readonly responses: ResponsesApi;\n public readonly rerank: RerankApi;\n public readonly music: MusicApi;\n public readonly moderations: ModerationsApi;\n public readonly chatCompletions: ChatCompletionsApi;\n public readonly knowledgeBases: KnowledgeBasesApi;\n public readonly images: ImagesApi;\n public readonly files: FilesApi;\n public readonly embeddings: EmbeddingsApi;\n public readonly context: ContextApi;\n public readonly batches: BatchesApi;\n public readonly audio: AudioApi;\n public readonly assistants: AssistantsApi;\n public readonly models: ModelsApi;\n\n constructor(config: SdkworkAiConfig) {\n this.httpClient = createHttpClient(config);\n this.chat = createChatApi(this.httpClient);\n\n this.videos = createVideosApi(this.httpClient);\n\n this.threads = createThreadsApi(this.httpClient);\n\n this.responses = createResponsesApi(this.httpClient);\n\n this.rerank = createRerankApi(this.httpClient);\n\n this.music = createMusicApi(this.httpClient);\n\n this.moderations = createModerationsApi(this.httpClient);\n\n this.chatCompletions = createChatCompletionsApi(this.httpClient);\n\n this.knowledgeBases = createKnowledgeBasesApi(this.httpClient);\n\n this.images = createImagesApi(this.httpClient);\n\n this.files = createFilesApi(this.httpClient);\n\n this.embeddings = createEmbeddingsApi(this.httpClient);\n\n this.context = createContextApi(this.httpClient);\n\n this.batches = createBatchesApi(this.httpClient);\n\n this.audio = createAudioApi(this.httpClient);\n\n this.assistants = createAssistantsApi(this.httpClient);\n\n this.models = createModelsApi(this.httpClient);\n }\n\n setApiKey(apiKey: string): this {\n this.httpClient.setApiKey(apiKey);\n return this;\n }\n\n setAuthToken(token: string): this {\n this.httpClient.setAuthToken(token);\n return this;\n }\n\n setAccessToken(token: string): this {\n this.httpClient.setAccessToken(token);\n return this;\n }\n\n setTokenManager(manager: AuthTokenManager): this {\n this.httpClient.setTokenManager(manager);\n return this;\n }\n\n get http(): HttpClient {\n return this.httpClient;\n }\n}\n\nexport function createClient(config: SdkworkAiConfig): SdkworkAiClient {\n return new SdkworkAiClient(config);\n}\n\nexport default SdkworkAiClient;\n","import type { QueryParams } from '../types/common';\nimport type { HttpClient } from '../http/client';\n\nexport abstract class BaseApi {\n constructor(\n protected http: HttpClient,\n protected basePath: string\n ) {}\n\n protected async get<T>(path: string, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.http.get<T>(`${this.basePath}${path}`, params, headers);\n }\n\n protected async post<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.http.post<T>(`${this.basePath}${path}`, body, params, headers);\n }\n\n protected async put<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.http.put<T>(`${this.basePath}${path}`, body, params, headers);\n }\n\n protected async delete<T>(path: string, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.http.delete<T>(`${this.basePath}${path}`, params, headers);\n }\n\n protected async patch<T>(path: string, body?: unknown, params?: QueryParams, headers?: Record<string, string>): Promise<T> {\n return this.http.patch<T>(`${this.basePath}${path}`, body, params, headers);\n }\n}\n"],"names":["_HttpClient","BaseHttpClient","config","self","apiKey","authConfig","headers","token","manager","baseProto","path","options","execute","withRetry","params","body","HttpClient","createHttpClient","AI_API_PREFIX","aiApiPath","normalizedPrefixRaw","normalizedPrefix","normalizedPath","ChatApi","client","completion_id","createChatApi","VideosApi","videoId","createVideosApi","ThreadsApi","thread_id","run_id","message_id","step_id","createThreadsApi","ResponsesApi","response_id","createResponsesApi","RerankApi","createRerankApi","MusicApi","musicId","createMusicApi","ModerationsApi","createModerationsApi","ChatCompletionsApi","completionId","createChatCompletionsApi","KnowledgeBasesApi","knowledgeBaseId","documentId","createKnowledgeBasesApi","ImagesApi","createImagesApi","FilesApi","fileId","createFilesApi","EmbeddingsApi","createEmbeddingsApi","ContextApi","contextId","createContextApi","BatchesApi","batch_id","createBatchesApi","AudioApi","createAudioApi","AssistantsApi","assistant_id","createAssistantsApi","ModelsApi","model","createModelsApi","SdkworkAiClient","createClient","BaseApi","http","basePath"],"mappings":"uHAKaA,EAAN,MAAMA,UAAmBC,EAAAA,cAAe,CAI7C,YAAYC,EAAyB,CACnC,MAAMA,CAAa,CACrB,CAEQ,uBAA6B,CACnC,MAAMC,EAAO,KACb,OAAAA,EAAK,WAAaA,EAAK,YAAc,CAAA,EAC9BA,EAAK,UACd,CAEQ,oBAA6C,CACnD,MAAMA,EAAO,KACb,OAAAA,EAAK,OAASA,EAAK,QAAU,CAAA,EAC7BA,EAAK,OAAO,QAAUA,EAAK,OAAO,SAAW,CAAA,EACtCA,EAAK,OAAO,OACrB,CAEA,UAAUC,EAAsB,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