@keystrokehq/openai 0.1.2 → 0.1.3
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/dist/actions/add-upload-part.cjs +1 -1
- package/dist/actions/add-upload-part.cjs.map +1 -1
- package/dist/actions/add-upload-part.d.cts +1 -1
- package/dist/actions/add-upload-part.d.mts +1 -1
- package/dist/actions/add-upload-part.mjs +1 -1
- package/dist/actions/add-upload-part.mjs.map +1 -1
- package/dist/actions/cancel-batch.cjs +6 -6
- package/dist/actions/cancel-batch.cjs.map +1 -1
- package/dist/actions/cancel-batch.d.cts +10 -10
- package/dist/actions/cancel-batch.d.mts +10 -10
- package/dist/actions/cancel-batch.mjs +6 -6
- package/dist/actions/cancel-batch.mjs.map +1 -1
- package/dist/actions/cancel-eval-run.cjs +8 -8
- package/dist/actions/cancel-eval-run.cjs.map +1 -1
- package/dist/actions/cancel-eval-run.d.cts +8 -8
- package/dist/actions/cancel-eval-run.d.mts +8 -8
- package/dist/actions/cancel-eval-run.mjs +8 -8
- package/dist/actions/cancel-eval-run.mjs.map +1 -1
- package/dist/actions/cancel-response.cjs +11 -11
- package/dist/actions/cancel-response.cjs.map +1 -1
- package/dist/actions/cancel-response.d.cts +11 -11
- package/dist/actions/cancel-response.d.mts +11 -11
- package/dist/actions/cancel-response.mjs +11 -11
- package/dist/actions/cancel-response.mjs.map +1 -1
- package/dist/actions/cancel-run.cjs +7 -7
- package/dist/actions/cancel-run.cjs.map +1 -1
- package/dist/actions/cancel-run.d.cts +11 -11
- package/dist/actions/cancel-run.d.mts +11 -11
- package/dist/actions/cancel-run.mjs +7 -7
- package/dist/actions/cancel-run.mjs.map +1 -1
- package/dist/actions/cancel-upload.cjs +2 -2
- package/dist/actions/cancel-upload.cjs.map +1 -1
- package/dist/actions/cancel-upload.d.cts +3 -3
- package/dist/actions/cancel-upload.d.mts +3 -3
- package/dist/actions/cancel-upload.mjs +2 -2
- package/dist/actions/cancel-upload.mjs.map +1 -1
- package/dist/actions/compact-response.cjs +9 -9
- package/dist/actions/compact-response.cjs.map +1 -1
- package/dist/actions/compact-response.d.cts +11 -9
- package/dist/actions/compact-response.d.mts +11 -9
- package/dist/actions/compact-response.mjs +9 -9
- package/dist/actions/compact-response.mjs.map +1 -1
- package/dist/actions/create-audio-transcription.cjs +3 -3
- package/dist/actions/create-audio-transcription.cjs.map +1 -1
- package/dist/actions/create-audio-transcription.d.cts +3 -3
- package/dist/actions/create-audio-transcription.d.mts +3 -3
- package/dist/actions/create-audio-transcription.mjs +3 -3
- package/dist/actions/create-audio-transcription.mjs.map +1 -1
- package/dist/actions/create-audio-translation.cjs +1 -1
- package/dist/actions/create-audio-translation.cjs.map +1 -1
- package/dist/actions/create-audio-translation.d.cts +1 -1
- package/dist/actions/create-audio-translation.d.mts +1 -1
- package/dist/actions/create-audio-translation.mjs +1 -1
- package/dist/actions/create-audio-translation.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +9 -9
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +14 -14
- package/dist/actions/create-batch.d.mts +14 -14
- package/dist/actions/create-batch.mjs +9 -9
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +13 -13
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +19 -16
- package/dist/actions/create-chat-completion.d.mts +19 -16
- package/dist/actions/create-chat-completion.mjs +13 -13
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-completion.cjs +9 -9
- package/dist/actions/create-completion.cjs.map +1 -1
- package/dist/actions/create-completion.d.cts +11 -11
- package/dist/actions/create-completion.d.mts +11 -11
- package/dist/actions/create-completion.mjs +9 -9
- package/dist/actions/create-completion.mjs.map +1 -1
- package/dist/actions/create-container-file.cjs +1 -1
- package/dist/actions/create-container-file.cjs.map +1 -1
- package/dist/actions/create-container-file.d.cts +1 -1
- package/dist/actions/create-container-file.d.mts +1 -1
- package/dist/actions/create-container-file.mjs +1 -1
- package/dist/actions/create-container-file.mjs.map +1 -1
- package/dist/actions/create-container.cjs +8 -8
- package/dist/actions/create-container.cjs.map +1 -1
- package/dist/actions/create-container.d.cts +13 -9
- package/dist/actions/create-container.d.cts.map +1 -1
- package/dist/actions/create-container.d.mts +13 -9
- package/dist/actions/create-container.d.mts.map +1 -1
- package/dist/actions/create-container.mjs +8 -8
- package/dist/actions/create-container.mjs.map +1 -1
- package/dist/actions/create-conversation-items.cjs +4 -4
- package/dist/actions/create-conversation-items.cjs.map +1 -1
- package/dist/actions/create-conversation-items.d.cts +6 -4
- package/dist/actions/create-conversation-items.d.cts.map +1 -1
- package/dist/actions/create-conversation-items.d.mts +6 -4
- package/dist/actions/create-conversation-items.d.mts.map +1 -1
- package/dist/actions/create-conversation-items.mjs +4 -4
- package/dist/actions/create-conversation-items.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +3 -3
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +5 -4
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +5 -4
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +3 -3
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +3 -3
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +3 -3
- package/dist/actions/create-embeddings.d.mts +3 -3
- package/dist/actions/create-embeddings.mjs +3 -3
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/create-eval-run.cjs +19 -19
- package/dist/actions/create-eval-run.cjs.map +1 -1
- package/dist/actions/create-eval-run.d.cts +32 -23
- package/dist/actions/create-eval-run.d.mts +32 -23
- package/dist/actions/create-eval-run.mjs +19 -19
- package/dist/actions/create-eval-run.mjs.map +1 -1
- package/dist/actions/create-eval.cjs +10 -10
- package/dist/actions/create-eval.cjs.map +1 -1
- package/dist/actions/create-eval.d.cts +19 -10
- package/dist/actions/create-eval.d.mts +19 -10
- package/dist/actions/create-eval.mjs +10 -10
- package/dist/actions/create-eval.mjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.cjs +4 -4
- package/dist/actions/create-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.cts +5 -5
- package/dist/actions/create-fine-tuning-job.d.mts +5 -5
- package/dist/actions/create-fine-tuning-job.mjs +4 -4
- package/dist/actions/create-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/create-image-edit.cjs +5 -5
- package/dist/actions/create-image-edit.cjs.map +1 -1
- package/dist/actions/create-image-edit.d.cts +7 -6
- package/dist/actions/create-image-edit.d.mts +7 -6
- package/dist/actions/create-image-edit.mjs +5 -5
- package/dist/actions/create-image-edit.mjs.map +1 -1
- package/dist/actions/create-image-variation.cjs +2 -2
- package/dist/actions/create-image-variation.cjs.map +1 -1
- package/dist/actions/create-image-variation.d.cts +2 -2
- package/dist/actions/create-image-variation.d.mts +2 -2
- package/dist/actions/create-image-variation.mjs +2 -2
- package/dist/actions/create-image-variation.mjs.map +1 -1
- package/dist/actions/create-image.cjs +4 -4
- package/dist/actions/create-image.cjs.map +1 -1
- package/dist/actions/create-image.d.cts +4 -4
- package/dist/actions/create-image.d.mts +4 -4
- package/dist/actions/create-image.mjs +4 -4
- package/dist/actions/create-image.mjs.map +1 -1
- package/dist/actions/create-message.cjs +13 -13
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +17 -14
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +17 -14
- package/dist/actions/create-message.d.mts.map +1 -1
- package/dist/actions/create-message.mjs +13 -13
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/create-moderation.cjs +7 -7
- package/dist/actions/create-moderation.cjs.map +1 -1
- package/dist/actions/create-moderation.d.cts +9 -8
- package/dist/actions/create-moderation.d.cts.map +1 -1
- package/dist/actions/create-moderation.d.mts +9 -8
- package/dist/actions/create-moderation.d.mts.map +1 -1
- package/dist/actions/create-moderation.mjs +7 -7
- package/dist/actions/create-moderation.mjs.map +1 -1
- package/dist/actions/create-realtime-call.cjs +1 -1
- package/dist/actions/create-realtime-call.cjs.map +1 -1
- package/dist/actions/create-realtime-call.d.cts +1 -1
- package/dist/actions/create-realtime-call.d.mts +1 -1
- package/dist/actions/create-realtime-call.mjs +1 -1
- package/dist/actions/create-realtime-call.mjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.cjs +3 -3
- package/dist/actions/create-realtime-client-secret.cjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.cts +5 -3
- package/dist/actions/create-realtime-client-secret.d.mts +5 -3
- package/dist/actions/create-realtime-client-secret.mjs +3 -3
- package/dist/actions/create-realtime-client-secret.mjs.map +1 -1
- package/dist/actions/create-realtime-session.cjs +6 -6
- package/dist/actions/create-realtime-session.cjs.map +1 -1
- package/dist/actions/create-realtime-session.d.cts +10 -6
- package/dist/actions/create-realtime-session.d.mts +10 -6
- package/dist/actions/create-realtime-session.mjs +6 -6
- package/dist/actions/create-realtime-session.mjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.cjs +4 -4
- package/dist/actions/create-realtime-transcription-session.cjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.cts +4 -4
- package/dist/actions/create-realtime-transcription-session.d.mts +4 -4
- package/dist/actions/create-realtime-transcription-session.mjs +4 -4
- package/dist/actions/create-realtime-transcription-session.mjs.map +1 -1
- package/dist/actions/create-response.cjs +15 -15
- package/dist/actions/create-response.cjs.map +1 -1
- package/dist/actions/create-response.d.cts +28 -18
- package/dist/actions/create-response.d.mts +28 -18
- package/dist/actions/create-response.mjs +15 -15
- package/dist/actions/create-response.mjs.map +1 -1
- package/dist/actions/create-run.cjs +24 -24
- package/dist/actions/create-run.cjs.map +1 -1
- package/dist/actions/create-run.d.cts +36 -31
- package/dist/actions/create-run.d.mts +36 -31
- package/dist/actions/create-run.mjs +24 -24
- package/dist/actions/create-run.mjs.map +1 -1
- package/dist/actions/create-skill.cjs +3 -3
- package/dist/actions/create-skill.cjs.map +1 -1
- package/dist/actions/create-skill.d.cts +5 -3
- package/dist/actions/create-skill.d.mts +5 -3
- package/dist/actions/create-skill.mjs +3 -3
- package/dist/actions/create-skill.mjs.map +1 -1
- package/dist/actions/create-speech.cjs +2 -2
- package/dist/actions/create-speech.cjs.map +1 -1
- package/dist/actions/create-speech.d.cts +2 -2
- package/dist/actions/create-speech.d.mts +2 -2
- package/dist/actions/create-speech.mjs +2 -2
- package/dist/actions/create-speech.mjs.map +1 -1
- package/dist/actions/create-thread-and-run.cjs +29 -29
- package/dist/actions/create-thread-and-run.cjs.map +1 -1
- package/dist/actions/create-thread-and-run.d.cts +46 -39
- package/dist/actions/create-thread-and-run.d.mts +46 -39
- package/dist/actions/create-thread-and-run.mjs +29 -29
- package/dist/actions/create-thread-and-run.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +5 -5
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +7 -6
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +7 -6
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +5 -5
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/create-upload.cjs +2 -2
- package/dist/actions/create-upload.cjs.map +1 -1
- package/dist/actions/create-upload.d.cts +3 -3
- package/dist/actions/create-upload.d.mts +3 -3
- package/dist/actions/create-upload.mjs +2 -2
- package/dist/actions/create-upload.mjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.cjs +11 -11
- package/dist/actions/create-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.cts +21 -14
- package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.mts +21 -14
- package/dist/actions/create-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.mjs +11 -11
- package/dist/actions/create-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/create-vector-store-file.cjs +7 -7
- package/dist/actions/create-vector-store-file.cjs.map +1 -1
- package/dist/actions/create-vector-store-file.d.cts +11 -8
- package/dist/actions/create-vector-store-file.d.mts +11 -8
- package/dist/actions/create-vector-store-file.mjs +7 -7
- package/dist/actions/create-vector-store-file.mjs.map +1 -1
- package/dist/actions/create-vector-store.cjs +8 -8
- package/dist/actions/create-vector-store.cjs.map +1 -1
- package/dist/actions/create-vector-store.d.cts +12 -9
- package/dist/actions/create-vector-store.d.mts +12 -9
- package/dist/actions/create-vector-store.mjs +8 -8
- package/dist/actions/create-vector-store.mjs.map +1 -1
- package/dist/actions/create-video-remix.cjs +2 -2
- package/dist/actions/create-video-remix.cjs.map +1 -1
- package/dist/actions/create-video-remix.d.cts +3 -3
- package/dist/actions/create-video-remix.d.mts +3 -3
- package/dist/actions/create-video-remix.mjs +2 -2
- package/dist/actions/create-video-remix.mjs.map +1 -1
- package/dist/actions/create-video.cjs +2 -2
- package/dist/actions/create-video.cjs.map +1 -1
- package/dist/actions/create-video.d.cts +2 -2
- package/dist/actions/create-video.d.mts +2 -2
- package/dist/actions/create-video.mjs +2 -2
- package/dist/actions/create-video.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +1 -1
- package/dist/actions/delete-assistant.d.mts +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-chat-completion.cjs +1 -1
- package/dist/actions/delete-chat-completion.cjs.map +1 -1
- package/dist/actions/delete-chat-completion.d.cts +1 -1
- package/dist/actions/delete-chat-completion.d.mts +1 -1
- package/dist/actions/delete-chat-completion.mjs +1 -1
- package/dist/actions/delete-chat-completion.mjs.map +1 -1
- package/dist/actions/delete-container-file.cjs +1 -1
- package/dist/actions/delete-container-file.cjs.map +1 -1
- package/dist/actions/delete-container-file.d.cts +1 -1
- package/dist/actions/delete-container-file.d.mts +1 -1
- package/dist/actions/delete-container-file.mjs +1 -1
- package/dist/actions/delete-container-file.mjs.map +1 -1
- package/dist/actions/delete-container.cjs +1 -1
- package/dist/actions/delete-container.cjs.map +1 -1
- package/dist/actions/delete-container.d.cts +1 -1
- package/dist/actions/delete-container.d.mts +1 -1
- package/dist/actions/delete-container.mjs +1 -1
- package/dist/actions/delete-container.mjs.map +1 -1
- package/dist/actions/delete-conversation-item.cjs +1 -1
- package/dist/actions/delete-conversation-item.cjs.map +1 -1
- package/dist/actions/delete-conversation-item.d.cts +1 -1
- package/dist/actions/delete-conversation-item.d.mts +1 -1
- package/dist/actions/delete-conversation-item.mjs +1 -1
- package/dist/actions/delete-conversation-item.mjs.map +1 -1
- package/dist/actions/delete-conversation.cjs +1 -1
- package/dist/actions/delete-conversation.cjs.map +1 -1
- package/dist/actions/delete-conversation.d.cts +1 -1
- package/dist/actions/delete-conversation.d.mts +1 -1
- package/dist/actions/delete-conversation.mjs +1 -1
- package/dist/actions/delete-conversation.mjs.map +1 -1
- package/dist/actions/delete-eval-run.cjs +1 -1
- package/dist/actions/delete-eval-run.cjs.map +1 -1
- package/dist/actions/delete-eval-run.d.cts +1 -1
- package/dist/actions/delete-eval-run.d.mts +1 -1
- package/dist/actions/delete-eval-run.mjs +1 -1
- package/dist/actions/delete-eval-run.mjs.map +1 -1
- package/dist/actions/delete-eval.cjs +1 -1
- package/dist/actions/delete-eval.cjs.map +1 -1
- package/dist/actions/delete-eval.d.cts +1 -1
- package/dist/actions/delete-eval.d.mts +1 -1
- package/dist/actions/delete-eval.mjs +1 -1
- package/dist/actions/delete-eval.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -1
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +1 -1
- package/dist/actions/delete-file.d.mts +1 -1
- package/dist/actions/delete-file.mjs +1 -1
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -1
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +1 -1
- package/dist/actions/delete-message.d.mts +1 -1
- package/dist/actions/delete-message.mjs +1 -1
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-response.cjs +1 -1
- package/dist/actions/delete-response.cjs.map +1 -1
- package/dist/actions/delete-response.d.cts +1 -1
- package/dist/actions/delete-response.d.mts +1 -1
- package/dist/actions/delete-response.mjs +1 -1
- package/dist/actions/delete-response.mjs.map +1 -1
- package/dist/actions/delete-skill.cjs +1 -1
- package/dist/actions/delete-skill.cjs.map +1 -1
- package/dist/actions/delete-skill.d.cts +1 -1
- package/dist/actions/delete-skill.d.mts +1 -1
- package/dist/actions/delete-skill.mjs +1 -1
- package/dist/actions/delete-skill.mjs.map +1 -1
- package/dist/actions/delete-thread.cjs +1 -1
- package/dist/actions/delete-thread.cjs.map +1 -1
- package/dist/actions/delete-thread.d.cts +1 -1
- package/dist/actions/delete-thread.d.mts +1 -1
- package/dist/actions/delete-thread.mjs +1 -1
- package/dist/actions/delete-thread.mjs.map +1 -1
- package/dist/actions/delete-vector-store-file.cjs +1 -1
- package/dist/actions/delete-vector-store-file.cjs.map +1 -1
- package/dist/actions/delete-vector-store-file.d.cts +1 -1
- package/dist/actions/delete-vector-store-file.d.mts +1 -1
- package/dist/actions/delete-vector-store-file.mjs +1 -1
- package/dist/actions/delete-vector-store-file.mjs.map +1 -1
- package/dist/actions/delete-vector-store.cjs +1 -1
- package/dist/actions/delete-vector-store.cjs.map +1 -1
- package/dist/actions/delete-vector-store.d.cts +1 -1
- package/dist/actions/delete-vector-store.d.mts +1 -1
- package/dist/actions/delete-vector-store.mjs +1 -1
- package/dist/actions/delete-vector-store.mjs.map +1 -1
- package/dist/actions/delete-video.cjs +1 -1
- package/dist/actions/delete-video.cjs.map +1 -1
- package/dist/actions/delete-video.d.cts +1 -1
- package/dist/actions/delete-video.d.mts +1 -1
- package/dist/actions/delete-video.mjs +1 -1
- package/dist/actions/delete-video.mjs.map +1 -1
- package/dist/actions/download-file.cjs +2 -2
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +2 -2
- package/dist/actions/download-file.d.mts +2 -2
- package/dist/actions/download-file.mjs +2 -2
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-video.cjs +2 -2
- package/dist/actions/download-video.cjs.map +1 -1
- package/dist/actions/download-video.d.cts +2 -2
- package/dist/actions/download-video.d.mts +2 -2
- package/dist/actions/download-video.mjs +2 -2
- package/dist/actions/download-video.mjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.cjs +2 -2
- package/dist/actions/get-chat-completion-messages.cjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.cts +2 -2
- package/dist/actions/get-chat-completion-messages.d.mts +2 -2
- package/dist/actions/get-chat-completion-messages.mjs +2 -2
- package/dist/actions/get-chat-completion-messages.mjs.map +1 -1
- package/dist/actions/get-chat-completion.cjs +7 -7
- package/dist/actions/get-chat-completion.cjs.map +1 -1
- package/dist/actions/get-chat-completion.d.cts +7 -7
- package/dist/actions/get-chat-completion.d.mts +7 -7
- package/dist/actions/get-chat-completion.mjs +7 -7
- package/dist/actions/get-chat-completion.mjs.map +1 -1
- package/dist/actions/get-chatkit-thread.cjs +4 -4
- package/dist/actions/get-chatkit-thread.cjs.map +1 -1
- package/dist/actions/get-chatkit-thread.d.cts +4 -4
- package/dist/actions/get-chatkit-thread.d.mts +4 -4
- package/dist/actions/get-chatkit-thread.mjs +4 -4
- package/dist/actions/get-chatkit-thread.mjs.map +1 -1
- package/dist/actions/get-conversation-item.cjs +1 -1
- package/dist/actions/get-conversation-item.cjs.map +1 -1
- package/dist/actions/get-conversation-item.d.cts +1 -1
- package/dist/actions/get-conversation-item.d.mts +1 -1
- package/dist/actions/get-conversation-item.mjs +1 -1
- package/dist/actions/get-conversation-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.cjs +5 -5
- package/dist/actions/get-eval-run-output-item.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.cts +5 -5
- package/dist/actions/get-eval-run-output-item.d.mts +5 -5
- package/dist/actions/get-eval-run-output-item.mjs +5 -5
- package/dist/actions/get-eval-run-output-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.cjs +6 -6
- package/dist/actions/get-eval-run-output-items.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.cts +7 -7
- package/dist/actions/get-eval-run-output-items.d.mts +7 -7
- package/dist/actions/get-eval-run-output-items.mjs +6 -6
- package/dist/actions/get-eval-run-output-items.mjs.map +1 -1
- package/dist/actions/get-eval-run.cjs +10 -10
- package/dist/actions/get-eval-run.cjs.map +1 -1
- package/dist/actions/get-eval-run.d.cts +14 -14
- package/dist/actions/get-eval-run.d.mts +14 -14
- package/dist/actions/get-eval-run.mjs +10 -10
- package/dist/actions/get-eval-run.mjs.map +1 -1
- package/dist/actions/get-eval-runs.cjs +6 -6
- package/dist/actions/get-eval-runs.cjs.map +1 -1
- package/dist/actions/get-eval-runs.d.cts +8 -8
- package/dist/actions/get-eval-runs.d.mts +8 -8
- package/dist/actions/get-eval-runs.mjs +6 -6
- package/dist/actions/get-eval-runs.mjs.map +1 -1
- package/dist/actions/get-eval.cjs +1 -1
- package/dist/actions/get-eval.cjs.map +1 -1
- package/dist/actions/get-eval.d.cts +1 -1
- package/dist/actions/get-eval.d.mts +1 -1
- package/dist/actions/get-eval.mjs +1 -1
- package/dist/actions/get-eval.mjs.map +1 -1
- package/dist/actions/get-input-token-counts.cjs +1 -1
- package/dist/actions/get-input-token-counts.cjs.map +1 -1
- package/dist/actions/get-input-token-counts.d.cts +3 -3
- package/dist/actions/get-input-token-counts.d.mts +3 -3
- package/dist/actions/get-input-token-counts.mjs +1 -1
- package/dist/actions/get-input-token-counts.mjs.map +1 -1
- package/dist/actions/get-message.cjs +9 -9
- package/dist/actions/get-message.cjs.map +1 -1
- package/dist/actions/get-message.d.cts +9 -9
- package/dist/actions/get-message.d.mts +9 -9
- package/dist/actions/get-message.mjs +9 -9
- package/dist/actions/get-message.mjs.map +1 -1
- package/dist/actions/get-response.cjs +9 -9
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +9 -9
- package/dist/actions/get-response.d.mts +9 -9
- package/dist/actions/get-response.mjs +9 -9
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/get-run-step.cjs +15 -15
- package/dist/actions/get-run-step.cjs.map +1 -1
- package/dist/actions/get-run-step.d.cts +16 -16
- package/dist/actions/get-run-step.d.mts +16 -16
- package/dist/actions/get-run-step.mjs +15 -15
- package/dist/actions/get-run-step.mjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.cjs +2 -2
- package/dist/actions/get-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.cts +3 -3
- package/dist/actions/get-vector-store-file-batch.d.mts +3 -3
- package/dist/actions/get-vector-store-file-batch.mjs +2 -2
- package/dist/actions/get-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/get-vector-store-file.cjs +4 -4
- package/dist/actions/get-vector-store-file.cjs.map +1 -1
- package/dist/actions/get-vector-store-file.d.cts +5 -5
- package/dist/actions/get-vector-store-file.d.mts +5 -5
- package/dist/actions/get-vector-store-file.mjs +4 -4
- package/dist/actions/get-vector-store-file.mjs.map +1 -1
- package/dist/actions/get-vector-store.cjs +4 -4
- package/dist/actions/get-vector-store.cjs.map +1 -1
- package/dist/actions/get-vector-store.d.cts +4 -4
- package/dist/actions/get-vector-store.d.mts +4 -4
- package/dist/actions/get-vector-store.mjs +4 -4
- package/dist/actions/get-vector-store.mjs.map +1 -1
- package/dist/actions/get-video.cjs +2 -2
- package/dist/actions/get-video.cjs.map +1 -1
- package/dist/actions/get-video.d.cts +3 -3
- package/dist/actions/get-video.d.mts +3 -3
- package/dist/actions/get-video.mjs +2 -2
- package/dist/actions/get-video.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +16 -16
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +16 -16
- package/dist/actions/list-assistants.d.mts +16 -16
- package/dist/actions/list-assistants.mjs +16 -16
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-batches.cjs +8 -8
- package/dist/actions/list-batches.cjs.map +1 -1
- package/dist/actions/list-batches.d.cts +12 -12
- package/dist/actions/list-batches.d.mts +12 -12
- package/dist/actions/list-batches.mjs +8 -8
- package/dist/actions/list-batches.mjs.map +1 -1
- package/dist/actions/list-chat-completions.cjs +4 -4
- package/dist/actions/list-chat-completions.cjs.map +1 -1
- package/dist/actions/list-chat-completions.d.cts +4 -4
- package/dist/actions/list-chat-completions.d.mts +4 -4
- package/dist/actions/list-chat-completions.mjs +4 -4
- package/dist/actions/list-chat-completions.mjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.cjs +2 -2
- package/dist/actions/list-chatkit-thread-items.cjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.cts +2 -2
- package/dist/actions/list-chatkit-thread-items.d.mts +2 -2
- package/dist/actions/list-chatkit-thread-items.mjs +2 -2
- package/dist/actions/list-chatkit-thread-items.mjs.map +1 -1
- package/dist/actions/list-container-files.cjs +2 -2
- package/dist/actions/list-container-files.cjs.map +1 -1
- package/dist/actions/list-container-files.d.cts +2 -2
- package/dist/actions/list-container-files.d.mts +2 -2
- package/dist/actions/list-container-files.mjs +2 -2
- package/dist/actions/list-container-files.mjs.map +1 -1
- package/dist/actions/list-containers.cjs +4 -4
- package/dist/actions/list-containers.cjs.map +1 -1
- package/dist/actions/list-containers.d.cts +4 -4
- package/dist/actions/list-containers.d.mts +4 -4
- package/dist/actions/list-containers.mjs +4 -4
- package/dist/actions/list-containers.mjs.map +1 -1
- package/dist/actions/list-conversation-items.cjs +2 -2
- package/dist/actions/list-conversation-items.cjs.map +1 -1
- package/dist/actions/list-conversation-items.d.cts +2 -2
- package/dist/actions/list-conversation-items.d.mts +2 -2
- package/dist/actions/list-conversation-items.mjs +2 -2
- package/dist/actions/list-conversation-items.mjs.map +1 -1
- package/dist/actions/list-engines.cjs +2 -2
- package/dist/actions/list-engines.cjs.map +1 -1
- package/dist/actions/list-engines.d.cts +2 -2
- package/dist/actions/list-engines.d.mts +2 -2
- package/dist/actions/list-engines.mjs +2 -2
- package/dist/actions/list-engines.mjs.map +1 -1
- package/dist/actions/list-evals.cjs +14 -14
- package/dist/actions/list-evals.cjs.map +1 -1
- package/dist/actions/list-evals.d.cts +15 -15
- package/dist/actions/list-evals.d.mts +15 -15
- package/dist/actions/list-evals.mjs +14 -14
- package/dist/actions/list-evals.mjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.cjs +5 -5
- package/dist/actions/list-files-in-vector-store-batch.cjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.cts +8 -8
- package/dist/actions/list-files-in-vector-store-batch.d.mts +8 -8
- package/dist/actions/list-files-in-vector-store-batch.mjs +5 -5
- package/dist/actions/list-files-in-vector-store-batch.mjs.map +1 -1
- package/dist/actions/list-files.cjs +2 -2
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +2 -2
- package/dist/actions/list-files.d.mts +2 -2
- package/dist/actions/list-files.mjs +2 -2
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-fine-tunes.cjs +5 -5
- package/dist/actions/list-fine-tunes.cjs.map +1 -1
- package/dist/actions/list-fine-tunes.d.cts +7 -7
- package/dist/actions/list-fine-tunes.d.mts +7 -7
- package/dist/actions/list-fine-tunes.mjs +5 -5
- package/dist/actions/list-fine-tunes.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.cjs +2 -2
- package/dist/actions/list-fine-tuning-events.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.cts +2 -2
- package/dist/actions/list-fine-tuning-events.d.mts +2 -2
- package/dist/actions/list-fine-tuning-events.mjs +2 -2
- package/dist/actions/list-fine-tuning-events.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs.map +1 -1
- package/dist/actions/list-input-items.cjs +2 -2
- package/dist/actions/list-input-items.cjs.map +1 -1
- package/dist/actions/list-input-items.d.cts +2 -2
- package/dist/actions/list-input-items.d.mts +2 -2
- package/dist/actions/list-input-items.mjs +2 -2
- package/dist/actions/list-input-items.mjs.map +1 -1
- package/dist/actions/list-messages.cjs +10 -10
- package/dist/actions/list-messages.cjs.map +1 -1
- package/dist/actions/list-messages.d.cts +10 -10
- package/dist/actions/list-messages.d.mts +10 -10
- package/dist/actions/list-messages.mjs +10 -10
- package/dist/actions/list-messages.mjs.map +1 -1
- package/dist/actions/list-models.cjs +3 -3
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -3
- package/dist/actions/list-models.d.mts +3 -3
- package/dist/actions/list-models.mjs +3 -3
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-run-steps.cjs +16 -16
- package/dist/actions/list-run-steps.cjs.map +1 -1
- package/dist/actions/list-run-steps.d.cts +17 -17
- package/dist/actions/list-run-steps.d.mts +17 -17
- package/dist/actions/list-run-steps.mjs +16 -16
- package/dist/actions/list-run-steps.mjs.map +1 -1
- package/dist/actions/list-runs.cjs +8 -8
- package/dist/actions/list-runs.cjs.map +1 -1
- package/dist/actions/list-runs.d.cts +12 -12
- package/dist/actions/list-runs.d.mts +12 -12
- package/dist/actions/list-runs.mjs +8 -8
- package/dist/actions/list-runs.mjs.map +1 -1
- package/dist/actions/list-skills.cjs +2 -2
- package/dist/actions/list-skills.cjs.map +1 -1
- package/dist/actions/list-skills.d.cts +2 -2
- package/dist/actions/list-skills.d.mts +2 -2
- package/dist/actions/list-skills.mjs +2 -2
- package/dist/actions/list-skills.mjs.map +1 -1
- package/dist/actions/list-threads.cjs +4 -4
- package/dist/actions/list-threads.cjs.map +1 -1
- package/dist/actions/list-threads.d.cts +4 -4
- package/dist/actions/list-threads.d.mts +4 -4
- package/dist/actions/list-threads.mjs +4 -4
- package/dist/actions/list-threads.mjs.map +1 -1
- package/dist/actions/list-vector-store-files.cjs +3 -3
- package/dist/actions/list-vector-store-files.cjs.map +1 -1
- package/dist/actions/list-vector-store-files.d.cts +6 -6
- package/dist/actions/list-vector-store-files.d.mts +6 -6
- package/dist/actions/list-vector-store-files.mjs +3 -3
- package/dist/actions/list-vector-store-files.mjs.map +1 -1
- package/dist/actions/list-vector-stores.cjs +5 -5
- package/dist/actions/list-vector-stores.cjs.map +1 -1
- package/dist/actions/list-vector-stores.d.cts +5 -5
- package/dist/actions/list-vector-stores.d.mts +5 -5
- package/dist/actions/list-vector-stores.mjs +5 -5
- package/dist/actions/list-vector-stores.mjs.map +1 -1
- package/dist/actions/list-videos.cjs +3 -3
- package/dist/actions/list-videos.cjs.map +1 -1
- package/dist/actions/list-videos.d.cts +4 -4
- package/dist/actions/list-videos.d.mts +4 -4
- package/dist/actions/list-videos.mjs +3 -3
- package/dist/actions/list-videos.mjs.map +1 -1
- package/dist/actions/modify-assistant.cjs +3 -3
- package/dist/actions/modify-assistant.cjs.map +1 -1
- package/dist/actions/modify-assistant.d.cts +4 -4
- package/dist/actions/modify-assistant.d.mts +4 -4
- package/dist/actions/modify-assistant.mjs +3 -3
- package/dist/actions/modify-assistant.mjs.map +1 -1
- package/dist/actions/modify-message.cjs +9 -9
- package/dist/actions/modify-message.cjs.map +1 -1
- package/dist/actions/modify-message.d.cts +10 -10
- package/dist/actions/modify-message.d.mts +10 -10
- package/dist/actions/modify-message.mjs +9 -9
- package/dist/actions/modify-message.mjs.map +1 -1
- package/dist/actions/modify-run.cjs +8 -8
- package/dist/actions/modify-run.cjs.map +1 -1
- package/dist/actions/modify-run.d.cts +13 -13
- package/dist/actions/modify-run.d.mts +13 -13
- package/dist/actions/modify-run.mjs +8 -8
- package/dist/actions/modify-run.mjs.map +1 -1
- package/dist/actions/modify-thread.cjs +3 -3
- package/dist/actions/modify-thread.cjs.map +1 -1
- package/dist/actions/modify-thread.d.cts +4 -4
- package/dist/actions/modify-thread.d.mts +4 -4
- package/dist/actions/modify-thread.mjs +3 -3
- package/dist/actions/modify-thread.mjs.map +1 -1
- package/dist/actions/modify-vector-store.cjs +5 -5
- package/dist/actions/modify-vector-store.cjs.map +1 -1
- package/dist/actions/modify-vector-store.d.cts +6 -6
- package/dist/actions/modify-vector-store.d.mts +6 -6
- package/dist/actions/modify-vector-store.mjs +5 -5
- package/dist/actions/modify-vector-store.mjs.map +1 -1
- package/dist/actions/retrieve-assistant.cjs +3 -3
- package/dist/actions/retrieve-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-assistant.d.cts +3 -3
- package/dist/actions/retrieve-assistant.d.mts +3 -3
- package/dist/actions/retrieve-assistant.mjs +3 -3
- package/dist/actions/retrieve-assistant.mjs.map +1 -1
- package/dist/actions/retrieve-batch.cjs +6 -6
- package/dist/actions/retrieve-batch.cjs.map +1 -1
- package/dist/actions/retrieve-batch.d.cts +10 -10
- package/dist/actions/retrieve-batch.d.mts +10 -10
- package/dist/actions/retrieve-batch.mjs +6 -6
- package/dist/actions/retrieve-batch.mjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.cjs +2 -2
- package/dist/actions/retrieve-container-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.cts +2 -2
- package/dist/actions/retrieve-container-file-content.d.mts +2 -2
- package/dist/actions/retrieve-container-file-content.mjs +2 -2
- package/dist/actions/retrieve-container-file-content.mjs.map +1 -1
- package/dist/actions/retrieve-container-file.cjs +1 -1
- package/dist/actions/retrieve-container-file.cjs.map +1 -1
- package/dist/actions/retrieve-container-file.d.cts +1 -1
- package/dist/actions/retrieve-container-file.d.mts +1 -1
- package/dist/actions/retrieve-container-file.mjs +1 -1
- package/dist/actions/retrieve-container-file.mjs.map +1 -1
- package/dist/actions/retrieve-container.cjs +3 -3
- package/dist/actions/retrieve-container.cjs.map +1 -1
- package/dist/actions/retrieve-container.d.cts +3 -3
- package/dist/actions/retrieve-container.d.mts +3 -3
- package/dist/actions/retrieve-container.mjs +3 -3
- package/dist/actions/retrieve-container.mjs.map +1 -1
- package/dist/actions/retrieve-engine.cjs +1 -1
- package/dist/actions/retrieve-engine.cjs.map +1 -1
- package/dist/actions/retrieve-engine.d.cts +1 -1
- package/dist/actions/retrieve-engine.d.mts +1 -1
- package/dist/actions/retrieve-engine.mjs +1 -1
- package/dist/actions/retrieve-engine.mjs.map +1 -1
- package/dist/actions/retrieve-file.cjs +1 -1
- package/dist/actions/retrieve-file.cjs.map +1 -1
- package/dist/actions/retrieve-file.d.cts +1 -1
- package/dist/actions/retrieve-file.d.mts +1 -1
- package/dist/actions/retrieve-file.mjs +1 -1
- package/dist/actions/retrieve-file.mjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.cjs +4 -4
- package/dist/actions/retrieve-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.cts +5 -5
- package/dist/actions/retrieve-fine-tuning-job.d.mts +5 -5
- package/dist/actions/retrieve-fine-tuning-job.mjs +4 -4
- package/dist/actions/retrieve-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/retrieve-model.cjs +2 -2
- package/dist/actions/retrieve-model.cjs.map +1 -1
- package/dist/actions/retrieve-model.d.cts +2 -2
- package/dist/actions/retrieve-model.d.mts +2 -2
- package/dist/actions/retrieve-model.mjs +2 -2
- package/dist/actions/retrieve-model.mjs.map +1 -1
- package/dist/actions/retrieve-run.cjs +7 -7
- package/dist/actions/retrieve-run.cjs.map +1 -1
- package/dist/actions/retrieve-run.d.cts +11 -11
- package/dist/actions/retrieve-run.d.mts +11 -11
- package/dist/actions/retrieve-run.mjs +7 -7
- package/dist/actions/retrieve-run.mjs.map +1 -1
- package/dist/actions/retrieve-thread.cjs +2 -2
- package/dist/actions/retrieve-thread.cjs.map +1 -1
- package/dist/actions/retrieve-thread.d.cts +2 -2
- package/dist/actions/retrieve-thread.d.mts +2 -2
- package/dist/actions/retrieve-thread.mjs +2 -2
- package/dist/actions/retrieve-thread.mjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.cjs +2 -2
- package/dist/actions/retrieve-vector-store-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.cts +2 -2
- package/dist/actions/retrieve-vector-store-file-content.d.mts +2 -2
- package/dist/actions/retrieve-vector-store-file-content.mjs +2 -2
- package/dist/actions/retrieve-vector-store-file-content.mjs.map +1 -1
- package/dist/actions/run-grader.cjs +8 -8
- package/dist/actions/run-grader.cjs.map +1 -1
- package/dist/actions/run-grader.d.cts +13 -8
- package/dist/actions/run-grader.d.mts +13 -8
- package/dist/actions/run-grader.mjs +8 -8
- package/dist/actions/run-grader.mjs.map +1 -1
- package/dist/actions/search-vector-store.cjs +3 -3
- package/dist/actions/search-vector-store.cjs.map +1 -1
- package/dist/actions/search-vector-store.d.cts +3 -3
- package/dist/actions/search-vector-store.d.mts +3 -3
- package/dist/actions/search-vector-store.mjs +3 -3
- package/dist/actions/search-vector-store.mjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.cjs +8 -8
- package/dist/actions/submit-tool-outputs-to-run.cjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.cts +13 -12
- package/dist/actions/submit-tool-outputs-to-run.d.mts +13 -12
- package/dist/actions/submit-tool-outputs-to-run.mjs +8 -8
- package/dist/actions/submit-tool-outputs-to-run.mjs.map +1 -1
- package/dist/actions/update-chat-completion.cjs +8 -8
- package/dist/actions/update-chat-completion.cjs.map +1 -1
- package/dist/actions/update-chat-completion.d.cts +9 -9
- package/dist/actions/update-chat-completion.d.mts +9 -9
- package/dist/actions/update-chat-completion.mjs +8 -8
- package/dist/actions/update-chat-completion.mjs.map +1 -1
- package/dist/actions/update-conversation.cjs +1 -1
- package/dist/actions/update-conversation.cjs.map +1 -1
- package/dist/actions/update-conversation.d.cts +1 -1
- package/dist/actions/update-conversation.d.mts +1 -1
- package/dist/actions/update-conversation.mjs +1 -1
- package/dist/actions/update-conversation.mjs.map +1 -1
- package/dist/actions/update-eval.cjs +1 -1
- package/dist/actions/update-eval.cjs.map +1 -1
- package/dist/actions/update-eval.d.cts +1 -1
- package/dist/actions/update-eval.d.mts +1 -1
- package/dist/actions/update-eval.mjs +1 -1
- package/dist/actions/update-eval.mjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.cjs +4 -4
- package/dist/actions/update-vector-store-file-attributes.cjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.cts +5 -5
- package/dist/actions/update-vector-store-file-attributes.d.mts +5 -5
- package/dist/actions/update-vector-store-file-attributes.mjs +4 -4
- package/dist/actions/update-vector-store-file-attributes.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -1
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +1 -1
- package/dist/actions/upload-file.d.mts +1 -1
- package/dist/actions/upload-file.mjs +1 -1
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/validate-grader.cjs +7 -7
- package/dist/actions/validate-grader.cjs.map +1 -1
- package/dist/actions/validate-grader.d.cts +12 -7
- package/dist/actions/validate-grader.d.cts.map +1 -1
- package/dist/actions/validate-grader.d.mts +12 -7
- package/dist/actions/validate-grader.d.mts.map +1 -1
- package/dist/actions/validate-grader.mjs +7 -7
- package/dist/actions/validate-grader.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ declare const OpenaiCreateFineTuningJobOutput: z.ZodObject<{
|
|
|
19
19
|
code: z.ZodNullable<z.ZodString>;
|
|
20
20
|
param: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
21
21
|
message: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
model: z.ZodNullable<z.ZodString>;
|
|
24
24
|
method: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
dpo: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -30,12 +30,12 @@ declare const OpenaiCreateFineTuningJobOutput: z.ZodObject<{
|
|
|
30
30
|
}>>;
|
|
31
31
|
supervised: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
32
|
reinforcement: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
34
|
object: z.ZodNullable<z.ZodString>;
|
|
35
35
|
status: z.ZodNullable<z.ZodEnum<{
|
|
36
36
|
failed: "failed";
|
|
37
|
-
queued: "queued";
|
|
38
37
|
cancelled: "cancelled";
|
|
38
|
+
queued: "queued";
|
|
39
39
|
validating_files: "validating_files";
|
|
40
40
|
running: "running";
|
|
41
41
|
succeeded: "succeeded";
|
|
@@ -51,12 +51,12 @@ declare const OpenaiCreateFineTuningJobOutput: z.ZodObject<{
|
|
|
51
51
|
n_epochs: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
52
52
|
batch_size: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
53
53
|
learning_rate_multiplier: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>;
|
|
55
55
|
organization_id: z.ZodNullable<z.ZodString>;
|
|
56
56
|
validation_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
57
|
estimated_finish: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
58
|
fine_tuned_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const openaiCreateFineTuningJob: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
model: string;
|
|
62
62
|
training_file: string;
|
|
@@ -16,7 +16,7 @@ const OpenaiCreateFineTuningJob_ErrorDetailSchema = z.object({
|
|
|
16
16
|
code: z.string().describe("Error code").nullable(),
|
|
17
17
|
param: z.unknown().describe("Parameter that caused the error").nullable().optional(),
|
|
18
18
|
message: z.string().describe("Error message").nullable()
|
|
19
|
-
}).describe("Error details for a fine-tuning job.");
|
|
19
|
+
}).passthrough().describe("Error details for a fine-tuning job.");
|
|
20
20
|
const OpenaiCreateFineTuningJob_FineTuningMethodTypeSchema = z.enum([
|
|
21
21
|
"supervised",
|
|
22
22
|
"dpo",
|
|
@@ -27,7 +27,7 @@ const OpenaiCreateFineTuningJob_MethodResponseSchema = z.object({
|
|
|
27
27
|
type: OpenaiCreateFineTuningJob_FineTuningMethodTypeSchema.nullable(),
|
|
28
28
|
supervised: z.record(z.string(), z.unknown()).describe("Configuration for the supervised fine-tuning method.").nullable().optional(),
|
|
29
29
|
reinforcement: z.record(z.string(), z.unknown()).describe("Configuration for the reinforcement fine-tuning method.").nullable().optional()
|
|
30
|
-
}).describe("Method configuration used for fine-tuning (in response).");
|
|
30
|
+
}).passthrough().describe("Method configuration used for fine-tuning (in response).");
|
|
31
31
|
const OpenaiCreateFineTuningJob_FineTuningJobStatusSchema = z.enum([
|
|
32
32
|
"validating_files",
|
|
33
33
|
"queued",
|
|
@@ -40,7 +40,7 @@ const OpenaiCreateFineTuningJob_HyperparametersResponseSchema = z.object({
|
|
|
40
40
|
n_epochs: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
41
41
|
batch_size: z.unknown().describe("Number of examples in each batch. Can be 'auto' or an integer.").nullable().optional(),
|
|
42
42
|
learning_rate_multiplier: z.union([z.string(), z.number()]).nullable().optional()
|
|
43
|
-
}).describe("Hyperparameters used for the fine-tuning job (in response).");
|
|
43
|
+
}).passthrough().describe("Hyperparameters used for the fine-tuning job (in response).");
|
|
44
44
|
const openaiCreateFineTuningJob = action("OPENAI_CREATE_FINE_TUNING_JOB", {
|
|
45
45
|
slug: "openai-create-fine-tuning-job",
|
|
46
46
|
name: "Create fine-tuning job",
|
|
@@ -66,7 +66,7 @@ const openaiCreateFineTuningJob = action("OPENAI_CREATE_FINE_TUNING_JOB", {
|
|
|
66
66
|
validation_file: z.string().describe("The file ID used for validation. You can retrieve the validation data with the Files API.").nullable().optional(),
|
|
67
67
|
estimated_finish: z.number().int().describe("The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.").nullable().optional(),
|
|
68
68
|
fine_tuned_model: z.string().describe("The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.").nullable().optional()
|
|
69
|
-
}).describe("Response schema for creating a fine-tuning job.")
|
|
69
|
+
}).passthrough().describe("Response schema for creating a fine-tuning job.")
|
|
70
70
|
});
|
|
71
71
|
//#endregion
|
|
72
72
|
export { openaiCreateFineTuningJob };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fine-tuning-job.mjs","names":[],"sources":["../../src/actions/create-fine-tuning-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateFineTuningJobInput = z.object({\n seed: z.number().int().describe(\"The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.\").optional(),\n model: z.string().describe(\"The name of the model to fine-tune. You can select one of the supported models for fine-tuning.\"),\n method: z.record(z.string(), z.unknown()).describe(\"The method used for fine-tuning. Must include a 'type' field set to 'supervised', 'dpo', or 'reinforcement'. Can include method-specific configuration under corresponding keys ('supervised', 'dpo', or 'reinforcement').\").optional(),\n suffix: z.string().describe(\"A string of up to 64 characters that will be added to your fine-tuned model name. For example, a suffix of 'custom-model-name' would produce a model name like 'ft:gpt-4o-mini:openai:custom-model-name:7p4lURel'.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs that can be attached to the fine-tuning job. This can be useful for storing additional information about the job in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.\").optional(),\n integrations: z.array(z.record(z.string(), z.unknown())).describe(\"A list of integrations to enable for your fine-tuning job. Each integration must specify 'type' and 'wandb' configuration.\").optional(),\n training_file: z.string().describe(\"The ID of an uploaded file that contains training data. See upload file for how to upload a file. Your dataset must be formatted as a JSONL file and uploaded with the purpose 'fine-tune'.\"),\n hyperparameters: z.record(z.string(), z.unknown()).describe(\"The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of 'method', and should be passed in under the 'method' parameter. Can include 'batch_size', 'learning_rate_multiplier', and 'n_epochs'. Each can be either 'auto' (string) or a specific number.\").optional(),\n validation_file: z.string().describe(\"The ID of an uploaded file that contains validation data. If provided, the data is used to generate validation metrics periodically during fine-tuning. The same data should not be present in both train and validation files. Your dataset must be formatted as a JSONL file and uploaded with the purpose 'fine-tune'.\").optional(),\n}).describe(\"Request model for creating a fine-tuning job.\");\nconst OpenaiCreateFineTuningJob_ErrorDetailSchema = z.object({\n code: z.string().describe(\"Error code\").nullable(),\n param: z.unknown().describe(\"Parameter that caused the error\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable(),\n}).describe(\"Error details for a fine-tuning job.\");\nconst OpenaiCreateFineTuningJob_FineTuningMethodTypeSchema = z.enum([\"supervised\", \"dpo\", \"reinforcement\"]).describe(\"Fine-tuning method types.\");\nconst OpenaiCreateFineTuningJob_MethodResponseSchema = z.object({\n dpo: z.record(z.string(), z.unknown()).describe(\"Configuration for the DPO fine-tuning method.\").nullable().optional(),\n type: OpenaiCreateFineTuningJob_FineTuningMethodTypeSchema.nullable(),\n supervised: z.record(z.string(), z.unknown()).describe(\"Configuration for the supervised fine-tuning method.\").nullable().optional(),\n reinforcement: z.record(z.string(), z.unknown()).describe(\"Configuration for the reinforcement fine-tuning method.\").nullable().optional(),\n}).describe(\"Method configuration used for fine-tuning (in response).\");\nconst OpenaiCreateFineTuningJob_FineTuningJobStatusSchema = z.enum([\"validating_files\", \"queued\", \"running\", \"succeeded\", \"failed\", \"cancelled\"]).describe(\"Status values for fine-tuning jobs.\");\nconst OpenaiCreateFineTuningJob_HyperparametersResponseSchema = z.object({\n n_epochs: z.union([z.number().int(), z.string()]).nullable().optional(),\n batch_size: z.unknown().describe(\"Number of examples in each batch. Can be 'auto' or an integer.\").nullable().optional(),\n learning_rate_multiplier: z.union([z.string(), z.number()]).nullable().optional(),\n}).describe(\"Hyperparameters used for the fine-tuning job (in response).\");\nexport const OpenaiCreateFineTuningJobOutput = z.object({\n id: z.string().describe(\"The object identifier, which can be referenced in the API endpoints.\").nullable(),\n seed: z.number().int().describe(\"The seed used for the fine-tuning job.\").nullable(),\n error: OpenaiCreateFineTuningJob_ErrorDetailSchema.nullable().optional(),\n model: z.string().describe(\"The base model that is being fine-tuned.\").nullable(),\n method: OpenaiCreateFineTuningJob_MethodResponseSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'fine_tuning.job'.\").nullable(),\n status: OpenaiCreateFineTuningJob_FineTuningJobStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of key-value pairs attached to the fine-tuning job.\").nullable().optional(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the fine-tuning job was created.\").nullable(),\n finished_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.\").nullable().optional(),\n integrations: z.array(z.record(z.string(), z.unknown())).describe(\"A list of integrations enabled for this fine-tuning job.\").nullable().optional(),\n result_files: z.array(z.string()).describe(\"The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.\"),\n training_file: z.string().describe(\"The file ID used for training. You can retrieve the training data with the Files API.\").nullable(),\n trained_tokens: z.number().int().describe(\"The total number of billable tokens processed by this fine-tuning job.\").nullable().optional(),\n hyperparameters: OpenaiCreateFineTuningJob_HyperparametersResponseSchema.nullable().optional(),\n organization_id: z.string().describe(\"The organization that owns the fine-tuning job.\").nullable(),\n validation_file: z.string().describe(\"The file ID used for validation. You can retrieve the validation data with the Files API.\").nullable().optional(),\n estimated_finish: z.number().int().describe(\"The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.\").nullable().optional(),\n fine_tuned_model: z.string().describe(\"The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.\").nullable().optional(),\n}).describe(\"Response schema for creating a fine-tuning job.\");\n\nexport const openaiCreateFineTuningJob = action(\"OPENAI_CREATE_FINE_TUNING_JOB\", {\n slug: \"openai-create-fine-tuning-job\",\n name: \"Create fine-tuning job\",\n description: \"Tool to create a fine-tuning job which begins the process of creating a new model from a given dataset. Use when you need to start fine-tuning a model with your training data. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\",\n input: OpenaiCreateFineTuningJobInput,\n output: OpenaiCreateFineTuningJobOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACpQ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC5H,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CAC1R,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;CAC3P,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oQAAoQ,CAAC,CA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AAS,2EAA2E,CAAC,CAAC,SAAS;EAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzM,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2GAA2G;EACtJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACrI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,iBAAiB,wDAAwD,SAAS,CAAC,CAAC,SAAS;EAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtN,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvL,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-fine-tuning-job.mjs","names":[],"sources":["../../src/actions/create-fine-tuning-job.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateFineTuningJobInput = z.object({\n seed: z.number().int().describe(\"The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.\").optional(),\n model: z.string().describe(\"The name of the model to fine-tune. You can select one of the supported models for fine-tuning.\"),\n method: z.record(z.string(), z.unknown()).describe(\"The method used for fine-tuning. Must include a 'type' field set to 'supervised', 'dpo', or 'reinforcement'. Can include method-specific configuration under corresponding keys ('supervised', 'dpo', or 'reinforcement').\").optional(),\n suffix: z.string().describe(\"A string of up to 64 characters that will be added to your fine-tuned model name. For example, a suffix of 'custom-model-name' would produce a model name like 'ft:gpt-4o-mini:openai:custom-model-name:7p4lURel'.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs that can be attached to the fine-tuning job. This can be useful for storing additional information about the job in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.\").optional(),\n integrations: z.array(z.record(z.string(), z.unknown())).describe(\"A list of integrations to enable for your fine-tuning job. Each integration must specify 'type' and 'wandb' configuration.\").optional(),\n training_file: z.string().describe(\"The ID of an uploaded file that contains training data. See upload file for how to upload a file. Your dataset must be formatted as a JSONL file and uploaded with the purpose 'fine-tune'.\"),\n hyperparameters: z.record(z.string(), z.unknown()).describe(\"The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of 'method', and should be passed in under the 'method' parameter. Can include 'batch_size', 'learning_rate_multiplier', and 'n_epochs'. Each can be either 'auto' (string) or a specific number.\").optional(),\n validation_file: z.string().describe(\"The ID of an uploaded file that contains validation data. If provided, the data is used to generate validation metrics periodically during fine-tuning. The same data should not be present in both train and validation files. Your dataset must be formatted as a JSONL file and uploaded with the purpose 'fine-tune'.\").optional(),\n}).describe(\"Request model for creating a fine-tuning job.\");\nconst OpenaiCreateFineTuningJob_ErrorDetailSchema = z.object({\n code: z.string().describe(\"Error code\").nullable(),\n param: z.unknown().describe(\"Parameter that caused the error\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable(),\n}).passthrough().describe(\"Error details for a fine-tuning job.\");\nconst OpenaiCreateFineTuningJob_FineTuningMethodTypeSchema = z.enum([\"supervised\", \"dpo\", \"reinforcement\"]).describe(\"Fine-tuning method types.\");\nconst OpenaiCreateFineTuningJob_MethodResponseSchema = z.object({\n dpo: z.record(z.string(), z.unknown()).describe(\"Configuration for the DPO fine-tuning method.\").nullable().optional(),\n type: OpenaiCreateFineTuningJob_FineTuningMethodTypeSchema.nullable(),\n supervised: z.record(z.string(), z.unknown()).describe(\"Configuration for the supervised fine-tuning method.\").nullable().optional(),\n reinforcement: z.record(z.string(), z.unknown()).describe(\"Configuration for the reinforcement fine-tuning method.\").nullable().optional(),\n}).passthrough().describe(\"Method configuration used for fine-tuning (in response).\");\nconst OpenaiCreateFineTuningJob_FineTuningJobStatusSchema = z.enum([\"validating_files\", \"queued\", \"running\", \"succeeded\", \"failed\", \"cancelled\"]).describe(\"Status values for fine-tuning jobs.\");\nconst OpenaiCreateFineTuningJob_HyperparametersResponseSchema = z.object({\n n_epochs: z.union([z.number().int(), z.string()]).nullable().optional(),\n batch_size: z.unknown().describe(\"Number of examples in each batch. Can be 'auto' or an integer.\").nullable().optional(),\n learning_rate_multiplier: z.union([z.string(), z.number()]).nullable().optional(),\n}).passthrough().describe(\"Hyperparameters used for the fine-tuning job (in response).\");\nexport const OpenaiCreateFineTuningJobOutput = z.object({\n id: z.string().describe(\"The object identifier, which can be referenced in the API endpoints.\").nullable(),\n seed: z.number().int().describe(\"The seed used for the fine-tuning job.\").nullable(),\n error: OpenaiCreateFineTuningJob_ErrorDetailSchema.nullable().optional(),\n model: z.string().describe(\"The base model that is being fine-tuned.\").nullable(),\n method: OpenaiCreateFineTuningJob_MethodResponseSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'fine_tuning.job'.\").nullable(),\n status: OpenaiCreateFineTuningJob_FineTuningJobStatusSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of key-value pairs attached to the fine-tuning job.\").nullable().optional(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the fine-tuning job was created.\").nullable(),\n finished_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.\").nullable().optional(),\n integrations: z.array(z.record(z.string(), z.unknown())).describe(\"A list of integrations enabled for this fine-tuning job.\").nullable().optional(),\n result_files: z.array(z.string()).describe(\"The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.\"),\n training_file: z.string().describe(\"The file ID used for training. You can retrieve the training data with the Files API.\").nullable(),\n trained_tokens: z.number().int().describe(\"The total number of billable tokens processed by this fine-tuning job.\").nullable().optional(),\n hyperparameters: OpenaiCreateFineTuningJob_HyperparametersResponseSchema.nullable().optional(),\n organization_id: z.string().describe(\"The organization that owns the fine-tuning job.\").nullable(),\n validation_file: z.string().describe(\"The file ID used for validation. You can retrieve the validation data with the Files API.\").nullable().optional(),\n estimated_finish: z.number().int().describe(\"The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.\").nullable().optional(),\n fine_tuned_model: z.string().describe(\"The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a fine-tuning job.\");\n\nexport const openaiCreateFineTuningJob = action(\"OPENAI_CREATE_FINE_TUNING_JOB\", {\n slug: \"openai-create-fine-tuning-job\",\n name: \"Create fine-tuning job\",\n description: \"Tool to create a fine-tuning job which begins the process of creating a new model from a given dataset. Use when you need to start fine-tuning a model with your training data. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\",\n input: OpenaiCreateFineTuningJobInput,\n output: OpenaiCreateFineTuningJobOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS;CACpQ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC5H,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4NA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hB;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ const OpenaiCreateImageEditInput = zod.z.object({
|
|
|
13
13
|
images: zod.z.array(zod.z.object({
|
|
14
14
|
file_id: zod.z.string().describe("The File API ID of an uploaded image to use as input.").optional(),
|
|
15
15
|
image_url: zod.z.string().describe("A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.").optional()
|
|
16
|
-
}).describe("Reference an input image by either URL or uploaded file ID.")).describe("Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both."),
|
|
16
|
+
}).passthrough().describe("Reference an input image by either URL or uploaded file ID.")).describe("Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both."),
|
|
17
17
|
prompt: zod.z.string().describe("A text description of the desired image edit. Describes what changes should be made to the input image(s). Maximum 32000 characters."),
|
|
18
18
|
quality: zod.z.enum([
|
|
19
19
|
"auto",
|
|
@@ -39,18 +39,18 @@ const OpenaiCreateImageEdit_ImageEditObjectSchema = zod.z.object({
|
|
|
39
39
|
url: zod.z.string().describe("URL of the edited image (valid for 60 minutes)").nullable().optional(),
|
|
40
40
|
b64_json: zod.z.string().describe("Base64-encoded JSON string of the edited image").nullable().optional(),
|
|
41
41
|
revised_prompt: zod.z.string().describe("The revised prompt that was used to generate the edited image").nullable().optional()
|
|
42
|
-
}).describe("Individual edited image object in the response.");
|
|
42
|
+
}).passthrough().describe("Individual edited image object in the response.");
|
|
43
43
|
const OpenaiCreateImageEdit_TokenDetailsObjectSchema = zod.z.object({
|
|
44
44
|
text_tokens: zod.z.number().int().describe("Number of text tokens in the input or output").nullable().optional(),
|
|
45
45
|
image_tokens: zod.z.number().int().describe("Number of image tokens in the input or output").nullable().optional()
|
|
46
|
-
}).describe("Token details breakdown.");
|
|
46
|
+
}).passthrough().describe("Token details breakdown.");
|
|
47
47
|
const OpenaiCreateImageEdit_UsageObjectSchema = zod.z.object({
|
|
48
48
|
input_tokens: zod.z.number().int().describe("The number of tokens (images and text) in the input prompt").nullable().optional(),
|
|
49
49
|
total_tokens: zod.z.number().int().describe("The total number of tokens (images and text) used for the image generation").nullable().optional(),
|
|
50
50
|
output_tokens: zod.z.number().int().describe("The number of output tokens generated by the model").nullable().optional(),
|
|
51
51
|
input_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),
|
|
52
52
|
output_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional()
|
|
53
|
-
}).describe("Token usage information for image editing.");
|
|
53
|
+
}).passthrough().describe("Token usage information for image editing.");
|
|
54
54
|
const OpenaiCreateImageEditOutput = zod.z.object({
|
|
55
55
|
data: zod.z.array(OpenaiCreateImageEdit_ImageEditObjectSchema).describe("The list of edited images").nullable().optional(),
|
|
56
56
|
size: zod.z.string().describe("The size of the image generated. Examples: '1024x1024', '1024x1536', '1536x1024'").nullable().optional(),
|
|
@@ -60,7 +60,7 @@ const OpenaiCreateImageEditOutput = zod.z.object({
|
|
|
60
60
|
background: zod.z.string().describe("The background parameter used for the image generation. Either 'transparent' or 'opaque'").nullable().optional(),
|
|
61
61
|
output_format: zod.z.string().describe("The output format of the image generation. Either 'png', 'webp', or 'jpeg'").nullable().optional(),
|
|
62
62
|
composio_execution_message: zod.z.string().describe("Message explaining any parameter transformations applied during execution").nullable().optional()
|
|
63
|
-
}).describe("Response schema for image editing.");
|
|
63
|
+
}).passthrough().describe("Response schema for image editing.");
|
|
64
64
|
const openaiCreateImageEdit = require_action.action("OPENAI_CREATE_IMAGE_EDIT", {
|
|
65
65
|
slug: "openai-create-image-edit",
|
|
66
66
|
name: "Edit Image",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-edit.cjs","names":["z","action"],"sources":["../../src/actions/create-image-edit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageEditInput = z.object({\n n: z.number().int().describe(\"The number of edited images to generate. Default is 1. The exact upper limit may vary by model.\").optional(),\n mask: z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).describe(\"Reference an input image by either URL or uploaded file ID.\").optional(),\n size: z.string().describe(\"Requested output image size. Examples: '1024x1024', '1024x1536', '1536x1024', 'auto'. Default is 'auto', which automatically determines the best size.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI monitor and detect abuse.\").optional(),\n model: z.string().describe(\"The model to use for image editing. Supported models: 'gpt-image-2' (newest, flexible sizes, png/jpeg/webp output), 'gpt-image-1.5' (default), 'gpt-image-1', 'gpt-image-1-mini', 'chatgpt-image-latest', 'dall-e-2'. Note: JSON edits support GPT image models only; DALL-E edits require multipart format. gpt-image-2 does NOT support 'transparent' background — requests will be transformed to 'auto'.\").optional(),\n images: z.array(z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).describe(\"Reference an input image by either URL or uploaded file ID.\")).describe(\"Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both.\"),\n prompt: z.string().describe(\"A text description of the desired image edit. Describes what changes should be made to the input image(s). Maximum 32000 characters.\"),\n quality: z.enum([\"auto\", \"high\", \"medium\", \"low\"]).describe(\"Quality values for image editing.\").optional(),\n background: z.enum([\"auto\", \"transparent\", \"opaque\"]).describe(\"Background behavior for generated image output.\").optional(),\n moderation: z.string().describe(\"Moderation level for GPT image models. Default is 'auto'. Controls content moderation strictness.\").optional(),\n output_format: z.enum([\"png\", \"webp\", \"jpeg\"]).describe(\"Output image format.\").optional(),\n input_fidelity: z.string().describe(\"Controls fidelity to the original input image(s). Higher fidelity preserves more of the original image characteristics.\").optional(),\n output_compression: z.number().int().describe(\"Compression level for 'jpeg' or 'webp' output. Range: 0-100. Higher values mean better quality but larger file sizes.\").optional(),\n}).describe(\"Request model for editing images via OpenAI Images Edit API.\");\nconst OpenaiCreateImageEdit_ImageEditObjectSchema = z.object({\n url: z.string().describe(\"URL of the edited image (valid for 60 minutes)\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the edited image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the edited image\").nullable().optional(),\n}).describe(\"Individual edited image object in the response.\");\nconst OpenaiCreateImageEdit_TokenDetailsObjectSchema = z.object({\n text_tokens: z.number().int().describe(\"Number of text tokens in the input or output\").nullable().optional(),\n image_tokens: z.number().int().describe(\"Number of image tokens in the input or output\").nullable().optional(),\n}).describe(\"Token details breakdown.\");\nconst OpenaiCreateImageEdit_UsageObjectSchema = z.object({\n input_tokens: z.number().int().describe(\"The number of tokens (images and text) in the input prompt\").nullable().optional(),\n total_tokens: z.number().int().describe(\"The total number of tokens (images and text) used for the image generation\").nullable().optional(),\n output_tokens: z.number().int().describe(\"The number of output tokens generated by the model\").nullable().optional(),\n input_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n output_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n}).describe(\"Token usage information for image editing.\");\nexport const OpenaiCreateImageEditOutput = z.object({\n data: z.array(OpenaiCreateImageEdit_ImageEditObjectSchema).describe(\"The list of edited images\").nullable().optional(),\n size: z.string().describe(\"The size of the image generated. Examples: '1024x1024', '1024x1536', '1536x1024'\").nullable().optional(),\n usage: OpenaiCreateImageEdit_UsageObjectSchema.nullable().optional(),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the image was created\").nullable(),\n quality: z.string().describe(\"The quality of the image generated. Either 'low', 'medium', or 'high'\").nullable().optional(),\n background: z.string().describe(\"The background parameter used for the image generation. Either 'transparent' or 'opaque'\").nullable().optional(),\n output_format: z.string().describe(\"The output format of the image generation. Either 'png', 'webp', or 'jpeg'\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message explaining any parameter transformations applied during execution\").nullable().optional(),\n}).describe(\"Response schema for image editing.\");\n\nexport const openaiCreateImageEdit = action(\"OPENAI_CREATE_IMAGE_EDIT\", {\n slug: \"openai-create-image-edit\",\n name: \"Edit Image\",\n description: \"Tool to create edited or extended images via OpenAI Images Edit API. Use when you need to modify existing images based on a text prompt, with optional mask support for targeted edits.\",\n input: OpenaiCreateImageEditInput,\n output: OpenaiCreateImageEditOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzI,MAAMA,IAAAA,EAAE,OAAO;EACf,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8YAA8Y,CAAC,CAAC,SAAS;CACpb,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,qKAAqK;
|
|
1
|
+
{"version":3,"file":"create-image-edit.cjs","names":["z","action"],"sources":["../../src/actions/create-image-edit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageEditInput = z.object({\n n: z.number().int().describe(\"The number of edited images to generate. Default is 1. The exact upper limit may vary by model.\").optional(),\n mask: z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).describe(\"Reference an input image by either URL or uploaded file ID.\").optional(),\n size: z.string().describe(\"Requested output image size. Examples: '1024x1024', '1024x1536', '1536x1024', 'auto'. Default is 'auto', which automatically determines the best size.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI monitor and detect abuse.\").optional(),\n model: z.string().describe(\"The model to use for image editing. Supported models: 'gpt-image-2' (newest, flexible sizes, png/jpeg/webp output), 'gpt-image-1.5' (default), 'gpt-image-1', 'gpt-image-1-mini', 'chatgpt-image-latest', 'dall-e-2'. Note: JSON edits support GPT image models only; DALL-E edits require multipart format. gpt-image-2 does NOT support 'transparent' background — requests will be transformed to 'auto'.\").optional(),\n images: z.array(z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).passthrough().describe(\"Reference an input image by either URL or uploaded file ID.\")).describe(\"Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both.\"),\n prompt: z.string().describe(\"A text description of the desired image edit. Describes what changes should be made to the input image(s). Maximum 32000 characters.\"),\n quality: z.enum([\"auto\", \"high\", \"medium\", \"low\"]).describe(\"Quality values for image editing.\").optional(),\n background: z.enum([\"auto\", \"transparent\", \"opaque\"]).describe(\"Background behavior for generated image output.\").optional(),\n moderation: z.string().describe(\"Moderation level for GPT image models. Default is 'auto'. Controls content moderation strictness.\").optional(),\n output_format: z.enum([\"png\", \"webp\", \"jpeg\"]).describe(\"Output image format.\").optional(),\n input_fidelity: z.string().describe(\"Controls fidelity to the original input image(s). Higher fidelity preserves more of the original image characteristics.\").optional(),\n output_compression: z.number().int().describe(\"Compression level for 'jpeg' or 'webp' output. Range: 0-100. Higher values mean better quality but larger file sizes.\").optional(),\n}).describe(\"Request model for editing images via OpenAI Images Edit API.\");\nconst OpenaiCreateImageEdit_ImageEditObjectSchema = z.object({\n url: z.string().describe(\"URL of the edited image (valid for 60 minutes)\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the edited image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the edited image\").nullable().optional(),\n}).passthrough().describe(\"Individual edited image object in the response.\");\nconst OpenaiCreateImageEdit_TokenDetailsObjectSchema = z.object({\n text_tokens: z.number().int().describe(\"Number of text tokens in the input or output\").nullable().optional(),\n image_tokens: z.number().int().describe(\"Number of image tokens in the input or output\").nullable().optional(),\n}).passthrough().describe(\"Token details breakdown.\");\nconst OpenaiCreateImageEdit_UsageObjectSchema = z.object({\n input_tokens: z.number().int().describe(\"The number of tokens (images and text) in the input prompt\").nullable().optional(),\n total_tokens: z.number().int().describe(\"The total number of tokens (images and text) used for the image generation\").nullable().optional(),\n output_tokens: z.number().int().describe(\"The number of output tokens generated by the model\").nullable().optional(),\n input_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n output_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Token usage information for image editing.\");\nexport const OpenaiCreateImageEditOutput = z.object({\n data: z.array(OpenaiCreateImageEdit_ImageEditObjectSchema).describe(\"The list of edited images\").nullable().optional(),\n size: z.string().describe(\"The size of the image generated. Examples: '1024x1024', '1024x1536', '1536x1024'\").nullable().optional(),\n usage: OpenaiCreateImageEdit_UsageObjectSchema.nullable().optional(),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the image was created\").nullable(),\n quality: z.string().describe(\"The quality of the image generated. Either 'low', 'medium', or 'high'\").nullable().optional(),\n background: z.string().describe(\"The background parameter used for the image generation. Either 'transparent' or 'opaque'\").nullable().optional(),\n output_format: z.string().describe(\"The output format of the image generation. Either 'png', 'webp', or 'jpeg'\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message explaining any parameter transformations applied during execution\").nullable().optional(),\n}).passthrough().describe(\"Response schema for image editing.\");\n\nexport const openaiCreateImageEdit = action(\"OPENAI_CREATE_IMAGE_EDIT\", {\n slug: \"openai-create-image-edit\",\n name: \"Edit Image\",\n description: \"Tool to create edited or extended images via OpenAI Images Edit API. Use when you need to modify existing images based on a text prompt, with optional mask support for targeted edits.\",\n input: OpenaiCreateImageEditInput,\n output: OpenaiCreateImageEditOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzI,MAAMA,IAAAA,EAAE,OAAO;EACf,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8YAA8Y,CAAC,CAAC,SAAS;CACpb,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,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C,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ declare const OpenaiCreateImageEditInput: z.ZodObject<{
|
|
|
13
13
|
images: z.ZodArray<z.ZodObject<{
|
|
14
14
|
file_id: z.ZodOptional<z.ZodString>;
|
|
15
15
|
image_url: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
prompt: z.ZodString;
|
|
18
18
|
quality: z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
auto: "auto";
|
|
@@ -40,7 +40,7 @@ declare const OpenaiCreateImageEditOutput: z.ZodObject<{
|
|
|
40
40
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
b64_json: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
revised_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
44
|
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -49,20 +49,21 @@ declare const OpenaiCreateImageEditOutput: z.ZodObject<{
|
|
|
49
49
|
input_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
50
|
text_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
51
|
image_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
53
|
output_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
54
|
text_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
55
|
image_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>>;
|
|
57
|
+
}, z.core.$loose>>>;
|
|
58
58
|
created: z.ZodNullable<z.ZodNumber>;
|
|
59
59
|
quality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
background: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
output_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const openaiCreateImageEdit: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
images: {
|
|
66
|
+
[x: string]: unknown;
|
|
66
67
|
file_id?: string | undefined;
|
|
67
68
|
image_url?: string | undefined;
|
|
68
69
|
}[];
|
|
@@ -13,7 +13,7 @@ declare const OpenaiCreateImageEditInput: z.ZodObject<{
|
|
|
13
13
|
images: z.ZodArray<z.ZodObject<{
|
|
14
14
|
file_id: z.ZodOptional<z.ZodString>;
|
|
15
15
|
image_url: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
prompt: z.ZodString;
|
|
18
18
|
quality: z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
auto: "auto";
|
|
@@ -40,7 +40,7 @@ declare const OpenaiCreateImageEditOutput: z.ZodObject<{
|
|
|
40
40
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
b64_json: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
revised_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
44
|
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -49,20 +49,21 @@ declare const OpenaiCreateImageEditOutput: z.ZodObject<{
|
|
|
49
49
|
input_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
50
|
text_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
51
|
image_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
53
|
output_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
54
|
text_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
55
|
image_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>>;
|
|
57
|
+
}, z.core.$loose>>>;
|
|
58
58
|
created: z.ZodNullable<z.ZodNumber>;
|
|
59
59
|
quality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
background: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
output_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const openaiCreateImageEdit: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
images: {
|
|
66
|
+
[x: string]: unknown;
|
|
66
67
|
file_id?: string | undefined;
|
|
67
68
|
image_url?: string | undefined;
|
|
68
69
|
}[];
|
|
@@ -13,7 +13,7 @@ const OpenaiCreateImageEditInput = z.object({
|
|
|
13
13
|
images: z.array(z.object({
|
|
14
14
|
file_id: z.string().describe("The File API ID of an uploaded image to use as input.").optional(),
|
|
15
15
|
image_url: z.string().describe("A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.").optional()
|
|
16
|
-
}).describe("Reference an input image by either URL or uploaded file ID.")).describe("Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both."),
|
|
16
|
+
}).passthrough().describe("Reference an input image by either URL or uploaded file ID.")).describe("Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both."),
|
|
17
17
|
prompt: z.string().describe("A text description of the desired image edit. Describes what changes should be made to the input image(s). Maximum 32000 characters."),
|
|
18
18
|
quality: z.enum([
|
|
19
19
|
"auto",
|
|
@@ -39,18 +39,18 @@ const OpenaiCreateImageEdit_ImageEditObjectSchema = z.object({
|
|
|
39
39
|
url: z.string().describe("URL of the edited image (valid for 60 minutes)").nullable().optional(),
|
|
40
40
|
b64_json: z.string().describe("Base64-encoded JSON string of the edited image").nullable().optional(),
|
|
41
41
|
revised_prompt: z.string().describe("The revised prompt that was used to generate the edited image").nullable().optional()
|
|
42
|
-
}).describe("Individual edited image object in the response.");
|
|
42
|
+
}).passthrough().describe("Individual edited image object in the response.");
|
|
43
43
|
const OpenaiCreateImageEdit_TokenDetailsObjectSchema = z.object({
|
|
44
44
|
text_tokens: z.number().int().describe("Number of text tokens in the input or output").nullable().optional(),
|
|
45
45
|
image_tokens: z.number().int().describe("Number of image tokens in the input or output").nullable().optional()
|
|
46
|
-
}).describe("Token details breakdown.");
|
|
46
|
+
}).passthrough().describe("Token details breakdown.");
|
|
47
47
|
const OpenaiCreateImageEdit_UsageObjectSchema = z.object({
|
|
48
48
|
input_tokens: z.number().int().describe("The number of tokens (images and text) in the input prompt").nullable().optional(),
|
|
49
49
|
total_tokens: z.number().int().describe("The total number of tokens (images and text) used for the image generation").nullable().optional(),
|
|
50
50
|
output_tokens: z.number().int().describe("The number of output tokens generated by the model").nullable().optional(),
|
|
51
51
|
input_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),
|
|
52
52
|
output_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional()
|
|
53
|
-
}).describe("Token usage information for image editing.");
|
|
53
|
+
}).passthrough().describe("Token usage information for image editing.");
|
|
54
54
|
const openaiCreateImageEdit = action("OPENAI_CREATE_IMAGE_EDIT", {
|
|
55
55
|
slug: "openai-create-image-edit",
|
|
56
56
|
name: "Edit Image",
|
|
@@ -65,7 +65,7 @@ const openaiCreateImageEdit = action("OPENAI_CREATE_IMAGE_EDIT", {
|
|
|
65
65
|
background: z.string().describe("The background parameter used for the image generation. Either 'transparent' or 'opaque'").nullable().optional(),
|
|
66
66
|
output_format: z.string().describe("The output format of the image generation. Either 'png', 'webp', or 'jpeg'").nullable().optional(),
|
|
67
67
|
composio_execution_message: z.string().describe("Message explaining any parameter transformations applied during execution").nullable().optional()
|
|
68
|
-
}).describe("Response schema for image editing.")
|
|
68
|
+
}).passthrough().describe("Response schema for image editing.")
|
|
69
69
|
});
|
|
70
70
|
//#endregion
|
|
71
71
|
export { openaiCreateImageEdit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-edit.mjs","names":[],"sources":["../../src/actions/create-image-edit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageEditInput = z.object({\n n: z.number().int().describe(\"The number of edited images to generate. Default is 1. The exact upper limit may vary by model.\").optional(),\n mask: z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).describe(\"Reference an input image by either URL or uploaded file ID.\").optional(),\n size: z.string().describe(\"Requested output image size. Examples: '1024x1024', '1024x1536', '1536x1024', 'auto'. Default is 'auto', which automatically determines the best size.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI monitor and detect abuse.\").optional(),\n model: z.string().describe(\"The model to use for image editing. Supported models: 'gpt-image-2' (newest, flexible sizes, png/jpeg/webp output), 'gpt-image-1.5' (default), 'gpt-image-1', 'gpt-image-1-mini', 'chatgpt-image-latest', 'dall-e-2'. Note: JSON edits support GPT image models only; DALL-E edits require multipart format. gpt-image-2 does NOT support 'transparent' background — requests will be transformed to 'auto'.\").optional(),\n images: z.array(z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).describe(\"Reference an input image by either URL or uploaded file ID.\")).describe(\"Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both.\"),\n prompt: z.string().describe(\"A text description of the desired image edit. Describes what changes should be made to the input image(s). Maximum 32000 characters.\"),\n quality: z.enum([\"auto\", \"high\", \"medium\", \"low\"]).describe(\"Quality values for image editing.\").optional(),\n background: z.enum([\"auto\", \"transparent\", \"opaque\"]).describe(\"Background behavior for generated image output.\").optional(),\n moderation: z.string().describe(\"Moderation level for GPT image models. Default is 'auto'. Controls content moderation strictness.\").optional(),\n output_format: z.enum([\"png\", \"webp\", \"jpeg\"]).describe(\"Output image format.\").optional(),\n input_fidelity: z.string().describe(\"Controls fidelity to the original input image(s). Higher fidelity preserves more of the original image characteristics.\").optional(),\n output_compression: z.number().int().describe(\"Compression level for 'jpeg' or 'webp' output. Range: 0-100. Higher values mean better quality but larger file sizes.\").optional(),\n}).describe(\"Request model for editing images via OpenAI Images Edit API.\");\nconst OpenaiCreateImageEdit_ImageEditObjectSchema = z.object({\n url: z.string().describe(\"URL of the edited image (valid for 60 minutes)\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the edited image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the edited image\").nullable().optional(),\n}).describe(\"Individual edited image object in the response.\");\nconst OpenaiCreateImageEdit_TokenDetailsObjectSchema = z.object({\n text_tokens: z.number().int().describe(\"Number of text tokens in the input or output\").nullable().optional(),\n image_tokens: z.number().int().describe(\"Number of image tokens in the input or output\").nullable().optional(),\n}).describe(\"Token details breakdown.\");\nconst OpenaiCreateImageEdit_UsageObjectSchema = z.object({\n input_tokens: z.number().int().describe(\"The number of tokens (images and text) in the input prompt\").nullable().optional(),\n total_tokens: z.number().int().describe(\"The total number of tokens (images and text) used for the image generation\").nullable().optional(),\n output_tokens: z.number().int().describe(\"The number of output tokens generated by the model\").nullable().optional(),\n input_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n output_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n}).describe(\"Token usage information for image editing.\");\nexport const OpenaiCreateImageEditOutput = z.object({\n data: z.array(OpenaiCreateImageEdit_ImageEditObjectSchema).describe(\"The list of edited images\").nullable().optional(),\n size: z.string().describe(\"The size of the image generated. Examples: '1024x1024', '1024x1536', '1536x1024'\").nullable().optional(),\n usage: OpenaiCreateImageEdit_UsageObjectSchema.nullable().optional(),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the image was created\").nullable(),\n quality: z.string().describe(\"The quality of the image generated. Either 'low', 'medium', or 'high'\").nullable().optional(),\n background: z.string().describe(\"The background parameter used for the image generation. Either 'transparent' or 'opaque'\").nullable().optional(),\n output_format: z.string().describe(\"The output format of the image generation. Either 'png', 'webp', or 'jpeg'\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message explaining any parameter transformations applied during execution\").nullable().optional(),\n}).describe(\"Response schema for image editing.\");\n\nexport const openaiCreateImageEdit = action(\"OPENAI_CREATE_IMAGE_EDIT\", {\n slug: \"openai-create-image-edit\",\n name: \"Edit Image\",\n description: \"Tool to create edited or extended images via OpenAI Images Edit API. Use when you need to modify existing images based on a text prompt, with optional mask support for targeted edits.\",\n input: OpenaiCreateImageEditInput,\n output: OpenaiCreateImageEditOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzI,MAAM,EAAE,OAAO;EACf,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACtI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8YAA8Y,CAAC,CAAC,SAAS;CACpb,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,CAAC,SAAS,qKAAqK;
|
|
1
|
+
{"version":3,"file":"create-image-edit.mjs","names":[],"sources":["../../src/actions/create-image-edit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageEditInput = z.object({\n n: z.number().int().describe(\"The number of edited images to generate. Default is 1. The exact upper limit may vary by model.\").optional(),\n mask: z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).describe(\"Reference an input image by either URL or uploaded file ID.\").optional(),\n size: z.string().describe(\"Requested output image size. Examples: '1024x1024', '1024x1536', '1536x1024', 'auto'. Default is 'auto', which automatically determines the best size.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI monitor and detect abuse.\").optional(),\n model: z.string().describe(\"The model to use for image editing. Supported models: 'gpt-image-2' (newest, flexible sizes, png/jpeg/webp output), 'gpt-image-1.5' (default), 'gpt-image-1', 'gpt-image-1-mini', 'chatgpt-image-latest', 'dall-e-2'. Note: JSON edits support GPT image models only; DALL-E edits require multipart format. gpt-image-2 does NOT support 'transparent' background — requests will be transformed to 'auto'.\").optional(),\n images: z.array(z.object({\n file_id: z.string().describe(\"The File API ID of an uploaded image to use as input.\").optional(),\n image_url: z.string().describe(\"A fully qualified URL or base64-encoded data URL of the image. Maximum 20MB.\").optional(),\n}).passthrough().describe(\"Reference an input image by either URL or uploaded file ID.\")).describe(\"Input image references to edit. For GPT image models, you can provide up to 16 images. Each image reference must provide either 'image_url' or 'file_id', not both.\"),\n prompt: z.string().describe(\"A text description of the desired image edit. Describes what changes should be made to the input image(s). Maximum 32000 characters.\"),\n quality: z.enum([\"auto\", \"high\", \"medium\", \"low\"]).describe(\"Quality values for image editing.\").optional(),\n background: z.enum([\"auto\", \"transparent\", \"opaque\"]).describe(\"Background behavior for generated image output.\").optional(),\n moderation: z.string().describe(\"Moderation level for GPT image models. Default is 'auto'. Controls content moderation strictness.\").optional(),\n output_format: z.enum([\"png\", \"webp\", \"jpeg\"]).describe(\"Output image format.\").optional(),\n input_fidelity: z.string().describe(\"Controls fidelity to the original input image(s). Higher fidelity preserves more of the original image characteristics.\").optional(),\n output_compression: z.number().int().describe(\"Compression level for 'jpeg' or 'webp' output. Range: 0-100. Higher values mean better quality but larger file sizes.\").optional(),\n}).describe(\"Request model for editing images via OpenAI Images Edit API.\");\nconst OpenaiCreateImageEdit_ImageEditObjectSchema = z.object({\n url: z.string().describe(\"URL of the edited image (valid for 60 minutes)\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the edited image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the edited image\").nullable().optional(),\n}).passthrough().describe(\"Individual edited image object in the response.\");\nconst OpenaiCreateImageEdit_TokenDetailsObjectSchema = z.object({\n text_tokens: z.number().int().describe(\"Number of text tokens in the input or output\").nullable().optional(),\n image_tokens: z.number().int().describe(\"Number of image tokens in the input or output\").nullable().optional(),\n}).passthrough().describe(\"Token details breakdown.\");\nconst OpenaiCreateImageEdit_UsageObjectSchema = z.object({\n input_tokens: z.number().int().describe(\"The number of tokens (images and text) in the input prompt\").nullable().optional(),\n total_tokens: z.number().int().describe(\"The total number of tokens (images and text) used for the image generation\").nullable().optional(),\n output_tokens: z.number().int().describe(\"The number of output tokens generated by the model\").nullable().optional(),\n input_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n output_tokens_details: OpenaiCreateImageEdit_TokenDetailsObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Token usage information for image editing.\");\nexport const OpenaiCreateImageEditOutput = z.object({\n data: z.array(OpenaiCreateImageEdit_ImageEditObjectSchema).describe(\"The list of edited images\").nullable().optional(),\n size: z.string().describe(\"The size of the image generated. Examples: '1024x1024', '1024x1536', '1536x1024'\").nullable().optional(),\n usage: OpenaiCreateImageEdit_UsageObjectSchema.nullable().optional(),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the image was created\").nullable(),\n quality: z.string().describe(\"The quality of the image generated. Either 'low', 'medium', or 'high'\").nullable().optional(),\n background: z.string().describe(\"The background parameter used for the image generation. Either 'transparent' or 'opaque'\").nullable().optional(),\n output_format: z.string().describe(\"The output format of the image generation. Either 'png', 'webp', or 'jpeg'\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message explaining any parameter transformations applied during execution\").nullable().optional(),\n}).passthrough().describe(\"Response schema for image editing.\");\n\nexport const openaiCreateImageEdit = action(\"OPENAI_CREATE_IMAGE_EDIT\", {\n slug: \"openai-create-image-edit\",\n name: \"Edit Image\",\n description: \"Tool to create edited or extended images via OpenAI Images Edit API. Use when you need to modify existing images based on a text prompt, with optional mask support for targeted edits.\",\n input: OpenaiCreateImageEditInput,\n output: OpenaiCreateImageEditOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACzI,MAAM,EAAE,OAAO;EACf,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACtI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8YAA8Y,CAAC,CAAC,SAAS;CACpb,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,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AAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
|
|
@@ -21,11 +21,11 @@ const OpenaiCreateImageVariation_ImageVariationObjectSchema = zod.z.object({
|
|
|
21
21
|
url: zod.z.string().describe("URL of the generated image (valid for 60 minutes when response_format is 'url')").nullable().optional(),
|
|
22
22
|
b64_json: zod.z.string().describe("Base64-encoded JSON string of the generated image").nullable().optional(),
|
|
23
23
|
revised_prompt: zod.z.string().describe("The revised prompt that was used to generate the image (if applicable)").nullable().optional()
|
|
24
|
-
}).describe("Individual image object in the variation response.");
|
|
24
|
+
}).passthrough().describe("Individual image object in the variation response.");
|
|
25
25
|
const OpenaiCreateImageVariationOutput = zod.z.object({
|
|
26
26
|
data: zod.z.array(OpenaiCreateImageVariation_ImageVariationObjectSchema).describe("The list of generated image variations"),
|
|
27
27
|
created: zod.z.number().int().describe("Unix timestamp (in seconds) of when the image was created").nullable()
|
|
28
|
-
}).describe("Response schema for image variation generation.");
|
|
28
|
+
}).passthrough().describe("Response schema for image variation generation.");
|
|
29
29
|
const openaiCreateImageVariation = require_action.action("OPENAI_CREATE_IMAGE_VARIATION", {
|
|
30
30
|
slug: "openai-create-image-variation",
|
|
31
31
|
name: "Create Image Variation",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-variation.cjs","names":["z","action"],"sources":["../../src/actions/create-image-variation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageVariationInput = z.object({\n n: z.number().int().describe(\"The number of images to generate. Must be between 1 and 10. Defaults to 1.\").optional(),\n size: z.enum([\"256x256\", \"512x512\", \"1024x1024\"]).describe(\"Size options for image variations with dall-e-2.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n image: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.\"),\n model: z.string().describe(\"The model to use for image generation. Only 'dall-e-2' is supported at this time. Defaults to 'dall-e-2' if not specified.\").optional(),\n response_format: z.enum([\"url\", \"b64_json\"]).describe(\"Format of the response for image generation.\").optional(),\n}).describe(\"Request model for creating image variations via OpenAI Images API.\");\nconst OpenaiCreateImageVariation_ImageVariationObjectSchema = z.object({\n url: z.string().describe(\"URL of the generated image (valid for 60 minutes when response_format is 'url')\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the generated image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the image (if applicable)\").nullable().optional(),\n}).describe(\"Individual image object in the variation response.\");\nexport const OpenaiCreateImageVariationOutput = z.object({\n data: z.array(OpenaiCreateImageVariation_ImageVariationObjectSchema).describe(\"The list of generated image variations\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the image was created\").nullable(),\n}).describe(\"Response schema for image variation generation.\");\n\nexport const openaiCreateImageVariation = action(\"OPENAI_CREATE_IMAGE_VARIATION\", {\n slug: \"openai-create-image-variation\",\n name: \"Create Image Variation\",\n description: \"Tool to create a variation of a given image using the OpenAI Images API. Use when you need to generate alternative versions of an existing image. Only supports dall-e-2 model.\",\n input: OpenaiCreateImageVariationInput,\n output: OpenaiCreateImageVariationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAClK,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"create-image-variation.cjs","names":["z","action"],"sources":["../../src/actions/create-image-variation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageVariationInput = z.object({\n n: z.number().int().describe(\"The number of images to generate. Must be between 1 and 10. Defaults to 1.\").optional(),\n size: z.enum([\"256x256\", \"512x512\", \"1024x1024\"]).describe(\"Size options for image variations with dall-e-2.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n image: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.\"),\n model: z.string().describe(\"The model to use for image generation. Only 'dall-e-2' is supported at this time. Defaults to 'dall-e-2' if not specified.\").optional(),\n response_format: z.enum([\"url\", \"b64_json\"]).describe(\"Format of the response for image generation.\").optional(),\n}).describe(\"Request model for creating image variations via OpenAI Images API.\");\nconst OpenaiCreateImageVariation_ImageVariationObjectSchema = z.object({\n url: z.string().describe(\"URL of the generated image (valid for 60 minutes when response_format is 'url')\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the generated image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the image (if applicable)\").nullable().optional(),\n}).passthrough().describe(\"Individual image object in the variation response.\");\nexport const OpenaiCreateImageVariationOutput = z.object({\n data: z.array(OpenaiCreateImageVariation_ImageVariationObjectSchema).describe(\"The list of generated image variations\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the image was created\").nullable(),\n}).passthrough().describe(\"Response schema for image variation generation.\");\n\nexport const openaiCreateImageVariation = action(\"OPENAI_CREATE_IMAGE_VARIATION\", {\n slug: \"openai-create-image-variation\",\n name: \"Create Image Variation\",\n description: \"Tool to create a variation of a given image using the OpenAI Images API. Use when you need to generate alternative versions of an existing image. Only supports dall-e-2 model.\",\n input: OpenaiCreateImageVariationInput,\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AAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,wCAAwC;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -25,9 +25,9 @@ declare const OpenaiCreateImageVariationOutput: z.ZodObject<{
|
|
|
25
25
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
b64_json: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
revised_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
created: z.ZodNullable<z.ZodNumber>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const openaiCreateImageVariation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
image: {
|
|
33
33
|
name: string;
|
|
@@ -25,9 +25,9 @@ declare const OpenaiCreateImageVariationOutput: z.ZodObject<{
|
|
|
25
25
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
b64_json: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
revised_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
created: z.ZodNullable<z.ZodNumber>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const openaiCreateImageVariation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
image: {
|
|
33
33
|
name: string;
|
|
@@ -21,7 +21,7 @@ const OpenaiCreateImageVariation_ImageVariationObjectSchema = z.object({
|
|
|
21
21
|
url: z.string().describe("URL of the generated image (valid for 60 minutes when response_format is 'url')").nullable().optional(),
|
|
22
22
|
b64_json: z.string().describe("Base64-encoded JSON string of the generated image").nullable().optional(),
|
|
23
23
|
revised_prompt: z.string().describe("The revised prompt that was used to generate the image (if applicable)").nullable().optional()
|
|
24
|
-
}).describe("Individual image object in the variation response.");
|
|
24
|
+
}).passthrough().describe("Individual image object in the variation response.");
|
|
25
25
|
const openaiCreateImageVariation = action("OPENAI_CREATE_IMAGE_VARIATION", {
|
|
26
26
|
slug: "openai-create-image-variation",
|
|
27
27
|
name: "Create Image Variation",
|
|
@@ -30,7 +30,7 @@ const openaiCreateImageVariation = action("OPENAI_CREATE_IMAGE_VARIATION", {
|
|
|
30
30
|
output: z.object({
|
|
31
31
|
data: z.array(OpenaiCreateImageVariation_ImageVariationObjectSchema).describe("The list of generated image variations"),
|
|
32
32
|
created: z.number().int().describe("Unix timestamp (in seconds) of when the image was created").nullable()
|
|
33
|
-
}).describe("Response schema for image variation generation.")
|
|
33
|
+
}).passthrough().describe("Response schema for image variation generation.")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { openaiCreateImageVariation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-variation.mjs","names":[],"sources":["../../src/actions/create-image-variation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageVariationInput = z.object({\n n: z.number().int().describe(\"The number of images to generate. Must be between 1 and 10. Defaults to 1.\").optional(),\n size: z.enum([\"256x256\", \"512x512\", \"1024x1024\"]).describe(\"Size options for image variations with dall-e-2.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n image: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.\"),\n model: z.string().describe(\"The model to use for image generation. Only 'dall-e-2' is supported at this time. Defaults to 'dall-e-2' if not specified.\").optional(),\n response_format: z.enum([\"url\", \"b64_json\"]).describe(\"Format of the response for image generation.\").optional(),\n}).describe(\"Request model for creating image variations via OpenAI Images API.\");\nconst OpenaiCreateImageVariation_ImageVariationObjectSchema = z.object({\n url: z.string().describe(\"URL of the generated image (valid for 60 minutes when response_format is 'url')\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the generated image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the image (if applicable)\").nullable().optional(),\n}).describe(\"Individual image object in the variation response.\");\nexport const OpenaiCreateImageVariationOutput = z.object({\n data: z.array(OpenaiCreateImageVariation_ImageVariationObjectSchema).describe(\"The list of generated image variations\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the image was created\").nullable(),\n}).describe(\"Response schema for image variation generation.\");\n\nexport const openaiCreateImageVariation = action(\"OPENAI_CREATE_IMAGE_VARIATION\", {\n slug: \"openai-create-image-variation\",\n name: \"Create Image Variation\",\n description: \"Tool to create a variation of a given image using the OpenAI Images API. Use when you need to generate alternative versions of an existing image. Only supports dall-e-2 model.\",\n input: OpenaiCreateImageVariationInput,\n output: OpenaiCreateImageVariationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,MAAM,EAAE,KAAK;EAAC;EAAW;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACzI,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAClK,iBAAiB,EAAE,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,wDAAwD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"create-image-variation.mjs","names":[],"sources":["../../src/actions/create-image-variation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageVariationInput = z.object({\n n: z.number().int().describe(\"The number of images to generate. Must be between 1 and 10. Defaults to 1.\").optional(),\n size: z.enum([\"256x256\", \"512x512\", \"1024x1024\"]).describe(\"Size options for image variations with dall-e-2.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n image: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.\"),\n model: z.string().describe(\"The model to use for image generation. Only 'dall-e-2' is supported at this time. Defaults to 'dall-e-2' if not specified.\").optional(),\n response_format: z.enum([\"url\", \"b64_json\"]).describe(\"Format of the response for image generation.\").optional(),\n}).describe(\"Request model for creating image variations via OpenAI Images API.\");\nconst OpenaiCreateImageVariation_ImageVariationObjectSchema = z.object({\n url: z.string().describe(\"URL of the generated image (valid for 60 minutes when response_format is 'url')\").nullable().optional(),\n b64_json: z.string().describe(\"Base64-encoded JSON string of the generated image\").nullable().optional(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate the image (if applicable)\").nullable().optional(),\n}).passthrough().describe(\"Individual image object in the variation response.\");\nexport const OpenaiCreateImageVariationOutput = z.object({\n data: z.array(OpenaiCreateImageVariation_ImageVariationObjectSchema).describe(\"The list of generated image variations\"),\n created: z.number().int().describe(\"Unix timestamp (in seconds) of when the image was created\").nullable(),\n}).passthrough().describe(\"Response schema for image variation generation.\");\n\nexport const openaiCreateImageVariation = action(\"OPENAI_CREATE_IMAGE_VARIATION\", {\n slug: \"openai-create-image-variation\",\n name: \"Create Image Variation\",\n description: \"Tool to create a variation of a given image using the OpenAI Images API. Use when you need to generate alternative versions of an existing image. Only supports dall-e-2 model.\",\n input: OpenaiCreateImageVariationInput,\n output: OpenaiCreateImageVariationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,MAAM,EAAE,KAAK;EAAC;EAAW;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACzI,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0GAA0G;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CAClK,iBAAiB,EAAE,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,wDAAwD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,wCAAwC;EACtH,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -33,8 +33,8 @@ const OpenaiCreateImage_ImageUsageInfoSchema = zod.z.object({
|
|
|
33
33
|
input_tokens: zod.z.number().int().describe("Number of input tokens").nullable().optional(),
|
|
34
34
|
total_tokens: zod.z.number().int().describe("Total tokens used in the request").nullable().optional(),
|
|
35
35
|
output_tokens: zod.z.number().int().describe("Number of output tokens").nullable().optional(),
|
|
36
|
-
input_tokens_details: zod.z.
|
|
37
|
-
}).describe("Token usage information for image generation.");
|
|
36
|
+
input_tokens_details: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed breakdown of input tokens (e.g., text_tokens, image_tokens)").nullable().optional()
|
|
37
|
+
}).passthrough().describe("Token usage information for image generation.");
|
|
38
38
|
const OpenaiCreateImage_ImageAssetSchema = zod.z.object({
|
|
39
39
|
width: zod.z.number().int().describe("Width of the generated image in pixels").nullable(),
|
|
40
40
|
height: zod.z.number().int().describe("Height of the generated image in pixels").nullable(),
|
|
@@ -42,7 +42,7 @@ const OpenaiCreateImage_ImageAssetSchema = zod.z.object({
|
|
|
42
42
|
mime_type: zod.z.string().describe("MIME type of the generated image").nullable(),
|
|
43
43
|
size_bytes: zod.z.number().int().describe("Size of the image file in bytes").nullable(),
|
|
44
44
|
revised_prompt: zod.z.string().describe("The revised prompt that was used to generate this image (dall-e-3 only)").nullable().optional()
|
|
45
|
-
}).describe("Metadata for a generated image asset stored in managed object storage.");
|
|
45
|
+
}).passthrough().describe("Metadata for a generated image asset stored in managed object storage.");
|
|
46
46
|
const OpenaiCreateImageOutput = zod.z.object({
|
|
47
47
|
size: zod.z.string().describe("Size of the generated images").nullable().optional(),
|
|
48
48
|
usage: OpenaiCreateImage_ImageUsageInfoSchema.nullable().optional(),
|
|
@@ -53,7 +53,7 @@ const OpenaiCreateImageOutput = zod.z.object({
|
|
|
53
53
|
request_id: zod.z.string().describe("OpenAI request ID for tracking and support").nullable().optional(),
|
|
54
54
|
output_format: zod.z.string().describe("Output format of the generated images").nullable().optional(),
|
|
55
55
|
composio_execution_message: zod.z.string().describe("Message explaining any parameter transformations applied during execution").nullable().optional()
|
|
56
|
-
}).describe("Response schema for image generation.");
|
|
56
|
+
}).passthrough().describe("Response schema for image generation.");
|
|
57
57
|
const openaiCreateImage = require_action.action("OPENAI_CREATE_IMAGE", {
|
|
58
58
|
slug: "openai-create-image",
|
|
59
59
|
name: "Generate Image",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image.cjs","names":["z","action"],"sources":["../../src/actions/create-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageInput = z.object({\n n: z.number().int().describe(\"The number of images to generate. For dall-e-3, only n=1 is supported. For dall-e-2, you can request up to 10 images.\").optional(),\n size: z.string().describe(\"Size of the generated image. For gpt-image-2: any resolution 'WxH' where both edges are multiples of 16, max edge 3840px, 655,360-8,294,400 total pixels, max 3:1 aspect ratio (e.g., '1024x1024', '2048x2048', '3840x2160'), or 'auto' (default). For gpt-image-1: '1024x1024', '1536x1024' (landscape), '1024x1536' (portrait), or 'auto' (default). For dall-e-3: '1024x1024', '1792x1024', '1024x1792'. For dall-e-2: '256x256', '512x512', '1024x1024'.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use for image generation. Supported models include: 'gpt-image-2' (newest, state-of-the-art, flexible sizes, png/jpeg/webp output), 'gpt-image-1', 'gpt-image-1-mini', 'gpt-image-1.5', 'chatgpt-image-latest', 'dall-e-3', 'dall-e-2'. Note: DALL-E 2 and DALL-E 3 are deprecated and will stop being supported on 05/12/2026.\"),\n style: z.enum([\"vivid\", \"natural\"]).describe(\"The style of the generated image. 'vivid' causes the model to lean towards generating hyper-real and dramatic images. 'natural' causes the model to produce more natural, less hyper-real looking images. Only supported for dall-e-3.\").optional(),\n prompt: z.string().describe(\"A text description of the desired image. Maximum length: 32000 characters for GPT image models, 4000 characters for dall-e-3, 1000 characters for dall-e-2.\"),\n quality: z.enum([\"standard\", \"hd\", \"auto\", \"high\", \"medium\", \"low\"]).describe(\"Quality values for image generation across different models.\").optional(),\n background: z.enum([\"transparent\", \"opaque\", \"auto\"]).describe(\"Background transparency setting for the generated image. Only supported for GPT image models. 'transparent' creates images with transparent backgrounds, 'opaque' creates fully opaque backgrounds, 'auto' (default) lets the model decide. Note: gpt-image-2 does NOT support 'transparent' — requests will be transformed to 'auto' with an execution message.\").optional(),\n moderation: z.enum([\"auto\", \"low\"]).describe(\"Content moderation strictness. 'auto' (default) applies standard filtering, 'low' applies less restrictive filtering. Supported by gpt-image-2 and gpt-image-1 series. Ignored for dall-e models.\").optional(),\n output_format: z.enum([\"png\", \"jpeg\", \"webp\"]).describe(\"Output image format. Supported by gpt-image-2 (png/jpeg/webp) and gpt-image-1 series (png/jpeg/webp). Defaults to 'png'. Ignored for dall-e models.\").optional(),\n output_compression: z.number().int().describe(\"Compression level (0-100) for jpeg and webp output formats. Higher values preserve more detail. Only applies when output_format is 'jpeg' or 'webp'. Supported by gpt-image-2 and gpt-image-1 series.\").optional(),\n}).describe(\"Request model for generating images via OpenAI Images API.\");\nconst OpenaiCreateImage_ImageUsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable().optional(),\n total_tokens: z.number().int().describe(\"Total tokens used in the request\").nullable().optional(),\n output_tokens: z.number().int().describe(\"Number of output tokens\").nullable().optional(),\n input_tokens_details: z.
|
|
1
|
+
{"version":3,"file":"create-image.cjs","names":["z","action"],"sources":["../../src/actions/create-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateImageInput = z.object({\n n: z.number().int().describe(\"The number of images to generate. For dall-e-3, only n=1 is supported. For dall-e-2, you can request up to 10 images.\").optional(),\n size: z.string().describe(\"Size of the generated image. For gpt-image-2: any resolution 'WxH' where both edges are multiples of 16, max edge 3840px, 655,360-8,294,400 total pixels, max 3:1 aspect ratio (e.g., '1024x1024', '2048x2048', '3840x2160'), or 'auto' (default). For gpt-image-1: '1024x1024', '1536x1024' (landscape), '1024x1536' (portrait), or 'auto' (default). For dall-e-3: '1024x1024', '1792x1024', '1024x1792'. For dall-e-2: '256x256', '512x512', '1024x1024'.\").optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use for image generation. Supported models include: 'gpt-image-2' (newest, state-of-the-art, flexible sizes, png/jpeg/webp output), 'gpt-image-1', 'gpt-image-1-mini', 'gpt-image-1.5', 'chatgpt-image-latest', 'dall-e-3', 'dall-e-2'. Note: DALL-E 2 and DALL-E 3 are deprecated and will stop being supported on 05/12/2026.\"),\n style: z.enum([\"vivid\", \"natural\"]).describe(\"The style of the generated image. 'vivid' causes the model to lean towards generating hyper-real and dramatic images. 'natural' causes the model to produce more natural, less hyper-real looking images. Only supported for dall-e-3.\").optional(),\n prompt: z.string().describe(\"A text description of the desired image. Maximum length: 32000 characters for GPT image models, 4000 characters for dall-e-3, 1000 characters for dall-e-2.\"),\n quality: z.enum([\"standard\", \"hd\", \"auto\", \"high\", \"medium\", \"low\"]).describe(\"Quality values for image generation across different models.\").optional(),\n background: z.enum([\"transparent\", \"opaque\", \"auto\"]).describe(\"Background transparency setting for the generated image. Only supported for GPT image models. 'transparent' creates images with transparent backgrounds, 'opaque' creates fully opaque backgrounds, 'auto' (default) lets the model decide. Note: gpt-image-2 does NOT support 'transparent' — requests will be transformed to 'auto' with an execution message.\").optional(),\n moderation: z.enum([\"auto\", \"low\"]).describe(\"Content moderation strictness. 'auto' (default) applies standard filtering, 'low' applies less restrictive filtering. Supported by gpt-image-2 and gpt-image-1 series. Ignored for dall-e models.\").optional(),\n output_format: z.enum([\"png\", \"jpeg\", \"webp\"]).describe(\"Output image format. Supported by gpt-image-2 (png/jpeg/webp) and gpt-image-1 series (png/jpeg/webp). Defaults to 'png'. Ignored for dall-e models.\").optional(),\n output_compression: z.number().int().describe(\"Compression level (0-100) for jpeg and webp output formats. Higher values preserve more detail. Only applies when output_format is 'jpeg' or 'webp'. Supported by gpt-image-2 and gpt-image-1 series.\").optional(),\n}).describe(\"Request model for generating images via OpenAI Images API.\");\nconst OpenaiCreateImage_ImageUsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable().optional(),\n total_tokens: z.number().int().describe(\"Total tokens used in the request\").nullable().optional(),\n output_tokens: z.number().int().describe(\"Number of output tokens\").nullable().optional(),\n input_tokens_details: z.record(z.string(), z.unknown()).describe(\"Detailed breakdown of input tokens (e.g., text_tokens, image_tokens)\").nullable().optional(),\n}).passthrough().describe(\"Token usage information for image generation.\");\nconst OpenaiCreateImage_ImageAssetSchema = z.object({\n width: z.number().int().describe(\"Width of the generated image in pixels\").nullable(),\n height: z.number().int().describe(\"Height of the generated image in pixels\").nullable(),\n asset_url: z.string().describe(\"URL of the stored image asset in managed object storage\").nullable(),\n mime_type: z.string().describe(\"MIME type of the generated image\").nullable(),\n size_bytes: z.number().int().describe(\"Size of the image file in bytes\").nullable(),\n revised_prompt: z.string().describe(\"The revised prompt that was used to generate this image (dall-e-3 only)\").nullable().optional(),\n}).passthrough().describe(\"Metadata for a generated image asset stored in managed object storage.\");\nexport const OpenaiCreateImageOutput = z.object({\n size: z.string().describe(\"Size of the generated images\").nullable().optional(),\n usage: OpenaiCreateImage_ImageUsageInfoSchema.nullable().optional(),\n images: z.array(OpenaiCreateImage_ImageAssetSchema).describe(\"Array of generated image assets with metadata and storage URLs\"),\n created: z.number().int().describe(\"Unix timestamp when the image generation request was created\").nullable(),\n quality: z.string().describe(\"Quality setting used for generation\").nullable().optional(),\n background: z.string().describe(\"Background setting used for generation (GPT image models)\").nullable().optional(),\n request_id: z.string().describe(\"OpenAI request ID for tracking and support\").nullable().optional(),\n output_format: z.string().describe(\"Output format of the generated images\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message explaining any parameter transformations applied during execution\").nullable().optional(),\n}).passthrough().describe(\"Response schema for image generation.\");\n\nexport const openaiCreateImage = action(\"OPENAI_CREATE_IMAGE\", {\n slug: \"openai-create-image\",\n name: \"Generate Image\",\n description: \"Tool to generate an image via the OpenAI Images API and return hosted image asset URL and metadata. Use when you need to create images from text descriptions for single-shot image generation.\",\n input: OpenaiCreateImageInput,\n output: OpenaiCreateImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC/J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8bAA8b,CAAC,CAAC,SAAS;CACne,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oVAAoV;CAC/W,OAAOA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,wOAAwO,CAAC,CAAC,SAAS;CAChS,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CACzL,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAM;EAAQ;EAAQ;EAAU;CAAK,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAU;CAAM,CAAC,CAAC,CAAC,SAAS,kWAAkW,CAAC,CAAC,SAAS;CAC5a,YAAYA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS,mMAAmM,CAAC,CAAC,SAAS;CAC3P,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACxN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;AAClQ,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyCA,IAA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