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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { ChatMessage, ChatMessage$Outbound } from "./chat-message.js";
|
|
3
|
+
export type Stop = string | Array<string>;
|
|
4
|
+
export type ChatCompletionRequest = {
|
|
5
|
+
model: string;
|
|
6
|
+
messages: Array<ChatMessage>;
|
|
7
|
+
temperature?: number | null | undefined;
|
|
8
|
+
topP?: number | null | undefined;
|
|
9
|
+
n?: number | null | undefined;
|
|
10
|
+
stream?: boolean | null | undefined;
|
|
11
|
+
stop?: string | Array<string> | null | undefined;
|
|
12
|
+
maxTokens?: number | null | undefined;
|
|
13
|
+
presencePenalty?: number | null | undefined;
|
|
14
|
+
frequencyPenalty?: number | null | undefined;
|
|
15
|
+
logitBias?: {
|
|
16
|
+
[k: string]: number;
|
|
17
|
+
} | null | undefined;
|
|
18
|
+
user?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type Stop$Outbound = string | Array<string>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const Stop$outboundSchema: z.ZodMiniType<Stop$Outbound, Stop>;
|
|
24
|
+
export declare function stopToJSON(stop: Stop): string;
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type ChatCompletionRequest$Outbound = {
|
|
27
|
+
model: string;
|
|
28
|
+
messages: Array<ChatMessage$Outbound>;
|
|
29
|
+
temperature?: number | null | undefined;
|
|
30
|
+
top_p?: number | null | undefined;
|
|
31
|
+
n?: number | null | undefined;
|
|
32
|
+
stream?: boolean | null | undefined;
|
|
33
|
+
stop?: string | Array<string> | null | undefined;
|
|
34
|
+
max_tokens?: number | null | undefined;
|
|
35
|
+
presence_penalty?: number | null | undefined;
|
|
36
|
+
frequency_penalty?: number | null | undefined;
|
|
37
|
+
logit_bias?: {
|
|
38
|
+
[k: string]: number;
|
|
39
|
+
} | null | undefined;
|
|
40
|
+
user?: string | null | undefined;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const ChatCompletionRequest$outboundSchema: z.ZodMiniType<ChatCompletionRequest$Outbound, ChatCompletionRequest>;
|
|
44
|
+
export declare function chatCompletionRequestToJSON(chatCompletionRequest: ChatCompletionRequest): string;
|
|
45
|
+
//# sourceMappingURL=chat-completion-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { smartUnion } from "../types/smart-union.js";
|
|
7
|
+
import { ChatMessage$outboundSchema, } from "./chat-message.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const Stop$outboundSchema = smartUnion([z.string(), z.array(z.string())]);
|
|
10
|
+
export function stopToJSON(stop) {
|
|
11
|
+
return JSON.stringify(Stop$outboundSchema.parse(stop));
|
|
12
|
+
}
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const ChatCompletionRequest$outboundSchema = z.pipe(z.object({
|
|
15
|
+
model: z.string(),
|
|
16
|
+
messages: z.array(ChatMessage$outboundSchema),
|
|
17
|
+
temperature: z.optional(z.nullable(z.number())),
|
|
18
|
+
topP: z.optional(z.nullable(z.number())),
|
|
19
|
+
n: z.optional(z.nullable(z.int())),
|
|
20
|
+
stream: z.optional(z.nullable(z.boolean())),
|
|
21
|
+
stop: z.optional(z.nullable(smartUnion([z.string(), z.array(z.string())]))),
|
|
22
|
+
maxTokens: z.optional(z.nullable(z.int())),
|
|
23
|
+
presencePenalty: z.optional(z.nullable(z.number())),
|
|
24
|
+
frequencyPenalty: z.optional(z.nullable(z.number())),
|
|
25
|
+
logitBias: z.optional(z.nullable(z.record(z.string(), z.number()))),
|
|
26
|
+
user: z.optional(z.nullable(z.string())),
|
|
27
|
+
}), z.transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
topP: "top_p",
|
|
30
|
+
maxTokens: "max_tokens",
|
|
31
|
+
presencePenalty: "presence_penalty",
|
|
32
|
+
frequencyPenalty: "frequency_penalty",
|
|
33
|
+
logitBias: "logit_bias",
|
|
34
|
+
});
|
|
35
|
+
}));
|
|
36
|
+
export function chatCompletionRequestToJSON(chatCompletionRequest) {
|
|
37
|
+
return JSON.stringify(ChatCompletionRequest$outboundSchema.parse(chatCompletionRequest));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=chat-completion-request.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C,CAClE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { ChatCompletionChoice } from "./chat-completion-choice.js";
|
|
4
|
+
import { CompletionUsage } from "./completion-usage.js";
|
|
5
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
6
|
+
export type ChatCompletionResponse = {
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
object: string;
|
|
9
|
+
created?: number | undefined;
|
|
10
|
+
model: string;
|
|
11
|
+
choices: Array<ChatCompletionChoice>;
|
|
12
|
+
usage: CompletionUsage;
|
|
13
|
+
systemFingerprint?: string | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const ChatCompletionResponse$inboundSchema: z.ZodMiniType<ChatCompletionResponse, unknown>;
|
|
17
|
+
export declare function chatCompletionResponseFromJSON(jsonString: string): SafeParseResult<ChatCompletionResponse, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=chat-completion-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-response.d.ts","sourceRoot":"","sources":["../../src/models/chat-completion-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,oBAAoB,EAErB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACrC,KAAK,EAAE,eAAe,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,sBAAsB,EACtB,OAAO,CAgBR,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { ChatCompletionChoice$inboundSchema, } from "./chat-completion-choice.js";
|
|
9
|
+
import { CompletionUsage$inboundSchema, } from "./completion-usage.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ChatCompletionResponse$inboundSchema = z.pipe(z.object({
|
|
12
|
+
id: types.optional(types.string()),
|
|
13
|
+
object: z._default(types.string(), "chat.completion"),
|
|
14
|
+
created: types.optional(types.number()),
|
|
15
|
+
model: types.string(),
|
|
16
|
+
choices: z.array(ChatCompletionChoice$inboundSchema),
|
|
17
|
+
usage: CompletionUsage$inboundSchema,
|
|
18
|
+
system_fingerprint: z.optional(z.nullable(types.string())),
|
|
19
|
+
}), z.transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
"system_fingerprint": "systemFingerprint",
|
|
22
|
+
});
|
|
23
|
+
}));
|
|
24
|
+
export function chatCompletionResponseFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => ChatCompletionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatCompletionResponse' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=chat-completion-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-response.js","sourceRoot":"","sources":["../../src/models/chat-completion-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAEL,kCAAkC,GACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAa/B,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,iBAAiB,CAAC;IACrD,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IACpD,KAAK,EAAE,6BAA6B;IACpC,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CAC3D,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,oBAAoB,EAAE,mBAAmB;KAC1C,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,8BAA8B,CAC5C,UAAkB,EAC2C;IAC7D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
export type ChatMessage = {
|
|
5
|
+
role: string;
|
|
6
|
+
content: string;
|
|
7
|
+
name?: string | null | undefined;
|
|
8
|
+
toolCalls?: Array<{
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
}> | null | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const ChatMessage$inboundSchema: z.ZodMiniType<ChatMessage, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ChatMessage$Outbound = {
|
|
16
|
+
role: string;
|
|
17
|
+
content: string;
|
|
18
|
+
name?: string | null | undefined;
|
|
19
|
+
tool_calls?: Array<{
|
|
20
|
+
[k: string]: any;
|
|
21
|
+
}> | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const ChatMessage$outboundSchema: z.ZodMiniType<ChatMessage$Outbound, ChatMessage>;
|
|
25
|
+
export declare function chatMessageToJSON(chatMessage: ChatMessage): string;
|
|
26
|
+
export declare function chatMessageFromJSON(jsonString: string): SafeParseResult<ChatMessage, SDKValidationError>;
|
|
27
|
+
//# sourceMappingURL=chat-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-message.d.ts","sourceRoot":"","sources":["../../src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.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const ChatMessage$inboundSchema = z
|
|
10
|
+
.pipe(z.object({
|
|
11
|
+
role: types.string(),
|
|
12
|
+
content: types.string(),
|
|
13
|
+
name: z.optional(z.nullable(types.string())),
|
|
14
|
+
tool_calls: z.optional(z.nullable(z.array(z.record(z.string(), z.any())))),
|
|
15
|
+
}), z.transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
"tool_calls": "toolCalls",
|
|
18
|
+
});
|
|
19
|
+
}));
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ChatMessage$outboundSchema = z.pipe(z.object({
|
|
22
|
+
role: z.string(),
|
|
23
|
+
content: z.string(),
|
|
24
|
+
name: z.optional(z.nullable(z.string())),
|
|
25
|
+
toolCalls: z.optional(z.nullable(z.array(z.record(z.string(), z.any())))),
|
|
26
|
+
}), z.transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
toolCalls: "tool_calls",
|
|
29
|
+
});
|
|
30
|
+
}));
|
|
31
|
+
export function chatMessageToJSON(chatMessage) {
|
|
32
|
+
return JSON.stringify(ChatMessage$outboundSchema.parse(chatMessage));
|
|
33
|
+
}
|
|
34
|
+
export function chatMessageFromJSON(jsonString) {
|
|
35
|
+
return safeParse(jsonString, (x) => ChatMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatMessage' from JSON`);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=chat-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-message.js","sourceRoot":"","sources":["../../src/models/chat-message.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa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AC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;CAC1E,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,WAAwB,EAAU;IAClE,OAAO,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAAA,CACtE;AACD,MAAM,UAAU,mBAAmB,CACjC,UAAkB,EACgC;IAClD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
export type CompletionUsage = {
|
|
5
|
+
promptTokens: number | null;
|
|
6
|
+
completionTokens: number | null;
|
|
7
|
+
totalTokens: number | null;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const CompletionUsage$inboundSchema: z.ZodMiniType<CompletionUsage, unknown>;
|
|
11
|
+
export declare function completionUsageFromJSON(jsonString: string): SafeParseResult<CompletionUsage, SDKValidationError>;
|
|
12
|
+
//# sourceMappingURL=completion-usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion-usage.d.ts","sourceRoot":"","sources":["../../src/models/completion-usage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,WAAW,CACvD,eAAe,EACf,OAAO,CAcR,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const CompletionUsage$inboundSchema = z.pipe(z.object({
|
|
10
|
+
prompt_tokens: types.nullable(types.number()),
|
|
11
|
+
completion_tokens: types.nullable(types.number()),
|
|
12
|
+
total_tokens: types.nullable(types.number()),
|
|
13
|
+
}), z.transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"prompt_tokens": "promptTokens",
|
|
16
|
+
"completion_tokens": "completionTokens",
|
|
17
|
+
"total_tokens": "totalTokens",
|
|
18
|
+
});
|
|
19
|
+
}));
|
|
20
|
+
export function completionUsageFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => CompletionUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompletionUsage' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=completion-usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion-usage.js","sourceRoot":"","sources":["../../src/models/completion-usage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAShD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAGtC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC7C,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACjD,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC7C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,mBAAmB,EAAE,kBAAkB;QACvC,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,uBAAuB,CACrC,UAAkB,EACoC;IACtD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type ConfidenceScoreJobRequest = {
|
|
3
|
+
arbiterRepo: string;
|
|
4
|
+
};
|
|
5
|
+
/** @internal */
|
|
6
|
+
export type ConfidenceScoreJobRequest$Outbound = {
|
|
7
|
+
arbiter_repo: string;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ConfidenceScoreJobRequest$outboundSchema: z.ZodMiniType<ConfidenceScoreJobRequest$Outbound, ConfidenceScoreJobRequest>;
|
|
11
|
+
export declare function confidenceScoreJobRequestToJSON(confidenceScoreJobRequest: ConfidenceScoreJobRequest): string;
|
|
12
|
+
//# sourceMappingURL=confidence-score-job-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confidence-score-job-request.d.ts","sourceRoot":"","sources":["../../src/models/confidence-score-job-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,CAU1B,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const ConfidenceScoreJobRequest$outboundSchema = z.pipe(z.object({
|
|
8
|
+
arbiterRepo: z.string(),
|
|
9
|
+
}), z.transform((v) => {
|
|
10
|
+
return remap$(v, {
|
|
11
|
+
arbiterRepo: "arbiter_repo",
|
|
12
|
+
});
|
|
13
|
+
}));
|
|
14
|
+
export function confidenceScoreJobRequestToJSON(confidenceScoreJobRequest) {
|
|
15
|
+
return JSON.stringify(ConfidenceScoreJobRequest$outboundSchema.parse(confidenceScoreJobRequest));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=confidence-score-job-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confidence-score-job-request.js","sourceRoot":"","sources":["../../src/models/confidence-score-job-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAWvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAGjD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD,EAC5C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
+
export declare const ConfidenceStatusResponseStatus: {
|
|
6
|
+
readonly Queued: "queued";
|
|
7
|
+
readonly Completed: "completed";
|
|
8
|
+
readonly Failed: "failed";
|
|
9
|
+
};
|
|
10
|
+
export type ConfidenceStatusResponseStatus = OpenEnum<typeof ConfidenceStatusResponseStatus>;
|
|
11
|
+
export type ConfidenceStatusResponse = {
|
|
12
|
+
status: ConfidenceStatusResponseStatus;
|
|
13
|
+
predictionId: string;
|
|
14
|
+
score?: number | null | undefined;
|
|
15
|
+
error?: string | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const ConfidenceStatusResponseStatus$inboundSchema: z.ZodMiniType<ConfidenceStatusResponseStatus, unknown>;
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const ConfidenceStatusResponse$inboundSchema: z.ZodMiniType<ConfidenceStatusResponse, unknown>;
|
|
21
|
+
export declare function confidenceStatusResponseFromJSON(jsonString: string): SafeParseResult<ConfidenceStatusResponse, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=confidence-status-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confidence-status-response.d.ts","sourceRoot":"","sources":["../../src/models/confidence-status-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,8BAA8B;;;;CAIjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CACnD,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,8BAA8B,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,WAAW,CACtE,8BAA8B,EAC9B,OAAO,CACkD,CAAC;AAE5D,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,WAAW,CAChE,wBAAwB,EACxB,OAAO,CAaR,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
export const ConfidenceStatusResponseStatus = {
|
|
10
|
+
Queued: "queued",
|
|
11
|
+
Completed: "completed",
|
|
12
|
+
Failed: "failed",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const ConfidenceStatusResponseStatus$inboundSchema = openEnums.inboundSchema(ConfidenceStatusResponseStatus);
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ConfidenceStatusResponse$inboundSchema = z.pipe(z.object({
|
|
18
|
+
status: ConfidenceStatusResponseStatus$inboundSchema,
|
|
19
|
+
prediction_id: types.string(),
|
|
20
|
+
score: z.optional(z.nullable(types.number())),
|
|
21
|
+
error: z.optional(z.nullable(types.string())),
|
|
22
|
+
}), z.transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"prediction_id": "predictionId",
|
|
25
|
+
});
|
|
26
|
+
}));
|
|
27
|
+
export function confidenceStatusResponseFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => ConfidenceStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConfidenceStatusResponse' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=confidence-status-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confidence-status-response.js","sourceRoot":"","sources":["../../src/models/confidence-status-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAYX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAGrD,SAAS,CAAC,aAAa,CAAC,8BAA8B,CAAC,CAAC;AAE5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAG/C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,4CAA4C;IACpD,aAAa,EAAE,KAAK,CAAC,MAAM,EAAE;IAC7B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CAC9C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,gCAAgC,CAC9C,UAAkB,EAC6C;IAC/D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
/**
|
|
3
|
+
* Delete one or more examples from a repo.
|
|
4
|
+
*/
|
|
5
|
+
export type DeleteExamplesRequest = {
|
|
6
|
+
exampleIds: Array<string>;
|
|
7
|
+
arbiterRepo: string;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type DeleteExamplesRequest$Outbound = {
|
|
11
|
+
example_ids: Array<string>;
|
|
12
|
+
arbiter_repo: string;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const DeleteExamplesRequest$outboundSchema: z.ZodMiniType<DeleteExamplesRequest$Outbound, DeleteExamplesRequest>;
|
|
16
|
+
export declare function deleteExamplesRequestToJSON(deleteExamplesRequest: DeleteExamplesRequest): string;
|
|
17
|
+
//# sourceMappingURL=delete-examples-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-examples-request.d.ts","sourceRoot":"","sources":["../../src/models/delete-examples-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,8BAA8B,EAC9B,qBAAqB,CAYtB,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const DeleteExamplesRequest$outboundSchema = z.pipe(z.object({
|
|
8
|
+
exampleIds: z.array(z.string()),
|
|
9
|
+
arbiterRepo: z.string(),
|
|
10
|
+
}), z.transform((v) => {
|
|
11
|
+
return remap$(v, {
|
|
12
|
+
exampleIds: "example_ids",
|
|
13
|
+
arbiterRepo: "arbiter_repo",
|
|
14
|
+
});
|
|
15
|
+
}));
|
|
16
|
+
export function deleteExamplesRequestToJSON(deleteExamplesRequest) {
|
|
17
|
+
return JSON.stringify(DeleteExamplesRequest$outboundSchema.parse(deleteExamplesRequest));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=delete-examples-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-examples-request.js","sourceRoot":"","sources":["../../src/models/delete-examples-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAgBvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,2BAA2B,CACzC,qBAA4C,EACpC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { ArbiterRequest, ArbiterRequest$Outbound } from "./arbiter-request.js";
|
|
3
|
+
/**
|
|
4
|
+
* Request to dispatch a prediction to multiple arbiters. Will get the prediction then send it to a backend of choice.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Args:
|
|
8
|
+
* input: The input to the prediction.
|
|
9
|
+
* arbiters_map: A map of score names to arbiter requests.
|
|
10
|
+
*/
|
|
11
|
+
export type DispatchPredictionRequest = {
|
|
12
|
+
input: {
|
|
13
|
+
[k: string]: any;
|
|
14
|
+
};
|
|
15
|
+
arbitersMap: {
|
|
16
|
+
[k: string]: ArbiterRequest;
|
|
17
|
+
};
|
|
18
|
+
altId: string;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type DispatchPredictionRequest$Outbound = {
|
|
22
|
+
input: {
|
|
23
|
+
[k: string]: any;
|
|
24
|
+
};
|
|
25
|
+
arbiters_map: {
|
|
26
|
+
[k: string]: ArbiterRequest$Outbound;
|
|
27
|
+
};
|
|
28
|
+
alt_id: string;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const DispatchPredictionRequest$outboundSchema: z.ZodMiniType<DispatchPredictionRequest$Outbound, DispatchPredictionRequest>;
|
|
32
|
+
export declare function dispatchPredictionRequestToJSON(dispatchPredictionRequest: DispatchPredictionRequest): string;
|
|
33
|
+
//# sourceMappingURL=dispatch-prediction-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch-prediction-request.d.ts","sourceRoot":"","sources":["../../src/models/dispatch-prediction-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;GAOG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5B,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC5B,YAAY,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAA;KAAE,CAAC;IACvD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,CAa1B,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { ArbiterRequest$outboundSchema, } from "./arbiter-request.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DispatchPredictionRequest$outboundSchema = z.pipe(z.object({
|
|
9
|
+
input: z.record(z.string(), z.any()),
|
|
10
|
+
arbitersMap: z.record(z.string(), ArbiterRequest$outboundSchema),
|
|
11
|
+
altId: z.string(),
|
|
12
|
+
}), z.transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
arbitersMap: "arbiters_map",
|
|
15
|
+
altId: "alt_id",
|
|
16
|
+
});
|
|
17
|
+
}));
|
|
18
|
+
export function dispatchPredictionRequestToJSON(dispatchPredictionRequest) {
|
|
19
|
+
return JSON.stringify(DispatchPredictionRequest$outboundSchema.parse(dispatchPredictionRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=dispatch-prediction-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch-prediction-request.js","sourceRoot":"","sources":["../../src/models/dispatch-prediction-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAGL,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAuB9B,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAGjD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,6BAA6B,CAAC;IAChE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD,EAC5C;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base class for all HTTP errors.
|
|
3
|
+
*/
|
|
4
|
+
export declare class HTTPClientError extends Error {
|
|
5
|
+
/** The underlying cause of the error. */
|
|
6
|
+
readonly cause: unknown;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor(message: string, opts?: {
|
|
9
|
+
cause?: unknown;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
14
|
+
*/
|
|
15
|
+
export declare class UnexpectedClientError extends HTTPClientError {
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An error that is raised when any inputs used to create a request are invalid.
|
|
20
|
+
*/
|
|
21
|
+
export declare class InvalidRequestError extends HTTPClientError {
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* An error that is raised when a HTTP request was aborted by the client error.
|
|
26
|
+
*/
|
|
27
|
+
export declare class RequestAbortedError extends HTTPClientError {
|
|
28
|
+
readonly name = "RequestAbortedError";
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
32
|
+
* signal timeout.
|
|
33
|
+
*/
|
|
34
|
+
export declare class RequestTimeoutError extends HTTPClientError {
|
|
35
|
+
readonly name = "RequestTimeoutError";
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An error that is raised when a HTTP client is unable to make a request to
|
|
39
|
+
* a server.
|
|
40
|
+
*/
|
|
41
|
+
export declare class ConnectionError extends HTTPClientError {
|
|
42
|
+
readonly name = "ConnectionError";
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=http-client-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-client-errors.d.ts","sourceRoot":"","sources":["../../../src/models/errors/http-client-errors.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,yCAAyC;IACzC,SAAkB,KAAK,EAAE,OAAO,CAAC;IACxB,IAAI,SAAqB;IAClC,YAAY,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAYtD;CACF;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAC/C,IAAI,SAA2B;CACzC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IAC7C,IAAI,SAAyB;CACvC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,SAAkB,IAAI,yBAAyB;CAChD;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,SAAkB,IAAI,yBAAyB;CAChD;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,eAAe;IAClD,SAAkB,IAAI,qBAAqB;CAC5C"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base class for all HTTP errors.
|
|
6
|
+
*/
|
|
7
|
+
export class HTTPClientError extends Error {
|
|
8
|
+
/** The underlying cause of the error. */
|
|
9
|
+
cause;
|
|
10
|
+
name = "HTTPClientError";
|
|
11
|
+
constructor(message, opts) {
|
|
12
|
+
let msg = message;
|
|
13
|
+
if (opts?.cause) {
|
|
14
|
+
msg += `: ${opts.cause}`;
|
|
15
|
+
}
|
|
16
|
+
super(msg, opts);
|
|
17
|
+
// In older runtimes, the cause field would not have been assigned through
|
|
18
|
+
// the super() call.
|
|
19
|
+
if (typeof this.cause === "undefined") {
|
|
20
|
+
this.cause = opts?.cause;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* An error to capture unrecognised or unexpected errors when making HTTP calls.
|
|
26
|
+
*/
|
|
27
|
+
export class UnexpectedClientError extends HTTPClientError {
|
|
28
|
+
name = "UnexpectedClientError";
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An error that is raised when any inputs used to create a request are invalid.
|
|
32
|
+
*/
|
|
33
|
+
export class InvalidRequestError extends HTTPClientError {
|
|
34
|
+
name = "InvalidRequestError";
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* An error that is raised when a HTTP request was aborted by the client error.
|
|
38
|
+
*/
|
|
39
|
+
export class RequestAbortedError extends HTTPClientError {
|
|
40
|
+
name = "RequestAbortedError";
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* An error that is raised when a HTTP request timed out due to an AbortSignal
|
|
44
|
+
* signal timeout.
|
|
45
|
+
*/
|
|
46
|
+
export class RequestTimeoutError extends HTTPClientError {
|
|
47
|
+
name = "RequestTimeoutError";
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* An error that is raised when a HTTP client is unable to make a request to
|
|
51
|
+
* a server.
|
|
52
|
+
*/
|
|
53
|
+
export class ConnectionError extends HTTPClientError {
|
|
54
|
+
name = "ConnectionError";
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=http-client-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-client-errors.js","sourceRoot":"","sources":["../../../src/models/errors/http-client-errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,yCAAyC;IACvB,KAAK,CAAU;IACxB,IAAI,GAAG,iBAAiB,CAAC;IAClC,YAAY,OAAe,EAAE,IAA0B,EAAE;QACvD,IAAI,GAAG,GAAG,OAAO,CAAC;QAClB,IAAI,IAAI,EAAE,KAAK,EAAE,CAAC;YAChB,GAAG,IAAI,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QAC3B,CAAC;QAED,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACjB,0EAA0E;QAC1E,oBAAoB;QACpB,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;YACtC,IAAI,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,CAAC;QAC3B,CAAC;IAAA,CACF;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IAC/C,IAAI,GAAG,uBAAuB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,eAAe;IAC7C,IAAI,GAAG,qBAAqB,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,eAAe;IACpC,IAAI,GAAG,qBAAqB,CAAC;CAChD;AAED;;;GAGG;AACH,MAAM,OAAO,mBAAoB,SAAQ,eAAe;IACpC,IAAI,GAAG,qBAAqB,CAAC;CAChD;AAED;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,eAAe;IAChC,IAAI,GAAG,iBAAiB,CAAC;CAC5C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
import { ModaicClientError } from "./modaic-client-error.js";
|
|
4
|
+
export type HTTPValidationErrorData = {
|
|
5
|
+
detail?: Array<models.ValidationError> | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare class HTTPValidationError extends ModaicClientError {
|
|
8
|
+
detail?: Array<models.ValidationError> | undefined;
|
|
9
|
+
/** The original data that was passed to this error instance. */
|
|
10
|
+
data$: HTTPValidationErrorData;
|
|
11
|
+
constructor(err: HTTPValidationErrorData, httpMeta: {
|
|
12
|
+
response: Response;
|
|
13
|
+
request: Request;
|
|
14
|
+
body: string;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const HTTPValidationError$inboundSchema: z.ZodMiniType<HTTPValidationError, unknown>;
|
|
19
|
+
//# sourceMappingURL=http-validation-error.d.ts.map
|