@keystrokehq/openai 0.1.4 → 0.1.6
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-upload-part.cjs +1 -0
- package/dist/actions/add-upload-part.cjs.map +1 -1
- package/dist/actions/add-upload-part.d.cts +3 -11
- package/dist/actions/add-upload-part.d.cts.map +1 -1
- package/dist/actions/add-upload-part.d.mts +3 -11
- package/dist/actions/add-upload-part.d.mts.map +1 -1
- package/dist/actions/add-upload-part.mjs +1 -0
- package/dist/actions/add-upload-part.mjs.map +1 -1
- package/dist/actions/cancel-batch.cjs +1 -0
- package/dist/actions/cancel-batch.cjs.map +1 -1
- package/dist/actions/cancel-batch.d.cts +3 -3
- package/dist/actions/cancel-batch.d.cts.map +1 -1
- package/dist/actions/cancel-batch.d.mts +3 -3
- package/dist/actions/cancel-batch.d.mts.map +1 -1
- package/dist/actions/cancel-batch.mjs +1 -0
- package/dist/actions/cancel-batch.mjs.map +1 -1
- package/dist/actions/cancel-eval-run.cjs +1 -0
- package/dist/actions/cancel-eval-run.cjs.map +1 -1
- package/dist/actions/cancel-eval-run.d.cts +3 -4
- package/dist/actions/cancel-eval-run.d.cts.map +1 -1
- package/dist/actions/cancel-eval-run.d.mts +3 -4
- package/dist/actions/cancel-eval-run.d.mts.map +1 -1
- package/dist/actions/cancel-eval-run.mjs +1 -0
- package/dist/actions/cancel-eval-run.mjs.map +1 -1
- package/dist/actions/cancel-response.cjs +1 -0
- package/dist/actions/cancel-response.cjs.map +1 -1
- package/dist/actions/cancel-response.d.cts +3 -3
- package/dist/actions/cancel-response.d.cts.map +1 -1
- package/dist/actions/cancel-response.d.mts +3 -3
- package/dist/actions/cancel-response.d.mts.map +1 -1
- package/dist/actions/cancel-response.mjs +1 -0
- package/dist/actions/cancel-response.mjs.map +1 -1
- package/dist/actions/cancel-run.cjs +1 -0
- package/dist/actions/cancel-run.cjs.map +1 -1
- package/dist/actions/cancel-run.d.cts +3 -4
- package/dist/actions/cancel-run.d.cts.map +1 -1
- package/dist/actions/cancel-run.d.mts +3 -4
- package/dist/actions/cancel-run.d.mts.map +1 -1
- package/dist/actions/cancel-run.mjs +1 -0
- package/dist/actions/cancel-run.mjs.map +1 -1
- package/dist/actions/cancel-upload.cjs +1 -0
- package/dist/actions/cancel-upload.cjs.map +1 -1
- package/dist/actions/cancel-upload.d.cts +3 -3
- package/dist/actions/cancel-upload.d.cts.map +1 -1
- package/dist/actions/cancel-upload.d.mts +3 -3
- package/dist/actions/cancel-upload.d.mts.map +1 -1
- package/dist/actions/cancel-upload.mjs +1 -0
- package/dist/actions/cancel-upload.mjs.map +1 -1
- package/dist/actions/compact-response.cjs +1 -0
- package/dist/actions/compact-response.cjs.map +1 -1
- package/dist/actions/compact-response.d.cts +3 -15
- package/dist/actions/compact-response.d.cts.map +1 -1
- package/dist/actions/compact-response.d.mts +3 -15
- package/dist/actions/compact-response.d.mts.map +1 -1
- package/dist/actions/compact-response.mjs +1 -0
- package/dist/actions/compact-response.mjs.map +1 -1
- package/dist/actions/create-audio-transcription.cjs +1 -0
- package/dist/actions/create-audio-transcription.cjs.map +1 -1
- package/dist/actions/create-audio-transcription.d.cts +3 -16
- package/dist/actions/create-audio-transcription.d.cts.map +1 -1
- package/dist/actions/create-audio-transcription.d.mts +3 -16
- package/dist/actions/create-audio-transcription.d.mts.map +1 -1
- package/dist/actions/create-audio-transcription.mjs +1 -0
- package/dist/actions/create-audio-transcription.mjs.map +1 -1
- package/dist/actions/create-audio-translation.cjs +1 -0
- package/dist/actions/create-audio-translation.cjs.map +1 -1
- package/dist/actions/create-audio-translation.d.cts +3 -14
- package/dist/actions/create-audio-translation.d.cts.map +1 -1
- package/dist/actions/create-audio-translation.d.mts +3 -14
- package/dist/actions/create-audio-translation.d.mts.map +1 -1
- package/dist/actions/create-audio-translation.mjs +1 -0
- package/dist/actions/create-audio-translation.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +1 -0
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +3 -10
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +3 -10
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +1 -0
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +1 -0
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +3 -60
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +3 -60
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +1 -0
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-completion.cjs +1 -0
- package/dist/actions/create-completion.cjs.map +1 -1
- package/dist/actions/create-completion.d.cts +3 -20
- package/dist/actions/create-completion.d.cts.map +1 -1
- package/dist/actions/create-completion.d.mts +3 -20
- package/dist/actions/create-completion.d.mts.map +1 -1
- package/dist/actions/create-completion.mjs +1 -0
- package/dist/actions/create-completion.mjs.map +1 -1
- package/dist/actions/create-container-file.cjs +1 -0
- package/dist/actions/create-container-file.cjs.map +1 -1
- package/dist/actions/create-container-file.d.cts +3 -5
- package/dist/actions/create-container-file.d.cts.map +1 -1
- package/dist/actions/create-container-file.d.mts +3 -5
- package/dist/actions/create-container-file.d.mts.map +1 -1
- package/dist/actions/create-container-file.mjs +1 -0
- package/dist/actions/create-container-file.mjs.map +1 -1
- package/dist/actions/create-container.cjs +1 -0
- package/dist/actions/create-container.cjs.map +1 -1
- package/dist/actions/create-container.d.cts +3 -30
- package/dist/actions/create-container.d.cts.map +1 -1
- package/dist/actions/create-container.d.mts +3 -30
- package/dist/actions/create-container.d.mts.map +1 -1
- package/dist/actions/create-container.mjs +1 -0
- package/dist/actions/create-container.mjs.map +1 -1
- package/dist/actions/create-conversation-items.cjs +1 -0
- package/dist/actions/create-conversation-items.cjs.map +1 -1
- package/dist/actions/create-conversation-items.d.cts +3 -14
- package/dist/actions/create-conversation-items.d.cts.map +1 -1
- package/dist/actions/create-conversation-items.d.mts +3 -14
- package/dist/actions/create-conversation-items.d.mts.map +1 -1
- package/dist/actions/create-conversation-items.mjs +1 -0
- package/dist/actions/create-conversation-items.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +1 -0
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +3 -9
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +3 -9
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +1 -0
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +1 -0
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +3 -7
- package/dist/actions/create-embeddings.d.cts.map +1 -1
- package/dist/actions/create-embeddings.d.mts +3 -7
- package/dist/actions/create-embeddings.d.mts.map +1 -1
- package/dist/actions/create-embeddings.mjs +1 -0
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/create-eval-run.cjs +1 -0
- package/dist/actions/create-eval-run.cjs.map +1 -1
- package/dist/actions/create-eval-run.d.cts +3 -48
- package/dist/actions/create-eval-run.d.cts.map +1 -1
- package/dist/actions/create-eval-run.d.mts +3 -48
- package/dist/actions/create-eval-run.d.mts.map +1 -1
- package/dist/actions/create-eval-run.mjs +1 -0
- package/dist/actions/create-eval-run.mjs.map +1 -1
- package/dist/actions/create-eval.cjs +1 -0
- package/dist/actions/create-eval.cjs.map +1 -1
- package/dist/actions/create-eval.d.cts +3 -47
- package/dist/actions/create-eval.d.cts.map +1 -1
- package/dist/actions/create-eval.d.mts +3 -47
- package/dist/actions/create-eval.d.mts.map +1 -1
- package/dist/actions/create-eval.mjs +1 -0
- package/dist/actions/create-eval.mjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.cjs +1 -0
- package/dist/actions/create-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.cts +3 -11
- package/dist/actions/create-fine-tuning-job.d.cts.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.mts +3 -11
- package/dist/actions/create-fine-tuning-job.d.mts.map +1 -1
- package/dist/actions/create-fine-tuning-job.mjs +1 -0
- package/dist/actions/create-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/create-image-edit.cjs +1 -0
- package/dist/actions/create-image-edit.cjs.map +1 -1
- package/dist/actions/create-image-edit.d.cts +4 -23
- package/dist/actions/create-image-edit.d.cts.map +1 -1
- package/dist/actions/create-image-edit.d.mts +4 -23
- package/dist/actions/create-image-edit.d.mts.map +1 -1
- package/dist/actions/create-image-edit.mjs +1 -0
- package/dist/actions/create-image-edit.mjs.map +1 -1
- package/dist/actions/create-image-variation.cjs +1 -0
- package/dist/actions/create-image-variation.cjs.map +1 -1
- package/dist/actions/create-image-variation.d.cts +3 -12
- package/dist/actions/create-image-variation.d.cts.map +1 -1
- package/dist/actions/create-image-variation.d.mts +3 -12
- package/dist/actions/create-image-variation.d.mts.map +1 -1
- package/dist/actions/create-image-variation.mjs +1 -0
- package/dist/actions/create-image-variation.mjs.map +1 -1
- package/dist/actions/create-image.cjs +1 -0
- package/dist/actions/create-image.cjs.map +1 -1
- package/dist/actions/create-image.d.cts +4 -14
- package/dist/actions/create-image.d.cts.map +1 -1
- package/dist/actions/create-image.d.mts +4 -14
- package/dist/actions/create-image.d.mts.map +1 -1
- package/dist/actions/create-image.mjs +1 -0
- package/dist/actions/create-image.mjs.map +1 -1
- package/dist/actions/create-message.cjs +1 -0
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +3 -21
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +3 -21
- package/dist/actions/create-message.d.mts.map +1 -1
- package/dist/actions/create-message.mjs +1 -0
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/create-moderation.cjs +1 -0
- package/dist/actions/create-moderation.cjs.map +1 -1
- package/dist/actions/create-moderation.d.cts +3 -9
- package/dist/actions/create-moderation.d.cts.map +1 -1
- package/dist/actions/create-moderation.d.mts +3 -9
- package/dist/actions/create-moderation.d.mts.map +1 -1
- package/dist/actions/create-moderation.mjs +1 -0
- package/dist/actions/create-moderation.mjs.map +1 -1
- package/dist/actions/create-realtime-call.cjs +1 -0
- package/dist/actions/create-realtime-call.cjs.map +1 -1
- package/dist/actions/create-realtime-call.d.cts +3 -4
- package/dist/actions/create-realtime-call.d.cts.map +1 -1
- package/dist/actions/create-realtime-call.d.mts +3 -4
- package/dist/actions/create-realtime-call.d.mts.map +1 -1
- package/dist/actions/create-realtime-call.mjs +1 -0
- package/dist/actions/create-realtime-call.mjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.cjs +1 -0
- package/dist/actions/create-realtime-client-secret.cjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.cts +3 -26
- package/dist/actions/create-realtime-client-secret.d.cts.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.mts +3 -26
- package/dist/actions/create-realtime-client-secret.d.mts.map +1 -1
- package/dist/actions/create-realtime-client-secret.mjs +1 -0
- package/dist/actions/create-realtime-client-secret.mjs.map +1 -1
- package/dist/actions/create-realtime-session.cjs +1 -0
- package/dist/actions/create-realtime-session.cjs.map +1 -1
- package/dist/actions/create-realtime-session.d.cts +3 -48
- package/dist/actions/create-realtime-session.d.cts.map +1 -1
- package/dist/actions/create-realtime-session.d.mts +3 -48
- package/dist/actions/create-realtime-session.d.mts.map +1 -1
- package/dist/actions/create-realtime-session.mjs +1 -0
- package/dist/actions/create-realtime-session.mjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.cjs +1 -0
- package/dist/actions/create-realtime-transcription-session.cjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.cts +3 -18
- package/dist/actions/create-realtime-transcription-session.d.cts.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.mts +3 -18
- package/dist/actions/create-realtime-transcription-session.d.mts.map +1 -1
- package/dist/actions/create-realtime-transcription-session.mjs +1 -0
- package/dist/actions/create-realtime-transcription-session.mjs.map +1 -1
- package/dist/actions/create-response.cjs +1 -0
- package/dist/actions/create-response.cjs.map +1 -1
- package/dist/actions/create-response.d.cts +3 -63
- package/dist/actions/create-response.d.cts.map +1 -1
- package/dist/actions/create-response.d.mts +3 -63
- package/dist/actions/create-response.d.mts.map +1 -1
- package/dist/actions/create-response.mjs +1 -0
- package/dist/actions/create-response.mjs.map +1 -1
- package/dist/actions/create-run.cjs +1 -0
- package/dist/actions/create-run.cjs.map +1 -1
- package/dist/actions/create-run.d.cts +3 -52
- package/dist/actions/create-run.d.cts.map +1 -1
- package/dist/actions/create-run.d.mts +3 -52
- package/dist/actions/create-run.d.mts.map +1 -1
- package/dist/actions/create-run.mjs +1 -0
- package/dist/actions/create-run.mjs.map +1 -1
- package/dist/actions/create-skill.cjs +1 -0
- package/dist/actions/create-skill.cjs.map +1 -1
- package/dist/actions/create-skill.d.cts +3 -13
- package/dist/actions/create-skill.d.cts.map +1 -1
- package/dist/actions/create-skill.d.mts +3 -13
- package/dist/actions/create-skill.d.mts.map +1 -1
- package/dist/actions/create-skill.mjs +1 -0
- package/dist/actions/create-skill.mjs.map +1 -1
- package/dist/actions/create-speech.cjs +1 -0
- package/dist/actions/create-speech.cjs.map +1 -1
- package/dist/actions/create-speech.d.cts +3 -7
- package/dist/actions/create-speech.d.cts.map +1 -1
- package/dist/actions/create-speech.d.mts +3 -7
- package/dist/actions/create-speech.d.mts.map +1 -1
- package/dist/actions/create-speech.mjs +1 -0
- package/dist/actions/create-speech.mjs.map +1 -1
- package/dist/actions/create-thread-and-run.cjs +1 -0
- package/dist/actions/create-thread-and-run.cjs.map +1 -1
- package/dist/actions/create-thread-and-run.d.cts +3 -78
- package/dist/actions/create-thread-and-run.d.cts.map +1 -1
- package/dist/actions/create-thread-and-run.d.mts +3 -78
- package/dist/actions/create-thread-and-run.d.mts.map +1 -1
- package/dist/actions/create-thread-and-run.mjs +1 -0
- package/dist/actions/create-thread-and-run.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +1 -0
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +3 -8
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +3 -8
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +1 -0
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/create-upload.cjs +1 -0
- package/dist/actions/create-upload.cjs.map +1 -1
- package/dist/actions/create-upload.d.cts +3 -10
- package/dist/actions/create-upload.d.cts.map +1 -1
- package/dist/actions/create-upload.d.mts +3 -10
- package/dist/actions/create-upload.d.mts.map +1 -1
- package/dist/actions/create-upload.mjs +1 -0
- package/dist/actions/create-upload.mjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.cjs +1 -0
- package/dist/actions/create-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.cts +3 -34
- package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.mts +3 -34
- package/dist/actions/create-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.mjs +1 -0
- package/dist/actions/create-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/create-vector-store-file.cjs +1 -0
- package/dist/actions/create-vector-store-file.cjs.map +1 -1
- package/dist/actions/create-vector-store-file.d.cts +3 -16
- package/dist/actions/create-vector-store-file.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file.d.mts +3 -16
- package/dist/actions/create-vector-store-file.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file.mjs +1 -0
- package/dist/actions/create-vector-store-file.mjs.map +1 -1
- package/dist/actions/create-vector-store.cjs +1 -0
- package/dist/actions/create-vector-store.cjs.map +1 -1
- package/dist/actions/create-vector-store.d.cts +3 -21
- package/dist/actions/create-vector-store.d.cts.map +1 -1
- package/dist/actions/create-vector-store.d.mts +3 -21
- package/dist/actions/create-vector-store.d.mts.map +1 -1
- package/dist/actions/create-vector-store.mjs +1 -0
- package/dist/actions/create-vector-store.mjs.map +1 -1
- package/dist/actions/create-video-remix.cjs +1 -0
- package/dist/actions/create-video-remix.cjs.map +1 -1
- package/dist/actions/create-video-remix.d.cts +3 -4
- package/dist/actions/create-video-remix.d.cts.map +1 -1
- package/dist/actions/create-video-remix.d.mts +3 -4
- package/dist/actions/create-video-remix.d.mts.map +1 -1
- package/dist/actions/create-video-remix.mjs +1 -0
- package/dist/actions/create-video-remix.mjs.map +1 -1
- package/dist/actions/create-video.cjs +1 -0
- package/dist/actions/create-video.cjs.map +1 -1
- package/dist/actions/create-video.d.cts +3 -6
- package/dist/actions/create-video.d.cts.map +1 -1
- package/dist/actions/create-video.d.mts +3 -6
- package/dist/actions/create-video.d.mts.map +1 -1
- package/dist/actions/create-video.mjs +1 -0
- package/dist/actions/create-video.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -0
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +3 -3
- package/dist/actions/delete-assistant.d.cts.map +1 -1
- package/dist/actions/delete-assistant.d.mts +3 -3
- package/dist/actions/delete-assistant.d.mts.map +1 -1
- package/dist/actions/delete-assistant.mjs +1 -0
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-chat-completion.cjs +1 -0
- package/dist/actions/delete-chat-completion.cjs.map +1 -1
- package/dist/actions/delete-chat-completion.d.cts +3 -3
- package/dist/actions/delete-chat-completion.d.cts.map +1 -1
- package/dist/actions/delete-chat-completion.d.mts +3 -3
- package/dist/actions/delete-chat-completion.d.mts.map +1 -1
- package/dist/actions/delete-chat-completion.mjs +1 -0
- package/dist/actions/delete-chat-completion.mjs.map +1 -1
- package/dist/actions/delete-container-file.cjs +1 -0
- package/dist/actions/delete-container-file.cjs.map +1 -1
- package/dist/actions/delete-container-file.d.cts +3 -4
- package/dist/actions/delete-container-file.d.cts.map +1 -1
- package/dist/actions/delete-container-file.d.mts +3 -4
- package/dist/actions/delete-container-file.d.mts.map +1 -1
- package/dist/actions/delete-container-file.mjs +1 -0
- package/dist/actions/delete-container-file.mjs.map +1 -1
- package/dist/actions/delete-container.cjs +1 -0
- package/dist/actions/delete-container.cjs.map +1 -1
- package/dist/actions/delete-container.d.cts +3 -3
- package/dist/actions/delete-container.d.cts.map +1 -1
- package/dist/actions/delete-container.d.mts +3 -3
- package/dist/actions/delete-container.d.mts.map +1 -1
- package/dist/actions/delete-container.mjs +1 -0
- package/dist/actions/delete-container.mjs.map +1 -1
- package/dist/actions/delete-conversation-item.cjs +1 -0
- package/dist/actions/delete-conversation-item.cjs.map +1 -1
- package/dist/actions/delete-conversation-item.d.cts +3 -4
- package/dist/actions/delete-conversation-item.d.cts.map +1 -1
- package/dist/actions/delete-conversation-item.d.mts +3 -4
- package/dist/actions/delete-conversation-item.d.mts.map +1 -1
- package/dist/actions/delete-conversation-item.mjs +1 -0
- package/dist/actions/delete-conversation-item.mjs.map +1 -1
- package/dist/actions/delete-conversation.cjs +1 -0
- package/dist/actions/delete-conversation.cjs.map +1 -1
- package/dist/actions/delete-conversation.d.cts +3 -3
- package/dist/actions/delete-conversation.d.cts.map +1 -1
- package/dist/actions/delete-conversation.d.mts +3 -3
- package/dist/actions/delete-conversation.d.mts.map +1 -1
- package/dist/actions/delete-conversation.mjs +1 -0
- package/dist/actions/delete-conversation.mjs.map +1 -1
- package/dist/actions/delete-eval-run.cjs +1 -0
- package/dist/actions/delete-eval-run.cjs.map +1 -1
- package/dist/actions/delete-eval-run.d.cts +3 -4
- package/dist/actions/delete-eval-run.d.cts.map +1 -1
- package/dist/actions/delete-eval-run.d.mts +3 -4
- package/dist/actions/delete-eval-run.d.mts.map +1 -1
- package/dist/actions/delete-eval-run.mjs +1 -0
- package/dist/actions/delete-eval-run.mjs.map +1 -1
- package/dist/actions/delete-eval.cjs +1 -0
- package/dist/actions/delete-eval.cjs.map +1 -1
- package/dist/actions/delete-eval.d.cts +3 -3
- package/dist/actions/delete-eval.d.cts.map +1 -1
- package/dist/actions/delete-eval.d.mts +3 -3
- package/dist/actions/delete-eval.d.mts.map +1 -1
- package/dist/actions/delete-eval.mjs +1 -0
- package/dist/actions/delete-eval.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -0
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +3 -3
- package/dist/actions/delete-file.d.cts.map +1 -1
- package/dist/actions/delete-file.d.mts +3 -3
- package/dist/actions/delete-file.d.mts.map +1 -1
- package/dist/actions/delete-file.mjs +1 -0
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -0
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +3 -4
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +3 -4
- package/dist/actions/delete-message.d.mts.map +1 -1
- package/dist/actions/delete-message.mjs +1 -0
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-response.cjs +1 -0
- package/dist/actions/delete-response.cjs.map +1 -1
- package/dist/actions/delete-response.d.cts +3 -3
- package/dist/actions/delete-response.d.cts.map +1 -1
- package/dist/actions/delete-response.d.mts +3 -3
- package/dist/actions/delete-response.d.mts.map +1 -1
- package/dist/actions/delete-response.mjs +1 -0
- package/dist/actions/delete-response.mjs.map +1 -1
- package/dist/actions/delete-skill.cjs +1 -0
- package/dist/actions/delete-skill.cjs.map +1 -1
- package/dist/actions/delete-skill.d.cts +3 -3
- package/dist/actions/delete-skill.d.cts.map +1 -1
- package/dist/actions/delete-skill.d.mts +3 -3
- package/dist/actions/delete-skill.d.mts.map +1 -1
- package/dist/actions/delete-skill.mjs +1 -0
- package/dist/actions/delete-skill.mjs.map +1 -1
- package/dist/actions/delete-thread.cjs +1 -0
- package/dist/actions/delete-thread.cjs.map +1 -1
- package/dist/actions/delete-thread.d.cts +3 -3
- package/dist/actions/delete-thread.d.cts.map +1 -1
- package/dist/actions/delete-thread.d.mts +3 -3
- package/dist/actions/delete-thread.d.mts.map +1 -1
- package/dist/actions/delete-thread.mjs +1 -0
- package/dist/actions/delete-thread.mjs.map +1 -1
- package/dist/actions/delete-vector-store-file.cjs +1 -0
- package/dist/actions/delete-vector-store-file.cjs.map +1 -1
- package/dist/actions/delete-vector-store-file.d.cts +3 -4
- package/dist/actions/delete-vector-store-file.d.cts.map +1 -1
- package/dist/actions/delete-vector-store-file.d.mts +3 -4
- package/dist/actions/delete-vector-store-file.d.mts.map +1 -1
- package/dist/actions/delete-vector-store-file.mjs +1 -0
- package/dist/actions/delete-vector-store-file.mjs.map +1 -1
- package/dist/actions/delete-vector-store.cjs +1 -0
- package/dist/actions/delete-vector-store.cjs.map +1 -1
- package/dist/actions/delete-vector-store.d.cts +3 -3
- package/dist/actions/delete-vector-store.d.cts.map +1 -1
- package/dist/actions/delete-vector-store.d.mts +3 -3
- package/dist/actions/delete-vector-store.d.mts.map +1 -1
- package/dist/actions/delete-vector-store.mjs +1 -0
- package/dist/actions/delete-vector-store.mjs.map +1 -1
- package/dist/actions/delete-video.cjs +1 -0
- package/dist/actions/delete-video.cjs.map +1 -1
- package/dist/actions/delete-video.d.cts +3 -3
- package/dist/actions/delete-video.d.cts.map +1 -1
- package/dist/actions/delete-video.d.mts +3 -3
- package/dist/actions/delete-video.d.mts.map +1 -1
- package/dist/actions/delete-video.mjs +1 -0
- package/dist/actions/delete-video.mjs.map +1 -1
- package/dist/actions/download-file.cjs +1 -0
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +3 -3
- package/dist/actions/download-file.d.cts.map +1 -1
- package/dist/actions/download-file.d.mts +3 -3
- package/dist/actions/download-file.d.mts.map +1 -1
- package/dist/actions/download-file.mjs +1 -0
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-video.cjs +1 -0
- package/dist/actions/download-video.cjs.map +1 -1
- package/dist/actions/download-video.d.cts +3 -4
- package/dist/actions/download-video.d.cts.map +1 -1
- package/dist/actions/download-video.d.mts +3 -4
- package/dist/actions/download-video.d.mts.map +1 -1
- package/dist/actions/download-video.mjs +1 -0
- package/dist/actions/download-video.mjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.cjs +1 -0
- package/dist/actions/get-chat-completion-messages.cjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.cts +3 -6
- package/dist/actions/get-chat-completion-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.mts +3 -6
- package/dist/actions/get-chat-completion-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-completion-messages.mjs +1 -0
- package/dist/actions/get-chat-completion-messages.mjs.map +1 -1
- package/dist/actions/get-chat-completion.cjs +1 -0
- package/dist/actions/get-chat-completion.cjs.map +1 -1
- package/dist/actions/get-chat-completion.d.cts +3 -3
- package/dist/actions/get-chat-completion.d.cts.map +1 -1
- package/dist/actions/get-chat-completion.d.mts +3 -3
- package/dist/actions/get-chat-completion.d.mts.map +1 -1
- package/dist/actions/get-chat-completion.mjs +1 -0
- package/dist/actions/get-chat-completion.mjs.map +1 -1
- package/dist/actions/get-chatkit-thread.cjs +1 -0
- package/dist/actions/get-chatkit-thread.cjs.map +1 -1
- package/dist/actions/get-chatkit-thread.d.cts +3 -3
- package/dist/actions/get-chatkit-thread.d.cts.map +1 -1
- package/dist/actions/get-chatkit-thread.d.mts +3 -3
- package/dist/actions/get-chatkit-thread.d.mts.map +1 -1
- package/dist/actions/get-chatkit-thread.mjs +1 -0
- package/dist/actions/get-chatkit-thread.mjs.map +1 -1
- package/dist/actions/get-conversation-item.cjs +1 -0
- package/dist/actions/get-conversation-item.cjs.map +1 -1
- package/dist/actions/get-conversation-item.d.cts +3 -5
- package/dist/actions/get-conversation-item.d.cts.map +1 -1
- package/dist/actions/get-conversation-item.d.mts +3 -5
- package/dist/actions/get-conversation-item.d.mts.map +1 -1
- package/dist/actions/get-conversation-item.mjs +1 -0
- package/dist/actions/get-conversation-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.cjs +1 -0
- package/dist/actions/get-eval-run-output-item.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.cts +3 -5
- package/dist/actions/get-eval-run-output-item.d.cts.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.mts +3 -5
- package/dist/actions/get-eval-run-output-item.d.mts.map +1 -1
- package/dist/actions/get-eval-run-output-item.mjs +1 -0
- package/dist/actions/get-eval-run-output-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.cjs +1 -0
- package/dist/actions/get-eval-run-output-items.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.cts +3 -8
- package/dist/actions/get-eval-run-output-items.d.cts.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.mts +3 -8
- package/dist/actions/get-eval-run-output-items.d.mts.map +1 -1
- package/dist/actions/get-eval-run-output-items.mjs +1 -0
- package/dist/actions/get-eval-run-output-items.mjs.map +1 -1
- package/dist/actions/get-eval-run.cjs +1 -0
- package/dist/actions/get-eval-run.cjs.map +1 -1
- package/dist/actions/get-eval-run.d.cts +3 -4
- package/dist/actions/get-eval-run.d.cts.map +1 -1
- package/dist/actions/get-eval-run.d.mts +3 -4
- package/dist/actions/get-eval-run.d.mts.map +1 -1
- package/dist/actions/get-eval-run.mjs +1 -0
- package/dist/actions/get-eval-run.mjs.map +1 -1
- package/dist/actions/get-eval-runs.cjs +1 -0
- package/dist/actions/get-eval-runs.cjs.map +1 -1
- package/dist/actions/get-eval-runs.d.cts +3 -7
- package/dist/actions/get-eval-runs.d.cts.map +1 -1
- package/dist/actions/get-eval-runs.d.mts +3 -7
- package/dist/actions/get-eval-runs.d.mts.map +1 -1
- package/dist/actions/get-eval-runs.mjs +1 -0
- package/dist/actions/get-eval-runs.mjs.map +1 -1
- package/dist/actions/get-eval.cjs +1 -0
- package/dist/actions/get-eval.cjs.map +1 -1
- package/dist/actions/get-eval.d.cts +3 -3
- package/dist/actions/get-eval.d.cts.map +1 -1
- package/dist/actions/get-eval.d.mts +3 -3
- package/dist/actions/get-eval.d.mts.map +1 -1
- package/dist/actions/get-eval.mjs +1 -0
- package/dist/actions/get-eval.mjs.map +1 -1
- package/dist/actions/get-input-token-counts.cjs +1 -0
- package/dist/actions/get-input-token-counts.cjs.map +1 -1
- package/dist/actions/get-input-token-counts.d.cts +4 -21
- package/dist/actions/get-input-token-counts.d.cts.map +1 -1
- package/dist/actions/get-input-token-counts.d.mts +4 -21
- package/dist/actions/get-input-token-counts.d.mts.map +1 -1
- package/dist/actions/get-input-token-counts.mjs +1 -0
- package/dist/actions/get-input-token-counts.mjs.map +1 -1
- package/dist/actions/get-message.cjs +1 -0
- package/dist/actions/get-message.cjs.map +1 -1
- package/dist/actions/get-message.d.cts +3 -4
- package/dist/actions/get-message.d.cts.map +1 -1
- package/dist/actions/get-message.d.mts +3 -4
- package/dist/actions/get-message.d.mts.map +1 -1
- package/dist/actions/get-message.mjs +1 -0
- package/dist/actions/get-message.mjs.map +1 -1
- package/dist/actions/get-response.cjs +1 -0
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +3 -7
- package/dist/actions/get-response.d.cts.map +1 -1
- package/dist/actions/get-response.d.mts +3 -7
- package/dist/actions/get-response.d.mts.map +1 -1
- package/dist/actions/get-response.mjs +1 -0
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/get-run-step.cjs +1 -0
- package/dist/actions/get-run-step.cjs.map +1 -1
- package/dist/actions/get-run-step.d.cts +3 -6
- package/dist/actions/get-run-step.d.cts.map +1 -1
- package/dist/actions/get-run-step.d.mts +3 -6
- package/dist/actions/get-run-step.d.mts.map +1 -1
- package/dist/actions/get-run-step.mjs +1 -0
- package/dist/actions/get-run-step.mjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.cjs +1 -0
- package/dist/actions/get-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.cts +3 -4
- package/dist/actions/get-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.mts +3 -4
- package/dist/actions/get-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/get-vector-store-file-batch.mjs +1 -0
- package/dist/actions/get-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/get-vector-store-file.cjs +1 -0
- package/dist/actions/get-vector-store-file.cjs.map +1 -1
- package/dist/actions/get-vector-store-file.d.cts +3 -4
- package/dist/actions/get-vector-store-file.d.cts.map +1 -1
- package/dist/actions/get-vector-store-file.d.mts +3 -4
- package/dist/actions/get-vector-store-file.d.mts.map +1 -1
- package/dist/actions/get-vector-store-file.mjs +1 -0
- package/dist/actions/get-vector-store-file.mjs.map +1 -1
- package/dist/actions/get-vector-store.cjs +1 -0
- package/dist/actions/get-vector-store.cjs.map +1 -1
- package/dist/actions/get-vector-store.d.cts +3 -3
- package/dist/actions/get-vector-store.d.cts.map +1 -1
- package/dist/actions/get-vector-store.d.mts +3 -3
- package/dist/actions/get-vector-store.d.mts.map +1 -1
- package/dist/actions/get-vector-store.mjs +1 -0
- package/dist/actions/get-vector-store.mjs.map +1 -1
- package/dist/actions/get-video.cjs +1 -0
- package/dist/actions/get-video.cjs.map +1 -1
- package/dist/actions/get-video.d.cts +3 -3
- package/dist/actions/get-video.d.cts.map +1 -1
- package/dist/actions/get-video.d.mts +3 -3
- package/dist/actions/get-video.d.mts.map +1 -1
- package/dist/actions/get-video.mjs +1 -0
- package/dist/actions/get-video.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +1 -0
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +3 -6
- package/dist/actions/list-assistants.d.cts.map +1 -1
- package/dist/actions/list-assistants.d.mts +3 -6
- package/dist/actions/list-assistants.d.mts.map +1 -1
- package/dist/actions/list-assistants.mjs +1 -0
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-batches.cjs +1 -0
- package/dist/actions/list-batches.cjs.map +1 -1
- package/dist/actions/list-batches.d.cts +3 -4
- package/dist/actions/list-batches.d.cts.map +1 -1
- package/dist/actions/list-batches.d.mts +3 -4
- package/dist/actions/list-batches.d.mts.map +1 -1
- package/dist/actions/list-batches.mjs +1 -0
- package/dist/actions/list-batches.mjs.map +1 -1
- package/dist/actions/list-chat-completions.cjs +1 -0
- package/dist/actions/list-chat-completions.cjs.map +1 -1
- package/dist/actions/list-chat-completions.d.cts +3 -7
- package/dist/actions/list-chat-completions.d.cts.map +1 -1
- package/dist/actions/list-chat-completions.d.mts +3 -7
- package/dist/actions/list-chat-completions.d.mts.map +1 -1
- package/dist/actions/list-chat-completions.mjs +1 -0
- package/dist/actions/list-chat-completions.mjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.cjs +1 -0
- package/dist/actions/list-chatkit-thread-items.cjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.cts +3 -7
- package/dist/actions/list-chatkit-thread-items.d.cts.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.mts +3 -7
- package/dist/actions/list-chatkit-thread-items.d.mts.map +1 -1
- package/dist/actions/list-chatkit-thread-items.mjs +1 -0
- package/dist/actions/list-chatkit-thread-items.mjs.map +1 -1
- package/dist/actions/list-container-files.cjs +1 -0
- package/dist/actions/list-container-files.cjs.map +1 -1
- package/dist/actions/list-container-files.d.cts +3 -6
- package/dist/actions/list-container-files.d.cts.map +1 -1
- package/dist/actions/list-container-files.d.mts +3 -6
- package/dist/actions/list-container-files.d.mts.map +1 -1
- package/dist/actions/list-container-files.mjs +1 -0
- package/dist/actions/list-container-files.mjs.map +1 -1
- package/dist/actions/list-containers.cjs +1 -0
- package/dist/actions/list-containers.cjs.map +1 -1
- package/dist/actions/list-containers.d.cts +3 -6
- package/dist/actions/list-containers.d.cts.map +1 -1
- package/dist/actions/list-containers.d.mts +3 -6
- package/dist/actions/list-containers.d.mts.map +1 -1
- package/dist/actions/list-containers.mjs +1 -0
- package/dist/actions/list-containers.mjs.map +1 -1
- package/dist/actions/list-conversation-items.cjs +1 -0
- package/dist/actions/list-conversation-items.cjs.map +1 -1
- package/dist/actions/list-conversation-items.d.cts +3 -7
- package/dist/actions/list-conversation-items.d.cts.map +1 -1
- package/dist/actions/list-conversation-items.d.mts +3 -7
- package/dist/actions/list-conversation-items.d.mts.map +1 -1
- package/dist/actions/list-conversation-items.mjs +1 -0
- package/dist/actions/list-conversation-items.mjs.map +1 -1
- package/dist/actions/list-engines.cjs +1 -0
- package/dist/actions/list-engines.cjs.map +1 -1
- package/dist/actions/list-engines.d.cts +3 -1
- package/dist/actions/list-engines.d.cts.map +1 -1
- package/dist/actions/list-engines.d.mts +3 -1
- package/dist/actions/list-engines.d.mts.map +1 -1
- package/dist/actions/list-engines.mjs +1 -0
- package/dist/actions/list-engines.mjs.map +1 -1
- package/dist/actions/list-evals.cjs +1 -0
- package/dist/actions/list-evals.cjs.map +1 -1
- package/dist/actions/list-evals.d.cts +3 -6
- package/dist/actions/list-evals.d.cts.map +1 -1
- package/dist/actions/list-evals.d.mts +3 -6
- package/dist/actions/list-evals.d.mts.map +1 -1
- package/dist/actions/list-evals.mjs +1 -0
- package/dist/actions/list-evals.mjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.cjs +1 -0
- package/dist/actions/list-files-in-vector-store-batch.cjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.cts +3 -9
- package/dist/actions/list-files-in-vector-store-batch.d.cts.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.mts +3 -9
- package/dist/actions/list-files-in-vector-store-batch.d.mts.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.mjs +1 -0
- package/dist/actions/list-files-in-vector-store-batch.mjs.map +1 -1
- package/dist/actions/list-files.cjs +1 -0
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +3 -5
- package/dist/actions/list-files.d.cts.map +1 -1
- package/dist/actions/list-files.d.mts +3 -5
- package/dist/actions/list-files.d.mts.map +1 -1
- package/dist/actions/list-files.mjs +1 -0
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-fine-tunes.cjs +1 -0
- package/dist/actions/list-fine-tunes.cjs.map +1 -1
- package/dist/actions/list-fine-tunes.d.cts +3 -4
- package/dist/actions/list-fine-tunes.d.cts.map +1 -1
- package/dist/actions/list-fine-tunes.d.mts +3 -4
- package/dist/actions/list-fine-tunes.d.mts.map +1 -1
- package/dist/actions/list-fine-tunes.mjs +1 -0
- package/dist/actions/list-fine-tunes.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.cjs +1 -0
- package/dist/actions/list-fine-tuning-events.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.cts +3 -5
- package/dist/actions/list-fine-tuning-events.d.cts.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.mts +3 -5
- package/dist/actions/list-fine-tuning-events.d.mts.map +1 -1
- package/dist/actions/list-fine-tuning-events.mjs +1 -0
- package/dist/actions/list-fine-tuning-events.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs +1 -0
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts +3 -5
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +3 -5
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs +1 -0
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs.map +1 -1
- package/dist/actions/list-input-items.cjs +1 -0
- package/dist/actions/list-input-items.cjs.map +1 -1
- package/dist/actions/list-input-items.d.cts +3 -7
- package/dist/actions/list-input-items.d.cts.map +1 -1
- package/dist/actions/list-input-items.d.mts +3 -7
- package/dist/actions/list-input-items.d.mts.map +1 -1
- package/dist/actions/list-input-items.mjs +1 -0
- package/dist/actions/list-input-items.mjs.map +1 -1
- package/dist/actions/list-messages.cjs +1 -0
- package/dist/actions/list-messages.cjs.map +1 -1
- package/dist/actions/list-messages.d.cts +3 -8
- package/dist/actions/list-messages.d.cts.map +1 -1
- package/dist/actions/list-messages.d.mts +3 -8
- package/dist/actions/list-messages.d.mts.map +1 -1
- package/dist/actions/list-messages.mjs +1 -0
- package/dist/actions/list-messages.mjs.map +1 -1
- package/dist/actions/list-models.cjs +1 -0
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -1
- package/dist/actions/list-models.d.cts.map +1 -1
- package/dist/actions/list-models.d.mts +3 -1
- package/dist/actions/list-models.d.mts.map +1 -1
- package/dist/actions/list-models.mjs +1 -0
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-run-steps.cjs +1 -0
- package/dist/actions/list-run-steps.cjs.map +1 -1
- package/dist/actions/list-run-steps.d.cts +3 -9
- package/dist/actions/list-run-steps.d.cts.map +1 -1
- package/dist/actions/list-run-steps.d.mts +3 -9
- package/dist/actions/list-run-steps.d.mts.map +1 -1
- package/dist/actions/list-run-steps.mjs +1 -0
- package/dist/actions/list-run-steps.mjs.map +1 -1
- package/dist/actions/list-runs.cjs +1 -0
- package/dist/actions/list-runs.cjs.map +1 -1
- package/dist/actions/list-runs.d.cts +3 -7
- package/dist/actions/list-runs.d.cts.map +1 -1
- package/dist/actions/list-runs.d.mts +3 -7
- package/dist/actions/list-runs.d.mts.map +1 -1
- package/dist/actions/list-runs.mjs +1 -0
- package/dist/actions/list-runs.mjs.map +1 -1
- package/dist/actions/list-skills.cjs +1 -0
- package/dist/actions/list-skills.cjs.map +1 -1
- package/dist/actions/list-skills.d.cts +3 -5
- package/dist/actions/list-skills.d.cts.map +1 -1
- package/dist/actions/list-skills.d.mts +3 -5
- package/dist/actions/list-skills.d.mts.map +1 -1
- package/dist/actions/list-skills.mjs +1 -0
- package/dist/actions/list-skills.mjs.map +1 -1
- package/dist/actions/list-threads.cjs +1 -0
- package/dist/actions/list-threads.cjs.map +1 -1
- package/dist/actions/list-threads.d.cts +3 -7
- package/dist/actions/list-threads.d.cts.map +1 -1
- package/dist/actions/list-threads.d.mts +3 -7
- package/dist/actions/list-threads.d.mts.map +1 -1
- package/dist/actions/list-threads.mjs +1 -0
- package/dist/actions/list-threads.mjs.map +1 -1
- package/dist/actions/list-vector-store-files.cjs +1 -0
- package/dist/actions/list-vector-store-files.cjs.map +1 -1
- package/dist/actions/list-vector-store-files.d.cts +3 -8
- package/dist/actions/list-vector-store-files.d.cts.map +1 -1
- package/dist/actions/list-vector-store-files.d.mts +3 -8
- package/dist/actions/list-vector-store-files.d.mts.map +1 -1
- package/dist/actions/list-vector-store-files.mjs +1 -0
- package/dist/actions/list-vector-store-files.mjs.map +1 -1
- package/dist/actions/list-vector-stores.cjs +1 -0
- package/dist/actions/list-vector-stores.cjs.map +1 -1
- package/dist/actions/list-vector-stores.d.cts +3 -6
- package/dist/actions/list-vector-stores.d.cts.map +1 -1
- package/dist/actions/list-vector-stores.d.mts +3 -6
- package/dist/actions/list-vector-stores.d.mts.map +1 -1
- package/dist/actions/list-vector-stores.mjs +1 -0
- package/dist/actions/list-vector-stores.mjs.map +1 -1
- package/dist/actions/list-videos.cjs +1 -0
- package/dist/actions/list-videos.cjs.map +1 -1
- package/dist/actions/list-videos.d.cts +3 -5
- package/dist/actions/list-videos.d.cts.map +1 -1
- package/dist/actions/list-videos.d.mts +3 -5
- package/dist/actions/list-videos.d.mts.map +1 -1
- package/dist/actions/list-videos.mjs +1 -0
- package/dist/actions/list-videos.mjs.map +1 -1
- package/dist/actions/modify-assistant.cjs +1 -0
- package/dist/actions/modify-assistant.cjs.map +1 -1
- package/dist/actions/modify-assistant.d.cts +3 -20
- package/dist/actions/modify-assistant.d.cts.map +1 -1
- package/dist/actions/modify-assistant.d.mts +3 -20
- package/dist/actions/modify-assistant.d.mts.map +1 -1
- package/dist/actions/modify-assistant.mjs +1 -0
- package/dist/actions/modify-assistant.mjs.map +1 -1
- package/dist/actions/modify-message.cjs +1 -0
- package/dist/actions/modify-message.cjs.map +1 -1
- package/dist/actions/modify-message.d.cts +3 -5
- package/dist/actions/modify-message.d.cts.map +1 -1
- package/dist/actions/modify-message.d.mts +3 -5
- package/dist/actions/modify-message.d.mts.map +1 -1
- package/dist/actions/modify-message.mjs +1 -0
- package/dist/actions/modify-message.mjs.map +1 -1
- package/dist/actions/modify-run.cjs +1 -0
- package/dist/actions/modify-run.cjs.map +1 -1
- package/dist/actions/modify-run.d.cts +3 -5
- package/dist/actions/modify-run.d.cts.map +1 -1
- package/dist/actions/modify-run.d.mts +3 -5
- package/dist/actions/modify-run.d.mts.map +1 -1
- package/dist/actions/modify-run.mjs +1 -0
- package/dist/actions/modify-run.mjs.map +1 -1
- package/dist/actions/modify-thread.cjs +1 -0
- package/dist/actions/modify-thread.cjs.map +1 -1
- package/dist/actions/modify-thread.d.cts +3 -4
- package/dist/actions/modify-thread.d.cts.map +1 -1
- package/dist/actions/modify-thread.d.mts +3 -4
- package/dist/actions/modify-thread.d.mts.map +1 -1
- package/dist/actions/modify-thread.mjs +1 -0
- package/dist/actions/modify-thread.mjs.map +1 -1
- package/dist/actions/modify-vector-store.cjs +1 -0
- package/dist/actions/modify-vector-store.cjs.map +1 -1
- package/dist/actions/modify-vector-store.d.cts +3 -9
- package/dist/actions/modify-vector-store.d.cts.map +1 -1
- package/dist/actions/modify-vector-store.d.mts +3 -9
- package/dist/actions/modify-vector-store.d.mts.map +1 -1
- package/dist/actions/modify-vector-store.mjs +1 -0
- package/dist/actions/modify-vector-store.mjs.map +1 -1
- package/dist/actions/retrieve-assistant.cjs +1 -0
- package/dist/actions/retrieve-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-assistant.d.cts +3 -3
- package/dist/actions/retrieve-assistant.d.cts.map +1 -1
- package/dist/actions/retrieve-assistant.d.mts +3 -3
- package/dist/actions/retrieve-assistant.d.mts.map +1 -1
- package/dist/actions/retrieve-assistant.mjs +1 -0
- package/dist/actions/retrieve-assistant.mjs.map +1 -1
- package/dist/actions/retrieve-batch.cjs +1 -0
- package/dist/actions/retrieve-batch.cjs.map +1 -1
- package/dist/actions/retrieve-batch.d.cts +3 -3
- package/dist/actions/retrieve-batch.d.cts.map +1 -1
- package/dist/actions/retrieve-batch.d.mts +3 -3
- package/dist/actions/retrieve-batch.d.mts.map +1 -1
- package/dist/actions/retrieve-batch.mjs +1 -0
- package/dist/actions/retrieve-batch.mjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.cjs +1 -0
- package/dist/actions/retrieve-container-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.cts +3 -4
- package/dist/actions/retrieve-container-file-content.d.cts.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.mts +3 -4
- package/dist/actions/retrieve-container-file-content.d.mts.map +1 -1
- package/dist/actions/retrieve-container-file-content.mjs +1 -0
- package/dist/actions/retrieve-container-file-content.mjs.map +1 -1
- package/dist/actions/retrieve-container-file.cjs +1 -0
- package/dist/actions/retrieve-container-file.cjs.map +1 -1
- package/dist/actions/retrieve-container-file.d.cts +3 -4
- package/dist/actions/retrieve-container-file.d.cts.map +1 -1
- package/dist/actions/retrieve-container-file.d.mts +3 -4
- package/dist/actions/retrieve-container-file.d.mts.map +1 -1
- package/dist/actions/retrieve-container-file.mjs +1 -0
- package/dist/actions/retrieve-container-file.mjs.map +1 -1
- package/dist/actions/retrieve-container.cjs +1 -0
- package/dist/actions/retrieve-container.cjs.map +1 -1
- package/dist/actions/retrieve-container.d.cts +3 -3
- package/dist/actions/retrieve-container.d.cts.map +1 -1
- package/dist/actions/retrieve-container.d.mts +3 -3
- package/dist/actions/retrieve-container.d.mts.map +1 -1
- package/dist/actions/retrieve-container.mjs +1 -0
- package/dist/actions/retrieve-container.mjs.map +1 -1
- package/dist/actions/retrieve-engine.cjs +1 -0
- package/dist/actions/retrieve-engine.cjs.map +1 -1
- package/dist/actions/retrieve-engine.d.cts +3 -3
- package/dist/actions/retrieve-engine.d.cts.map +1 -1
- package/dist/actions/retrieve-engine.d.mts +3 -3
- package/dist/actions/retrieve-engine.d.mts.map +1 -1
- package/dist/actions/retrieve-engine.mjs +1 -0
- package/dist/actions/retrieve-engine.mjs.map +1 -1
- package/dist/actions/retrieve-file.cjs +1 -0
- package/dist/actions/retrieve-file.cjs.map +1 -1
- package/dist/actions/retrieve-file.d.cts +3 -3
- package/dist/actions/retrieve-file.d.cts.map +1 -1
- package/dist/actions/retrieve-file.d.mts +3 -3
- package/dist/actions/retrieve-file.d.mts.map +1 -1
- package/dist/actions/retrieve-file.mjs +1 -0
- package/dist/actions/retrieve-file.mjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.cjs +1 -0
- package/dist/actions/retrieve-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.cts +3 -3
- package/dist/actions/retrieve-fine-tuning-job.d.cts.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.mts +3 -3
- package/dist/actions/retrieve-fine-tuning-job.d.mts.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.mjs +1 -0
- package/dist/actions/retrieve-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/retrieve-model.cjs +1 -0
- package/dist/actions/retrieve-model.cjs.map +1 -1
- package/dist/actions/retrieve-model.d.cts +3 -3
- package/dist/actions/retrieve-model.d.cts.map +1 -1
- package/dist/actions/retrieve-model.d.mts +3 -3
- package/dist/actions/retrieve-model.d.mts.map +1 -1
- package/dist/actions/retrieve-model.mjs +1 -0
- package/dist/actions/retrieve-model.mjs.map +1 -1
- package/dist/actions/retrieve-run.cjs +1 -0
- package/dist/actions/retrieve-run.cjs.map +1 -1
- package/dist/actions/retrieve-run.d.cts +3 -4
- package/dist/actions/retrieve-run.d.cts.map +1 -1
- package/dist/actions/retrieve-run.d.mts +3 -4
- package/dist/actions/retrieve-run.d.mts.map +1 -1
- package/dist/actions/retrieve-run.mjs +1 -0
- package/dist/actions/retrieve-run.mjs.map +1 -1
- package/dist/actions/retrieve-thread.cjs +1 -0
- package/dist/actions/retrieve-thread.cjs.map +1 -1
- package/dist/actions/retrieve-thread.d.cts +3 -3
- package/dist/actions/retrieve-thread.d.cts.map +1 -1
- package/dist/actions/retrieve-thread.d.mts +3 -3
- package/dist/actions/retrieve-thread.d.mts.map +1 -1
- package/dist/actions/retrieve-thread.mjs +1 -0
- package/dist/actions/retrieve-thread.mjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.cjs +1 -0
- package/dist/actions/retrieve-vector-store-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.cts +3 -4
- package/dist/actions/retrieve-vector-store-file-content.d.cts.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.mts +3 -4
- package/dist/actions/retrieve-vector-store-file-content.d.mts.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.mjs +1 -0
- package/dist/actions/retrieve-vector-store-file-content.mjs.map +1 -1
- package/dist/actions/run-grader.cjs +1 -0
- package/dist/actions/run-grader.cjs.map +1 -1
- package/dist/actions/run-grader.d.cts +3 -39
- package/dist/actions/run-grader.d.cts.map +1 -1
- package/dist/actions/run-grader.d.mts +3 -39
- package/dist/actions/run-grader.d.mts.map +1 -1
- package/dist/actions/run-grader.mjs +1 -0
- package/dist/actions/run-grader.mjs.map +1 -1
- package/dist/actions/search-vector-store.cjs +1 -0
- package/dist/actions/search-vector-store.cjs.map +1 -1
- package/dist/actions/search-vector-store.d.cts +3 -11
- package/dist/actions/search-vector-store.d.cts.map +1 -1
- package/dist/actions/search-vector-store.d.mts +3 -11
- package/dist/actions/search-vector-store.d.mts.map +1 -1
- package/dist/actions/search-vector-store.mjs +1 -0
- package/dist/actions/search-vector-store.mjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.cjs +1 -0
- package/dist/actions/submit-tool-outputs-to-run.cjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.cts +3 -10
- package/dist/actions/submit-tool-outputs-to-run.d.cts.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.mts +3 -10
- package/dist/actions/submit-tool-outputs-to-run.d.mts.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.mjs +1 -0
- package/dist/actions/submit-tool-outputs-to-run.mjs.map +1 -1
- package/dist/actions/update-chat-completion.cjs +1 -0
- package/dist/actions/update-chat-completion.cjs.map +1 -1
- package/dist/actions/update-chat-completion.d.cts +3 -4
- package/dist/actions/update-chat-completion.d.cts.map +1 -1
- package/dist/actions/update-chat-completion.d.mts +3 -4
- package/dist/actions/update-chat-completion.d.mts.map +1 -1
- package/dist/actions/update-chat-completion.mjs +1 -0
- package/dist/actions/update-chat-completion.mjs.map +1 -1
- package/dist/actions/update-conversation.cjs +1 -0
- package/dist/actions/update-conversation.cjs.map +1 -1
- package/dist/actions/update-conversation.d.cts +3 -4
- package/dist/actions/update-conversation.d.cts.map +1 -1
- package/dist/actions/update-conversation.d.mts +3 -4
- package/dist/actions/update-conversation.d.mts.map +1 -1
- package/dist/actions/update-conversation.mjs +1 -0
- package/dist/actions/update-conversation.mjs.map +1 -1
- package/dist/actions/update-eval.cjs +1 -0
- package/dist/actions/update-eval.cjs.map +1 -1
- package/dist/actions/update-eval.d.cts +3 -5
- package/dist/actions/update-eval.d.cts.map +1 -1
- package/dist/actions/update-eval.d.mts +3 -5
- package/dist/actions/update-eval.d.mts.map +1 -1
- package/dist/actions/update-eval.mjs +1 -0
- package/dist/actions/update-eval.mjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.cjs +1 -0
- package/dist/actions/update-vector-store-file-attributes.cjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.cts +3 -5
- package/dist/actions/update-vector-store-file-attributes.d.cts.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.mts +3 -5
- package/dist/actions/update-vector-store-file-attributes.d.mts.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.mjs +1 -0
- package/dist/actions/update-vector-store-file-attributes.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -0
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +3 -4
- package/dist/actions/upload-file.d.cts.map +1 -1
- package/dist/actions/upload-file.d.mts +3 -4
- package/dist/actions/upload-file.d.mts.map +1 -1
- package/dist/actions/upload-file.mjs +1 -0
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/validate-grader.cjs +1 -0
- package/dist/actions/validate-grader.cjs.map +1 -1
- package/dist/actions/validate-grader.d.cts +3 -37
- package/dist/actions/validate-grader.d.cts.map +1 -1
- package/dist/actions/validate-grader.d.mts +3 -37
- package/dist/actions/validate-grader.d.mts.map +1 -1
- package/dist/actions/validate-grader.mjs +1 -0
- package/dist/actions/validate-grader.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-response.mjs","names":[],"sources":["../../src/actions/cancel-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCancelResponseInput = z.object({\n response_id: z.string().describe(\"The ID of the response to cancel. Only responses created with the 'background' parameter set to true can be cancelled.\"),\n}).describe(\"Request parameters for canceling a background response.\");\nconst OpenaiCancelResponse_TextFormatInfoSchema = z.object({\n type: z.string().describe(\"Format type, e.g., 'text'\").nullable().optional(),\n}).passthrough().describe(\"Text format configuration.\");\nconst OpenaiCancelResponse_TextInfoSchema = z.object({\n format: OpenaiCancelResponse_TextFormatInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Text configuration for the response.\");\nconst OpenaiCancelResponse_ResponseErrorSchema = z.object({\n code: z.string().describe(\"Error code\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable().optional(),\n}).passthrough().describe(\"Error information for a response.\");\nconst OpenaiCancelResponse_InputTokensDetailsSchema = z.object({\n cached_tokens: z.number().int().describe(\"Number of cached tokens in input\").nullable().optional(),\n}).passthrough().describe(\"Detailed breakdown of input tokens.\");\nconst OpenaiCancelResponse_OutputTokensDetailsSchema = z.object({\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens in output\").nullable().optional(),\n}).passthrough().describe(\"Detailed breakdown of output tokens.\");\nconst OpenaiCancelResponse_ResponseUsageSchema = 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 (input + output)\").nullable().optional(),\n output_tokens: z.number().int().describe(\"Number of output tokens generated\").nullable().optional(),\n input_tokens_details: OpenaiCancelResponse_InputTokensDetailsSchema.nullable().optional(),\n output_tokens_details: OpenaiCancelResponse_OutputTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Token usage information for the response.\");\nconst OpenaiCancelResponse_OutputContentItemSchema = z.object({\n text: z.string().describe(\"Text content if applicable\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable().optional(),\n annotations: z.array(z.unknown()).describe(\"Content annotations\").nullable().optional(),\n}).passthrough().describe(\"Individual content item within output.\");\nconst OpenaiCancelResponse_ResponseOutputSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items\").nullable().optional(),\n type: z.string().describe(\"Type of output, e.g., 'message'\").nullable().optional(),\n status: z.string().describe(\"Status of the output item\").nullable().optional(),\n content: z.array(OpenaiCancelResponse_OutputContentItemSchema).describe(\"Array of content objects\").nullable().optional(),\n}).passthrough().describe(\"Output item from the response.\");\nconst OpenaiCancelResponse_ReasoningInfoSchema = z.object({\n effort: z.string().describe(\"Reasoning effort level\").nullable().optional(),\n summary: z.string().describe(\"Reasoning summary\").nullable().optional(),\n}).passthrough().describe(\"Reasoning information for the response.\");\nconst OpenaiCancelResponse_ResponseIncompleteDetailsSchema = z.object({\n reason: z.string().describe(\"Reason for incompleteness\").nullable().optional(),\n}).passthrough().describe(\"Details about why a response is incomplete.\");\nexport const OpenaiCancelResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n text: OpenaiCancelResponse_TextInfoSchema.nullable().optional(),\n user: z.string().describe(\"User identifier\").nullable().optional(),\n error: OpenaiCancelResponse_ResponseErrorSchema.nullable().optional(),\n model: z.string().describe(\"Model used for generating the response\").nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"Tools available to the model\").nullable().optional(),\n top_p: z.number().describe(\"Top-p sampling setting used\").nullable().optional(),\n usage: OpenaiCancelResponse_ResponseUsageSchema.nullable().optional(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCancelResponse_ResponseOutputSchema).describe(\"Array of output items from the model\").nullable().optional(),\n prompt: z.string().describe(\"Prompt used\").nullable().optional(),\n status: z.string().describe(\"Status of the response, e.g., 'completed', 'cancelled', 'in_progress'\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the response\").nullable().optional(),\n reasoning: OpenaiCancelResponse_ReasoningInfoSchema.nullable().optional(),\n background: z.boolean().describe(\"Whether response was created as background task\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n truncation: z.string().describe(\"Truncation setting\").nullable().optional(),\n output_text: z.string().describe(\"Aggregated text output\").nullable().optional(),\n temperature: z.number().describe(\"Temperature setting used\").nullable().optional(),\n tool_choice: z.string().describe(\"Tool choice setting used\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when the response was completed\").nullable().optional(),\n conversation: z.string().describe(\"Conversation ID if applicable\").nullable().optional(),\n instructions: z.string().describe(\"Instructions for the model\").nullable().optional(),\n service_tier: z.string().describe(\"Service tier used\").nullable().optional(),\n top_logprobs: z.number().int().describe(\"Top log probabilities\").nullable().optional(),\n max_tool_calls: z.number().int().describe(\"Maximum tool calls limit\").nullable().optional(),\n prompt_cache_key: z.string().describe(\"Prompt cache key\").nullable().optional(),\n max_output_tokens: z.number().int().describe(\"Maximum output tokens limit\").nullable().optional(),\n safety_identifier: z.string().describe(\"Safety identifier\").nullable().optional(),\n incomplete_details: OpenaiCancelResponse_ResponseIncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether parallel tool calls were enabled\").nullable().optional(),\n previous_response_id: z.string().describe(\"Previous response ID if continuing conversation\").nullable().optional(),\n prompt_cache_retention: z.unknown().describe(\"Prompt cache retention setting\").nullable().optional(),\n}).passthrough().describe(\"Response schema for canceling a background response.\");\n\nexport const openaiCancelResponse = action(\"OPENAI_CANCEL_RESPONSE\", {\n slug: \"openai-cancel-response\",\n name: \"Cancel Response\",\n description: \"Tool to cancel a background model response by its ID. Use when you need to stop a response that was created with the 'background' parameter set to true. Only background responses can be cancelled; attempting to cancel a non-background response will fail.\",\n input: OpenaiCancelResponseInput,\n output: OpenaiCancelResponseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EAC3J,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,sCAAsC,EAAE,OAAO,EACnD,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,2CAA2C,EA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,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,oBAAoB,qDAAqD,SAAS,CAAC,CAAC,SAAS;EAC7F,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"cancel-response.mjs","names":[],"sources":["../../src/actions/cancel-response.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCancelResponseInput = z.object({\n response_id: z.string().describe(\"The ID of the response to cancel. Only responses created with the 'background' parameter set to true can be cancelled.\"),\n}).describe(\"Request parameters for canceling a background response.\");\nconst OpenaiCancelResponse_TextFormatInfoSchema = z.object({\n type: z.string().describe(\"Format type, e.g., 'text'\").nullable().optional(),\n}).passthrough().describe(\"Text format configuration.\");\nconst OpenaiCancelResponse_TextInfoSchema = z.object({\n format: OpenaiCancelResponse_TextFormatInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Text configuration for the response.\");\nconst OpenaiCancelResponse_ResponseErrorSchema = z.object({\n code: z.string().describe(\"Error code\").nullable().optional(),\n message: z.string().describe(\"Error message\").nullable().optional(),\n}).passthrough().describe(\"Error information for a response.\");\nconst OpenaiCancelResponse_InputTokensDetailsSchema = z.object({\n cached_tokens: z.number().int().describe(\"Number of cached tokens in input\").nullable().optional(),\n}).passthrough().describe(\"Detailed breakdown of input tokens.\");\nconst OpenaiCancelResponse_OutputTokensDetailsSchema = z.object({\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens in output\").nullable().optional(),\n}).passthrough().describe(\"Detailed breakdown of output tokens.\");\nconst OpenaiCancelResponse_ResponseUsageSchema = 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 (input + output)\").nullable().optional(),\n output_tokens: z.number().int().describe(\"Number of output tokens generated\").nullable().optional(),\n input_tokens_details: OpenaiCancelResponse_InputTokensDetailsSchema.nullable().optional(),\n output_tokens_details: OpenaiCancelResponse_OutputTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Token usage information for the response.\");\nconst OpenaiCancelResponse_OutputContentItemSchema = z.object({\n text: z.string().describe(\"Text content if applicable\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable().optional(),\n annotations: z.array(z.unknown()).describe(\"Content annotations\").nullable().optional(),\n}).passthrough().describe(\"Individual content item within output.\");\nconst OpenaiCancelResponse_ResponseOutputSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items\").nullable().optional(),\n type: z.string().describe(\"Type of output, e.g., 'message'\").nullable().optional(),\n status: z.string().describe(\"Status of the output item\").nullable().optional(),\n content: z.array(OpenaiCancelResponse_OutputContentItemSchema).describe(\"Array of content objects\").nullable().optional(),\n}).passthrough().describe(\"Output item from the response.\");\nconst OpenaiCancelResponse_ReasoningInfoSchema = z.object({\n effort: z.string().describe(\"Reasoning effort level\").nullable().optional(),\n summary: z.string().describe(\"Reasoning summary\").nullable().optional(),\n}).passthrough().describe(\"Reasoning information for the response.\");\nconst OpenaiCancelResponse_ResponseIncompleteDetailsSchema = z.object({\n reason: z.string().describe(\"Reason for incompleteness\").nullable().optional(),\n}).passthrough().describe(\"Details about why a response is incomplete.\");\nexport const OpenaiCancelResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n text: OpenaiCancelResponse_TextInfoSchema.nullable().optional(),\n user: z.string().describe(\"User identifier\").nullable().optional(),\n error: OpenaiCancelResponse_ResponseErrorSchema.nullable().optional(),\n model: z.string().describe(\"Model used for generating the response\").nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"Tools available to the model\").nullable().optional(),\n top_p: z.number().describe(\"Top-p sampling setting used\").nullable().optional(),\n usage: OpenaiCancelResponse_ResponseUsageSchema.nullable().optional(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCancelResponse_ResponseOutputSchema).describe(\"Array of output items from the model\").nullable().optional(),\n prompt: z.string().describe(\"Prompt used\").nullable().optional(),\n status: z.string().describe(\"Status of the response, e.g., 'completed', 'cancelled', 'in_progress'\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata attached to the response\").nullable().optional(),\n reasoning: OpenaiCancelResponse_ReasoningInfoSchema.nullable().optional(),\n background: z.boolean().describe(\"Whether response was created as background task\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n truncation: z.string().describe(\"Truncation setting\").nullable().optional(),\n output_text: z.string().describe(\"Aggregated text output\").nullable().optional(),\n temperature: z.number().describe(\"Temperature setting used\").nullable().optional(),\n tool_choice: z.string().describe(\"Tool choice setting used\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp when the response was completed\").nullable().optional(),\n conversation: z.string().describe(\"Conversation ID if applicable\").nullable().optional(),\n instructions: z.string().describe(\"Instructions for the model\").nullable().optional(),\n service_tier: z.string().describe(\"Service tier used\").nullable().optional(),\n top_logprobs: z.number().int().describe(\"Top log probabilities\").nullable().optional(),\n max_tool_calls: z.number().int().describe(\"Maximum tool calls limit\").nullable().optional(),\n prompt_cache_key: z.string().describe(\"Prompt cache key\").nullable().optional(),\n max_output_tokens: z.number().int().describe(\"Maximum output tokens limit\").nullable().optional(),\n safety_identifier: z.string().describe(\"Safety identifier\").nullable().optional(),\n incomplete_details: OpenaiCancelResponse_ResponseIncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether parallel tool calls were enabled\").nullable().optional(),\n previous_response_id: z.string().describe(\"Previous response ID if continuing conversation\").nullable().optional(),\n prompt_cache_retention: z.unknown().describe(\"Prompt cache retention setting\").nullable().optional(),\n}).passthrough().describe(\"Response schema for canceling a background response.\");\n\nexport const openaiCancelResponse: AppAction<\n typeof OpenaiCancelResponseInput,\n typeof OpenaiCancelResponseOutput,\n typeof openai.credential\n> = action(\"OPENAI_CANCEL_RESPONSE\", {\n slug: \"openai-cancel-response\",\n name: \"Cancel Response\",\n description: \"Tool to cancel a background model response by its ID. Use when you need to stop a response that was created with the 'background' parameter set to true. Only background responses can be cancelled; attempting to cancel a non-background response will fail.\",\n input: OpenaiCancelResponseInput,\n output: OpenaiCancelResponseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,EAChD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,EAC3J,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,sCAAsC,EAAE,OAAO,EACnD,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC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AC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,oBAAoB,qDAAqD,SAAS,CAAC,CAAC,SAAS;EAC7F,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-run.cjs","names":["z","action"],"sources":["../../src/actions/cancel-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCancelRunInput = z.object({\n run_id: z.string().describe(\"ID of the run to cancel. The run must be in 'in_progress' status to be cancelled\"),\n thread_id: z.string().describe(\"ID of the thread to which this run belongs\"),\n}).describe(\"Request model for cancelling a run that is in progress.\");\nconst OpenaiCancelRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Token usage statistics for the run.\");\nconst OpenaiCancelRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information for a failed run.\");\nconst OpenaiCancelRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"Type of required action\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details for submitting tool outputs including tool_calls array\").nullable().optional(),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiCancelRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"Reason for incomplete status - indicates which token limit was reached\").nullable(),\n}).passthrough().describe(\"Details about why a run is incomplete.\");\nconst OpenaiCancelRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Controls how a thread will be truncated prior to the run.\");\nexport const OpenaiCancelRunOutput = z.object({\n id: z.string().describe(\"The identifier of the run\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\").nullable().optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter where model considers tokens with top_p probability mass\").nullable().optional(),\n usage: OpenaiCancelRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'thread.run'\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run after cancellation request\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on with this run\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiCancelRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used (0 to 2)\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiCancelRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"Maximum number of prompt tokens specified for this run\").nullable().optional(),\n incomplete_details: OpenaiCancelRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable().optional(),\n truncation_strategy: OpenaiCancelRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens specified for this run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a cancelled run.\");\n\nexport const openaiCancelRun = action(\"OPENAI_CANCEL_RUN\", {\n slug: \"openai-cancel-run\",\n name: \"Cancel Run\",\n description: \"Tool to cancel a run that is currently in progress. Use when you need to stop an assistant run that is taking too long or is no longer needed. The run's status will transition to 'cancelling' and then 'cancelled'.\",\n input: OpenaiCancelRunInput,\n output: OpenaiCancelRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC7E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACtE,eAAeA,IAAAA,EAAE,OAAO,CAA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A,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,oBAAoB,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAChF,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,qBAAqB,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAClF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"cancel-run.cjs","names":["z","action"],"sources":["../../src/actions/cancel-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCancelRunInput = z.object({\n run_id: z.string().describe(\"ID of the run to cancel. The run must be in 'in_progress' status to be cancelled\"),\n thread_id: z.string().describe(\"ID of the thread to which this run belongs\"),\n}).describe(\"Request model for cancelling a run that is in progress.\");\nconst OpenaiCancelRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Token usage statistics for the run.\");\nconst OpenaiCancelRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information for a failed run.\");\nconst OpenaiCancelRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"Type of required action\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details for submitting tool outputs including tool_calls array\").nullable().optional(),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiCancelRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"Reason for incomplete status - indicates which token limit was reached\").nullable(),\n}).passthrough().describe(\"Details about why a run is incomplete.\");\nconst OpenaiCancelRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Controls how a thread will be truncated prior to the run.\");\nexport const OpenaiCancelRunOutput = z.object({\n id: z.string().describe(\"The identifier of the run\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\").nullable().optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter where model considers tokens with top_p probability mass\").nullable().optional(),\n usage: OpenaiCancelRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'thread.run'\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run after cancellation request\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on with this run\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiCancelRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used (0 to 2)\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiCancelRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"Maximum number of prompt tokens specified for this run\").nullable().optional(),\n incomplete_details: OpenaiCancelRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable().optional(),\n truncation_strategy: OpenaiCancelRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens specified for this run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a cancelled run.\");\n\nexport const openaiCancelRun: AppAction<\n typeof OpenaiCancelRunInput,\n typeof OpenaiCancelRunOutput,\n typeof openai.credential\n> = action(\"OPENAI_CANCEL_RUN\", {\n slug: \"openai-cancel-run\",\n name: \"Cancel Run\",\n description: \"Tool to cancel a run that is currently in progress. Use when you need to stop an assistant run that is taking too long or is no longer needed. The run's status will transition to 'cancelling' and then 'cancelled'.\",\n input: OpenaiCancelRunInput,\n output: OpenaiCancelRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC9G,WAAWA,IAA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G,iBAAiB,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,oBAAoB,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAChF,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,qBAAqB,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAClF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/cancel-run.d.ts
|
|
@@ -66,10 +68,7 @@ declare const OpenaiCancelRunOutput: z.ZodObject<{
|
|
|
66
68
|
}, z.core.$loose>>>;
|
|
67
69
|
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
70
|
}, z.core.$loose>;
|
|
69
|
-
declare const openaiCancelRun:
|
|
70
|
-
run_id: string;
|
|
71
|
-
thread_id: string;
|
|
72
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
71
|
+
declare const openaiCancelRun: AppAction<typeof OpenaiCancelRunInput, typeof OpenaiCancelRunOutput, typeof openai.credential>;
|
|
73
72
|
//#endregion
|
|
74
73
|
export { openaiCancelRun };
|
|
75
74
|
//# sourceMappingURL=cancel-run.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-run.d.cts","names":[],"sources":["../../src/actions/cancel-run.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-run.d.cts","names":[],"sources":["../../src/actions/cancel-run.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAwBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/cancel-run.d.ts
|
|
@@ -66,10 +68,7 @@ declare const OpenaiCancelRunOutput: z.ZodObject<{
|
|
|
66
68
|
}, z.core.$loose>>>;
|
|
67
69
|
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
70
|
}, z.core.$loose>;
|
|
69
|
-
declare const openaiCancelRun:
|
|
70
|
-
run_id: string;
|
|
71
|
-
thread_id: string;
|
|
72
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
71
|
+
declare const openaiCancelRun: AppAction<typeof OpenaiCancelRunInput, typeof OpenaiCancelRunOutput, typeof openai.credential>;
|
|
73
72
|
//#endregion
|
|
74
73
|
export { openaiCancelRun };
|
|
75
74
|
//# sourceMappingURL=cancel-run.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-run.d.mts","names":[],"sources":["../../src/actions/cancel-run.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-run.d.mts","names":[],"sources":["../../src/actions/cancel-run.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAwBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-run.mjs","names":[],"sources":["../../src/actions/cancel-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCancelRunInput = z.object({\n run_id: z.string().describe(\"ID of the run to cancel. The run must be in 'in_progress' status to be cancelled\"),\n thread_id: z.string().describe(\"ID of the thread to which this run belongs\"),\n}).describe(\"Request model for cancelling a run that is in progress.\");\nconst OpenaiCancelRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Token usage statistics for the run.\");\nconst OpenaiCancelRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information for a failed run.\");\nconst OpenaiCancelRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"Type of required action\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details for submitting tool outputs including tool_calls array\").nullable().optional(),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiCancelRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"Reason for incomplete status - indicates which token limit was reached\").nullable(),\n}).passthrough().describe(\"Details about why a run is incomplete.\");\nconst OpenaiCancelRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Controls how a thread will be truncated prior to the run.\");\nexport const OpenaiCancelRunOutput = z.object({\n id: z.string().describe(\"The identifier of the run\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\").nullable().optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter where model considers tokens with top_p probability mass\").nullable().optional(),\n usage: OpenaiCancelRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'thread.run'\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run after cancellation request\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on with this run\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiCancelRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used (0 to 2)\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiCancelRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"Maximum number of prompt tokens specified for this run\").nullable().optional(),\n incomplete_details: OpenaiCancelRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable().optional(),\n truncation_strategy: OpenaiCancelRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens specified for this run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a cancelled run.\");\n\nexport const openaiCancelRun = action(\"OPENAI_CANCEL_RUN\", {\n slug: \"openai-cancel-run\",\n name: \"Cancel Run\",\n description: \"Tool to cancel a run that is currently in progress. Use when you need to stop an assistant run that is taking too long or is no longer needed. The run's status will transition to 'cancelling' and then 'cancelled'.\",\n input: OpenaiCancelRunInput,\n output: OpenaiCancelRunOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-run.mjs","names":[],"sources":["../../src/actions/cancel-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCancelRunInput = z.object({\n run_id: z.string().describe(\"ID of the run to cancel. The run must be in 'in_progress' status to be cancelled\"),\n thread_id: z.string().describe(\"ID of the thread to which this run belongs\"),\n}).describe(\"Request model for cancelling a run that is in progress.\");\nconst OpenaiCancelRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Token usage statistics for the run.\");\nconst OpenaiCancelRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"Human-readable error message\").nullable(),\n}).passthrough().describe(\"Error information for a failed run.\");\nconst OpenaiCancelRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"Type of required action\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details for submitting tool outputs including tool_calls array\").nullable().optional(),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiCancelRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"Reason for incomplete status - indicates which token limit was reached\").nullable(),\n}).passthrough().describe(\"Details about why a run is incomplete.\");\nconst OpenaiCancelRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Controls how a thread will be truncated prior to the run.\");\nexport const OpenaiCancelRunOutput = z.object({\n id: z.string().describe(\"The identifier of the run\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\").nullable().optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter where model considers tokens with top_p probability mass\").nullable().optional(),\n usage: OpenaiCancelRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, always 'thread.run'\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run after cancellation request\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on with this run\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiCancelRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used (0 to 2)\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiCancelRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"Maximum number of prompt tokens specified for this run\").nullable().optional(),\n incomplete_details: OpenaiCancelRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable().optional(),\n truncation_strategy: OpenaiCancelRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens specified for this run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a cancelled run.\");\n\nexport const openaiCancelRun: AppAction<\n typeof OpenaiCancelRunInput,\n typeof OpenaiCancelRunOutput,\n typeof openai.credential\n> = action(\"OPENAI_CANCEL_RUN\", {\n slug: \"openai-cancel-run\",\n name: \"Cancel Run\",\n description: \"Tool to cancel a run that is currently in progress. Use when you need to stop an assistant run that is taking too long or is no longer needed. The run's status will transition to 'cancelling' and then 'cancelled'.\",\n input: OpenaiCancelRunInput,\n output: OpenaiCancelRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAC9G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC7E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,8BAA8B,EAAE,OAAO;CAC3C,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACtE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClF,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,kCAAkC,EAAE,OAAO;CAC/C,MAAM,EAAE,KAAK;EAAC;EAAgB;EAAuB;CAAgB,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,qBAAqB,EAAE,OAAO,EAAE,OAAO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;EAC1H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,iBAAiB,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,oBAAoB,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAChF,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,qBAAqB,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAClF,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-upload.cjs","names":["z","action"],"sources":["../../src/actions/cancel-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCancelUploadInput = z.object({\n upload_id: z.string().describe(\"The ID of the Upload to cancel (path parameter)\"),\n}).describe(\"Request model for cancelling an upload.\");\nconst OpenaiCancelUpload_OpenAIFileSchema = z.object({\n id: z.string().describe(\"The file identifier\").nullable(),\n bytes: z.number().int().describe(\"The size of the file in bytes\").nullable(),\n object: z.string().describe(\"The object type, always 'file'\").nullable(),\n status: z.string().describe(\"The status of the file\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file\").nullable(),\n filename: z.string().describe(\"The name of the file\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file will expire\").nullable().optional(),\n status_details: z.string().describe(\"Additional details about the file status\").nullable().optional(),\n}).passthrough().describe(\"OpenAI File object.\");\nexport const OpenaiCancelUploadOutput = z.object({\n id: z.string().describe(\"The Upload unique identifier, which can be referenced in API endpoints\").nullable(),\n file: OpenaiCancelUpload_OpenAIFileSchema.nullable().optional(),\n bytes: z.number().int().describe(\"The intended number of bytes to be uploaded\").nullable(),\n object: z.string().describe(\"The object type, which is always 'upload'\").nullable(),\n status: z.enum([\"pending\", \"completed\", \"cancelled\", \"expired\"]).describe(\"The status of the Upload\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file. Please refer to the OpenAI documentation for acceptable values\").nullable(),\n filename: z.string().describe(\"The name of the file to be uploaded\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload will expire\").nullable(),\n}).passthrough().describe(\"Response schema for a cancelled upload.\");\n\nexport const openaiCancelUpload = action(\"OPENAI_CANCEL_UPLOAD\", {\n slug: \"openai-cancel-upload\",\n name: \"Cancel upload\",\n description: \"Tool to cancel an upload. Use when you need to stop an upload that is in progress. No parts may be added after cancellation.\",\n input: OpenaiCancelUploadInput,\n output: OpenaiCancelUploadOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-upload.cjs","names":["z","action"],"sources":["../../src/actions/cancel-upload.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCancelUploadInput = z.object({\n upload_id: z.string().describe(\"The ID of the Upload to cancel (path parameter)\"),\n}).describe(\"Request model for cancelling an upload.\");\nconst OpenaiCancelUpload_OpenAIFileSchema = z.object({\n id: z.string().describe(\"The file identifier\").nullable(),\n bytes: z.number().int().describe(\"The size of the file in bytes\").nullable(),\n object: z.string().describe(\"The object type, always 'file'\").nullable(),\n status: z.string().describe(\"The status of the file\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file\").nullable(),\n filename: z.string().describe(\"The name of the file\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file will expire\").nullable().optional(),\n status_details: z.string().describe(\"Additional details about the file status\").nullable().optional(),\n}).passthrough().describe(\"OpenAI File object.\");\nexport const OpenaiCancelUploadOutput = z.object({\n id: z.string().describe(\"The Upload unique identifier, which can be referenced in API endpoints\").nullable(),\n file: OpenaiCancelUpload_OpenAIFileSchema.nullable().optional(),\n bytes: z.number().int().describe(\"The intended number of bytes to be uploaded\").nullable(),\n object: z.string().describe(\"The object type, which is always 'upload'\").nullable(),\n status: z.enum([\"pending\", \"completed\", \"cancelled\", \"expired\"]).describe(\"The status of the Upload\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file. Please refer to the OpenAI documentation for acceptable values\").nullable(),\n filename: z.string().describe(\"The name of the file to be uploaded\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload will expire\").nullable(),\n}).passthrough().describe(\"Response schema for a cancelled upload.\");\n\nexport const openaiCancelUpload: AppAction<\n typeof OpenaiCancelUploadInput,\n typeof OpenaiCancelUploadOutput,\n typeof openai.credential\n> = action(\"OPENAI_CANCEL_UPLOAD\", {\n slug: \"openai-cancel-upload\",\n name: \"Cancel upload\",\n description: \"Tool to cancel an upload. Use when you need to stop an upload that is in progress. No parts may be added after cancellation.\",\n input: OpenaiCancelUploadInput,\n output: OpenaiCancelUploadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C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AAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAa;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC1I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/cancel-upload.d.ts
|
|
@@ -30,9 +32,7 @@ declare const OpenaiCancelUploadOutput: z.ZodObject<{
|
|
|
30
32
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
31
33
|
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const openaiCancelUpload:
|
|
34
|
-
upload_id: string;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
|
+
declare const openaiCancelUpload: AppAction<typeof OpenaiCancelUploadInput, typeof OpenaiCancelUploadOutput, typeof openai.credential>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { openaiCancelUpload };
|
|
38
38
|
//# sourceMappingURL=cancel-upload.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-upload.d.cts","names":[],"sources":["../../src/actions/cancel-upload.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-upload.d.cts","names":[],"sources":["../../src/actions/cancel-upload.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAYxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/cancel-upload.d.ts
|
|
@@ -30,9 +32,7 @@ declare const OpenaiCancelUploadOutput: z.ZodObject<{
|
|
|
30
32
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
31
33
|
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
32
34
|
}, z.core.$loose>;
|
|
33
|
-
declare const openaiCancelUpload:
|
|
34
|
-
upload_id: string;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
35
|
+
declare const openaiCancelUpload: AppAction<typeof OpenaiCancelUploadInput, typeof OpenaiCancelUploadOutput, typeof openai.credential>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { openaiCancelUpload };
|
|
38
38
|
//# sourceMappingURL=cancel-upload.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-upload.d.mts","names":[],"sources":["../../src/actions/cancel-upload.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-upload.d.mts","names":[],"sources":["../../src/actions/cancel-upload.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAYxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-upload.mjs","names":[],"sources":["../../src/actions/cancel-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCancelUploadInput = z.object({\n upload_id: z.string().describe(\"The ID of the Upload to cancel (path parameter)\"),\n}).describe(\"Request model for cancelling an upload.\");\nconst OpenaiCancelUpload_OpenAIFileSchema = z.object({\n id: z.string().describe(\"The file identifier\").nullable(),\n bytes: z.number().int().describe(\"The size of the file in bytes\").nullable(),\n object: z.string().describe(\"The object type, always 'file'\").nullable(),\n status: z.string().describe(\"The status of the file\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file\").nullable(),\n filename: z.string().describe(\"The name of the file\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file will expire\").nullable().optional(),\n status_details: z.string().describe(\"Additional details about the file status\").nullable().optional(),\n}).passthrough().describe(\"OpenAI File object.\");\nexport const OpenaiCancelUploadOutput = z.object({\n id: z.string().describe(\"The Upload unique identifier, which can be referenced in API endpoints\").nullable(),\n file: OpenaiCancelUpload_OpenAIFileSchema.nullable().optional(),\n bytes: z.number().int().describe(\"The intended number of bytes to be uploaded\").nullable(),\n object: z.string().describe(\"The object type, which is always 'upload'\").nullable(),\n status: z.enum([\"pending\", \"completed\", \"cancelled\", \"expired\"]).describe(\"The status of the Upload\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file. Please refer to the OpenAI documentation for acceptable values\").nullable(),\n filename: z.string().describe(\"The name of the file to be uploaded\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload will expire\").nullable(),\n}).passthrough().describe(\"Response schema for a cancelled upload.\");\n\nexport const openaiCancelUpload = action(\"OPENAI_CANCEL_UPLOAD\", {\n slug: \"openai-cancel-upload\",\n name: \"Cancel upload\",\n description: \"Tool to cancel an upload. Use when you need to stop an upload that is in progress. No parts may be added after cancellation.\",\n input: OpenaiCancelUploadInput,\n output: OpenaiCancelUploadOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancel-upload.mjs","names":[],"sources":["../../src/actions/cancel-upload.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCancelUploadInput = z.object({\n upload_id: z.string().describe(\"The ID of the Upload to cancel (path parameter)\"),\n}).describe(\"Request model for cancelling an upload.\");\nconst OpenaiCancelUpload_OpenAIFileSchema = z.object({\n id: z.string().describe(\"The file identifier\").nullable(),\n bytes: z.number().int().describe(\"The size of the file in bytes\").nullable(),\n object: z.string().describe(\"The object type, always 'file'\").nullable(),\n status: z.string().describe(\"The status of the file\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file\").nullable(),\n filename: z.string().describe(\"The name of the file\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the file will expire\").nullable().optional(),\n status_details: z.string().describe(\"Additional details about the file status\").nullable().optional(),\n}).passthrough().describe(\"OpenAI File object.\");\nexport const OpenaiCancelUploadOutput = z.object({\n id: z.string().describe(\"The Upload unique identifier, which can be referenced in API endpoints\").nullable(),\n file: OpenaiCancelUpload_OpenAIFileSchema.nullable().optional(),\n bytes: z.number().int().describe(\"The intended number of bytes to be uploaded\").nullable(),\n object: z.string().describe(\"The object type, which is always 'upload'\").nullable(),\n status: z.enum([\"pending\", \"completed\", \"cancelled\", \"expired\"]).describe(\"The status of the Upload\").nullable(),\n purpose: z.string().describe(\"The intended purpose of the file. Please refer to the OpenAI documentation for acceptable values\").nullable(),\n filename: z.string().describe(\"The name of the file to be uploaded\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the Upload will expire\").nullable(),\n}).passthrough().describe(\"Response schema for a cancelled upload.\");\n\nexport const openaiCancelUpload: AppAction<\n typeof OpenaiCancelUploadInput,\n typeof OpenaiCancelUploadOutput,\n typeof openai.credential\n> = action(\"OPENAI_CANCEL_UPLOAD\", {\n slug: \"openai-cancel-upload\",\n name: \"Cancel upload\",\n description: \"Tool to cancel an upload. Use when you need to stop an upload that is in progress. No parts may be added after cancellation.\",\n input: OpenaiCancelUploadInput,\n output: OpenaiCancelUploadOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EAClF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,O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AiE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-response.cjs","names":["z","action"],"sources":["../../src/actions/compact-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCompactResponseInput = z.object({\n input: z.array(z.object({\n role: z.enum([\"user\", \"assistant\", \"system\"]).describe(\"Role of the message sender\"),\n type: z.string().describe(\"Type must be 'message'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).passthrough().describe(\"Text content for input messages.\")).describe(\"Array of content objects with text\"),\n}).passthrough().describe(\"Message in the input array for compaction.\")).describe(\"Array of message objects to compact. Each message should have role, content array with type and text, and type field. Either input or previous_response_id is required.\").optional(),\n model: z.string().describe(\"Model ID to use for compaction (e.g., 'gpt-4', 'gpt-5', 'o3-mini')\"),\n instructions: z.string().describe(\"Optional instructions for the compaction process\").optional(),\n previous_response_id: z.string().describe(\"ID of a previous response to compact. Either input or previous_response_id is required.\").optional(),\n}).describe(\"Request parameters for compacting a response to reduce token usage.\");\nconst OpenaiCompactResponse_InputTokensDetailsSchema = z.object({\n cached_tokens: z.number().int().describe(\"Number of tokens from cached content\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of input tokens.\");\nconst OpenaiCompactResponse_OutputTokensDetailsSchema = z.object({\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of output tokens.\");\nconst OpenaiCompactResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens\").nullable(),\n input_tokens_details: OpenaiCompactResponse_InputTokensDetailsSchema.nullable(),\n output_tokens_details: OpenaiCompactResponse_OutputTokensDetailsSchema.nullable(),\n}).passthrough().describe(\"Token usage information for the compaction.\");\nconst OpenaiCompactResponse_OutputMessageContentSchema = z.object({\n text: z.string().describe(\"Text content if available\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'input_text'\").nullable(),\n}).passthrough().describe(\"Content within an output message.\");\nconst OpenaiCompactResponse_OutputMessageSchema = z.object({\n role: z.string().describe(\"Role of the message, e.g., 'user'\").nullable(),\n type: z.string().describe(\"Type of output item, e.g., 'message'\").nullable(),\n content: z.array(OpenaiCompactResponse_OutputMessageContentSchema).describe(\"Array of content objects\"),\n}).passthrough().describe(\"Message item in the output array.\");\nconst OpenaiCompactResponse_CompactionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the compaction item\").nullable(),\n type: z.string().describe(\"Type must be 'compaction'\").nullable(),\n created_by: z.string().describe(\"Model that created this compaction\").nullable().optional(),\n encrypted_content: z.string().describe(\"Encrypted summary content from compaction\").nullable(),\n}).passthrough().describe(\"Compaction item in the output array.\");\nexport const OpenaiCompactResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the compacted response\").nullable(),\n usage: OpenaiCompactResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response.compaction'\").nullable(),\n output: z.array(z.union([OpenaiCompactResponse_OutputMessageSchema, OpenaiCompactResponse_CompactionItemSchema, z.record(z.string(), z.unknown())])).describe(\"The compacted list of output items\"),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the compacted conversation was created\").nullable(),\n}).passthrough().describe(\"Response schema for the compact response endpoint.\");\n\nexport const openaiCompactResponse = action(\"OPENAI_COMPACT_RESPONSE\", {\n slug: \"openai-compact-response\",\n name: \"Compact Response\",\n description: \"Tool to compact a conversation or response to reduce token usage. Use when you need to reduce the size of long conversations while preserving important context. Either provide an array of input messages or reference a previous response ID to compact.\",\n input: OpenaiCompactResponseInput,\n output: OpenaiCompactResponseOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compact-response.cjs","names":["z","action"],"sources":["../../src/actions/compact-response.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCompactResponseInput = z.object({\n input: z.array(z.object({\n role: z.enum([\"user\", \"assistant\", \"system\"]).describe(\"Role of the message sender\"),\n type: z.string().describe(\"Type must be 'message'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).passthrough().describe(\"Text content for input messages.\")).describe(\"Array of content objects with text\"),\n}).passthrough().describe(\"Message in the input array for compaction.\")).describe(\"Array of message objects to compact. Each message should have role, content array with type and text, and type field. Either input or previous_response_id is required.\").optional(),\n model: z.string().describe(\"Model ID to use for compaction (e.g., 'gpt-4', 'gpt-5', 'o3-mini')\"),\n instructions: z.string().describe(\"Optional instructions for the compaction process\").optional(),\n previous_response_id: z.string().describe(\"ID of a previous response to compact. Either input or previous_response_id is required.\").optional(),\n}).describe(\"Request parameters for compacting a response to reduce token usage.\");\nconst OpenaiCompactResponse_InputTokensDetailsSchema = z.object({\n cached_tokens: z.number().int().describe(\"Number of tokens from cached content\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of input tokens.\");\nconst OpenaiCompactResponse_OutputTokensDetailsSchema = z.object({\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of output tokens.\");\nconst OpenaiCompactResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens\").nullable(),\n input_tokens_details: OpenaiCompactResponse_InputTokensDetailsSchema.nullable(),\n output_tokens_details: OpenaiCompactResponse_OutputTokensDetailsSchema.nullable(),\n}).passthrough().describe(\"Token usage information for the compaction.\");\nconst OpenaiCompactResponse_OutputMessageContentSchema = z.object({\n text: z.string().describe(\"Text content if available\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'input_text'\").nullable(),\n}).passthrough().describe(\"Content within an output message.\");\nconst OpenaiCompactResponse_OutputMessageSchema = z.object({\n role: z.string().describe(\"Role of the message, e.g., 'user'\").nullable(),\n type: z.string().describe(\"Type of output item, e.g., 'message'\").nullable(),\n content: z.array(OpenaiCompactResponse_OutputMessageContentSchema).describe(\"Array of content objects\"),\n}).passthrough().describe(\"Message item in the output array.\");\nconst OpenaiCompactResponse_CompactionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the compaction item\").nullable(),\n type: z.string().describe(\"Type must be 'compaction'\").nullable(),\n created_by: z.string().describe(\"Model that created this compaction\").nullable().optional(),\n encrypted_content: z.string().describe(\"Encrypted summary content from compaction\").nullable(),\n}).passthrough().describe(\"Compaction item in the output array.\");\nexport const OpenaiCompactResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the compacted response\").nullable(),\n usage: OpenaiCompactResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response.compaction'\").nullable(),\n output: z.array(z.union([OpenaiCompactResponse_OutputMessageSchema, OpenaiCompactResponse_CompactionItemSchema, z.record(z.string(), z.unknown())])).describe(\"The compacted list of output items\"),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the compacted conversation was created\").nullable(),\n}).passthrough().describe(\"Response schema for the compact response endpoint.\");\n\nexport const openaiCompactResponse: AppAction<\n typeof OpenaiCompactResponseInput,\n typeof OpenaiCompactResponseOutput,\n typeof openai.credential\n> = action(\"OPENAI_COMPACT_RESPONSE\", {\n slug: \"openai-compact-response\",\n name: \"Compact Response\",\n description: \"Tool to compact a conversation or response to reduce token usage. Use when you need to reduce the size of long conversations while preserving important context. Either provide an array of input messages or reference a previous response ID to compact.\",\n input: OpenaiCompactResponseInput,\n output: OpenaiCompactResponseOutput,\n});\n"],"mappings":";;;;AAMA,M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,2BAA2B,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,OAAO,sCAAsC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAAC;EAA2C;EAA4CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAClM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/compact-response.d.ts
|
|
@@ -47,21 +49,7 @@ declare const OpenaiCompactResponseOutput: z.ZodObject<{
|
|
|
47
49
|
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
48
50
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
49
51
|
}, z.core.$loose>;
|
|
50
|
-
declare const openaiCompactResponse:
|
|
51
|
-
model: string;
|
|
52
|
-
input?: {
|
|
53
|
-
[x: string]: unknown;
|
|
54
|
-
role: "user" | "assistant" | "system";
|
|
55
|
-
type: string;
|
|
56
|
-
content: {
|
|
57
|
-
[x: string]: unknown;
|
|
58
|
-
text: string;
|
|
59
|
-
type: string;
|
|
60
|
-
}[];
|
|
61
|
-
}[] | undefined;
|
|
62
|
-
instructions?: string | undefined;
|
|
63
|
-
previous_response_id?: string | undefined;
|
|
64
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
52
|
+
declare const openaiCompactResponse: AppAction<typeof OpenaiCompactResponseInput, typeof OpenaiCompactResponseOutput, typeof openai.credential>;
|
|
65
53
|
//#endregion
|
|
66
54
|
export { openaiCompactResponse };
|
|
67
55
|
//# sourceMappingURL=compact-response.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-response.d.cts","names":[],"sources":["../../src/actions/compact-response.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compact-response.d.cts","names":[],"sources":["../../src/actions/compact-response.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAyC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/compact-response.d.ts
|
|
@@ -47,21 +49,7 @@ declare const OpenaiCompactResponseOutput: z.ZodObject<{
|
|
|
47
49
|
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
48
50
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
49
51
|
}, z.core.$loose>;
|
|
50
|
-
declare const openaiCompactResponse:
|
|
51
|
-
model: string;
|
|
52
|
-
input?: {
|
|
53
|
-
[x: string]: unknown;
|
|
54
|
-
role: "user" | "assistant" | "system";
|
|
55
|
-
type: string;
|
|
56
|
-
content: {
|
|
57
|
-
[x: string]: unknown;
|
|
58
|
-
text: string;
|
|
59
|
-
type: string;
|
|
60
|
-
}[];
|
|
61
|
-
}[] | undefined;
|
|
62
|
-
instructions?: string | undefined;
|
|
63
|
-
previous_response_id?: string | undefined;
|
|
64
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
52
|
+
declare const openaiCompactResponse: AppAction<typeof OpenaiCompactResponseInput, typeof OpenaiCompactResponseOutput, typeof openai.credential>;
|
|
65
53
|
//#endregion
|
|
66
54
|
export { openaiCompactResponse };
|
|
67
55
|
//# sourceMappingURL=compact-response.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-response.d.mts","names":[],"sources":["../../src/actions/compact-response.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compact-response.d.mts","names":[],"sources":["../../src/actions/compact-response.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAyC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-response.mjs","names":[],"sources":["../../src/actions/compact-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCompactResponseInput = z.object({\n input: z.array(z.object({\n role: z.enum([\"user\", \"assistant\", \"system\"]).describe(\"Role of the message sender\"),\n type: z.string().describe(\"Type must be 'message'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).passthrough().describe(\"Text content for input messages.\")).describe(\"Array of content objects with text\"),\n}).passthrough().describe(\"Message in the input array for compaction.\")).describe(\"Array of message objects to compact. Each message should have role, content array with type and text, and type field. Either input or previous_response_id is required.\").optional(),\n model: z.string().describe(\"Model ID to use for compaction (e.g., 'gpt-4', 'gpt-5', 'o3-mini')\"),\n instructions: z.string().describe(\"Optional instructions for the compaction process\").optional(),\n previous_response_id: z.string().describe(\"ID of a previous response to compact. Either input or previous_response_id is required.\").optional(),\n}).describe(\"Request parameters for compacting a response to reduce token usage.\");\nconst OpenaiCompactResponse_InputTokensDetailsSchema = z.object({\n cached_tokens: z.number().int().describe(\"Number of tokens from cached content\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of input tokens.\");\nconst OpenaiCompactResponse_OutputTokensDetailsSchema = z.object({\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of output tokens.\");\nconst OpenaiCompactResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens\").nullable(),\n input_tokens_details: OpenaiCompactResponse_InputTokensDetailsSchema.nullable(),\n output_tokens_details: OpenaiCompactResponse_OutputTokensDetailsSchema.nullable(),\n}).passthrough().describe(\"Token usage information for the compaction.\");\nconst OpenaiCompactResponse_OutputMessageContentSchema = z.object({\n text: z.string().describe(\"Text content if available\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'input_text'\").nullable(),\n}).passthrough().describe(\"Content within an output message.\");\nconst OpenaiCompactResponse_OutputMessageSchema = z.object({\n role: z.string().describe(\"Role of the message, e.g., 'user'\").nullable(),\n type: z.string().describe(\"Type of output item, e.g., 'message'\").nullable(),\n content: z.array(OpenaiCompactResponse_OutputMessageContentSchema).describe(\"Array of content objects\"),\n}).passthrough().describe(\"Message item in the output array.\");\nconst OpenaiCompactResponse_CompactionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the compaction item\").nullable(),\n type: z.string().describe(\"Type must be 'compaction'\").nullable(),\n created_by: z.string().describe(\"Model that created this compaction\").nullable().optional(),\n encrypted_content: z.string().describe(\"Encrypted summary content from compaction\").nullable(),\n}).passthrough().describe(\"Compaction item in the output array.\");\nexport const OpenaiCompactResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the compacted response\").nullable(),\n usage: OpenaiCompactResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response.compaction'\").nullable(),\n output: z.array(z.union([OpenaiCompactResponse_OutputMessageSchema, OpenaiCompactResponse_CompactionItemSchema, z.record(z.string(), z.unknown())])).describe(\"The compacted list of output items\"),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the compacted conversation was created\").nullable(),\n}).passthrough().describe(\"Response schema for the compact response endpoint.\");\n\nexport const openaiCompactResponse = action(\"OPENAI_COMPACT_RESPONSE\", {\n slug: \"openai-compact-response\",\n name: \"Compact Response\",\n description: \"Tool to compact a conversation or response to reduce token usage. Use when you need to reduce the size of long conversations while preserving important context. Either provide an array of input messages or reference a previous response ID to compact.\",\n input: OpenaiCompactResponseInput,\n output: OpenaiCompactResponseOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compact-response.mjs","names":[],"sources":["../../src/actions/compact-response.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCompactResponseInput = z.object({\n input: z.array(z.object({\n role: z.enum([\"user\", \"assistant\", \"system\"]).describe(\"Role of the message sender\"),\n type: z.string().describe(\"Type must be 'message'\"),\n content: z.array(z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).passthrough().describe(\"Text content for input messages.\")).describe(\"Array of content objects with text\"),\n}).passthrough().describe(\"Message in the input array for compaction.\")).describe(\"Array of message objects to compact. Each message should have role, content array with type and text, and type field. Either input or previous_response_id is required.\").optional(),\n model: z.string().describe(\"Model ID to use for compaction (e.g., 'gpt-4', 'gpt-5', 'o3-mini')\"),\n instructions: z.string().describe(\"Optional instructions for the compaction process\").optional(),\n previous_response_id: z.string().describe(\"ID of a previous response to compact. Either input or previous_response_id is required.\").optional(),\n}).describe(\"Request parameters for compacting a response to reduce token usage.\");\nconst OpenaiCompactResponse_InputTokensDetailsSchema = z.object({\n cached_tokens: z.number().int().describe(\"Number of tokens from cached content\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of input tokens.\");\nconst OpenaiCompactResponse_OutputTokensDetailsSchema = z.object({\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used\").nullable(),\n}).passthrough().describe(\"Detailed breakdown of output tokens.\");\nconst OpenaiCompactResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens\").nullable(),\n input_tokens_details: OpenaiCompactResponse_InputTokensDetailsSchema.nullable(),\n output_tokens_details: OpenaiCompactResponse_OutputTokensDetailsSchema.nullable(),\n}).passthrough().describe(\"Token usage information for the compaction.\");\nconst OpenaiCompactResponse_OutputMessageContentSchema = z.object({\n text: z.string().describe(\"Text content if available\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'input_text'\").nullable(),\n}).passthrough().describe(\"Content within an output message.\");\nconst OpenaiCompactResponse_OutputMessageSchema = z.object({\n role: z.string().describe(\"Role of the message, e.g., 'user'\").nullable(),\n type: z.string().describe(\"Type of output item, e.g., 'message'\").nullable(),\n content: z.array(OpenaiCompactResponse_OutputMessageContentSchema).describe(\"Array of content objects\"),\n}).passthrough().describe(\"Message item in the output array.\");\nconst OpenaiCompactResponse_CompactionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the compaction item\").nullable(),\n type: z.string().describe(\"Type must be 'compaction'\").nullable(),\n created_by: z.string().describe(\"Model that created this compaction\").nullable().optional(),\n encrypted_content: z.string().describe(\"Encrypted summary content from compaction\").nullable(),\n}).passthrough().describe(\"Compaction item in the output array.\");\nexport const OpenaiCompactResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the compacted response\").nullable(),\n usage: OpenaiCompactResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response.compaction'\").nullable(),\n output: z.array(z.union([OpenaiCompactResponse_OutputMessageSchema, OpenaiCompactResponse_CompactionItemSchema, z.record(z.string(), z.unknown())])).describe(\"The compacted list of output items\"),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the compacted conversation was created\").nullable(),\n}).passthrough().describe(\"Response schema for the compact response endpoint.\");\n\nexport const openaiCompactResponse: AppAction<\n typeof OpenaiCompactResponseInput,\n typeof OpenaiCompactResponseOutput,\n typeof openai.credential\n> = action(\"OPENAI_COMPACT_RESPONSE\", {\n slug: \"openai-compact-response\",\n name: \"Compact Response\",\n description: \"Tool to compact a conversation or response to reduce token usage. Use when you need to reduce the size of long conversations while preserving important context. Either provide an array of input messages or reference a previous response ID to compact.\",\n input: OpenaiCompactResponseInput,\n output: OpenaiCompactResponseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,KAAK;GAAC;GAAQ;GAAa;EAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B;EACnF,MAAM,EAAE,OAAO,CAAC,CAAC,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AsC,SAAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,MAAM,EAAE,MAAM;GAAC;GAA2C;GAA4C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oCAAoC;EAClM,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-audio-transcription.cjs","names":["z","action"],"sources":["../../src/actions/create-audio-transcription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateAudioTranscriptionInput = z.object({\n file: 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(\"Audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm. If not provided, use raw_content with raw_filename and raw_mimetype instead.\").optional(),\n model: z.string().describe(\"ID of the model to use for transcription. Options: 'whisper-1', 'gpt-4o-transcribe', 'gpt-4o-mini-transcribe', 'gpt-4o-mini-transcribe-2025-12-15', 'gpt-4o-transcribe-diarize'.\"),\n prompt: z.string().describe(\"Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language. Supported by gpt-4o-transcribe and gpt-4o-mini-transcribe models.\").optional(),\n language: z.string().describe(\"Language of the input audio in ISO-639-1 format (e.g., 'en' for English, 'es' for Spanish). Providing the language can improve accuracy and speed.\").optional(),\n raw_content: z.union([z.string(), z.string()]).optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 1. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more focused and deterministic.\").optional(),\n raw_filename: z.string().describe(\"Filename for the inline audio content (e.g., 'audio.mp3', 'recording.wav'). Required when using raw_content.\").optional(),\n raw_mimetype: z.string().describe(\"MIME type for the inline audio content (e.g., 'audio/mpeg', 'audio/wav'). Defaults to 'audio/mpeg' if not provided.\").optional(),\n response_format: z.enum([\"json\", \"text\", \"srt\", \"vtt\", \"verbose_json\"]).describe(\"Format of the transcription output. 'json' returns {text: '...'}. 'verbose_json' includes task, language, duration, segments, and optionally words (with timestamp_granularities). 'text' returns plain text. 'srt' and 'vtt' return subtitle formats. whisper-1 supports all formats. gpt-4o-transcribe and gpt-4o-mini-transcribe support json or text only.\").optional(),\n timestamp_granularities: z.array(z.enum([\"word\", \"segment\"])).describe(\"Timestamp granularities to include in the response. Use ['word'] for word-level timestamps, ['segment'] for segment-level, or both ['word', 'segment']. Only available when response_format is 'verbose_json'.\").optional(),\n}).describe(\"Request model for creating an audio transcription.\");\nconst OpenaiCreateAudioTranscription_TranscriptionWordSchema = z.object({\n end: z.number().describe(\"End time of the word in seconds\").nullable().optional(),\n word: z.string().describe(\"The transcribed word\").nullable().optional(),\n start: z.number().describe(\"Start time of the word in seconds\").nullable().optional(),\n}).passthrough().describe(\"A word in the transcription with timing information.\");\nconst OpenaiCreateAudioTranscription_TranscriptionSegmentSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the segment\").nullable().optional(),\n end: z.number().describe(\"End time of the segment in seconds\").nullable().optional(),\n seek: z.number().int().describe(\"Seek position in the audio\").nullable().optional(),\n text: z.string().describe(\"Text content of the segment\").nullable().optional(),\n start: z.number().describe(\"Start time of the segment in seconds\").nullable().optional(),\n tokens: z.array(z.number().int()).describe(\"Token IDs for the segment\").nullable().optional(),\n avg_logprob: z.number().describe(\"Average log probability of the segment\").nullable().optional(),\n temperature: z.number().describe(\"Temperature used for this segment\").nullable().optional(),\n no_speech_prob: z.number().describe(\"Probability that the segment contains no speech\").nullable().optional(),\n compression_ratio: z.number().describe(\"Compression ratio of the segment\").nullable().optional(),\n}).passthrough().describe(\"A segment of the transcription with timing information.\");\nexport const OpenaiCreateAudioTranscriptionOutput = z.object({\n task: z.string().describe(\"The task performed, typically 'transcribe' (only in verbose_json)\").nullable().optional(),\n text: z.string().describe(\"The transcribed text from the audio file\").nullable().optional(),\n words: z.array(OpenaiCreateAudioTranscription_TranscriptionWordSchema).describe(\"Array of transcribed words with timing information (only in verbose_json with word granularity)\").nullable().optional(),\n duration: z.number().describe(\"Duration of the audio in seconds (only in verbose_json)\").nullable().optional(),\n language: z.string().describe(\"Detected language of the audio (only in verbose_json)\").nullable().optional(),\n segments: z.array(OpenaiCreateAudioTranscription_TranscriptionSegmentSchema).describe(\"Array of transcription segments with timing information (only in verbose_json with segment granularity)\").nullable().optional(),\n}).passthrough().describe(\"Response model for audio transcription.\\n\\nStructure varies based on response_format:\\n- json: Contains 'text' field only\\n- verbose_json: Contains task, language, duration, text, segments, and optionally words\\n- text/srt/vtt: Returns as plain text (stored in 'text' field)\");\n\nexport const openaiCreateAudioTranscription = action(\"OPENAI_CREATE_AUDIO_TRANSCRIPTION\", {\n slug: \"openai-create-audio-transcription\",\n name: \"Create Audio Transcription\",\n description: \"Tool to transcribe audio files to text via OpenAI Audio Transcriptions API. Use when you need to convert speech in audio files to written text, optionally with timestamps or speaker diarization.\",\n input: OpenaiCreateAudioTranscriptionInput,\n output: OpenaiCreateAudioTranscriptionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-audio-transcription.cjs","names":["z","action"],"sources":["../../src/actions/create-audio-transcription.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCreateAudioTranscriptionInput = z.object({\n file: 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(\"Audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm. If not provided, use raw_content with raw_filename and raw_mimetype instead.\").optional(),\n model: z.string().describe(\"ID of the model to use for transcription. Options: 'whisper-1', 'gpt-4o-transcribe', 'gpt-4o-mini-transcribe', 'gpt-4o-mini-transcribe-2025-12-15', 'gpt-4o-transcribe-diarize'.\"),\n prompt: z.string().describe(\"Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language. Supported by gpt-4o-transcribe and gpt-4o-mini-transcribe models.\").optional(),\n language: z.string().describe(\"Language of the input audio in ISO-639-1 format (e.g., 'en' for English, 'es' for Spanish). Providing the language can improve accuracy and speed.\").optional(),\n raw_content: z.union([z.string(), z.string()]).optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 1. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more focused and deterministic.\").optional(),\n raw_filename: z.string().describe(\"Filename for the inline audio content (e.g., 'audio.mp3', 'recording.wav'). Required when using raw_content.\").optional(),\n raw_mimetype: z.string().describe(\"MIME type for the inline audio content (e.g., 'audio/mpeg', 'audio/wav'). Defaults to 'audio/mpeg' if not provided.\").optional(),\n response_format: z.enum([\"json\", \"text\", \"srt\", \"vtt\", \"verbose_json\"]).describe(\"Format of the transcription output. 'json' returns {text: '...'}. 'verbose_json' includes task, language, duration, segments, and optionally words (with timestamp_granularities). 'text' returns plain text. 'srt' and 'vtt' return subtitle formats. whisper-1 supports all formats. gpt-4o-transcribe and gpt-4o-mini-transcribe support json or text only.\").optional(),\n timestamp_granularities: z.array(z.enum([\"word\", \"segment\"])).describe(\"Timestamp granularities to include in the response. Use ['word'] for word-level timestamps, ['segment'] for segment-level, or both ['word', 'segment']. Only available when response_format is 'verbose_json'.\").optional(),\n}).describe(\"Request model for creating an audio transcription.\");\nconst OpenaiCreateAudioTranscription_TranscriptionWordSchema = z.object({\n end: z.number().describe(\"End time of the word in seconds\").nullable().optional(),\n word: z.string().describe(\"The transcribed word\").nullable().optional(),\n start: z.number().describe(\"Start time of the word in seconds\").nullable().optional(),\n}).passthrough().describe(\"A word in the transcription with timing information.\");\nconst OpenaiCreateAudioTranscription_TranscriptionSegmentSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the segment\").nullable().optional(),\n end: z.number().describe(\"End time of the segment in seconds\").nullable().optional(),\n seek: z.number().int().describe(\"Seek position in the audio\").nullable().optional(),\n text: z.string().describe(\"Text content of the segment\").nullable().optional(),\n start: z.number().describe(\"Start time of the segment in seconds\").nullable().optional(),\n tokens: z.array(z.number().int()).describe(\"Token IDs for the segment\").nullable().optional(),\n avg_logprob: z.number().describe(\"Average log probability of the segment\").nullable().optional(),\n temperature: z.number().describe(\"Temperature used for this segment\").nullable().optional(),\n no_speech_prob: z.number().describe(\"Probability that the segment contains no speech\").nullable().optional(),\n compression_ratio: z.number().describe(\"Compression ratio of the segment\").nullable().optional(),\n}).passthrough().describe(\"A segment of the transcription with timing information.\");\nexport const OpenaiCreateAudioTranscriptionOutput = z.object({\n task: z.string().describe(\"The task performed, typically 'transcribe' (only in verbose_json)\").nullable().optional(),\n text: z.string().describe(\"The transcribed text from the audio file\").nullable().optional(),\n words: z.array(OpenaiCreateAudioTranscription_TranscriptionWordSchema).describe(\"Array of transcribed words with timing information (only in verbose_json with word granularity)\").nullable().optional(),\n duration: z.number().describe(\"Duration of the audio in seconds (only in verbose_json)\").nullable().optional(),\n language: z.string().describe(\"Detected language of the audio (only in verbose_json)\").nullable().optional(),\n segments: z.array(OpenaiCreateAudioTranscription_TranscriptionSegmentSchema).describe(\"Array of transcription segments with timing information (only in verbose_json with segment granularity)\").nullable().optional(),\n}).passthrough().describe(\"Response model for audio transcription.\\n\\nStructure varies based on response_format:\\n- json: Contains 'text' field only\\n- verbose_json: Contains task, language, duration, text, segments, and optionally words\\n- text/srt/vtt: Returns as plain text (stored in 'text' field)\");\n\nexport const openaiCreateAudioTranscription: AppAction<\n typeof OpenaiCreateAudioTranscriptionInput,\n typeof OpenaiCreateAudioTranscriptionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_AUDIO_TRANSCRIPTION\", {\n slug: \"openai-create-audio-transcription\",\n name: \"Create Audio Transcription\",\n description: \"Tool to transcribe audio files to text via OpenAI Audio Transcriptions API. Use when you need to convert speech in audio files to written text, optionally with timestamps or speaker diarization.\",\n input: OpenaiCreateAudioTranscriptionInput,\n output: OpenaiCreateAudioTranscriptionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO;EACf,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,4KAA4K,CAAC,CAAC,SAAS;CACjM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;CAC7M,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;CACrO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CAC7L,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACxD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACvM,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CAC3J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC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,CAAC,CAAC,SAAS;AACvN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oRAAoR;AAE9S,MAAa,iCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openai } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-audio-transcription.d.ts
|
|
@@ -49,22 +51,7 @@ declare const OpenaiCreateAudioTranscriptionOutput: z.ZodObject<{
|
|
|
49
51
|
compression_ratio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
52
|
}, z.core.$loose>>>>;
|
|
51
53
|
}, z.core.$loose>;
|
|
52
|
-
declare const openaiCreateAudioTranscription:
|
|
53
|
-
model: string;
|
|
54
|
-
file?: {
|
|
55
|
-
name: string;
|
|
56
|
-
s3key: string;
|
|
57
|
-
mimetype: string;
|
|
58
|
-
} | undefined;
|
|
59
|
-
prompt?: string | undefined;
|
|
60
|
-
language?: string | undefined;
|
|
61
|
-
raw_content?: string | undefined;
|
|
62
|
-
temperature?: number | undefined;
|
|
63
|
-
raw_filename?: string | undefined;
|
|
64
|
-
raw_mimetype?: string | undefined;
|
|
65
|
-
response_format?: "text" | "json" | "srt" | "vtt" | "verbose_json" | undefined;
|
|
66
|
-
timestamp_granularities?: ("word" | "segment")[] | undefined;
|
|
67
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
54
|
+
declare const openaiCreateAudioTranscription: AppAction<typeof OpenaiCreateAudioTranscriptionInput, typeof OpenaiCreateAudioTranscriptionOutput, typeof openai.credential>;
|
|
68
55
|
//#endregion
|
|
69
56
|
export { openaiCreateAudioTranscription };
|
|
70
57
|
//# sourceMappingURL=create-audio-transcription.d.cts.map
|