@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-vector-store.mjs","names":[],"sources":["../../src/actions/search-vector-store.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiSearchVectorStoreInput = z.object({\n query: z.union([z.string(), z.array(z.string())]),\n filters: z.record(z.string(), z.unknown()).describe(\"A filter to apply based on file attributes. Can be a comparison filter with 'type', 'key', and 'value' fields, or a compound filter with 'type' and 'filters' fields combining multiple filters.\").optional(),\n rewrite_query: z.boolean().default(false).describe(\"Whether to rewrite the natural language query for vector search.\").optional(),\n max_num_results: z.number().int().default(10).describe(\"The maximum number of results to return. Must be between 1 and 50.\").optional(),\n ranking_options: z.object({\n ranker: z.enum([\"none\", \"auto\", \"default-2024-11-15\"]).default(\"auto\").describe(\"Enable re-ranking; set to 'none' to disable, which can help reduce latency. Default is 'auto'.\").optional(),\n score_threshold: z.number().default(0).describe(\"Minimum score threshold for results. Must be between 0 and 1.\").optional(),\n}).describe(\"Ranking options for search.\").optional(),\n vector_store_id: z.string().describe(\"The ID of the vector store to search.\"),\n}).describe(\"Request model for searching a vector store.\");\nconst OpenaiSearchVectorStore_ContentItemSchema = z.object({\n text: z.string().describe(\"The text content, if type is 'text'.\").nullable().optional(),\n type: z.string().describe(\"The type of content (e.g., 'text').\").nullable(),\n}).passthrough().describe(\"An item in the content array of a search result.\");\nconst OpenaiSearchVectorStore_SearchResultItemSchema = z.object({\n score: z.number().describe(\"The relevance score of this result.\").nullable(),\n content: z.array(OpenaiSearchVectorStore_ContentItemSchema).describe(\"The content items from the file that matched the query.\"),\n file_id: z.string().describe(\"The ID of the file containing this result.\").nullable(),\n filename: z.string().describe(\"The name of the file containing this result.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"File attributes associated with this result.\"),\n}).passthrough().describe(\"A single search result item.\");\nexport const OpenaiSearchVectorStoreOutput = z.object({\n data: z.array(OpenaiSearchVectorStore_SearchResultItemSchema).describe(\"The list of search result items.\"),\n object: z.string().describe(\"The object type, which is always 'vector_store.search_results.page'.\").nullable(),\n has_more: z.boolean().describe(\"Indicates if there are more results to fetch.\").nullable(),\n next_page: z.string().describe(\"Cursor for fetching the next page of results, if available.\").nullable().optional(),\n search_query: z.array(z.string()).describe(\"The query used for this search.\"),\n}).passthrough().describe(\"Response schema for vector store search.\");\n\nexport const openaiSearchVectorStore = action(\"OPENAI_SEARCH_VECTOR_STORE\", {\n slug: \"openai-search-vector-store\",\n name: \"Search Vector Store\",\n description: \"Tool to search a vector store for relevant chunks based on a query and file attributes filter. Use when you need to find specific content within a vector store for retrieval-augmented generation (RAG) or custom search workflows.\",\n input: OpenaiSearchVectorStoreInput,\n output: OpenaiSearchVectorStoreOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-vector-store.mjs","names":[],"sources":["../../src/actions/search-vector-store.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 OpenaiSearchVectorStoreInput = z.object({\n query: z.union([z.string(), z.array(z.string())]),\n filters: z.record(z.string(), z.unknown()).describe(\"A filter to apply based on file attributes. Can be a comparison filter with 'type', 'key', and 'value' fields, or a compound filter with 'type' and 'filters' fields combining multiple filters.\").optional(),\n rewrite_query: z.boolean().default(false).describe(\"Whether to rewrite the natural language query for vector search.\").optional(),\n max_num_results: z.number().int().default(10).describe(\"The maximum number of results to return. Must be between 1 and 50.\").optional(),\n ranking_options: z.object({\n ranker: z.enum([\"none\", \"auto\", \"default-2024-11-15\"]).default(\"auto\").describe(\"Enable re-ranking; set to 'none' to disable, which can help reduce latency. Default is 'auto'.\").optional(),\n score_threshold: z.number().default(0).describe(\"Minimum score threshold for results. Must be between 0 and 1.\").optional(),\n}).describe(\"Ranking options for search.\").optional(),\n vector_store_id: z.string().describe(\"The ID of the vector store to search.\"),\n}).describe(\"Request model for searching a vector store.\");\nconst OpenaiSearchVectorStore_ContentItemSchema = z.object({\n text: z.string().describe(\"The text content, if type is 'text'.\").nullable().optional(),\n type: z.string().describe(\"The type of content (e.g., 'text').\").nullable(),\n}).passthrough().describe(\"An item in the content array of a search result.\");\nconst OpenaiSearchVectorStore_SearchResultItemSchema = z.object({\n score: z.number().describe(\"The relevance score of this result.\").nullable(),\n content: z.array(OpenaiSearchVectorStore_ContentItemSchema).describe(\"The content items from the file that matched the query.\"),\n file_id: z.string().describe(\"The ID of the file containing this result.\").nullable(),\n filename: z.string().describe(\"The name of the file containing this result.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"File attributes associated with this result.\"),\n}).passthrough().describe(\"A single search result item.\");\nexport const OpenaiSearchVectorStoreOutput = z.object({\n data: z.array(OpenaiSearchVectorStore_SearchResultItemSchema).describe(\"The list of search result items.\"),\n object: z.string().describe(\"The object type, which is always 'vector_store.search_results.page'.\").nullable(),\n has_more: z.boolean().describe(\"Indicates if there are more results to fetch.\").nullable(),\n next_page: z.string().describe(\"Cursor for fetching the next page of results, if available.\").nullable().optional(),\n search_query: z.array(z.string()).describe(\"The query used for this search.\"),\n}).passthrough().describe(\"Response schema for vector store search.\");\n\nexport const openaiSearchVectorStore: AppAction<\n typeof OpenaiSearchVectorStoreInput,\n typeof OpenaiSearchVectorStoreOutput,\n typeof openai.credential\n> = action(\"OPENAI_SEARCH_VECTOR_STORE\", {\n slug: \"openai-search-vector-store\",\n name: \"Search Vector Store\",\n description: \"Tool to search a vector store for relevant chunks based on a query and file attributes filter. Use when you need to find specific content within a vector store for retrieval-augmented generation (RAG) or custom search workflows.\",\n input: OpenaiSearchVectorStoreInput,\n output: OpenaiSearchVectorStoreOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACjQ,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChI,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtI,iBAAiB,EAAE,OAAO;EAC1B,QAAQ,EAAE,KAAK;GAAC;GAAQ;GAAQ;EAAoB,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC3L,iBAAiB,EAAE,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,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-tool-outputs-to-run.cjs","names":["z","action"],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiSubmitToolOutputsToRunInput = z.object({\n run_id: z.string().describe(\"The ID of the run that requires the tool output submission. The run must have status 'requires_action' and required_action.type must be 'submit_tool_outputs'\"),\n stream: z.boolean().describe(\"If true, returns a stream of events during the run execution after submitting tool outputs\").optional(),\n thread_id: z.string().describe(\"The ID of the thread to which this run belongs\"),\n tool_outputs: z.array(z.object({\n output: z.string().describe(\"The output of the tool call to be submitted to continue the run\"),\n tool_call_id: z.string().describe(\"The ID of the tool call in the required_action object within the run object the output is being submitted for\"),\n}).passthrough().describe(\"A tool output to submit for a tool call.\")).describe(\"A list of tools for which the outputs are being submitted. All tool outputs must be submitted in a single request\"),\n}).describe(\"Request model for submitting tool outputs to a run.\");\nconst OpenaiSubmitToolOutputsToRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Usage statistics for the run.\");\nconst OpenaiSubmitToolOutputsToRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"A human-readable description of the error\").nullable(),\n}).passthrough().describe(\"Last error associated with the run.\");\nconst OpenaiSubmitToolOutputsToRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"For now, this is always submit_tool_outputs\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details on the tool outputs needed for this run to continue\"),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run\").nullable(),\n}).passthrough().describe(\"Details on why the run is incomplete.\");\nconst OpenaiSubmitToolOutputsToRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Thread truncation controls.\");\nexport const OpenaiSubmitToolOutputsToRunOutput = z.object({\n id: z.string().describe(\"The identifier, which can be referenced in API endpoints\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\"),\n top_p: z.number().describe(\"The nucleus sampling value used for this run. If not set, defaults to 1\").nullable().optional(),\n usage: OpenaiSubmitToolOutputsToRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always thread.run\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run, which can be either queued, in_progress, requires_action, cancelling, cancelled, failed, completed, incomplete, or expired\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on as a part of this run\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiSubmitToolOutputsToRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used for this run. If not set, defaults to 1\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiSubmitToolOutputsToRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"The maximum number of prompt tokens specified to have been used over the course of the run\").nullable().optional(),\n incomplete_details: OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable(),\n truncation_strategy: OpenaiSubmitToolOutputsToRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"The maximum number of completion tokens specified to have been used over the course of the run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for submitting tool outputs to a run.\");\n\nexport const openaiSubmitToolOutputsToRun = action(\"OPENAI_SUBMIT_TOOL_OUTPUTS_TO_RUN\", {\n slug: \"openai-submit-tool-outputs-to-run\",\n name: \"Submit Tool Outputs to Run\",\n description: \"Tool to submit tool call outputs to continue a run that requires action. Use when a run has status 'requires_action' and required_action.type is 'submit_tool_outputs'. All tool outputs must be submitted together in a single request.\",\n input: OpenaiSubmitToolOutputsToRunInput,\n output: OpenaiSubmitToolOutputsToRunOutput,\n});\n"],"mappings":";;;AAIA,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-run.cjs","names":["z","action"],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiSubmitToolOutputsToRunInput = z.object({\n run_id: z.string().describe(\"The ID of the run that requires the tool output submission. The run must have status 'requires_action' and required_action.type must be 'submit_tool_outputs'\"),\n stream: z.boolean().describe(\"If true, returns a stream of events during the run execution after submitting tool outputs\").optional(),\n thread_id: z.string().describe(\"The ID of the thread to which this run belongs\"),\n tool_outputs: z.array(z.object({\n output: z.string().describe(\"The output of the tool call to be submitted to continue the run\"),\n tool_call_id: z.string().describe(\"The ID of the tool call in the required_action object within the run object the output is being submitted for\"),\n}).passthrough().describe(\"A tool output to submit for a tool call.\")).describe(\"A list of tools for which the outputs are being submitted. All tool outputs must be submitted in a single request\"),\n}).describe(\"Request model for submitting tool outputs to a run.\");\nconst OpenaiSubmitToolOutputsToRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Usage statistics for the run.\");\nconst OpenaiSubmitToolOutputsToRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"A human-readable description of the error\").nullable(),\n}).passthrough().describe(\"Last error associated with the run.\");\nconst OpenaiSubmitToolOutputsToRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"For now, this is always submit_tool_outputs\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details on the tool outputs needed for this run to continue\"),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run\").nullable(),\n}).passthrough().describe(\"Details on why the run is incomplete.\");\nconst OpenaiSubmitToolOutputsToRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Thread truncation controls.\");\nexport const OpenaiSubmitToolOutputsToRunOutput = z.object({\n id: z.string().describe(\"The identifier, which can be referenced in API endpoints\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\"),\n top_p: z.number().describe(\"The nucleus sampling value used for this run. If not set, defaults to 1\").nullable().optional(),\n usage: OpenaiSubmitToolOutputsToRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always thread.run\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run, which can be either queued, in_progress, requires_action, cancelling, cancelled, failed, completed, incomplete, or expired\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on as a part of this run\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiSubmitToolOutputsToRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used for this run. If not set, defaults to 1\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiSubmitToolOutputsToRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"The maximum number of prompt tokens specified to have been used over the course of the run\").nullable().optional(),\n incomplete_details: OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable(),\n truncation_strategy: OpenaiSubmitToolOutputsToRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"The maximum number of completion tokens specified to have been used over the course of the run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for submitting tool outputs to a run.\");\n\nexport const openaiSubmitToolOutputsToRun: AppAction<\n typeof OpenaiSubmitToolOutputsToRunInput,\n typeof OpenaiSubmitToolOutputsToRunOutput,\n typeof openai.credential\n> = action(\"OPENAI_SUBMIT_TOOL_OUTPUTS_TO_RUN\", {\n slug: \"openai-submit-tool-outputs-to-run\",\n name: \"Submit Tool Outputs to Run\",\n description: \"Tool to submit tool call outputs to continue a run that requires action. Use when a run has status 'requires_action' and required_action.type is 'submit_tool_outputs'. All tool outputs must be submitted together in a single request.\",\n input: OpenaiSubmitToolOutputsToRunInput,\n output: OpenaiSubmitToolOutputsToRunOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC3L,QAAQA,IAAAA,EAAE,QAAQ,CAA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run.d.ts
|
|
@@ -22,15 +24,15 @@ declare const OpenaiSubmitToolOutputsToRunOutput: z.ZodObject<{
|
|
|
22
24
|
}, z.core.$loose>>>;
|
|
23
25
|
object: z.ZodNullable<z.ZodString>;
|
|
24
26
|
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
-
|
|
27
|
+
failed: "failed";
|
|
26
28
|
in_progress: "in_progress";
|
|
27
|
-
|
|
29
|
+
completed: "completed";
|
|
30
|
+
expired: "expired";
|
|
28
31
|
cancelling: "cancelling";
|
|
29
32
|
cancelled: "cancelled";
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
queued: "queued";
|
|
34
|
+
requires_action: "requires_action";
|
|
32
35
|
incomplete: "incomplete";
|
|
33
|
-
expired: "expired";
|
|
34
36
|
}>>;
|
|
35
37
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
38
|
failed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -71,30 +73,7 @@ declare const OpenaiSubmitToolOutputsToRunOutput: z.ZodObject<{
|
|
|
71
73
|
}, z.core.$loose>>>;
|
|
72
74
|
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
73
75
|
}, z.core.$loose>;
|
|
74
|
-
declare const openaiSubmitToolOutputsToRun:
|
|
75
|
-
run_id: string;
|
|
76
|
-
thread_id: string;
|
|
77
|
-
tool_outputs: {
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
output: string;
|
|
80
|
-
tool_call_id: string;
|
|
81
|
-
}[];
|
|
82
|
-
stream?: boolean | undefined;
|
|
83
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
84
|
-
connectionId: z.ZodString;
|
|
85
|
-
entityId: z.ZodString;
|
|
86
|
-
instanceId: z.ZodString;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
generic_api_key: z.ZodString;
|
|
89
|
-
organization_id: z.ZodString;
|
|
90
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
91
|
-
connectionId: z.ZodString;
|
|
92
|
-
entityId: z.ZodString;
|
|
93
|
-
instanceId: z.ZodString;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
generic_api_key: z.ZodString;
|
|
96
|
-
organization_id: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>]>;
|
|
76
|
+
declare const openaiSubmitToolOutputsToRun: AppAction<typeof OpenaiSubmitToolOutputsToRunInput, typeof OpenaiSubmitToolOutputsToRunOutput, typeof openai.credential>;
|
|
98
77
|
//#endregion
|
|
99
78
|
export { openaiSubmitToolOutputsToRun };
|
|
100
79
|
//# sourceMappingURL=submit-tool-outputs-to-run.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-tool-outputs-to-run.d.cts","names":[],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit-tool-outputs-to-run.d.cts","names":[],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cA6BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,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/submit-tool-outputs-to-run.d.ts
|
|
@@ -22,15 +24,15 @@ declare const OpenaiSubmitToolOutputsToRunOutput: z.ZodObject<{
|
|
|
22
24
|
}, z.core.$loose>>>;
|
|
23
25
|
object: z.ZodNullable<z.ZodString>;
|
|
24
26
|
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
-
|
|
27
|
+
failed: "failed";
|
|
26
28
|
in_progress: "in_progress";
|
|
27
|
-
|
|
29
|
+
completed: "completed";
|
|
30
|
+
expired: "expired";
|
|
28
31
|
cancelling: "cancelling";
|
|
29
32
|
cancelled: "cancelled";
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
queued: "queued";
|
|
34
|
+
requires_action: "requires_action";
|
|
32
35
|
incomplete: "incomplete";
|
|
33
|
-
expired: "expired";
|
|
34
36
|
}>>;
|
|
35
37
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
38
|
failed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -71,30 +73,7 @@ declare const OpenaiSubmitToolOutputsToRunOutput: z.ZodObject<{
|
|
|
71
73
|
}, z.core.$loose>>>;
|
|
72
74
|
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
73
75
|
}, z.core.$loose>;
|
|
74
|
-
declare const openaiSubmitToolOutputsToRun:
|
|
75
|
-
run_id: string;
|
|
76
|
-
thread_id: string;
|
|
77
|
-
tool_outputs: {
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
output: string;
|
|
80
|
-
tool_call_id: string;
|
|
81
|
-
}[];
|
|
82
|
-
stream?: boolean | undefined;
|
|
83
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
84
|
-
connectionId: z.ZodString;
|
|
85
|
-
entityId: z.ZodString;
|
|
86
|
-
instanceId: z.ZodString;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
generic_api_key: z.ZodString;
|
|
89
|
-
organization_id: z.ZodString;
|
|
90
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
91
|
-
connectionId: z.ZodString;
|
|
92
|
-
entityId: z.ZodString;
|
|
93
|
-
instanceId: z.ZodString;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
generic_api_key: z.ZodString;
|
|
96
|
-
organization_id: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>]>;
|
|
76
|
+
declare const openaiSubmitToolOutputsToRun: AppAction<typeof OpenaiSubmitToolOutputsToRunInput, typeof OpenaiSubmitToolOutputsToRunOutput, typeof openai.credential>;
|
|
98
77
|
//#endregion
|
|
99
78
|
export { openaiSubmitToolOutputsToRun };
|
|
100
79
|
//# sourceMappingURL=submit-tool-outputs-to-run.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-tool-outputs-to-run.d.mts","names":[],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit-tool-outputs-to-run.d.mts","names":[],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cA6BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8BlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-tool-outputs-to-run.mjs","names":[],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiSubmitToolOutputsToRunInput = z.object({\n run_id: z.string().describe(\"The ID of the run that requires the tool output submission. The run must have status 'requires_action' and required_action.type must be 'submit_tool_outputs'\"),\n stream: z.boolean().describe(\"If true, returns a stream of events during the run execution after submitting tool outputs\").optional(),\n thread_id: z.string().describe(\"The ID of the thread to which this run belongs\"),\n tool_outputs: z.array(z.object({\n output: z.string().describe(\"The output of the tool call to be submitted to continue the run\"),\n tool_call_id: z.string().describe(\"The ID of the tool call in the required_action object within the run object the output is being submitted for\"),\n}).passthrough().describe(\"A tool output to submit for a tool call.\")).describe(\"A list of tools for which the outputs are being submitted. All tool outputs must be submitted in a single request\"),\n}).describe(\"Request model for submitting tool outputs to a run.\");\nconst OpenaiSubmitToolOutputsToRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Usage statistics for the run.\");\nconst OpenaiSubmitToolOutputsToRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"A human-readable description of the error\").nullable(),\n}).passthrough().describe(\"Last error associated with the run.\");\nconst OpenaiSubmitToolOutputsToRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"For now, this is always submit_tool_outputs\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details on the tool outputs needed for this run to continue\"),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run\").nullable(),\n}).passthrough().describe(\"Details on why the run is incomplete.\");\nconst OpenaiSubmitToolOutputsToRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Thread truncation controls.\");\nexport const OpenaiSubmitToolOutputsToRunOutput = z.object({\n id: z.string().describe(\"The identifier, which can be referenced in API endpoints\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\"),\n top_p: z.number().describe(\"The nucleus sampling value used for this run. If not set, defaults to 1\").nullable().optional(),\n usage: OpenaiSubmitToolOutputsToRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always thread.run\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run, which can be either queued, in_progress, requires_action, cancelling, cancelled, failed, completed, incomplete, or expired\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on as a part of this run\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiSubmitToolOutputsToRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used for this run. If not set, defaults to 1\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiSubmitToolOutputsToRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"The maximum number of prompt tokens specified to have been used over the course of the run\").nullable().optional(),\n incomplete_details: OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable(),\n truncation_strategy: OpenaiSubmitToolOutputsToRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"The maximum number of completion tokens specified to have been used over the course of the run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for submitting tool outputs to a run.\");\n\nexport const openaiSubmitToolOutputsToRun = action(\"OPENAI_SUBMIT_TOOL_OUTPUTS_TO_RUN\", {\n slug: \"openai-submit-tool-outputs-to-run\",\n name: \"Submit Tool Outputs to Run\",\n description: \"Tool to submit tool call outputs to continue a run that requires action. Use when a run has status 'requires_action' and required_action.type is 'submit_tool_outputs'. All tool outputs must be submitted together in a single request.\",\n input: OpenaiSubmitToolOutputsToRunInput,\n output: OpenaiSubmitToolOutputsToRunOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC3L,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACpI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,cAAc,EAAE,MAAM,EAAE,OAAO;EAC/B,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,mHAAmH;AACnM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,2CAA2C,EAAE,OAAO;CAC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E,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"submit-tool-outputs-to-run.mjs","names":[],"sources":["../../src/actions/submit-tool-outputs-to-run.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiSubmitToolOutputsToRunInput = z.object({\n run_id: z.string().describe(\"The ID of the run that requires the tool output submission. The run must have status 'requires_action' and required_action.type must be 'submit_tool_outputs'\"),\n stream: z.boolean().describe(\"If true, returns a stream of events during the run execution after submitting tool outputs\").optional(),\n thread_id: z.string().describe(\"The ID of the thread to which this run belongs\"),\n tool_outputs: z.array(z.object({\n output: z.string().describe(\"The output of the tool call to be submitted to continue the run\"),\n tool_call_id: z.string().describe(\"The ID of the tool call in the required_action object within the run object the output is being submitted for\"),\n}).passthrough().describe(\"A tool output to submit for a tool call.\")).describe(\"A list of tools for which the outputs are being submitted. All tool outputs must be submitted in a single request\"),\n}).describe(\"Request model for submitting tool outputs to a run.\");\nconst OpenaiSubmitToolOutputsToRun_UsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total tokens used\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of prompt tokens used\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of completion tokens used\").nullable(),\n}).passthrough().describe(\"Usage statistics for the run.\");\nconst OpenaiSubmitToolOutputsToRun_LastErrorSchema = z.object({\n code: z.enum([\"server_error\", \"rate_limit_exceeded\", \"invalid_prompt\"]).describe(\"One of server_error, rate_limit_exceeded, or invalid_prompt\").nullable(),\n message: z.string().describe(\"A human-readable description of the error\").nullable(),\n}).passthrough().describe(\"Last error associated with the run.\");\nconst OpenaiSubmitToolOutputsToRun_RequiredActionSchema = z.object({\n type: z.string().describe(\"For now, this is always submit_tool_outputs\").nullable(),\n submit_tool_outputs: z.record(z.string(), z.unknown()).describe(\"Details on the tool outputs needed for this run to continue\"),\n}).passthrough().describe(\"Details on the action required to continue the run.\");\nconst OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema = z.object({\n reason: z.enum([\"max_completion_tokens\", \"max_prompt_tokens\"]).describe(\"The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run\").nullable(),\n}).passthrough().describe(\"Details on why the run is incomplete.\");\nconst OpenaiSubmitToolOutputsToRun_TruncationStrategySchema = z.object({\n type: z.string().describe(\"Truncation strategy type\").nullable(),\n last_messages: z.unknown().describe(\"Number of most recent messages to retain\").nullable().optional(),\n}).passthrough().describe(\"Thread truncation controls.\");\nexport const OpenaiSubmitToolOutputsToRunOutput = z.object({\n id: z.string().describe(\"The identifier, which can be referenced in API endpoints\").nullable(),\n model: z.string().describe(\"The model that the assistant used for this run\").nullable(),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"The list of tools that the assistant used for this run\"),\n top_p: z.number().describe(\"The nucleus sampling value used for this run. If not set, defaults to 1\").nullable().optional(),\n usage: OpenaiSubmitToolOutputsToRun_UsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always thread.run\").nullable(),\n status: z.enum([\"queued\", \"in_progress\", \"requires_action\", \"cancelling\", \"cancelled\", \"failed\", \"completed\", \"incomplete\", \"expired\"]).describe(\"The status of the run, which can be either queued, in_progress, requires_action, cancelling, cancelled, failed, completed, incomplete, or expired\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs for storing additional information\").nullable().optional(),\n failed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run failed\").nullable().optional(),\n thread_id: z.string().describe(\"The ID of the thread that was executed on as a part of this run\").nullable(),\n created_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was created\").nullable(),\n expires_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run will expire\").nullable().optional(),\n last_error: OpenaiSubmitToolOutputsToRun_LastErrorSchema.nullable().optional(),\n started_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was started\").nullable().optional(),\n temperature: z.number().describe(\"The sampling temperature used for this run. If not set, defaults to 1\").nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n assistant_id: z.string().describe(\"The ID of the assistant used for execution of this run\").nullable(),\n cancelled_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was cancelled\").nullable().optional(),\n completed_at: z.number().int().describe(\"The Unix timestamp (in seconds) for when the run was completed\").nullable().optional(),\n instructions: z.string().describe(\"The instructions that the assistant used for this run\").nullable().optional(),\n required_action: OpenaiSubmitToolOutputsToRun_RequiredActionSchema.nullable().optional(),\n response_format: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n max_prompt_tokens: z.number().int().describe(\"The maximum number of prompt tokens specified to have been used over the course of the run\").nullable().optional(),\n incomplete_details: OpenaiSubmitToolOutputsToRun_IncompleteDetailsSchema.nullable().optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use\").nullable(),\n truncation_strategy: OpenaiSubmitToolOutputsToRun_TruncationStrategySchema.nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"The maximum number of completion tokens specified to have been used over the course of the run\").nullable().optional(),\n}).passthrough().describe(\"Response schema for submitting tool outputs to a run.\");\n\nexport const openaiSubmitToolOutputsToRun: AppAction<\n typeof OpenaiSubmitToolOutputsToRunInput,\n typeof OpenaiSubmitToolOutputsToRunOutput,\n typeof openai.credential\n> = action(\"OPENAI_SUBMIT_TOOL_OUTPUTS_TO_RUN\", {\n slug: \"openai-submit-tool-outputs-to-run\",\n name: \"Submit Tool Outputs to Run\",\n description: \"Tool to submit tool call outputs to continue a run that requires action. Use when a run has status 'requires_action' and required_action.type is 'submit_tool_outputs'. All tool outputs must be submitted together in a single request.\",\n input: OpenaiSubmitToolOutputsToRunIn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AAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,iBAAiB,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,oBAAoB,qDAAqD,SAAS,CAAC,CAAC,SAAS;EAC7F,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClH,qBAAqB,sDAAsD,SAAS,CAAC,CAAC,SAAS;EAC/F,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/update-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiUpdateChatCompletionInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values to update for the chat completion. Pass null to clear metadata. All values must be strings\").optional(),\n completion_id: z.string().describe(\"The ID of the chat completion to update. Only completions created with store=true can be modified\"),\n}).describe(\"Request model for updating a stored chat completion.\");\nconst OpenaiUpdateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiUpdateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiUpdateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiUpdateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiUpdateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiUpdateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiUpdateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiUpdateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiUpdateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a stored chat completion.\");\n\nexport const openaiUpdateChatCompletion = action(\"OPENAI_UPDATE_CHAT_COMPLETION\", {\n slug: \"openai-update-chat-completion\",\n name: \"Update Chat Completion\",\n description: \"Tool to update metadata for a stored chat completion. Use when you need to modify tags or metadata for a completion that was created with store=true.\",\n input: OpenaiUpdateChatCompletionInput,\n output: OpenaiUpdateChatCompletionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/update-chat-completion.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 OpenaiUpdateChatCompletionInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values to update for the chat completion. Pass null to clear metadata. All values must be strings\").optional(),\n completion_id: z.string().describe(\"The ID of the chat completion to update. Only completions created with store=true can be modified\"),\n}).describe(\"Request model for updating a stored chat completion.\");\nconst OpenaiUpdateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiUpdateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiUpdateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiUpdateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiUpdateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiUpdateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiUpdateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiUpdateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiUpdateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a stored chat completion.\");\n\nexport const openaiUpdateChatCompletion: AppAction<\n typeof OpenaiUpdateChatCompletionInput,\n typeof OpenaiUpdateChatCompletionOutput,\n typeof openai.credential\n> = action(\"OPENAI_UPDATE_CHAT_COMPLETION\", {\n slug: \"openai-update-chat-completion\",\n name: \"Update Chat Completion\",\n description: \"Tool to update metadata for a stored chat completion. Use when you need to modify tags or metadata for a completion that was created with store=true.\",\n input: OpenaiUpdateChatCompletionInput,\n output: OpenaiUpdateChatCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC9L,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;AACxI,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,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,oDAAoD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gFAAgF;CACjK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACvH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5R,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/update-chat-completion.d.ts
|
|
@@ -43,24 +45,7 @@ declare const OpenaiUpdateChatCompletionOutput: z.ZodObject<{
|
|
|
43
45
|
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
46
|
system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const openaiUpdateChatCompletion:
|
|
47
|
-
completion_id: string;
|
|
48
|
-
metadata?: Record<string, unknown> | undefined;
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
organization_id: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
organization_id: z.ZodString;
|
|
63
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const openaiUpdateChatCompletion: AppAction<typeof OpenaiUpdateChatCompletionInput, typeof OpenaiUpdateChatCompletionOutput, typeof openai.credential>;
|
|
64
49
|
//#endregion
|
|
65
50
|
export { openaiUpdateChatCompletion };
|
|
66
51
|
//# sourceMappingURL=update-chat-completion.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chat-completion.d.cts","names":[],"sources":["../../src/actions/update-chat-completion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-chat-completion.d.cts","names":[],"sources":["../../src/actions/update-chat-completion.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAsC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,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/update-chat-completion.d.ts
|
|
@@ -43,24 +45,7 @@ declare const OpenaiUpdateChatCompletionOutput: z.ZodObject<{
|
|
|
43
45
|
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
46
|
system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const openaiUpdateChatCompletion:
|
|
47
|
-
completion_id: string;
|
|
48
|
-
metadata?: Record<string, unknown> | undefined;
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
organization_id: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
organization_id: z.ZodString;
|
|
63
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const openaiUpdateChatCompletion: AppAction<typeof OpenaiUpdateChatCompletionInput, typeof OpenaiUpdateChatCompletionOutput, typeof openai.credential>;
|
|
64
49
|
//#endregion
|
|
65
50
|
export { openaiUpdateChatCompletion };
|
|
66
51
|
//# sourceMappingURL=update-chat-completion.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chat-completion.d.mts","names":[],"sources":["../../src/actions/update-chat-completion.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-chat-completion.d.mts","names":[],"sources":["../../src/actions/update-chat-completion.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAsC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chat-completion.mjs","names":[],"sources":["../../src/actions/update-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiUpdateChatCompletionInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values to update for the chat completion. Pass null to clear metadata. All values must be strings\").optional(),\n completion_id: z.string().describe(\"The ID of the chat completion to update. Only completions created with store=true can be modified\"),\n}).describe(\"Request model for updating a stored chat completion.\");\nconst OpenaiUpdateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiUpdateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiUpdateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiUpdateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiUpdateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiUpdateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiUpdateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiUpdateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiUpdateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a stored chat completion.\");\n\nexport const openaiUpdateChatCompletion = action(\"OPENAI_UPDATE_CHAT_COMPLETION\", {\n slug: \"openai-update-chat-completion\",\n name: \"Update Chat Completion\",\n description: \"Tool to update metadata for a stored chat completion. Use when you need to modify tags or metadata for a completion that was created with store=true.\",\n input: OpenaiUpdateChatCompletionInput,\n output: OpenaiUpdateChatCompletionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-chat-completion.mjs","names":[],"sources":["../../src/actions/update-chat-completion.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 OpenaiUpdateChatCompletionInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values to update for the chat completion. Pass null to clear metadata. All values must be strings\").optional(),\n completion_id: z.string().describe(\"The ID of the chat completion to update. Only completions created with store=true can be modified\"),\n}).describe(\"Request model for updating a stored chat completion.\");\nconst OpenaiUpdateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiUpdateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiUpdateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiUpdateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiUpdateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiUpdateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiUpdateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiUpdateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiUpdateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiUpdateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiUpdateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a stored chat completion.\");\n\nexport const openaiUpdateChatCompletion: AppAction<\n typeof OpenaiUpdateChatCompletionInput,\n typeof OpenaiUpdateChatCompletionOutput,\n typeof openai.credential\n> = action(\"OPENAI_UPDATE_CHAT_COMPLETION\", {\n slug: \"openai-update-chat-completion\",\n name: \"Update Chat Completion\",\n description: \"Tool to update metadata for a stored chat completion. Use when you need to modify tags or metadata for a completion that was created with store=true.\",\n input: OpenaiUpdateChatCompletionInput,\n output: OpenaiUpdateChatCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC9L,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;AACxI,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,uDAAuD,EAAE,OAAO;CACpE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CA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ACb,OAAO;CACP,QApB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC9E,OAAO,iDAAiD,SAAS,CAAC,CAAC,SAAS;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gFAAgF;EACjK,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5R,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-conversation.cjs","names":["z","action"],"sources":["../../src/actions/update-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiUpdateConversationInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata key-value pairs to attach to the conversation. Up to 16 pairs allowed, with keys ≤64 chars and values ≤512 chars. Pass null to clear metadata.\").optional(),\n conversation_id: z.string().describe(\"The ID of the conversation to update.\"),\n}).describe(\"Request model for updating a conversation.\");\nexport const OpenaiUpdateConversationOutput = z.object({\n id: z.string().describe(\"The unique ID of the conversation\").nullable(),\n object: z.string().describe(\"The object type, which is always 'conversation'\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.\").nullable().optional(),\n created_at: z.number().int().describe(\"The time at which the conversation was created, measured in seconds since the Unix epoch\").nullable(),\n}).passthrough().describe(\"Response schema for updated conversation.\");\n\nexport const openaiUpdateConversation = action(\"OPENAI_UPDATE_CONVERSATION\", {\n slug: \"openai-update-conversation\",\n name: \"Update Conversation\",\n description: \"Tool to update a conversation's metadata. Use when you need to modify metadata for an existing conversation.\",\n input: OpenaiUpdateConversationInput,\n output: OpenaiUpdateConversationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-conversation.cjs","names":["z","action"],"sources":["../../src/actions/update-conversation.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 OpenaiUpdateConversationInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata key-value pairs to attach to the conversation. Up to 16 pairs allowed, with keys ≤64 chars and values ≤512 chars. Pass null to clear metadata.\").optional(),\n conversation_id: z.string().describe(\"The ID of the conversation to update.\"),\n}).describe(\"Request model for updating a conversation.\");\nexport const OpenaiUpdateConversationOutput = z.object({\n id: z.string().describe(\"The unique ID of the conversation\").nullable(),\n object: z.string().describe(\"The object type, which is always 'conversation'\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.\").nullable().optional(),\n created_at: z.number().int().describe(\"The time at which the conversation was created, measured in seconds since the Unix epoch\").nullable(),\n}).passthrough().describe(\"Response schema for updated conversation.\");\n\nexport const openaiUpdateConversation: AppAction<\n typeof OpenaiUpdateConversationInput,\n typeof OpenaiUpdateConversationOutput,\n typeof openai.credential\n> = action(\"OPENAI_UPDATE_CONVERSATION\", {\n slug: \"openai-update-conversation\",\n name: \"Update Conversation\",\n description: \"Tool to update a conversation's metadata. Use when you need to modify metadata for an existing conversation.\",\n input: OpenaiUpdateConversationInput,\n output: OpenaiUpdateConversationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CAClO,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qUAAqU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChZ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/update-conversation.d.ts
|
|
@@ -11,24 +13,7 @@ declare const OpenaiUpdateConversationOutput: z.ZodObject<{
|
|
|
11
13
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
14
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const openaiUpdateConversation:
|
|
15
|
-
conversation_id: string;
|
|
16
|
-
metadata?: Record<string, unknown> | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
organization_id: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
organization_id: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const openaiUpdateConversation: AppAction<typeof OpenaiUpdateConversationInput, typeof OpenaiUpdateConversationOutput, typeof openai.credential>;
|
|
32
17
|
//#endregion
|
|
33
18
|
export { openaiUpdateConversation };
|
|
34
19
|
//# sourceMappingURL=update-conversation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-conversation.d.cts","names":[],"sources":["../../src/actions/update-conversation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-conversation.d.cts","names":[],"sources":["../../src/actions/update-conversation.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAO9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/update-conversation.d.ts
|
|
@@ -11,24 +13,7 @@ declare const OpenaiUpdateConversationOutput: z.ZodObject<{
|
|
|
11
13
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
14
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const openaiUpdateConversation:
|
|
15
|
-
conversation_id: string;
|
|
16
|
-
metadata?: Record<string, unknown> | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
organization_id: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openai", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
organization_id: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const openaiUpdateConversation: AppAction<typeof OpenaiUpdateConversationInput, typeof OpenaiUpdateConversationOutput, typeof openai.credential>;
|
|
32
17
|
//#endregion
|
|
33
18
|
export { openaiUpdateConversation };
|
|
34
19
|
//# sourceMappingURL=update-conversation.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-conversation.d.mts","names":[],"sources":["../../src/actions/update-conversation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-conversation.d.mts","names":[],"sources":["../../src/actions/update-conversation.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAO9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-conversation.mjs","names":[],"sources":["../../src/actions/update-conversation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiUpdateConversationInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata key-value pairs to attach to the conversation. Up to 16 pairs allowed, with keys ≤64 chars and values ≤512 chars. Pass null to clear metadata.\").optional(),\n conversation_id: z.string().describe(\"The ID of the conversation to update.\"),\n}).describe(\"Request model for updating a conversation.\");\nexport const OpenaiUpdateConversationOutput = z.object({\n id: z.string().describe(\"The unique ID of the conversation\").nullable(),\n object: z.string().describe(\"The object type, which is always 'conversation'\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.\").nullable().optional(),\n created_at: z.number().int().describe(\"The time at which the conversation was created, measured in seconds since the Unix epoch\").nullable(),\n}).passthrough().describe(\"Response schema for updated conversation.\");\n\nexport const openaiUpdateConversation = action(\"OPENAI_UPDATE_CONVERSATION\", {\n slug: \"openai-update-conversation\",\n name: \"Update Conversation\",\n description: \"Tool to update a conversation's metadata. Use when you need to modify metadata for an existing conversation.\",\n input: OpenaiUpdateConversationInput,\n output: OpenaiUpdateConversationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-conversation.mjs","names":[],"sources":["../../src/actions/update-conversation.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 OpenaiUpdateConversationInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata key-value pairs to attach to the conversation. Up to 16 pairs allowed, with keys ≤64 chars and values ≤512 chars. Pass null to clear metadata.\").optional(),\n conversation_id: z.string().describe(\"The ID of the conversation to update.\"),\n}).describe(\"Request model for updating a conversation.\");\nexport const OpenaiUpdateConversationOutput = z.object({\n id: z.string().describe(\"The unique ID of the conversation\").nullable(),\n object: z.string().describe(\"The object type, which is always 'conversation'\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.\").nullable().optional(),\n created_at: z.number().int().describe(\"The time at which the conversation was created, measured in seconds since the Unix epoch\").nullable(),\n}).passthrough().describe(\"Response schema for updated conversation.\");\n\nexport const openaiUpdateConversation: AppAction<\n typeof OpenaiUpdateConversationInput,\n typeof OpenaiUpdateConversationOutput,\n typeof openai.credential\n> = action(\"OPENAI_UPDATE_CONVERSATION\", {\n slug: \"openai-update-conversation\",\n name: \"Update Conversation\",\n description: \"Tool to update a conversation's metadata. Use when you need to modify metadata for an existing conversation.\",\n input: OpenaiUpdateConversationInput,\n output: OpenaiUpdateConversationOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB2C,EAAE,OAAO;EACpD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EAClO,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC9E,CAAC,CAAC,CAAC,SAAS,4CAgBH;CACP,QAhB4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qUAAqU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChZ,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|