modaic 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +87 -0
- package/LICENSE +21 -0
- package/README.md +533 -0
- package/RUNTIMES.md +48 -0
- package/USAGE.md +19 -0
- package/esm/api/client.d.ts +48 -0
- package/esm/api/client.d.ts.map +1 -0
- package/esm/api/client.js +131 -0
- package/esm/api/client.js.map +1 -0
- package/esm/arbiter/arbiter.d.ts +100 -0
- package/esm/arbiter/arbiter.d.ts.map +1 -0
- package/esm/arbiter/arbiter.js +160 -0
- package/esm/arbiter/arbiter.js.map +1 -0
- package/esm/config.d.ts +22 -0
- package/esm/config.d.ts.map +1 -0
- package/esm/config.js +42 -0
- package/esm/config.js.map +1 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/exceptions.d.ts +25 -0
- package/esm/exceptions.d.ts.map +1 -0
- package/esm/exceptions.js +37 -0
- package/esm/exceptions.js.map +1 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts +20 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts.map +1 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js +92 -0
- package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js.map +1 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts +18 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts.map +1 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js +90 -0
- package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js.map +1 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts +23 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts.map +1 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js +95 -0
- package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js.map +1 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.d.ts +18 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.d.ts.map +1 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.js +82 -0
- package/esm/funcs/check-email-api-v1-user-check-email-get.js.map +1 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.d.ts +18 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.d.ts.map +1 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.js +85 -0
- package/esm/funcs/check-username-api-v1-user-check-username-username-get.js.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.d.ts +15 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.d.ts.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js +81 -0
- package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.d.ts +14 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.d.ts.map +1 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.js +70 -0
- package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.js.map +1 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.d.ts +15 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.d.ts.map +1 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.js +81 -0
- package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.js.map +1 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.d.ts +23 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.d.ts.map +1 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.js +89 -0
- package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.js.map +1 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.d.ts +18 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.d.ts.map +1 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.js +84 -0
- package/esm/funcs/delete-examples-api-v1-examples-delete.js.map +1 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.d.ts +15 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.d.ts.map +1 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js +81 -0
- package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js.map +1 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.d.ts +18 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.d.ts.map +1 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.js +89 -0
- package/esm/funcs/download-export-api-v1-examples-export-download-get.js.map +1 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts +23 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts.map +1 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js +95 -0
- package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js.map +1 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.d.ts +18 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.d.ts.map +1 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.js +84 -0
- package/esm/funcs/export-examples-api-v1-examples-export-post.js.map +1 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.d.ts +15 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.d.ts.map +1 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.js +84 -0
- package/esm/funcs/get-arbiter-api-v1-arbiters-get.js.map +1 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts +15 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts.map +1 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js +85 -0
- package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js.map +1 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts +29 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts.map +1 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js +101 -0
- package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js.map +1 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts +18 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts.map +1 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js +90 -0
- package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js.map +1 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts +18 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts.map +1 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js +90 -0
- package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js.map +1 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.d.ts +16 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.d.ts.map +1 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.js +88 -0
- package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.js.map +1 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.d.ts +20 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.d.ts.map +1 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.js +89 -0
- package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.js.map +1 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts +21 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts.map +1 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js +93 -0
- package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js.map +1 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts +25 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts.map +1 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js +97 -0
- package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js.map +1 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.d.ts +24 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.d.ts.map +1 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js +90 -0
- package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js.map +1 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts +22 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts.map +1 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js +94 -0
- package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js.map +1 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.d.ts +13 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.d.ts.map +1 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.js +66 -0
- package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.js.map +1 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.d.ts +15 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.d.ts.map +1 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.js +81 -0
- package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.js.map +1 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.d.ts +15 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.d.ts.map +1 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.js +81 -0
- package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.js.map +1 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.d.ts +15 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.d.ts.map +1 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.js +82 -0
- package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.js.map +1 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts +20 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts.map +1 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js +89 -0
- package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js.map +1 -0
- package/esm/funcs/health-check-health-get.d.ts +13 -0
- package/esm/funcs/health-check-health-get.d.ts.map +1 -0
- package/esm/funcs/health-check-health-get.js +61 -0
- package/esm/funcs/health-check-health-get.js.map +1 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.d.ts +14 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.d.ts.map +1 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.js +70 -0
- package/esm/funcs/ingest-examples-api-v1-examples-post.js.map +1 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.d.ts +15 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.d.ts.map +1 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.js +81 -0
- package/esm/funcs/init-arbiter-api-v1-arbiters-post.js.map +1 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.d.ts +15 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.d.ts.map +1 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.js +76 -0
- package/esm/funcs/join-waitlist-api-v2-waitlist-post.js.map +1 -0
- package/esm/funcs/list-examples-api-v1-examples-get.d.ts +19 -0
- package/esm/funcs/list-examples-api-v1-examples-get.d.ts.map +1 -0
- package/esm/funcs/list-examples-api-v1-examples-get.js +100 -0
- package/esm/funcs/list-examples-api-v1-examples-get.js.map +1 -0
- package/esm/funcs/login-api-v1-auth-login-post.d.ts +21 -0
- package/esm/funcs/login-api-v1-auth-login-post.d.ts.map +1 -0
- package/esm/funcs/login-api-v1-auth-login-post.js +82 -0
- package/esm/funcs/login-api-v1-auth-login-post.js.map +1 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.d.ts +22 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.d.ts.map +1 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.js +83 -0
- package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.js.map +1 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.d.ts +21 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.d.ts.map +1 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.js +82 -0
- package/esm/funcs/oauth-callback-api-v1-auth-callback-post.js.map +1 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.d.ts +18 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.d.ts.map +1 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.js +91 -0
- package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.js.map +1 -0
- package/esm/funcs/read-badge-badge-get.d.ts +21 -0
- package/esm/funcs/read-badge-badge-get.d.ts.map +1 -0
- package/esm/funcs/read-badge-badge-get.js +85 -0
- package/esm/funcs/read-badge-badge-get.js.map +1 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.d.ts +16 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.d.ts.map +1 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.js +64 -0
- package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.js.map +1 -0
- package/esm/funcs/register-api-v1-auth-register-post.d.ts +21 -0
- package/esm/funcs/register-api-v1-auth-register-post.d.ts.map +1 -0
- package/esm/funcs/register-api-v1-auth-register-post.js +82 -0
- package/esm/funcs/register-api-v1-auth-register-post.js.map +1 -0
- package/esm/funcs/root-get.d.ts +13 -0
- package/esm/funcs/root-get.d.ts.map +1 -0
- package/esm/funcs/root-get.js +61 -0
- package/esm/funcs/root-get.js.map +1 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.d.ts +15 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.d.ts.map +1 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.js +82 -0
- package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.js.map +1 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.d.ts +16 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.d.ts.map +1 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.js +64 -0
- package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.js.map +1 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.d.ts +35 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.d.ts.map +1 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js +101 -0
- package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js.map +1 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.d.ts +19 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.d.ts.map +1 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js +85 -0
- package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js.map +1 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.d.ts +23 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.d.ts.map +1 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.js +89 -0
- package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.js.map +1 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts +32 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts.map +1 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js +104 -0
- package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js.map +1 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts +18 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts.map +1 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js +90 -0
- package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js.map +1 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts +29 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts.map +1 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js +101 -0
- package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js.map +1 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.d.ts +18 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.d.ts.map +1 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js +84 -0
- package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js.map +1 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.d.ts +18 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.d.ts.map +1 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.js +79 -0
- package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.js.map +1 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.d.ts +13 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.d.ts.map +1 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js +61 -0
- package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js.map +1 -0
- package/esm/git/push.d.ts +37 -0
- package/esm/git/push.d.ts.map +1 -0
- package/esm/git/push.js +113 -0
- package/esm/git/push.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +24 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +31 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +54 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +391 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +260 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +149 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/main.d.ts +3 -0
- package/esm/main.d.ts.map +1 -0
- package/esm/main.js +20 -0
- package/esm/main.js.map +1 -0
- package/esm/modaic/api.d.ts +48 -0
- package/esm/modaic/api.d.ts.map +1 -0
- package/esm/modaic/api.js +131 -0
- package/esm/modaic/api.js.map +1 -0
- package/esm/modaic/arbiter.d.ts +101 -0
- package/esm/modaic/arbiter.d.ts.map +1 -0
- package/esm/modaic/arbiter.js +161 -0
- package/esm/modaic/arbiter.js.map +1 -0
- package/esm/modaic/git.d.ts +59 -0
- package/esm/modaic/git.d.ts.map +1 -0
- package/esm/modaic/git.js +193 -0
- package/esm/modaic/git.js.map +1 -0
- package/esm/modaic/index.d.ts +19 -0
- package/esm/modaic/index.d.ts.map +1 -0
- package/esm/modaic/index.js +19 -0
- package/esm/modaic/index.js.map +1 -0
- package/esm/modaic/runtime.d.ts +51 -0
- package/esm/modaic/runtime.d.ts.map +1 -0
- package/esm/modaic/runtime.js +88 -0
- package/esm/modaic/runtime.js.map +1 -0
- package/esm/modaic/serialization.d.ts +197 -0
- package/esm/modaic/serialization.d.ts.map +1 -0
- package/esm/modaic/serialization.js +389 -0
- package/esm/modaic/serialization.js.map +1 -0
- package/esm/modaic/signatures.d.ts +135 -0
- package/esm/modaic/signatures.d.ts.map +1 -0
- package/esm/modaic/signatures.js +290 -0
- package/esm/modaic/signatures.js.map +1 -0
- package/esm/models/annotate-example-request.d.ts +16 -0
- package/esm/models/annotate-example-request.d.ts.map +1 -0
- package/esm/models/annotate-example-request.js +13 -0
- package/esm/models/annotate-example-request.js.map +1 -0
- package/esm/models/arbiter-request.d.ts +18 -0
- package/esm/models/arbiter-request.d.ts.map +1 -0
- package/esm/models/arbiter-request.js +23 -0
- package/esm/models/arbiter-request.js.map +1 -0
- package/esm/models/batch-arbiter.d.ts +14 -0
- package/esm/models/batch-arbiter.d.ts.map +1 -0
- package/esm/models/batch-arbiter.js +19 -0
- package/esm/models/batch-arbiter.js.map +1 -0
- package/esm/models/batch-example.d.ts +51 -0
- package/esm/models/batch-example.d.ts.map +1 -0
- package/esm/models/batch-example.js +30 -0
- package/esm/models/batch-example.js.map +1 -0
- package/esm/models/batch-predictions-job-request.d.ts +30 -0
- package/esm/models/batch-predictions-job-request.d.ts.map +1 -0
- package/esm/models/batch-predictions-job-request.js +23 -0
- package/esm/models/batch-predictions-job-request.js.map +1 -0
- package/esm/models/chat-completion-choice.d.ts +13 -0
- package/esm/models/chat-completion-choice.d.ts.map +1 -0
- package/esm/models/chat-completion-choice.js +22 -0
- package/esm/models/chat-completion-choice.js.map +1 -0
- package/esm/models/chat-completion-request.d.ts +45 -0
- package/esm/models/chat-completion-request.d.ts.map +1 -0
- package/esm/models/chat-completion-request.js +39 -0
- package/esm/models/chat-completion-request.js.map +1 -0
- package/esm/models/chat-completion-response.d.ts +18 -0
- package/esm/models/chat-completion-response.d.ts.map +1 -0
- package/esm/models/chat-completion-response.js +27 -0
- package/esm/models/chat-completion-response.js.map +1 -0
- package/esm/models/chat-message.d.ts +27 -0
- package/esm/models/chat-message.d.ts.map +1 -0
- package/esm/models/chat-message.js +37 -0
- package/esm/models/chat-message.js.map +1 -0
- package/esm/models/completion-usage.d.ts +12 -0
- package/esm/models/completion-usage.d.ts.map +1 -0
- package/esm/models/completion-usage.js +23 -0
- package/esm/models/completion-usage.js.map +1 -0
- package/esm/models/confidence-score-job-request.d.ts +12 -0
- package/esm/models/confidence-score-job-request.d.ts.map +1 -0
- package/esm/models/confidence-score-job-request.js +17 -0
- package/esm/models/confidence-score-job-request.js.map +1 -0
- package/esm/models/confidence-status-response.d.ts +22 -0
- package/esm/models/confidence-status-response.d.ts.map +1 -0
- package/esm/models/confidence-status-response.js +30 -0
- package/esm/models/confidence-status-response.js.map +1 -0
- package/esm/models/delete-examples-request.d.ts +17 -0
- package/esm/models/delete-examples-request.d.ts.map +1 -0
- package/esm/models/delete-examples-request.js +19 -0
- package/esm/models/delete-examples-request.js.map +1 -0
- package/esm/models/dispatch-prediction-request.d.ts +33 -0
- package/esm/models/dispatch-prediction-request.d.ts.map +1 -0
- package/esm/models/dispatch-prediction-request.js +21 -0
- package/esm/models/dispatch-prediction-request.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/http-validation-error.d.ts +19 -0
- package/esm/models/errors/http-validation-error.d.ts.map +1 -0
- package/esm/models/errors/http-validation-error.js +36 -0
- package/esm/models/errors/http-validation-error.js.map +1 -0
- package/esm/models/errors/index.d.ts +7 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +10 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/modaic-client-default-error.d.ts +10 -0
- package/esm/models/errors/modaic-client-default-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-client-default-error.js +30 -0
- package/esm/models/errors/modaic-client-default-error.js.map +1 -0
- package/esm/models/errors/modaic-client-error.d.ts +19 -0
- package/esm/models/errors/modaic-client-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-client-error.js +26 -0
- package/esm/models/errors/modaic-client-error.js.map +1 -0
- package/esm/models/errors/modaic-default-error.d.ts +10 -0
- package/esm/models/errors/modaic-default-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-default-error.js +30 -0
- package/esm/models/errors/modaic-default-error.js.map +1 -0
- package/esm/models/errors/modaic-error.d.ts +19 -0
- package/esm/models/errors/modaic-error.d.ts.map +1 -0
- package/esm/models/errors/modaic-error.js +26 -0
- package/esm/models/errors/modaic-error.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/export-examples-request.d.ts +15 -0
- package/esm/models/export-examples-request.d.ts.map +1 -0
- package/esm/models/export-examples-request.js +17 -0
- package/esm/models/export-examples-request.js.map +1 -0
- package/esm/models/export-examples-response.d.ts +17 -0
- package/esm/models/export-examples-response.d.ts.map +1 -0
- package/esm/models/export-examples-response.js +27 -0
- package/esm/models/export-examples-response.js.map +1 -0
- package/esm/models/field-schema.d.ts +26 -0
- package/esm/models/field-schema.d.ts.map +1 -0
- package/esm/models/field-schema.js +23 -0
- package/esm/models/field-schema.js.map +1 -0
- package/esm/models/gepa-job-request.d.ts +21 -0
- package/esm/models/gepa-job-request.d.ts.map +1 -0
- package/esm/models/gepa-job-request.js +26 -0
- package/esm/models/gepa-job-request.js.map +1 -0
- package/esm/models/gepa-job-response.d.ts +37 -0
- package/esm/models/gepa-job-response.d.ts.map +1 -0
- package/esm/models/gepa-job-response.js +44 -0
- package/esm/models/gepa-job-response.js.map +1 -0
- package/esm/models/gepa-kwargs.d.ts +64 -0
- package/esm/models/gepa-kwargs.d.ts.map +1 -0
- package/esm/models/gepa-kwargs.js +59 -0
- package/esm/models/gepa-kwargs.js.map +1 -0
- package/esm/models/get-confidence-request.d.ts +20 -0
- package/esm/models/get-confidence-request.d.ts.map +1 -0
- package/esm/models/get-confidence-request.js +20 -0
- package/esm/models/get-confidence-request.js.map +1 -0
- package/esm/models/index.d.ts +33 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +36 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/init-arbiter-request.d.ts +23 -0
- package/esm/models/init-arbiter-request.d.ts.map +1 -0
- package/esm/models/init-arbiter-request.js +23 -0
- package/esm/models/init-arbiter-request.js.map +1 -0
- package/esm/models/lm.d.ts +18 -0
- package/esm/models/lm.d.ts.map +1 -0
- package/esm/models/lm.js +13 -0
- package/esm/models/lm.js.map +1 -0
- package/esm/models/login-request.d.ts +16 -0
- package/esm/models/login-request.d.ts.map +1 -0
- package/esm/models/login-request.js +14 -0
- package/esm/models/login-request.js.map +1 -0
- package/esm/models/mfa-verify-request.d.ts +16 -0
- package/esm/models/mfa-verify-request.d.ts.map +1 -0
- package/esm/models/mfa-verify-request.js +20 -0
- package/esm/models/mfa-verify-request.js.map +1 -0
- package/esm/models/o-auth-callback-request.d.ts +16 -0
- package/esm/models/o-auth-callback-request.d.ts.map +1 -0
- package/esm/models/o-auth-callback-request.js +21 -0
- package/esm/models/o-auth-callback-request.js.map +1 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts +12 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts.map +1 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js +18 -0
- package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js.map +1 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts +12 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts.map +1 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js +18 -0
- package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js.map +1 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts +12 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts.map +1 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js +17 -0
- package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js.map +1 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.d.ts +12 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.d.ts.map +1 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.js +12 -0
- package/esm/models/operations/check-email-api-v1-user-check-email-get.js.map +1 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.d.ts +12 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.d.ts.map +1 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.js +12 -0
- package/esm/models/operations/check-username-api-v1-user-check-username-username-get.js.map +1 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.d.ts +14 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.d.ts.map +1 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.js +19 -0
- package/esm/models/operations/download-export-api-v1-examples-export-download-get.js.map +1 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts +12 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts.map +1 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js +18 -0
- package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js.map +1 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.d.ts +12 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.d.ts.map +1 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.js +12 -0
- package/esm/models/operations/get-arbiter-api-v1-arbiters-get.js.map +1 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts +12 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts.map +1 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.js +12 -0
- package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.js.map +1 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts +12 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js +18 -0
- package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js.map +1 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts +12 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js +18 -0
- package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js.map +1 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts +14 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts.map +1 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js +13 -0
- package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js.map +1 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.d.ts +15 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.js +17 -0
- package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.js.map +1 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.d.ts +14 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.d.ts.map +1 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.js +13 -0
- package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.js.map +1 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts +12 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts.map +1 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js +17 -0
- package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js.map +1 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts +12 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js +17 -0
- package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js.map +1 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts +12 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts.map +1 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js +18 -0
- package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.d.ts +12 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.js +12 -0
- package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.js.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.d.ts +12 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.d.ts.map +1 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.js +17 -0
- package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.js.map +1 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.d.ts +12 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.d.ts.map +1 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.js +12 -0
- package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.js.map +1 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts +14 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts.map +1 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js +14 -0
- package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js.map +1 -0
- package/esm/models/operations/index.d.ts +22 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +25 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.d.ts +71 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.d.ts.map +1 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.js +46 -0
- package/esm/models/operations/list-examples-api-v1-examples-get.js.map +1 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.d.ts +18 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.d.ts.map +1 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.js +20 -0
- package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.js.map +1 -0
- package/esm/models/operations/read-badge-badge-get.d.ts +14 -0
- package/esm/models/operations/read-badge-badge-get.d.ts.map +1 -0
- package/esm/models/operations/read-badge-badge-get.js +13 -0
- package/esm/models/operations/read-badge-badge-get.js.map +1 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.d.ts +16 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.d.ts.map +1 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.js +14 -0
- package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.js.map +1 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts +12 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts.map +1 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js +18 -0
- package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js.map +1 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts +12 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts.map +1 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js +18 -0
- package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js.map +1 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts +12 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts.map +1 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js +18 -0
- package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js.map +1 -0
- package/esm/models/paginated-page.d.ts +16 -0
- package/esm/models/paginated-page.d.ts.map +1 -0
- package/esm/models/paginated-page.js +27 -0
- package/esm/models/paginated-page.js.map +1 -0
- package/esm/models/predict-example-response.d.ts +18 -0
- package/esm/models/predict-example-response.d.ts.map +1 -0
- package/esm/models/predict-example-response.js +24 -0
- package/esm/models/predict-example-response.js.map +1 -0
- package/esm/models/predicted-example.d.ts +58 -0
- package/esm/models/predicted-example.d.ts.map +1 -0
- package/esm/models/predicted-example.js +56 -0
- package/esm/models/predicted-example.js.map +1 -0
- package/esm/models/prediction-annotation.d.ts +19 -0
- package/esm/models/prediction-annotation.d.ts.map +1 -0
- package/esm/models/prediction-annotation.js +21 -0
- package/esm/models/prediction-annotation.js.map +1 -0
- package/esm/models/register-request.d.ts +22 -0
- package/esm/models/register-request.d.ts.map +1 -0
- package/esm/models/register-request.js +17 -0
- package/esm/models/register-request.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +12 -0
- package/esm/models/security.js.map +1 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.d.ts +21 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.d.ts.map +1 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.js +20 -0
- package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.js.map +1 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.d.ts +41 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.d.ts.map +1 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.js +28 -0
- package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.js.map +1 -0
- package/esm/models/update-arbiter-metadata-request.d.ts +18 -0
- package/esm/models/update-arbiter-metadata-request.d.ts.map +1 -0
- package/esm/models/update-arbiter-metadata-request.js +13 -0
- package/esm/models/update-arbiter-metadata-request.js.map +1 -0
- package/esm/models/validate-invite-code-request.d.ts +12 -0
- package/esm/models/validate-invite-code-request.d.ts.map +1 -0
- package/esm/models/validate-invite-code-request.js +12 -0
- package/esm/models/validate-invite-code-request.js.map +1 -0
- package/esm/models/validation-error.d.ts +22 -0
- package/esm/models/validation-error.d.ts.map +1 -0
- package/esm/models/validation-error.js +32 -0
- package/esm/models/validation-error.js.map +1 -0
- package/esm/models/waitlist-request.d.ts +16 -0
- package/esm/models/waitlist-request.d.ts.map +1 -0
- package/esm/models/waitlist-request.js +14 -0
- package/esm/models/waitlist-request.js.map +1 -0
- package/esm/primitives/module.d.ts +44 -0
- package/esm/primitives/module.d.ts.map +1 -0
- package/esm/primitives/module.js +117 -0
- package/esm/primitives/module.js.map +1 -0
- package/esm/programs/predict.d.ts +65 -0
- package/esm/programs/predict.d.ts.map +1 -0
- package/esm/programs/predict.js +73 -0
- package/esm/programs/predict.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/sdk.d.ts +325 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +431 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/webhooks.d.ts +8 -0
- package/esm/sdk/webhooks.d.ts.map +1 -0
- package/esm/sdk/webhooks.js +15 -0
- package/esm/sdk/webhooks.js.map +1 -0
- package/esm/serialization/config.d.ts +79 -0
- package/esm/serialization/config.d.ts.map +1 -0
- package/esm/serialization/config.js +57 -0
- package/esm/serialization/config.js.map +1 -0
- package/esm/serialization/naming.d.ts +14 -0
- package/esm/serialization/naming.d.ts.map +1 -0
- package/esm/serialization/naming.js +21 -0
- package/esm/serialization/naming.js.map +1 -0
- package/esm/serialization/program.d.ts +45 -0
- package/esm/serialization/program.d.ts.map +1 -0
- package/esm/serialization/program.js +30 -0
- package/esm/serialization/program.js.map +1 -0
- package/esm/serialization/zod_schema.d.ts +33 -0
- package/esm/serialization/zod_schema.d.ts.map +1 -0
- package/esm/serialization/zod_schema.js +269 -0
- package/esm/serialization/zod_schema.js.map +1 -0
- package/esm/signatures/signature.d.ts +68 -0
- package/esm/signatures/signature.d.ts.map +1 -0
- package/esm/signatures/signature.js +222 -0
- package/esm/signatures/signature.js.map +1 -0
- package/esm/signatures/types.d.ts +69 -0
- package/esm/signatures/types.d.ts.map +1 -0
- package/esm/signatures/types.js +68 -0
- package/esm/signatures/types.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +9 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +109 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/jsr.json +27 -0
- package/package.json +77 -0
- package/src/core.ts +13 -0
- package/src/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.ts +189 -0
- package/src/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.ts +187 -0
- package/src/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.ts +187 -0
- package/src/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.ts +169 -0
- package/src/funcs/create-chat-completion-api-v1-chat-completions-post.ts +150 -0
- package/src/funcs/create-prediction-api-v1-arbiters-predictions-post.ts +173 -0
- package/src/funcs/create-prediction-api-v2-arbiters-predictions-post.ts +181 -0
- package/src/funcs/delete-examples-api-v1-examples-delete.ts +172 -0
- package/src/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.ts +170 -0
- package/src/funcs/download-export-api-v1-examples-export-download-get.ts +182 -0
- package/src/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.ts +192 -0
- package/src/funcs/export-examples-api-v1-examples-export-post.ts +172 -0
- package/src/funcs/get-arbiter-api-v1-arbiters-get.ts +177 -0
- package/src/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.ts +178 -0
- package/src/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.ts +198 -0
- package/src/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.ts +187 -0
- package/src/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.ts +183 -0
- package/src/funcs/get-example-by-id-api-v1-examples-example-id-get.ts +180 -0
- package/src/funcs/get-graded-count-api-v1-examples-graded-count-get.ts +182 -0
- package/src/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.ts +185 -0
- package/src/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.ts +189 -0
- package/src/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.ts +179 -0
- package/src/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.ts +191 -0
- package/src/funcs/get-supported-models-api-v1-arbiters-supported-models-get.ts +141 -0
- package/src/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.ts +185 -0
- package/src/funcs/ingest-examples-api-v1-examples-post.ts +150 -0
- package/src/funcs/init-arbiter-api-v1-arbiters-post.ts +169 -0
- package/src/funcs/list-examples-api-v1-examples-get.ts +193 -0
- package/src/funcs/patch-example-api-v1-examples-example-id-annotation-patch.ts +185 -0
- package/src/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.ts +190 -0
- package/src/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.ts +174 -0
- package/src/funcs/start-optimization-job-api-v1-jobs-gepa-post.ts +177 -0
- package/src/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts +201 -0
- package/src/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.ts +187 -0
- package/src/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.ts +198 -0
- package/src/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.ts +173 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +26 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +64 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +529 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +356 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +405 -0
- package/src/lib/security.ts +275 -0
- package/src/lib/url.ts +35 -0
- package/src/modaic/arbiter.ts +252 -0
- package/src/modaic/git.ts +267 -0
- package/src/modaic/index.ts +61 -0
- package/src/modaic/runtime.ts +107 -0
- package/src/modaic/serialization.ts +592 -0
- package/src/modaic/signatures.ts +398 -0
- package/src/models/annotate-example-request.ts +38 -0
- package/src/models/arbiter-request.ts +46 -0
- package/src/models/batch-arbiter.ts +38 -0
- package/src/models/batch-example.ts +75 -0
- package/src/models/batch-predictions-job-request.ts +68 -0
- package/src/models/chat-completion-choice.ts +44 -0
- package/src/models/chat-completion-request.ts +94 -0
- package/src/models/chat-completion-response.ts +59 -0
- package/src/models/chat-message.ts +73 -0
- package/src/models/completion-usage.ts +45 -0
- package/src/models/confidence-score-job-request.ts +38 -0
- package/src/models/confidence-status-response.ts +62 -0
- package/src/models/delete-examples-request.ts +45 -0
- package/src/models/dispatch-prediction-request.ts +58 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/http-validation-error.ts +53 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/modaic-client-default-error.ts +40 -0
- package/src/models/errors/modaic-client-error.ts +35 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/export-examples-request.ts +41 -0
- package/src/models/export-examples-response.ts +54 -0
- package/src/models/field-schema.ts +50 -0
- package/src/models/gepa-job-request.ts +55 -0
- package/src/models/gepa-job-response.ts +79 -0
- package/src/models/gepa-kwargs.ts +122 -0
- package/src/models/get-confidence-request.ts +45 -0
- package/src/models/index.ts +36 -0
- package/src/models/init-arbiter-request.ts +58 -0
- package/src/models/lm.ts +26 -0
- package/src/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.ts +45 -0
- package/src/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.ts +45 -0
- package/src/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.ts +42 -0
- package/src/models/operations/download-export-api-v1-examples-export-download-get.ts +46 -0
- package/src/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.ts +45 -0
- package/src/models/operations/get-arbiter-api-v1-arbiters-get.ts +32 -0
- package/src/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.ts +34 -0
- package/src/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.ts +45 -0
- package/src/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.ts +45 -0
- package/src/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.ts +37 -0
- package/src/models/operations/get-example-by-id-api-v1-examples-example-id-get.ts +45 -0
- package/src/models/operations/get-graded-count-api-v1-examples-graded-count-get.ts +37 -0
- package/src/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.ts +42 -0
- package/src/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.ts +42 -0
- package/src/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.ts +45 -0
- package/src/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.ts +37 -0
- package/src/models/operations/index.ts +25 -0
- package/src/models/operations/list-examples-api-v1-examples-get.ts +121 -0
- package/src/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.ts +49 -0
- package/src/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts +45 -0
- package/src/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.ts +45 -0
- package/src/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.ts +45 -0
- package/src/models/paginated-page.ts +55 -0
- package/src/models/predict-example-response.ts +48 -0
- package/src/models/predicted-example.ts +124 -0
- package/src/models/prediction-annotation.ts +49 -0
- package/src/models/security.ts +26 -0
- package/src/models/src-api-v1-arbiters-schemas-predict-example-request.ts +53 -0
- package/src/models/src-api-v2-arbiters-schemas-predict-example-request.ts +74 -0
- package/src/models/update-arbiter-metadata-request.ts +35 -0
- package/src/models/validation-error.ts +75 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +750 -0
- package/src/types/async.ts +69 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +140 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
package/src/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ModaicClientCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ModaicClientError } from "../models/errors/modaic-client-error.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Stream Batch Predictions Events
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Stream batch-job progress snapshots as SSE.
|
|
35
|
+
*
|
|
36
|
+
* Each frame is a `BatchPredictionsEvent`-shaped JSON payload (with the
|
|
37
|
+
* per-prediction field stripped server-side; clients fetch the canonical
|
|
38
|
+
* list via `GET /results`). Frames carry both the SSE `id:` (Redis stream
|
|
39
|
+
* msg id) and `event:` (the snapshot's `event` field — `start`,
|
|
40
|
+
* `prediction`, `score`, `finish`).
|
|
41
|
+
*
|
|
42
|
+
* Resumption: clients automatically send `Last-Event-ID` on reconnect;
|
|
43
|
+
* we use it as the `XREAD` start id so no events are missed (provided
|
|
44
|
+
* the stream hasn't been trimmed past it).
|
|
45
|
+
*
|
|
46
|
+
* Heartbeats every ~15s keep proxies from idling the connection out.
|
|
47
|
+
* Synthetic terminal: if Celery reaches a terminal state without a
|
|
48
|
+
* `finish` snapshot reaching Redis, emit one so clients don't hang.
|
|
49
|
+
*/
|
|
50
|
+
export function streamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGet(
|
|
51
|
+
client: ModaicClientCore,
|
|
52
|
+
request:
|
|
53
|
+
operations.StreamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGetRequest,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<
|
|
56
|
+
Result<
|
|
57
|
+
any,
|
|
58
|
+
| errors.HTTPValidationError
|
|
59
|
+
| ModaicClientError
|
|
60
|
+
| ResponseValidationError
|
|
61
|
+
| ConnectionError
|
|
62
|
+
| RequestAbortedError
|
|
63
|
+
| RequestTimeoutError
|
|
64
|
+
| InvalidRequestError
|
|
65
|
+
| UnexpectedClientError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
>
|
|
68
|
+
> {
|
|
69
|
+
return new APIPromise($do(
|
|
70
|
+
client,
|
|
71
|
+
request,
|
|
72
|
+
options,
|
|
73
|
+
));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function $do(
|
|
77
|
+
client: ModaicClientCore,
|
|
78
|
+
request:
|
|
79
|
+
operations.StreamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGetRequest,
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): Promise<
|
|
82
|
+
[
|
|
83
|
+
Result<
|
|
84
|
+
any,
|
|
85
|
+
| errors.HTTPValidationError
|
|
86
|
+
| ModaicClientError
|
|
87
|
+
| ResponseValidationError
|
|
88
|
+
| ConnectionError
|
|
89
|
+
| RequestAbortedError
|
|
90
|
+
| RequestTimeoutError
|
|
91
|
+
| InvalidRequestError
|
|
92
|
+
| UnexpectedClientError
|
|
93
|
+
| SDKValidationError
|
|
94
|
+
>,
|
|
95
|
+
APICall,
|
|
96
|
+
]
|
|
97
|
+
> {
|
|
98
|
+
const parsed = safeParse(
|
|
99
|
+
request,
|
|
100
|
+
(value) =>
|
|
101
|
+
z.parse(
|
|
102
|
+
operations
|
|
103
|
+
.StreamBatchPredictionsEventsApiV1JobsBatchPredictionsJobIdEventsGetRequest$outboundSchema,
|
|
104
|
+
value,
|
|
105
|
+
),
|
|
106
|
+
"Input validation failed",
|
|
107
|
+
);
|
|
108
|
+
if (!parsed.ok) {
|
|
109
|
+
return [parsed, { status: "invalid" }];
|
|
110
|
+
}
|
|
111
|
+
const payload = parsed.value;
|
|
112
|
+
const body = null;
|
|
113
|
+
|
|
114
|
+
const pathParams = {
|
|
115
|
+
job_id: encodeSimple("job_id", payload.job_id, {
|
|
116
|
+
explode: false,
|
|
117
|
+
charEncoding: "percent",
|
|
118
|
+
}),
|
|
119
|
+
};
|
|
120
|
+
const path = pathToFunc("/api/v1/jobs/batch/predictions/{job_id}/events")(
|
|
121
|
+
pathParams,
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
const headers = new Headers(compactMap({
|
|
125
|
+
Accept: "application/json",
|
|
126
|
+
}));
|
|
127
|
+
|
|
128
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
129
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
130
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
131
|
+
|
|
132
|
+
const context = {
|
|
133
|
+
options: client._options,
|
|
134
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135
|
+
operationID:
|
|
136
|
+
"stream_batch_predictions_events_api_v1_jobs_batch_predictions__job_id__events_get",
|
|
137
|
+
oAuth2Scopes: null,
|
|
138
|
+
|
|
139
|
+
resolvedSecurity: requestSecurity,
|
|
140
|
+
|
|
141
|
+
securitySource: client._options.token,
|
|
142
|
+
retryConfig: options?.retries
|
|
143
|
+
|| client._options.retryConfig
|
|
144
|
+
|| { strategy: "none" },
|
|
145
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const requestRes = client._createRequest(context, {
|
|
149
|
+
security: requestSecurity,
|
|
150
|
+
method: "GET",
|
|
151
|
+
baseURL: options?.serverURL,
|
|
152
|
+
path: path,
|
|
153
|
+
headers: headers,
|
|
154
|
+
body: body,
|
|
155
|
+
userAgent: client._options.userAgent,
|
|
156
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
157
|
+
}, options);
|
|
158
|
+
if (!requestRes.ok) {
|
|
159
|
+
return [requestRes, { status: "invalid" }];
|
|
160
|
+
}
|
|
161
|
+
const req = requestRes.value;
|
|
162
|
+
|
|
163
|
+
const doResult = await client._do(req, {
|
|
164
|
+
context,
|
|
165
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
166
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
167
|
+
retryConfig: context.retryConfig,
|
|
168
|
+
retryCodes: context.retryCodes,
|
|
169
|
+
});
|
|
170
|
+
if (!doResult.ok) {
|
|
171
|
+
return [doResult, { status: "request-error", request: req }];
|
|
172
|
+
}
|
|
173
|
+
const response = doResult.value;
|
|
174
|
+
|
|
175
|
+
const responseFields = {
|
|
176
|
+
HttpMeta: { Response: response, Request: req },
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const [result] = await M.match<
|
|
180
|
+
any,
|
|
181
|
+
| errors.HTTPValidationError
|
|
182
|
+
| ModaicClientError
|
|
183
|
+
| ResponseValidationError
|
|
184
|
+
| ConnectionError
|
|
185
|
+
| RequestAbortedError
|
|
186
|
+
| RequestTimeoutError
|
|
187
|
+
| InvalidRequestError
|
|
188
|
+
| UnexpectedClientError
|
|
189
|
+
| SDKValidationError
|
|
190
|
+
>(
|
|
191
|
+
M.json(200, z.any()),
|
|
192
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
193
|
+
M.fail("4XX"),
|
|
194
|
+
M.fail("5XX"),
|
|
195
|
+
)(response, req, { extraFields: responseFields });
|
|
196
|
+
if (!result.ok) {
|
|
197
|
+
return [result, { status: "complete", request: req, response }];
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return [result, { status: "complete", request: req, response }];
|
|
201
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ModaicClientCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ModaicClientError } from "../models/errors/modaic-client-error.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Stream Batch Predictions Results
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Stream results for a batch predictions job as application/x-ndjson.
|
|
35
|
+
*/
|
|
36
|
+
export function streamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGet(
|
|
37
|
+
client: ModaicClientCore,
|
|
38
|
+
request:
|
|
39
|
+
operations.StreamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGetRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<
|
|
42
|
+
Result<
|
|
43
|
+
any,
|
|
44
|
+
| errors.HTTPValidationError
|
|
45
|
+
| ModaicClientError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: ModaicClientCore,
|
|
64
|
+
request:
|
|
65
|
+
operations.StreamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGetRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
[
|
|
69
|
+
Result<
|
|
70
|
+
any,
|
|
71
|
+
| errors.HTTPValidationError
|
|
72
|
+
| ModaicClientError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const parsed = safeParse(
|
|
85
|
+
request,
|
|
86
|
+
(value) =>
|
|
87
|
+
z.parse(
|
|
88
|
+
operations
|
|
89
|
+
.StreamBatchPredictionsResultsApiV1JobsBatchPredictionsJobIdResultsGetRequest$outboundSchema,
|
|
90
|
+
value,
|
|
91
|
+
),
|
|
92
|
+
"Input validation failed",
|
|
93
|
+
);
|
|
94
|
+
if (!parsed.ok) {
|
|
95
|
+
return [parsed, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const payload = parsed.value;
|
|
98
|
+
const body = null;
|
|
99
|
+
|
|
100
|
+
const pathParams = {
|
|
101
|
+
job_id: encodeSimple("job_id", payload.job_id, {
|
|
102
|
+
explode: false,
|
|
103
|
+
charEncoding: "percent",
|
|
104
|
+
}),
|
|
105
|
+
};
|
|
106
|
+
const path = pathToFunc("/api/v1/jobs/batch/predictions/{job_id}/results")(
|
|
107
|
+
pathParams,
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const headers = new Headers(compactMap({
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
}));
|
|
113
|
+
|
|
114
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
115
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
116
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
|
+
|
|
118
|
+
const context = {
|
|
119
|
+
options: client._options,
|
|
120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
121
|
+
operationID:
|
|
122
|
+
"stream_batch_predictions_results_api_v1_jobs_batch_predictions__job_id__results_get",
|
|
123
|
+
oAuth2Scopes: null,
|
|
124
|
+
|
|
125
|
+
resolvedSecurity: requestSecurity,
|
|
126
|
+
|
|
127
|
+
securitySource: client._options.token,
|
|
128
|
+
retryConfig: options?.retries
|
|
129
|
+
|| client._options.retryConfig
|
|
130
|
+
|| { strategy: "none" },
|
|
131
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const requestRes = client._createRequest(context, {
|
|
135
|
+
security: requestSecurity,
|
|
136
|
+
method: "GET",
|
|
137
|
+
baseURL: options?.serverURL,
|
|
138
|
+
path: path,
|
|
139
|
+
headers: headers,
|
|
140
|
+
body: body,
|
|
141
|
+
userAgent: client._options.userAgent,
|
|
142
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
143
|
+
}, options);
|
|
144
|
+
if (!requestRes.ok) {
|
|
145
|
+
return [requestRes, { status: "invalid" }];
|
|
146
|
+
}
|
|
147
|
+
const req = requestRes.value;
|
|
148
|
+
|
|
149
|
+
const doResult = await client._do(req, {
|
|
150
|
+
context,
|
|
151
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
152
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
153
|
+
retryConfig: context.retryConfig,
|
|
154
|
+
retryCodes: context.retryCodes,
|
|
155
|
+
});
|
|
156
|
+
if (!doResult.ok) {
|
|
157
|
+
return [doResult, { status: "request-error", request: req }];
|
|
158
|
+
}
|
|
159
|
+
const response = doResult.value;
|
|
160
|
+
|
|
161
|
+
const responseFields = {
|
|
162
|
+
HttpMeta: { Response: response, Request: req },
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const [result] = await M.match<
|
|
166
|
+
any,
|
|
167
|
+
| errors.HTTPValidationError
|
|
168
|
+
| ModaicClientError
|
|
169
|
+
| ResponseValidationError
|
|
170
|
+
| ConnectionError
|
|
171
|
+
| RequestAbortedError
|
|
172
|
+
| RequestTimeoutError
|
|
173
|
+
| InvalidRequestError
|
|
174
|
+
| UnexpectedClientError
|
|
175
|
+
| SDKValidationError
|
|
176
|
+
>(
|
|
177
|
+
M.json(200, z.any()),
|
|
178
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
179
|
+
M.fail("4XX"),
|
|
180
|
+
M.fail("5XX"),
|
|
181
|
+
)(response, req, { extraFields: responseFields });
|
|
182
|
+
if (!result.ok) {
|
|
183
|
+
return [result, { status: "complete", request: req, response }];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return [result, { status: "complete", request: req, response }];
|
|
187
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ModaicClientCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ModaicClientError } from "../models/errors/modaic-client-error.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Stream Prediction Confidence
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Stream the confidence result for ``prediction_id`` over SSE.
|
|
35
|
+
*
|
|
36
|
+
* Emits a ``status`` event on subscribe (``queued`` or ``completed``) and a
|
|
37
|
+
* terminal ``completed`` / ``failed`` event when the worker finishes. Sends
|
|
38
|
+
* a comment line every ``STREAM_KEEPALIVE_INTERVAL_S`` seconds so idle
|
|
39
|
+
* proxies don't drop the connection. Closes after ``STREAM_WALL_CAP_S``
|
|
40
|
+
* seconds with a final ``status: queued`` event so the client reconnects
|
|
41
|
+
* instead of holding open forever.
|
|
42
|
+
*
|
|
43
|
+
* Returns 404 if neither a CH row, a pending Redis prediction, nor a
|
|
44
|
+
* Celery task exists for ``prediction_id``. Returns 403 if the caller
|
|
45
|
+
* lacks read access on the arbiter repo.
|
|
46
|
+
*/
|
|
47
|
+
export function streamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGet(
|
|
48
|
+
client: ModaicClientCore,
|
|
49
|
+
request:
|
|
50
|
+
operations.StreamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGetRequest,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): APIPromise<
|
|
53
|
+
Result<
|
|
54
|
+
any,
|
|
55
|
+
| errors.HTTPValidationError
|
|
56
|
+
| ModaicClientError
|
|
57
|
+
| ResponseValidationError
|
|
58
|
+
| ConnectionError
|
|
59
|
+
| RequestAbortedError
|
|
60
|
+
| RequestTimeoutError
|
|
61
|
+
| InvalidRequestError
|
|
62
|
+
| UnexpectedClientError
|
|
63
|
+
| SDKValidationError
|
|
64
|
+
>
|
|
65
|
+
> {
|
|
66
|
+
return new APIPromise($do(
|
|
67
|
+
client,
|
|
68
|
+
request,
|
|
69
|
+
options,
|
|
70
|
+
));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async function $do(
|
|
74
|
+
client: ModaicClientCore,
|
|
75
|
+
request:
|
|
76
|
+
operations.StreamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGetRequest,
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): Promise<
|
|
79
|
+
[
|
|
80
|
+
Result<
|
|
81
|
+
any,
|
|
82
|
+
| errors.HTTPValidationError
|
|
83
|
+
| ModaicClientError
|
|
84
|
+
| ResponseValidationError
|
|
85
|
+
| ConnectionError
|
|
86
|
+
| RequestAbortedError
|
|
87
|
+
| RequestTimeoutError
|
|
88
|
+
| InvalidRequestError
|
|
89
|
+
| UnexpectedClientError
|
|
90
|
+
| SDKValidationError
|
|
91
|
+
>,
|
|
92
|
+
APICall,
|
|
93
|
+
]
|
|
94
|
+
> {
|
|
95
|
+
const parsed = safeParse(
|
|
96
|
+
request,
|
|
97
|
+
(value) =>
|
|
98
|
+
z.parse(
|
|
99
|
+
operations
|
|
100
|
+
.StreamPredictionConfidenceApiV1ArbitersPredictionsPredictionIdConfidenceStreamGetRequest$outboundSchema,
|
|
101
|
+
value,
|
|
102
|
+
),
|
|
103
|
+
"Input validation failed",
|
|
104
|
+
);
|
|
105
|
+
if (!parsed.ok) {
|
|
106
|
+
return [parsed, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const payload = parsed.value;
|
|
109
|
+
const body = null;
|
|
110
|
+
|
|
111
|
+
const pathParams = {
|
|
112
|
+
prediction_id: encodeSimple("prediction_id", payload.prediction_id, {
|
|
113
|
+
explode: false,
|
|
114
|
+
charEncoding: "percent",
|
|
115
|
+
}),
|
|
116
|
+
};
|
|
117
|
+
const path = pathToFunc(
|
|
118
|
+
"/api/v1/arbiters/predictions/{prediction_id}/confidence/stream",
|
|
119
|
+
)(pathParams);
|
|
120
|
+
|
|
121
|
+
const headers = new Headers(compactMap({
|
|
122
|
+
Accept: "application/json",
|
|
123
|
+
}));
|
|
124
|
+
|
|
125
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
126
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
127
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
128
|
+
|
|
129
|
+
const context = {
|
|
130
|
+
options: client._options,
|
|
131
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132
|
+
operationID:
|
|
133
|
+
"stream_prediction_confidence_api_v1_arbiters_predictions__prediction_id__confidence_stream_get",
|
|
134
|
+
oAuth2Scopes: null,
|
|
135
|
+
|
|
136
|
+
resolvedSecurity: requestSecurity,
|
|
137
|
+
|
|
138
|
+
securitySource: client._options.token,
|
|
139
|
+
retryConfig: options?.retries
|
|
140
|
+
|| client._options.retryConfig
|
|
141
|
+
|| { strategy: "none" },
|
|
142
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const requestRes = client._createRequest(context, {
|
|
146
|
+
security: requestSecurity,
|
|
147
|
+
method: "GET",
|
|
148
|
+
baseURL: options?.serverURL,
|
|
149
|
+
path: path,
|
|
150
|
+
headers: headers,
|
|
151
|
+
body: body,
|
|
152
|
+
userAgent: client._options.userAgent,
|
|
153
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
154
|
+
}, options);
|
|
155
|
+
if (!requestRes.ok) {
|
|
156
|
+
return [requestRes, { status: "invalid" }];
|
|
157
|
+
}
|
|
158
|
+
const req = requestRes.value;
|
|
159
|
+
|
|
160
|
+
const doResult = await client._do(req, {
|
|
161
|
+
context,
|
|
162
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
163
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
164
|
+
retryConfig: context.retryConfig,
|
|
165
|
+
retryCodes: context.retryCodes,
|
|
166
|
+
});
|
|
167
|
+
if (!doResult.ok) {
|
|
168
|
+
return [doResult, { status: "request-error", request: req }];
|
|
169
|
+
}
|
|
170
|
+
const response = doResult.value;
|
|
171
|
+
|
|
172
|
+
const responseFields = {
|
|
173
|
+
HttpMeta: { Response: response, Request: req },
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const [result] = await M.match<
|
|
177
|
+
any,
|
|
178
|
+
| errors.HTTPValidationError
|
|
179
|
+
| ModaicClientError
|
|
180
|
+
| ResponseValidationError
|
|
181
|
+
| ConnectionError
|
|
182
|
+
| RequestAbortedError
|
|
183
|
+
| RequestTimeoutError
|
|
184
|
+
| InvalidRequestError
|
|
185
|
+
| UnexpectedClientError
|
|
186
|
+
| SDKValidationError
|
|
187
|
+
>(
|
|
188
|
+
M.json(200, z.any()),
|
|
189
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
190
|
+
M.fail("4XX"),
|
|
191
|
+
M.fail("5XX"),
|
|
192
|
+
)(response, req, { extraFields: responseFields });
|
|
193
|
+
if (!result.ok) {
|
|
194
|
+
return [result, { status: "complete", request: req, response }];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return [result, { status: "complete", request: req, response }];
|
|
198
|
+
}
|