modaic 0.1.0
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/FUNCTIONS.md +87 -0
- package/LICENSE +21 -0
- package/README.md +533 -0
- package/RUNTIMES.md +48 -0
- package/USAGE.md +19 -0
- package/esm/api/client.d.ts +48 -0
- package/esm/api/client.d.ts.map +1 -0
- package/esm/api/client.js +131 -0
- package/esm/api/client.js.map +1 -0
- package/esm/arbiter/arbiter.d.ts +100 -0
- package/esm/arbiter/arbiter.d.ts.map +1 -0
- package/esm/arbiter/arbiter.js +160 -0
- package/esm/arbiter/arbiter.js.map +1 -0
- package/esm/config.d.ts +22 -0
- package/esm/config.d.ts.map +1 -0
- package/esm/config.js +42 -0
- package/esm/config.js.map +1 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/exceptions.d.ts +25 -0
- package/esm/exceptions.d.ts.map +1 -0
- package/esm/exceptions.js +37 -0
- package/esm/exceptions.js.map +1 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts +20 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts.map +1 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js +92 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js.map +1 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts +18 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts.map +1 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js +90 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js.map +1 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts +23 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts.map +1 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js +95 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js.map +1 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.d.ts +18 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.d.ts.map +1 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.js +82 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.js.map +1 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.d.ts +18 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.d.ts.map +1 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.js +85 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.js.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.d.ts +15 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.d.ts.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js +81 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.d.ts +14 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.d.ts.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.js +70 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.js.map +1 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.d.ts +15 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.d.ts.map +1 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.js +81 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.js.map +1 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.d.ts +23 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.d.ts.map +1 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.js +89 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.js.map +1 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.d.ts +18 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.d.ts.map +1 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.js +84 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.js.map +1 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.d.ts +15 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.d.ts.map +1 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js +81 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js.map +1 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.d.ts +18 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.d.ts.map +1 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.js +89 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.js.map +1 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts +23 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts.map +1 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js +95 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js.map +1 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.d.ts +18 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.d.ts.map +1 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.js +84 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.js.map +1 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.d.ts +15 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.d.ts.map +1 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.js +84 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.js.map +1 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts +15 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts.map +1 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js +85 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js.map +1 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts +29 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts.map +1 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js +101 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js.map +1 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts +18 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts.map +1 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js +90 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js.map +1 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts +18 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts.map +1 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js +90 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js.map +1 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.d.ts +16 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.d.ts.map +1 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.js +88 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.js.map +1 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.d.ts +20 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.d.ts.map +1 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.js +89 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.js.map +1 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts +21 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts.map +1 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js +93 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js.map +1 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts +25 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts.map +1 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js +97 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js.map +1 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.d.ts +24 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.d.ts.map +1 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js +90 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js.map +1 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts +22 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts.map +1 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js +94 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js.map +1 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.d.ts +13 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.d.ts.map +1 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.js +66 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.js.map +1 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.d.ts +15 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.d.ts.map +1 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.js +81 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.js.map +1 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.d.ts +15 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.d.ts.map +1 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.js +81 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.js.map +1 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.d.ts +15 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.d.ts.map +1 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.js +82 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.js.map +1 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts +20 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts.map +1 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js +89 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js.map +1 -0
- package/esm/funcs/health-check-health-get.d.ts +13 -0
- package/esm/funcs/health-check-health-get.d.ts.map +1 -0
- package/esm/funcs/health-check-health-get.js +61 -0
- package/esm/funcs/health-check-health-get.js.map +1 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.d.ts +14 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.d.ts.map +1 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.js +70 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.js.map +1 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.d.ts +15 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.d.ts.map +1 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.js +81 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.js.map +1 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.d.ts +15 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.d.ts.map +1 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.js +76 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.js.map +1 -0
- package/esm/funcs/list-examples-api-v1-examples-get.d.ts +19 -0
- package/esm/funcs/list-examples-api-v1-examples-get.d.ts.map +1 -0
- package/esm/funcs/list-examples-api-v1-examples-get.js +100 -0
- package/esm/funcs/list-examples-api-v1-examples-get.js.map +1 -0
- package/esm/funcs/login-api-v1-auth-login-post.d.ts +21 -0
- package/esm/funcs/login-api-v1-auth-login-post.d.ts.map +1 -0
- package/esm/funcs/login-api-v1-auth-login-post.js +82 -0
- package/esm/funcs/login-api-v1-auth-login-post.js.map +1 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.d.ts +22 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.d.ts.map +1 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.js +83 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.js.map +1 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.d.ts +21 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.d.ts.map +1 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.js +82 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.js.map +1 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.d.ts +18 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.d.ts.map +1 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.js +91 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.js.map +1 -0
- package/esm/funcs/read-badge-badge-get.d.ts +21 -0
- package/esm/funcs/read-badge-badge-get.d.ts.map +1 -0
- package/esm/funcs/read-badge-badge-get.js +85 -0
- package/esm/funcs/read-badge-badge-get.js.map +1 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.d.ts +16 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.d.ts.map +1 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.js +64 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.js.map +1 -0
- package/esm/funcs/register-api-v1-auth-register-post.d.ts +21 -0
- package/esm/funcs/register-api-v1-auth-register-post.d.ts.map +1 -0
- package/esm/funcs/register-api-v1-auth-register-post.js +82 -0
- package/esm/funcs/register-api-v1-auth-register-post.js.map +1 -0
- package/esm/funcs/root-get.d.ts +13 -0
- package/esm/funcs/root-get.d.ts.map +1 -0
- package/esm/funcs/root-get.js +61 -0
- package/esm/funcs/root-get.js.map +1 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.d.ts +15 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.d.ts.map +1 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.js +82 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.js.map +1 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.d.ts +16 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.d.ts.map +1 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.js +64 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.js.map +1 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.d.ts +35 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.d.ts.map +1 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js +101 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js.map +1 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.d.ts +19 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.d.ts.map +1 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js +85 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js.map +1 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.d.ts +23 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.d.ts.map +1 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.js +89 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.js.map +1 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts +32 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts.map +1 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js +104 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js.map +1 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts +18 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts.map +1 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js +90 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js.map +1 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts +29 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts.map +1 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js +101 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js.map +1 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.d.ts +18 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.d.ts.map +1 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js +84 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js.map +1 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.d.ts +18 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.d.ts.map +1 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.js +79 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.js.map +1 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.d.ts +13 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.d.ts.map +1 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js +61 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js.map +1 -0
- package/esm/git/push.d.ts +37 -0
- package/esm/git/push.d.ts.map +1 -0
- package/esm/git/push.js +113 -0
- package/esm/git/push.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +24 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +31 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +54 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +391 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +260 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +149 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/main.d.ts +3 -0
- package/esm/main.d.ts.map +1 -0
- package/esm/main.js +20 -0
- package/esm/main.js.map +1 -0
- package/esm/modaic/api.d.ts +48 -0
- package/esm/modaic/api.d.ts.map +1 -0
- package/esm/modaic/api.js +131 -0
- package/esm/modaic/api.js.map +1 -0
- package/esm/modaic/arbiter.d.ts +101 -0
- package/esm/modaic/arbiter.d.ts.map +1 -0
- package/esm/modaic/arbiter.js +161 -0
- package/esm/modaic/arbiter.js.map +1 -0
- package/esm/modaic/git.d.ts +59 -0
- package/esm/modaic/git.d.ts.map +1 -0
- package/esm/modaic/git.js +193 -0
- package/esm/modaic/git.js.map +1 -0
- package/esm/modaic/index.d.ts +19 -0
- package/esm/modaic/index.d.ts.map +1 -0
- package/esm/modaic/index.js +19 -0
- package/esm/modaic/index.js.map +1 -0
- package/esm/modaic/runtime.d.ts +51 -0
- package/esm/modaic/runtime.d.ts.map +1 -0
- package/esm/modaic/runtime.js +88 -0
- package/esm/modaic/runtime.js.map +1 -0
- package/esm/modaic/serialization.d.ts +197 -0
- package/esm/modaic/serialization.d.ts.map +1 -0
- package/esm/modaic/serialization.js +389 -0
- package/esm/modaic/serialization.js.map +1 -0
- package/esm/modaic/signatures.d.ts +135 -0
- package/esm/modaic/signatures.d.ts.map +1 -0
- package/esm/modaic/signatures.js +290 -0
- package/esm/modaic/signatures.js.map +1 -0
- package/esm/models/annotate-example-request.d.ts +16 -0
- package/esm/models/annotate-example-request.d.ts.map +1 -0
- package/esm/models/annotate-example-request.js +13 -0
- package/esm/models/annotate-example-request.js.map +1 -0
- package/esm/models/arbiter-request.d.ts +18 -0
- package/esm/models/arbiter-request.d.ts.map +1 -0
- package/esm/models/arbiter-request.js +23 -0
- package/esm/models/arbiter-request.js.map +1 -0
- package/esm/models/batch-arbiter.d.ts +14 -0
- package/esm/models/batch-arbiter.d.ts.map +1 -0
- package/esm/models/batch-arbiter.js +19 -0
- package/esm/models/batch-arbiter.js.map +1 -0
- package/esm/models/batch-example.d.ts +51 -0
- package/esm/models/batch-example.d.ts.map +1 -0
- package/esm/models/batch-example.js +30 -0
- package/esm/models/batch-example.js.map +1 -0
- package/esm/models/batch-predictions-job-request.d.ts +30 -0
- package/esm/models/batch-predictions-job-request.d.ts.map +1 -0
- package/esm/models/batch-predictions-job-request.js +23 -0
- package/esm/models/batch-predictions-job-request.js.map +1 -0
- package/esm/models/chat-completion-choice.d.ts +13 -0
- package/esm/models/chat-completion-choice.d.ts.map +1 -0
- package/esm/models/chat-completion-choice.js +22 -0
- package/esm/models/chat-completion-choice.js.map +1 -0
- package/esm/models/chat-completion-request.d.ts +45 -0
- package/esm/models/chat-completion-request.d.ts.map +1 -0
- package/esm/models/chat-completion-request.js +39 -0
- package/esm/models/chat-completion-request.js.map +1 -0
- package/esm/models/chat-completion-response.d.ts +18 -0
- package/esm/models/chat-completion-response.d.ts.map +1 -0
- package/esm/models/chat-completion-response.js +27 -0
- package/esm/models/chat-completion-response.js.map +1 -0
- package/esm/models/chat-message.d.ts +27 -0
- package/esm/models/chat-message.d.ts.map +1 -0
- package/esm/models/chat-message.js +37 -0
- package/esm/models/chat-message.js.map +1 -0
- package/esm/models/completion-usage.d.ts +12 -0
- package/esm/models/completion-usage.d.ts.map +1 -0
- package/esm/models/completion-usage.js +23 -0
- package/esm/models/completion-usage.js.map +1 -0
- package/esm/models/confidence-score-job-request.d.ts +12 -0
- package/esm/models/confidence-score-job-request.d.ts.map +1 -0
- package/esm/models/confidence-score-job-request.js +17 -0
- package/esm/models/confidence-score-job-request.js.map +1 -0
- package/esm/models/confidence-status-response.d.ts +22 -0
- package/esm/models/confidence-status-response.d.ts.map +1 -0
- package/esm/models/confidence-status-response.js +30 -0
- package/esm/models/confidence-status-response.js.map +1 -0
- package/esm/models/delete-examples-request.d.ts +17 -0
- package/esm/models/delete-examples-request.d.ts.map +1 -0
- package/esm/models/delete-examples-request.js +19 -0
- package/esm/models/delete-examples-request.js.map +1 -0
- package/esm/models/dispatch-prediction-request.d.ts +33 -0
- package/esm/models/dispatch-prediction-request.d.ts.map +1 -0
- package/esm/models/dispatch-prediction-request.js +21 -0
- package/esm/models/dispatch-prediction-request.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/http-validation-error.d.ts +19 -0
- package/esm/models/errors/http-validation-error.d.ts.map +1 -0
- package/esm/models/errors/http-validation-error.js +36 -0
- package/esm/models/errors/http-validation-error.js.map +1 -0
- package/esm/models/errors/index.d.ts +7 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +10 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/modaic-client-default-error.d.ts +10 -0
- package/esm/models/errors/modaic-client-default-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-client-default-error.js +30 -0
- package/esm/models/errors/modaic-client-default-error.js.map +1 -0
- package/esm/models/errors/modaic-client-error.d.ts +19 -0
- package/esm/models/errors/modaic-client-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-client-error.js +26 -0
- package/esm/models/errors/modaic-client-error.js.map +1 -0
- package/esm/models/errors/modaic-default-error.d.ts +10 -0
- package/esm/models/errors/modaic-default-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-default-error.js +30 -0
- package/esm/models/errors/modaic-default-error.js.map +1 -0
- package/esm/models/errors/modaic-error.d.ts +19 -0
- package/esm/models/errors/modaic-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-error.js +26 -0
- package/esm/models/errors/modaic-error.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/export-examples-request.d.ts +15 -0
- package/esm/models/export-examples-request.d.ts.map +1 -0
- package/esm/models/export-examples-request.js +17 -0
- package/esm/models/export-examples-request.js.map +1 -0
- package/esm/models/export-examples-response.d.ts +17 -0
- package/esm/models/export-examples-response.d.ts.map +1 -0
- package/esm/models/export-examples-response.js +27 -0
- package/esm/models/export-examples-response.js.map +1 -0
- package/esm/models/field-schema.d.ts +26 -0
- package/esm/models/field-schema.d.ts.map +1 -0
- package/esm/models/field-schema.js +23 -0
- package/esm/models/field-schema.js.map +1 -0
- package/esm/models/gepa-job-request.d.ts +21 -0
- package/esm/models/gepa-job-request.d.ts.map +1 -0
- package/esm/models/gepa-job-request.js +26 -0
- package/esm/models/gepa-job-request.js.map +1 -0
- package/esm/models/gepa-job-response.d.ts +37 -0
- package/esm/models/gepa-job-response.d.ts.map +1 -0
- package/esm/models/gepa-job-response.js +44 -0
- package/esm/models/gepa-job-response.js.map +1 -0
- package/esm/models/gepa-kwargs.d.ts +64 -0
- package/esm/models/gepa-kwargs.d.ts.map +1 -0
- package/esm/models/gepa-kwargs.js +59 -0
- package/esm/models/gepa-kwargs.js.map +1 -0
- package/esm/models/get-confidence-request.d.ts +20 -0
- package/esm/models/get-confidence-request.d.ts.map +1 -0
- package/esm/models/get-confidence-request.js +20 -0
- package/esm/models/get-confidence-request.js.map +1 -0
- package/esm/models/index.d.ts +33 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +36 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/init-arbiter-request.d.ts +23 -0
- package/esm/models/init-arbiter-request.d.ts.map +1 -0
- package/esm/models/init-arbiter-request.js +23 -0
- package/esm/models/init-arbiter-request.js.map +1 -0
- package/esm/models/lm.d.ts +18 -0
- package/esm/models/lm.d.ts.map +1 -0
- package/esm/models/lm.js +13 -0
- package/esm/models/lm.js.map +1 -0
- package/esm/models/login-request.d.ts +16 -0
- package/esm/models/login-request.d.ts.map +1 -0
- package/esm/models/login-request.js +14 -0
- package/esm/models/login-request.js.map +1 -0
- package/esm/models/mfa-verify-request.d.ts +16 -0
- package/esm/models/mfa-verify-request.d.ts.map +1 -0
- package/esm/models/mfa-verify-request.js +20 -0
- package/esm/models/mfa-verify-request.js.map +1 -0
- package/esm/models/o-auth-callback-request.d.ts +16 -0
- package/esm/models/o-auth-callback-request.d.ts.map +1 -0
- package/esm/models/o-auth-callback-request.js +21 -0
- package/esm/models/o-auth-callback-request.js.map +1 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts +12 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts.map +1 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js +18 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js.map +1 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts +12 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts.map +1 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js +18 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js.map +1 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts +12 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts.map +1 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js +17 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js.map +1 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.d.ts +12 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.d.ts.map +1 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.js +12 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.js.map +1 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.d.ts +12 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.d.ts.map +1 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.js +12 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.js.map +1 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.d.ts +14 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.d.ts.map +1 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.js +19 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.js.map +1 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts +12 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts.map +1 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js +18 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js.map +1 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.d.ts +12 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.d.ts.map +1 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.js +12 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.js.map +1 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts +12 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts.map +1 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.js +12 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.js.map +1 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts +12 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js +18 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js.map +1 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts +12 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js +18 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js.map +1 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts +14 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts.map +1 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js +13 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js.map +1 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.d.ts +15 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.js +17 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.js.map +1 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.d.ts +14 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.d.ts.map +1 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.js +13 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.js.map +1 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts +12 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts.map +1 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js +17 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js.map +1 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts +12 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js +17 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js.map +1 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts +12 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts.map +1 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js +18 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.d.ts +12 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.js +12 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.js.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.d.ts +12 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.js +17 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.js.map +1 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.d.ts +12 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.d.ts.map +1 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.js +12 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.js.map +1 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts +14 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts.map +1 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js +14 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js.map +1 -0
- package/esm/models/operations/index.d.ts +22 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +25 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.d.ts +71 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.d.ts.map +1 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.js +46 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.js.map +1 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.d.ts +18 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.d.ts.map +1 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.js +20 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.js.map +1 -0
- package/esm/models/operations/read-badge-badge-get.d.ts +14 -0
- package/esm/models/operations/read-badge-badge-get.d.ts.map +1 -0
- package/esm/models/operations/read-badge-badge-get.js +13 -0
- package/esm/models/operations/read-badge-badge-get.js.map +1 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.d.ts +16 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.d.ts.map +1 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.js +14 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.js.map +1 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts +12 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts.map +1 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js +18 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js.map +1 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts +12 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts.map +1 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js +18 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js.map +1 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts +12 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts.map +1 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js +18 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js.map +1 -0
- package/esm/models/paginated-page.d.ts +16 -0
- package/esm/models/paginated-page.d.ts.map +1 -0
- package/esm/models/paginated-page.js +27 -0
- package/esm/models/paginated-page.js.map +1 -0
- package/esm/models/predict-example-response.d.ts +18 -0
- package/esm/models/predict-example-response.d.ts.map +1 -0
- package/esm/models/predict-example-response.js +24 -0
- package/esm/models/predict-example-response.js.map +1 -0
- package/esm/models/predicted-example.d.ts +58 -0
- package/esm/models/predicted-example.d.ts.map +1 -0
- package/esm/models/predicted-example.js +56 -0
- package/esm/models/predicted-example.js.map +1 -0
- package/esm/models/prediction-annotation.d.ts +19 -0
- package/esm/models/prediction-annotation.d.ts.map +1 -0
- package/esm/models/prediction-annotation.js +21 -0
- package/esm/models/prediction-annotation.js.map +1 -0
- package/esm/models/register-request.d.ts +22 -0
- package/esm/models/register-request.d.ts.map +1 -0
- package/esm/models/register-request.js +17 -0
- package/esm/models/register-request.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +12 -0
- package/esm/models/security.js.map +1 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.d.ts +21 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.d.ts.map +1 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.js +20 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.js.map +1 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.d.ts +41 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.d.ts.map +1 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.js +28 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.js.map +1 -0
- package/esm/models/update-arbiter-metadata-request.d.ts +18 -0
- package/esm/models/update-arbiter-metadata-request.d.ts.map +1 -0
- package/esm/models/update-arbiter-metadata-request.js +13 -0
- package/esm/models/update-arbiter-metadata-request.js.map +1 -0
- package/esm/models/validate-invite-code-request.d.ts +12 -0
- package/esm/models/validate-invite-code-request.d.ts.map +1 -0
- package/esm/models/validate-invite-code-request.js +12 -0
- package/esm/models/validate-invite-code-request.js.map +1 -0
- package/esm/models/validation-error.d.ts +22 -0
- package/esm/models/validation-error.d.ts.map +1 -0
- package/esm/models/validation-error.js +32 -0
- package/esm/models/validation-error.js.map +1 -0
- package/esm/models/waitlist-request.d.ts +16 -0
- package/esm/models/waitlist-request.d.ts.map +1 -0
- package/esm/models/waitlist-request.js +14 -0
- package/esm/models/waitlist-request.js.map +1 -0
- package/esm/primitives/module.d.ts +44 -0
- package/esm/primitives/module.d.ts.map +1 -0
- package/esm/primitives/module.js +117 -0
- package/esm/primitives/module.js.map +1 -0
- package/esm/programs/predict.d.ts +65 -0
- package/esm/programs/predict.d.ts.map +1 -0
- package/esm/programs/predict.js +73 -0
- package/esm/programs/predict.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/sdk.d.ts +325 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +431 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/webhooks.d.ts +8 -0
- package/esm/sdk/webhooks.d.ts.map +1 -0
- package/esm/sdk/webhooks.js +15 -0
- package/esm/sdk/webhooks.js.map +1 -0
- package/esm/serialization/config.d.ts +79 -0
- package/esm/serialization/config.d.ts.map +1 -0
- package/esm/serialization/config.js +57 -0
- package/esm/serialization/config.js.map +1 -0
- package/esm/serialization/naming.d.ts +14 -0
- package/esm/serialization/naming.d.ts.map +1 -0
- package/esm/serialization/naming.js +21 -0
- package/esm/serialization/naming.js.map +1 -0
- package/esm/serialization/program.d.ts +45 -0
- package/esm/serialization/program.d.ts.map +1 -0
- package/esm/serialization/program.js +30 -0
- package/esm/serialization/program.js.map +1 -0
- package/esm/serialization/zod_schema.d.ts +33 -0
- package/esm/serialization/zod_schema.d.ts.map +1 -0
- package/esm/serialization/zod_schema.js +269 -0
- package/esm/serialization/zod_schema.js.map +1 -0
- package/esm/signatures/signature.d.ts +68 -0
- package/esm/signatures/signature.d.ts.map +1 -0
- package/esm/signatures/signature.js +222 -0
- package/esm/signatures/signature.js.map +1 -0
- package/esm/signatures/types.d.ts +69 -0
- package/esm/signatures/types.d.ts.map +1 -0
- package/esm/signatures/types.js +68 -0
- package/esm/signatures/types.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +9 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +109 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/jsr.json +27 -0
- package/package.json +77 -0
- package/src/core.ts +13 -0
- package/src/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.ts +189 -0
- package/src/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.ts +187 -0
- package/src/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.ts +187 -0
- package/src/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.ts +169 -0
- package/src/funcs/create-chat-completion-api-v1-chat-completions-post.ts +150 -0
- package/src/funcs/create-prediction-api-v1-arbiters-predictions-post.ts +173 -0
- package/src/funcs/create-prediction-api-v2-arbiters-predictions-post.ts +181 -0
- package/src/funcs/delete-examples-api-v1-examples-delete.ts +172 -0
- package/src/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.ts +170 -0
- package/src/funcs/download-export-api-v1-examples-export-download-get.ts +182 -0
- package/src/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.ts +192 -0
- package/src/funcs/export-examples-api-v1-examples-export-post.ts +172 -0
- package/src/funcs/get-arbiter-api-v1-arbiters-get.ts +177 -0
- package/src/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.ts +178 -0
- package/src/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.ts +198 -0
- package/src/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.ts +187 -0
- package/src/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.ts +183 -0
- package/src/funcs/get-example-by-id-api-v1-examples-example-id-get.ts +180 -0
- package/src/funcs/get-graded-count-api-v1-examples-graded-count-get.ts +182 -0
- package/src/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.ts +185 -0
- package/src/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.ts +189 -0
- package/src/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.ts +179 -0
- package/src/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.ts +191 -0
- package/src/funcs/get-supported-models-api-v1-arbiters-supported-models-get.ts +141 -0
- package/src/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.ts +185 -0
- package/src/funcs/ingest-examples-api-v1-examples-post.ts +150 -0
- package/src/funcs/init-arbiter-api-v1-arbiters-post.ts +169 -0
- package/src/funcs/list-examples-api-v1-examples-get.ts +193 -0
- package/src/funcs/patch-example-api-v1-examples-example-id-annotation-patch.ts +185 -0
- package/src/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.ts +190 -0
- package/src/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.ts +174 -0
- package/src/funcs/start-optimization-job-api-v1-jobs-gepa-post.ts +177 -0
- package/src/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts +201 -0
- package/src/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.ts +187 -0
- package/src/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.ts +198 -0
- package/src/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.ts +173 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +26 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +64 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +529 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +356 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +405 -0
- package/src/lib/security.ts +275 -0
- package/src/lib/url.ts +35 -0
- package/src/modaic/arbiter.ts +252 -0
- package/src/modaic/git.ts +267 -0
- package/src/modaic/index.ts +61 -0
- package/src/modaic/runtime.ts +107 -0
- package/src/modaic/serialization.ts +592 -0
- package/src/modaic/signatures.ts +398 -0
- package/src/models/annotate-example-request.ts +38 -0
- package/src/models/arbiter-request.ts +46 -0
- package/src/models/batch-arbiter.ts +38 -0
- package/src/models/batch-example.ts +75 -0
- package/src/models/batch-predictions-job-request.ts +68 -0
- package/src/models/chat-completion-choice.ts +44 -0
- package/src/models/chat-completion-request.ts +94 -0
- package/src/models/chat-completion-response.ts +59 -0
- package/src/models/chat-message.ts +73 -0
- package/src/models/completion-usage.ts +45 -0
- package/src/models/confidence-score-job-request.ts +38 -0
- package/src/models/confidence-status-response.ts +62 -0
- package/src/models/delete-examples-request.ts +45 -0
- package/src/models/dispatch-prediction-request.ts +58 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/http-validation-error.ts +53 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/modaic-client-default-error.ts +40 -0
- package/src/models/errors/modaic-client-error.ts +35 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/export-examples-request.ts +41 -0
- package/src/models/export-examples-response.ts +54 -0
- package/src/models/field-schema.ts +50 -0
- package/src/models/gepa-job-request.ts +55 -0
- package/src/models/gepa-job-response.ts +79 -0
- package/src/models/gepa-kwargs.ts +122 -0
- package/src/models/get-confidence-request.ts +45 -0
- package/src/models/index.ts +36 -0
- package/src/models/init-arbiter-request.ts +58 -0
- package/src/models/lm.ts +26 -0
- package/src/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.ts +45 -0
- package/src/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.ts +45 -0
- package/src/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.ts +42 -0
- package/src/models/operations/download-export-api-v1-examples-export-download-get.ts +46 -0
- package/src/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.ts +45 -0
- package/src/models/operations/get-arbiter-api-v1-arbiters-get.ts +32 -0
- package/src/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.ts +34 -0
- package/src/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.ts +45 -0
- package/src/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.ts +45 -0
- package/src/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.ts +37 -0
- package/src/models/operations/get-example-by-id-api-v1-examples-example-id-get.ts +45 -0
- package/src/models/operations/get-graded-count-api-v1-examples-graded-count-get.ts +37 -0
- package/src/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.ts +42 -0
- package/src/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.ts +42 -0
- package/src/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.ts +45 -0
- package/src/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.ts +37 -0
- package/src/models/operations/index.ts +25 -0
- package/src/models/operations/list-examples-api-v1-examples-get.ts +121 -0
- package/src/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.ts +49 -0
- package/src/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts +45 -0
- package/src/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.ts +45 -0
- package/src/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.ts +45 -0
- package/src/models/paginated-page.ts +55 -0
- package/src/models/predict-example-response.ts +48 -0
- package/src/models/predicted-example.ts +124 -0
- package/src/models/prediction-annotation.ts +49 -0
- package/src/models/security.ts +26 -0
- package/src/models/src-api-v1-arbiters-schemas-predict-example-request.ts +53 -0
- package/src/models/src-api-v2-arbiters-schemas-predict-example-request.ts +74 -0
- package/src/models/update-arbiter-metadata-request.ts +35 -0
- package/src/models/validation-error.ts +75 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +750 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +140 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
package/esm/sdk/sdk.js
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { cancelBatchPredictionsJobApiV1JobsBatchPredictionsJobIdDelete } from "../funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js";
|
|
5
|
+
import { cancelConfidenceScoreJobApiV1JobsConfidenceScoresJobIdDelete } from "../funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js";
|
|
6
|
+
import { cancelOptimizationJobApiV1JobsGepaJobIdDelete } from "../funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js";
|
|
7
|
+
import { createChatCompletionApiV1ArbitersChatCompletionsPost } from "../funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js";
|
|
8
|
+
import { createChatCompletionApiV1ChatCompletionsPost } from "../funcs/create-chat-completion-api-v1-chat-completions-post.js";
|
|
9
|
+
import { createPredictionApiV1ArbitersPredictionsPost } from "../funcs/create-prediction-api-v1-arbiters-predictions-post.js";
|
|
10
|
+
import { createPredictionApiV2ArbitersPredictionsPost } from "../funcs/create-prediction-api-v2-arbiters-predictions-post.js";
|
|
11
|
+
import { deleteExamplesApiV1ExamplesDelete } from "../funcs/delete-examples-api-v1-examples-delete.js";
|
|
12
|
+
import { dispatchPredictionApiV1ArbitersPredictionsDispatchPost } from "../funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js";
|
|
13
|
+
import { downloadExportApiV1ExamplesExportDownloadGet } from "../funcs/download-export-api-v1-examples-export-download-get.js";
|
|
14
|
+
import { enqueuePredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidencePost } from "../funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js";
|
|
15
|
+
import { exportExamplesApiV1ExamplesExportPost } from "../funcs/export-examples-api-v1-examples-export-post.js";
|
|
16
|
+
import { getArbiterApiV1ArbitersGet } from "../funcs/get-arbiter-api-v1-arbiters-get.js";
|
|
17
|
+
import { getArbiterSchemaOutputApiV1ArbitersSchemaGet } from "../funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js";
|
|
18
|
+
import { getBatchPredictionsJobStatusApiV1JobsBatchPredictionsJobIdGet } from "../funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js";
|
|
19
|
+
import { getConfidenceScoreJobStatusApiV1JobsConfidenceScoresJobIdGet } from "../funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js";
|
|
20
|
+
import { getDistinctHashesApiV1ExamplesDistinctHashesGet } from "../funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js";
|
|
21
|
+
import { getExampleByIdApiV1ExamplesExampleIdGet } from "../funcs/get-example-by-id-api-v1-examples-example-id-get.js";
|
|
22
|
+
import { getGradedCountApiV1ExamplesGradedCountGet } from "../funcs/get-graded-count-api-v1-examples-graded-count-get.js";
|
|
23
|
+
import { getOptimizationJobLogsApiV1JobsGepaJobIdLogsGet } from "../funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js";
|
|
24
|
+
import { getOptimizationJobStatusApiV1JobsGepaJobIdGet } from "../funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js";
|
|
25
|
+
import { getPredictionConfidenceApiV1ArbitersPredictionsConfidencePost } from "../funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js";
|
|
26
|
+
import { getPredictionConfidenceStatusApiV1ArbitersPredictionsPredictionIdConfidenceGet } from "../funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js";
|
|
27
|
+
import { getSupportedModelsApiV1ArbitersSupportedModelsGet } from "../funcs/get-supported-models-api-v1-arbiters-supported-models-get.js";
|
|
28
|
+
import { hasUncalibratedPredictionsApiV1ExamplesHasUncalibratedGet } from "../funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js";
|
|
29
|
+
import { ingestExamplesApiV1ExamplesPost } from "../funcs/ingest-examples-api-v1-examples-post.js";
|
|
30
|
+
import { initArbiterApiV1ArbitersPost } from "../funcs/init-arbiter-api-v1-arbiters-post.js";
|
|
31
|
+
import { listExamplesApiV1ExamplesGet } from "../funcs/list-examples-api-v1-examples-get.js";
|
|
32
|
+
import { patchExampleApiV1ExamplesExampleIdAnnotationPatch } from "../funcs/patch-example-api-v1-examples-example-id-annotation-patch.js";
|
|
33
|
+
import { startBatchPredictionsJobApiV1JobsBatchPredictionsPost } from "../funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js";
|
|
34
|
+
import { startConfidenceScoreJobApiV1JobsConfidenceScoresPost } from "../funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js";
|
|
35
|
+
import { startOptimizationJobApiV1JobsGepaPost } from "../funcs/start-optimization-job-api-v1-jobs-gepa-post.js";
|
|
36
|
+
import { streamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGet } from "../funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js";
|
|
37
|
+
import { streamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGet } from "../funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js";
|
|
38
|
+
import { streamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGet, } from "../funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js";
|
|
39
|
+
import { updateArbiterMetadataApiV1ArbitersMetadataPatch } from "../funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js";
|
|
40
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
41
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
42
|
+
export class ModaicClient extends ClientSDK {
|
|
43
|
+
/**
|
|
44
|
+
* Create Chat Completion
|
|
45
|
+
*/
|
|
46
|
+
async createChatCompletionApiV1ChatCompletionsPost(options) {
|
|
47
|
+
return unwrapAsync(createChatCompletionApiV1ChatCompletionsPost(this, options));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Start Confidence Score Job
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Start an async job to compute confidence scores for all predictions
|
|
54
|
+
* with null confidence for the given repo.
|
|
55
|
+
*/
|
|
56
|
+
async startConfidenceScoreJobApiV1JobsConfidenceScoresPost(request, options) {
|
|
57
|
+
return unwrapAsync(startConfidenceScoreJobApiV1JobsConfidenceScoresPost(this, request, options));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get Confidence Score Job Status
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Get the status of a confidence score computation job.
|
|
64
|
+
*/
|
|
65
|
+
async getConfidenceScoreJobStatusApiV1JobsConfidenceScoresJobIdGet(request, options) {
|
|
66
|
+
return unwrapAsync(getConfidenceScoreJobStatusApiV1JobsConfidenceScoresJobIdGet(this, request, options));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Cancel Confidence Score Job
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Cancel a running confidence score computation job.
|
|
73
|
+
*/
|
|
74
|
+
async cancelConfidenceScoreJobApiV1JobsConfidenceScoresJobIdDelete(request, options) {
|
|
75
|
+
return unwrapAsync(cancelConfidenceScoreJobApiV1JobsConfidenceScoresJobIdDelete(this, request, options));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Start Optimization Job
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Start an async job to run GEPA optimization on an arbiter.
|
|
82
|
+
* Uses annotated train/test predictions from ClickHouse to optimize the arbiter.
|
|
83
|
+
* Runs in an isolated Modal Sandbox for clean cancellation support.
|
|
84
|
+
*
|
|
85
|
+
* The hub_jobs row is created *before* the sandbox starts so that the
|
|
86
|
+
* sandbox always has a row to update with logs and terminal state.
|
|
87
|
+
*/
|
|
88
|
+
async startOptimizationJobApiV1JobsGepaPost(request, options) {
|
|
89
|
+
return unwrapAsync(startOptimizationJobApiV1JobsGepaPost(this, request, options));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Cancel Optimization Job
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* Cancel a running GEPA optimization job.
|
|
96
|
+
*
|
|
97
|
+
* Only cancels if the job is still in the ``optimizing`` phase. If the
|
|
98
|
+
* sandbox already reached a terminal state (``finalizing`` or ``done``),
|
|
99
|
+
* the UPDATE is a no-op so we don't clobber a successful result or
|
|
100
|
+
* interfere with the finalization pipeline.
|
|
101
|
+
*/
|
|
102
|
+
async cancelOptimizationJobApiV1JobsGepaJobIdDelete(request, options) {
|
|
103
|
+
return unwrapAsync(cancelOptimizationJobApiV1JobsGepaJobIdDelete(this, request, options));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get Optimization Job Status
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* Get the status of a GEPA optimization job.
|
|
110
|
+
*
|
|
111
|
+
* This endpoint is a pure Postgres reader. The sandbox writes logs and
|
|
112
|
+
* terminal state directly to the hub_jobs row; a background Celery task
|
|
113
|
+
* handles finalization (env_var cleanup, Slack notification, re-predict
|
|
114
|
+
* trigger). Subsequent re-predict/scoring phases are tracked via the
|
|
115
|
+
* ``phase`` column updated by the Celery pipeline.
|
|
116
|
+
*/
|
|
117
|
+
async getOptimizationJobStatusApiV1JobsGepaJobIdGet(request, options) {
|
|
118
|
+
return unwrapAsync(getOptimizationJobStatusApiV1JobsGepaJobIdGet(this, request, options));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get Optimization Job Logs
|
|
122
|
+
*
|
|
123
|
+
* @remarks
|
|
124
|
+
* Get logs from a GEPA optimization job.
|
|
125
|
+
*
|
|
126
|
+
* Logs are written directly to Postgres by the sandbox — this endpoint
|
|
127
|
+
* is a pure reader.
|
|
128
|
+
*/
|
|
129
|
+
async getOptimizationJobLogsApiV1JobsGepaJobIdLogsGet(request, options) {
|
|
130
|
+
return unwrapAsync(getOptimizationJobLogsApiV1JobsGepaJobIdLogsGet(this, request, options));
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Start Batch Predictions Job
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
* Start an async batch prediction job.
|
|
137
|
+
*
|
|
138
|
+
* Two input modes (mutually exclusive):
|
|
139
|
+
*
|
|
140
|
+
* * ``examples`` — ingest brand-new examples and run predictions on them.
|
|
141
|
+
* * ``example_ids`` — re-predict existing examples (referenced by their
|
|
142
|
+
* ClickHouse ids). Predictions are inserted as new versions on the
|
|
143
|
+
* existing example rows; no new examples rows are written.
|
|
144
|
+
*
|
|
145
|
+
* When ``compute_confidence=True`` the worker pre-warms a probe scorer
|
|
146
|
+
* container per arbiter and, after predictions persist, kicks off Modal
|
|
147
|
+
* batch confidence scoring filtered to the prediction_ids produced by
|
|
148
|
+
* this job (so we don't accidentally re-score unrelated NULL-confidence
|
|
149
|
+
* rows). Predictions are visible to clients during the scoring phase via
|
|
150
|
+
* ``GET /results`` — confidence populates as Modal streams.
|
|
151
|
+
*
|
|
152
|
+
* Phases visible via ``GET /{job_id}`` and SSE: ``predicting → scoring →
|
|
153
|
+
* done`` (or ``failed``).
|
|
154
|
+
*/
|
|
155
|
+
async startBatchPredictionsJobApiV1JobsBatchPredictionsPost(request, options) {
|
|
156
|
+
return unwrapAsync(startBatchPredictionsJobApiV1JobsBatchPredictionsPost(this, request, options));
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Get Batch Predictions Job Status
|
|
160
|
+
*
|
|
161
|
+
* @remarks
|
|
162
|
+
* Get the latest snapshot for a batch predictions job.
|
|
163
|
+
*
|
|
164
|
+
* Returns the same `BatchPredictionsEvent` shape SSE forwards (minus the
|
|
165
|
+
* per-prediction payload). For the per-prediction list, use `GET /results`.
|
|
166
|
+
*
|
|
167
|
+
* Mapping:
|
|
168
|
+
* * Celery PROGRESS → return the latest snapshot stored in `meta`.
|
|
169
|
+
* * Celery PENDING → synthesize a zeroed `event="start"` snapshot.
|
|
170
|
+
* * Celery SUCCESS → return the terminal `event="finish"` snapshot.
|
|
171
|
+
* * Celery FAILURE → synthesize an `event="finish", status="failed"` dict.
|
|
172
|
+
* * Celery REVOKED → synthesize an `event="finish", status="failed",
|
|
173
|
+
* error="cancelled"` dict.
|
|
174
|
+
*/
|
|
175
|
+
async getBatchPredictionsJobStatusApiV1JobsBatchPredictionsJobIdGet(request, options) {
|
|
176
|
+
return unwrapAsync(getBatchPredictionsJobStatusApiV1JobsBatchPredictionsJobIdGet(this, request, options));
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Cancel Batch Predictions Job
|
|
180
|
+
*
|
|
181
|
+
* @remarks
|
|
182
|
+
* Cancel a running batch predictions job. Because all inserts happen in a
|
|
183
|
+
* single transaction at the end of the task, cancelling mid-execution leaves
|
|
184
|
+
* no partial state in ClickHouse.
|
|
185
|
+
*/
|
|
186
|
+
async cancelBatchPredictionsJobApiV1JobsBatchPredictionsJobIdDelete(request, options) {
|
|
187
|
+
return unwrapAsync(cancelBatchPredictionsJobApiV1JobsBatchPredictionsJobIdDelete(this, request, options));
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Stream Batch Predictions Events
|
|
191
|
+
*
|
|
192
|
+
* @remarks
|
|
193
|
+
* Stream batch-job progress snapshots as SSE.
|
|
194
|
+
*
|
|
195
|
+
* Each frame is a `BatchPredictionsEvent`-shaped JSON payload (with the
|
|
196
|
+
* per-prediction field stripped server-side; clients fetch the canonical
|
|
197
|
+
* list via `GET /results`). Frames carry both the SSE `id:` (Redis stream
|
|
198
|
+
* msg id) and `event:` (the snapshot's `event` field — `start`,
|
|
199
|
+
* `prediction`, `score`, `finish`).
|
|
200
|
+
*
|
|
201
|
+
* Resumption: clients automatically send `Last-Event-ID` on reconnect;
|
|
202
|
+
* we use it as the `XREAD` start id so no events are missed (provided
|
|
203
|
+
* the stream hasn't been trimmed past it).
|
|
204
|
+
*
|
|
205
|
+
* Heartbeats every ~15s keep proxies from idling the connection out.
|
|
206
|
+
* Synthetic terminal: if Celery reaches a terminal state without a
|
|
207
|
+
* `finish` snapshot reaching Redis, emit one so clients don't hang.
|
|
208
|
+
*/
|
|
209
|
+
async streamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGet(request, options) {
|
|
210
|
+
return unwrapAsync(streamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGet(this, request, options));
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Stream Batch Predictions Results
|
|
214
|
+
*
|
|
215
|
+
* @remarks
|
|
216
|
+
* Stream results for a batch predictions job as application/x-ndjson.
|
|
217
|
+
*/
|
|
218
|
+
async streamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGet(request, options) {
|
|
219
|
+
return unwrapAsync(streamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGet(this, request, options));
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get Arbiter
|
|
223
|
+
*/
|
|
224
|
+
async getArbiterApiV1ArbitersGet(request, options) {
|
|
225
|
+
return unwrapAsync(getArbiterApiV1ArbitersGet(this, request, options));
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Get Arbiter Schema Output
|
|
229
|
+
*/
|
|
230
|
+
async getArbiterSchemaOutputApiV1ArbitersSchemaGet(request, options) {
|
|
231
|
+
return unwrapAsync(getArbiterSchemaOutputApiV1ArbitersSchemaGet(this, request, options));
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Create Prediction
|
|
235
|
+
*/
|
|
236
|
+
async createPredictionApiV1ArbitersPredictionsPost(request, options) {
|
|
237
|
+
return unwrapAsync(createPredictionApiV1ArbitersPredictionsPost(this, request, options));
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get Prediction Confidence
|
|
241
|
+
*
|
|
242
|
+
* @remarks
|
|
243
|
+
* Synchronous online confidence scoring keyed by request body.
|
|
244
|
+
*
|
|
245
|
+
* Lets a caller score a fresh ``messages`` payload against an arbiter
|
|
246
|
+
* without first persisting a prediction. If ``prediction_id`` is provided,
|
|
247
|
+
* the server also writes a versioned ``predictions`` row in-process with
|
|
248
|
+
* the new embedding + confidence (Modal returns the embedding; head +
|
|
249
|
+
* calibrator + CH insert happen server-side). Returns the score as a float.
|
|
250
|
+
*/
|
|
251
|
+
async getPredictionConfidenceApiV1ArbitersPredictionsConfidencePost(request, options) {
|
|
252
|
+
return unwrapAsync(getPredictionConfidenceApiV1ArbitersPredictionsConfidencePost(this, request, options));
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Enqueue Prediction Confidence
|
|
256
|
+
*
|
|
257
|
+
* @remarks
|
|
258
|
+
* Idempotent: ensure a confidence score exists for ``prediction_id``.
|
|
259
|
+
*
|
|
260
|
+
* - 404 if the prediction is unknown to both Redis and ClickHouse.
|
|
261
|
+
* - 200 ``completed`` if ClickHouse already has a confidence value.
|
|
262
|
+
* - 202 ``queued`` otherwise (newly enqueued or already in flight).
|
|
263
|
+
*/
|
|
264
|
+
async enqueuePredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidencePost(request, options) {
|
|
265
|
+
return unwrapAsync(enqueuePredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidencePost(this, request, options));
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Get Prediction Confidence Status
|
|
269
|
+
*
|
|
270
|
+
* @remarks
|
|
271
|
+
* Read current state of the confidence resource for ``prediction_id``.
|
|
272
|
+
*
|
|
273
|
+
* Returns 404 when no one has POSTed and no row exists. Otherwise returns
|
|
274
|
+
* 200 with status ``completed`` / ``queued`` / ``failed``.
|
|
275
|
+
*/
|
|
276
|
+
async getPredictionConfidenceStatusApiV1ArbitersPredictionsPredictionIdConfidenceGet(request, options) {
|
|
277
|
+
return unwrapAsync(getPredictionConfidenceStatusApiV1ArbitersPredictionsPredictionIdConfidenceGet(this, request, options));
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Stream Prediction Confidence
|
|
281
|
+
*
|
|
282
|
+
* @remarks
|
|
283
|
+
* Stream the confidence result for ``prediction_id`` over SSE.
|
|
284
|
+
*
|
|
285
|
+
* Emits a ``status`` event on subscribe (``queued`` or ``completed``) and a
|
|
286
|
+
* terminal ``completed`` / ``failed`` event when the worker finishes. Sends
|
|
287
|
+
* a comment line every ``STREAM_KEEPALIVE_INTERVAL_S`` seconds so idle
|
|
288
|
+
* proxies don't drop the connection. Closes after ``STREAM_WALL_CAP_S``
|
|
289
|
+
* seconds with a final ``status: queued`` event so the client reconnects
|
|
290
|
+
* instead of holding open forever.
|
|
291
|
+
*
|
|
292
|
+
* Returns 404 if neither a CH row, a pending Redis prediction, nor a
|
|
293
|
+
* Celery task exists for ``prediction_id``. Returns 403 if the caller
|
|
294
|
+
* lacks read access on the arbiter repo.
|
|
295
|
+
*/
|
|
296
|
+
async streamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGet(request, options) {
|
|
297
|
+
return unwrapAsync(streamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGet(this, request, options));
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Dispatch Prediction
|
|
301
|
+
*/
|
|
302
|
+
async dispatchPredictionApiV1ArbitersPredictionsDispatchPost(request, options) {
|
|
303
|
+
return unwrapAsync(dispatchPredictionApiV1ArbitersPredictionsDispatchPost(this, request, options));
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Create Chat Completion
|
|
307
|
+
*/
|
|
308
|
+
async createChatCompletionApiV1ArbitersChatCompletionsPost(request, options) {
|
|
309
|
+
return unwrapAsync(createChatCompletionApiV1ArbitersChatCompletionsPost(this, request, options));
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Get Supported Models
|
|
313
|
+
*/
|
|
314
|
+
async getSupportedModelsApiV1ArbitersSupportedModelsGet(options) {
|
|
315
|
+
return unwrapAsync(getSupportedModelsApiV1ArbitersSupportedModelsGet(this, options));
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Init Arbiter
|
|
319
|
+
*/
|
|
320
|
+
async initArbiterApiV1ArbitersPost(request, options) {
|
|
321
|
+
return unwrapAsync(initArbiterApiV1ArbitersPost(this, request, options));
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Update Arbiter Metadata
|
|
325
|
+
*
|
|
326
|
+
* @remarks
|
|
327
|
+
* Patch YAML frontmatter metadata in the arbiter's README.md.
|
|
328
|
+
*/
|
|
329
|
+
async updateArbiterMetadataApiV1ArbitersMetadataPatch(request, options) {
|
|
330
|
+
return unwrapAsync(updateArbiterMetadataApiV1ArbitersMetadataPatch(this, request, options));
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Ingest Examples
|
|
334
|
+
*/
|
|
335
|
+
async ingestExamplesApiV1ExamplesPost(options) {
|
|
336
|
+
return unwrapAsync(ingestExamplesApiV1ExamplesPost(this, options));
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* List Examples
|
|
340
|
+
*
|
|
341
|
+
* @remarks
|
|
342
|
+
* Offset-based pagination for examples within a single repo, ordered by (created_at, id) ascending.
|
|
343
|
+
*/
|
|
344
|
+
async listExamplesApiV1ExamplesGet(request, options) {
|
|
345
|
+
return unwrapAsync(listExamplesApiV1ExamplesGet(this, request, options));
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Delete Examples
|
|
349
|
+
*
|
|
350
|
+
* @remarks
|
|
351
|
+
* Delete one or more examples from a repo.
|
|
352
|
+
*/
|
|
353
|
+
async deleteExamplesApiV1ExamplesDelete(request, options) {
|
|
354
|
+
return unwrapAsync(deleteExamplesApiV1ExamplesDelete(this, request, options));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Export Examples
|
|
358
|
+
*
|
|
359
|
+
* @remarks
|
|
360
|
+
* Export a repo's latest prediction state as parquet and return a signed URL.
|
|
361
|
+
*/
|
|
362
|
+
async exportExamplesApiV1ExamplesExportPost(request, options) {
|
|
363
|
+
return unwrapAsync(exportExamplesApiV1ExamplesExportPost(this, request, options));
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Download Export
|
|
367
|
+
*
|
|
368
|
+
* @remarks
|
|
369
|
+
* Stream an exported parquet file from S3.
|
|
370
|
+
*/
|
|
371
|
+
async downloadExportApiV1ExamplesExportDownloadGet(request, options) {
|
|
372
|
+
return unwrapAsync(downloadExportApiV1ExamplesExportDownloadGet(this, request, options));
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Get Distinct Hashes
|
|
376
|
+
*
|
|
377
|
+
* @remarks
|
|
378
|
+
* Return distinct arbiter_hash values for the repo's latest predictions.
|
|
379
|
+
*/
|
|
380
|
+
async getDistinctHashesApiV1ExamplesDistinctHashesGet(request, options) {
|
|
381
|
+
return unwrapAsync(getDistinctHashesApiV1ExamplesDistinctHashesGet(this, request, options));
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Has Uncalibrated Predictions
|
|
385
|
+
*
|
|
386
|
+
* @remarks
|
|
387
|
+
* Check whether there are predictions without confidence scores.
|
|
388
|
+
*/
|
|
389
|
+
async hasUncalibratedPredictionsApiV1ExamplesHasUncalibratedGet(request, options) {
|
|
390
|
+
return unwrapAsync(hasUncalibratedPredictionsApiV1ExamplesHasUncalibratedGet(this, request, options));
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Get Graded Count
|
|
394
|
+
*
|
|
395
|
+
* @remarks
|
|
396
|
+
* Count predictions that have been graded (have ground truth).
|
|
397
|
+
*/
|
|
398
|
+
async getGradedCountApiV1ExamplesGradedCountGet(request, options) {
|
|
399
|
+
return unwrapAsync(getGradedCountApiV1ExamplesGradedCountGet(this, request, options));
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Patch Example
|
|
403
|
+
*
|
|
404
|
+
* @remarks
|
|
405
|
+
* Updates an example annotation.
|
|
406
|
+
*/
|
|
407
|
+
async patchExampleApiV1ExamplesExampleIdAnnotationPatch(request, options) {
|
|
408
|
+
return unwrapAsync(patchExampleApiV1ExamplesExampleIdAnnotationPatch(this, request, options));
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Get Example By Id
|
|
412
|
+
*/
|
|
413
|
+
async getExampleByIdApiV1ExamplesExampleIdGet(request, options) {
|
|
414
|
+
return unwrapAsync(getExampleByIdApiV1ExamplesExampleIdGet(this, request, options));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Create Prediction
|
|
418
|
+
*
|
|
419
|
+
* @remarks
|
|
420
|
+
* Run a single arbiter against a single example and return a flat result.
|
|
421
|
+
*
|
|
422
|
+
* Unlike v1's ``POST /api/v1/arbiters/predictions`` (which takes a list of
|
|
423
|
+
* arbiters and wraps the response in a ``predictions`` array), v2 takes
|
|
424
|
+
* exactly one arbiter and returns ``{example_id, prediction_id, output,
|
|
425
|
+
* reasoning, messages}``.
|
|
426
|
+
*/
|
|
427
|
+
async createPredictionApiV2ArbitersPredictionsPost(request, options) {
|
|
428
|
+
return unwrapAsync(createPredictionApiV2ArbitersPredictionsPost(this, request, options));
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
//# sourceMappingURL=sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,6DAA6D,EAAE,MAAM,sFAAsF,CAAC;AACrK,OAAO,EAAE,4DAA4D,EAAE,MAAM,qFAAqF,CAAC;AACnK,OAAO,EAAE,6CAA6C,EAAE,MAAM,oEAAoE,CAAC;AACnI,OAAO,EAAE,oDAAoD,EAAE,MAAM,0EAA0E,CAAC;AAChJ,OAAO,EAAE,4CAA4C,EAAE,MAAM,iEAAiE,CAAC;AAC/H,OAAO,EAAE,4CAA4C,EAAE,MAAM,gEAAgE,CAAC;AAC9H,OAAO,EAAE,4CAA4C,EAAE,MAAM,gEAAgE,CAAC;AAC9H,OAAO,EAAE,iCAAiC,EAAE,MAA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CAAuC,CAC3C,OAAkE,EAClE,OAAwB,EACU;QAClC,OAAO,WAAW,CAAC,uCAAuC,CACxD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,4CAA4C,CAChD,OAA4D,EAC5D,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,4CAA4C,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
export declare class Webhooks extends ClientSDK {
|
|
3
|
+
/**
|
|
4
|
+
* Stripe Webhook
|
|
5
|
+
*/
|
|
6
|
+
stripeWebhookApiV1PaymentsWebhooksStripePost(options?: RequestOptions): Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/sdk/webhooks.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACG,4CAA4C,CAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC,CAKd;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { webhooksStripeWebhookApiV1PaymentsWebhooksStripePost } from "../funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
7
|
+
export class Webhooks extends ClientSDK {
|
|
8
|
+
/**
|
|
9
|
+
* Stripe Webhook
|
|
10
|
+
*/
|
|
11
|
+
async stripeWebhookApiV1PaymentsWebhooksStripePost(options) {
|
|
12
|
+
return unwrapAsync(webhooksStripeWebhookApiV1PaymentsWebhooksStripePost(this, options));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/sdk/webhooks.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oDAAoD,EAAE,MAAM,0EAA0E,CAAC;AAChJ,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACH,KAAK,CAAC,4CAA4C,CAChD,OAAwB,EACV;QACd,OAAO,WAAW,CAAC,oDAAoD,CACrE,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Signature } from "../signatures/signature";
|
|
2
|
+
import { type JsonSchema } from "./zod_schema";
|
|
3
|
+
/**
|
|
4
|
+
* One field entry inside a serialized signature's `properties`.
|
|
5
|
+
*
|
|
6
|
+
* Always carries the dspy extras (`__dspy_field_type`, `desc`, `prefix`) and, for
|
|
7
|
+
* non-`$ref` fields, a pydantic `title`. The remaining keys are whatever JSON-Schema
|
|
8
|
+
* type fragment the field's Zod type produced (`type`, `items`, `enum`, `anyOf`,
|
|
9
|
+
* `$ref`, `additionalProperties`, `prefixItems`, …). Key order in the emitted JSON is
|
|
10
|
+
* alphabetical, matching the Python (pydantic) output.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigField {
|
|
13
|
+
__dspy_field_type: "input" | "output";
|
|
14
|
+
desc?: string;
|
|
15
|
+
prefix?: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
default?: unknown;
|
|
19
|
+
$ref?: string;
|
|
20
|
+
items?: JsonSchema;
|
|
21
|
+
enum?: unknown[];
|
|
22
|
+
const?: unknown;
|
|
23
|
+
anyOf?: JsonSchema[];
|
|
24
|
+
additionalProperties?: JsonSchema | boolean;
|
|
25
|
+
prefixItems?: JsonSchema[];
|
|
26
|
+
minItems?: number;
|
|
27
|
+
maxItems?: number;
|
|
28
|
+
uniqueItems?: boolean;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The shape of `config.json` — the serialized signature schema.
|
|
33
|
+
*
|
|
34
|
+
* The `signature` object must be compatible with what the Python SDK produces via
|
|
35
|
+
* `serializers.py::serialize_signature` (and reads back via `_deserialize_dspy_signatures`).
|
|
36
|
+
* Concretely:
|
|
37
|
+
*
|
|
38
|
+
* ```json
|
|
39
|
+
* {
|
|
40
|
+
* "model": null,
|
|
41
|
+
* "signature": {
|
|
42
|
+
* "$defs": { "Image": { "type": "dspy.Image" } }, // only when special types are used
|
|
43
|
+
* "description": "<instructions>",
|
|
44
|
+
* "properties": {
|
|
45
|
+
* "<field>": { "__dspy_field_type": "input"|"output", "desc": "...",
|
|
46
|
+
* "prefix": "Field:", "title": "Field", "type": "string" }
|
|
47
|
+
* },
|
|
48
|
+
* "required": ["<input fields then output fields>"],
|
|
49
|
+
* "title": "<PascalCase repo name>",
|
|
50
|
+
* "type": "object"
|
|
51
|
+
* }
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export interface ConfigJson {
|
|
56
|
+
model: null;
|
|
57
|
+
signature: {
|
|
58
|
+
$defs?: Record<string, JsonSchema>;
|
|
59
|
+
description: string;
|
|
60
|
+
properties: Record<string, ConfigField>;
|
|
61
|
+
required: string[];
|
|
62
|
+
title: string;
|
|
63
|
+
type: "object";
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Build `config.json` from a Signature.
|
|
68
|
+
*
|
|
69
|
+
* Input fields are emitted before output fields (matching dspy). A field is in
|
|
70
|
+
* `required` unless it has a Zod default or is `.optional()`. Special modaic types
|
|
71
|
+
* (Image/Audio/Scale/Enum — see `signatures/types.ts`) serialize to the same JSON the
|
|
72
|
+
* Python SDK uses, so the result round-trips into a `dspy.Signature` with no Python
|
|
73
|
+
* changes.
|
|
74
|
+
*
|
|
75
|
+
* @param signature The Arbiter's signature.
|
|
76
|
+
* @param title The top-level schema title (derived from the repo name).
|
|
77
|
+
*/
|
|
78
|
+
export declare function serializeSignatureToConfig(signature: Signature, title: string): ConfigJson;
|
|
79
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/serialization/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,cAAc,CAAC;AAEtB;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B,iBAAiB,EAAE,OAAO,GAAG,QAAQ,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,oBAAoB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5C,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,EAAE;QACT,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QACnC,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACxC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,QAAQ,CAAC;KAChB,CAAC;CACH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,GACZ,UAAU,CAmDZ"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { fieldDesc, pydanticTitle, serializeField, sortSchema, } from "./zod_schema";
|
|
2
|
+
/**
|
|
3
|
+
* Build `config.json` from a Signature.
|
|
4
|
+
*
|
|
5
|
+
* Input fields are emitted before output fields (matching dspy). A field is in
|
|
6
|
+
* `required` unless it has a Zod default or is `.optional()`. Special modaic types
|
|
7
|
+
* (Image/Audio/Scale/Enum — see `signatures/types.ts`) serialize to the same JSON the
|
|
8
|
+
* Python SDK uses, so the result round-trips into a `dspy.Signature` with no Python
|
|
9
|
+
* changes.
|
|
10
|
+
*
|
|
11
|
+
* @param signature The Arbiter's signature.
|
|
12
|
+
* @param title The top-level schema title (derived from the repo name).
|
|
13
|
+
*/
|
|
14
|
+
export function serializeSignatureToConfig(signature, title) {
|
|
15
|
+
const defs = {};
|
|
16
|
+
const properties = {};
|
|
17
|
+
const required = [];
|
|
18
|
+
const addFields = (shape, direction) => {
|
|
19
|
+
for (const [name, schema] of Object.entries(shape)) {
|
|
20
|
+
const info = serializeField(schema, defs);
|
|
21
|
+
const field = {
|
|
22
|
+
__dspy_field_type: direction,
|
|
23
|
+
desc: fieldDesc(info.meta, name),
|
|
24
|
+
prefix: signature.prefixes[name],
|
|
25
|
+
...info.fragment,
|
|
26
|
+
};
|
|
27
|
+
// pydantic omits a field-level title when the field is a bare `$ref`.
|
|
28
|
+
if (!info.isRef) {
|
|
29
|
+
field.title = pydanticTitle(name);
|
|
30
|
+
}
|
|
31
|
+
if (info.hasDefault) {
|
|
32
|
+
field.default = info.defaultValue;
|
|
33
|
+
}
|
|
34
|
+
properties[name] = field;
|
|
35
|
+
if (!info.hasDefault && !info.optional) {
|
|
36
|
+
required.push(name);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
addFields(signature.input.shape, "input");
|
|
41
|
+
addFields(signature.output.shape, "output");
|
|
42
|
+
const signatureSchema = {
|
|
43
|
+
description: signature.instructions ?? "",
|
|
44
|
+
properties,
|
|
45
|
+
required,
|
|
46
|
+
title,
|
|
47
|
+
type: "object",
|
|
48
|
+
};
|
|
49
|
+
if (Object.keys(defs).length > 0) {
|
|
50
|
+
signatureSchema.$defs = defs;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
model: null,
|
|
54
|
+
signature: sortSchema(signatureSchema),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/serialization/config.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EACT,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,cAAc,CAAC;AAmEtB;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,0BAA0B,CACxC,SAAoB,EACpB,KAAa,EACD;IACZ,MAAM,IAAI,GAA+B,EAA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C,UAAU;QACV,QAAQ;QACR,KAAK;QACL,IAAI,EAAE,QAAQ;KACf,CAAC;IACF,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjC,eAAe,CAAC,KAAK,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,OAAO;QACL,KAAK,EAAE,IAAI;QACX,SAAS,EAAE,UAAU,CAAC,eAAe,CAA4B;KAClE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derive a PascalCase signature title from a repo path.
|
|
3
|
+
*
|
|
4
|
+
* The Python SDK uses the signature class name as the schema `title`; TS
|
|
5
|
+
* signatures are anonymous, so we derive a stable title from the repo's name
|
|
6
|
+
* segment.
|
|
7
|
+
*
|
|
8
|
+
* Examples:
|
|
9
|
+
* "modaic/quality-judge" -> "QualityJudge"
|
|
10
|
+
* "modaic/tyrin_judge" -> "TyrinJudge"
|
|
11
|
+
* "my-judge" -> "MyJudge"
|
|
12
|
+
*/
|
|
13
|
+
export declare function repoNameToTitle(repo: string): string;
|
|
14
|
+
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/serialization/naming.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOpD"}
|