@keystrokehq/openai 0.1.5 → 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 -25
- package/dist/actions/add-upload-part.d.cts.map +1 -1
- package/dist/actions/add-upload-part.d.mts +3 -25
- 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 +8 -22
- package/dist/actions/cancel-batch.d.cts.map +1 -1
- package/dist/actions/cancel-batch.d.mts +8 -22
- 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 -18
- package/dist/actions/cancel-eval-run.d.cts.map +1 -1
- package/dist/actions/cancel-eval-run.d.mts +3 -18
- 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 -17
- package/dist/actions/cancel-response.d.cts.map +1 -1
- package/dist/actions/cancel-response.d.mts +3 -17
- 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 +8 -23
- package/dist/actions/cancel-run.d.cts.map +1 -1
- package/dist/actions/cancel-run.d.mts +8 -23
- 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 +4 -18
- package/dist/actions/cancel-upload.d.cts.map +1 -1
- package/dist/actions/cancel-upload.d.mts +4 -18
- 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 -29
- package/dist/actions/compact-response.d.cts.map +1 -1
- package/dist/actions/compact-response.d.mts +3 -29
- 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 -30
- package/dist/actions/create-audio-transcription.d.cts.map +1 -1
- package/dist/actions/create-audio-transcription.d.mts +3 -30
- 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 -28
- package/dist/actions/create-audio-translation.d.cts.map +1 -1
- package/dist/actions/create-audio-translation.d.mts +3 -28
- 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 +8 -29
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +8 -29
- 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 +5 -76
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +5 -76
- 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 -34
- package/dist/actions/create-completion.d.cts.map +1 -1
- package/dist/actions/create-completion.d.mts +3 -34
- 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 -19
- package/dist/actions/create-container-file.d.cts.map +1 -1
- package/dist/actions/create-container-file.d.mts +3 -19
- 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 -44
- package/dist/actions/create-container.d.cts.map +1 -1
- package/dist/actions/create-container.d.mts +3 -44
- 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 -28
- package/dist/actions/create-conversation-items.d.cts.map +1 -1
- package/dist/actions/create-conversation-items.d.mts +3 -28
- 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 -23
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +3 -23
- 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 -21
- package/dist/actions/create-embeddings.d.cts.map +1 -1
- package/dist/actions/create-embeddings.d.mts +3 -21
- 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 -62
- package/dist/actions/create-eval-run.d.cts.map +1 -1
- package/dist/actions/create-eval-run.d.mts +3 -62
- 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 -61
- package/dist/actions/create-eval.d.cts.map +1 -1
- package/dist/actions/create-eval.d.mts +3 -61
- 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 +5 -27
- package/dist/actions/create-fine-tuning-job.d.cts.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.mts +5 -27
- 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 +3 -36
- package/dist/actions/create-image-edit.d.cts.map +1 -1
- package/dist/actions/create-image-edit.d.mts +3 -36
- 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 -26
- package/dist/actions/create-image-variation.d.cts.map +1 -1
- package/dist/actions/create-image-variation.d.mts +3 -26
- 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 +3 -27
- package/dist/actions/create-image.d.cts.map +1 -1
- package/dist/actions/create-image.d.mts +3 -27
- 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 -35
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +3 -35
- 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 -23
- package/dist/actions/create-moderation.d.cts.map +1 -1
- package/dist/actions/create-moderation.d.mts +3 -23
- 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 -18
- package/dist/actions/create-realtime-call.d.cts.map +1 -1
- package/dist/actions/create-realtime-call.d.mts +3 -18
- 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 -40
- package/dist/actions/create-realtime-client-secret.d.cts.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.mts +3 -40
- 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 -62
- package/dist/actions/create-realtime-session.d.cts.map +1 -1
- package/dist/actions/create-realtime-session.d.mts +3 -62
- 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 -32
- package/dist/actions/create-realtime-transcription-session.d.cts.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.mts +3 -32
- 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 +4 -78
- package/dist/actions/create-response.d.cts.map +1 -1
- package/dist/actions/create-response.d.mts +4 -78
- 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 +8 -71
- package/dist/actions/create-run.d.cts.map +1 -1
- package/dist/actions/create-run.d.mts +8 -71
- 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 -27
- package/dist/actions/create-skill.d.cts.map +1 -1
- package/dist/actions/create-skill.d.mts +3 -27
- 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 -21
- package/dist/actions/create-speech.d.cts.map +1 -1
- package/dist/actions/create-speech.d.mts +3 -21
- 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 +8 -97
- package/dist/actions/create-thread-and-run.d.cts.map +1 -1
- package/dist/actions/create-thread-and-run.d.mts +8 -97
- 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 -22
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +3 -22
- 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 +4 -25
- package/dist/actions/create-upload.d.cts.map +1 -1
- package/dist/actions/create-upload.d.mts +4 -25
- 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 +5 -50
- package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.mts +5 -50
- 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 +5 -32
- package/dist/actions/create-vector-store-file.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file.d.mts +5 -32
- 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 -35
- package/dist/actions/create-vector-store.d.cts.map +1 -1
- package/dist/actions/create-vector-store.d.mts +3 -35
- 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 +5 -20
- package/dist/actions/create-video-remix.d.cts.map +1 -1
- package/dist/actions/create-video-remix.d.mts +5 -20
- 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 -20
- package/dist/actions/create-video.d.cts.map +1 -1
- package/dist/actions/create-video.d.mts +3 -20
- 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 -17
- package/dist/actions/delete-assistant.d.cts.map +1 -1
- package/dist/actions/delete-assistant.d.mts +3 -17
- 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 -17
- package/dist/actions/delete-chat-completion.d.cts.map +1 -1
- package/dist/actions/delete-chat-completion.d.mts +3 -17
- 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 -18
- package/dist/actions/delete-container-file.d.cts.map +1 -1
- package/dist/actions/delete-container-file.d.mts +3 -18
- 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 -17
- package/dist/actions/delete-container.d.cts.map +1 -1
- package/dist/actions/delete-container.d.mts +3 -17
- 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 -18
- package/dist/actions/delete-conversation-item.d.cts.map +1 -1
- package/dist/actions/delete-conversation-item.d.mts +3 -18
- 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 -17
- package/dist/actions/delete-conversation.d.cts.map +1 -1
- package/dist/actions/delete-conversation.d.mts +3 -17
- 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 -18
- package/dist/actions/delete-eval-run.d.cts.map +1 -1
- package/dist/actions/delete-eval-run.d.mts +3 -18
- 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 -17
- package/dist/actions/delete-eval.d.cts.map +1 -1
- package/dist/actions/delete-eval.d.mts +3 -17
- 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 -17
- package/dist/actions/delete-file.d.cts.map +1 -1
- package/dist/actions/delete-file.d.mts +3 -17
- 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 -18
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +3 -18
- 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 -17
- package/dist/actions/delete-response.d.cts.map +1 -1
- package/dist/actions/delete-response.d.mts +3 -17
- 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 -17
- package/dist/actions/delete-skill.d.cts.map +1 -1
- package/dist/actions/delete-skill.d.mts +3 -17
- 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 -17
- package/dist/actions/delete-thread.d.cts.map +1 -1
- package/dist/actions/delete-thread.d.mts +3 -17
- 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 -18
- package/dist/actions/delete-vector-store-file.d.cts.map +1 -1
- package/dist/actions/delete-vector-store-file.d.mts +3 -18
- 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 -17
- package/dist/actions/delete-vector-store.d.cts.map +1 -1
- package/dist/actions/delete-vector-store.d.mts +3 -17
- 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 -17
- package/dist/actions/delete-video.d.cts.map +1 -1
- package/dist/actions/delete-video.d.mts +3 -17
- 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 -17
- package/dist/actions/download-file.d.cts.map +1 -1
- package/dist/actions/download-file.d.mts +3 -17
- 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 -18
- package/dist/actions/download-video.d.cts.map +1 -1
- package/dist/actions/download-video.d.mts +3 -18
- 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 -20
- package/dist/actions/get-chat-completion-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.mts +3 -20
- 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 -17
- package/dist/actions/get-chat-completion.d.cts.map +1 -1
- package/dist/actions/get-chat-completion.d.mts +3 -17
- 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 -17
- package/dist/actions/get-chatkit-thread.d.cts.map +1 -1
- package/dist/actions/get-chatkit-thread.d.mts +3 -17
- 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 -19
- package/dist/actions/get-conversation-item.d.cts.map +1 -1
- package/dist/actions/get-conversation-item.d.mts +3 -19
- 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 -19
- package/dist/actions/get-eval-run-output-item.d.cts.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.mts +3 -19
- 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 -22
- package/dist/actions/get-eval-run-output-items.d.cts.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.mts +3 -22
- 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 -18
- package/dist/actions/get-eval-run.d.cts.map +1 -1
- package/dist/actions/get-eval-run.d.mts +3 -18
- 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 +5 -23
- package/dist/actions/get-eval-runs.d.cts.map +1 -1
- package/dist/actions/get-eval-runs.d.mts +5 -23
- 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 -17
- package/dist/actions/get-eval.d.cts.map +1 -1
- package/dist/actions/get-eval.d.mts +3 -17
- 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 +3 -34
- package/dist/actions/get-input-token-counts.d.cts.map +1 -1
- package/dist/actions/get-input-token-counts.d.mts +3 -34
- 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 -18
- package/dist/actions/get-message.d.cts.map +1 -1
- package/dist/actions/get-message.d.mts +3 -18
- 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 -21
- package/dist/actions/get-response.d.cts.map +1 -1
- package/dist/actions/get-response.d.mts +3 -21
- 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 +5 -22
- package/dist/actions/get-run-step.d.cts.map +1 -1
- package/dist/actions/get-run-step.d.mts +5 -22
- 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 +5 -20
- package/dist/actions/get-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.mts +5 -20
- 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 +5 -20
- package/dist/actions/get-vector-store-file.d.cts.map +1 -1
- package/dist/actions/get-vector-store-file.d.mts +5 -20
- 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 -17
- package/dist/actions/get-vector-store.d.cts.map +1 -1
- package/dist/actions/get-vector-store.d.mts +3 -17
- 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 +5 -19
- package/dist/actions/get-video.d.cts.map +1 -1
- package/dist/actions/get-video.d.mts +5 -19
- 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 -20
- package/dist/actions/list-assistants.d.cts.map +1 -1
- package/dist/actions/list-assistants.d.mts +3 -20
- 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 +8 -23
- package/dist/actions/list-batches.d.cts.map +1 -1
- package/dist/actions/list-batches.d.mts +8 -23
- 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 -21
- package/dist/actions/list-chat-completions.d.cts.map +1 -1
- package/dist/actions/list-chat-completions.d.mts +3 -21
- 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 -21
- package/dist/actions/list-chatkit-thread-items.d.cts.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.mts +3 -21
- 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 -20
- package/dist/actions/list-container-files.d.cts.map +1 -1
- package/dist/actions/list-container-files.d.mts +3 -20
- 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 -20
- package/dist/actions/list-containers.d.cts.map +1 -1
- package/dist/actions/list-containers.d.mts +3 -20
- 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 -21
- package/dist/actions/list-conversation-items.d.cts.map +1 -1
- package/dist/actions/list-conversation-items.d.mts +3 -21
- 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 -15
- package/dist/actions/list-engines.d.cts.map +1 -1
- package/dist/actions/list-engines.d.mts +3 -15
- 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 -20
- package/dist/actions/list-evals.d.cts.map +1 -1
- package/dist/actions/list-evals.d.mts +3 -20
- 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 +7 -27
- 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 +7 -27
- 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 -19
- package/dist/actions/list-files.d.cts.map +1 -1
- package/dist/actions/list-files.d.mts +3 -19
- 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 -18
- package/dist/actions/list-fine-tunes.d.cts.map +1 -1
- package/dist/actions/list-fine-tunes.d.mts +3 -18
- 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 -19
- package/dist/actions/list-fine-tuning-events.d.cts.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.mts +3 -19
- 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 -19
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +3 -19
- 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 -21
- package/dist/actions/list-input-items.d.cts.map +1 -1
- package/dist/actions/list-input-items.d.mts +3 -21
- 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 -22
- package/dist/actions/list-messages.d.cts.map +1 -1
- package/dist/actions/list-messages.d.mts +3 -22
- 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 -15
- package/dist/actions/list-models.d.cts.map +1 -1
- package/dist/actions/list-models.d.mts +3 -15
- 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 +5 -25
- package/dist/actions/list-run-steps.d.cts.map +1 -1
- package/dist/actions/list-run-steps.d.mts +5 -25
- 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 +8 -26
- package/dist/actions/list-runs.d.cts.map +1 -1
- package/dist/actions/list-runs.d.mts +8 -26
- 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 -19
- package/dist/actions/list-skills.d.cts.map +1 -1
- package/dist/actions/list-skills.d.mts +3 -19
- 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 -21
- package/dist/actions/list-threads.d.cts.map +1 -1
- package/dist/actions/list-threads.d.mts +3 -21
- 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 +7 -26
- package/dist/actions/list-vector-store-files.d.cts.map +1 -1
- package/dist/actions/list-vector-store-files.d.mts +7 -26
- 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 -20
- package/dist/actions/list-vector-stores.d.cts.map +1 -1
- package/dist/actions/list-vector-stores.d.mts +3 -20
- 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 +5 -21
- package/dist/actions/list-videos.d.cts.map +1 -1
- package/dist/actions/list-videos.d.mts +5 -21
- 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 -34
- package/dist/actions/modify-assistant.d.cts.map +1 -1
- package/dist/actions/modify-assistant.d.mts +3 -34
- 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 -19
- package/dist/actions/modify-message.d.cts.map +1 -1
- package/dist/actions/modify-message.d.mts +3 -19
- 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 +8 -24
- package/dist/actions/modify-run.d.cts.map +1 -1
- package/dist/actions/modify-run.d.mts +8 -24
- 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 -18
- package/dist/actions/modify-thread.d.cts.map +1 -1
- package/dist/actions/modify-thread.d.mts +3 -18
- 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 -23
- package/dist/actions/modify-vector-store.d.cts.map +1 -1
- package/dist/actions/modify-vector-store.d.mts +3 -23
- 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 -17
- package/dist/actions/retrieve-assistant.d.cts.map +1 -1
- package/dist/actions/retrieve-assistant.d.mts +3 -17
- 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 +8 -22
- package/dist/actions/retrieve-batch.d.cts.map +1 -1
- package/dist/actions/retrieve-batch.d.mts +8 -22
- 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 -18
- package/dist/actions/retrieve-container-file-content.d.cts.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.mts +3 -18
- 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 -18
- package/dist/actions/retrieve-container-file.d.cts.map +1 -1
- package/dist/actions/retrieve-container-file.d.mts +3 -18
- 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 -17
- package/dist/actions/retrieve-container.d.cts.map +1 -1
- package/dist/actions/retrieve-container.d.mts +3 -17
- 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 -17
- package/dist/actions/retrieve-engine.d.cts.map +1 -1
- package/dist/actions/retrieve-engine.d.mts +3 -17
- 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 -17
- package/dist/actions/retrieve-file.d.cts.map +1 -1
- package/dist/actions/retrieve-file.d.mts +3 -17
- 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 +5 -19
- package/dist/actions/retrieve-fine-tuning-job.d.cts.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.mts +5 -19
- 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 -17
- package/dist/actions/retrieve-model.d.cts.map +1 -1
- package/dist/actions/retrieve-model.d.mts +3 -17
- 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 +8 -23
- package/dist/actions/retrieve-run.d.cts.map +1 -1
- package/dist/actions/retrieve-run.d.mts +8 -23
- 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 -17
- package/dist/actions/retrieve-thread.d.cts.map +1 -1
- package/dist/actions/retrieve-thread.d.mts +3 -17
- 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 -18
- package/dist/actions/retrieve-vector-store-file-content.d.cts.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.mts +3 -18
- 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 -53
- package/dist/actions/run-grader.d.cts.map +1 -1
- package/dist/actions/run-grader.d.mts +3 -53
- 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 +4 -26
- package/dist/actions/search-vector-store.d.cts.map +1 -1
- package/dist/actions/search-vector-store.d.mts +4 -26
- 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 +8 -29
- package/dist/actions/submit-tool-outputs-to-run.d.cts.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.mts +8 -29
- 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 -18
- package/dist/actions/update-chat-completion.d.cts.map +1 -1
- package/dist/actions/update-chat-completion.d.mts +3 -18
- 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 -18
- package/dist/actions/update-conversation.d.cts.map +1 -1
- package/dist/actions/update-conversation.d.mts +3 -18
- 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 -19
- package/dist/actions/update-eval.d.cts.map +1 -1
- package/dist/actions/update-eval.d.mts +3 -19
- 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 +5 -21
- package/dist/actions/update-vector-store-file-attributes.d.cts.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.mts +5 -21
- 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 -18
- package/dist/actions/upload-file.d.cts.map +1 -1
- package/dist/actions/upload-file.d.mts +3 -18
- 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 -51
- package/dist/actions/validate-grader.d.cts.map +1 -1
- package/dist/actions/validate-grader.d.mts +3 -51
- 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 +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- 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,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/create-realtime-session.d.ts
|
|
@@ -83,68 +85,7 @@ declare const OpenaiCreateRealtimeSessionOutput: z.ZodObject<{
|
|
|
83
85
|
max_response_output_tokens: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
84
86
|
input_audio_noise_reduction: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
85
87
|
}, z.core.$loose>;
|
|
86
|
-
declare const openaiCreateRealtimeSession:
|
|
87
|
-
model: string;
|
|
88
|
-
speed?: number | undefined;
|
|
89
|
-
tools?: {
|
|
90
|
-
[x: string]: unknown;
|
|
91
|
-
name: string;
|
|
92
|
-
type: string;
|
|
93
|
-
parameters?: Record<string, unknown> | undefined;
|
|
94
|
-
description?: string | undefined;
|
|
95
|
-
}[] | undefined;
|
|
96
|
-
voice?: string | {
|
|
97
|
-
[x: string]: unknown;
|
|
98
|
-
id: string;
|
|
99
|
-
} | undefined;
|
|
100
|
-
prompt?: {
|
|
101
|
-
id: string;
|
|
102
|
-
version?: string | number | undefined;
|
|
103
|
-
variables?: Record<string, unknown> | undefined;
|
|
104
|
-
} | undefined;
|
|
105
|
-
tracing?: string | {
|
|
106
|
-
[x: string]: unknown;
|
|
107
|
-
group_id?: string | null | undefined;
|
|
108
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
109
|
-
workflow_name?: string | null | undefined;
|
|
110
|
-
} | undefined;
|
|
111
|
-
modalities?: ("text" | "audio")[] | undefined;
|
|
112
|
-
truncation?: string | {
|
|
113
|
-
[x: string]: unknown;
|
|
114
|
-
type: string;
|
|
115
|
-
retention_ratio: number;
|
|
116
|
-
token_limits?: Record<string, unknown> | null | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
temperature?: number | undefined;
|
|
119
|
-
tool_choice?: string | undefined;
|
|
120
|
-
instructions?: string | undefined;
|
|
121
|
-
turn_detection?: {
|
|
122
|
-
type?: string | undefined;
|
|
123
|
-
threshold?: number | undefined;
|
|
124
|
-
prefix_padding_ms?: number | undefined;
|
|
125
|
-
silence_duration_ms?: number | undefined;
|
|
126
|
-
} | undefined;
|
|
127
|
-
input_audio_format?: "pcm16" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
128
|
-
output_audio_format?: "pcm16" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
129
|
-
input_audio_transcription?: {
|
|
130
|
-
model?: string | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
max_response_output_tokens?: string | number | undefined;
|
|
133
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
134
|
-
connectionId: z.ZodString;
|
|
135
|
-
entityId: z.ZodString;
|
|
136
|
-
instanceId: z.ZodString;
|
|
137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
138
|
-
generic_api_key: z.ZodString;
|
|
139
|
-
organization_id: z.ZodString;
|
|
140
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
141
|
-
connectionId: z.ZodString;
|
|
142
|
-
entityId: z.ZodString;
|
|
143
|
-
instanceId: z.ZodString;
|
|
144
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
-
generic_api_key: z.ZodString;
|
|
146
|
-
organization_id: z.ZodString;
|
|
147
|
-
}, z.core.$strip>>]>;
|
|
88
|
+
declare const openaiCreateRealtimeSession: AppAction<typeof OpenaiCreateRealtimeSessionInput, typeof OpenaiCreateRealtimeSessionOutput, typeof openai.credential>;
|
|
148
89
|
//#endregion
|
|
149
90
|
export { openaiCreateRealtimeSession };
|
|
150
91
|
//# sourceMappingURL=create-realtime-session.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-session.d.mts","names":[],"sources":["../../src/actions/create-realtime-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-realtime-session.d.mts","names":[],"sources":["../../src/actions/create-realtime-session.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgDhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-session.mjs","names":[],"sources":["../../src/actions/create-realtime-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeSessionInput = z.object({\n model: z.string().describe(\"Model to use for the realtime session\"),\n speed: z.number().describe(\"The speed of the model's spoken response. 1.0 is default, 0.25 is minimum, 1.5 is maximum\").optional(),\n tools: z.array(z.object({\n name: z.string().describe(\"Name of the function\"),\n type: z.string().describe(\"Type of tool, must be 'function'\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"JSON Schema describing the function parameters\").optional(),\n description: z.string().describe(\"Description of what the function does\").optional(),\n}).passthrough().describe(\"Function tool definition.\")).describe(\"Tools (functions) available to the model\").optional(),\n voice: z.union([z.string(), z.object({\n id: z.string().describe(\"Voice ID for custom voices\"),\n}).passthrough().describe(\"Custom voice configuration.\")]).optional(),\n prompt: z.object({\n id: z.string().describe(\"Prompt ID\"),\n version: z.union([z.number().int(), z.string()]).optional(),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the prompt\").optional(),\n}).describe(\"Prompt configuration.\").optional(),\n tracing: z.union([z.string(), z.object({\n group_id: z.string().nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).nullable().optional(),\n workflow_name: z.string().nullable().optional(),\n}).passthrough().describe(\"Configuration for tracing.\")]).optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"The set of modalities the model can respond with. To disable audio, set this to ['text']\").optional(),\n truncation: z.union([z.string(), z.object({\n type: z.string().describe(\"Type of truncation configuration\"),\n token_limits: z.record(z.string(), z.unknown()).nullable().optional(),\n retention_ratio: z.number().describe(\"Ratio of tokens to retain from the beginning of context\"),\n}).passthrough().describe(\"Configuration for conversation truncation.\")]).optional(),\n temperature: z.number().describe(\"Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8\").optional(),\n tool_choice: z.string().describe(\"How the model chooses tools. Options are 'auto', 'none', 'required', or specify a function\").optional(),\n instructions: z.string().describe(\"System instructions for the model. Guides the model on desired responses and behavior\").optional(),\n turn_detection: z.object({\n type: z.string().describe(\"Type of turn detection, only 'server_vad' is currently supported\").optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), defaults to 0.5. Higher threshold requires louder audio\").optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before VAD detected speech (in milliseconds). Defaults to 300ms\").optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms\").optional(),\n}).describe(\"Configuration for turn detection (server VAD).\").optional(),\n input_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"The format of input audio\").optional(),\n output_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"The format of output audio\").optional(),\n input_audio_transcription: z.object({\n model: z.string().describe(\"The model to use for transcription\").optional(),\n}).describe(\"Configuration for input audio transcription.\").optional(),\n max_response_output_tokens: z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for creating a realtime session.\");\nconst OpenaiCreateRealtimeSession_ClientSecretSchema = z.object({\n value: z.string().describe(\"Ephemeral key usable in client environments to authenticate connections to the Realtime API\").nullable(),\n expires_at: z.number().int().describe(\"Timestamp for when the token expires (currently all tokens expire after one minute)\").nullable(),\n}).passthrough().describe(\"Ephemeral key information.\");\nexport const OpenaiCreateRealtimeSessionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the session that looks like 'sess_1234567890abcdef'\").nullable(),\n model: z.string().describe(\"The Realtime model used for this session\").nullable(),\n speed: z.number().describe(\"The speed of the model's spoken response\").nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"Tools (functions) available to the model\").nullable().optional(),\n voice: z.string().describe(\"The voice used for audio responses\").nullable().optional(),\n object: z.string().describe(\"The object type. Always 'realtime.session'\").nullable(),\n prompt: z.record(z.string(), z.unknown()).describe(\"Prompt configuration\").nullable().optional(),\n include: z.array(z.string()).describe(\"Additional fields to include in server outputs\").nullable().optional(),\n tracing: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n expires_at: z.number().int().describe(\"Expiration timestamp for the session, in seconds since epoch\").nullable(),\n modalities: z.array(z.string()).describe(\"The set of modalities the model can respond with\").nullable().optional(),\n truncation: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n temperature: z.number().describe(\"Sampling temperature for the model\").nullable().optional(),\n tool_choice: z.string().describe(\"How the model chooses tools\").nullable().optional(),\n instructions: z.string().describe(\"The default system instructions for the session\").nullable().optional(),\n client_secret: OpenaiCreateRealtimeSession_ClientSecretSchema.nullable(),\n turn_detection: z.record(z.string(), z.unknown()).describe(\"Configuration for turn detection\").nullable().optional(),\n input_audio_format: z.string().describe(\"The format of input audio\").nullable().optional(),\n output_audio_format: z.string().describe(\"The format of output audio\").nullable().optional(),\n input_audio_transcription: z.record(z.string(), z.unknown()).describe(\"Configuration for input audio transcription\").nullable().optional(),\n max_response_output_tokens: z.union([z.number().int(), z.string()]).nullable().optional(),\n input_audio_noise_reduction: z.record(z.string(), z.unknown()).describe(\"Configuration for input audio noise reduction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for created realtime session.\");\n\nexport const openaiCreateRealtimeSession = action(\"OPENAI_CREATE_REALTIME_SESSION\", {\n slug: \"openai-create-realtime-session\",\n name: \"Create Realtime Session\",\n description: \"Tool to create an ephemeral API token for client-side Realtime API applications. Use when setting up browser-based real-time audio/text interactions.\",\n input: OpenaiCreateRealtimeSessionInput,\n output: OpenaiCreateRealtimeSessionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACjI,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,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AAS;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,2BAA2B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,4BAA4B,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,6BAA6B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-realtime-session.mjs","names":[],"sources":["../../src/actions/create-realtime-session.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 OpenaiCreateRealtimeSessionInput = z.object({\n model: z.string().describe(\"Model to use for the realtime session\"),\n speed: z.number().describe(\"The speed of the model's spoken response. 1.0 is default, 0.25 is minimum, 1.5 is maximum\").optional(),\n tools: z.array(z.object({\n name: z.string().describe(\"Name of the function\"),\n type: z.string().describe(\"Type of tool, must be 'function'\"),\n parameters: z.record(z.string(), z.unknown()).describe(\"JSON Schema describing the function parameters\").optional(),\n description: z.string().describe(\"Description of what the function does\").optional(),\n}).passthrough().describe(\"Function tool definition.\")).describe(\"Tools (functions) available to the model\").optional(),\n voice: z.union([z.string(), z.object({\n id: z.string().describe(\"Voice ID for custom voices\"),\n}).passthrough().describe(\"Custom voice configuration.\")]).optional(),\n prompt: z.object({\n id: z.string().describe(\"Prompt ID\"),\n version: z.union([z.number().int(), z.string()]).optional(),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the prompt\").optional(),\n}).describe(\"Prompt configuration.\").optional(),\n tracing: z.union([z.string(), z.object({\n group_id: z.string().nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).nullable().optional(),\n workflow_name: z.string().nullable().optional(),\n}).passthrough().describe(\"Configuration for tracing.\")]).optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"The set of modalities the model can respond with. To disable audio, set this to ['text']\").optional(),\n truncation: z.union([z.string(), z.object({\n type: z.string().describe(\"Type of truncation configuration\"),\n token_limits: z.record(z.string(), z.unknown()).nullable().optional(),\n retention_ratio: z.number().describe(\"Ratio of tokens to retain from the beginning of context\"),\n}).passthrough().describe(\"Configuration for conversation truncation.\")]).optional(),\n temperature: z.number().describe(\"Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8\").optional(),\n tool_choice: z.string().describe(\"How the model chooses tools. Options are 'auto', 'none', 'required', or specify a function\").optional(),\n instructions: z.string().describe(\"System instructions for the model. Guides the model on desired responses and behavior\").optional(),\n turn_detection: z.object({\n type: z.string().describe(\"Type of turn detection, only 'server_vad' is currently supported\").optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), defaults to 0.5. Higher threshold requires louder audio\").optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before VAD detected speech (in milliseconds). Defaults to 300ms\").optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms\").optional(),\n}).describe(\"Configuration for turn detection (server VAD).\").optional(),\n input_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"The format of input audio\").optional(),\n output_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"The format of output audio\").optional(),\n input_audio_transcription: z.object({\n model: z.string().describe(\"The model to use for transcription\").optional(),\n}).describe(\"Configuration for input audio transcription.\").optional(),\n max_response_output_tokens: z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for creating a realtime session.\");\nconst OpenaiCreateRealtimeSession_ClientSecretSchema = z.object({\n value: z.string().describe(\"Ephemeral key usable in client environments to authenticate connections to the Realtime API\").nullable(),\n expires_at: z.number().int().describe(\"Timestamp for when the token expires (currently all tokens expire after one minute)\").nullable(),\n}).passthrough().describe(\"Ephemeral key information.\");\nexport const OpenaiCreateRealtimeSessionOutput = z.object({\n id: z.string().describe(\"Unique identifier for the session that looks like 'sess_1234567890abcdef'\").nullable(),\n model: z.string().describe(\"The Realtime model used for this session\").nullable(),\n speed: z.number().describe(\"The speed of the model's spoken response\").nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"Tools (functions) available to the model\").nullable().optional(),\n voice: z.string().describe(\"The voice used for audio responses\").nullable().optional(),\n object: z.string().describe(\"The object type. Always 'realtime.session'\").nullable(),\n prompt: z.record(z.string(), z.unknown()).describe(\"Prompt configuration\").nullable().optional(),\n include: z.array(z.string()).describe(\"Additional fields to include in server outputs\").nullable().optional(),\n tracing: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n expires_at: z.number().int().describe(\"Expiration timestamp for the session, in seconds since epoch\").nullable(),\n modalities: z.array(z.string()).describe(\"The set of modalities the model can respond with\").nullable().optional(),\n truncation: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n temperature: z.number().describe(\"Sampling temperature for the model\").nullable().optional(),\n tool_choice: z.string().describe(\"How the model chooses tools\").nullable().optional(),\n instructions: z.string().describe(\"The default system instructions for the session\").nullable().optional(),\n client_secret: OpenaiCreateRealtimeSession_ClientSecretSchema.nullable(),\n turn_detection: z.record(z.string(), z.unknown()).describe(\"Configuration for turn detection\").nullable().optional(),\n input_audio_format: z.string().describe(\"The format of input audio\").nullable().optional(),\n output_audio_format: z.string().describe(\"The format of output audio\").nullable().optional(),\n input_audio_transcription: z.record(z.string(), z.unknown()).describe(\"Configuration for input audio transcription\").nullable().optional(),\n max_response_output_tokens: z.union([z.number().int(), z.string()]).nullable().optional(),\n input_audio_noise_reduction: z.record(z.string(), z.unknown()).describe(\"Configuration for input audio noise reduction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for created realtime session.\");\n\nexport const openaiCreateRealtimeSession: AppAction<\n typeof OpenaiCreateRealtimeSessionInput,\n typeof OpenaiCreateRealtimeSessionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_REALTIME_SESSION\", {\n slug: \"openai-create-realtime-session\",\n name: \"Create Realtime Session\",\n description: \"Tool to create an ephemeral API token for client-side Realtime API applications. Use when setting up browser-based real-time audio/text interactions.\",\n input: OpenaiCreateRealtimeSessionInput,\n output: OpenaiCreateRealtimeSessionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACjI,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EACrC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,CAAC,CAAC,SAAS;CAClE,QA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@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-transcription-session.cjs","names":["z","action"],"sources":["../../src/actions/create-realtime-transcription-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeTranscriptionSessionInput = z.object({\n include: z.array(z.enum([\"item.input_audio_transcription.logprobs\"]).describe(\"Items to include in the transcription.\")).describe(\"The set of items to include in the transcription. Current available items are: 'item.input_audio_transcription.logprobs'\").optional(),\n turn_detection: z.object({\n type: z.string().describe(\"Type of turn detection. Only 'server_vad' is currently supported for transcription sessions.\").optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.\").optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.\").optional(),\n}).describe(\"Configuration for turn detection.\").optional(),\n input_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"Format of input audio for realtime transcription.\").optional(),\n input_audio_transcription: z.object({\n model: z.enum([\"whisper-1\", \"gpt-4o-mini-transcribe\", \"gpt-4o-mini-transcribe-2025-12-15\", \"gpt-4o-transcribe\", \"gpt-4o-transcribe-diarize\"]).describe(\"Model to use for transcription.\").optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment. For 'whisper-1', the prompt is a list of keywords. For 'gpt-4o-transcribe' models (excluding 'gpt-4o-transcribe-diarize'), the prompt is a free text string, for example 'expect words related to technology'.\").optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").optional(),\n}).describe(\"Configuration for input audio transcription.\").optional(),\n input_audio_noise_reduction: z.object({\n type: z.enum([\"near_field\", \"far_field\"]).describe(\"Type of noise reduction. 'near_field' is for close-talking microphones such as headphones, 'far_field' is for far-field microphones such as laptop or conference room microphones.\"),\n}).describe(\"Configuration for input audio noise reduction.\").optional(),\n}).describe(\"Request model for creating a realtime transcription session.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema = z.object({\n value: z.string().describe(\"Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.\").nullable(),\n expires_at: z.number().int().describe(\"Timestamp for when the token expires. Currently, all tokens expire after one minute.\").nullable(),\n}).passthrough().describe(\"Ephemeral key returned by the API.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema = z.object({\n type: z.string().describe(\"Type of turn detection, only 'server_vad' is currently supported.\").nullable().optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5.\").nullable().optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").nullable().optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.\").nullable().optional(),\n}).passthrough().describe(\"Turn detection configuration in response.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema = z.object({\n model: z.string().describe(\"The model to use for transcription.\").nullable().optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment.\").nullable().optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").nullable().optional(),\n}).passthrough().describe(\"Input audio transcription configuration in response.\");\nexport const OpenaiCreateRealtimeTranscriptionSessionOutput = z.object({\n modalities: z.array(z.string()).describe(\"The set of modalities the model can respond with. To disable audio, set this to ['text'].\").nullable().optional(),\n client_secret: OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema.nullable(),\n turn_detection: OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema.nullable().optional(),\n input_audio_format: z.string().describe(\"The format of input audio. Options are 'pcm16', 'g711_ulaw', or 'g711_alaw'.\").nullable().optional(),\n input_audio_transcription: OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for creating a realtime transcription session.\");\n\nexport const openaiCreateRealtimeTranscriptionSession = action(\"OPENAI_CREATE_REALTIME_TRANSCRIPTION_SESSION\", {\n slug: \"openai-create-realtime-transcription-session\",\n name: \"Create Realtime Transcription Session\",\n description: \"Tool to create an ephemeral API token for realtime transcriptions via the Realtime API. Use when you need to authenticate browser clients for realtime audio transcription sessions. Returns a session object with a client_secret containing a usable ephemeral API token.\",\n input: OpenaiCreateRealtimeTranscriptionSessionInput,\n output: OpenaiCreateRealtimeTranscriptionSessionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-realtime-transcription-session.cjs","names":["z","action"],"sources":["../../src/actions/create-realtime-transcription-session.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 OpenaiCreateRealtimeTranscriptionSessionInput = z.object({\n include: z.array(z.enum([\"item.input_audio_transcription.logprobs\"]).describe(\"Items to include in the transcription.\")).describe(\"The set of items to include in the transcription. Current available items are: 'item.input_audio_transcription.logprobs'\").optional(),\n turn_detection: z.object({\n type: z.string().describe(\"Type of turn detection. Only 'server_vad' is currently supported for transcription sessions.\").optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.\").optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.\").optional(),\n}).describe(\"Configuration for turn detection.\").optional(),\n input_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"Format of input audio for realtime transcription.\").optional(),\n input_audio_transcription: z.object({\n model: z.enum([\"whisper-1\", \"gpt-4o-mini-transcribe\", \"gpt-4o-mini-transcribe-2025-12-15\", \"gpt-4o-transcribe\", \"gpt-4o-transcribe-diarize\"]).describe(\"Model to use for transcription.\").optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment. For 'whisper-1', the prompt is a list of keywords. For 'gpt-4o-transcribe' models (excluding 'gpt-4o-transcribe-diarize'), the prompt is a free text string, for example 'expect words related to technology'.\").optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").optional(),\n}).describe(\"Configuration for input audio transcription.\").optional(),\n input_audio_noise_reduction: z.object({\n type: z.enum([\"near_field\", \"far_field\"]).describe(\"Type of noise reduction. 'near_field' is for close-talking microphones such as headphones, 'far_field' is for far-field microphones such as laptop or conference room microphones.\"),\n}).describe(\"Configuration for input audio noise reduction.\").optional(),\n}).describe(\"Request model for creating a realtime transcription session.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema = z.object({\n value: z.string().describe(\"Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.\").nullable(),\n expires_at: z.number().int().describe(\"Timestamp for when the token expires. Currently, all tokens expire after one minute.\").nullable(),\n}).passthrough().describe(\"Ephemeral key returned by the API.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema = z.object({\n type: z.string().describe(\"Type of turn detection, only 'server_vad' is currently supported.\").nullable().optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5.\").nullable().optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").nullable().optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.\").nullable().optional(),\n}).passthrough().describe(\"Turn detection configuration in response.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema = z.object({\n model: z.string().describe(\"The model to use for transcription.\").nullable().optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment.\").nullable().optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").nullable().optional(),\n}).passthrough().describe(\"Input audio transcription configuration in response.\");\nexport const OpenaiCreateRealtimeTranscriptionSessionOutput = z.object({\n modalities: z.array(z.string()).describe(\"The set of modalities the model can respond with. To disable audio, set this to ['text'].\").nullable().optional(),\n client_secret: OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema.nullable(),\n turn_detection: OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema.nullable().optional(),\n input_audio_format: z.string().describe(\"The format of input audio. Options are 'pcm16', 'g711_ulaw', or 'g711_alaw'.\").nullable().optional(),\n input_audio_transcription: OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for creating a realtime transcription session.\");\n\nexport const openaiCreateRealtimeTranscriptionSession: AppAction<\n typeof OpenaiCreateRealtimeTranscriptionSessionInput,\n typeof OpenaiCreateRealtimeTranscriptionSessionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_REALTIME_TRANSCRIPTION_SESSION\", {\n slug: \"openai-create-realtime-transcription-session\",\n name: \"Create Realtime Transcription Session\",\n description: \"Tool to create an ephemeral API token for realtime transcriptions via the Realtime API. Use when you need to authenticate browser clients for realtime audio transcription sessions. Returns a session object with a client_secret containing a usable ephemeral API token.\",\n input: OpenaiCreateRealtimeTranscriptionSessionInput,\n output: OpenaiCreateRealtimeTranscriptionSessionOutput,\n});\n"],"mappings":";;;;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CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,iDAAiDA,IAAAA,EAAE,OAAO;CACrE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,eAAe,4DAA4D,SAAS;CACpF,gBAAgB,qEAAqE,SAAS,CAAC,CAAC,SAAS;CACzG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,2BAA2B,+EAA+E,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,2CAITC,eAAAA,OAAO,gDAAgD;CACzD,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-realtime-transcription-session.d.ts
|
|
@@ -53,38 +55,7 @@ declare const OpenaiCreateRealtimeTranscriptionSessionOutput: z.ZodObject<{
|
|
|
53
55
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
56
|
}, z.core.$loose>>>;
|
|
55
57
|
}, z.core.$loose>;
|
|
56
|
-
declare const openaiCreateRealtimeTranscriptionSession:
|
|
57
|
-
include?: "item.input_audio_transcription.logprobs"[] | undefined;
|
|
58
|
-
turn_detection?: {
|
|
59
|
-
type?: string | undefined;
|
|
60
|
-
threshold?: number | undefined;
|
|
61
|
-
prefix_padding_ms?: number | undefined;
|
|
62
|
-
silence_duration_ms?: number | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
input_audio_format?: "pcm16" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
65
|
-
input_audio_transcription?: {
|
|
66
|
-
model?: "whisper-1" | "gpt-4o-mini-transcribe" | "gpt-4o-mini-transcribe-2025-12-15" | "gpt-4o-transcribe" | "gpt-4o-transcribe-diarize" | undefined;
|
|
67
|
-
prompt?: string | undefined;
|
|
68
|
-
language?: string | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
input_audio_noise_reduction?: {
|
|
71
|
-
type: "near_field" | "far_field";
|
|
72
|
-
} | undefined;
|
|
73
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
74
|
-
connectionId: z.ZodString;
|
|
75
|
-
entityId: z.ZodString;
|
|
76
|
-
instanceId: z.ZodString;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
generic_api_key: z.ZodString;
|
|
79
|
-
organization_id: z.ZodString;
|
|
80
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
81
|
-
connectionId: z.ZodString;
|
|
82
|
-
entityId: z.ZodString;
|
|
83
|
-
instanceId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
generic_api_key: z.ZodString;
|
|
86
|
-
organization_id: z.ZodString;
|
|
87
|
-
}, z.core.$strip>>]>;
|
|
58
|
+
declare const openaiCreateRealtimeTranscriptionSession: AppAction<typeof OpenaiCreateRealtimeTranscriptionSessionInput, typeof OpenaiCreateRealtimeTranscriptionSessionOutput, typeof openai.credential>;
|
|
88
59
|
//#endregion
|
|
89
60
|
export { openaiCreateRealtimeTranscriptionSession };
|
|
90
61
|
//# sourceMappingURL=create-realtime-transcription-session.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-transcription-session.d.cts","names":[],"sources":["../../src/actions/create-realtime-transcription-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-realtime-transcription-session.d.cts","names":[],"sources":["../../src/actions/create-realtime-transcription-session.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAQ9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,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/create-realtime-transcription-session.d.ts
|
|
@@ -53,38 +55,7 @@ declare const OpenaiCreateRealtimeTranscriptionSessionOutput: z.ZodObject<{
|
|
|
53
55
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
56
|
}, z.core.$loose>>>;
|
|
55
57
|
}, z.core.$loose>;
|
|
56
|
-
declare const openaiCreateRealtimeTranscriptionSession:
|
|
57
|
-
include?: "item.input_audio_transcription.logprobs"[] | undefined;
|
|
58
|
-
turn_detection?: {
|
|
59
|
-
type?: string | undefined;
|
|
60
|
-
threshold?: number | undefined;
|
|
61
|
-
prefix_padding_ms?: number | undefined;
|
|
62
|
-
silence_duration_ms?: number | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
input_audio_format?: "pcm16" | "g711_ulaw" | "g711_alaw" | undefined;
|
|
65
|
-
input_audio_transcription?: {
|
|
66
|
-
model?: "whisper-1" | "gpt-4o-mini-transcribe" | "gpt-4o-mini-transcribe-2025-12-15" | "gpt-4o-transcribe" | "gpt-4o-transcribe-diarize" | undefined;
|
|
67
|
-
prompt?: string | undefined;
|
|
68
|
-
language?: string | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
input_audio_noise_reduction?: {
|
|
71
|
-
type: "near_field" | "far_field";
|
|
72
|
-
} | undefined;
|
|
73
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
74
|
-
connectionId: z.ZodString;
|
|
75
|
-
entityId: z.ZodString;
|
|
76
|
-
instanceId: z.ZodString;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
generic_api_key: z.ZodString;
|
|
79
|
-
organization_id: z.ZodString;
|
|
80
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
81
|
-
connectionId: z.ZodString;
|
|
82
|
-
entityId: z.ZodString;
|
|
83
|
-
instanceId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
generic_api_key: z.ZodString;
|
|
86
|
-
organization_id: z.ZodString;
|
|
87
|
-
}, z.core.$strip>>]>;
|
|
58
|
+
declare const openaiCreateRealtimeTranscriptionSession: AppAction<typeof OpenaiCreateRealtimeTranscriptionSessionInput, typeof OpenaiCreateRealtimeTranscriptionSessionOutput, typeof openai.credential>;
|
|
88
59
|
//#endregion
|
|
89
60
|
export { openaiCreateRealtimeTranscriptionSession };
|
|
90
61
|
//# sourceMappingURL=create-realtime-transcription-session.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-transcription-session.d.mts","names":[],"sources":["../../src/actions/create-realtime-transcription-session.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-realtime-transcription-session.d.mts","names":[],"sources":["../../src/actions/create-realtime-transcription-session.ts"],"mappings":";;;;;cAMa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAQ9C,wCAAA,EAA0C,SAAA,QAC9C,6CAAA,SACA,8CAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-transcription-session.mjs","names":[],"sources":["../../src/actions/create-realtime-transcription-session.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeTranscriptionSessionInput = z.object({\n include: z.array(z.enum([\"item.input_audio_transcription.logprobs\"]).describe(\"Items to include in the transcription.\")).describe(\"The set of items to include in the transcription. Current available items are: 'item.input_audio_transcription.logprobs'\").optional(),\n turn_detection: z.object({\n type: z.string().describe(\"Type of turn detection. Only 'server_vad' is currently supported for transcription sessions.\").optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.\").optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.\").optional(),\n}).describe(\"Configuration for turn detection.\").optional(),\n input_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"Format of input audio for realtime transcription.\").optional(),\n input_audio_transcription: z.object({\n model: z.enum([\"whisper-1\", \"gpt-4o-mini-transcribe\", \"gpt-4o-mini-transcribe-2025-12-15\", \"gpt-4o-transcribe\", \"gpt-4o-transcribe-diarize\"]).describe(\"Model to use for transcription.\").optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment. For 'whisper-1', the prompt is a list of keywords. For 'gpt-4o-transcribe' models (excluding 'gpt-4o-transcribe-diarize'), the prompt is a free text string, for example 'expect words related to technology'.\").optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").optional(),\n}).describe(\"Configuration for input audio transcription.\").optional(),\n input_audio_noise_reduction: z.object({\n type: z.enum([\"near_field\", \"far_field\"]).describe(\"Type of noise reduction. 'near_field' is for close-talking microphones such as headphones, 'far_field' is for far-field microphones such as laptop or conference room microphones.\"),\n}).describe(\"Configuration for input audio noise reduction.\").optional(),\n}).describe(\"Request model for creating a realtime transcription session.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema = z.object({\n value: z.string().describe(\"Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.\").nullable(),\n expires_at: z.number().int().describe(\"Timestamp for when the token expires. Currently, all tokens expire after one minute.\").nullable(),\n}).passthrough().describe(\"Ephemeral key returned by the API.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema = z.object({\n type: z.string().describe(\"Type of turn detection, only 'server_vad' is currently supported.\").nullable().optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5.\").nullable().optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").nullable().optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.\").nullable().optional(),\n}).passthrough().describe(\"Turn detection configuration in response.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema = z.object({\n model: z.string().describe(\"The model to use for transcription.\").nullable().optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment.\").nullable().optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").nullable().optional(),\n}).passthrough().describe(\"Input audio transcription configuration in response.\");\nexport const OpenaiCreateRealtimeTranscriptionSessionOutput = z.object({\n modalities: z.array(z.string()).describe(\"The set of modalities the model can respond with. To disable audio, set this to ['text'].\").nullable().optional(),\n client_secret: OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema.nullable(),\n turn_detection: OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema.nullable().optional(),\n input_audio_format: z.string().describe(\"The format of input audio. Options are 'pcm16', 'g711_ulaw', or 'g711_alaw'.\").nullable().optional(),\n input_audio_transcription: OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for creating a realtime transcription session.\");\n\nexport const openaiCreateRealtimeTranscriptionSession = action(\"OPENAI_CREATE_REALTIME_TRANSCRIPTION_SESSION\", {\n slug: \"openai-create-realtime-transcription-session\",\n name: \"Create Realtime Transcription Session\",\n description: \"Tool to create an ephemeral API token for realtime transcriptions via the Realtime API. Use when you need to authenticate browser clients for realtime audio transcription sessions. Returns a session object with a client_secret containing a usable ephemeral API token.\",\n input: OpenaiCreateRealtimeTranscriptionSessionInput,\n output: OpenaiCreateRealtimeTranscriptionSessionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-realtime-transcription-session.mjs","names":[],"sources":["../../src/actions/create-realtime-transcription-session.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 OpenaiCreateRealtimeTranscriptionSessionInput = z.object({\n include: z.array(z.enum([\"item.input_audio_transcription.logprobs\"]).describe(\"Items to include in the transcription.\")).describe(\"The set of items to include in the transcription. Current available items are: 'item.input_audio_transcription.logprobs'\").optional(),\n turn_detection: z.object({\n type: z.string().describe(\"Type of turn detection. Only 'server_vad' is currently supported for transcription sessions.\").optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.\").optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.\").optional(),\n}).describe(\"Configuration for turn detection.\").optional(),\n input_audio_format: z.enum([\"pcm16\", \"g711_ulaw\", \"g711_alaw\"]).describe(\"Format of input audio for realtime transcription.\").optional(),\n input_audio_transcription: z.object({\n model: z.enum([\"whisper-1\", \"gpt-4o-mini-transcribe\", \"gpt-4o-mini-transcribe-2025-12-15\", \"gpt-4o-transcribe\", \"gpt-4o-transcribe-diarize\"]).describe(\"Model to use for transcription.\").optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment. For 'whisper-1', the prompt is a list of keywords. For 'gpt-4o-transcribe' models (excluding 'gpt-4o-transcribe-diarize'), the prompt is a free text string, for example 'expect words related to technology'.\").optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").optional(),\n}).describe(\"Configuration for input audio transcription.\").optional(),\n input_audio_noise_reduction: z.object({\n type: z.enum([\"near_field\", \"far_field\"]).describe(\"Type of noise reduction. 'near_field' is for close-talking microphones such as headphones, 'far_field' is for far-field microphones such as laptop or conference room microphones.\"),\n}).describe(\"Configuration for input audio noise reduction.\").optional(),\n}).describe(\"Request model for creating a realtime transcription session.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema = z.object({\n value: z.string().describe(\"Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.\").nullable(),\n expires_at: z.number().int().describe(\"Timestamp for when the token expires. Currently, all tokens expire after one minute.\").nullable(),\n}).passthrough().describe(\"Ephemeral key returned by the API.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema = z.object({\n type: z.string().describe(\"Type of turn detection, only 'server_vad' is currently supported.\").nullable().optional(),\n threshold: z.number().describe(\"Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5.\").nullable().optional(),\n prefix_padding_ms: z.number().int().describe(\"Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.\").nullable().optional(),\n silence_duration_ms: z.number().int().describe(\"Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.\").nullable().optional(),\n}).passthrough().describe(\"Turn detection configuration in response.\");\nconst OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema = z.object({\n model: z.string().describe(\"The model to use for transcription.\").nullable().optional(),\n prompt: z.string().describe(\"An optional text to guide the model's style or continue a previous audio segment.\").nullable().optional(),\n language: z.string().describe(\"The language of the input audio. Supplying the input language in ISO-639-1 format (e.g. 'en') will improve accuracy and latency.\").nullable().optional(),\n}).passthrough().describe(\"Input audio transcription configuration in response.\");\nexport const OpenaiCreateRealtimeTranscriptionSessionOutput = z.object({\n modalities: z.array(z.string()).describe(\"The set of modalities the model can respond with. To disable audio, set this to ['text'].\").nullable().optional(),\n client_secret: OpenaiCreateRealtimeTranscriptionSession_ClientSecretSchema.nullable(),\n turn_detection: OpenaiCreateRealtimeTranscriptionSession_ResponseTurnDetectionSchema.nullable().optional(),\n input_audio_format: z.string().describe(\"The format of input audio. Options are 'pcm16', 'g711_ulaw', or 'g711_alaw'.\").nullable().optional(),\n input_audio_transcription: OpenaiCreateRealtimeTranscriptionSession_ResponseInputAudioTranscriptionSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for creating a realtime transcription session.\");\n\nexport const openaiCreateRealtimeTranscriptionSession: AppAction<\n typeof OpenaiCreateRealtimeTranscriptionSessionInput,\n typeof OpenaiCreateRealtimeTranscriptionSessionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_REALTIME_TRANSCRIPTION_SESSION\", {\n slug: \"openai-create-realtime-transcription-session\",\n name: \"Create Realtime Transcription Session\",\n description: \"Tool to create an ephemeral API token for realtime transcriptions via the Realtime API. Use when you need to authenticate browser clients for realtime audio transcription sessions. Returns a session object with a client_secret containing a usable ephemeral API token.\",\n input: OpenaiCreateRealtimeTranscriptionSessionInput,\n output: OpenaiCreateRealtimeTranscriptionSessionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gDAAg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AAS;EAC1J,eAAe,4DAA4D,SAAS;EACpF,gBAAgB,qEAAqE,SAAS,CAAC,CAAC,SAAS;EACzG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,2BAA2B,+EAA+E,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-response.cjs","names":["z","action"],"sources":["../../src/actions/create-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateResponseInput = z.object({\n text: z.object({\n format: z.union([z.object({\n name: z.string().describe(\"Name identifier for the schema (e.g., 'math_response', 'person')\"),\n type: z.string().describe(\"Format type, must be 'json_schema'\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true\"),\n strict: z.boolean().nullable().optional(),\n}).passthrough().describe(\"JSON schema format specification for structured outputs.\"), z.object({\n type: z.string().describe(\"Format type, must be 'json_object'\"),\n}).passthrough().describe(\"JSON object format specification.\")]).optional(),\n}).describe(\"Text output configuration.\").optional(),\n input: z.union([z.string(), z.array(z.object({\n role: z.enum([\"system\", \"user\", \"assistant\", \"developer\"]).describe(\"Role of the message sender\"),\n content: z.union([z.string(), z.array(z.union([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.\"), z.object({\n type: z.string().describe(\"Content type, must be 'input_image'\"),\n detail: z.enum([\"auto\", \"low\", \"high\"]).nullable().optional(),\n image_url: z.string().describe(\"Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)\"),\n}).passthrough().describe(\"Image content for input.\")]))]),\n}).passthrough().describe(\"Message in the input array.\"))]),\n model: z.string().describe(\"Model to use for the response\"),\n store: z.boolean().describe(\"Whether to store the response for model distillation and training. Set to false to opt out\").optional(),\n tools: z.array(z.union([z.object({\n name: z.string().describe(\"Function name\"),\n type: z.string().describe(\"Tool type, must be 'function'\"),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Function tool definition for the Responses API.\\n\\nNote: The Responses API uses a flat structure where name, description,\\nand parameters are at the top level, unlike the Chat Completions API\\nwhich nests them inside a 'function' object.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'code_interpreter'\"),\n}).passthrough().describe(\"Code interpreter tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'file_search'\"),\n}).passthrough().describe(\"File search tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'web_search'\"),\n}).passthrough().describe(\"Web search tool definition.\")])).describe(\"List of tools the model can call. Supports function, code_interpreter, file_search, and web_search\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models\").optional(),\n stream: z.boolean().describe(\"Whether to stream the response. Returns a stream of events during generation\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata to attach to the response. All values must be strings\").optional(),\n reasoning: z.object({\n effort: z.enum([\"none\", \"minimal\", \"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level. 'none' for lowest latency, 'high' for maximum reasoning. GPT-5.2 default is 'none'\"),\n}).describe(\"Reasoning configuration for reasoning models.\").optional(),\n background: z.boolean().describe(\"Whether to run the model response in the background. When set to true, the response is created asynchronously and can be polled for completion. Only background responses can be cancelled\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) more focused. Not supported with reasoning models\").optional(),\n tool_choice: z.union([z.enum([\"auto\", \"none\", \"required\"]), z.object({\n type: z.string().describe(\"Must be 'function'\"),\n \"function\": z.record(z.string(), z.unknown()).describe(\"Function specification with 'name' key\"),\n}).passthrough().describe(\"Specific function to call.\")]).optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens the model can generate in the response\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling. Default is true\").optional(),\n}).describe(\"Request parameters for creating a response via the Responses API.\");\nconst OpenaiCreateResponse_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 generated\").nullable(),\n}).passthrough().describe(\"Token usage information.\");\nconst OpenaiCreateResponse_OutputContentSchema = z.object({\n text: z.string().describe(\"Text content if type is 'output_text'\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable(),\n}).passthrough().describe(\"Content within an output item.\");\nconst OpenaiCreateResponse_OutputItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items, e.g., 'assistant'\").nullable().optional(),\n type: z.string().describe(\"Type of output item, e.g., 'message', 'reasoning'\").nullable(),\n content: z.array(OpenaiCreateResponse_OutputContentSchema).describe(\"Array of content objects\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated (for reasoning items)\").nullable().optional(),\n}).passthrough().describe(\"Output item in the output array.\");\nexport const OpenaiCreateResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n model: z.string().describe(\"Model used to generate the response\").nullable(),\n usage: OpenaiCreateResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCreateResponse_OutputItemSchema).describe(\"Array of output items from the model, which may include messages, reasoning items, tool calls, etc.\"),\n status: z.string().describe(\"Completion status, e.g., 'completed'\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n output_text: z.string().describe(\"Aggregated text output from all output items (SDK convenience property, may not be in raw API response)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the Responses API.\");\n\nexport const openaiCreateResponse = action(\"OPENAI_CREATE_RESPONSE\", {\n slug: \"openai-create-response\",\n name: \"Create Response\",\n description: \"Tool to generate a one-shot model response via the Responses API. Use for multimodal analysis (image + text), OCR/text extraction from images, or structured JSON outputs. For structured outputs, configure text.format with type='json_schema' and your schema. Returns the full Response object including id, output array, and aggregated output_text for parsing structured data.\",\n input: OpenaiCreateResponseInput,\n output: OpenaiCreateResponseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,EACf,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J;EAC9M,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D,GAAGA,IAAAA,EAAE,OAAO,EAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EA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ACrK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-response.cjs","names":["z","action"],"sources":["../../src/actions/create-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 OpenaiCreateResponseInput = z.object({\n text: z.object({\n format: z.union([z.object({\n name: z.string().describe(\"Name identifier for the schema (e.g., 'math_response', 'person')\"),\n type: z.string().describe(\"Format type, must be 'json_schema'\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true\"),\n strict: z.boolean().nullable().optional(),\n}).passthrough().describe(\"JSON schema format specification for structured outputs.\"), z.object({\n type: z.string().describe(\"Format type, must be 'json_object'\"),\n}).passthrough().describe(\"JSON object format specification.\")]).optional(),\n}).describe(\"Text output configuration.\").optional(),\n input: z.union([z.string(), z.array(z.object({\n role: z.enum([\"system\", \"user\", \"assistant\", \"developer\"]).describe(\"Role of the message sender\"),\n content: z.union([z.string(), z.array(z.union([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.\"), z.object({\n type: z.string().describe(\"Content type, must be 'input_image'\"),\n detail: z.enum([\"auto\", \"low\", \"high\"]).nullable().optional(),\n image_url: z.string().describe(\"Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)\"),\n}).passthrough().describe(\"Image content for input.\")]))]),\n}).passthrough().describe(\"Message in the input array.\"))]),\n model: z.string().describe(\"Model to use for the response\"),\n store: z.boolean().describe(\"Whether to store the response for model distillation and training. Set to false to opt out\").optional(),\n tools: z.array(z.union([z.object({\n name: z.string().describe(\"Function name\"),\n type: z.string().describe(\"Tool type, must be 'function'\"),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Function tool definition for the Responses API.\\n\\nNote: The Responses API uses a flat structure where name, description,\\nand parameters are at the top level, unlike the Chat Completions API\\nwhich nests them inside a 'function' object.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'code_interpreter'\"),\n}).passthrough().describe(\"Code interpreter tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'file_search'\"),\n}).passthrough().describe(\"File search tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'web_search'\"),\n}).passthrough().describe(\"Web search tool definition.\")])).describe(\"List of tools the model can call. Supports function, code_interpreter, file_search, and web_search\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models\").optional(),\n stream: z.boolean().describe(\"Whether to stream the response. Returns a stream of events during generation\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata to attach to the response. All values must be strings\").optional(),\n reasoning: z.object({\n effort: z.enum([\"none\", \"minimal\", \"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level. 'none' for lowest latency, 'high' for maximum reasoning. GPT-5.2 default is 'none'\"),\n}).describe(\"Reasoning configuration for reasoning models.\").optional(),\n background: z.boolean().describe(\"Whether to run the model response in the background. When set to true, the response is created asynchronously and can be polled for completion. Only background responses can be cancelled\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) more focused. Not supported with reasoning models\").optional(),\n tool_choice: z.union([z.enum([\"auto\", \"none\", \"required\"]), z.object({\n type: z.string().describe(\"Must be 'function'\"),\n \"function\": z.record(z.string(), z.unknown()).describe(\"Function specification with 'name' key\"),\n}).passthrough().describe(\"Specific function to call.\")]).optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens the model can generate in the response\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling. Default is true\").optional(),\n}).describe(\"Request parameters for creating a response via the Responses API.\");\nconst OpenaiCreateResponse_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 generated\").nullable(),\n}).passthrough().describe(\"Token usage information.\");\nconst OpenaiCreateResponse_OutputContentSchema = z.object({\n text: z.string().describe(\"Text content if type is 'output_text'\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable(),\n}).passthrough().describe(\"Content within an output item.\");\nconst OpenaiCreateResponse_OutputItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items, e.g., 'assistant'\").nullable().optional(),\n type: z.string().describe(\"Type of output item, e.g., 'message', 'reasoning'\").nullable(),\n content: z.array(OpenaiCreateResponse_OutputContentSchema).describe(\"Array of content objects\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated (for reasoning items)\").nullable().optional(),\n}).passthrough().describe(\"Output item in the output array.\");\nexport const OpenaiCreateResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n model: z.string().describe(\"Model used to generate the response\").nullable(),\n usage: OpenaiCreateResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCreateResponse_OutputItemSchema).describe(\"Array of output items from the model, which may include messages, reasoning items, tool calls, etc.\"),\n status: z.string().describe(\"Completion status, e.g., 'completed'\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n output_text: z.string().describe(\"Aggregated text output from all output items (SDK convenience property, may not be in raw API response)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the Responses API.\");\n\nexport const openaiCreateResponse: AppAction<\n typeof OpenaiCreateResponseInput,\n typeof OpenaiCreateResponseOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_RESPONSE\", {\n slug: \"openai-create-response\",\n name: \"Create Response\",\n description: \"Tool to generate a one-shot model response via the Responses API. Use for multimodal analysis (image + text), OCR/text extraction from images, or structured JSON outputs. For structured outputs, configure text.format with type='json_schema' and your schema. Returns the full Response object including id, output array, and aggregated output_text for parsing structured data.\",\n input: OpenaiCreateResponseInput,\n output: OpenaiCreateResponseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,EACf,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J;EAC9M,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D,GAAGA,IAAAA,EAAE,OAAO,EAC9F,MAAMA,IAAAA,EAAE,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qC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,OAAO,qCAAqC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qGAAqG;CACrK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,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-response.d.ts
|
|
@@ -66,8 +68,8 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
66
68
|
}>>>;
|
|
67
69
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
68
70
|
tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
69
|
-
auto: "auto";
|
|
70
71
|
none: "none";
|
|
72
|
+
auto: "auto";
|
|
71
73
|
required: "required";
|
|
72
74
|
}>, z.ZodObject<{
|
|
73
75
|
type: z.ZodString;
|
|
@@ -99,83 +101,7 @@ declare const OpenaiCreateResponseOutput: z.ZodObject<{
|
|
|
99
101
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
100
102
|
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
103
|
}, z.core.$loose>;
|
|
102
|
-
declare const openaiCreateResponse:
|
|
103
|
-
input: string | {
|
|
104
|
-
[x: string]: unknown;
|
|
105
|
-
role: "user" | "assistant" | "system" | "developer";
|
|
106
|
-
content: string | ({
|
|
107
|
-
[x: string]: unknown;
|
|
108
|
-
text: string;
|
|
109
|
-
type: string;
|
|
110
|
-
} | {
|
|
111
|
-
[x: string]: unknown;
|
|
112
|
-
type: string;
|
|
113
|
-
image_url: string;
|
|
114
|
-
detail?: "auto" | "low" | "high" | null | undefined;
|
|
115
|
-
})[];
|
|
116
|
-
}[];
|
|
117
|
-
model: string;
|
|
118
|
-
text?: {
|
|
119
|
-
format?: {
|
|
120
|
-
[x: string]: unknown;
|
|
121
|
-
name: string;
|
|
122
|
-
type: string;
|
|
123
|
-
schema: Record<string, unknown>;
|
|
124
|
-
strict?: boolean | null | undefined;
|
|
125
|
-
} | {
|
|
126
|
-
[x: string]: unknown;
|
|
127
|
-
type: string;
|
|
128
|
-
} | undefined;
|
|
129
|
-
} | undefined;
|
|
130
|
-
store?: boolean | undefined;
|
|
131
|
-
tools?: ({
|
|
132
|
-
[x: string]: unknown;
|
|
133
|
-
name: string;
|
|
134
|
-
type: string;
|
|
135
|
-
strict?: boolean | null | undefined;
|
|
136
|
-
parameters?: Record<string, unknown> | null | undefined;
|
|
137
|
-
description?: string | null | undefined;
|
|
138
|
-
} | {
|
|
139
|
-
[x: string]: unknown;
|
|
140
|
-
type: string;
|
|
141
|
-
} | {
|
|
142
|
-
[x: string]: unknown;
|
|
143
|
-
type: string;
|
|
144
|
-
} | {
|
|
145
|
-
[x: string]: unknown;
|
|
146
|
-
type: string;
|
|
147
|
-
})[] | undefined;
|
|
148
|
-
top_p?: number | undefined;
|
|
149
|
-
stream?: boolean | undefined;
|
|
150
|
-
metadata?: Record<string, unknown> | undefined;
|
|
151
|
-
reasoning?: {
|
|
152
|
-
effort: "none" | "low" | "medium" | "high" | "minimal";
|
|
153
|
-
} | undefined;
|
|
154
|
-
background?: boolean | undefined;
|
|
155
|
-
modalities?: ("text" | "audio")[] | undefined;
|
|
156
|
-
temperature?: number | undefined;
|
|
157
|
-
tool_choice?: "auto" | "none" | "required" | {
|
|
158
|
-
[x: string]: unknown;
|
|
159
|
-
type: string;
|
|
160
|
-
function: Record<string, unknown>;
|
|
161
|
-
} | undefined;
|
|
162
|
-
max_output_tokens?: number | undefined;
|
|
163
|
-
parallel_tool_calls?: boolean | undefined;
|
|
164
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
165
|
-
connectionId: z.ZodString;
|
|
166
|
-
entityId: z.ZodString;
|
|
167
|
-
instanceId: z.ZodString;
|
|
168
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
-
generic_api_key: z.ZodString;
|
|
170
|
-
organization_id: z.ZodString;
|
|
171
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
172
|
-
connectionId: z.ZodString;
|
|
173
|
-
entityId: z.ZodString;
|
|
174
|
-
instanceId: z.ZodString;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
generic_api_key: z.ZodString;
|
|
177
|
-
organization_id: z.ZodString;
|
|
178
|
-
}, z.core.$strip>>]>;
|
|
104
|
+
declare const openaiCreateResponse: AppAction<typeof OpenaiCreateResponseInput, typeof OpenaiCreateResponseOutput, typeof openai.credential>;
|
|
179
105
|
//#endregion
|
|
180
106
|
export { openaiCreateResponse };
|
|
181
107
|
//# sourceMappingURL=create-response.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-response.d.cts","names":[],"sources":["../../src/actions/create-response.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-response.d.cts","names":[],"sources":["../../src/actions/create-response.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqEzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|