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.
Files changed (903) hide show
  1. package/FUNCTIONS.md +87 -0
  2. package/LICENSE +21 -0
  3. package/README.md +533 -0
  4. package/RUNTIMES.md +48 -0
  5. package/USAGE.md +19 -0
  6. package/esm/api/client.d.ts +48 -0
  7. package/esm/api/client.d.ts.map +1 -0
  8. package/esm/api/client.js +131 -0
  9. package/esm/api/client.js.map +1 -0
  10. package/esm/arbiter/arbiter.d.ts +100 -0
  11. package/esm/arbiter/arbiter.d.ts.map +1 -0
  12. package/esm/arbiter/arbiter.js +160 -0
  13. package/esm/arbiter/arbiter.js.map +1 -0
  14. package/esm/config.d.ts +22 -0
  15. package/esm/config.d.ts.map +1 -0
  16. package/esm/config.js +42 -0
  17. package/esm/config.js.map +1 -0
  18. package/esm/core.d.ts +10 -0
  19. package/esm/core.d.ts.map +1 -0
  20. package/esm/core.js +13 -0
  21. package/esm/core.js.map +1 -0
  22. package/esm/exceptions.d.ts +25 -0
  23. package/esm/exceptions.d.ts.map +1 -0
  24. package/esm/exceptions.js +37 -0
  25. package/esm/exceptions.js.map +1 -0
  26. package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts +20 -0
  27. package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts.map +1 -0
  28. package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js +92 -0
  29. package/esm/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js.map +1 -0
  30. package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts +18 -0
  31. package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts.map +1 -0
  32. package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js +90 -0
  33. package/esm/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js.map +1 -0
  34. package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts +23 -0
  35. package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts.map +1 -0
  36. package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js +95 -0
  37. package/esm/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js.map +1 -0
  38. package/esm/funcs/check-email-api-v1-user-check-email-get.d.ts +18 -0
  39. package/esm/funcs/check-email-api-v1-user-check-email-get.d.ts.map +1 -0
  40. package/esm/funcs/check-email-api-v1-user-check-email-get.js +82 -0
  41. package/esm/funcs/check-email-api-v1-user-check-email-get.js.map +1 -0
  42. package/esm/funcs/check-username-api-v1-user-check-username-username-get.d.ts +18 -0
  43. package/esm/funcs/check-username-api-v1-user-check-username-username-get.d.ts.map +1 -0
  44. package/esm/funcs/check-username-api-v1-user-check-username-username-get.js +85 -0
  45. package/esm/funcs/check-username-api-v1-user-check-username-username-get.js.map +1 -0
  46. package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.d.ts +15 -0
  47. package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.d.ts.map +1 -0
  48. package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js +81 -0
  49. package/esm/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.js.map +1 -0
  50. package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.d.ts +14 -0
  51. package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.d.ts.map +1 -0
  52. package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.js +70 -0
  53. package/esm/funcs/create-chat-completion-api-v1-chat-completions-post.js.map +1 -0
  54. package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.d.ts +15 -0
  55. package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.d.ts.map +1 -0
  56. package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.js +81 -0
  57. package/esm/funcs/create-prediction-api-v1-arbiters-predictions-post.js.map +1 -0
  58. package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.d.ts +23 -0
  59. package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.d.ts.map +1 -0
  60. package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.js +89 -0
  61. package/esm/funcs/create-prediction-api-v2-arbiters-predictions-post.js.map +1 -0
  62. package/esm/funcs/delete-examples-api-v1-examples-delete.d.ts +18 -0
  63. package/esm/funcs/delete-examples-api-v1-examples-delete.d.ts.map +1 -0
  64. package/esm/funcs/delete-examples-api-v1-examples-delete.js +84 -0
  65. package/esm/funcs/delete-examples-api-v1-examples-delete.js.map +1 -0
  66. package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.d.ts +15 -0
  67. package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.d.ts.map +1 -0
  68. package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js +81 -0
  69. package/esm/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.js.map +1 -0
  70. package/esm/funcs/download-export-api-v1-examples-export-download-get.d.ts +18 -0
  71. package/esm/funcs/download-export-api-v1-examples-export-download-get.d.ts.map +1 -0
  72. package/esm/funcs/download-export-api-v1-examples-export-download-get.js +89 -0
  73. package/esm/funcs/download-export-api-v1-examples-export-download-get.js.map +1 -0
  74. package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts +23 -0
  75. package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts.map +1 -0
  76. package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js +95 -0
  77. package/esm/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js.map +1 -0
  78. package/esm/funcs/export-examples-api-v1-examples-export-post.d.ts +18 -0
  79. package/esm/funcs/export-examples-api-v1-examples-export-post.d.ts.map +1 -0
  80. package/esm/funcs/export-examples-api-v1-examples-export-post.js +84 -0
  81. package/esm/funcs/export-examples-api-v1-examples-export-post.js.map +1 -0
  82. package/esm/funcs/get-arbiter-api-v1-arbiters-get.d.ts +15 -0
  83. package/esm/funcs/get-arbiter-api-v1-arbiters-get.d.ts.map +1 -0
  84. package/esm/funcs/get-arbiter-api-v1-arbiters-get.js +84 -0
  85. package/esm/funcs/get-arbiter-api-v1-arbiters-get.js.map +1 -0
  86. package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts +15 -0
  87. package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts.map +1 -0
  88. package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js +85 -0
  89. package/esm/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.js.map +1 -0
  90. package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts +29 -0
  91. package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts.map +1 -0
  92. package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js +101 -0
  93. package/esm/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js.map +1 -0
  94. package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts +18 -0
  95. package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts.map +1 -0
  96. package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js +90 -0
  97. package/esm/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js.map +1 -0
  98. package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts +18 -0
  99. package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts.map +1 -0
  100. package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js +90 -0
  101. package/esm/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js.map +1 -0
  102. package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.d.ts +16 -0
  103. package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.d.ts.map +1 -0
  104. package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.js +88 -0
  105. package/esm/funcs/get-example-by-id-api-v1-examples-example-id-get.js.map +1 -0
  106. package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.d.ts +20 -0
  107. package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.d.ts.map +1 -0
  108. package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.js +89 -0
  109. package/esm/funcs/get-graded-count-api-v1-examples-graded-count-get.js.map +1 -0
  110. package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts +21 -0
  111. package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts.map +1 -0
  112. package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js +93 -0
  113. package/esm/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js.map +1 -0
  114. package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts +25 -0
  115. package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts.map +1 -0
  116. package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js +97 -0
  117. package/esm/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js.map +1 -0
  118. package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.d.ts +24 -0
  119. package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.d.ts.map +1 -0
  120. package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js +90 -0
  121. package/esm/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.js.map +1 -0
  122. package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts +22 -0
  123. package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts.map +1 -0
  124. package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js +94 -0
  125. package/esm/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js.map +1 -0
  126. package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.d.ts +13 -0
  127. package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.d.ts.map +1 -0
  128. package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.js +66 -0
  129. package/esm/funcs/get-supported-models-api-v1-arbiters-supported-models-get.js.map +1 -0
  130. package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.d.ts +15 -0
  131. package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.d.ts.map +1 -0
  132. package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.js +81 -0
  133. package/esm/funcs/get-user-by-id-api-v1-user-user-id-get.js.map +1 -0
  134. package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.d.ts +15 -0
  135. package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.d.ts.map +1 -0
  136. package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.js +81 -0
  137. package/esm/funcs/get-user-by-id-api-v2-users-id-user-id-get.js.map +1 -0
  138. package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.d.ts +15 -0
  139. package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.d.ts.map +1 -0
  140. package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.js +82 -0
  141. package/esm/funcs/get-user-by-username-api-v1-user-username-username-get.js.map +1 -0
  142. package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts +20 -0
  143. package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts.map +1 -0
  144. package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js +89 -0
  145. package/esm/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js.map +1 -0
  146. package/esm/funcs/health-check-health-get.d.ts +13 -0
  147. package/esm/funcs/health-check-health-get.d.ts.map +1 -0
  148. package/esm/funcs/health-check-health-get.js +61 -0
  149. package/esm/funcs/health-check-health-get.js.map +1 -0
  150. package/esm/funcs/ingest-examples-api-v1-examples-post.d.ts +14 -0
  151. package/esm/funcs/ingest-examples-api-v1-examples-post.d.ts.map +1 -0
  152. package/esm/funcs/ingest-examples-api-v1-examples-post.js +70 -0
  153. package/esm/funcs/ingest-examples-api-v1-examples-post.js.map +1 -0
  154. package/esm/funcs/init-arbiter-api-v1-arbiters-post.d.ts +15 -0
  155. package/esm/funcs/init-arbiter-api-v1-arbiters-post.d.ts.map +1 -0
  156. package/esm/funcs/init-arbiter-api-v1-arbiters-post.js +81 -0
  157. package/esm/funcs/init-arbiter-api-v1-arbiters-post.js.map +1 -0
  158. package/esm/funcs/join-waitlist-api-v2-waitlist-post.d.ts +15 -0
  159. package/esm/funcs/join-waitlist-api-v2-waitlist-post.d.ts.map +1 -0
  160. package/esm/funcs/join-waitlist-api-v2-waitlist-post.js +76 -0
  161. package/esm/funcs/join-waitlist-api-v2-waitlist-post.js.map +1 -0
  162. package/esm/funcs/list-examples-api-v1-examples-get.d.ts +19 -0
  163. package/esm/funcs/list-examples-api-v1-examples-get.d.ts.map +1 -0
  164. package/esm/funcs/list-examples-api-v1-examples-get.js +100 -0
  165. package/esm/funcs/list-examples-api-v1-examples-get.js.map +1 -0
  166. package/esm/funcs/login-api-v1-auth-login-post.d.ts +21 -0
  167. package/esm/funcs/login-api-v1-auth-login-post.d.ts.map +1 -0
  168. package/esm/funcs/login-api-v1-auth-login-post.js +82 -0
  169. package/esm/funcs/login-api-v1-auth-login-post.js.map +1 -0
  170. package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.d.ts +22 -0
  171. package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.d.ts.map +1 -0
  172. package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.js +83 -0
  173. package/esm/funcs/mfa-verify-api-v1-auth-mfa-verify-post.js.map +1 -0
  174. package/esm/funcs/oauth-callback-api-v1-auth-callback-post.d.ts +21 -0
  175. package/esm/funcs/oauth-callback-api-v1-auth-callback-post.d.ts.map +1 -0
  176. package/esm/funcs/oauth-callback-api-v1-auth-callback-post.js +82 -0
  177. package/esm/funcs/oauth-callback-api-v1-auth-callback-post.js.map +1 -0
  178. package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.d.ts +18 -0
  179. package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.d.ts.map +1 -0
  180. package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.js +91 -0
  181. package/esm/funcs/patch-example-api-v1-examples-example-id-annotation-patch.js.map +1 -0
  182. package/esm/funcs/read-badge-badge-get.d.ts +21 -0
  183. package/esm/funcs/read-badge-badge-get.d.ts.map +1 -0
  184. package/esm/funcs/read-badge-badge-get.js +85 -0
  185. package/esm/funcs/read-badge-badge-get.js.map +1 -0
  186. package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.d.ts +16 -0
  187. package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.d.ts.map +1 -0
  188. package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.js +64 -0
  189. package/esm/funcs/refresh-token-api-v1-auth-token-refresh-post.js.map +1 -0
  190. package/esm/funcs/register-api-v1-auth-register-post.d.ts +21 -0
  191. package/esm/funcs/register-api-v1-auth-register-post.d.ts.map +1 -0
  192. package/esm/funcs/register-api-v1-auth-register-post.js +82 -0
  193. package/esm/funcs/register-api-v1-auth-register-post.js.map +1 -0
  194. package/esm/funcs/root-get.d.ts +13 -0
  195. package/esm/funcs/root-get.d.ts.map +1 -0
  196. package/esm/funcs/root-get.js +61 -0
  197. package/esm/funcs/root-get.js.map +1 -0
  198. package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.d.ts +15 -0
  199. package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.d.ts.map +1 -0
  200. package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.js +82 -0
  201. package/esm/funcs/slack-callback-api-v1-notifications-slack-callback-get.js.map +1 -0
  202. package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.d.ts +16 -0
  203. package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.d.ts.map +1 -0
  204. package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.js +64 -0
  205. package/esm/funcs/slack-interactions-api-v1-notifications-slack-interactions-post.js.map +1 -0
  206. package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.d.ts +35 -0
  207. package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.d.ts.map +1 -0
  208. package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js +101 -0
  209. package/esm/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.js.map +1 -0
  210. package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.d.ts +19 -0
  211. package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.d.ts.map +1 -0
  212. package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js +85 -0
  213. package/esm/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.js.map +1 -0
  214. package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.d.ts +23 -0
  215. package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.d.ts.map +1 -0
  216. package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.js +89 -0
  217. package/esm/funcs/start-optimization-job-api-v1-jobs-gepa-post.js.map +1 -0
  218. package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts +32 -0
  219. package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts.map +1 -0
  220. package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js +104 -0
  221. package/esm/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js.map +1 -0
  222. package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts +18 -0
  223. package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts.map +1 -0
  224. package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js +90 -0
  225. package/esm/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js.map +1 -0
  226. package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts +29 -0
  227. package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts.map +1 -0
  228. package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js +101 -0
  229. package/esm/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js.map +1 -0
  230. package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.d.ts +18 -0
  231. package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.d.ts.map +1 -0
  232. package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js +84 -0
  233. package/esm/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.js.map +1 -0
  234. package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.d.ts +18 -0
  235. package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.d.ts.map +1 -0
  236. package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.js +79 -0
  237. package/esm/funcs/validate-invite-code-api-v1-auth-validate-invite-code-post.js.map +1 -0
  238. package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.d.ts +13 -0
  239. package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.d.ts.map +1 -0
  240. package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js +61 -0
  241. package/esm/funcs/webhooks-stripe-webhook-api-v1-payments-webhooks-stripe-post.js.map +1 -0
  242. package/esm/git/push.d.ts +37 -0
  243. package/esm/git/push.d.ts.map +1 -0
  244. package/esm/git/push.js +113 -0
  245. package/esm/git/push.js.map +1 -0
  246. package/esm/hooks/hooks.d.ts +25 -0
  247. package/esm/hooks/hooks.d.ts.map +1 -0
  248. package/esm/hooks/hooks.js +80 -0
  249. package/esm/hooks/hooks.js.map +1 -0
  250. package/esm/hooks/index.d.ts +3 -0
  251. package/esm/hooks/index.d.ts.map +1 -0
  252. package/esm/hooks/index.js +6 -0
  253. package/esm/hooks/index.js.map +1 -0
  254. package/esm/hooks/types.d.ts +76 -0
  255. package/esm/hooks/types.d.ts.map +1 -0
  256. package/esm/hooks/types.js +5 -0
  257. package/esm/hooks/types.js.map +1 -0
  258. package/esm/index.d.ts +7 -0
  259. package/esm/index.d.ts.map +1 -0
  260. package/esm/index.js +24 -0
  261. package/esm/index.js.map +1 -0
  262. package/esm/lib/base64.d.ts +10 -0
  263. package/esm/lib/base64.d.ts.map +1 -0
  264. package/esm/lib/base64.js +31 -0
  265. package/esm/lib/base64.js.map +1 -0
  266. package/esm/lib/config.d.ts +38 -0
  267. package/esm/lib/config.d.ts.map +1 -0
  268. package/esm/lib/config.js +31 -0
  269. package/esm/lib/config.js.map +1 -0
  270. package/esm/lib/dlv.d.ts +14 -0
  271. package/esm/lib/dlv.d.ts.map +1 -0
  272. package/esm/lib/dlv.js +46 -0
  273. package/esm/lib/dlv.js.map +1 -0
  274. package/esm/lib/encodings.d.ts +54 -0
  275. package/esm/lib/encodings.d.ts.map +1 -0
  276. package/esm/lib/encodings.js +391 -0
  277. package/esm/lib/encodings.js.map +1 -0
  278. package/esm/lib/env.d.ts +15 -0
  279. package/esm/lib/env.d.ts.map +1 -0
  280. package/esm/lib/env.js +44 -0
  281. package/esm/lib/env.js.map +1 -0
  282. package/esm/lib/files.d.ts +26 -0
  283. package/esm/lib/files.d.ts.map +1 -0
  284. package/esm/lib/files.js +91 -0
  285. package/esm/lib/files.js.map +1 -0
  286. package/esm/lib/http.d.ts +67 -0
  287. package/esm/lib/http.d.ts.map +1 -0
  288. package/esm/lib/http.js +209 -0
  289. package/esm/lib/http.js.map +1 -0
  290. package/esm/lib/is-plain-object.d.ts +2 -0
  291. package/esm/lib/is-plain-object.d.ts.map +1 -0
  292. package/esm/lib/is-plain-object.js +38 -0
  293. package/esm/lib/is-plain-object.js.map +1 -0
  294. package/esm/lib/logger.d.ts +6 -0
  295. package/esm/lib/logger.d.ts.map +1 -0
  296. package/esm/lib/logger.js +5 -0
  297. package/esm/lib/logger.js.map +1 -0
  298. package/esm/lib/matchers.d.ts +59 -0
  299. package/esm/lib/matchers.d.ts.map +1 -0
  300. package/esm/lib/matchers.js +202 -0
  301. package/esm/lib/matchers.js.map +1 -0
  302. package/esm/lib/primitives.d.ts +26 -0
  303. package/esm/lib/primitives.d.ts.map +1 -0
  304. package/esm/lib/primitives.js +103 -0
  305. package/esm/lib/primitives.js.map +1 -0
  306. package/esm/lib/retries.d.ts +38 -0
  307. package/esm/lib/retries.d.ts.map +1 -0
  308. package/esm/lib/retries.js +150 -0
  309. package/esm/lib/retries.js.map +1 -0
  310. package/esm/lib/schemas.d.ts +21 -0
  311. package/esm/lib/schemas.d.ts.map +1 -0
  312. package/esm/lib/schemas.js +57 -0
  313. package/esm/lib/schemas.js.map +1 -0
  314. package/esm/lib/sdks.d.ts +63 -0
  315. package/esm/lib/sdks.d.ts.map +1 -0
  316. package/esm/lib/sdks.js +260 -0
  317. package/esm/lib/sdks.js.map +1 -0
  318. package/esm/lib/security.d.ts +83 -0
  319. package/esm/lib/security.d.ts.map +1 -0
  320. package/esm/lib/security.js +149 -0
  321. package/esm/lib/security.js.map +1 -0
  322. package/esm/lib/url.d.ts +5 -0
  323. package/esm/lib/url.d.ts.map +1 -0
  324. package/esm/lib/url.js +24 -0
  325. package/esm/lib/url.js.map +1 -0
  326. package/esm/main.d.ts +3 -0
  327. package/esm/main.d.ts.map +1 -0
  328. package/esm/main.js +20 -0
  329. package/esm/main.js.map +1 -0
  330. package/esm/modaic/api.d.ts +48 -0
  331. package/esm/modaic/api.d.ts.map +1 -0
  332. package/esm/modaic/api.js +131 -0
  333. package/esm/modaic/api.js.map +1 -0
  334. package/esm/modaic/arbiter.d.ts +101 -0
  335. package/esm/modaic/arbiter.d.ts.map +1 -0
  336. package/esm/modaic/arbiter.js +161 -0
  337. package/esm/modaic/arbiter.js.map +1 -0
  338. package/esm/modaic/git.d.ts +59 -0
  339. package/esm/modaic/git.d.ts.map +1 -0
  340. package/esm/modaic/git.js +193 -0
  341. package/esm/modaic/git.js.map +1 -0
  342. package/esm/modaic/index.d.ts +19 -0
  343. package/esm/modaic/index.d.ts.map +1 -0
  344. package/esm/modaic/index.js +19 -0
  345. package/esm/modaic/index.js.map +1 -0
  346. package/esm/modaic/runtime.d.ts +51 -0
  347. package/esm/modaic/runtime.d.ts.map +1 -0
  348. package/esm/modaic/runtime.js +88 -0
  349. package/esm/modaic/runtime.js.map +1 -0
  350. package/esm/modaic/serialization.d.ts +197 -0
  351. package/esm/modaic/serialization.d.ts.map +1 -0
  352. package/esm/modaic/serialization.js +389 -0
  353. package/esm/modaic/serialization.js.map +1 -0
  354. package/esm/modaic/signatures.d.ts +135 -0
  355. package/esm/modaic/signatures.d.ts.map +1 -0
  356. package/esm/modaic/signatures.js +290 -0
  357. package/esm/modaic/signatures.js.map +1 -0
  358. package/esm/models/annotate-example-request.d.ts +16 -0
  359. package/esm/models/annotate-example-request.d.ts.map +1 -0
  360. package/esm/models/annotate-example-request.js +13 -0
  361. package/esm/models/annotate-example-request.js.map +1 -0
  362. package/esm/models/arbiter-request.d.ts +18 -0
  363. package/esm/models/arbiter-request.d.ts.map +1 -0
  364. package/esm/models/arbiter-request.js +23 -0
  365. package/esm/models/arbiter-request.js.map +1 -0
  366. package/esm/models/batch-arbiter.d.ts +14 -0
  367. package/esm/models/batch-arbiter.d.ts.map +1 -0
  368. package/esm/models/batch-arbiter.js +19 -0
  369. package/esm/models/batch-arbiter.js.map +1 -0
  370. package/esm/models/batch-example.d.ts +51 -0
  371. package/esm/models/batch-example.d.ts.map +1 -0
  372. package/esm/models/batch-example.js +30 -0
  373. package/esm/models/batch-example.js.map +1 -0
  374. package/esm/models/batch-predictions-job-request.d.ts +30 -0
  375. package/esm/models/batch-predictions-job-request.d.ts.map +1 -0
  376. package/esm/models/batch-predictions-job-request.js +23 -0
  377. package/esm/models/batch-predictions-job-request.js.map +1 -0
  378. package/esm/models/chat-completion-choice.d.ts +13 -0
  379. package/esm/models/chat-completion-choice.d.ts.map +1 -0
  380. package/esm/models/chat-completion-choice.js +22 -0
  381. package/esm/models/chat-completion-choice.js.map +1 -0
  382. package/esm/models/chat-completion-request.d.ts +45 -0
  383. package/esm/models/chat-completion-request.d.ts.map +1 -0
  384. package/esm/models/chat-completion-request.js +39 -0
  385. package/esm/models/chat-completion-request.js.map +1 -0
  386. package/esm/models/chat-completion-response.d.ts +18 -0
  387. package/esm/models/chat-completion-response.d.ts.map +1 -0
  388. package/esm/models/chat-completion-response.js +27 -0
  389. package/esm/models/chat-completion-response.js.map +1 -0
  390. package/esm/models/chat-message.d.ts +27 -0
  391. package/esm/models/chat-message.d.ts.map +1 -0
  392. package/esm/models/chat-message.js +37 -0
  393. package/esm/models/chat-message.js.map +1 -0
  394. package/esm/models/completion-usage.d.ts +12 -0
  395. package/esm/models/completion-usage.d.ts.map +1 -0
  396. package/esm/models/completion-usage.js +23 -0
  397. package/esm/models/completion-usage.js.map +1 -0
  398. package/esm/models/confidence-score-job-request.d.ts +12 -0
  399. package/esm/models/confidence-score-job-request.d.ts.map +1 -0
  400. package/esm/models/confidence-score-job-request.js +17 -0
  401. package/esm/models/confidence-score-job-request.js.map +1 -0
  402. package/esm/models/confidence-status-response.d.ts +22 -0
  403. package/esm/models/confidence-status-response.d.ts.map +1 -0
  404. package/esm/models/confidence-status-response.js +30 -0
  405. package/esm/models/confidence-status-response.js.map +1 -0
  406. package/esm/models/delete-examples-request.d.ts +17 -0
  407. package/esm/models/delete-examples-request.d.ts.map +1 -0
  408. package/esm/models/delete-examples-request.js +19 -0
  409. package/esm/models/delete-examples-request.js.map +1 -0
  410. package/esm/models/dispatch-prediction-request.d.ts +33 -0
  411. package/esm/models/dispatch-prediction-request.d.ts.map +1 -0
  412. package/esm/models/dispatch-prediction-request.js +21 -0
  413. package/esm/models/dispatch-prediction-request.js.map +1 -0
  414. package/esm/models/errors/http-client-errors.d.ts +44 -0
  415. package/esm/models/errors/http-client-errors.d.ts.map +1 -0
  416. package/esm/models/errors/http-client-errors.js +56 -0
  417. package/esm/models/errors/http-client-errors.js.map +1 -0
  418. package/esm/models/errors/http-validation-error.d.ts +19 -0
  419. package/esm/models/errors/http-validation-error.d.ts.map +1 -0
  420. package/esm/models/errors/http-validation-error.js +36 -0
  421. package/esm/models/errors/http-validation-error.js.map +1 -0
  422. package/esm/models/errors/index.d.ts +7 -0
  423. package/esm/models/errors/index.d.ts.map +1 -0
  424. package/esm/models/errors/index.js +10 -0
  425. package/esm/models/errors/index.js.map +1 -0
  426. package/esm/models/errors/modaic-client-default-error.d.ts +10 -0
  427. package/esm/models/errors/modaic-client-default-error.d.ts.map +1 -0
  428. package/esm/models/errors/modaic-client-default-error.js +30 -0
  429. package/esm/models/errors/modaic-client-default-error.js.map +1 -0
  430. package/esm/models/errors/modaic-client-error.d.ts +19 -0
  431. package/esm/models/errors/modaic-client-error.d.ts.map +1 -0
  432. package/esm/models/errors/modaic-client-error.js +26 -0
  433. package/esm/models/errors/modaic-client-error.js.map +1 -0
  434. package/esm/models/errors/modaic-default-error.d.ts +10 -0
  435. package/esm/models/errors/modaic-default-error.d.ts.map +1 -0
  436. package/esm/models/errors/modaic-default-error.js +30 -0
  437. package/esm/models/errors/modaic-default-error.js.map +1 -0
  438. package/esm/models/errors/modaic-error.d.ts +19 -0
  439. package/esm/models/errors/modaic-error.d.ts.map +1 -0
  440. package/esm/models/errors/modaic-error.js +26 -0
  441. package/esm/models/errors/modaic-error.js.map +1 -0
  442. package/esm/models/errors/response-validation-error.d.ts +26 -0
  443. package/esm/models/errors/response-validation-error.d.ts.map +1 -0
  444. package/esm/models/errors/response-validation-error.js +37 -0
  445. package/esm/models/errors/response-validation-error.js.map +1 -0
  446. package/esm/models/errors/sdk-validation-error.d.ts +21 -0
  447. package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
  448. package/esm/models/errors/sdk-validation-error.js +52 -0
  449. package/esm/models/errors/sdk-validation-error.js.map +1 -0
  450. package/esm/models/export-examples-request.d.ts +15 -0
  451. package/esm/models/export-examples-request.d.ts.map +1 -0
  452. package/esm/models/export-examples-request.js +17 -0
  453. package/esm/models/export-examples-request.js.map +1 -0
  454. package/esm/models/export-examples-response.d.ts +17 -0
  455. package/esm/models/export-examples-response.d.ts.map +1 -0
  456. package/esm/models/export-examples-response.js +27 -0
  457. package/esm/models/export-examples-response.js.map +1 -0
  458. package/esm/models/field-schema.d.ts +26 -0
  459. package/esm/models/field-schema.d.ts.map +1 -0
  460. package/esm/models/field-schema.js +23 -0
  461. package/esm/models/field-schema.js.map +1 -0
  462. package/esm/models/gepa-job-request.d.ts +21 -0
  463. package/esm/models/gepa-job-request.d.ts.map +1 -0
  464. package/esm/models/gepa-job-request.js +26 -0
  465. package/esm/models/gepa-job-request.js.map +1 -0
  466. package/esm/models/gepa-job-response.d.ts +37 -0
  467. package/esm/models/gepa-job-response.d.ts.map +1 -0
  468. package/esm/models/gepa-job-response.js +44 -0
  469. package/esm/models/gepa-job-response.js.map +1 -0
  470. package/esm/models/gepa-kwargs.d.ts +64 -0
  471. package/esm/models/gepa-kwargs.d.ts.map +1 -0
  472. package/esm/models/gepa-kwargs.js +59 -0
  473. package/esm/models/gepa-kwargs.js.map +1 -0
  474. package/esm/models/get-confidence-request.d.ts +20 -0
  475. package/esm/models/get-confidence-request.d.ts.map +1 -0
  476. package/esm/models/get-confidence-request.js +20 -0
  477. package/esm/models/get-confidence-request.js.map +1 -0
  478. package/esm/models/index.d.ts +33 -0
  479. package/esm/models/index.d.ts.map +1 -0
  480. package/esm/models/index.js +36 -0
  481. package/esm/models/index.js.map +1 -0
  482. package/esm/models/init-arbiter-request.d.ts +23 -0
  483. package/esm/models/init-arbiter-request.d.ts.map +1 -0
  484. package/esm/models/init-arbiter-request.js +23 -0
  485. package/esm/models/init-arbiter-request.js.map +1 -0
  486. package/esm/models/lm.d.ts +18 -0
  487. package/esm/models/lm.d.ts.map +1 -0
  488. package/esm/models/lm.js +13 -0
  489. package/esm/models/lm.js.map +1 -0
  490. package/esm/models/login-request.d.ts +16 -0
  491. package/esm/models/login-request.d.ts.map +1 -0
  492. package/esm/models/login-request.js +14 -0
  493. package/esm/models/login-request.js.map +1 -0
  494. package/esm/models/mfa-verify-request.d.ts +16 -0
  495. package/esm/models/mfa-verify-request.d.ts.map +1 -0
  496. package/esm/models/mfa-verify-request.js +20 -0
  497. package/esm/models/mfa-verify-request.js.map +1 -0
  498. package/esm/models/o-auth-callback-request.d.ts +16 -0
  499. package/esm/models/o-auth-callback-request.d.ts.map +1 -0
  500. package/esm/models/o-auth-callback-request.js +21 -0
  501. package/esm/models/o-auth-callback-request.js.map +1 -0
  502. package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts +12 -0
  503. package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.d.ts.map +1 -0
  504. package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js +18 -0
  505. package/esm/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.js.map +1 -0
  506. package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts +12 -0
  507. package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.d.ts.map +1 -0
  508. package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js +18 -0
  509. package/esm/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.js.map +1 -0
  510. package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts +12 -0
  511. package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.d.ts.map +1 -0
  512. package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js +17 -0
  513. package/esm/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.js.map +1 -0
  514. package/esm/models/operations/check-email-api-v1-user-check-email-get.d.ts +12 -0
  515. package/esm/models/operations/check-email-api-v1-user-check-email-get.d.ts.map +1 -0
  516. package/esm/models/operations/check-email-api-v1-user-check-email-get.js +12 -0
  517. package/esm/models/operations/check-email-api-v1-user-check-email-get.js.map +1 -0
  518. package/esm/models/operations/check-username-api-v1-user-check-username-username-get.d.ts +12 -0
  519. package/esm/models/operations/check-username-api-v1-user-check-username-username-get.d.ts.map +1 -0
  520. package/esm/models/operations/check-username-api-v1-user-check-username-username-get.js +12 -0
  521. package/esm/models/operations/check-username-api-v1-user-check-username-username-get.js.map +1 -0
  522. package/esm/models/operations/download-export-api-v1-examples-export-download-get.d.ts +14 -0
  523. package/esm/models/operations/download-export-api-v1-examples-export-download-get.d.ts.map +1 -0
  524. package/esm/models/operations/download-export-api-v1-examples-export-download-get.js +19 -0
  525. package/esm/models/operations/download-export-api-v1-examples-export-download-get.js.map +1 -0
  526. package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts +12 -0
  527. package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.d.ts.map +1 -0
  528. package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js +18 -0
  529. package/esm/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.js.map +1 -0
  530. package/esm/models/operations/get-arbiter-api-v1-arbiters-get.d.ts +12 -0
  531. package/esm/models/operations/get-arbiter-api-v1-arbiters-get.d.ts.map +1 -0
  532. package/esm/models/operations/get-arbiter-api-v1-arbiters-get.js +12 -0
  533. package/esm/models/operations/get-arbiter-api-v1-arbiters-get.js.map +1 -0
  534. package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts +12 -0
  535. package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.d.ts.map +1 -0
  536. package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.js +12 -0
  537. package/esm/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.js.map +1 -0
  538. package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts +12 -0
  539. package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.d.ts.map +1 -0
  540. package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js +18 -0
  541. package/esm/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.js.map +1 -0
  542. package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts +12 -0
  543. package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.d.ts.map +1 -0
  544. package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js +18 -0
  545. package/esm/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.js.map +1 -0
  546. package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts +14 -0
  547. package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.d.ts.map +1 -0
  548. package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js +13 -0
  549. package/esm/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.js.map +1 -0
  550. package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.d.ts +15 -0
  551. package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.d.ts.map +1 -0
  552. package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.js +17 -0
  553. package/esm/models/operations/get-example-by-id-api-v1-examples-example-id-get.js.map +1 -0
  554. package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.d.ts +14 -0
  555. package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.d.ts.map +1 -0
  556. package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.js +13 -0
  557. package/esm/models/operations/get-graded-count-api-v1-examples-graded-count-get.js.map +1 -0
  558. package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts +12 -0
  559. package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.d.ts.map +1 -0
  560. package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js +17 -0
  561. package/esm/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.js.map +1 -0
  562. package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts +12 -0
  563. package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.d.ts.map +1 -0
  564. package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js +17 -0
  565. package/esm/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.js.map +1 -0
  566. package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts +12 -0
  567. package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.d.ts.map +1 -0
  568. package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js +18 -0
  569. package/esm/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.js.map +1 -0
  570. package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.d.ts +12 -0
  571. package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.d.ts.map +1 -0
  572. package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.js +12 -0
  573. package/esm/models/operations/get-user-by-id-api-v1-user-user-id-get.js.map +1 -0
  574. package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.d.ts +12 -0
  575. package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.d.ts.map +1 -0
  576. package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.js +17 -0
  577. package/esm/models/operations/get-user-by-id-api-v2-users-id-user-id-get.js.map +1 -0
  578. package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.d.ts +12 -0
  579. package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.d.ts.map +1 -0
  580. package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.js +12 -0
  581. package/esm/models/operations/get-user-by-username-api-v1-user-username-username-get.js.map +1 -0
  582. package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts +14 -0
  583. package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.d.ts.map +1 -0
  584. package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js +14 -0
  585. package/esm/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.js.map +1 -0
  586. package/esm/models/operations/index.d.ts +22 -0
  587. package/esm/models/operations/index.d.ts.map +1 -0
  588. package/esm/models/operations/index.js +25 -0
  589. package/esm/models/operations/index.js.map +1 -0
  590. package/esm/models/operations/list-examples-api-v1-examples-get.d.ts +71 -0
  591. package/esm/models/operations/list-examples-api-v1-examples-get.d.ts.map +1 -0
  592. package/esm/models/operations/list-examples-api-v1-examples-get.js +46 -0
  593. package/esm/models/operations/list-examples-api-v1-examples-get.js.map +1 -0
  594. package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.d.ts +18 -0
  595. package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.d.ts.map +1 -0
  596. package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.js +20 -0
  597. package/esm/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.js.map +1 -0
  598. package/esm/models/operations/read-badge-badge-get.d.ts +14 -0
  599. package/esm/models/operations/read-badge-badge-get.d.ts.map +1 -0
  600. package/esm/models/operations/read-badge-badge-get.js +13 -0
  601. package/esm/models/operations/read-badge-badge-get.js.map +1 -0
  602. package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.d.ts +16 -0
  603. package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.d.ts.map +1 -0
  604. package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.js +14 -0
  605. package/esm/models/operations/slack-callback-api-v1-notifications-slack-callback-get.js.map +1 -0
  606. package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts +12 -0
  607. package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.d.ts.map +1 -0
  608. package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js +18 -0
  609. package/esm/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.js.map +1 -0
  610. package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts +12 -0
  611. package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.d.ts.map +1 -0
  612. package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js +18 -0
  613. package/esm/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.js.map +1 -0
  614. package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts +12 -0
  615. package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.d.ts.map +1 -0
  616. package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js +18 -0
  617. package/esm/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.js.map +1 -0
  618. package/esm/models/paginated-page.d.ts +16 -0
  619. package/esm/models/paginated-page.d.ts.map +1 -0
  620. package/esm/models/paginated-page.js +27 -0
  621. package/esm/models/paginated-page.js.map +1 -0
  622. package/esm/models/predict-example-response.d.ts +18 -0
  623. package/esm/models/predict-example-response.d.ts.map +1 -0
  624. package/esm/models/predict-example-response.js +24 -0
  625. package/esm/models/predict-example-response.js.map +1 -0
  626. package/esm/models/predicted-example.d.ts +58 -0
  627. package/esm/models/predicted-example.d.ts.map +1 -0
  628. package/esm/models/predicted-example.js +56 -0
  629. package/esm/models/predicted-example.js.map +1 -0
  630. package/esm/models/prediction-annotation.d.ts +19 -0
  631. package/esm/models/prediction-annotation.d.ts.map +1 -0
  632. package/esm/models/prediction-annotation.js +21 -0
  633. package/esm/models/prediction-annotation.js.map +1 -0
  634. package/esm/models/register-request.d.ts +22 -0
  635. package/esm/models/register-request.d.ts.map +1 -0
  636. package/esm/models/register-request.js +17 -0
  637. package/esm/models/register-request.js.map +1 -0
  638. package/esm/models/security.d.ts +12 -0
  639. package/esm/models/security.d.ts.map +1 -0
  640. package/esm/models/security.js +12 -0
  641. package/esm/models/security.js.map +1 -0
  642. package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.d.ts +21 -0
  643. package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.d.ts.map +1 -0
  644. package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.js +20 -0
  645. package/esm/models/src-api-v1-arbiters-schemas-predict-example-request.js.map +1 -0
  646. package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.d.ts +41 -0
  647. package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.d.ts.map +1 -0
  648. package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.js +28 -0
  649. package/esm/models/src-api-v2-arbiters-schemas-predict-example-request.js.map +1 -0
  650. package/esm/models/update-arbiter-metadata-request.d.ts +18 -0
  651. package/esm/models/update-arbiter-metadata-request.d.ts.map +1 -0
  652. package/esm/models/update-arbiter-metadata-request.js +13 -0
  653. package/esm/models/update-arbiter-metadata-request.js.map +1 -0
  654. package/esm/models/validate-invite-code-request.d.ts +12 -0
  655. package/esm/models/validate-invite-code-request.d.ts.map +1 -0
  656. package/esm/models/validate-invite-code-request.js +12 -0
  657. package/esm/models/validate-invite-code-request.js.map +1 -0
  658. package/esm/models/validation-error.d.ts +22 -0
  659. package/esm/models/validation-error.d.ts.map +1 -0
  660. package/esm/models/validation-error.js +32 -0
  661. package/esm/models/validation-error.js.map +1 -0
  662. package/esm/models/waitlist-request.d.ts +16 -0
  663. package/esm/models/waitlist-request.d.ts.map +1 -0
  664. package/esm/models/waitlist-request.js +14 -0
  665. package/esm/models/waitlist-request.js.map +1 -0
  666. package/esm/primitives/module.d.ts +44 -0
  667. package/esm/primitives/module.d.ts.map +1 -0
  668. package/esm/primitives/module.js +117 -0
  669. package/esm/primitives/module.js.map +1 -0
  670. package/esm/programs/predict.d.ts +65 -0
  671. package/esm/programs/predict.d.ts.map +1 -0
  672. package/esm/programs/predict.js +73 -0
  673. package/esm/programs/predict.js.map +1 -0
  674. package/esm/sdk/index.d.ts +2 -0
  675. package/esm/sdk/index.d.ts.map +1 -0
  676. package/esm/sdk/index.js +5 -0
  677. package/esm/sdk/index.js.map +1 -0
  678. package/esm/sdk/sdk.d.ts +325 -0
  679. package/esm/sdk/sdk.d.ts.map +1 -0
  680. package/esm/sdk/sdk.js +431 -0
  681. package/esm/sdk/sdk.js.map +1 -0
  682. package/esm/sdk/webhooks.d.ts +8 -0
  683. package/esm/sdk/webhooks.d.ts.map +1 -0
  684. package/esm/sdk/webhooks.js +15 -0
  685. package/esm/sdk/webhooks.js.map +1 -0
  686. package/esm/serialization/config.d.ts +79 -0
  687. package/esm/serialization/config.d.ts.map +1 -0
  688. package/esm/serialization/config.js +57 -0
  689. package/esm/serialization/config.js.map +1 -0
  690. package/esm/serialization/naming.d.ts +14 -0
  691. package/esm/serialization/naming.d.ts.map +1 -0
  692. package/esm/serialization/naming.js +21 -0
  693. package/esm/serialization/naming.js.map +1 -0
  694. package/esm/serialization/program.d.ts +45 -0
  695. package/esm/serialization/program.d.ts.map +1 -0
  696. package/esm/serialization/program.js +30 -0
  697. package/esm/serialization/program.js.map +1 -0
  698. package/esm/serialization/zod_schema.d.ts +33 -0
  699. package/esm/serialization/zod_schema.d.ts.map +1 -0
  700. package/esm/serialization/zod_schema.js +269 -0
  701. package/esm/serialization/zod_schema.js.map +1 -0
  702. package/esm/signatures/signature.d.ts +68 -0
  703. package/esm/signatures/signature.d.ts.map +1 -0
  704. package/esm/signatures/signature.js +222 -0
  705. package/esm/signatures/signature.js.map +1 -0
  706. package/esm/signatures/types.d.ts +69 -0
  707. package/esm/signatures/types.d.ts.map +1 -0
  708. package/esm/signatures/types.js +68 -0
  709. package/esm/signatures/types.js.map +1 -0
  710. package/esm/types/async.d.ts +23 -0
  711. package/esm/types/async.d.ts.map +1 -0
  712. package/esm/types/async.js +28 -0
  713. package/esm/types/async.js.map +1 -0
  714. package/esm/types/blobs.d.ts +4 -0
  715. package/esm/types/blobs.d.ts.map +1 -0
  716. package/esm/types/blobs.js +25 -0
  717. package/esm/types/blobs.js.map +1 -0
  718. package/esm/types/const-date-time.d.ts +3 -0
  719. package/esm/types/const-date-time.d.ts.map +1 -0
  720. package/esm/types/const-date-time.js +10 -0
  721. package/esm/types/const-date-time.js.map +1 -0
  722. package/esm/types/default-to-zero-value.d.ts +12 -0
  723. package/esm/types/default-to-zero-value.d.ts.map +1 -0
  724. package/esm/types/default-to-zero-value.js +31 -0
  725. package/esm/types/default-to-zero-value.js.map +1 -0
  726. package/esm/types/enums.d.ts +9 -0
  727. package/esm/types/enums.d.ts.map +1 -0
  728. package/esm/types/enums.js +27 -0
  729. package/esm/types/enums.js.map +1 -0
  730. package/esm/types/fp.d.ts +31 -0
  731. package/esm/types/fp.d.ts.map +1 -0
  732. package/esm/types/fp.js +31 -0
  733. package/esm/types/fp.js.map +1 -0
  734. package/esm/types/index.d.ts +10 -0
  735. package/esm/types/index.d.ts.map +1 -0
  736. package/esm/types/index.js +10 -0
  737. package/esm/types/index.js.map +1 -0
  738. package/esm/types/operations.d.ts +27 -0
  739. package/esm/types/operations.d.ts.map +1 -0
  740. package/esm/types/operations.js +77 -0
  741. package/esm/types/operations.js.map +1 -0
  742. package/esm/types/primitives.d.ts +9 -0
  743. package/esm/types/primitives.d.ts.map +1 -0
  744. package/esm/types/primitives.js +109 -0
  745. package/esm/types/primitives.js.map +1 -0
  746. package/esm/types/rfcdate.d.ts +21 -0
  747. package/esm/types/rfcdate.d.ts.map +1 -0
  748. package/esm/types/rfcdate.js +43 -0
  749. package/esm/types/rfcdate.js.map +1 -0
  750. package/esm/types/smart-union.d.ts +7 -0
  751. package/esm/types/smart-union.d.ts.map +1 -0
  752. package/esm/types/smart-union.js +117 -0
  753. package/esm/types/smart-union.js.map +1 -0
  754. package/esm/types/streams.d.ts +2 -0
  755. package/esm/types/streams.d.ts.map +1 -0
  756. package/esm/types/streams.js +15 -0
  757. package/esm/types/streams.js.map +1 -0
  758. package/esm/types/unrecognized.d.ts +16 -0
  759. package/esm/types/unrecognized.d.ts.map +1 -0
  760. package/esm/types/unrecognized.js +31 -0
  761. package/esm/types/unrecognized.js.map +1 -0
  762. package/jsr.json +27 -0
  763. package/package.json +77 -0
  764. package/src/core.ts +13 -0
  765. package/src/funcs/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.ts +189 -0
  766. package/src/funcs/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.ts +187 -0
  767. package/src/funcs/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.ts +187 -0
  768. package/src/funcs/create-chat-completion-api-v1-arbiters-chat-completions-post.ts +169 -0
  769. package/src/funcs/create-chat-completion-api-v1-chat-completions-post.ts +150 -0
  770. package/src/funcs/create-prediction-api-v1-arbiters-predictions-post.ts +173 -0
  771. package/src/funcs/create-prediction-api-v2-arbiters-predictions-post.ts +181 -0
  772. package/src/funcs/delete-examples-api-v1-examples-delete.ts +172 -0
  773. package/src/funcs/dispatch-prediction-api-v1-arbiters-predictions-dispatch-post.ts +170 -0
  774. package/src/funcs/download-export-api-v1-examples-export-download-get.ts +182 -0
  775. package/src/funcs/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.ts +192 -0
  776. package/src/funcs/export-examples-api-v1-examples-export-post.ts +172 -0
  777. package/src/funcs/get-arbiter-api-v1-arbiters-get.ts +177 -0
  778. package/src/funcs/get-arbiter-schema-output-api-v1-arbiters-schema-get.ts +178 -0
  779. package/src/funcs/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.ts +198 -0
  780. package/src/funcs/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.ts +187 -0
  781. package/src/funcs/get-distinct-hashes-api-v1-examples-distinct-hashes-get.ts +183 -0
  782. package/src/funcs/get-example-by-id-api-v1-examples-example-id-get.ts +180 -0
  783. package/src/funcs/get-graded-count-api-v1-examples-graded-count-get.ts +182 -0
  784. package/src/funcs/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.ts +185 -0
  785. package/src/funcs/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.ts +189 -0
  786. package/src/funcs/get-prediction-confidence-api-v1-arbiters-predictions-confidence-post.ts +179 -0
  787. package/src/funcs/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.ts +191 -0
  788. package/src/funcs/get-supported-models-api-v1-arbiters-supported-models-get.ts +141 -0
  789. package/src/funcs/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.ts +185 -0
  790. package/src/funcs/ingest-examples-api-v1-examples-post.ts +150 -0
  791. package/src/funcs/init-arbiter-api-v1-arbiters-post.ts +169 -0
  792. package/src/funcs/list-examples-api-v1-examples-get.ts +193 -0
  793. package/src/funcs/patch-example-api-v1-examples-example-id-annotation-patch.ts +185 -0
  794. package/src/funcs/start-batch-predictions-job-api-v1-jobs-batch-predictions-post.ts +190 -0
  795. package/src/funcs/start-confidence-score-job-api-v1-jobs-confidence-scores-post.ts +174 -0
  796. package/src/funcs/start-optimization-job-api-v1-jobs-gepa-post.ts +177 -0
  797. package/src/funcs/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts +201 -0
  798. package/src/funcs/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.ts +187 -0
  799. package/src/funcs/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.ts +198 -0
  800. package/src/funcs/update-arbiter-metadata-api-v1-arbiters-metadata-patch.ts +173 -0
  801. package/src/hooks/hooks.ts +129 -0
  802. package/src/hooks/index.ts +6 -0
  803. package/src/hooks/types.ts +107 -0
  804. package/src/index.ts +26 -0
  805. package/src/lib/base64.ts +39 -0
  806. package/src/lib/config.ts +64 -0
  807. package/src/lib/dlv.ts +53 -0
  808. package/src/lib/encodings.ts +529 -0
  809. package/src/lib/env.ts +57 -0
  810. package/src/lib/files.ts +104 -0
  811. package/src/lib/http.ts +323 -0
  812. package/src/lib/is-plain-object.ts +43 -0
  813. package/src/lib/logger.ts +9 -0
  814. package/src/lib/matchers.ts +356 -0
  815. package/src/lib/primitives.ts +150 -0
  816. package/src/lib/retries.ts +218 -0
  817. package/src/lib/schemas.ts +94 -0
  818. package/src/lib/sdks.ts +405 -0
  819. package/src/lib/security.ts +275 -0
  820. package/src/lib/url.ts +35 -0
  821. package/src/modaic/arbiter.ts +252 -0
  822. package/src/modaic/git.ts +267 -0
  823. package/src/modaic/index.ts +61 -0
  824. package/src/modaic/runtime.ts +107 -0
  825. package/src/modaic/serialization.ts +592 -0
  826. package/src/modaic/signatures.ts +398 -0
  827. package/src/models/annotate-example-request.ts +38 -0
  828. package/src/models/arbiter-request.ts +46 -0
  829. package/src/models/batch-arbiter.ts +38 -0
  830. package/src/models/batch-example.ts +75 -0
  831. package/src/models/batch-predictions-job-request.ts +68 -0
  832. package/src/models/chat-completion-choice.ts +44 -0
  833. package/src/models/chat-completion-request.ts +94 -0
  834. package/src/models/chat-completion-response.ts +59 -0
  835. package/src/models/chat-message.ts +73 -0
  836. package/src/models/completion-usage.ts +45 -0
  837. package/src/models/confidence-score-job-request.ts +38 -0
  838. package/src/models/confidence-status-response.ts +62 -0
  839. package/src/models/delete-examples-request.ts +45 -0
  840. package/src/models/dispatch-prediction-request.ts +58 -0
  841. package/src/models/errors/http-client-errors.ts +62 -0
  842. package/src/models/errors/http-validation-error.ts +53 -0
  843. package/src/models/errors/index.ts +10 -0
  844. package/src/models/errors/modaic-client-default-error.ts +40 -0
  845. package/src/models/errors/modaic-client-error.ts +35 -0
  846. package/src/models/errors/response-validation-error.ts +50 -0
  847. package/src/models/errors/sdk-validation-error.ts +54 -0
  848. package/src/models/export-examples-request.ts +41 -0
  849. package/src/models/export-examples-response.ts +54 -0
  850. package/src/models/field-schema.ts +50 -0
  851. package/src/models/gepa-job-request.ts +55 -0
  852. package/src/models/gepa-job-response.ts +79 -0
  853. package/src/models/gepa-kwargs.ts +122 -0
  854. package/src/models/get-confidence-request.ts +45 -0
  855. package/src/models/index.ts +36 -0
  856. package/src/models/init-arbiter-request.ts +58 -0
  857. package/src/models/lm.ts +26 -0
  858. package/src/models/operations/cancel-batch-predictions-job-api-v1-jobs-batch-predictions-job-id-delete.ts +45 -0
  859. package/src/models/operations/cancel-confidence-score-job-api-v1-jobs-confidence-scores-job-id-delete.ts +45 -0
  860. package/src/models/operations/cancel-optimization-job-api-v1-jobs-gepa-job-id-delete.ts +42 -0
  861. package/src/models/operations/download-export-api-v1-examples-export-download-get.ts +46 -0
  862. package/src/models/operations/enqueue-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-post.ts +45 -0
  863. package/src/models/operations/get-arbiter-api-v1-arbiters-get.ts +32 -0
  864. package/src/models/operations/get-arbiter-schema-output-api-v1-arbiters-schema-get.ts +34 -0
  865. package/src/models/operations/get-batch-predictions-job-status-api-v1-jobs-batch-predictions-job-id-get.ts +45 -0
  866. package/src/models/operations/get-confidence-score-job-status-api-v1-jobs-confidence-scores-job-id-get.ts +45 -0
  867. package/src/models/operations/get-distinct-hashes-api-v1-examples-distinct-hashes-get.ts +37 -0
  868. package/src/models/operations/get-example-by-id-api-v1-examples-example-id-get.ts +45 -0
  869. package/src/models/operations/get-graded-count-api-v1-examples-graded-count-get.ts +37 -0
  870. package/src/models/operations/get-optimization-job-logs-api-v1-jobs-gepa-job-id-logs-get.ts +42 -0
  871. package/src/models/operations/get-optimization-job-status-api-v1-jobs-gepa-job-id-get.ts +42 -0
  872. package/src/models/operations/get-prediction-confidence-status-api-v1-arbiters-predictions-prediction-id-confidence-get.ts +45 -0
  873. package/src/models/operations/has-uncalibrated-predictions-api-v1-examples-has-uncalibrated-get.ts +37 -0
  874. package/src/models/operations/index.ts +25 -0
  875. package/src/models/operations/list-examples-api-v1-examples-get.ts +121 -0
  876. package/src/models/operations/patch-example-api-v1-examples-example-id-annotation-patch.ts +49 -0
  877. package/src/models/operations/stream-batch-predictions-events-api-v1-jobs-batch-predictions-job-id-events-get.ts +45 -0
  878. package/src/models/operations/stream-batch-predictions-results-api-v1-jobs-batch-predictions-job-id-results-get.ts +45 -0
  879. package/src/models/operations/stream-prediction-confidence-api-v1-arbiters-predictions-prediction-id-confidence-stream-get.ts +45 -0
  880. package/src/models/paginated-page.ts +55 -0
  881. package/src/models/predict-example-response.ts +48 -0
  882. package/src/models/predicted-example.ts +124 -0
  883. package/src/models/prediction-annotation.ts +49 -0
  884. package/src/models/security.ts +26 -0
  885. package/src/models/src-api-v1-arbiters-schemas-predict-example-request.ts +53 -0
  886. package/src/models/src-api-v2-arbiters-schemas-predict-example-request.ts +74 -0
  887. package/src/models/update-arbiter-metadata-request.ts +35 -0
  888. package/src/models/validation-error.ts +75 -0
  889. package/src/sdk/index.ts +5 -0
  890. package/src/sdk/sdk.ts +750 -0
  891. package/src/types/async.ts +69 -0
  892. package/src/types/blobs.ts +33 -0
  893. package/src/types/const-date-time.ts +15 -0
  894. package/src/types/default-to-zero-value.ts +33 -0
  895. package/src/types/enums.ts +45 -0
  896. package/src/types/fp.ts +50 -0
  897. package/src/types/index.ts +13 -0
  898. package/src/types/operations.ts +105 -0
  899. package/src/types/primitives.ts +140 -0
  900. package/src/types/rfcdate.ts +54 -0
  901. package/src/types/smart-union.ts +153 -0
  902. package/src/types/streams.ts +21 -0
  903. package/src/types/unrecognized.ts +35 -0
@@ -0,0 +1,173 @@
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 { encodeJSON } 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 models from "../models/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Update Arbiter Metadata
32
+ *
33
+ * @remarks
34
+ * Patch YAML frontmatter metadata in the arbiter's README.md.
35
+ */
36
+ export function updateArbiterMetadataApiV1ArbitersMetadataPatch(
37
+ client: ModaicClientCore,
38
+ request: models.UpdateArbiterMetadataRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ any,
43
+ | errors.HTTPValidationError
44
+ | ModaicClientError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError
52
+ >
53
+ > {
54
+ return new APIPromise($do(
55
+ client,
56
+ request,
57
+ options,
58
+ ));
59
+ }
60
+
61
+ async function $do(
62
+ client: ModaicClientCore,
63
+ request: models.UpdateArbiterMetadataRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<
66
+ [
67
+ Result<
68
+ any,
69
+ | errors.HTTPValidationError
70
+ | ModaicClientError
71
+ | ResponseValidationError
72
+ | ConnectionError
73
+ | RequestAbortedError
74
+ | RequestTimeoutError
75
+ | InvalidRequestError
76
+ | UnexpectedClientError
77
+ | SDKValidationError
78
+ >,
79
+ APICall,
80
+ ]
81
+ > {
82
+ const parsed = safeParse(
83
+ request,
84
+ (value) =>
85
+ z.parse(models.UpdateArbiterMetadataRequest$outboundSchema, value),
86
+ "Input validation failed",
87
+ );
88
+ if (!parsed.ok) {
89
+ return [parsed, { status: "invalid" }];
90
+ }
91
+ const payload = parsed.value;
92
+ const body = encodeJSON("body", payload, { explode: true });
93
+
94
+ const path = pathToFunc("/api/v1/arbiters/metadata")();
95
+
96
+ const headers = new Headers(compactMap({
97
+ "Content-Type": "application/json",
98
+ Accept: "application/json",
99
+ }));
100
+
101
+ const secConfig = await extractSecurity(client._options.token);
102
+ const securityInput = secConfig == null ? {} : { token: secConfig };
103
+ const requestSecurity = resolveGlobalSecurity(securityInput);
104
+
105
+ const context = {
106
+ options: client._options,
107
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
108
+ operationID: "update_arbiter_metadata_api_v1_arbiters_metadata_patch",
109
+ oAuth2Scopes: null,
110
+
111
+ resolvedSecurity: requestSecurity,
112
+
113
+ securitySource: client._options.token,
114
+ retryConfig: options?.retries
115
+ || client._options.retryConfig
116
+ || { strategy: "none" },
117
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
118
+ };
119
+
120
+ const requestRes = client._createRequest(context, {
121
+ security: requestSecurity,
122
+ method: "PATCH",
123
+ baseURL: options?.serverURL,
124
+ path: path,
125
+ headers: headers,
126
+ body: body,
127
+ userAgent: client._options.userAgent,
128
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
129
+ }, options);
130
+ if (!requestRes.ok) {
131
+ return [requestRes, { status: "invalid" }];
132
+ }
133
+ const req = requestRes.value;
134
+
135
+ const doResult = await client._do(req, {
136
+ context,
137
+ isErrorStatusCode: (statusCode: number) =>
138
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
139
+ retryConfig: context.retryConfig,
140
+ retryCodes: context.retryCodes,
141
+ });
142
+ if (!doResult.ok) {
143
+ return [doResult, { status: "request-error", request: req }];
144
+ }
145
+ const response = doResult.value;
146
+
147
+ const responseFields = {
148
+ HttpMeta: { Response: response, Request: req },
149
+ };
150
+
151
+ const [result] = await M.match<
152
+ any,
153
+ | errors.HTTPValidationError
154
+ | ModaicClientError
155
+ | ResponseValidationError
156
+ | ConnectionError
157
+ | RequestAbortedError
158
+ | RequestTimeoutError
159
+ | InvalidRequestError
160
+ | UnexpectedClientError
161
+ | SDKValidationError
162
+ >(
163
+ M.json(200, z.any()),
164
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
165
+ M.fail("4XX"),
166
+ M.fail("5XX"),
167
+ )(response, req, { extraFields: responseFields });
168
+ if (!result.ok) {
169
+ return [result, { status: "complete", request: req, response }];
170
+ }
171
+
172
+ return [result, { status: "complete", request: req, response }];
173
+ }
@@ -0,0 +1,129 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKOptions } from "../lib/config.js";
6
+ import { RequestInput } from "../lib/http.js";
7
+ import {
8
+ AfterErrorContext,
9
+ AfterErrorHook,
10
+ AfterSuccessContext,
11
+ AfterSuccessHook,
12
+ BeforeCreateRequestContext,
13
+ BeforeCreateRequestHook,
14
+ BeforeRequestContext,
15
+ BeforeRequestHook,
16
+ Hook,
17
+ Hooks,
18
+ SDKInitHook,
19
+ } from "./types.js";
20
+
21
+ export class SDKHooks implements Hooks {
22
+ sdkInitHooks: SDKInitHook[] = [];
23
+ beforeCreateRequestHooks: BeforeCreateRequestHook[] = [];
24
+ beforeRequestHooks: BeforeRequestHook[] = [];
25
+ afterSuccessHooks: AfterSuccessHook[] = [];
26
+ afterErrorHooks: AfterErrorHook[] = [];
27
+
28
+ constructor() {
29
+ const presetHooks: Array<Hook> = [];
30
+
31
+ for (const hook of presetHooks) {
32
+ if ("sdkInit" in hook) {
33
+ this.registerSDKInitHook(hook);
34
+ }
35
+ if ("beforeCreateRequest" in hook) {
36
+ this.registerBeforeCreateRequestHook(hook);
37
+ }
38
+ if ("beforeRequest" in hook) {
39
+ this.registerBeforeRequestHook(hook);
40
+ }
41
+ if ("afterSuccess" in hook) {
42
+ this.registerAfterSuccessHook(hook);
43
+ }
44
+ if ("afterError" in hook) {
45
+ this.registerAfterErrorHook(hook);
46
+ }
47
+ }
48
+ }
49
+
50
+ registerSDKInitHook(hook: SDKInitHook) {
51
+ this.sdkInitHooks.push(hook);
52
+ }
53
+
54
+ registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook) {
55
+ this.beforeCreateRequestHooks.push(hook);
56
+ }
57
+
58
+ registerBeforeRequestHook(hook: BeforeRequestHook) {
59
+ this.beforeRequestHooks.push(hook);
60
+ }
61
+
62
+ registerAfterSuccessHook(hook: AfterSuccessHook) {
63
+ this.afterSuccessHooks.push(hook);
64
+ }
65
+
66
+ registerAfterErrorHook(hook: AfterErrorHook) {
67
+ this.afterErrorHooks.push(hook);
68
+ }
69
+
70
+ sdkInit(opts: SDKOptions): SDKOptions {
71
+ return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts);
72
+ }
73
+
74
+ beforeCreateRequest(
75
+ hookCtx: BeforeCreateRequestContext,
76
+ input: RequestInput,
77
+ ): RequestInput {
78
+ let inp = input;
79
+
80
+ for (const hook of this.beforeCreateRequestHooks) {
81
+ inp = hook.beforeCreateRequest(hookCtx, inp);
82
+ }
83
+
84
+ return inp;
85
+ }
86
+
87
+ async beforeRequest(
88
+ hookCtx: BeforeRequestContext,
89
+ request: Request,
90
+ ): Promise<Request> {
91
+ let req = request;
92
+
93
+ for (const hook of this.beforeRequestHooks) {
94
+ req = await hook.beforeRequest(hookCtx, req);
95
+ }
96
+
97
+ return req;
98
+ }
99
+
100
+ async afterSuccess(
101
+ hookCtx: AfterSuccessContext,
102
+ response: Response,
103
+ ): Promise<Response> {
104
+ let res = response;
105
+
106
+ for (const hook of this.afterSuccessHooks) {
107
+ res = await hook.afterSuccess(hookCtx, res);
108
+ }
109
+
110
+ return res;
111
+ }
112
+
113
+ async afterError(
114
+ hookCtx: AfterErrorContext,
115
+ response: Response | null,
116
+ error: unknown,
117
+ ): Promise<{ response: Response | null; error: unknown }> {
118
+ let res = response;
119
+ let err = error;
120
+
121
+ for (const hook of this.afterErrorHooks) {
122
+ const result = await hook.afterError(hookCtx, res, err);
123
+ res = result.response;
124
+ err = result.error;
125
+ }
126
+
127
+ return { response: res, error: err };
128
+ }
129
+ }
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ export * from "./hooks.js";
6
+ export * from "./types.js";
@@ -0,0 +1,107 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKOptions } from "../lib/config.js";
6
+ import { RequestInput } from "../lib/http.js";
7
+ import { RetryConfig } from "../lib/retries.js";
8
+ import { SecurityState } from "../lib/security.js";
9
+
10
+ export type HookContext = {
11
+ baseURL: string | URL;
12
+ operationID: string;
13
+ oAuth2Scopes: string[] | null;
14
+ securitySource?: any | (() => Promise<any>);
15
+ retryConfig: RetryConfig;
16
+ resolvedSecurity: SecurityState | null;
17
+ options: SDKOptions;
18
+ };
19
+
20
+ export type Awaitable<T> = T | Promise<T>;
21
+
22
+ export type BeforeCreateRequestContext = HookContext & {};
23
+ export type BeforeRequestContext = HookContext & {};
24
+ export type AfterSuccessContext = HookContext & {};
25
+ export type AfterErrorContext = HookContext & {};
26
+
27
+ /**
28
+ * SDKInitHook is called when the SDK is initializing. The
29
+ * hook can return a new baseURL and HTTP client to be used by the SDK.
30
+ */
31
+ export interface SDKInitHook {
32
+ sdkInit: (opts: SDKOptions) => SDKOptions;
33
+ }
34
+
35
+ export interface BeforeCreateRequestHook {
36
+ /**
37
+ * A hook that is called before the SDK creates a `Request` object. The hook
38
+ * can modify how a request is constructed since certain modifications, like
39
+ * changing the request URL, cannot be done on a request object directly.
40
+ */
41
+ beforeCreateRequest: (
42
+ hookCtx: BeforeCreateRequestContext,
43
+ input: RequestInput,
44
+ ) => RequestInput;
45
+ }
46
+
47
+ export interface BeforeRequestHook {
48
+ /**
49
+ * A hook that is called before the SDK sends a request. The hook can
50
+ * introduce instrumentation code such as logging, tracing and metrics or
51
+ * replace the request before it is sent or throw an error to stop the
52
+ * request from being sent.
53
+ */
54
+ beforeRequest: (
55
+ hookCtx: BeforeRequestContext,
56
+ request: Request,
57
+ ) => Awaitable<Request>;
58
+ }
59
+
60
+ export interface AfterSuccessHook {
61
+ /**
62
+ * A hook that is called after the SDK receives a response. The hook can
63
+ * introduce instrumentation code such as logging, tracing and metrics or
64
+ * modify the response before it is handled or throw an error to stop the
65
+ * response from being handled.
66
+ */
67
+ afterSuccess: (
68
+ hookCtx: AfterSuccessContext,
69
+ response: Response,
70
+ ) => Awaitable<Response>;
71
+ }
72
+
73
+ export interface AfterErrorHook {
74
+ /**
75
+ * A hook that is called after the SDK encounters an error, or a
76
+ * non-successful response. The hook can introduce instrumentation code such
77
+ * as logging, tracing and metrics or modify the response or error values.
78
+ */
79
+ afterError: (
80
+ hookCtx: AfterErrorContext,
81
+ response: Response | null,
82
+ error: unknown,
83
+ ) => Awaitable<{
84
+ response: Response | null;
85
+ error: unknown;
86
+ }>;
87
+ }
88
+
89
+ export interface Hooks {
90
+ /** Registers a hook to be used by the SDK for initialization event. */
91
+ registerSDKInitHook(hook: SDKInitHook): void;
92
+ /** Registers a hook to be used by the SDK for to modify `Request` construction. */
93
+ registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void;
94
+ /** Registers a hook to be used by the SDK for the before request event. */
95
+ registerBeforeRequestHook(hook: BeforeRequestHook): void;
96
+ /** Registers a hook to be used by the SDK for the after success event. */
97
+ registerAfterSuccessHook(hook: AfterSuccessHook): void;
98
+ /** Registers a hook to be used by the SDK for the after error event. */
99
+ registerAfterErrorHook(hook: AfterErrorHook): void;
100
+ }
101
+
102
+ export type Hook =
103
+ | SDKInitHook
104
+ | BeforeCreateRequestHook
105
+ | BeforeRequestHook
106
+ | AfterSuccessHook
107
+ | AfterErrorHook;
package/src/index.ts ADDED
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Package root barrel for `modaic`.
3
+ *
4
+ * NOT regenerated — listed in `.genignore` so Speakeasy leaves it alone. It
5
+ * combines the two halves of the package:
6
+ * 1. the generated Speakeasy REST SDK (ModaicClient, HTTPClient, SDKOptions, …)
7
+ * 2. the hand-written modaic library layer (Arbiter, Signature, the canonical
8
+ * config.json / program.json serialization, git + API clients).
9
+ *
10
+ * The generated barrel below does not export `ModaicError` (the SDK's HTTP
11
+ * transport base error is `ModaicClientError`, on the `modaic/models/errors`
12
+ * subpath), so this `ModaicError` — re-exported from ./modaic — is unambiguous.
13
+ *
14
+ * If the generated SDK ever changes its root exports, re-sync the lines below
15
+ * with a fresh generation, keeping the final `./modaic/index.js` re-export.
16
+ */
17
+
18
+ // --- generated Speakeasy SDK ---
19
+ export * from "./lib/config.js";
20
+ export * as files from "./lib/files.js";
21
+ export { HTTPClient } from "./lib/http.js";
22
+ export type { Fetcher, HTTPClientOptions } from "./lib/http.js";
23
+ export * from "./sdk/sdk.js";
24
+
25
+ // --- hand-written modaic library layer ---
26
+ export * from "./modaic/index.js";
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export function bytesToBase64(u8arr: Uint8Array): string {
8
+ return btoa(String.fromCodePoint(...u8arr));
9
+ }
10
+
11
+ export function bytesFromBase64(encoded: string): Uint8Array {
12
+ return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
13
+ }
14
+
15
+ export function stringToBytes(str: string): Uint8Array {
16
+ return new TextEncoder().encode(str);
17
+ }
18
+
19
+ export function stringFromBytes(u8arr: Uint8Array): string {
20
+ return new TextDecoder().decode(u8arr);
21
+ }
22
+
23
+ export function stringToBase64(str: string): string {
24
+ return bytesToBase64(stringToBytes(str));
25
+ }
26
+
27
+ export function stringFromBase64(b64str: string): string {
28
+ return stringFromBytes(bytesFromBase64(b64str));
29
+ }
30
+
31
+ export const zodOutbound = z.union([
32
+ z.custom<Uint8Array>(x => x instanceof Uint8Array),
33
+ z.pipe(z.string(), z.transform(stringToBytes)),
34
+ ]);
35
+
36
+ export const zodInbound = z.union([
37
+ z.custom<Uint8Array>(x => x instanceof Uint8Array),
38
+ z.pipe(z.string(), z.transform(bytesFromBase64)),
39
+ ]);
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { HTTPClient } from "./http.js";
6
+ import { Logger } from "./logger.js";
7
+ import { RetryConfig } from "./retries.js";
8
+ import { Params, pathToFunc } from "./url.js";
9
+
10
+ /**
11
+ * Contains the list of servers available to the SDK
12
+ */
13
+ export const ServerList = [
14
+ "https://api.modaic.dev",
15
+ ] as const;
16
+
17
+ export type SDKOptions = {
18
+ token?: string | (() => Promise<string>) | undefined;
19
+
20
+ httpClient?: HTTPClient;
21
+ /**
22
+ * Allows overriding the default server used by the SDK
23
+ */
24
+ serverIdx?: number | undefined;
25
+ /**
26
+ * Allows overriding the default server URL used by the SDK
27
+ */
28
+ serverURL?: string | undefined;
29
+ /**
30
+ * Allows overriding the default user agent used by the SDK
31
+ */
32
+ userAgent?: string | undefined;
33
+ /**
34
+ * Allows overriding the default retry config used by the SDK
35
+ */
36
+ retryConfig?: RetryConfig;
37
+ timeoutMs?: number;
38
+ debugLogger?: Logger;
39
+ };
40
+
41
+ export function serverURLFromOptions(options: SDKOptions): URL | null {
42
+ let serverURL = options.serverURL;
43
+
44
+ const params: Params = {};
45
+
46
+ if (!serverURL) {
47
+ const serverIdx = options.serverIdx ?? 0;
48
+ if (serverIdx < 0 || serverIdx >= ServerList.length) {
49
+ throw new Error(`Invalid server index ${serverIdx}`);
50
+ }
51
+ serverURL = ServerList[serverIdx] || "";
52
+ }
53
+
54
+ const u = pathToFunc(serverURL)(params);
55
+ return new URL(u);
56
+ }
57
+
58
+ export const SDK_METADATA = {
59
+ language: "typescript",
60
+ openapiDocVersion: "1.0.0",
61
+ sdkVersion: "0.1.3",
62
+ genVersion: "2.893.0",
63
+ userAgent: "speakeasy-sdk/typescript 0.1.3 2.893.0 1.0.0 modaic",
64
+ } as const;
package/src/lib/dlv.ts ADDED
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ /*
6
+ MIT License
7
+
8
+ Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
11
+ this software and associated documentation files (the "Software"), to deal in
12
+ the Software without restriction, including without limitation the rights to
13
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
+ the Software, and to permit persons to whom the Software is furnished to do so,
15
+ subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
+ */
27
+
28
+ /**
29
+ * @param obj The object to walk
30
+ * @param key The key path to walk the object with
31
+ * @param def A default value to return if the result is undefined
32
+ *
33
+ * @example
34
+ * dlv(obj, "a.b.c.d")
35
+ * @example
36
+ * dlv(object, ["a", "b", "c", "d"])
37
+ * @example
38
+ * dlv(object, "foo.bar.baz", "Hello, default value!")
39
+ */
40
+ export function dlv<T = any>(
41
+ obj: any,
42
+ key: string | string[],
43
+ def?: T,
44
+ p?: number,
45
+ undef?: never,
46
+ ): T | undefined {
47
+ key = Array.isArray(key) ? key : key.split(".");
48
+ for (p = 0; p < key.length; p++) {
49
+ const k = key[p];
50
+ obj = k != null && obj ? obj[k] : undef;
51
+ }
52
+ return obj === undef ? def : obj;
53
+ }