@keystrokehq/openai 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-upload-part.cjs +1 -1
- package/dist/actions/add-upload-part.cjs.map +1 -1
- package/dist/actions/add-upload-part.d.cts +1 -1
- package/dist/actions/add-upload-part.d.mts +1 -1
- package/dist/actions/add-upload-part.mjs +1 -1
- package/dist/actions/add-upload-part.mjs.map +1 -1
- package/dist/actions/cancel-batch.cjs +6 -6
- package/dist/actions/cancel-batch.cjs.map +1 -1
- package/dist/actions/cancel-batch.d.cts +10 -10
- package/dist/actions/cancel-batch.d.mts +10 -10
- package/dist/actions/cancel-batch.mjs +6 -6
- package/dist/actions/cancel-batch.mjs.map +1 -1
- package/dist/actions/cancel-eval-run.cjs +8 -8
- package/dist/actions/cancel-eval-run.cjs.map +1 -1
- package/dist/actions/cancel-eval-run.d.cts +8 -8
- package/dist/actions/cancel-eval-run.d.mts +8 -8
- package/dist/actions/cancel-eval-run.mjs +8 -8
- package/dist/actions/cancel-eval-run.mjs.map +1 -1
- package/dist/actions/cancel-response.cjs +11 -11
- package/dist/actions/cancel-response.cjs.map +1 -1
- package/dist/actions/cancel-response.d.cts +11 -11
- package/dist/actions/cancel-response.d.mts +11 -11
- package/dist/actions/cancel-response.mjs +11 -11
- package/dist/actions/cancel-response.mjs.map +1 -1
- package/dist/actions/cancel-run.cjs +7 -7
- package/dist/actions/cancel-run.cjs.map +1 -1
- package/dist/actions/cancel-run.d.cts +11 -11
- package/dist/actions/cancel-run.d.mts +11 -11
- package/dist/actions/cancel-run.mjs +7 -7
- package/dist/actions/cancel-run.mjs.map +1 -1
- package/dist/actions/cancel-upload.cjs +2 -2
- package/dist/actions/cancel-upload.cjs.map +1 -1
- package/dist/actions/cancel-upload.d.cts +3 -3
- package/dist/actions/cancel-upload.d.mts +3 -3
- package/dist/actions/cancel-upload.mjs +2 -2
- package/dist/actions/cancel-upload.mjs.map +1 -1
- package/dist/actions/compact-response.cjs +9 -9
- package/dist/actions/compact-response.cjs.map +1 -1
- package/dist/actions/compact-response.d.cts +11 -9
- package/dist/actions/compact-response.d.mts +11 -9
- package/dist/actions/compact-response.mjs +9 -9
- package/dist/actions/compact-response.mjs.map +1 -1
- package/dist/actions/create-audio-transcription.cjs +3 -3
- package/dist/actions/create-audio-transcription.cjs.map +1 -1
- package/dist/actions/create-audio-transcription.d.cts +3 -3
- package/dist/actions/create-audio-transcription.d.mts +3 -3
- package/dist/actions/create-audio-transcription.mjs +3 -3
- package/dist/actions/create-audio-transcription.mjs.map +1 -1
- package/dist/actions/create-audio-translation.cjs +1 -1
- package/dist/actions/create-audio-translation.cjs.map +1 -1
- package/dist/actions/create-audio-translation.d.cts +1 -1
- package/dist/actions/create-audio-translation.d.mts +1 -1
- package/dist/actions/create-audio-translation.mjs +1 -1
- package/dist/actions/create-audio-translation.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +9 -9
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +14 -14
- package/dist/actions/create-batch.d.mts +14 -14
- package/dist/actions/create-batch.mjs +9 -9
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +13 -13
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +19 -16
- package/dist/actions/create-chat-completion.d.mts +19 -16
- package/dist/actions/create-chat-completion.mjs +13 -13
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-completion.cjs +9 -9
- package/dist/actions/create-completion.cjs.map +1 -1
- package/dist/actions/create-completion.d.cts +11 -11
- package/dist/actions/create-completion.d.mts +11 -11
- package/dist/actions/create-completion.mjs +9 -9
- package/dist/actions/create-completion.mjs.map +1 -1
- package/dist/actions/create-container-file.cjs +1 -1
- package/dist/actions/create-container-file.cjs.map +1 -1
- package/dist/actions/create-container-file.d.cts +1 -1
- package/dist/actions/create-container-file.d.mts +1 -1
- package/dist/actions/create-container-file.mjs +1 -1
- package/dist/actions/create-container-file.mjs.map +1 -1
- package/dist/actions/create-container.cjs +8 -8
- package/dist/actions/create-container.cjs.map +1 -1
- package/dist/actions/create-container.d.cts +13 -9
- package/dist/actions/create-container.d.cts.map +1 -1
- package/dist/actions/create-container.d.mts +13 -9
- package/dist/actions/create-container.d.mts.map +1 -1
- package/dist/actions/create-container.mjs +8 -8
- package/dist/actions/create-container.mjs.map +1 -1
- package/dist/actions/create-conversation-items.cjs +4 -4
- package/dist/actions/create-conversation-items.cjs.map +1 -1
- package/dist/actions/create-conversation-items.d.cts +6 -4
- package/dist/actions/create-conversation-items.d.cts.map +1 -1
- package/dist/actions/create-conversation-items.d.mts +6 -4
- package/dist/actions/create-conversation-items.d.mts.map +1 -1
- package/dist/actions/create-conversation-items.mjs +4 -4
- package/dist/actions/create-conversation-items.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +3 -3
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +5 -4
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +5 -4
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +3 -3
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +3 -3
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +3 -3
- package/dist/actions/create-embeddings.d.mts +3 -3
- package/dist/actions/create-embeddings.mjs +3 -3
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/create-eval-run.cjs +19 -19
- package/dist/actions/create-eval-run.cjs.map +1 -1
- package/dist/actions/create-eval-run.d.cts +32 -23
- package/dist/actions/create-eval-run.d.mts +32 -23
- package/dist/actions/create-eval-run.mjs +19 -19
- package/dist/actions/create-eval-run.mjs.map +1 -1
- package/dist/actions/create-eval.cjs +10 -10
- package/dist/actions/create-eval.cjs.map +1 -1
- package/dist/actions/create-eval.d.cts +19 -10
- package/dist/actions/create-eval.d.mts +19 -10
- package/dist/actions/create-eval.mjs +10 -10
- package/dist/actions/create-eval.mjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.cjs +4 -4
- package/dist/actions/create-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.cts +5 -5
- package/dist/actions/create-fine-tuning-job.d.mts +5 -5
- package/dist/actions/create-fine-tuning-job.mjs +4 -4
- package/dist/actions/create-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/create-image-edit.cjs +5 -5
- package/dist/actions/create-image-edit.cjs.map +1 -1
- package/dist/actions/create-image-edit.d.cts +7 -6
- package/dist/actions/create-image-edit.d.mts +7 -6
- package/dist/actions/create-image-edit.mjs +5 -5
- package/dist/actions/create-image-edit.mjs.map +1 -1
- package/dist/actions/create-image-variation.cjs +2 -2
- package/dist/actions/create-image-variation.cjs.map +1 -1
- package/dist/actions/create-image-variation.d.cts +2 -2
- package/dist/actions/create-image-variation.d.mts +2 -2
- package/dist/actions/create-image-variation.mjs +2 -2
- package/dist/actions/create-image-variation.mjs.map +1 -1
- package/dist/actions/create-image.cjs +4 -4
- package/dist/actions/create-image.cjs.map +1 -1
- package/dist/actions/create-image.d.cts +4 -4
- package/dist/actions/create-image.d.mts +4 -4
- package/dist/actions/create-image.mjs +4 -4
- package/dist/actions/create-image.mjs.map +1 -1
- package/dist/actions/create-message.cjs +13 -13
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +17 -14
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +17 -14
- package/dist/actions/create-message.d.mts.map +1 -1
- package/dist/actions/create-message.mjs +13 -13
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/create-moderation.cjs +7 -7
- package/dist/actions/create-moderation.cjs.map +1 -1
- package/dist/actions/create-moderation.d.cts +9 -8
- package/dist/actions/create-moderation.d.cts.map +1 -1
- package/dist/actions/create-moderation.d.mts +9 -8
- package/dist/actions/create-moderation.d.mts.map +1 -1
- package/dist/actions/create-moderation.mjs +7 -7
- package/dist/actions/create-moderation.mjs.map +1 -1
- package/dist/actions/create-realtime-call.cjs +1 -1
- package/dist/actions/create-realtime-call.cjs.map +1 -1
- package/dist/actions/create-realtime-call.d.cts +1 -1
- package/dist/actions/create-realtime-call.d.mts +1 -1
- package/dist/actions/create-realtime-call.mjs +1 -1
- package/dist/actions/create-realtime-call.mjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.cjs +3 -3
- package/dist/actions/create-realtime-client-secret.cjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.cts +5 -3
- package/dist/actions/create-realtime-client-secret.d.mts +5 -3
- package/dist/actions/create-realtime-client-secret.mjs +3 -3
- package/dist/actions/create-realtime-client-secret.mjs.map +1 -1
- package/dist/actions/create-realtime-session.cjs +6 -6
- package/dist/actions/create-realtime-session.cjs.map +1 -1
- package/dist/actions/create-realtime-session.d.cts +10 -6
- package/dist/actions/create-realtime-session.d.mts +10 -6
- package/dist/actions/create-realtime-session.mjs +6 -6
- package/dist/actions/create-realtime-session.mjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.cjs +4 -4
- package/dist/actions/create-realtime-transcription-session.cjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.cts +4 -4
- package/dist/actions/create-realtime-transcription-session.d.mts +4 -4
- package/dist/actions/create-realtime-transcription-session.mjs +4 -4
- package/dist/actions/create-realtime-transcription-session.mjs.map +1 -1
- package/dist/actions/create-response.cjs +15 -15
- package/dist/actions/create-response.cjs.map +1 -1
- package/dist/actions/create-response.d.cts +28 -18
- package/dist/actions/create-response.d.mts +28 -18
- package/dist/actions/create-response.mjs +15 -15
- package/dist/actions/create-response.mjs.map +1 -1
- package/dist/actions/create-run.cjs +24 -24
- package/dist/actions/create-run.cjs.map +1 -1
- package/dist/actions/create-run.d.cts +36 -31
- package/dist/actions/create-run.d.mts +36 -31
- package/dist/actions/create-run.mjs +24 -24
- package/dist/actions/create-run.mjs.map +1 -1
- package/dist/actions/create-skill.cjs +3 -3
- package/dist/actions/create-skill.cjs.map +1 -1
- package/dist/actions/create-skill.d.cts +5 -3
- package/dist/actions/create-skill.d.mts +5 -3
- package/dist/actions/create-skill.mjs +3 -3
- package/dist/actions/create-skill.mjs.map +1 -1
- package/dist/actions/create-speech.cjs +2 -2
- package/dist/actions/create-speech.cjs.map +1 -1
- package/dist/actions/create-speech.d.cts +2 -2
- package/dist/actions/create-speech.d.mts +2 -2
- package/dist/actions/create-speech.mjs +2 -2
- package/dist/actions/create-speech.mjs.map +1 -1
- package/dist/actions/create-thread-and-run.cjs +29 -29
- package/dist/actions/create-thread-and-run.cjs.map +1 -1
- package/dist/actions/create-thread-and-run.d.cts +46 -39
- package/dist/actions/create-thread-and-run.d.mts +46 -39
- package/dist/actions/create-thread-and-run.mjs +29 -29
- package/dist/actions/create-thread-and-run.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +5 -5
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +7 -6
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +7 -6
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +5 -5
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/create-upload.cjs +2 -2
- package/dist/actions/create-upload.cjs.map +1 -1
- package/dist/actions/create-upload.d.cts +3 -3
- package/dist/actions/create-upload.d.mts +3 -3
- package/dist/actions/create-upload.mjs +2 -2
- package/dist/actions/create-upload.mjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.cjs +11 -11
- package/dist/actions/create-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.cts +21 -14
- package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.mts +21 -14
- package/dist/actions/create-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.mjs +11 -11
- package/dist/actions/create-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/create-vector-store-file.cjs +7 -7
- package/dist/actions/create-vector-store-file.cjs.map +1 -1
- package/dist/actions/create-vector-store-file.d.cts +11 -8
- package/dist/actions/create-vector-store-file.d.mts +11 -8
- package/dist/actions/create-vector-store-file.mjs +7 -7
- package/dist/actions/create-vector-store-file.mjs.map +1 -1
- package/dist/actions/create-vector-store.cjs +8 -8
- package/dist/actions/create-vector-store.cjs.map +1 -1
- package/dist/actions/create-vector-store.d.cts +12 -9
- package/dist/actions/create-vector-store.d.mts +12 -9
- package/dist/actions/create-vector-store.mjs +8 -8
- package/dist/actions/create-vector-store.mjs.map +1 -1
- package/dist/actions/create-video-remix.cjs +2 -2
- package/dist/actions/create-video-remix.cjs.map +1 -1
- package/dist/actions/create-video-remix.d.cts +3 -3
- package/dist/actions/create-video-remix.d.mts +3 -3
- package/dist/actions/create-video-remix.mjs +2 -2
- package/dist/actions/create-video-remix.mjs.map +1 -1
- package/dist/actions/create-video.cjs +2 -2
- package/dist/actions/create-video.cjs.map +1 -1
- package/dist/actions/create-video.d.cts +2 -2
- package/dist/actions/create-video.d.mts +2 -2
- package/dist/actions/create-video.mjs +2 -2
- package/dist/actions/create-video.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +1 -1
- package/dist/actions/delete-assistant.d.mts +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-chat-completion.cjs +1 -1
- package/dist/actions/delete-chat-completion.cjs.map +1 -1
- package/dist/actions/delete-chat-completion.d.cts +1 -1
- package/dist/actions/delete-chat-completion.d.mts +1 -1
- package/dist/actions/delete-chat-completion.mjs +1 -1
- package/dist/actions/delete-chat-completion.mjs.map +1 -1
- package/dist/actions/delete-container-file.cjs +1 -1
- package/dist/actions/delete-container-file.cjs.map +1 -1
- package/dist/actions/delete-container-file.d.cts +1 -1
- package/dist/actions/delete-container-file.d.mts +1 -1
- package/dist/actions/delete-container-file.mjs +1 -1
- package/dist/actions/delete-container-file.mjs.map +1 -1
- package/dist/actions/delete-container.cjs +1 -1
- package/dist/actions/delete-container.cjs.map +1 -1
- package/dist/actions/delete-container.d.cts +1 -1
- package/dist/actions/delete-container.d.mts +1 -1
- package/dist/actions/delete-container.mjs +1 -1
- package/dist/actions/delete-container.mjs.map +1 -1
- package/dist/actions/delete-conversation-item.cjs +1 -1
- package/dist/actions/delete-conversation-item.cjs.map +1 -1
- package/dist/actions/delete-conversation-item.d.cts +1 -1
- package/dist/actions/delete-conversation-item.d.mts +1 -1
- package/dist/actions/delete-conversation-item.mjs +1 -1
- package/dist/actions/delete-conversation-item.mjs.map +1 -1
- package/dist/actions/delete-conversation.cjs +1 -1
- package/dist/actions/delete-conversation.cjs.map +1 -1
- package/dist/actions/delete-conversation.d.cts +1 -1
- package/dist/actions/delete-conversation.d.mts +1 -1
- package/dist/actions/delete-conversation.mjs +1 -1
- package/dist/actions/delete-conversation.mjs.map +1 -1
- package/dist/actions/delete-eval-run.cjs +1 -1
- package/dist/actions/delete-eval-run.cjs.map +1 -1
- package/dist/actions/delete-eval-run.d.cts +1 -1
- package/dist/actions/delete-eval-run.d.mts +1 -1
- package/dist/actions/delete-eval-run.mjs +1 -1
- package/dist/actions/delete-eval-run.mjs.map +1 -1
- package/dist/actions/delete-eval.cjs +1 -1
- package/dist/actions/delete-eval.cjs.map +1 -1
- package/dist/actions/delete-eval.d.cts +1 -1
- package/dist/actions/delete-eval.d.mts +1 -1
- package/dist/actions/delete-eval.mjs +1 -1
- package/dist/actions/delete-eval.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -1
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +1 -1
- package/dist/actions/delete-file.d.mts +1 -1
- package/dist/actions/delete-file.mjs +1 -1
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -1
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +1 -1
- package/dist/actions/delete-message.d.mts +1 -1
- package/dist/actions/delete-message.mjs +1 -1
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-response.cjs +1 -1
- package/dist/actions/delete-response.cjs.map +1 -1
- package/dist/actions/delete-response.d.cts +1 -1
- package/dist/actions/delete-response.d.mts +1 -1
- package/dist/actions/delete-response.mjs +1 -1
- package/dist/actions/delete-response.mjs.map +1 -1
- package/dist/actions/delete-skill.cjs +1 -1
- package/dist/actions/delete-skill.cjs.map +1 -1
- package/dist/actions/delete-skill.d.cts +1 -1
- package/dist/actions/delete-skill.d.mts +1 -1
- package/dist/actions/delete-skill.mjs +1 -1
- package/dist/actions/delete-skill.mjs.map +1 -1
- package/dist/actions/delete-thread.cjs +1 -1
- package/dist/actions/delete-thread.cjs.map +1 -1
- package/dist/actions/delete-thread.d.cts +1 -1
- package/dist/actions/delete-thread.d.mts +1 -1
- package/dist/actions/delete-thread.mjs +1 -1
- package/dist/actions/delete-thread.mjs.map +1 -1
- package/dist/actions/delete-vector-store-file.cjs +1 -1
- package/dist/actions/delete-vector-store-file.cjs.map +1 -1
- package/dist/actions/delete-vector-store-file.d.cts +1 -1
- package/dist/actions/delete-vector-store-file.d.mts +1 -1
- package/dist/actions/delete-vector-store-file.mjs +1 -1
- package/dist/actions/delete-vector-store-file.mjs.map +1 -1
- package/dist/actions/delete-vector-store.cjs +1 -1
- package/dist/actions/delete-vector-store.cjs.map +1 -1
- package/dist/actions/delete-vector-store.d.cts +1 -1
- package/dist/actions/delete-vector-store.d.mts +1 -1
- package/dist/actions/delete-vector-store.mjs +1 -1
- package/dist/actions/delete-vector-store.mjs.map +1 -1
- package/dist/actions/delete-video.cjs +1 -1
- package/dist/actions/delete-video.cjs.map +1 -1
- package/dist/actions/delete-video.d.cts +1 -1
- package/dist/actions/delete-video.d.mts +1 -1
- package/dist/actions/delete-video.mjs +1 -1
- package/dist/actions/delete-video.mjs.map +1 -1
- package/dist/actions/download-file.cjs +2 -2
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +2 -2
- package/dist/actions/download-file.d.mts +2 -2
- package/dist/actions/download-file.mjs +2 -2
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-video.cjs +2 -2
- package/dist/actions/download-video.cjs.map +1 -1
- package/dist/actions/download-video.d.cts +2 -2
- package/dist/actions/download-video.d.mts +2 -2
- package/dist/actions/download-video.mjs +2 -2
- package/dist/actions/download-video.mjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.cjs +2 -2
- package/dist/actions/get-chat-completion-messages.cjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.cts +2 -2
- package/dist/actions/get-chat-completion-messages.d.mts +2 -2
- package/dist/actions/get-chat-completion-messages.mjs +2 -2
- package/dist/actions/get-chat-completion-messages.mjs.map +1 -1
- package/dist/actions/get-chat-completion.cjs +7 -7
- package/dist/actions/get-chat-completion.cjs.map +1 -1
- package/dist/actions/get-chat-completion.d.cts +7 -7
- package/dist/actions/get-chat-completion.d.mts +7 -7
- package/dist/actions/get-chat-completion.mjs +7 -7
- package/dist/actions/get-chat-completion.mjs.map +1 -1
- package/dist/actions/get-chatkit-thread.cjs +4 -4
- package/dist/actions/get-chatkit-thread.cjs.map +1 -1
- package/dist/actions/get-chatkit-thread.d.cts +4 -4
- package/dist/actions/get-chatkit-thread.d.mts +4 -4
- package/dist/actions/get-chatkit-thread.mjs +4 -4
- package/dist/actions/get-chatkit-thread.mjs.map +1 -1
- package/dist/actions/get-conversation-item.cjs +1 -1
- package/dist/actions/get-conversation-item.cjs.map +1 -1
- package/dist/actions/get-conversation-item.d.cts +1 -1
- package/dist/actions/get-conversation-item.d.mts +1 -1
- package/dist/actions/get-conversation-item.mjs +1 -1
- package/dist/actions/get-conversation-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.cjs +5 -5
- package/dist/actions/get-eval-run-output-item.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.cts +5 -5
- package/dist/actions/get-eval-run-output-item.d.mts +5 -5
- package/dist/actions/get-eval-run-output-item.mjs +5 -5
- package/dist/actions/get-eval-run-output-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.cjs +6 -6
- package/dist/actions/get-eval-run-output-items.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.cts +7 -7
- package/dist/actions/get-eval-run-output-items.d.mts +7 -7
- package/dist/actions/get-eval-run-output-items.mjs +6 -6
- package/dist/actions/get-eval-run-output-items.mjs.map +1 -1
- package/dist/actions/get-eval-run.cjs +10 -10
- package/dist/actions/get-eval-run.cjs.map +1 -1
- package/dist/actions/get-eval-run.d.cts +14 -14
- package/dist/actions/get-eval-run.d.mts +14 -14
- package/dist/actions/get-eval-run.mjs +10 -10
- package/dist/actions/get-eval-run.mjs.map +1 -1
- package/dist/actions/get-eval-runs.cjs +6 -6
- package/dist/actions/get-eval-runs.cjs.map +1 -1
- package/dist/actions/get-eval-runs.d.cts +8 -8
- package/dist/actions/get-eval-runs.d.mts +8 -8
- package/dist/actions/get-eval-runs.mjs +6 -6
- package/dist/actions/get-eval-runs.mjs.map +1 -1
- package/dist/actions/get-eval.cjs +1 -1
- package/dist/actions/get-eval.cjs.map +1 -1
- package/dist/actions/get-eval.d.cts +1 -1
- package/dist/actions/get-eval.d.mts +1 -1
- package/dist/actions/get-eval.mjs +1 -1
- package/dist/actions/get-eval.mjs.map +1 -1
- package/dist/actions/get-input-token-counts.cjs +1 -1
- package/dist/actions/get-input-token-counts.cjs.map +1 -1
- package/dist/actions/get-input-token-counts.d.cts +3 -3
- package/dist/actions/get-input-token-counts.d.mts +3 -3
- package/dist/actions/get-input-token-counts.mjs +1 -1
- package/dist/actions/get-input-token-counts.mjs.map +1 -1
- package/dist/actions/get-message.cjs +9 -9
- package/dist/actions/get-message.cjs.map +1 -1
- package/dist/actions/get-message.d.cts +9 -9
- package/dist/actions/get-message.d.mts +9 -9
- package/dist/actions/get-message.mjs +9 -9
- package/dist/actions/get-message.mjs.map +1 -1
- package/dist/actions/get-response.cjs +9 -9
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +9 -9
- package/dist/actions/get-response.d.mts +9 -9
- package/dist/actions/get-response.mjs +9 -9
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/get-run-step.cjs +15 -15
- package/dist/actions/get-run-step.cjs.map +1 -1
- package/dist/actions/get-run-step.d.cts +16 -16
- package/dist/actions/get-run-step.d.mts +16 -16
- package/dist/actions/get-run-step.mjs +15 -15
- package/dist/actions/get-run-step.mjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.cjs +2 -2
- package/dist/actions/get-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.cts +3 -3
- package/dist/actions/get-vector-store-file-batch.d.mts +3 -3
- package/dist/actions/get-vector-store-file-batch.mjs +2 -2
- package/dist/actions/get-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/get-vector-store-file.cjs +4 -4
- package/dist/actions/get-vector-store-file.cjs.map +1 -1
- package/dist/actions/get-vector-store-file.d.cts +5 -5
- package/dist/actions/get-vector-store-file.d.mts +5 -5
- package/dist/actions/get-vector-store-file.mjs +4 -4
- package/dist/actions/get-vector-store-file.mjs.map +1 -1
- package/dist/actions/get-vector-store.cjs +4 -4
- package/dist/actions/get-vector-store.cjs.map +1 -1
- package/dist/actions/get-vector-store.d.cts +4 -4
- package/dist/actions/get-vector-store.d.mts +4 -4
- package/dist/actions/get-vector-store.mjs +4 -4
- package/dist/actions/get-vector-store.mjs.map +1 -1
- package/dist/actions/get-video.cjs +2 -2
- package/dist/actions/get-video.cjs.map +1 -1
- package/dist/actions/get-video.d.cts +3 -3
- package/dist/actions/get-video.d.mts +3 -3
- package/dist/actions/get-video.mjs +2 -2
- package/dist/actions/get-video.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +16 -16
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +16 -16
- package/dist/actions/list-assistants.d.mts +16 -16
- package/dist/actions/list-assistants.mjs +16 -16
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-batches.cjs +8 -8
- package/dist/actions/list-batches.cjs.map +1 -1
- package/dist/actions/list-batches.d.cts +12 -12
- package/dist/actions/list-batches.d.mts +12 -12
- package/dist/actions/list-batches.mjs +8 -8
- package/dist/actions/list-batches.mjs.map +1 -1
- package/dist/actions/list-chat-completions.cjs +4 -4
- package/dist/actions/list-chat-completions.cjs.map +1 -1
- package/dist/actions/list-chat-completions.d.cts +4 -4
- package/dist/actions/list-chat-completions.d.mts +4 -4
- package/dist/actions/list-chat-completions.mjs +4 -4
- package/dist/actions/list-chat-completions.mjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.cjs +2 -2
- package/dist/actions/list-chatkit-thread-items.cjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.cts +2 -2
- package/dist/actions/list-chatkit-thread-items.d.mts +2 -2
- package/dist/actions/list-chatkit-thread-items.mjs +2 -2
- package/dist/actions/list-chatkit-thread-items.mjs.map +1 -1
- package/dist/actions/list-container-files.cjs +2 -2
- package/dist/actions/list-container-files.cjs.map +1 -1
- package/dist/actions/list-container-files.d.cts +2 -2
- package/dist/actions/list-container-files.d.mts +2 -2
- package/dist/actions/list-container-files.mjs +2 -2
- package/dist/actions/list-container-files.mjs.map +1 -1
- package/dist/actions/list-containers.cjs +4 -4
- package/dist/actions/list-containers.cjs.map +1 -1
- package/dist/actions/list-containers.d.cts +4 -4
- package/dist/actions/list-containers.d.mts +4 -4
- package/dist/actions/list-containers.mjs +4 -4
- package/dist/actions/list-containers.mjs.map +1 -1
- package/dist/actions/list-conversation-items.cjs +2 -2
- package/dist/actions/list-conversation-items.cjs.map +1 -1
- package/dist/actions/list-conversation-items.d.cts +2 -2
- package/dist/actions/list-conversation-items.d.mts +2 -2
- package/dist/actions/list-conversation-items.mjs +2 -2
- package/dist/actions/list-conversation-items.mjs.map +1 -1
- package/dist/actions/list-engines.cjs +2 -2
- package/dist/actions/list-engines.cjs.map +1 -1
- package/dist/actions/list-engines.d.cts +2 -2
- package/dist/actions/list-engines.d.mts +2 -2
- package/dist/actions/list-engines.mjs +2 -2
- package/dist/actions/list-engines.mjs.map +1 -1
- package/dist/actions/list-evals.cjs +14 -14
- package/dist/actions/list-evals.cjs.map +1 -1
- package/dist/actions/list-evals.d.cts +15 -15
- package/dist/actions/list-evals.d.mts +15 -15
- package/dist/actions/list-evals.mjs +14 -14
- package/dist/actions/list-evals.mjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.cjs +5 -5
- package/dist/actions/list-files-in-vector-store-batch.cjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.cts +8 -8
- package/dist/actions/list-files-in-vector-store-batch.d.mts +8 -8
- package/dist/actions/list-files-in-vector-store-batch.mjs +5 -5
- package/dist/actions/list-files-in-vector-store-batch.mjs.map +1 -1
- package/dist/actions/list-files.cjs +2 -2
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +2 -2
- package/dist/actions/list-files.d.mts +2 -2
- package/dist/actions/list-files.mjs +2 -2
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-fine-tunes.cjs +5 -5
- package/dist/actions/list-fine-tunes.cjs.map +1 -1
- package/dist/actions/list-fine-tunes.d.cts +7 -7
- package/dist/actions/list-fine-tunes.d.mts +7 -7
- package/dist/actions/list-fine-tunes.mjs +5 -5
- package/dist/actions/list-fine-tunes.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.cjs +2 -2
- package/dist/actions/list-fine-tuning-events.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.cts +2 -2
- package/dist/actions/list-fine-tuning-events.d.mts +2 -2
- package/dist/actions/list-fine-tuning-events.mjs +2 -2
- package/dist/actions/list-fine-tuning-events.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs.map +1 -1
- package/dist/actions/list-input-items.cjs +2 -2
- package/dist/actions/list-input-items.cjs.map +1 -1
- package/dist/actions/list-input-items.d.cts +2 -2
- package/dist/actions/list-input-items.d.mts +2 -2
- package/dist/actions/list-input-items.mjs +2 -2
- package/dist/actions/list-input-items.mjs.map +1 -1
- package/dist/actions/list-messages.cjs +10 -10
- package/dist/actions/list-messages.cjs.map +1 -1
- package/dist/actions/list-messages.d.cts +10 -10
- package/dist/actions/list-messages.d.mts +10 -10
- package/dist/actions/list-messages.mjs +10 -10
- package/dist/actions/list-messages.mjs.map +1 -1
- package/dist/actions/list-models.cjs +3 -3
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -3
- package/dist/actions/list-models.d.mts +3 -3
- package/dist/actions/list-models.mjs +3 -3
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-run-steps.cjs +16 -16
- package/dist/actions/list-run-steps.cjs.map +1 -1
- package/dist/actions/list-run-steps.d.cts +17 -17
- package/dist/actions/list-run-steps.d.mts +17 -17
- package/dist/actions/list-run-steps.mjs +16 -16
- package/dist/actions/list-run-steps.mjs.map +1 -1
- package/dist/actions/list-runs.cjs +8 -8
- package/dist/actions/list-runs.cjs.map +1 -1
- package/dist/actions/list-runs.d.cts +12 -12
- package/dist/actions/list-runs.d.mts +12 -12
- package/dist/actions/list-runs.mjs +8 -8
- package/dist/actions/list-runs.mjs.map +1 -1
- package/dist/actions/list-skills.cjs +2 -2
- package/dist/actions/list-skills.cjs.map +1 -1
- package/dist/actions/list-skills.d.cts +2 -2
- package/dist/actions/list-skills.d.mts +2 -2
- package/dist/actions/list-skills.mjs +2 -2
- package/dist/actions/list-skills.mjs.map +1 -1
- package/dist/actions/list-threads.cjs +4 -4
- package/dist/actions/list-threads.cjs.map +1 -1
- package/dist/actions/list-threads.d.cts +4 -4
- package/dist/actions/list-threads.d.mts +4 -4
- package/dist/actions/list-threads.mjs +4 -4
- package/dist/actions/list-threads.mjs.map +1 -1
- package/dist/actions/list-vector-store-files.cjs +3 -3
- package/dist/actions/list-vector-store-files.cjs.map +1 -1
- package/dist/actions/list-vector-store-files.d.cts +6 -6
- package/dist/actions/list-vector-store-files.d.mts +6 -6
- package/dist/actions/list-vector-store-files.mjs +3 -3
- package/dist/actions/list-vector-store-files.mjs.map +1 -1
- package/dist/actions/list-vector-stores.cjs +5 -5
- package/dist/actions/list-vector-stores.cjs.map +1 -1
- package/dist/actions/list-vector-stores.d.cts +5 -5
- package/dist/actions/list-vector-stores.d.mts +5 -5
- package/dist/actions/list-vector-stores.mjs +5 -5
- package/dist/actions/list-vector-stores.mjs.map +1 -1
- package/dist/actions/list-videos.cjs +3 -3
- package/dist/actions/list-videos.cjs.map +1 -1
- package/dist/actions/list-videos.d.cts +4 -4
- package/dist/actions/list-videos.d.mts +4 -4
- package/dist/actions/list-videos.mjs +3 -3
- package/dist/actions/list-videos.mjs.map +1 -1
- package/dist/actions/modify-assistant.cjs +3 -3
- package/dist/actions/modify-assistant.cjs.map +1 -1
- package/dist/actions/modify-assistant.d.cts +4 -4
- package/dist/actions/modify-assistant.d.mts +4 -4
- package/dist/actions/modify-assistant.mjs +3 -3
- package/dist/actions/modify-assistant.mjs.map +1 -1
- package/dist/actions/modify-message.cjs +9 -9
- package/dist/actions/modify-message.cjs.map +1 -1
- package/dist/actions/modify-message.d.cts +10 -10
- package/dist/actions/modify-message.d.mts +10 -10
- package/dist/actions/modify-message.mjs +9 -9
- package/dist/actions/modify-message.mjs.map +1 -1
- package/dist/actions/modify-run.cjs +8 -8
- package/dist/actions/modify-run.cjs.map +1 -1
- package/dist/actions/modify-run.d.cts +13 -13
- package/dist/actions/modify-run.d.mts +13 -13
- package/dist/actions/modify-run.mjs +8 -8
- package/dist/actions/modify-run.mjs.map +1 -1
- package/dist/actions/modify-thread.cjs +3 -3
- package/dist/actions/modify-thread.cjs.map +1 -1
- package/dist/actions/modify-thread.d.cts +4 -4
- package/dist/actions/modify-thread.d.mts +4 -4
- package/dist/actions/modify-thread.mjs +3 -3
- package/dist/actions/modify-thread.mjs.map +1 -1
- package/dist/actions/modify-vector-store.cjs +5 -5
- package/dist/actions/modify-vector-store.cjs.map +1 -1
- package/dist/actions/modify-vector-store.d.cts +6 -6
- package/dist/actions/modify-vector-store.d.mts +6 -6
- package/dist/actions/modify-vector-store.mjs +5 -5
- package/dist/actions/modify-vector-store.mjs.map +1 -1
- package/dist/actions/retrieve-assistant.cjs +3 -3
- package/dist/actions/retrieve-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-assistant.d.cts +3 -3
- package/dist/actions/retrieve-assistant.d.mts +3 -3
- package/dist/actions/retrieve-assistant.mjs +3 -3
- package/dist/actions/retrieve-assistant.mjs.map +1 -1
- package/dist/actions/retrieve-batch.cjs +6 -6
- package/dist/actions/retrieve-batch.cjs.map +1 -1
- package/dist/actions/retrieve-batch.d.cts +10 -10
- package/dist/actions/retrieve-batch.d.mts +10 -10
- package/dist/actions/retrieve-batch.mjs +6 -6
- package/dist/actions/retrieve-batch.mjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.cjs +2 -2
- package/dist/actions/retrieve-container-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.cts +2 -2
- package/dist/actions/retrieve-container-file-content.d.mts +2 -2
- package/dist/actions/retrieve-container-file-content.mjs +2 -2
- package/dist/actions/retrieve-container-file-content.mjs.map +1 -1
- package/dist/actions/retrieve-container-file.cjs +1 -1
- package/dist/actions/retrieve-container-file.cjs.map +1 -1
- package/dist/actions/retrieve-container-file.d.cts +1 -1
- package/dist/actions/retrieve-container-file.d.mts +1 -1
- package/dist/actions/retrieve-container-file.mjs +1 -1
- package/dist/actions/retrieve-container-file.mjs.map +1 -1
- package/dist/actions/retrieve-container.cjs +3 -3
- package/dist/actions/retrieve-container.cjs.map +1 -1
- package/dist/actions/retrieve-container.d.cts +3 -3
- package/dist/actions/retrieve-container.d.mts +3 -3
- package/dist/actions/retrieve-container.mjs +3 -3
- package/dist/actions/retrieve-container.mjs.map +1 -1
- package/dist/actions/retrieve-engine.cjs +1 -1
- package/dist/actions/retrieve-engine.cjs.map +1 -1
- package/dist/actions/retrieve-engine.d.cts +1 -1
- package/dist/actions/retrieve-engine.d.mts +1 -1
- package/dist/actions/retrieve-engine.mjs +1 -1
- package/dist/actions/retrieve-engine.mjs.map +1 -1
- package/dist/actions/retrieve-file.cjs +1 -1
- package/dist/actions/retrieve-file.cjs.map +1 -1
- package/dist/actions/retrieve-file.d.cts +1 -1
- package/dist/actions/retrieve-file.d.mts +1 -1
- package/dist/actions/retrieve-file.mjs +1 -1
- package/dist/actions/retrieve-file.mjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.cjs +4 -4
- package/dist/actions/retrieve-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.cts +5 -5
- package/dist/actions/retrieve-fine-tuning-job.d.mts +5 -5
- package/dist/actions/retrieve-fine-tuning-job.mjs +4 -4
- package/dist/actions/retrieve-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/retrieve-model.cjs +2 -2
- package/dist/actions/retrieve-model.cjs.map +1 -1
- package/dist/actions/retrieve-model.d.cts +2 -2
- package/dist/actions/retrieve-model.d.mts +2 -2
- package/dist/actions/retrieve-model.mjs +2 -2
- package/dist/actions/retrieve-model.mjs.map +1 -1
- package/dist/actions/retrieve-run.cjs +7 -7
- package/dist/actions/retrieve-run.cjs.map +1 -1
- package/dist/actions/retrieve-run.d.cts +11 -11
- package/dist/actions/retrieve-run.d.mts +11 -11
- package/dist/actions/retrieve-run.mjs +7 -7
- package/dist/actions/retrieve-run.mjs.map +1 -1
- package/dist/actions/retrieve-thread.cjs +2 -2
- package/dist/actions/retrieve-thread.cjs.map +1 -1
- package/dist/actions/retrieve-thread.d.cts +2 -2
- package/dist/actions/retrieve-thread.d.mts +2 -2
- package/dist/actions/retrieve-thread.mjs +2 -2
- package/dist/actions/retrieve-thread.mjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.cjs +2 -2
- package/dist/actions/retrieve-vector-store-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.cts +2 -2
- package/dist/actions/retrieve-vector-store-file-content.d.mts +2 -2
- package/dist/actions/retrieve-vector-store-file-content.mjs +2 -2
- package/dist/actions/retrieve-vector-store-file-content.mjs.map +1 -1
- package/dist/actions/run-grader.cjs +8 -8
- package/dist/actions/run-grader.cjs.map +1 -1
- package/dist/actions/run-grader.d.cts +13 -8
- package/dist/actions/run-grader.d.mts +13 -8
- package/dist/actions/run-grader.mjs +8 -8
- package/dist/actions/run-grader.mjs.map +1 -1
- package/dist/actions/search-vector-store.cjs +3 -3
- package/dist/actions/search-vector-store.cjs.map +1 -1
- package/dist/actions/search-vector-store.d.cts +3 -3
- package/dist/actions/search-vector-store.d.mts +3 -3
- package/dist/actions/search-vector-store.mjs +3 -3
- package/dist/actions/search-vector-store.mjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.cjs +8 -8
- package/dist/actions/submit-tool-outputs-to-run.cjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.cts +13 -12
- package/dist/actions/submit-tool-outputs-to-run.d.mts +13 -12
- package/dist/actions/submit-tool-outputs-to-run.mjs +8 -8
- package/dist/actions/submit-tool-outputs-to-run.mjs.map +1 -1
- package/dist/actions/update-chat-completion.cjs +8 -8
- package/dist/actions/update-chat-completion.cjs.map +1 -1
- package/dist/actions/update-chat-completion.d.cts +9 -9
- package/dist/actions/update-chat-completion.d.mts +9 -9
- package/dist/actions/update-chat-completion.mjs +8 -8
- package/dist/actions/update-chat-completion.mjs.map +1 -1
- package/dist/actions/update-conversation.cjs +1 -1
- package/dist/actions/update-conversation.cjs.map +1 -1
- package/dist/actions/update-conversation.d.cts +1 -1
- package/dist/actions/update-conversation.d.mts +1 -1
- package/dist/actions/update-conversation.mjs +1 -1
- package/dist/actions/update-conversation.mjs.map +1 -1
- package/dist/actions/update-eval.cjs +1 -1
- package/dist/actions/update-eval.cjs.map +1 -1
- package/dist/actions/update-eval.d.cts +1 -1
- package/dist/actions/update-eval.d.mts +1 -1
- package/dist/actions/update-eval.mjs +1 -1
- package/dist/actions/update-eval.mjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.cjs +4 -4
- package/dist/actions/update-vector-store-file-attributes.cjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.cts +5 -5
- package/dist/actions/update-vector-store-file-attributes.d.mts +5 -5
- package/dist/actions/update-vector-store-file-attributes.mjs +4 -4
- package/dist/actions/update-vector-store-file-attributes.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -1
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +1 -1
- package/dist/actions/upload-file.d.mts +1 -1
- package/dist/actions/upload-file.mjs +1 -1
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/validate-grader.cjs +7 -7
- package/dist/actions/validate-grader.cjs.map +1 -1
- package/dist/actions/validate-grader.d.cts +12 -7
- package/dist/actions/validate-grader.d.cts.map +1 -1
- package/dist/actions/validate-grader.d.mts +12 -7
- package/dist/actions/validate-grader.d.mts.map +1 -1
- package/dist/actions/validate-grader.mjs +7 -7
- package/dist/actions/validate-grader.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ const OpenaiCreateModerationInput = zod.z.object({
|
|
|
5
5
|
input: zod.z.union([zod.z.string(), zod.z.array(zod.z.union([zod.z.string(), zod.z.object({
|
|
6
6
|
text: zod.z.string().nullable().optional(),
|
|
7
7
|
type: zod.z.string().describe("Type of content: 'text' or 'image_url'"),
|
|
8
|
-
image_url: zod.z.
|
|
9
|
-
}).describe("Multi-modal input item with text or image content.")]))]),
|
|
8
|
+
image_url: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional()
|
|
9
|
+
}).passthrough().describe("Multi-modal input item with text or image content.")]))]),
|
|
10
10
|
model: zod.z.string().default("omni-moderation-latest").describe("The content moderation model to use. Options include: 'omni-moderation-latest' (default, supports text and images), 'omni-moderation-2024-09-26' (specific omni version), 'text-moderation-latest' (text-only, latest version), 'text-moderation-stable' (text-only, stable version), 'text-moderation-007' (text-only, legacy version). Learn more in the moderation guide and available models documentation.").optional()
|
|
11
11
|
}).describe("Request model for classifying text and/or image inputs for harmful content.");
|
|
12
12
|
const OpenaiCreateModeration_ModerationCategoriesSchema = zod.z.object({
|
|
@@ -23,7 +23,7 @@ const OpenaiCreateModeration_ModerationCategoriesSchema = zod.z.object({
|
|
|
23
23
|
"violence/graphic": zod.z.boolean().describe("Content that depicts death, violence, or physical injury in graphic detail").nullable(),
|
|
24
24
|
"harassment/threatening": zod.z.boolean().describe("Harassment content that also includes violence or serious harm towards any target").nullable(),
|
|
25
25
|
"self-harm/instructions": zod.z.boolean().describe("Content that encourages performing acts of self-harm or provides instructions").nullable()
|
|
26
|
-
}).describe("Boolean flags indicating whether content violates each category.");
|
|
26
|
+
}).passthrough().describe("Boolean flags indicating whether content violates each category.");
|
|
27
27
|
const OpenaiCreateModeration_ModerationCategoryScoresSchema = zod.z.object({
|
|
28
28
|
hate: zod.z.number().describe("Confidence score for hate content (0.0-1.0)").nullable(),
|
|
29
29
|
sexual: zod.z.number().describe("Confidence score for sexual content (0.0-1.0)").nullable(),
|
|
@@ -38,7 +38,7 @@ const OpenaiCreateModeration_ModerationCategoryScoresSchema = zod.z.object({
|
|
|
38
38
|
"violence/graphic": zod.z.number().describe("Confidence score for graphic violent content (0.0-1.0)").nullable(),
|
|
39
39
|
"harassment/threatening": zod.z.number().describe("Confidence score for threatening harassment content (0.0-1.0)").nullable(),
|
|
40
40
|
"self-harm/instructions": zod.z.number().describe("Confidence score for self-harm instructions (0.0-1.0)").nullable()
|
|
41
|
-
}).describe("Confidence scores (0-1) for each moderation category.");
|
|
41
|
+
}).passthrough().describe("Confidence scores (0-1) for each moderation category.");
|
|
42
42
|
const OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = zod.z.object({
|
|
43
43
|
hate: zod.z.array(zod.z.string()).describe("Input types that triggered hate flag").nullable().optional(),
|
|
44
44
|
sexual: zod.z.array(zod.z.string()).describe("Input types that triggered sexual flag").nullable().optional(),
|
|
@@ -53,18 +53,18 @@ const OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = zod.z.o
|
|
|
53
53
|
"violence/graphic": zod.z.array(zod.z.string()).describe("Input types that triggered graphic violence flag").nullable().optional(),
|
|
54
54
|
"harassment/threatening": zod.z.array(zod.z.string()).describe("Input types that triggered threatening harassment flag").nullable().optional(),
|
|
55
55
|
"self-harm/instructions": zod.z.array(zod.z.string()).describe("Input types that triggered self-harm instructions flag").nullable().optional()
|
|
56
|
-
}).describe("Input types (text or image) that triggered each category flag.");
|
|
56
|
+
}).passthrough().describe("Input types (text or image) that triggered each category flag.");
|
|
57
57
|
const OpenaiCreateModeration_ModerationResultSchema = zod.z.object({
|
|
58
58
|
flagged: zod.z.boolean().describe("Whether any of the moderation categories are flagged as violated").nullable(),
|
|
59
59
|
categories: OpenaiCreateModeration_ModerationCategoriesSchema.nullable(),
|
|
60
60
|
category_scores: OpenaiCreateModeration_ModerationCategoryScoresSchema.nullable(),
|
|
61
61
|
category_applied_input_types: OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema.nullable()
|
|
62
|
-
}).describe("Individual moderation result for a single input.");
|
|
62
|
+
}).passthrough().describe("Individual moderation result for a single input.");
|
|
63
63
|
const OpenaiCreateModerationOutput = zod.z.object({
|
|
64
64
|
id: zod.z.string().describe("Unique identifier for the moderation request").nullable(),
|
|
65
65
|
model: zod.z.string().describe("The model used to generate the moderation results").nullable(),
|
|
66
66
|
results: zod.z.array(OpenaiCreateModeration_ModerationResultSchema).describe("List of moderation results, one for each input provided. Each result contains flagged status, categories, scores, and applied input types")
|
|
67
|
-
}).describe("Response schema for moderation classification.");
|
|
67
|
+
}).passthrough().describe("Response schema for moderation classification.");
|
|
68
68
|
const openaiCreateModeration = require_action.action("OPENAI_CREATE_MODERATION", {
|
|
69
69
|
slug: "openai-create-moderation",
|
|
70
70
|
name: "Create Moderation",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-moderation.cjs","names":["z","action"],"sources":["../../src/actions/create-moderation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateModerationInput = z.object({\n input: z.union([z.string(), z.array(z.union([z.string(), z.object({\n text: z.string().nullable().optional(),\n type: z.string().describe(\"Type of content: 'text' or 'image_url'\"),\n image_url: z.object({}).nullable().optional(),\n}).describe(\"Multi-modal input item with text or image content.\")]))]),\n model: z.string().default(\"omni-moderation-latest\").describe(\"The content moderation model to use. Options include: 'omni-moderation-latest' (default, supports text and images), 'omni-moderation-2024-09-26' (specific omni version), 'text-moderation-latest' (text-only, latest version), 'text-moderation-stable' (text-only, stable version), 'text-moderation-007' (text-only, legacy version). Learn more in the moderation guide and available models documentation.\").optional(),\n}).describe(\"Request model for classifying text and/or image inputs for harmful content.\");\nconst OpenaiCreateModeration_ModerationCategoriesSchema = z.object({\n hate: z.boolean().describe(\"Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste\").nullable(),\n sexual: z.boolean().describe(\"Content meant to arouse sexual excitement or that promotes sexual services\").nullable(),\n illicit: z.boolean().describe(\"Content that includes instructions or advice on how to commit wrongdoing (omni models only)\").nullable().optional(),\n violence: z.boolean().describe(\"Content that depicts death, violence, or physical injury\").nullable(),\n \"self-harm\": z.boolean().describe(\"Content that promotes, encourages, or depicts acts of self-harm\").nullable(),\n harassment: z.boolean().describe(\"Content that expresses, incites, or promotes harassing language towards any target\").nullable(),\n \"sexual/minors\": z.boolean().describe(\"Sexual content that includes an individual who is under 18 years old\").nullable(),\n \"illicit/violent\": z.boolean().describe(\"Illicit content that includes instructions for violence (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.boolean().describe(\"Hateful content that also includes violence or serious harm towards the targeted group\").nullable(),\n \"self-harm/intent\": z.boolean().describe(\"Content where the speaker expresses intent to engage in self-harm\").nullable(),\n \"violence/graphic\": z.boolean().describe(\"Content that depicts death, violence, or physical injury in graphic detail\").nullable(),\n \"harassment/threatening\": z.boolean().describe(\"Harassment content that also includes violence or serious harm towards any target\").nullable(),\n \"self-harm/instructions\": z.boolean().describe(\"Content that encourages performing acts of self-harm or provides instructions\").nullable(),\n}).describe(\"Boolean flags indicating whether content violates each category.\");\nconst OpenaiCreateModeration_ModerationCategoryScoresSchema = z.object({\n hate: z.number().describe(\"Confidence score for hate content (0.0-1.0)\").nullable(),\n sexual: z.number().describe(\"Confidence score for sexual content (0.0-1.0)\").nullable(),\n illicit: z.number().describe(\"Confidence score for illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n violence: z.number().describe(\"Confidence score for violent content (0.0-1.0)\").nullable(),\n \"self-harm\": z.number().describe(\"Confidence score for self-harm content (0.0-1.0)\").nullable(),\n harassment: z.number().describe(\"Confidence score for harassment content (0.0-1.0)\").nullable(),\n \"sexual/minors\": z.number().describe(\"Confidence score for sexual content involving minors (0.0-1.0)\").nullable(),\n \"illicit/violent\": z.number().describe(\"Confidence score for violent illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n \"hate/threatening\": z.number().describe(\"Confidence score for threatening hate content (0.0-1.0)\").nullable(),\n \"self-harm/intent\": z.number().describe(\"Confidence score for self-harm intent (0.0-1.0)\").nullable(),\n \"violence/graphic\": z.number().describe(\"Confidence score for graphic violent content (0.0-1.0)\").nullable(),\n \"harassment/threatening\": z.number().describe(\"Confidence score for threatening harassment content (0.0-1.0)\").nullable(),\n \"self-harm/instructions\": z.number().describe(\"Confidence score for self-harm instructions (0.0-1.0)\").nullable(),\n}).describe(\"Confidence scores (0-1) for each moderation category.\");\nconst OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = z.object({\n hate: z.array(z.string()).describe(\"Input types that triggered hate flag\").nullable().optional(),\n sexual: z.array(z.string()).describe(\"Input types that triggered sexual flag\").nullable().optional(),\n illicit: z.array(z.string()).describe(\"Input types that triggered illicit flag (omni models only)\").nullable().optional(),\n violence: z.array(z.string()).describe(\"Input types that triggered violence flag\").nullable().optional(),\n \"self-harm\": z.array(z.string()).describe(\"Input types that triggered self-harm flag\").nullable().optional(),\n harassment: z.array(z.string()).describe(\"Input types that triggered harassment flag (e.g., ['text'], ['image'])\").nullable().optional(),\n \"sexual/minors\": z.array(z.string()).describe(\"Input types that triggered sexual minors flag\").nullable().optional(),\n \"illicit/violent\": z.array(z.string()).describe(\"Input types that triggered violent illicit flag (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening hate flag\").nullable().optional(),\n \"self-harm/intent\": z.array(z.string()).describe(\"Input types that triggered self-harm intent flag\").nullable().optional(),\n \"violence/graphic\": z.array(z.string()).describe(\"Input types that triggered graphic violence flag\").nullable().optional(),\n \"harassment/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening harassment flag\").nullable().optional(),\n \"self-harm/instructions\": z.array(z.string()).describe(\"Input types that triggered self-harm instructions flag\").nullable().optional(),\n}).describe(\"Input types (text or image) that triggered each category flag.\");\nconst OpenaiCreateModeration_ModerationResultSchema = z.object({\n flagged: z.boolean().describe(\"Whether any of the moderation categories are flagged as violated\").nullable(),\n categories: OpenaiCreateModeration_ModerationCategoriesSchema.nullable(),\n category_scores: OpenaiCreateModeration_ModerationCategoryScoresSchema.nullable(),\n category_applied_input_types: OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema.nullable(),\n}).describe(\"Individual moderation result for a single input.\");\nexport const OpenaiCreateModerationOutput = z.object({\n id: z.string().describe(\"Unique identifier for the moderation request\").nullable(),\n model: z.string().describe(\"The model used to generate the moderation results\").nullable(),\n results: z.array(OpenaiCreateModeration_ModerationResultSchema).describe(\"List of moderation results, one for each input provided. Each result contains flagged status, categories, scores, and applied input types\"),\n}).describe(\"Response schema for moderation classification.\");\n\nexport const openaiCreateModeration = action(\"OPENAI_CREATE_MODERATION\", {\n slug: \"openai-create-moderation\",\n name: \"Create Moderation\",\n description: \"Tool to classify text and/or image inputs for potentially harmful content via the OpenAI Moderation API. Use for content safety checks, filtering user-generated content, or monitoring for policy violations across 13 harm categories including harassment, hate, violence, sexual content, self-harm, and illicit activities.\",\n input: OpenaiCreateModerationInput,\n output: OpenaiCreateModerationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO;EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,CAAC,CAAC;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,wBAAwB,CAAC,CAAC,SAAS,iZAAiZ,CAAC,CAAC,SAAS;AAC3d,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,QAAQ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wD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAY,kDAAkD,SAAS;CACvE,iBAAiB,sDAAsD,SAAS;CAChF,8BAA8B,iEAAiE,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2IAA2I;AACtN,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-moderation.cjs","names":["z","action"],"sources":["../../src/actions/create-moderation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateModerationInput = z.object({\n input: z.union([z.string(), z.array(z.union([z.string(), z.object({\n text: z.string().nullable().optional(),\n type: z.string().describe(\"Type of content: 'text' or 'image_url'\"),\n image_url: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"Multi-modal input item with text or image content.\")]))]),\n model: z.string().default(\"omni-moderation-latest\").describe(\"The content moderation model to use. Options include: 'omni-moderation-latest' (default, supports text and images), 'omni-moderation-2024-09-26' (specific omni version), 'text-moderation-latest' (text-only, latest version), 'text-moderation-stable' (text-only, stable version), 'text-moderation-007' (text-only, legacy version). Learn more in the moderation guide and available models documentation.\").optional(),\n}).describe(\"Request model for classifying text and/or image inputs for harmful content.\");\nconst OpenaiCreateModeration_ModerationCategoriesSchema = z.object({\n hate: z.boolean().describe(\"Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste\").nullable(),\n sexual: z.boolean().describe(\"Content meant to arouse sexual excitement or that promotes sexual services\").nullable(),\n illicit: z.boolean().describe(\"Content that includes instructions or advice on how to commit wrongdoing (omni models only)\").nullable().optional(),\n violence: z.boolean().describe(\"Content that depicts death, violence, or physical injury\").nullable(),\n \"self-harm\": z.boolean().describe(\"Content that promotes, encourages, or depicts acts of self-harm\").nullable(),\n harassment: z.boolean().describe(\"Content that expresses, incites, or promotes harassing language towards any target\").nullable(),\n \"sexual/minors\": z.boolean().describe(\"Sexual content that includes an individual who is under 18 years old\").nullable(),\n \"illicit/violent\": z.boolean().describe(\"Illicit content that includes instructions for violence (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.boolean().describe(\"Hateful content that also includes violence or serious harm towards the targeted group\").nullable(),\n \"self-harm/intent\": z.boolean().describe(\"Content where the speaker expresses intent to engage in self-harm\").nullable(),\n \"violence/graphic\": z.boolean().describe(\"Content that depicts death, violence, or physical injury in graphic detail\").nullable(),\n \"harassment/threatening\": z.boolean().describe(\"Harassment content that also includes violence or serious harm towards any target\").nullable(),\n \"self-harm/instructions\": z.boolean().describe(\"Content that encourages performing acts of self-harm or provides instructions\").nullable(),\n}).passthrough().describe(\"Boolean flags indicating whether content violates each category.\");\nconst OpenaiCreateModeration_ModerationCategoryScoresSchema = z.object({\n hate: z.number().describe(\"Confidence score for hate content (0.0-1.0)\").nullable(),\n sexual: z.number().describe(\"Confidence score for sexual content (0.0-1.0)\").nullable(),\n illicit: z.number().describe(\"Confidence score for illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n violence: z.number().describe(\"Confidence score for violent content (0.0-1.0)\").nullable(),\n \"self-harm\": z.number().describe(\"Confidence score for self-harm content (0.0-1.0)\").nullable(),\n harassment: z.number().describe(\"Confidence score for harassment content (0.0-1.0)\").nullable(),\n \"sexual/minors\": z.number().describe(\"Confidence score for sexual content involving minors (0.0-1.0)\").nullable(),\n \"illicit/violent\": z.number().describe(\"Confidence score for violent illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n \"hate/threatening\": z.number().describe(\"Confidence score for threatening hate content (0.0-1.0)\").nullable(),\n \"self-harm/intent\": z.number().describe(\"Confidence score for self-harm intent (0.0-1.0)\").nullable(),\n \"violence/graphic\": z.number().describe(\"Confidence score for graphic violent content (0.0-1.0)\").nullable(),\n \"harassment/threatening\": z.number().describe(\"Confidence score for threatening harassment content (0.0-1.0)\").nullable(),\n \"self-harm/instructions\": z.number().describe(\"Confidence score for self-harm instructions (0.0-1.0)\").nullable(),\n}).passthrough().describe(\"Confidence scores (0-1) for each moderation category.\");\nconst OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = z.object({\n hate: z.array(z.string()).describe(\"Input types that triggered hate flag\").nullable().optional(),\n sexual: z.array(z.string()).describe(\"Input types that triggered sexual flag\").nullable().optional(),\n illicit: z.array(z.string()).describe(\"Input types that triggered illicit flag (omni models only)\").nullable().optional(),\n violence: z.array(z.string()).describe(\"Input types that triggered violence flag\").nullable().optional(),\n \"self-harm\": z.array(z.string()).describe(\"Input types that triggered self-harm flag\").nullable().optional(),\n harassment: z.array(z.string()).describe(\"Input types that triggered harassment flag (e.g., ['text'], ['image'])\").nullable().optional(),\n \"sexual/minors\": z.array(z.string()).describe(\"Input types that triggered sexual minors flag\").nullable().optional(),\n \"illicit/violent\": z.array(z.string()).describe(\"Input types that triggered violent illicit flag (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening hate flag\").nullable().optional(),\n \"self-harm/intent\": z.array(z.string()).describe(\"Input types that triggered self-harm intent flag\").nullable().optional(),\n \"violence/graphic\": z.array(z.string()).describe(\"Input types that triggered graphic violence flag\").nullable().optional(),\n \"harassment/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening harassment flag\").nullable().optional(),\n \"self-harm/instructions\": z.array(z.string()).describe(\"Input types that triggered self-harm instructions flag\").nullable().optional(),\n}).passthrough().describe(\"Input types (text or image) that triggered each category flag.\");\nconst OpenaiCreateModeration_ModerationResultSchema = z.object({\n flagged: z.boolean().describe(\"Whether any of the moderation categories are flagged as violated\").nullable(),\n categories: OpenaiCreateModeration_ModerationCategoriesSchema.nullable(),\n category_scores: OpenaiCreateModeration_ModerationCategoryScoresSchema.nullable(),\n category_applied_input_types: OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema.nullable(),\n}).passthrough().describe(\"Individual moderation result for a single input.\");\nexport const OpenaiCreateModerationOutput = z.object({\n id: z.string().describe(\"Unique identifier for the moderation request\").nullable(),\n model: z.string().describe(\"The model used to generate the moderation results\").nullable(),\n results: z.array(OpenaiCreateModeration_ModerationResultSchema).describe(\"List of moderation results, one for each input provided. Each result contains flagged status, categories, scores, and applied input types\"),\n}).passthrough().describe(\"Response schema for moderation classification.\");\n\nexport const openaiCreateModeration = action(\"OPENAI_CREATE_MODERATION\", {\n slug: \"openai-create-moderation\",\n name: \"Create Moderation\",\n description: \"Tool to classify text and/or image inputs for potentially harmful content via the OpenAI Moderation API. Use for content safety checks, filtering user-generated content, or monitoring for policy violations across 13 harm categories including harassment, hate, violence, sexual content, self-harm, and illicit activities.\",\n input: OpenaiCreateModerationInput,\n output: OpenaiCreateModerationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,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A,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2IAA2I;AACtN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,8 +5,8 @@ declare const OpenaiCreateModerationInput: z.ZodObject<{
|
|
|
5
5
|
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
6
6
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
type: z.ZodString;
|
|
8
|
-
image_url: z.ZodOptional<z.ZodNullable<z.
|
|
9
|
-
}, z.core.$
|
|
8
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9
|
+
}, z.core.$loose>]>>]>;
|
|
10
10
|
model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
@@ -28,7 +28,7 @@ declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
|
28
28
|
"violence/graphic": z.ZodNullable<z.ZodBoolean>;
|
|
29
29
|
"harassment/threatening": z.ZodNullable<z.ZodBoolean>;
|
|
30
30
|
"self-harm/instructions": z.ZodNullable<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
category_scores: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
hate: z.ZodNullable<z.ZodNumber>;
|
|
34
34
|
sexual: z.ZodNullable<z.ZodNumber>;
|
|
@@ -43,7 +43,7 @@ declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
|
43
43
|
"violence/graphic": z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
"harassment/threatening": z.ZodNullable<z.ZodNumber>;
|
|
45
45
|
"self-harm/instructions": z.ZodNullable<z.ZodNumber>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
category_applied_input_types: z.ZodNullable<z.ZodObject<{
|
|
48
48
|
hate: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
49
49
|
sexual: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -58,14 +58,15 @@ declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
|
58
58
|
"violence/graphic": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
59
59
|
"harassment/threatening": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
60
60
|
"self-harm/instructions": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
61
|
-
}, z.core.$
|
|
62
|
-
}, z.core.$
|
|
63
|
-
}, z.core.$
|
|
61
|
+
}, z.core.$loose>>;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const openaiCreateModeration: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
input: string | (string | {
|
|
66
|
+
[x: string]: unknown;
|
|
66
67
|
type: string;
|
|
67
68
|
text?: string | null | undefined;
|
|
68
|
-
image_url?: Record<string,
|
|
69
|
+
image_url?: Record<string, unknown> | null | undefined;
|
|
69
70
|
})[];
|
|
70
71
|
model?: string | undefined;
|
|
71
72
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-moderation.d.cts","names":[],"sources":["../../src/actions/create-moderation.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cA2D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA
|
|
1
|
+
{"version":3,"file":"create-moderation.d.cts","names":[],"sources":["../../src/actions/create-moderation.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cA2D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA;;;;;gBAMjC,MAAA;EAAA"}
|
|
@@ -5,8 +5,8 @@ declare const OpenaiCreateModerationInput: z.ZodObject<{
|
|
|
5
5
|
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
6
6
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
type: z.ZodString;
|
|
8
|
-
image_url: z.ZodOptional<z.ZodNullable<z.
|
|
9
|
-
}, z.core.$
|
|
8
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9
|
+
}, z.core.$loose>]>>]>;
|
|
10
10
|
model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
@@ -28,7 +28,7 @@ declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
|
28
28
|
"violence/graphic": z.ZodNullable<z.ZodBoolean>;
|
|
29
29
|
"harassment/threatening": z.ZodNullable<z.ZodBoolean>;
|
|
30
30
|
"self-harm/instructions": z.ZodNullable<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
category_scores: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
hate: z.ZodNullable<z.ZodNumber>;
|
|
34
34
|
sexual: z.ZodNullable<z.ZodNumber>;
|
|
@@ -43,7 +43,7 @@ declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
|
43
43
|
"violence/graphic": z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
"harassment/threatening": z.ZodNullable<z.ZodNumber>;
|
|
45
45
|
"self-harm/instructions": z.ZodNullable<z.ZodNumber>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
category_applied_input_types: z.ZodNullable<z.ZodObject<{
|
|
48
48
|
hate: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
49
49
|
sexual: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -58,14 +58,15 @@ declare const OpenaiCreateModerationOutput: z.ZodObject<{
|
|
|
58
58
|
"violence/graphic": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
59
59
|
"harassment/threatening": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
60
60
|
"self-harm/instructions": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
61
|
-
}, z.core.$
|
|
62
|
-
}, z.core.$
|
|
63
|
-
}, z.core.$
|
|
61
|
+
}, z.core.$loose>>;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const openaiCreateModeration: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
input: string | (string | {
|
|
66
|
+
[x: string]: unknown;
|
|
66
67
|
type: string;
|
|
67
68
|
text?: string | null | undefined;
|
|
68
|
-
image_url?: Record<string,
|
|
69
|
+
image_url?: Record<string, unknown> | null | undefined;
|
|
69
70
|
})[];
|
|
70
71
|
model?: string | undefined;
|
|
71
72
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-moderation.d.mts","names":[],"sources":["../../src/actions/create-moderation.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cA2D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA
|
|
1
|
+
{"version":3,"file":"create-moderation.d.mts","names":[],"sources":["../../src/actions/create-moderation.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cA2D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA;;;;;gBAMjC,MAAA;EAAA"}
|
|
@@ -5,8 +5,8 @@ const OpenaiCreateModerationInput = z.object({
|
|
|
5
5
|
input: z.union([z.string(), z.array(z.union([z.string(), z.object({
|
|
6
6
|
text: z.string().nullable().optional(),
|
|
7
7
|
type: z.string().describe("Type of content: 'text' or 'image_url'"),
|
|
8
|
-
image_url: z.
|
|
9
|
-
}).describe("Multi-modal input item with text or image content.")]))]),
|
|
8
|
+
image_url: z.record(z.string(), z.unknown()).nullable().optional()
|
|
9
|
+
}).passthrough().describe("Multi-modal input item with text or image content.")]))]),
|
|
10
10
|
model: z.string().default("omni-moderation-latest").describe("The content moderation model to use. Options include: 'omni-moderation-latest' (default, supports text and images), 'omni-moderation-2024-09-26' (specific omni version), 'text-moderation-latest' (text-only, latest version), 'text-moderation-stable' (text-only, stable version), 'text-moderation-007' (text-only, legacy version). Learn more in the moderation guide and available models documentation.").optional()
|
|
11
11
|
}).describe("Request model for classifying text and/or image inputs for harmful content.");
|
|
12
12
|
const OpenaiCreateModeration_ModerationCategoriesSchema = z.object({
|
|
@@ -23,7 +23,7 @@ const OpenaiCreateModeration_ModerationCategoriesSchema = z.object({
|
|
|
23
23
|
"violence/graphic": z.boolean().describe("Content that depicts death, violence, or physical injury in graphic detail").nullable(),
|
|
24
24
|
"harassment/threatening": z.boolean().describe("Harassment content that also includes violence or serious harm towards any target").nullable(),
|
|
25
25
|
"self-harm/instructions": z.boolean().describe("Content that encourages performing acts of self-harm or provides instructions").nullable()
|
|
26
|
-
}).describe("Boolean flags indicating whether content violates each category.");
|
|
26
|
+
}).passthrough().describe("Boolean flags indicating whether content violates each category.");
|
|
27
27
|
const OpenaiCreateModeration_ModerationCategoryScoresSchema = z.object({
|
|
28
28
|
hate: z.number().describe("Confidence score for hate content (0.0-1.0)").nullable(),
|
|
29
29
|
sexual: z.number().describe("Confidence score for sexual content (0.0-1.0)").nullable(),
|
|
@@ -38,7 +38,7 @@ const OpenaiCreateModeration_ModerationCategoryScoresSchema = z.object({
|
|
|
38
38
|
"violence/graphic": z.number().describe("Confidence score for graphic violent content (0.0-1.0)").nullable(),
|
|
39
39
|
"harassment/threatening": z.number().describe("Confidence score for threatening harassment content (0.0-1.0)").nullable(),
|
|
40
40
|
"self-harm/instructions": z.number().describe("Confidence score for self-harm instructions (0.0-1.0)").nullable()
|
|
41
|
-
}).describe("Confidence scores (0-1) for each moderation category.");
|
|
41
|
+
}).passthrough().describe("Confidence scores (0-1) for each moderation category.");
|
|
42
42
|
const OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = z.object({
|
|
43
43
|
hate: z.array(z.string()).describe("Input types that triggered hate flag").nullable().optional(),
|
|
44
44
|
sexual: z.array(z.string()).describe("Input types that triggered sexual flag").nullable().optional(),
|
|
@@ -53,13 +53,13 @@ const OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = z.objec
|
|
|
53
53
|
"violence/graphic": z.array(z.string()).describe("Input types that triggered graphic violence flag").nullable().optional(),
|
|
54
54
|
"harassment/threatening": z.array(z.string()).describe("Input types that triggered threatening harassment flag").nullable().optional(),
|
|
55
55
|
"self-harm/instructions": z.array(z.string()).describe("Input types that triggered self-harm instructions flag").nullable().optional()
|
|
56
|
-
}).describe("Input types (text or image) that triggered each category flag.");
|
|
56
|
+
}).passthrough().describe("Input types (text or image) that triggered each category flag.");
|
|
57
57
|
const OpenaiCreateModeration_ModerationResultSchema = z.object({
|
|
58
58
|
flagged: z.boolean().describe("Whether any of the moderation categories are flagged as violated").nullable(),
|
|
59
59
|
categories: OpenaiCreateModeration_ModerationCategoriesSchema.nullable(),
|
|
60
60
|
category_scores: OpenaiCreateModeration_ModerationCategoryScoresSchema.nullable(),
|
|
61
61
|
category_applied_input_types: OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema.nullable()
|
|
62
|
-
}).describe("Individual moderation result for a single input.");
|
|
62
|
+
}).passthrough().describe("Individual moderation result for a single input.");
|
|
63
63
|
const openaiCreateModeration = action("OPENAI_CREATE_MODERATION", {
|
|
64
64
|
slug: "openai-create-moderation",
|
|
65
65
|
name: "Create Moderation",
|
|
@@ -69,7 +69,7 @@ const openaiCreateModeration = action("OPENAI_CREATE_MODERATION", {
|
|
|
69
69
|
id: z.string().describe("Unique identifier for the moderation request").nullable(),
|
|
70
70
|
model: z.string().describe("The model used to generate the moderation results").nullable(),
|
|
71
71
|
results: z.array(OpenaiCreateModeration_ModerationResultSchema).describe("List of moderation results, one for each input provided. Each result contains flagged status, categories, scores, and applied input types")
|
|
72
|
-
}).describe("Response schema for moderation classification.")
|
|
72
|
+
}).passthrough().describe("Response schema for moderation classification.")
|
|
73
73
|
});
|
|
74
74
|
//#endregion
|
|
75
75
|
export { openaiCreateModeration };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-moderation.mjs","names":[],"sources":["../../src/actions/create-moderation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateModerationInput = z.object({\n input: z.union([z.string(), z.array(z.union([z.string(), z.object({\n text: z.string().nullable().optional(),\n type: z.string().describe(\"Type of content: 'text' or 'image_url'\"),\n image_url: z.object({}).nullable().optional(),\n}).describe(\"Multi-modal input item with text or image content.\")]))]),\n model: z.string().default(\"omni-moderation-latest\").describe(\"The content moderation model to use. Options include: 'omni-moderation-latest' (default, supports text and images), 'omni-moderation-2024-09-26' (specific omni version), 'text-moderation-latest' (text-only, latest version), 'text-moderation-stable' (text-only, stable version), 'text-moderation-007' (text-only, legacy version). Learn more in the moderation guide and available models documentation.\").optional(),\n}).describe(\"Request model for classifying text and/or image inputs for harmful content.\");\nconst OpenaiCreateModeration_ModerationCategoriesSchema = z.object({\n hate: z.boolean().describe(\"Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste\").nullable(),\n sexual: z.boolean().describe(\"Content meant to arouse sexual excitement or that promotes sexual services\").nullable(),\n illicit: z.boolean().describe(\"Content that includes instructions or advice on how to commit wrongdoing (omni models only)\").nullable().optional(),\n violence: z.boolean().describe(\"Content that depicts death, violence, or physical injury\").nullable(),\n \"self-harm\": z.boolean().describe(\"Content that promotes, encourages, or depicts acts of self-harm\").nullable(),\n harassment: z.boolean().describe(\"Content that expresses, incites, or promotes harassing language towards any target\").nullable(),\n \"sexual/minors\": z.boolean().describe(\"Sexual content that includes an individual who is under 18 years old\").nullable(),\n \"illicit/violent\": z.boolean().describe(\"Illicit content that includes instructions for violence (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.boolean().describe(\"Hateful content that also includes violence or serious harm towards the targeted group\").nullable(),\n \"self-harm/intent\": z.boolean().describe(\"Content where the speaker expresses intent to engage in self-harm\").nullable(),\n \"violence/graphic\": z.boolean().describe(\"Content that depicts death, violence, or physical injury in graphic detail\").nullable(),\n \"harassment/threatening\": z.boolean().describe(\"Harassment content that also includes violence or serious harm towards any target\").nullable(),\n \"self-harm/instructions\": z.boolean().describe(\"Content that encourages performing acts of self-harm or provides instructions\").nullable(),\n}).describe(\"Boolean flags indicating whether content violates each category.\");\nconst OpenaiCreateModeration_ModerationCategoryScoresSchema = z.object({\n hate: z.number().describe(\"Confidence score for hate content (0.0-1.0)\").nullable(),\n sexual: z.number().describe(\"Confidence score for sexual content (0.0-1.0)\").nullable(),\n illicit: z.number().describe(\"Confidence score for illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n violence: z.number().describe(\"Confidence score for violent content (0.0-1.0)\").nullable(),\n \"self-harm\": z.number().describe(\"Confidence score for self-harm content (0.0-1.0)\").nullable(),\n harassment: z.number().describe(\"Confidence score for harassment content (0.0-1.0)\").nullable(),\n \"sexual/minors\": z.number().describe(\"Confidence score for sexual content involving minors (0.0-1.0)\").nullable(),\n \"illicit/violent\": z.number().describe(\"Confidence score for violent illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n \"hate/threatening\": z.number().describe(\"Confidence score for threatening hate content (0.0-1.0)\").nullable(),\n \"self-harm/intent\": z.number().describe(\"Confidence score for self-harm intent (0.0-1.0)\").nullable(),\n \"violence/graphic\": z.number().describe(\"Confidence score for graphic violent content (0.0-1.0)\").nullable(),\n \"harassment/threatening\": z.number().describe(\"Confidence score for threatening harassment content (0.0-1.0)\").nullable(),\n \"self-harm/instructions\": z.number().describe(\"Confidence score for self-harm instructions (0.0-1.0)\").nullable(),\n}).describe(\"Confidence scores (0-1) for each moderation category.\");\nconst OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = z.object({\n hate: z.array(z.string()).describe(\"Input types that triggered hate flag\").nullable().optional(),\n sexual: z.array(z.string()).describe(\"Input types that triggered sexual flag\").nullable().optional(),\n illicit: z.array(z.string()).describe(\"Input types that triggered illicit flag (omni models only)\").nullable().optional(),\n violence: z.array(z.string()).describe(\"Input types that triggered violence flag\").nullable().optional(),\n \"self-harm\": z.array(z.string()).describe(\"Input types that triggered self-harm flag\").nullable().optional(),\n harassment: z.array(z.string()).describe(\"Input types that triggered harassment flag (e.g., ['text'], ['image'])\").nullable().optional(),\n \"sexual/minors\": z.array(z.string()).describe(\"Input types that triggered sexual minors flag\").nullable().optional(),\n \"illicit/violent\": z.array(z.string()).describe(\"Input types that triggered violent illicit flag (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening hate flag\").nullable().optional(),\n \"self-harm/intent\": z.array(z.string()).describe(\"Input types that triggered self-harm intent flag\").nullable().optional(),\n \"violence/graphic\": z.array(z.string()).describe(\"Input types that triggered graphic violence flag\").nullable().optional(),\n \"harassment/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening harassment flag\").nullable().optional(),\n \"self-harm/instructions\": z.array(z.string()).describe(\"Input types that triggered self-harm instructions flag\").nullable().optional(),\n}).describe(\"Input types (text or image) that triggered each category flag.\");\nconst OpenaiCreateModeration_ModerationResultSchema = z.object({\n flagged: z.boolean().describe(\"Whether any of the moderation categories are flagged as violated\").nullable(),\n categories: OpenaiCreateModeration_ModerationCategoriesSchema.nullable(),\n category_scores: OpenaiCreateModeration_ModerationCategoryScoresSchema.nullable(),\n category_applied_input_types: OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema.nullable(),\n}).describe(\"Individual moderation result for a single input.\");\nexport const OpenaiCreateModerationOutput = z.object({\n id: z.string().describe(\"Unique identifier for the moderation request\").nullable(),\n model: z.string().describe(\"The model used to generate the moderation results\").nullable(),\n results: z.array(OpenaiCreateModeration_ModerationResultSchema).describe(\"List of moderation results, one for each input provided. Each result contains flagged status, categories, scores, and applied input types\"),\n}).describe(\"Response schema for moderation classification.\");\n\nexport const openaiCreateModeration = action(\"OPENAI_CREATE_MODERATION\", {\n slug: \"openai-create-moderation\",\n name: \"Create Moderation\",\n description: \"Tool to classify text and/or image inputs for potentially harmful content via the OpenAI Moderation API. Use for content safety checks, filtering user-generated content, or monitoring for policy violations across 13 harm categories including harassment, hate, violence, sexual content, self-harm, and illicit activities.\",\n input: OpenaiCreateModerationInput,\n output: OpenaiCreateModerationOutput,\n});\n"],"mappings":";;;AAIA,MAA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,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,0BAA0B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,0BAA0B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,gDAAgD,EAAE,OAAO;CAC7D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAY,kDAAkD,SAAS;CACvE,iBAAiB,sDAAsD,SAAS;CAChF,8BAA8B,iEAAiE,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAO9D,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2IAA2I;CACtN,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-moderation.mjs","names":[],"sources":["../../src/actions/create-moderation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateModerationInput = z.object({\n input: z.union([z.string(), z.array(z.union([z.string(), z.object({\n text: z.string().nullable().optional(),\n type: z.string().describe(\"Type of content: 'text' or 'image_url'\"),\n image_url: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough().describe(\"Multi-modal input item with text or image content.\")]))]),\n model: z.string().default(\"omni-moderation-latest\").describe(\"The content moderation model to use. Options include: 'omni-moderation-latest' (default, supports text and images), 'omni-moderation-2024-09-26' (specific omni version), 'text-moderation-latest' (text-only, latest version), 'text-moderation-stable' (text-only, stable version), 'text-moderation-007' (text-only, legacy version). Learn more in the moderation guide and available models documentation.\").optional(),\n}).describe(\"Request model for classifying text and/or image inputs for harmful content.\");\nconst OpenaiCreateModeration_ModerationCategoriesSchema = z.object({\n hate: z.boolean().describe(\"Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste\").nullable(),\n sexual: z.boolean().describe(\"Content meant to arouse sexual excitement or that promotes sexual services\").nullable(),\n illicit: z.boolean().describe(\"Content that includes instructions or advice on how to commit wrongdoing (omni models only)\").nullable().optional(),\n violence: z.boolean().describe(\"Content that depicts death, violence, or physical injury\").nullable(),\n \"self-harm\": z.boolean().describe(\"Content that promotes, encourages, or depicts acts of self-harm\").nullable(),\n harassment: z.boolean().describe(\"Content that expresses, incites, or promotes harassing language towards any target\").nullable(),\n \"sexual/minors\": z.boolean().describe(\"Sexual content that includes an individual who is under 18 years old\").nullable(),\n \"illicit/violent\": z.boolean().describe(\"Illicit content that includes instructions for violence (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.boolean().describe(\"Hateful content that also includes violence or serious harm towards the targeted group\").nullable(),\n \"self-harm/intent\": z.boolean().describe(\"Content where the speaker expresses intent to engage in self-harm\").nullable(),\n \"violence/graphic\": z.boolean().describe(\"Content that depicts death, violence, or physical injury in graphic detail\").nullable(),\n \"harassment/threatening\": z.boolean().describe(\"Harassment content that also includes violence or serious harm towards any target\").nullable(),\n \"self-harm/instructions\": z.boolean().describe(\"Content that encourages performing acts of self-harm or provides instructions\").nullable(),\n}).passthrough().describe(\"Boolean flags indicating whether content violates each category.\");\nconst OpenaiCreateModeration_ModerationCategoryScoresSchema = z.object({\n hate: z.number().describe(\"Confidence score for hate content (0.0-1.0)\").nullable(),\n sexual: z.number().describe(\"Confidence score for sexual content (0.0-1.0)\").nullable(),\n illicit: z.number().describe(\"Confidence score for illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n violence: z.number().describe(\"Confidence score for violent content (0.0-1.0)\").nullable(),\n \"self-harm\": z.number().describe(\"Confidence score for self-harm content (0.0-1.0)\").nullable(),\n harassment: z.number().describe(\"Confidence score for harassment content (0.0-1.0)\").nullable(),\n \"sexual/minors\": z.number().describe(\"Confidence score for sexual content involving minors (0.0-1.0)\").nullable(),\n \"illicit/violent\": z.number().describe(\"Confidence score for violent illicit content (0.0-1.0, omni models only)\").nullable().optional(),\n \"hate/threatening\": z.number().describe(\"Confidence score for threatening hate content (0.0-1.0)\").nullable(),\n \"self-harm/intent\": z.number().describe(\"Confidence score for self-harm intent (0.0-1.0)\").nullable(),\n \"violence/graphic\": z.number().describe(\"Confidence score for graphic violent content (0.0-1.0)\").nullable(),\n \"harassment/threatening\": z.number().describe(\"Confidence score for threatening harassment content (0.0-1.0)\").nullable(),\n \"self-harm/instructions\": z.number().describe(\"Confidence score for self-harm instructions (0.0-1.0)\").nullable(),\n}).passthrough().describe(\"Confidence scores (0-1) for each moderation category.\");\nconst OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema = z.object({\n hate: z.array(z.string()).describe(\"Input types that triggered hate flag\").nullable().optional(),\n sexual: z.array(z.string()).describe(\"Input types that triggered sexual flag\").nullable().optional(),\n illicit: z.array(z.string()).describe(\"Input types that triggered illicit flag (omni models only)\").nullable().optional(),\n violence: z.array(z.string()).describe(\"Input types that triggered violence flag\").nullable().optional(),\n \"self-harm\": z.array(z.string()).describe(\"Input types that triggered self-harm flag\").nullable().optional(),\n harassment: z.array(z.string()).describe(\"Input types that triggered harassment flag (e.g., ['text'], ['image'])\").nullable().optional(),\n \"sexual/minors\": z.array(z.string()).describe(\"Input types that triggered sexual minors flag\").nullable().optional(),\n \"illicit/violent\": z.array(z.string()).describe(\"Input types that triggered violent illicit flag (omni models only)\").nullable().optional(),\n \"hate/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening hate flag\").nullable().optional(),\n \"self-harm/intent\": z.array(z.string()).describe(\"Input types that triggered self-harm intent flag\").nullable().optional(),\n \"violence/graphic\": z.array(z.string()).describe(\"Input types that triggered graphic violence flag\").nullable().optional(),\n \"harassment/threatening\": z.array(z.string()).describe(\"Input types that triggered threatening harassment flag\").nullable().optional(),\n \"self-harm/instructions\": z.array(z.string()).describe(\"Input types that triggered self-harm instructions flag\").nullable().optional(),\n}).passthrough().describe(\"Input types (text or image) that triggered each category flag.\");\nconst OpenaiCreateModeration_ModerationResultSchema = z.object({\n flagged: z.boolean().describe(\"Whether any of the moderation categories are flagged as violated\").nullable(),\n categories: OpenaiCreateModeration_ModerationCategoriesSchema.nullable(),\n category_scores: OpenaiCreateModeration_ModerationCategoryScoresSchema.nullable(),\n category_applied_input_types: OpenaiCreateModeration_ModerationCategoryAppliedInputTypesSchema.nullable(),\n}).passthrough().describe(\"Individual moderation result for a single input.\");\nexport const OpenaiCreateModerationOutput = z.object({\n id: z.string().describe(\"Unique identifier for the moderation request\").nullable(),\n model: z.string().describe(\"The model used to generate the moderation results\").nullable(),\n results: z.array(OpenaiCreateModeration_ModerationResultSchema).describe(\"List of moderation results, one for each input provided. Each result contains flagged status, categories, scores, and applied input types\"),\n}).passthrough().describe(\"Response schema for moderation classification.\");\n\nexport const openaiCreateModeration = action(\"OPENAI_CREATE_MODERATION\", {\n slug: \"openai-create-moderation\",\n name: \"Create Moderation\",\n description: \"Tool to classify text and/or image inputs for potentially harmful content via the OpenAI Moderation API. Use for content safety checks, filtering user-generated content, or monitoring for policy violations across 13 harm categories including harassment, hate, violence, sexual content, self-harm, and illicit activities.\",\n input: OpenaiCreateModerationInput,\n output: OpenaiCreateModerationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,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C,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,0BAA0B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,0BAA0B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAC1F,MAAM,gDAAgD,EAAE,OAAO;CAC7D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAY,kDAAkD,SAAS;CACvE,iBAAiB,sDAAsD,SAAS;CAChF,8BAA8B,iEAAiE,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAO5E,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,2IAA2I;CACtN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const OpenaiCreateRealtimeCallInput = zod.z.object({
|
|
|
8
8
|
const OpenaiCreateRealtimeCallOutput = zod.z.object({
|
|
9
9
|
sdp: zod.z.string().describe("WebRTC Session Description Protocol (SDP) answer from the server. Use this SDP answer to complete the WebRTC peer connection by calling setRemoteDescription() on your RTCPeerConnection object.").nullable(),
|
|
10
10
|
call_id: zod.z.string().describe("Call ID extracted from the Location header (format: rtc_xxxxx). Use this ID for follow-up operations like establishing a monitoring WebSocket or hanging up the call via DELETE /v1/realtime/calls/{call_id}.").nullable().optional()
|
|
11
|
-
}).describe("Response model for Realtime API call creation.");
|
|
11
|
+
}).passthrough().describe("Response model for Realtime API call creation.");
|
|
12
12
|
const openaiCreateRealtimeCall = require_action.action("OPENAI_CREATE_REALTIME_CALL", {
|
|
13
13
|
slug: "openai-create-realtime-call",
|
|
14
14
|
name: "Create Realtime Call",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-call.cjs","names":["z","action"],"sources":["../../src/actions/create-realtime-call.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeCallInput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) offer generated by the caller. This must be a complete SDP offer with media descriptions (audio), ICE parameters, fingerprints, and other WebRTC connection details. The SDP establishes the peer connection parameters.\"),\n model: z.string().describe(\"The Realtime model to use for the call. Example: 'gpt-4o-realtime-preview-2024-12-17'. This model handles bidirectional audio streaming and data channel messaging over WebRTC.\"),\n}).describe(\"Request model for creating a Realtime API call over WebRTC.\");\nexport const OpenaiCreateRealtimeCallOutput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) answer from the server. Use this SDP answer to complete the WebRTC peer connection by calling setRemoteDescription() on your RTCPeerConnection object.\").nullable(),\n call_id: z.string().describe(\"Call ID extracted from the Location header (format: rtc_xxxxx). Use this ID for follow-up operations like establishing a monitoring WebSocket or hanging up the call via DELETE /v1/realtime/calls/{call_id}.\").nullable().optional(),\n}).describe(\"Response model for Realtime API call creation.\");\n\nexport const openaiCreateRealtimeCall = action(\"OPENAI_CREATE_REALTIME_CALL\", {\n slug: \"openai-create-realtime-call\",\n name: \"Create Realtime Call\",\n description: \"Tool to create a Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection. Use when initiating a bidirectional audio/data WebRTC session with OpenAI's Realtime API. Returns the SDP answer and call ID for connection establishment.\",\n input: OpenaiCreateRealtimeCallInput,\n output: OpenaiCreateRealtimeCallOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oQAAoQ;CAC7R,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL;AAC9M,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACtO,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"create-realtime-call.cjs","names":["z","action"],"sources":["../../src/actions/create-realtime-call.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeCallInput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) offer generated by the caller. This must be a complete SDP offer with media descriptions (audio), ICE parameters, fingerprints, and other WebRTC connection details. The SDP establishes the peer connection parameters.\"),\n model: z.string().describe(\"The Realtime model to use for the call. Example: 'gpt-4o-realtime-preview-2024-12-17'. This model handles bidirectional audio streaming and data channel messaging over WebRTC.\"),\n}).describe(\"Request model for creating a Realtime API call over WebRTC.\");\nexport const OpenaiCreateRealtimeCallOutput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) answer from the server. Use this SDP answer to complete the WebRTC peer connection by calling setRemoteDescription() on your RTCPeerConnection object.\").nullable(),\n call_id: z.string().describe(\"Call ID extracted from the Location header (format: rtc_xxxxx). Use this ID for follow-up operations like establishing a monitoring WebSocket or hanging up the call via DELETE /v1/realtime/calls/{call_id}.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Realtime API call creation.\");\n\nexport const openaiCreateRealtimeCall = action(\"OPENAI_CREATE_REALTIME_CALL\", {\n slug: \"openai-create-realtime-call\",\n name: \"Create Realtime Call\",\n description: \"Tool to create a Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection. Use when initiating a bidirectional audio/data WebRTC session with OpenAI's Realtime API. Returns the SDP answer and call ID for connection establishment.\",\n input: OpenaiCreateRealtimeCallInput,\n output: OpenaiCreateRealtimeCallOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oQAAoQ;CAC7R,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL;AAC9M,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACtO,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const OpenaiCreateRealtimeCallInput: z.ZodObject<{
|
|
|
8
8
|
declare const OpenaiCreateRealtimeCallOutput: z.ZodObject<{
|
|
9
9
|
sdp: z.ZodNullable<z.ZodString>;
|
|
10
10
|
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const openaiCreateRealtimeCall: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
sdp: string;
|
|
14
14
|
model: string;
|
|
@@ -8,7 +8,7 @@ declare const OpenaiCreateRealtimeCallInput: z.ZodObject<{
|
|
|
8
8
|
declare const OpenaiCreateRealtimeCallOutput: z.ZodObject<{
|
|
9
9
|
sdp: z.ZodNullable<z.ZodString>;
|
|
10
10
|
call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const openaiCreateRealtimeCall: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
sdp: string;
|
|
14
14
|
model: string;
|
|
@@ -11,7 +11,7 @@ const openaiCreateRealtimeCall = action("OPENAI_CREATE_REALTIME_CALL", {
|
|
|
11
11
|
output: z.object({
|
|
12
12
|
sdp: z.string().describe("WebRTC Session Description Protocol (SDP) answer from the server. Use this SDP answer to complete the WebRTC peer connection by calling setRemoteDescription() on your RTCPeerConnection object.").nullable(),
|
|
13
13
|
call_id: z.string().describe("Call ID extracted from the Location header (format: rtc_xxxxx). Use this ID for follow-up operations like establishing a monitoring WebSocket or hanging up the call via DELETE /v1/realtime/calls/{call_id}.").nullable().optional()
|
|
14
|
-
}).describe("Response model for Realtime API call creation.")
|
|
14
|
+
}).passthrough().describe("Response model for Realtime API call creation.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { openaiCreateRealtimeCall };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-call.mjs","names":[],"sources":["../../src/actions/create-realtime-call.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeCallInput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) offer generated by the caller. This must be a complete SDP offer with media descriptions (audio), ICE parameters, fingerprints, and other WebRTC connection details. The SDP establishes the peer connection parameters.\"),\n model: z.string().describe(\"The Realtime model to use for the call. Example: 'gpt-4o-realtime-preview-2024-12-17'. This model handles bidirectional audio streaming and data channel messaging over WebRTC.\"),\n}).describe(\"Request model for creating a Realtime API call over WebRTC.\");\nexport const OpenaiCreateRealtimeCallOutput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) answer from the server. Use this SDP answer to complete the WebRTC peer connection by calling setRemoteDescription() on your RTCPeerConnection object.\").nullable(),\n call_id: z.string().describe(\"Call ID extracted from the Location header (format: rtc_xxxxx). Use this ID for follow-up operations like establishing a monitoring WebSocket or hanging up the call via DELETE /v1/realtime/calls/{call_id}.\").nullable().optional(),\n}).describe(\"Response model for Realtime API call creation.\");\n\nexport const openaiCreateRealtimeCall = action(\"OPENAI_CREATE_REALTIME_CALL\", {\n slug: \"openai-create-realtime-call\",\n name: \"Create Realtime Call\",\n description: \"Tool to create a Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection. Use when initiating a bidirectional audio/data WebRTC session with OpenAI's Realtime API. Returns the SDP answer and call ID for connection establishment.\",\n input: OpenaiCreateRealtimeCallInput,\n output: OpenaiCreateRealtimeCallOutput,\n});\n"],"mappings":";;AAaA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oQAAoQ;EAC7R,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL;CAC9M,CAAC,CAAC,CAAC,SAAS,6DAUH;CACP,QAV4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;EACtO,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpQ,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-realtime-call.mjs","names":[],"sources":["../../src/actions/create-realtime-call.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeCallInput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) offer generated by the caller. This must be a complete SDP offer with media descriptions (audio), ICE parameters, fingerprints, and other WebRTC connection details. The SDP establishes the peer connection parameters.\"),\n model: z.string().describe(\"The Realtime model to use for the call. Example: 'gpt-4o-realtime-preview-2024-12-17'. This model handles bidirectional audio streaming and data channel messaging over WebRTC.\"),\n}).describe(\"Request model for creating a Realtime API call over WebRTC.\");\nexport const OpenaiCreateRealtimeCallOutput = z.object({\n sdp: z.string().describe(\"WebRTC Session Description Protocol (SDP) answer from the server. Use this SDP answer to complete the WebRTC peer connection by calling setRemoteDescription() on your RTCPeerConnection object.\").nullable(),\n call_id: z.string().describe(\"Call ID extracted from the Location header (format: rtc_xxxxx). Use this ID for follow-up operations like establishing a monitoring WebSocket or hanging up the call via DELETE /v1/realtime/calls/{call_id}.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Realtime API call creation.\");\n\nexport const openaiCreateRealtimeCall = action(\"OPENAI_CREATE_REALTIME_CALL\", {\n slug: \"openai-create-realtime-call\",\n name: \"Create Realtime Call\",\n description: \"Tool to create a Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection. Use when initiating a bidirectional audio/data WebRTC session with OpenAI's Realtime API. Returns the SDP answer and call ID for connection establishment.\",\n input: OpenaiCreateRealtimeCallInput,\n output: OpenaiCreateRealtimeCallOutput,\n});\n"],"mappings":";;AAaA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oQAAoQ;EAC7R,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iLAAiL;CAC9M,CAAC,CAAC,CAAC,SAAS,6DAUH;CACP,QAV4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;EACtO,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -15,11 +15,11 @@ const OpenaiCreateRealtimeClientSecretInput = zod.z.object({
|
|
|
15
15
|
instructions: zod.z.string().nullable().optional(),
|
|
16
16
|
max_output_tokens: zod.z.number().int().nullable().optional(),
|
|
17
17
|
output_modalities: zod.z.array(zod.z.string()).nullable().optional()
|
|
18
|
-
}).describe("Configuration for a realtime session."), zod.z.object({
|
|
18
|
+
}).passthrough().describe("Configuration for a realtime session."), zod.z.object({
|
|
19
19
|
type: zod.z.string().describe("Session type, must be 'transcription'"),
|
|
20
20
|
audio: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
21
21
|
include: zod.z.array(zod.z.string()).nullable().optional()
|
|
22
|
-
}).describe("Configuration for a transcription session.")]).optional(),
|
|
22
|
+
}).passthrough().describe("Configuration for a transcription session.")]).optional(),
|
|
23
23
|
expires_after: zod.z.object({
|
|
24
24
|
anchor: zod.z.string().default("created_at").describe("The anchor point for the client secret expiration. Only 'created_at' is currently supported").optional(),
|
|
25
25
|
seconds: zod.z.number().int().default(600).describe("Number of seconds from anchor point to expiration. Must be between 10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes)").optional()
|
|
@@ -29,7 +29,7 @@ const OpenaiCreateRealtimeClientSecretOutput = zod.z.object({
|
|
|
29
29
|
value: zod.z.string().describe("The generated client secret value").nullable(),
|
|
30
30
|
session: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The session configuration for either a realtime or transcription session"),
|
|
31
31
|
expires_at: zod.z.number().int().describe("Expiration timestamp for the client secret, in seconds since epoch").nullable()
|
|
32
|
-
}).describe("Response schema for creating a realtime client secret.");
|
|
32
|
+
}).passthrough().describe("Response schema for creating a realtime client secret.");
|
|
33
33
|
const openaiCreateRealtimeClientSecret = require_action.action("OPENAI_CREATE_REALTIME_CLIENT_SECRET", {
|
|
34
34
|
slug: "openai-create-realtime-client-secret",
|
|
35
35
|
name: "Create Realtime Client Secret",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-client-secret.cjs","names":["z","action"],"sources":["../../src/actions/create-realtime-client-secret.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeClientSecretInput = z.object({\n session: z.union([z.object({\n type: z.string().describe(\"Session type, must be 'realtime'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n model: z.string().nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n prompt: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n tracing: z.record(z.string(), z.unknown()).nullable().optional(),\n truncation: z.record(z.string(), z.unknown()).nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n instructions: z.string().nullable().optional(),\n max_output_tokens: z.number().int().nullable().optional(),\n output_modalities: z.array(z.string()).nullable().optional(),\n}).describe(\"Configuration for a realtime session.\"), z.object({\n type: z.string().describe(\"Session type, must be 'transcription'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n}).describe(\"Configuration for a transcription session.\")]).optional(),\n expires_after: z.object({\n anchor: z.string().default(\"created_at\").describe(\"The anchor point for the client secret expiration. Only 'created_at' is currently supported\").optional(),\n seconds: z.number().int().default(600).describe(\"Number of seconds from anchor point to expiration. Must be between 10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes)\").optional(),\n}).describe(\"Configuration for the client secret expiration.\").optional(),\n}).describe(\"Request parameters for creating a realtime client secret.\");\nexport const OpenaiCreateRealtimeClientSecretOutput = z.object({\n value: z.string().describe(\"The generated client secret value\").nullable(),\n session: z.record(z.string(), z.unknown()).describe(\"The session configuration for either a realtime or transcription session\"),\n expires_at: z.number().int().describe(\"Expiration timestamp for the client secret, in seconds since epoch\").nullable(),\n}).describe(\"Response schema for creating a realtime client secret.\");\n\nexport const openaiCreateRealtimeClientSecret = action(\"OPENAI_CREATE_REALTIME_CLIENT_SECRET\", {\n slug: \"openai-create-realtime-client-secret\",\n name: \"Create Realtime Client Secret\",\n description: \"Tool to create an ephemeral client secret for authenticating Realtime API connections. Use when you need to establish a WebSocket connection to OpenAI's Realtime API for voice or streaming interactions.\",\n input: OpenaiCreateRealtimeClientSecretInput,\n output: OpenaiCreateRealtimeClientSecretOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtC,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/D,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7C,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxD,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,uCAAuC,GAAGA,IAAAA,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"create-realtime-client-secret.cjs","names":["z","action"],"sources":["../../src/actions/create-realtime-client-secret.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeClientSecretInput = z.object({\n session: z.union([z.object({\n type: z.string().describe(\"Session type, must be 'realtime'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n model: z.string().nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n prompt: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n tracing: z.record(z.string(), z.unknown()).nullable().optional(),\n truncation: z.record(z.string(), z.unknown()).nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n instructions: z.string().nullable().optional(),\n max_output_tokens: z.number().int().nullable().optional(),\n output_modalities: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"Configuration for a realtime session.\"), z.object({\n type: z.string().describe(\"Session type, must be 'transcription'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"Configuration for a transcription session.\")]).optional(),\n expires_after: z.object({\n anchor: z.string().default(\"created_at\").describe(\"The anchor point for the client secret expiration. Only 'created_at' is currently supported\").optional(),\n seconds: z.number().int().default(600).describe(\"Number of seconds from anchor point to expiration. Must be between 10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes)\").optional(),\n}).describe(\"Configuration for the client secret expiration.\").optional(),\n}).describe(\"Request parameters for creating a realtime client secret.\");\nexport const OpenaiCreateRealtimeClientSecretOutput = z.object({\n value: z.string().describe(\"The generated client secret value\").nullable(),\n session: z.record(z.string(), z.unknown()).describe(\"The session configuration for either a realtime or transcription session\"),\n expires_at: z.number().int().describe(\"Expiration timestamp for the client secret, in seconds since epoch\").nullable(),\n}).passthrough().describe(\"Response schema for creating a realtime client secret.\");\n\nexport const openaiCreateRealtimeClientSecret = action(\"OPENAI_CREATE_REALTIME_CLIENT_SECRET\", {\n slug: \"openai-create-realtime-client-secret\",\n name: \"Create Realtime Client Secret\",\n description: \"Tool to create an ephemeral client secret for authenticating Realtime API connections. Use when you need to establish a WebSocket connection to OpenAI's Realtime API for voice or streaming interactions.\",\n input: OpenaiCreateRealtimeClientSecretInput,\n output: OpenaiCreateRealtimeClientSecretOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;E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odString>>;
|
|
16
16
|
max_output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
output_modalities: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
19
19
|
type: z.ZodString;
|
|
20
20
|
audio: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>]>>;
|
|
23
23
|
expires_after: z.ZodOptional<z.ZodObject<{
|
|
24
24
|
anchor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
25
25
|
seconds: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -29,9 +29,10 @@ declare const OpenaiCreateRealtimeClientSecretOutput: z.ZodObject<{
|
|
|
29
29
|
value: z.ZodNullable<z.ZodString>;
|
|
30
30
|
session: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
31
|
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const openaiCreateRealtimeClientSecret: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
session?: {
|
|
35
|
+
[x: string]: unknown;
|
|
35
36
|
type: string;
|
|
36
37
|
audio?: Record<string, unknown> | null | undefined;
|
|
37
38
|
model?: string | null | undefined;
|
|
@@ -45,6 +46,7 @@ declare const openaiCreateRealtimeClientSecret: import("@keystrokehq/action").Wo
|
|
|
45
46
|
max_output_tokens?: number | null | undefined;
|
|
46
47
|
output_modalities?: string[] | null | undefined;
|
|
47
48
|
} | {
|
|
49
|
+
[x: string]: unknown;
|
|
48
50
|
type: string;
|
|
49
51
|
audio?: Record<string, unknown> | null | undefined;
|
|
50
52
|
include?: string[] | null | undefined;
|
|
@@ -15,11 +15,11 @@ declare const OpenaiCreateRealtimeClientSecretInput: z.ZodObject<{
|
|
|
15
15
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
max_output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
17
|
output_modalities: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
19
19
|
type: z.ZodString;
|
|
20
20
|
audio: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>]>>;
|
|
23
23
|
expires_after: z.ZodOptional<z.ZodObject<{
|
|
24
24
|
anchor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
25
25
|
seconds: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -29,9 +29,10 @@ declare const OpenaiCreateRealtimeClientSecretOutput: z.ZodObject<{
|
|
|
29
29
|
value: z.ZodNullable<z.ZodString>;
|
|
30
30
|
session: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
31
|
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const openaiCreateRealtimeClientSecret: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
session?: {
|
|
35
|
+
[x: string]: unknown;
|
|
35
36
|
type: string;
|
|
36
37
|
audio?: Record<string, unknown> | null | undefined;
|
|
37
38
|
model?: string | null | undefined;
|
|
@@ -45,6 +46,7 @@ declare const openaiCreateRealtimeClientSecret: import("@keystrokehq/action").Wo
|
|
|
45
46
|
max_output_tokens?: number | null | undefined;
|
|
46
47
|
output_modalities?: string[] | null | undefined;
|
|
47
48
|
} | {
|
|
49
|
+
[x: string]: unknown;
|
|
48
50
|
type: string;
|
|
49
51
|
audio?: Record<string, unknown> | null | undefined;
|
|
50
52
|
include?: string[] | null | undefined;
|
|
@@ -18,11 +18,11 @@ const openaiCreateRealtimeClientSecret = action("OPENAI_CREATE_REALTIME_CLIENT_S
|
|
|
18
18
|
instructions: z.string().nullable().optional(),
|
|
19
19
|
max_output_tokens: z.number().int().nullable().optional(),
|
|
20
20
|
output_modalities: z.array(z.string()).nullable().optional()
|
|
21
|
-
}).describe("Configuration for a realtime session."), z.object({
|
|
21
|
+
}).passthrough().describe("Configuration for a realtime session."), z.object({
|
|
22
22
|
type: z.string().describe("Session type, must be 'transcription'"),
|
|
23
23
|
audio: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
24
24
|
include: z.array(z.string()).nullable().optional()
|
|
25
|
-
}).describe("Configuration for a transcription session.")]).optional(),
|
|
25
|
+
}).passthrough().describe("Configuration for a transcription session.")]).optional(),
|
|
26
26
|
expires_after: z.object({
|
|
27
27
|
anchor: z.string().default("created_at").describe("The anchor point for the client secret expiration. Only 'created_at' is currently supported").optional(),
|
|
28
28
|
seconds: z.number().int().default(600).describe("Number of seconds from anchor point to expiration. Must be between 10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes)").optional()
|
|
@@ -32,7 +32,7 @@ const openaiCreateRealtimeClientSecret = action("OPENAI_CREATE_REALTIME_CLIENT_S
|
|
|
32
32
|
value: z.string().describe("The generated client secret value").nullable(),
|
|
33
33
|
session: z.record(z.string(), z.unknown()).describe("The session configuration for either a realtime or transcription session"),
|
|
34
34
|
expires_at: z.number().int().describe("Expiration timestamp for the client secret, in seconds since epoch").nullable()
|
|
35
|
-
}).describe("Response schema for creating a realtime client secret.")
|
|
35
|
+
}).passthrough().describe("Response schema for creating a realtime client secret.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { openaiCreateRealtimeClientSecret };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-realtime-client-secret.mjs","names":[],"sources":["../../src/actions/create-realtime-client-secret.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeClientSecretInput = z.object({\n session: z.union([z.object({\n type: z.string().describe(\"Session type, must be 'realtime'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n model: z.string().nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n prompt: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n tracing: z.record(z.string(), z.unknown()).nullable().optional(),\n truncation: z.record(z.string(), z.unknown()).nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n instructions: z.string().nullable().optional(),\n max_output_tokens: z.number().int().nullable().optional(),\n output_modalities: z.array(z.string()).nullable().optional(),\n}).describe(\"Configuration for a realtime session.\"), z.object({\n type: z.string().describe(\"Session type, must be 'transcription'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n}).describe(\"Configuration for a transcription session.\")]).optional(),\n expires_after: z.object({\n anchor: z.string().default(\"created_at\").describe(\"The anchor point for the client secret expiration. Only 'created_at' is currently supported\").optional(),\n seconds: z.number().int().default(600).describe(\"Number of seconds from anchor point to expiration. Must be between 10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes)\").optional(),\n}).describe(\"Configuration for the client secret expiration.\").optional(),\n}).describe(\"Request parameters for creating a realtime client secret.\");\nexport const OpenaiCreateRealtimeClientSecretOutput = z.object({\n value: z.string().describe(\"The generated client secret value\").nullable(),\n session: z.record(z.string(), z.unknown()).describe(\"The session configuration for either a realtime or transcription session\"),\n expires_at: z.number().int().describe(\"Expiration timestamp for the client secret, in seconds since epoch\").nullable(),\n}).describe(\"Response schema for creating a realtime client secret.\");\n\nexport const openaiCreateRealtimeClientSecret = action(\"OPENAI_CREATE_REALTIME_CLIENT_SECRET\", {\n slug: \"openai-create-realtime-client-secret\",\n name: \"Create Realtime Client Secret\",\n description: \"Tool to create an ephemeral client secret for authenticating Realtime API connections. Use when you need to establish a WebSocket connection to OpenAI's Realtime API for voice or streaming interactions.\",\n input: OpenaiCreateRealtimeClientSecretInput,\n output: OpenaiCreateRealtimeClientSecretOutput,\n});\n"],"mappings":";;AAkCA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCmD,EAAE,OAAO;EAC5D,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO;GAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC9D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACjD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC/D,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAClE,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC7C,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACxD,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7D,CAAC,CAAC,CAAC,SAAS,uCAAuC,GAAG,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"create-realtime-client-secret.mjs","names":[],"sources":["../../src/actions/create-realtime-client-secret.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateRealtimeClientSecretInput = z.object({\n session: z.union([z.object({\n type: z.string().describe(\"Session type, must be 'realtime'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n model: z.string().nullable().optional(),\n tools: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n prompt: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n tracing: z.record(z.string(), z.unknown()).nullable().optional(),\n truncation: z.record(z.string(), z.unknown()).nullable().optional(),\n tool_choice: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n instructions: z.string().nullable().optional(),\n max_output_tokens: z.number().int().nullable().optional(),\n output_modalities: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"Configuration for a realtime session.\"), z.object({\n type: z.string().describe(\"Session type, must be 'transcription'\"),\n audio: z.record(z.string(), z.unknown()).nullable().optional(),\n include: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"Configuration for a transcription session.\")]).optional(),\n expires_after: z.object({\n anchor: z.string().default(\"created_at\").describe(\"The anchor point for the client secret expiration. Only 'created_at' is currently supported\").optional(),\n seconds: z.number().int().default(600).describe(\"Number of seconds from anchor point to expiration. Must be between 10 and 7200 (2 hours). Defaults to 600 seconds (10 minutes)\").optional(),\n}).describe(\"Configuration for the client secret expiration.\").optional(),\n}).describe(\"Request parameters for creating a realtime client secret.\");\nexport const OpenaiCreateRealtimeClientSecretOutput = z.object({\n value: z.string().describe(\"The generated client secret value\").nullable(),\n session: z.record(z.string(), z.unknown()).describe(\"The session configuration for either a realtime or transcription session\"),\n expires_at: z.number().int().describe(\"Expiration timestamp for the client secret, in seconds since epoch\").nullable(),\n}).passthrough().describe(\"Response schema for creating a realtime client secret.\");\n\nexport const openaiCreateRealtimeClientSecret = action(\"OPENAI_CREATE_REALTIME_CLIENT_SECRET\", {\n slug: \"openai-create-realtime-client-secret\",\n name: \"Create Realtime Client Secret\",\n description: \"Tool to create an ephemeral client secret for authenticating Realtime API connections. Use when you need to establish a WebSocket connection to OpenAI's Realtime API for voice or streaming interactions.\",\n input: OpenaiCreateRealtimeClientSecretInput,\n output: OpenaiCreateRealtimeClientSecretOutput,\n});\n"],"mappings":";;AAkCA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCmD,EAAE,OAAO;EAC5D,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO;GAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;GAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACtE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC9D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACjD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,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