@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 @@
|
|
|
1
|
+
{"version":3,"file":"image-file-content.d.ts","sourceRoot":"","sources":["../../src/types/image-file-content.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,MAAM,WAAW,gBAAgB;IAC/B,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Image edit request */
|
|
2
|
+
export interface ImageGenerationRequest {
|
|
3
|
+
model?: string;
|
|
4
|
+
prompt?: string;
|
|
5
|
+
n?: number;
|
|
6
|
+
quality?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
style?: string;
|
|
9
|
+
user?: string;
|
|
10
|
+
image?: string[];
|
|
11
|
+
extra?: Record<string, unknown>;
|
|
12
|
+
response_format?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=image-generation-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-generation-request.d.ts","sourceRoot":"","sources":["../../src/types/image-generation-request.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-generation-response.d.ts","sourceRoot":"","sources":["../../src/types/image-generation-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;CACpB"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export type { ChatCompletionResponse } from './chat-completion-response';
|
|
3
|
+
export type { Choice } from './choice';
|
|
4
|
+
export type { CompletionTokensDetails } from './completion-tokens-details';
|
|
5
|
+
export type { Content } from './content';
|
|
6
|
+
export type { FunctionCall } from './function-call';
|
|
7
|
+
export type { Logprobs } from './logprobs';
|
|
8
|
+
export type { Message } from './message';
|
|
9
|
+
export type { PromptTokensDetails } from './prompt-tokens-details';
|
|
10
|
+
export type { ToolCall } from './tool-call';
|
|
11
|
+
export type { TopLogprob } from './top-logprob';
|
|
12
|
+
export type { Usage } from './usage';
|
|
13
|
+
export type { VideoGenerationRequest } from './video-generation-request';
|
|
14
|
+
export type { OpenAiVideo } from './open-ai-video';
|
|
15
|
+
export type { VideoError } from './video-error';
|
|
16
|
+
export type { Function } from './function';
|
|
17
|
+
export type { LastError } from './last-error';
|
|
18
|
+
export type { RequiredAction } from './required-action';
|
|
19
|
+
export type { RunResponse } from './run-response';
|
|
20
|
+
export type { SubmitToolOutputs } from './submit-tool-outputs';
|
|
21
|
+
export type { RunCreateRequest } from './run-create-request';
|
|
22
|
+
export type { TruncationStrategy } from './truncation-strategy';
|
|
23
|
+
export type { ThreadMessageModifyRequest } from './thread-message-modify-request';
|
|
24
|
+
export type { ContentBlock } from './content-block';
|
|
25
|
+
export type { ImageFileContent } from './image-file-content';
|
|
26
|
+
export type { TextContent } from './text-content';
|
|
27
|
+
export type { ThreadMessageResponse } from './thread-message-response';
|
|
28
|
+
export type { Attachment } from './attachment';
|
|
29
|
+
export type { ThreadMessageCreateRequest } from './thread-message-create-request';
|
|
30
|
+
export type { ThreadCreateRequest } from './thread-create-request';
|
|
31
|
+
export type { ThreadResponse } from './thread-response';
|
|
32
|
+
export type { ThreadRunCreateRequest } from './thread-run-create-request';
|
|
33
|
+
export type { Document } from './document';
|
|
34
|
+
export type { RerankRequest } from './rerank-request';
|
|
35
|
+
export type { RerankResponse } from './rerank-response';
|
|
36
|
+
export type { Result } from './result';
|
|
37
|
+
export type { MusicGenerationRequest } from './music-generation-request';
|
|
38
|
+
export type { MusicError } from './music-error';
|
|
39
|
+
export type { SunoMusic } from './suno-music';
|
|
40
|
+
export type { ModerationRequest } from './moderation-request';
|
|
41
|
+
export type { Categories } from './categories';
|
|
42
|
+
export type { CategoryScores } from './category-scores';
|
|
43
|
+
export type { ModerationResponse } from './moderation-response';
|
|
44
|
+
export type { ModerationResult } from './moderation-result';
|
|
45
|
+
export type { ChunkConfig } from './chunk-config';
|
|
46
|
+
export type { DocumentAddRequest } from './document-add-request';
|
|
47
|
+
export type { DocumentResponse } from './document-response';
|
|
48
|
+
export type { Filter } from './filter';
|
|
49
|
+
export type { KnowledgeSearchRequest } from './knowledge-search-request';
|
|
50
|
+
export type { KnowledgeSearchResponse } from './knowledge-search-response';
|
|
51
|
+
export type { SearchResult } from './search-result';
|
|
52
|
+
export type { KnowledgeBaseCreateRequest } from './knowledge-base-create-request';
|
|
53
|
+
export type { KnowledgeBaseResponse } from './knowledge-base-response';
|
|
54
|
+
export type { ImageGenerationRequest } from './image-generation-request';
|
|
55
|
+
export type { ImageData } from './image-data';
|
|
56
|
+
export type { ImageGenerationResponse } from './image-generation-response';
|
|
57
|
+
export type { OpenAiFileObject } from './open-ai-file-object';
|
|
58
|
+
export type { EmbeddingRequest } from './embedding-request';
|
|
59
|
+
export type { Embedding } from './embedding';
|
|
60
|
+
export type { EmbeddingResponse } from './embedding-response';
|
|
61
|
+
export type { ContextResponse } from './context-response';
|
|
62
|
+
export type { ContextCreateRequest } from './context-create-request';
|
|
63
|
+
export type { ContextMessage } from './context-message';
|
|
64
|
+
export type { Annotation } from './annotation';
|
|
65
|
+
export type { Audio } from './audio';
|
|
66
|
+
export type { AudioParameters } from './audio-parameters';
|
|
67
|
+
export type { ChatCompletionRequest } from './chat-completion-request';
|
|
68
|
+
export type { ChatMessage } from './chat-message';
|
|
69
|
+
export type { FileCitation } from './file-citation';
|
|
70
|
+
export type { JsonSchema } from './json-schema';
|
|
71
|
+
export type { ResponseFormat } from './response-format';
|
|
72
|
+
export type { StreamOptions } from './stream-options';
|
|
73
|
+
export type { Thinking } from './thinking';
|
|
74
|
+
export type { Tool } from './tool';
|
|
75
|
+
export type { BatchResponse } from './batch-response';
|
|
76
|
+
export type { ErrorObject } from './error-object';
|
|
77
|
+
export type { Errors } from './errors';
|
|
78
|
+
export type { RequestCounts } from './request-counts';
|
|
79
|
+
export type { BatchCreateRequest } from './batch-create-request';
|
|
80
|
+
export type { Segment } from './segment';
|
|
81
|
+
export type { TranscriptionResponse } from './transcription-response';
|
|
82
|
+
export type { Word } from './word';
|
|
83
|
+
export type { SpeechRequest } from './speech-request';
|
|
84
|
+
export type { AssistantCreateRequest } from './assistant-create-request';
|
|
85
|
+
export type { AssistantResponse } from './assistant-response';
|
|
86
|
+
export type { OpenAiVideoList } from './open-ai-video-list';
|
|
87
|
+
export type { RunStepResponse } from './run-step-response';
|
|
88
|
+
export type { RunStepListResponse } from './run-step-list-response';
|
|
89
|
+
export type { RunListResponse } from './run-list-response';
|
|
90
|
+
export type { ThreadMessageListResponse } from './thread-message-list-response';
|
|
91
|
+
export type { SunoMusicList } from './suno-music-list';
|
|
92
|
+
export type { OpenAiModel } from './open-ai-model';
|
|
93
|
+
export type { OpenAiModelList } from './open-ai-model-list';
|
|
94
|
+
export type { ChatMessageList } from './chat-message-list';
|
|
95
|
+
export type { ChatCompletionList } from './chat-completion-list';
|
|
96
|
+
export type { KnowledgeBaseListResponse } from './knowledge-base-list-response';
|
|
97
|
+
export type { OpenAiFileList } from './open-ai-file-list';
|
|
98
|
+
export type { BatchListResponse } from './batch-list-response';
|
|
99
|
+
export type { AssistantListResponse } from './assistant-list-response';
|
|
100
|
+
export type { OpenAiVideoDeleteResponse } from './open-ai-video-delete-response';
|
|
101
|
+
export type { ThreadDeleteResponse } from './thread-delete-response';
|
|
102
|
+
export type { SunoMusicDeleteResponse } from './suno-music-delete-response';
|
|
103
|
+
export type { OpenAiModelDeleteResponse } from './open-ai-model-delete-response';
|
|
104
|
+
export type { ChatCompletionDeleteResponse } from './chat-completion-delete-response';
|
|
105
|
+
export type { OpenAiFileDeleteResponse } from './open-ai-file-delete-response';
|
|
106
|
+
export type { AssistantDeleteResponse } from './assistant-delete-response';
|
|
107
|
+
export type { UpdateCompletionRequest } from './update-completion-request';
|
|
108
|
+
export type { PatchUpdateCompletionRequest } from './patch-update-completion-request';
|
|
109
|
+
export type { SubmitToolOutputsRequest } from './submit-tool-outputs-request';
|
|
110
|
+
export type { SubmitToolOutputsResponse } from './submit-tool-outputs-response';
|
|
111
|
+
export type { UpdateRunRequest } from './update-run-request';
|
|
112
|
+
export type { CreateRunResponse } from './create-run-response';
|
|
113
|
+
export type { CreateThreadAndRunResponse } from './create-thread-and-run-response';
|
|
114
|
+
export type { CancelResponseResponse } from './cancel-response-response';
|
|
115
|
+
export type { CreateResponseRequest } from './create-response-request';
|
|
116
|
+
export type { CreateResponseResponse } from './create-response-response';
|
|
117
|
+
export type { CountClaudeTokensRequest } from './count-claude-tokens-request';
|
|
118
|
+
export type { CountClaudeTokensResponse } from './count-claude-tokens-response';
|
|
119
|
+
export type { CreateClaudeMessageRequest } from './create-claude-message-request';
|
|
120
|
+
export type { CreateClaudeMessageResponse } from './create-claude-message-response';
|
|
121
|
+
export type { UpdateChatCompletionRequest } from './update-chat-completion-request';
|
|
122
|
+
export type { ListDocumentsResponse } from './list-documents-response';
|
|
123
|
+
export type { UploadFileRequest } from './upload-file-request';
|
|
124
|
+
export type { ChatWithContextRequest } from './chat-with-context-request';
|
|
125
|
+
export type { CreateChatCompletionResponse } from './create-chat-completion-response';
|
|
126
|
+
export type { CreateTranslationRequest } from './create-translation-request';
|
|
127
|
+
export type { CreateTranscriptionRequest } from './create-transcription-request';
|
|
128
|
+
export type { ListResponseInputItemsResponse } from './list-response-input-items-response';
|
|
129
|
+
export type { GetResponseResponse } from './get-response-response';
|
|
130
|
+
export type { DeleteResponseResponse } from './delete-response-response';
|
|
131
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","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iC,CAAC;AAClF,YAAY,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,YAAY,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,YAAY,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,YAAY,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAC3F,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/types/json-schema.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,WAAW,UAAU;IACzB,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS;IACT,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Knowledge base creation request */
|
|
2
|
+
export interface KnowledgeBaseCreateRequest {
|
|
3
|
+
/** 知识库名称 */
|
|
4
|
+
name: string;
|
|
5
|
+
/** 知识库描述 */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** 额外配置 */
|
|
8
|
+
extra?: Record<string, unknown>;
|
|
9
|
+
/** 嵌入模型ID */
|
|
10
|
+
embedding_model_id?: string;
|
|
11
|
+
/** 索引类型 */
|
|
12
|
+
index_type?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=knowledge-base-create-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-base-create-request.d.ts","sourceRoot":"","sources":["../../src/types/knowledge-base-create-request.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,MAAM,WAAW,0BAA0B;IACzC,YAAY;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,aAAa;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KnowledgeBaseResponse } from './knowledge-base-response';
|
|
2
|
+
/** 知识库列表响应 */
|
|
3
|
+
export interface KnowledgeBaseListResponse {
|
|
4
|
+
/** 知识库列表 */
|
|
5
|
+
data?: KnowledgeBaseResponse[];
|
|
6
|
+
/** 总数 */
|
|
7
|
+
total?: number;
|
|
8
|
+
/** 是否有更多 */
|
|
9
|
+
has_more?: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=knowledge-base-list-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-base-list-response.d.ts","sourceRoot":"","sources":["../../src/types/knowledge-base-list-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,cAAc;AACd,MAAM,WAAW,yBAAyB;IACxC,YAAY;IACZ,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC/B,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** 知识库响应 */
|
|
2
|
+
export interface KnowledgeBaseResponse {
|
|
3
|
+
/** 知识库名称 */
|
|
4
|
+
name?: string;
|
|
5
|
+
/** 知识库描述 */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** 状态 */
|
|
8
|
+
status?: string;
|
|
9
|
+
/** 知识库ID */
|
|
10
|
+
knowledge_base_id?: string;
|
|
11
|
+
/** 嵌入模型ID */
|
|
12
|
+
embedding_model_id?: string;
|
|
13
|
+
/** 索引类型 */
|
|
14
|
+
index_type?: string;
|
|
15
|
+
/** 创建时间 */
|
|
16
|
+
created_at?: number;
|
|
17
|
+
/** 更新时间 */
|
|
18
|
+
updated_at?: number;
|
|
19
|
+
/** 文档数量 */
|
|
20
|
+
doc_count?: number;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=knowledge-base-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-base-response.d.ts","sourceRoot":"","sources":["../../src/types/knowledge-base-response.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,MAAM,WAAW,qBAAqB;IACpC,YAAY;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS;IACT,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Filter } from './filter';
|
|
2
|
+
/** Search request */
|
|
3
|
+
export interface KnowledgeSearchRequest {
|
|
4
|
+
/** 查询文本 */
|
|
5
|
+
query: string;
|
|
6
|
+
/** 过滤条件 */
|
|
7
|
+
filters?: Filter[];
|
|
8
|
+
/** 知识库ID */
|
|
9
|
+
knowledge_base_id: string;
|
|
10
|
+
/** 返回结果数量 */
|
|
11
|
+
top_k?: number;
|
|
12
|
+
/** 相似度阈值 */
|
|
13
|
+
score_threshold?: number;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=knowledge-search-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-search-request.d.ts","sourceRoot":"","sources":["../../src/types/knowledge-search-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAqB;AACrB,MAAM,WAAW,sBAAsB;IACrC,WAAW;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY;IACZ,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-search-response.d.ts","sourceRoot":"","sources":["../../src/types/knowledge-search-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,aAAa;AACb,MAAM,WAAW,uBAAuB;IACtC,aAAa;IACb,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-error.d.ts","sourceRoot":"","sources":["../../src/types/last-error.ts"],"names":[],"mappings":"AAAA,WAAW;AACX,MAAM,WAAW,SAAS;IACxB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-documents-response.d.ts","sourceRoot":"","sources":["../../src/types/list-documents-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-response-input-items-response.d.ts","sourceRoot":"","sources":["../../src/types/list-response-input-items-response.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logprobs.d.ts","sourceRoot":"","sources":["../../src/types/logprobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,WAAW;AACX,MAAM,WAAW,QAAQ;IACvB,eAAe;IACf,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,iBAAiB;IACjB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ToolCall } from './tool-call';
|
|
2
|
+
/** 消息 */
|
|
3
|
+
export interface Message {
|
|
4
|
+
/** 角色 */
|
|
5
|
+
role?: string;
|
|
6
|
+
/** 消息内容 */
|
|
7
|
+
content?: unknown;
|
|
8
|
+
/** 拒绝消息 */
|
|
9
|
+
refusal?: string;
|
|
10
|
+
/** 注解列表 */
|
|
11
|
+
annotations?: unknown[];
|
|
12
|
+
/** 思维链内容 */
|
|
13
|
+
reasoning_content?: string;
|
|
14
|
+
/** 工具调用列表 */
|
|
15
|
+
tool_calls?: ToolCall[];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,SAAS;AACT,MAAM,WAAW,OAAO;IACtB,SAAS;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW;IACX,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB,YAAY;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa;IACb,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation-request.d.ts","sourceRoot":"","sources":["../../src/types/moderation-request.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModerationResult } from './moderation-result';
|
|
2
|
+
/** OpenAI标准审核响应 */
|
|
3
|
+
export interface ModerationResponse {
|
|
4
|
+
/** The unique identifier for the moderation request */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** The model used to generate the moderation results */
|
|
7
|
+
model?: string;
|
|
8
|
+
/** A list of moderation objects */
|
|
9
|
+
results?: ModerationResult[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=moderation-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation-response.d.ts","sourceRoot":"","sources":["../../src/types/moderation-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,mBAAmB;AACnB,MAAM,WAAW,kBAAkB;IACjC,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Categories } from './categories';
|
|
2
|
+
import { CategoryScores } from './category-scores';
|
|
3
|
+
/** Moderation result for a single input */
|
|
4
|
+
export interface ModerationResult {
|
|
5
|
+
/** Whether the content violates OpenAI's usage policies */
|
|
6
|
+
flagged?: boolean;
|
|
7
|
+
/** A list of the categories, and whether they are flagged or not */
|
|
8
|
+
categories?: Categories;
|
|
9
|
+
/** A list of the categories along with their scores as predicted by model */
|
|
10
|
+
category_scores?: CategoryScores;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=moderation-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moderation-result.d.ts","sourceRoot":"","sources":["../../src/types/moderation-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,2CAA2C;AAC3C,MAAM,WAAW,gBAAgB;IAC/B,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"music-error.d.ts","sourceRoot":"","sources":["../../src/types/music-error.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,MAAM,WAAW,UAAU;IACzB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Music generation request */
|
|
2
|
+
export interface MusicGenerationRequest {
|
|
3
|
+
/** 模型ID */
|
|
4
|
+
model: string;
|
|
5
|
+
/** 提示词 */
|
|
6
|
+
prompt: string;
|
|
7
|
+
/** 负面提示词 */
|
|
8
|
+
negativePrompt?: string;
|
|
9
|
+
/** 时长(秒) */
|
|
10
|
+
duration?: number;
|
|
11
|
+
/** 格式: mp3, wav, flac */
|
|
12
|
+
format?: string;
|
|
13
|
+
/** 生成数量 */
|
|
14
|
+
n?: number;
|
|
15
|
+
/** 参考音频URL */
|
|
16
|
+
referenceAudio?: string;
|
|
17
|
+
/** 风格 */
|
|
18
|
+
style?: string;
|
|
19
|
+
/** 元数据 */
|
|
20
|
+
metadata?: Record<string, string>;
|
|
21
|
+
/** 响应格式: url, b64_json */
|
|
22
|
+
response_format?: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=music-generation-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"music-generation-request.d.ts","sourceRoot":"","sources":["../../src/types/music-generation-request.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,WAAW;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU;IACV,MAAM,EAAE,MAAM,CAAC;IACf,YAAY;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,cAAc;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,0BAA0B;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-file-delete-response.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-file-delete-response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OpenAiFileObject } from './open-ai-file-object';
|
|
2
|
+
/** OpenAI标准文件列表对象 */
|
|
3
|
+
export interface OpenAiFileList {
|
|
4
|
+
/** 文件列表数据 */
|
|
5
|
+
data?: OpenAiFileObject[];
|
|
6
|
+
/** 对象类型 */
|
|
7
|
+
object?: string;
|
|
8
|
+
/** 第一条记录的ID */
|
|
9
|
+
first_id?: string;
|
|
10
|
+
/** 最后一条记录的ID */
|
|
11
|
+
last_id?: string;
|
|
12
|
+
/** 是否有更多数据 */
|
|
13
|
+
has_more?: boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=open-ai-file-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-file-list.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-file-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,qBAAqB;AACrB,MAAM,WAAW,cAAc;IAC7B,aAAa;IACb,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1B,WAAW;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** OpenAI标准文件对象 */
|
|
2
|
+
export interface OpenAiFileObject {
|
|
3
|
+
/** 文件ID */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** 对象类型 */
|
|
6
|
+
object?: string;
|
|
7
|
+
/** 文件大小(字节) */
|
|
8
|
+
bytes?: number;
|
|
9
|
+
/** 文件名 */
|
|
10
|
+
filename?: string;
|
|
11
|
+
/** 文件用途 */
|
|
12
|
+
purpose?: 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'fine-tune' | 'fine-tune-results' | 'vision' | 'user_data' | 'evals';
|
|
13
|
+
/** 文件状态 */
|
|
14
|
+
status?: 'uploaded' | 'processed' | 'error';
|
|
15
|
+
/** 是否已删除 */
|
|
16
|
+
deleted?: boolean;
|
|
17
|
+
/** 创建时间(Unix时间戳,秒) */
|
|
18
|
+
created_at?: number;
|
|
19
|
+
/** 过期时间(Unix时间戳,秒) */
|
|
20
|
+
expires_at?: number;
|
|
21
|
+
/** 状态详情 */
|
|
22
|
+
status_details?: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=open-ai-file-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-file-object.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-file-object.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,MAAM,WAAW,gBAAgB;IAC/B,WAAW;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW;IACX,OAAO,CAAC,EAAE,YAAY,GAAG,mBAAmB,GAAG,OAAO,GAAG,cAAc,GAAG,WAAW,GAAG,mBAAmB,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;IAC/I,WAAW;IACX,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IAC5C,YAAY;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW;IACX,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-model-delete-response.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-model-delete-response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-model-list.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-model-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-model.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-video-delete-response.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-video-delete-response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-ai-video-list.d.ts","sourceRoot":"","sources":["../../src/types/open-ai-video-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;CACtB"}
|