@kittycad/lib 2.0.47 → 3.0.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 (348) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/__tests__/gen/api-calls-list_api_calls.test.d.ts +1 -1
  4. package/dist/types/__tests__/gen/api-calls-list_api_calls.test.d.ts.map +1 -1
  5. package/dist/types/__tests__/gen/api-calls-list_api_calls_for_user.test.d.ts +1 -1
  6. package/dist/types/__tests__/gen/api-calls-list_api_calls_for_user.test.d.ts.map +1 -1
  7. package/dist/types/__tests__/gen/api-calls-list_async_operations.test.d.ts +1 -1
  8. package/dist/types/__tests__/gen/api-calls-list_async_operations.test.d.ts.map +1 -1
  9. package/dist/types/__tests__/gen/api-calls-org_list_api_calls.test.d.ts +1 -1
  10. package/dist/types/__tests__/gen/api-calls-org_list_api_calls.test.d.ts.map +1 -1
  11. package/dist/types/__tests__/gen/api-calls-user_list_api_calls.test.d.ts +1 -1
  12. package/dist/types/__tests__/gen/api-calls-user_list_api_calls.test.d.ts.map +1 -1
  13. package/dist/types/__tests__/gen/api-tokens-list_api_tokens_for_user.test.d.ts +1 -1
  14. package/dist/types/__tests__/gen/api-tokens-list_api_tokens_for_user.test.d.ts.map +1 -1
  15. package/dist/types/__tests__/gen/ml-list_conversations_for_user.test.d.ts +1 -1
  16. package/dist/types/__tests__/gen/ml-list_conversations_for_user.test.d.ts.map +1 -1
  17. package/dist/types/__tests__/gen/ml-list_ml_prompts.test.d.ts +1 -1
  18. package/dist/types/__tests__/gen/ml-list_ml_prompts.test.d.ts.map +1 -1
  19. package/dist/types/__tests__/gen/ml-list_text_to_cad_models_for_user.test.d.ts +1 -1
  20. package/dist/types/__tests__/gen/ml-list_text_to_cad_models_for_user.test.d.ts.map +1 -1
  21. package/dist/types/__tests__/gen/orgs-get_org_shortlinks.test.d.ts +1 -1
  22. package/dist/types/__tests__/gen/orgs-get_org_shortlinks.test.d.ts.map +1 -1
  23. package/dist/types/__tests__/gen/orgs-list_org_members.test.d.ts +1 -1
  24. package/dist/types/__tests__/gen/orgs-list_org_members.test.d.ts.map +1 -1
  25. package/dist/types/__tests__/gen/orgs-list_orgs.test.d.ts +1 -1
  26. package/dist/types/__tests__/gen/orgs-list_orgs.test.d.ts.map +1 -1
  27. package/dist/types/__tests__/gen/service-accounts-list_service_accounts_for_org.test.d.ts +1 -1
  28. package/dist/types/__tests__/gen/service-accounts-list_service_accounts_for_org.test.d.ts.map +1 -1
  29. package/dist/types/__tests__/gen/users-get_user_shortlinks.test.d.ts +1 -1
  30. package/dist/types/__tests__/gen/users-get_user_shortlinks.test.d.ts.map +1 -1
  31. package/dist/types/__tests__/gen/users-list_users.test.d.ts +1 -1
  32. package/dist/types/__tests__/gen/users-list_users.test.d.ts.map +1 -1
  33. package/dist/types/__tests__/gen/users-list_users_extended.test.d.ts +1 -1
  34. package/dist/types/__tests__/gen/users-list_users_extended.test.d.ts.map +1 -1
  35. package/dist/types/src/api/api-calls/get_api_call.d.ts +22 -4
  36. package/dist/types/src/api/api-calls/get_api_call.d.ts.map +1 -1
  37. package/dist/types/src/api/api-calls/get_api_call_for_org.d.ts +18 -4
  38. package/dist/types/src/api/api-calls/get_api_call_for_org.d.ts.map +1 -1
  39. package/dist/types/src/api/api-calls/get_api_call_for_user.d.ts +18 -4
  40. package/dist/types/src/api/api-calls/get_api_call_for_user.d.ts.map +1 -1
  41. package/dist/types/src/api/api-calls/get_api_call_metrics.d.ts +19 -5
  42. package/dist/types/src/api/api-calls/get_api_call_metrics.d.ts.map +1 -1
  43. package/dist/types/src/api/api-calls/get_async_operation.d.ts +24 -4
  44. package/dist/types/src/api/api-calls/get_async_operation.d.ts.map +1 -1
  45. package/dist/types/src/api/api-calls/list_api_calls.d.ts +23 -5
  46. package/dist/types/src/api/api-calls/list_api_calls.d.ts.map +1 -1
  47. package/dist/types/src/api/api-calls/list_api_calls_for_user.d.ts +31 -6
  48. package/dist/types/src/api/api-calls/list_api_calls_for_user.d.ts.map +1 -1
  49. package/dist/types/src/api/api-calls/list_async_operations.d.ts +27 -6
  50. package/dist/types/src/api/api-calls/list_async_operations.d.ts.map +1 -1
  51. package/dist/types/src/api/api-calls/org_list_api_calls.d.ts +27 -5
  52. package/dist/types/src/api/api-calls/org_list_api_calls.d.ts.map +1 -1
  53. package/dist/types/src/api/api-calls/user_list_api_calls.d.ts +25 -5
  54. package/dist/types/src/api/api-calls/user_list_api_calls.d.ts.map +1 -1
  55. package/dist/types/src/api/api-tokens/create_api_token_for_user.d.ts +18 -4
  56. package/dist/types/src/api/api-tokens/create_api_token_for_user.d.ts.map +1 -1
  57. package/dist/types/src/api/api-tokens/delete_api_token_for_user.d.ts +19 -5
  58. package/dist/types/src/api/api-tokens/delete_api_token_for_user.d.ts.map +1 -1
  59. package/dist/types/src/api/api-tokens/get_api_token_for_user.d.ts +19 -5
  60. package/dist/types/src/api/api-tokens/get_api_token_for_user.d.ts.map +1 -1
  61. package/dist/types/src/api/api-tokens/list_api_tokens_for_user.d.ts +25 -5
  62. package/dist/types/src/api/api-tokens/list_api_tokens_for_user.d.ts.map +1 -1
  63. package/dist/types/src/api/apps/apps_github_callback.d.ts +16 -4
  64. package/dist/types/src/api/apps/apps_github_callback.d.ts.map +1 -1
  65. package/dist/types/src/api/apps/apps_github_consent.d.ts +19 -4
  66. package/dist/types/src/api/apps/apps_github_consent.d.ts.map +1 -1
  67. package/dist/types/src/api/apps/apps_github_webhook.d.ts +15 -4
  68. package/dist/types/src/api/apps/apps_github_webhook.d.ts.map +1 -1
  69. package/dist/types/src/api/executor/create_executor_term.d.ts +47 -3
  70. package/dist/types/src/api/executor/create_executor_term.d.ts.map +1 -1
  71. package/dist/types/src/api/executor/create_file_execution.d.ts +19 -5
  72. package/dist/types/src/api/executor/create_file_execution.d.ts.map +1 -1
  73. package/dist/types/src/api/file/create_file_center_of_mass.d.ts +30 -6
  74. package/dist/types/src/api/file/create_file_center_of_mass.d.ts.map +1 -1
  75. package/dist/types/src/api/file/create_file_conversion.d.ts +28 -6
  76. package/dist/types/src/api/file/create_file_conversion.d.ts.map +1 -1
  77. package/dist/types/src/api/file/create_file_conversion_options.d.ts +24 -5
  78. package/dist/types/src/api/file/create_file_conversion_options.d.ts.map +1 -1
  79. package/dist/types/src/api/file/create_file_density.d.ts +33 -7
  80. package/dist/types/src/api/file/create_file_density.d.ts.map +1 -1
  81. package/dist/types/src/api/file/create_file_mass.d.ts +33 -7
  82. package/dist/types/src/api/file/create_file_mass.d.ts.map +1 -1
  83. package/dist/types/src/api/file/create_file_surface_area.d.ts +30 -6
  84. package/dist/types/src/api/file/create_file_surface_area.d.ts.map +1 -1
  85. package/dist/types/src/api/file/create_file_volume.d.ts +30 -6
  86. package/dist/types/src/api/file/create_file_volume.d.ts.map +1 -1
  87. package/dist/types/src/api/meta/community_sso.d.ts +14 -4
  88. package/dist/types/src/api/meta/community_sso.d.ts.map +1 -1
  89. package/dist/types/src/api/meta/create_debug_uploads.d.ts +15 -4
  90. package/dist/types/src/api/meta/create_debug_uploads.d.ts.map +1 -1
  91. package/dist/types/src/api/meta/create_event.d.ts +18 -5
  92. package/dist/types/src/api/meta/create_event.d.ts.map +1 -1
  93. package/dist/types/src/api/meta/get_ipinfo.d.ts +15 -4
  94. package/dist/types/src/api/meta/get_ipinfo.d.ts.map +1 -1
  95. package/dist/types/src/api/meta/get_pricing_subscriptions.d.ts +17 -4
  96. package/dist/types/src/api/meta/get_pricing_subscriptions.d.ts.map +1 -1
  97. package/dist/types/src/api/meta/get_schema.d.ts +12 -4
  98. package/dist/types/src/api/meta/get_schema.d.ts.map +1 -1
  99. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts +20 -4
  100. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts.map +1 -1
  101. package/dist/types/src/api/meta/ping.d.ts +15 -4
  102. package/dist/types/src/api/meta/ping.d.ts.map +1 -1
  103. package/dist/types/src/api/ml/create_kcl_code_completions.d.ts +17 -5
  104. package/dist/types/src/api/ml/create_kcl_code_completions.d.ts.map +1 -1
  105. package/dist/types/src/api/ml/create_proprietary_to_kcl.d.ts +24 -5
  106. package/dist/types/src/api/ml/create_proprietary_to_kcl.d.ts.map +1 -1
  107. package/dist/types/src/api/ml/create_text_to_cad.d.ts +26 -6
  108. package/dist/types/src/api/ml/create_text_to_cad.d.ts.map +1 -1
  109. package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts +25 -5
  110. package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts.map +1 -1
  111. package/dist/types/src/api/ml/create_text_to_cad_model_feedback.d.ts +20 -5
  112. package/dist/types/src/api/ml/create_text_to_cad_model_feedback.d.ts.map +1 -1
  113. package/dist/types/src/api/ml/create_text_to_cad_multi_file_iteration.d.ts +28 -5
  114. package/dist/types/src/api/ml/create_text_to_cad_multi_file_iteration.d.ts.map +1 -1
  115. package/dist/types/src/api/ml/get_ml_prompt.d.ts +18 -4
  116. package/dist/types/src/api/ml/get_ml_prompt.d.ts.map +1 -1
  117. package/dist/types/src/api/ml/get_text_to_cad_model_for_user.d.ts +18 -4
  118. package/dist/types/src/api/ml/get_text_to_cad_model_for_user.d.ts.map +1 -1
  119. package/dist/types/src/api/ml/list_conversations_for_user.d.ts +25 -5
  120. package/dist/types/src/api/ml/list_conversations_for_user.d.ts.map +1 -1
  121. package/dist/types/src/api/ml/list_ml_prompts.d.ts +27 -5
  122. package/dist/types/src/api/ml/list_ml_prompts.d.ts.map +1 -1
  123. package/dist/types/src/api/ml/list_text_to_cad_models_for_user.d.ts +30 -6
  124. package/dist/types/src/api/ml/list_text_to_cad_models_for_user.d.ts.map +1 -1
  125. package/dist/types/src/api/ml/ml_copilot_ws.d.ts +51 -0
  126. package/dist/types/src/api/ml/ml_copilot_ws.d.ts.map +1 -0
  127. package/dist/types/src/api/ml/ml_reasoning_ws.d.ts +53 -0
  128. package/dist/types/src/api/ml/ml_reasoning_ws.d.ts.map +1 -0
  129. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts +73 -0
  130. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts.map +1 -0
  131. package/dist/types/src/api/oauth2/device_access_token.d.ts +14 -3
  132. package/dist/types/src/api/oauth2/device_access_token.d.ts.map +1 -1
  133. package/dist/types/src/api/oauth2/device_auth_confirm.d.ts +17 -5
  134. package/dist/types/src/api/oauth2/device_auth_confirm.d.ts.map +1 -1
  135. package/dist/types/src/api/oauth2/device_auth_request.d.ts +14 -3
  136. package/dist/types/src/api/oauth2/device_auth_request.d.ts.map +1 -1
  137. package/dist/types/src/api/oauth2/device_auth_verify.d.ts +16 -4
  138. package/dist/types/src/api/oauth2/device_auth_verify.d.ts.map +1 -1
  139. package/dist/types/src/api/oauth2/oauth2_provider_callback.d.ts +19 -5
  140. package/dist/types/src/api/oauth2/oauth2_provider_callback.d.ts.map +1 -1
  141. package/dist/types/src/api/oauth2/oauth2_provider_callback_post.d.ts +17 -5
  142. package/dist/types/src/api/oauth2/oauth2_provider_callback_post.d.ts.map +1 -1
  143. package/dist/types/src/api/oauth2/oauth2_provider_consent.d.ts +18 -5
  144. package/dist/types/src/api/oauth2/oauth2_provider_consent.d.ts.map +1 -1
  145. package/dist/types/src/api/oauth2/oauth2_token_revoke.d.ts +14 -3
  146. package/dist/types/src/api/oauth2/oauth2_token_revoke.d.ts.map +1 -1
  147. package/dist/types/src/api/orgs/create_org.d.ts +19 -5
  148. package/dist/types/src/api/orgs/create_org.d.ts.map +1 -1
  149. package/dist/types/src/api/orgs/create_org_member.d.ts +27 -5
  150. package/dist/types/src/api/orgs/create_org_member.d.ts.map +1 -1
  151. package/dist/types/src/api/orgs/create_org_saml_idp.d.ts +19 -5
  152. package/dist/types/src/api/orgs/create_org_saml_idp.d.ts.map +1 -1
  153. package/dist/types/src/api/orgs/delete_org.d.ts +18 -4
  154. package/dist/types/src/api/orgs/delete_org.d.ts.map +1 -1
  155. package/dist/types/src/api/orgs/delete_org_member.d.ts +17 -5
  156. package/dist/types/src/api/orgs/delete_org_member.d.ts.map +1 -1
  157. package/dist/types/src/api/orgs/delete_org_saml_idp.d.ts +14 -4
  158. package/dist/types/src/api/orgs/delete_org_saml_idp.d.ts.map +1 -1
  159. package/dist/types/src/api/orgs/get_any_org.d.ts +19 -5
  160. package/dist/types/src/api/orgs/get_any_org.d.ts.map +1 -1
  161. package/dist/types/src/api/orgs/get_org.d.ts +17 -4
  162. package/dist/types/src/api/orgs/get_org.d.ts.map +1 -1
  163. package/dist/types/src/api/orgs/get_org_member.d.ts +19 -5
  164. package/dist/types/src/api/orgs/get_org_member.d.ts.map +1 -1
  165. package/dist/types/src/api/orgs/get_org_privacy_settings.d.ts +17 -4
  166. package/dist/types/src/api/orgs/get_org_privacy_settings.d.ts.map +1 -1
  167. package/dist/types/src/api/orgs/get_org_saml_idp.d.ts +17 -4
  168. package/dist/types/src/api/orgs/get_org_saml_idp.d.ts.map +1 -1
  169. package/dist/types/src/api/orgs/get_org_shortlinks.d.ts +23 -5
  170. package/dist/types/src/api/orgs/get_org_shortlinks.d.ts.map +1 -1
  171. package/dist/types/src/api/orgs/get_user_org.d.ts +19 -4
  172. package/dist/types/src/api/orgs/get_user_org.d.ts.map +1 -1
  173. package/dist/types/src/api/orgs/list_org_members.d.ts +25 -6
  174. package/dist/types/src/api/orgs/list_org_members.d.ts.map +1 -1
  175. package/dist/types/src/api/orgs/list_orgs.d.ts +23 -5
  176. package/dist/types/src/api/orgs/list_orgs.d.ts.map +1 -1
  177. package/dist/types/src/api/orgs/update_enterprise_pricing_for_org.d.ts +21 -6
  178. package/dist/types/src/api/orgs/update_enterprise_pricing_for_org.d.ts.map +1 -1
  179. package/dist/types/src/api/orgs/update_org.d.ts +19 -5
  180. package/dist/types/src/api/orgs/update_org.d.ts.map +1 -1
  181. package/dist/types/src/api/orgs/update_org_member.d.ts +21 -6
  182. package/dist/types/src/api/orgs/update_org_member.d.ts.map +1 -1
  183. package/dist/types/src/api/orgs/update_org_privacy_settings.d.ts +19 -5
  184. package/dist/types/src/api/orgs/update_org_privacy_settings.d.ts.map +1 -1
  185. package/dist/types/src/api/orgs/update_org_saml_idp.d.ts +19 -5
  186. package/dist/types/src/api/orgs/update_org_saml_idp.d.ts.map +1 -1
  187. package/dist/types/src/api/payments/create_org_subscription.d.ts +19 -5
  188. package/dist/types/src/api/payments/create_org_subscription.d.ts.map +1 -1
  189. package/dist/types/src/api/payments/create_payment_information_for_org.d.ts +21 -5
  190. package/dist/types/src/api/payments/create_payment_information_for_org.d.ts.map +1 -1
  191. package/dist/types/src/api/payments/create_payment_information_for_user.d.ts +21 -5
  192. package/dist/types/src/api/payments/create_payment_information_for_user.d.ts.map +1 -1
  193. package/dist/types/src/api/payments/create_payment_intent_for_org.d.ts +17 -4
  194. package/dist/types/src/api/payments/create_payment_intent_for_org.d.ts.map +1 -1
  195. package/dist/types/src/api/payments/create_payment_intent_for_user.d.ts +17 -4
  196. package/dist/types/src/api/payments/create_payment_intent_for_user.d.ts.map +1 -1
  197. package/dist/types/src/api/payments/create_user_subscription.d.ts +19 -5
  198. package/dist/types/src/api/payments/create_user_subscription.d.ts.map +1 -1
  199. package/dist/types/src/api/payments/delete_payment_information_for_org.d.ts +16 -4
  200. package/dist/types/src/api/payments/delete_payment_information_for_org.d.ts.map +1 -1
  201. package/dist/types/src/api/payments/delete_payment_information_for_user.d.ts +16 -4
  202. package/dist/types/src/api/payments/delete_payment_information_for_user.d.ts.map +1 -1
  203. package/dist/types/src/api/payments/delete_payment_method_for_org.d.ts +15 -4
  204. package/dist/types/src/api/payments/delete_payment_method_for_org.d.ts.map +1 -1
  205. package/dist/types/src/api/payments/delete_payment_method_for_user.d.ts +15 -4
  206. package/dist/types/src/api/payments/delete_payment_method_for_user.d.ts.map +1 -1
  207. package/dist/types/src/api/payments/get_org_subscription.d.ts +17 -4
  208. package/dist/types/src/api/payments/get_org_subscription.d.ts.map +1 -1
  209. package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts +20 -5
  210. package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts.map +1 -1
  211. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts +20 -5
  212. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts.map +1 -1
  213. package/dist/types/src/api/payments/get_payment_balance_for_org.d.ts +18 -4
  214. package/dist/types/src/api/payments/get_payment_balance_for_org.d.ts.map +1 -1
  215. package/dist/types/src/api/payments/get_payment_balance_for_user.d.ts +18 -4
  216. package/dist/types/src/api/payments/get_payment_balance_for_user.d.ts.map +1 -1
  217. package/dist/types/src/api/payments/get_payment_information_for_org.d.ts +19 -4
  218. package/dist/types/src/api/payments/get_payment_information_for_org.d.ts.map +1 -1
  219. package/dist/types/src/api/payments/get_payment_information_for_user.d.ts +19 -4
  220. package/dist/types/src/api/payments/get_payment_information_for_user.d.ts.map +1 -1
  221. package/dist/types/src/api/payments/get_user_subscription.d.ts +17 -4
  222. package/dist/types/src/api/payments/get_user_subscription.d.ts.map +1 -1
  223. package/dist/types/src/api/payments/list_invoices_for_org.d.ts +17 -4
  224. package/dist/types/src/api/payments/list_invoices_for_org.d.ts.map +1 -1
  225. package/dist/types/src/api/payments/list_invoices_for_user.d.ts +17 -4
  226. package/dist/types/src/api/payments/list_invoices_for_user.d.ts.map +1 -1
  227. package/dist/types/src/api/payments/list_payment_methods_for_org.d.ts +17 -4
  228. package/dist/types/src/api/payments/list_payment_methods_for_org.d.ts.map +1 -1
  229. package/dist/types/src/api/payments/list_payment_methods_for_user.d.ts +17 -4
  230. package/dist/types/src/api/payments/list_payment_methods_for_user.d.ts.map +1 -1
  231. package/dist/types/src/api/payments/update_org_subscription.d.ts +19 -5
  232. package/dist/types/src/api/payments/update_org_subscription.d.ts.map +1 -1
  233. package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts +22 -6
  234. package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts.map +1 -1
  235. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts +22 -6
  236. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts.map +1 -1
  237. package/dist/types/src/api/payments/update_payment_information_for_org.d.ts +21 -5
  238. package/dist/types/src/api/payments/update_payment_information_for_org.d.ts.map +1 -1
  239. package/dist/types/src/api/payments/update_payment_information_for_user.d.ts +21 -5
  240. package/dist/types/src/api/payments/update_payment_information_for_user.d.ts.map +1 -1
  241. package/dist/types/src/api/payments/update_user_subscription.d.ts +19 -5
  242. package/dist/types/src/api/payments/update_user_subscription.d.ts.map +1 -1
  243. package/dist/types/src/api/payments/validate_customer_tax_information_for_org.d.ts +14 -4
  244. package/dist/types/src/api/payments/validate_customer_tax_information_for_org.d.ts.map +1 -1
  245. package/dist/types/src/api/payments/validate_customer_tax_information_for_user.d.ts +14 -4
  246. package/dist/types/src/api/payments/validate_customer_tax_information_for_user.d.ts.map +1 -1
  247. package/dist/types/src/api/service-accounts/create_service_account_for_org.d.ts +18 -4
  248. package/dist/types/src/api/service-accounts/create_service_account_for_org.d.ts.map +1 -1
  249. package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts +19 -5
  250. package/dist/types/src/api/service-accounts/delete_service_account_for_org.d.ts.map +1 -1
  251. package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts +19 -5
  252. package/dist/types/src/api/service-accounts/get_service_account_for_org.d.ts.map +1 -1
  253. package/dist/types/src/api/service-accounts/list_service_accounts_for_org.d.ts +25 -5
  254. package/dist/types/src/api/service-accounts/list_service_accounts_for_org.d.ts.map +1 -1
  255. package/dist/types/src/api/store/create_store_coupon.d.ts +19 -5
  256. package/dist/types/src/api/store/create_store_coupon.d.ts.map +1 -1
  257. package/dist/types/src/api/unit/get_angle_unit_conversion.d.ts +22 -6
  258. package/dist/types/src/api/unit/get_angle_unit_conversion.d.ts.map +1 -1
  259. package/dist/types/src/api/unit/get_area_unit_conversion.d.ts +22 -6
  260. package/dist/types/src/api/unit/get_area_unit_conversion.d.ts.map +1 -1
  261. package/dist/types/src/api/unit/get_current_unit_conversion.d.ts +22 -6
  262. package/dist/types/src/api/unit/get_current_unit_conversion.d.ts.map +1 -1
  263. package/dist/types/src/api/unit/get_energy_unit_conversion.d.ts +22 -6
  264. package/dist/types/src/api/unit/get_energy_unit_conversion.d.ts.map +1 -1
  265. package/dist/types/src/api/unit/get_force_unit_conversion.d.ts +22 -6
  266. package/dist/types/src/api/unit/get_force_unit_conversion.d.ts.map +1 -1
  267. package/dist/types/src/api/unit/get_frequency_unit_conversion.d.ts +22 -6
  268. package/dist/types/src/api/unit/get_frequency_unit_conversion.d.ts.map +1 -1
  269. package/dist/types/src/api/unit/get_length_unit_conversion.d.ts +22 -6
  270. package/dist/types/src/api/unit/get_length_unit_conversion.d.ts.map +1 -1
  271. package/dist/types/src/api/unit/get_mass_unit_conversion.d.ts +22 -6
  272. package/dist/types/src/api/unit/get_mass_unit_conversion.d.ts.map +1 -1
  273. package/dist/types/src/api/unit/get_power_unit_conversion.d.ts +22 -6
  274. package/dist/types/src/api/unit/get_power_unit_conversion.d.ts.map +1 -1
  275. package/dist/types/src/api/unit/get_pressure_unit_conversion.d.ts +22 -6
  276. package/dist/types/src/api/unit/get_pressure_unit_conversion.d.ts.map +1 -1
  277. package/dist/types/src/api/unit/get_temperature_unit_conversion.d.ts +22 -6
  278. package/dist/types/src/api/unit/get_temperature_unit_conversion.d.ts.map +1 -1
  279. package/dist/types/src/api/unit/get_torque_unit_conversion.d.ts +22 -6
  280. package/dist/types/src/api/unit/get_torque_unit_conversion.d.ts.map +1 -1
  281. package/dist/types/src/api/unit/get_volume_unit_conversion.d.ts +22 -6
  282. package/dist/types/src/api/unit/get_volume_unit_conversion.d.ts.map +1 -1
  283. package/dist/types/src/api/users/create_user_shortlink.d.ts +19 -5
  284. package/dist/types/src/api/users/create_user_shortlink.d.ts.map +1 -1
  285. package/dist/types/src/api/users/delete_user_self.d.ts +16 -4
  286. package/dist/types/src/api/users/delete_user_self.d.ts.map +1 -1
  287. package/dist/types/src/api/users/delete_user_shortlink.d.ts +15 -4
  288. package/dist/types/src/api/users/delete_user_shortlink.d.ts.map +1 -1
  289. package/dist/types/src/api/users/get_oauth2_providers_for_user.d.ts +19 -4
  290. package/dist/types/src/api/users/get_oauth2_providers_for_user.d.ts.map +1 -1
  291. package/dist/types/src/api/users/get_session_for_user.d.ts +19 -5
  292. package/dist/types/src/api/users/get_session_for_user.d.ts.map +1 -1
  293. package/dist/types/src/api/users/get_user.d.ts +21 -5
  294. package/dist/types/src/api/users/get_user.d.ts.map +1 -1
  295. package/dist/types/src/api/users/get_user_extended.d.ts +21 -5
  296. package/dist/types/src/api/users/get_user_extended.d.ts.map +1 -1
  297. package/dist/types/src/api/users/get_user_privacy_settings.d.ts +17 -4
  298. package/dist/types/src/api/users/get_user_privacy_settings.d.ts.map +1 -1
  299. package/dist/types/src/api/users/get_user_self.d.ts +19 -4
  300. package/dist/types/src/api/users/get_user_self.d.ts.map +1 -1
  301. package/dist/types/src/api/users/get_user_self_extended.d.ts +19 -4
  302. package/dist/types/src/api/users/get_user_self_extended.d.ts.map +1 -1
  303. package/dist/types/src/api/users/get_user_shortlinks.d.ts +23 -5
  304. package/dist/types/src/api/users/get_user_shortlinks.d.ts.map +1 -1
  305. package/dist/types/src/api/users/list_users.d.ts +23 -5
  306. package/dist/types/src/api/users/list_users.d.ts.map +1 -1
  307. package/dist/types/src/api/users/list_users_extended.d.ts +23 -5
  308. package/dist/types/src/api/users/list_users_extended.d.ts.map +1 -1
  309. package/dist/types/src/api/users/patch_user_crm.d.ts +15 -5
  310. package/dist/types/src/api/users/patch_user_crm.d.ts.map +1 -1
  311. package/dist/types/src/api/users/put_public_form.d.ts +17 -5
  312. package/dist/types/src/api/users/put_public_form.d.ts.map +1 -1
  313. package/dist/types/src/api/users/put_public_subscribe.d.ts +15 -5
  314. package/dist/types/src/api/users/put_public_subscribe.d.ts.map +1 -1
  315. package/dist/types/src/api/users/put_user_form_self.d.ts +17 -5
  316. package/dist/types/src/api/users/put_user_form_self.d.ts.map +1 -1
  317. package/dist/types/src/api/users/update_subscription_for_user.d.ts +21 -6
  318. package/dist/types/src/api/users/update_subscription_for_user.d.ts.map +1 -1
  319. package/dist/types/src/api/users/update_user_privacy_settings.d.ts +19 -5
  320. package/dist/types/src/api/users/update_user_privacy_settings.d.ts.map +1 -1
  321. package/dist/types/src/api/users/update_user_self.d.ts +19 -5
  322. package/dist/types/src/api/users/update_user_self.d.ts.map +1 -1
  323. package/dist/types/src/api/users/update_user_shortlink.d.ts +20 -5
  324. package/dist/types/src/api/users/update_user_shortlink.d.ts.map +1 -1
  325. package/dist/types/src/client.d.ts +9 -2
  326. package/dist/types/src/client.d.ts.map +1 -1
  327. package/dist/types/src/errors.d.ts +10 -0
  328. package/dist/types/src/errors.d.ts.map +1 -0
  329. package/dist/types/src/index.d.ts +45 -3
  330. package/dist/types/src/index.d.ts.map +1 -1
  331. package/dist/types/src/models.d.ts +6432 -1828
  332. package/dist/types/src/models.d.ts.map +1 -1
  333. package/dist/types/src/pagination.d.ts +17 -0
  334. package/dist/types/src/pagination.d.ts.map +1 -0
  335. package/dist/types/src/ws-utils.d.ts +6 -0
  336. package/dist/types/src/ws-utils.d.ts.map +1 -0
  337. package/package.json +22 -9
  338. package/dist/types/__tests__/gen/executor-create_executor_term.test.d.ts +0 -2
  339. package/dist/types/__tests__/gen/executor-create_executor_term.test.d.ts.map +0 -1
  340. package/dist/types/__tests__/gen/users-put_public_subscribe.test.d.ts +0 -2
  341. package/dist/types/__tests__/gen/users-put_public_subscribe.test.d.ts.map +0 -1
  342. package/dist/types/src/apiGen.d.ts +0 -3
  343. package/dist/types/src/apiGen.d.ts.map +0 -1
  344. package/dist/types/src/expectedToFail.d.ts +0 -31
  345. package/dist/types/src/expectedToFail.d.ts.map +0 -1
  346. package/dist/types/src/modelsGen.d.ts +0 -2
  347. package/dist/types/src/modelsGen.d.ts.map +0 -1
  348. package/dist/umd/index.js +0 -1
@@ -1,9 +1,21 @@
1
- import { Error_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Apps_github_callback_params {
2
+ interface AppsGithubCallbackInput {
4
3
  client?: Client;
5
4
  }
6
- declare type Apps_github_callback_return = Error_type;
7
- export default function apps_github_callback({ client, }?: Apps_github_callback_params): Promise<Apps_github_callback_return>;
5
+ declare type AppsGithubCallbackReturn = void;
6
+ /**
7
+ * Listen for callbacks to GitHub app authentication.
8
+ *
9
+ * This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
10
+ *
11
+ * The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
12
+ *
13
+ * Tags: apps, hidden
14
+ *
15
+ * @param params Function parameters.
16
+ * @property {Client} [client] Optional client with auth token.
17
+ * @returns {Promise<AppsGithubCallbackReturn>} successful operation, no content
18
+ */
19
+ export default function apps_github_callback({ client }?: AppsGithubCallbackInput): Promise<AppsGithubCallbackReturn>;
8
20
  export {};
9
21
  //# sourceMappingURL=apps_github_callback.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apps_github_callback.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_callback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,2BAA2B;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,aAAK,2BAA2B,GAAG,UAAU,CAAC;AAE9C,wBAA8B,oBAAoB,CAAC,EACjD,MAAM,GACP,GAAE,2BAAgC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA6BzE"}
1
+ {"version":3,"file":"apps_github_callback.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_callback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAKxC,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,aAAK,wBAAwB,GAAG,IAAI,CAAA;AAEpC;;;;;;;;;;;;GAYG;AACH,wBAA8B,oBAAoB,CAChD,EAAE,MAAM,EAAE,GAAE,uBAAuD,GAClE,OAAO,CAAC,wBAAwB,CAAC,CA+BnC"}
@@ -1,9 +1,24 @@
1
- import { AppClientInfo_type, Error_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Apps_github_consent_params {
2
+ import { AppClientInfo } from '../../models.js';
3
+ interface AppsGithubConsentInput {
4
4
  client?: Client;
5
5
  }
6
- declare type Apps_github_consent_return = AppClientInfo_type | Error_type;
7
- export default function apps_github_consent({ client, }?: Apps_github_consent_params): Promise<Apps_github_consent_return>;
6
+ declare type AppsGithubConsentReturn = AppClientInfo;
7
+ /**
8
+ * Get the consent URL for GitHub app authentication.
9
+ *
10
+ * This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
11
+ *
12
+ * The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
13
+ *
14
+ * Tags: apps, hidden
15
+ *
16
+ * @param params Function parameters.
17
+ * @property {Client} [client] Optional client with auth token.
18
+ * @returns {Promise<AppsGithubConsentReturn>} successful operation
19
+ *
20
+ * Possible return types: AppClientInfo
21
+ */
22
+ export default function apps_github_consent({ client }?: AppsGithubConsentInput): Promise<AppsGithubConsentReturn>;
8
23
  export {};
9
24
  //# sourceMappingURL=apps_github_consent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apps_github_consent.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_consent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,0BAA0B;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,aAAK,0BAA0B,GAAG,kBAAkB,GAAG,UAAU,CAAC;AAElE,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,GACP,GAAE,0BAA+B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA6BvE"}
1
+ {"version":3,"file":"apps_github_consent.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_consent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,aAAK,uBAAuB,GAAG,aAAa,CAAA;AAE5C;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,mBAAmB,CAC/C,EAAE,MAAM,EAAE,GAAE,sBAAqD,GAChE,OAAO,CAAC,uBAAuB,CAAC,CAgClC"}
@@ -1,10 +1,21 @@
1
- import { Error_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Apps_github_webhook_params {
2
+ interface AppsGithubWebhookInput {
4
3
  client?: Client;
5
4
  body: string;
6
5
  }
7
- declare type Apps_github_webhook_return = Error_type;
8
- export default function apps_github_webhook({ client, body, }: Apps_github_webhook_params): Promise<Apps_github_webhook_return>;
6
+ declare type AppsGithubWebhookReturn = void;
7
+ /**
8
+ * Listen for GitHub webhooks.
9
+ *
10
+ * These come from the GitHub app.
11
+ *
12
+ * Tags: apps, hidden
13
+ *
14
+ * @param params Function parameters.
15
+ * @property {Client} [client] Optional client with auth token.
16
+ * @property {string} body Request body payload
17
+ * @returns {Promise<AppsGithubWebhookReturn>} successful operation, no content
18
+ */
19
+ export default function apps_github_webhook({ client, body, }: AppsGithubWebhookInput): Promise<AppsGithubWebhookReturn>;
9
20
  export {};
10
21
  //# sourceMappingURL=apps_github_webhook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apps_github_webhook.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,0BAA0B;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,0BAA0B,GAAG,UAAU,CAAC;AAE7C,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,EACN,IAAI,GACL,EAAE,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA8BlE"}
1
+ {"version":3,"file":"apps_github_webhook.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAKxC,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,uBAAuB,GAAG,IAAI,CAAA;AAEnC;;;;;;;;;;;GAWG;AACH,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,EACN,IAAI,GACL,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAiC3D"}
@@ -1,8 +1,52 @@
1
1
  import { Client } from '../../client.js';
2
- interface Create_executor_term_params {
2
+ interface ExecutorTermParams {
3
3
  client?: Client;
4
4
  }
5
- declare type Create_executor_term_return = any;
6
- export default function create_executor_term({ client, }?: Create_executor_term_params): Promise<Create_executor_term_return>;
5
+ /**
6
+ * Create a terminal.
7
+ *
8
+ * Attach to a docker container to create an interactive terminal.
9
+ *
10
+ * Tags: executor, hidden
11
+ *
12
+ * @template Req WebSocket request message type
13
+ * @template Res WebSocket response message type
14
+ * @param functionNameParams Parameters for URL templating and auth
15
+ * @property {Client} [client] Optional client with auth token.
16
+ */
17
+ export default class ExecutorTerm<Req = unknown, Res = unknown> {
18
+ private readonly functionNameParams;
19
+ private ws;
20
+ constructor(functionNameParams: ExecutorTermParams);
21
+ /**
22
+ * Establish the WebSocket connection and perform optional header auth.
23
+ * @returns {Promise<this>} WebSocket instance after the connection opens.
24
+ */
25
+ connect(): Promise<this>;
26
+ /**
27
+ * Send a JSON-encoded message.
28
+ * @param {Req} data Message payload.
29
+ */
30
+ send(data: Req): void;
31
+ /**
32
+ * Send a BSON-encoded binary message, falling back to JSON if needed.
33
+ * @param {Req} data Message payload.
34
+ */
35
+ sendBinary(data: Req): void;
36
+ /**
37
+ * Receive a single message or reject on timeout.
38
+ * @param {number} [timeoutMs=60000] Milliseconds to wait before timing out.
39
+ * @returns {Promise<Res>} Parsed response message.
40
+ */
41
+ recv(timeoutMs?: number): Promise<Res>;
42
+ /** Close the WebSocket connection. */
43
+ close(): void;
44
+ /**
45
+ * Parse an incoming browser MessageEvent into a typed response.
46
+ * @param {MessageEvent} ev Event from the WebSocket.
47
+ * @returns {Res} Parsed payload.
48
+ */
49
+ private parseMessage;
50
+ }
7
51
  export {};
8
52
  //# sourceMappingURL=create_executor_term.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_executor_term.d.ts","sourceRoot":"","sources":["../../../../../src/api/executor/create_executor_term.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,2BAA2B;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,aAAK,2BAA2B,GAAG,GAAG,CAAC;AAEvC,wBAA8B,oBAAoB,CAAC,EACjD,MAAM,GACP,GAAE,2BAAgC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA6BzE"}
1
+ {"version":3,"file":"create_executor_term.d.ts","sourceRoot":"","sources":["../../../../../src/api/executor/create_executor_term.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAMxC,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,GAAG,GAAG,OAAO,EAAE,GAAG,GAAG,OAAO;IAGhD,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAF/C,OAAO,CAAC,EAAE,CAAY;gBAEO,kBAAkB,EAAE,kBAAkB;IAEnE;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAwD9B;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAGrB;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAS3B;;;;OAIG;IACH,IAAI,CAAC,SAAS,SAAQ,GAAG,OAAO,CAAC,GAAG,CAAC;IA6BrC,sCAAsC;IACtC,KAAK,IAAI,IAAI;IAIb;;;;OAIG;IACH,OAAO,CAAC,YAAY;CAgCrB"}
@@ -1,12 +1,26 @@
1
- import { CodeOutput_type, Error_type, CodeLanguage_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_execution_params {
2
+ import { CodeOutput, CodeLanguage } from '../../models.js';
3
+ interface CreateFileExecutionInput {
4
4
  client?: Client;
5
- lang: CodeLanguage_type;
5
+ lang: CodeLanguage;
6
6
  output: string;
7
7
  body: string;
8
8
  }
9
- declare type Create_file_execution_return = CodeOutput_type | Error_type;
10
- export default function create_file_execution({ client, lang, output, body, }: Create_file_execution_params): Promise<Create_file_execution_return>;
9
+ declare type CreateFileExecutionReturn = CodeOutput;
10
+ /**
11
+ * Execute a Zoo program in a specific language.
12
+ *
13
+ * Tags: executor, hidden
14
+ *
15
+ * @param params Function parameters.
16
+ * @property {Client} [client] Optional client with auth token.
17
+ * @property {CodeLanguage} lang The language of the code. (path)
18
+ * @property {string} output The output file we want to get the contents for (the paths are relative to where in litterbox it is being run). You can denote more than one file with a comma separated list of string paths. (query)
19
+ * @property {string} body Request body payload
20
+ * @returns {Promise<CreateFileExecutionReturn>} successful creation
21
+ *
22
+ * Possible return types: CodeOutput
23
+ */
24
+ export default function create_file_execution({ client, lang, output, body, }: CreateFileExecutionInput): Promise<CreateFileExecutionReturn>;
11
25
  export {};
12
26
  //# sourceMappingURL=create_file_execution.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_execution.d.ts","sourceRoot":"","sources":["../../../../../src/api/executor/create_file_execution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,4BAA4B;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,4BAA4B,GAAG,eAAe,GAAG,UAAU,CAAC;AAEjE,wBAA8B,qBAAqB,CAAC,EAClD,MAAM,EACN,IAAI,EACJ,MAAM,EACN,IAAI,GACL,EAAE,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CA8BtE"}
1
+ {"version":3,"file":"create_file_execution.d.ts","sourceRoot":"","sources":["../../../../../src/api/executor/create_file_execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE1D,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,yBAAyB,GAAG,UAAU,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAA8B,qBAAqB,CAAC,EAClD,MAAM,EACN,IAAI,EACJ,MAAM,EACN,IAAI,GACL,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAkC/D"}
@@ -1,12 +1,36 @@
1
- import { FileCenterOfMass_type, Error_type, UnitLength_type, FileImportFormat_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_center_of_mass_params {
2
+ import { FileCenterOfMass, UnitLength, FileImportFormat } from '../../models.js';
3
+ interface CreateFileCenterOfMassInput {
4
4
  client?: Client;
5
- output_unit: UnitLength_type;
6
- src_format: FileImportFormat_type;
5
+ output_unit: UnitLength;
6
+ src_format: FileImportFormat;
7
7
  body: string;
8
8
  }
9
- declare type Create_file_center_of_mass_return = FileCenterOfMass_type | Error_type;
10
- export default function create_file_center_of_mass({ client, output_unit, src_format, body, }: Create_file_center_of_mass_params): Promise<Create_file_center_of_mass_return>;
9
+ declare type CreateFileCenterOfMassReturn = FileCenterOfMass;
10
+ /**
11
+ * Get CAD file center of mass.
12
+ *
13
+ * We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale.
14
+ *
15
+ * This endpoint returns the cartesian coordinate in world space measure units.
16
+ *
17
+ * In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
18
+ *
19
+ * Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
20
+ *
21
+ * If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
22
+ *
23
+ * Tags: file
24
+ *
25
+ * @param params Function parameters.
26
+ * @property {Client} [client] Optional client with auth token.
27
+ * @property {UnitLength} output_unit The output unit for the center of mass. (query)
28
+ * @property {FileImportFormat} src_format The format of the file. (query)
29
+ * @property {string} body Request body payload
30
+ * @returns {Promise<CreateFileCenterOfMassReturn>} successful creation
31
+ *
32
+ * Possible return types: FileCenterOfMass
33
+ */
34
+ export default function create_file_center_of_mass({ client, output_unit, src_format, body, }: CreateFileCenterOfMassInput): Promise<CreateFileCenterOfMassReturn>;
11
35
  export {};
12
36
  //# sourceMappingURL=create_file_center_of_mass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_center_of_mass.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_center_of_mass.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,iCAAiC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,qBAAqB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,iCAAiC,GAAG,qBAAqB,GAAG,UAAU,CAAC;AAE5E,wBAA8B,0BAA0B,CAAC,EACvD,MAAM,EACN,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,iCAAiC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CA8BhF"}
1
+ {"version":3,"file":"create_file_center_of_mass.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_center_of_mass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEhF,UAAU,2BAA2B;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,UAAU,CAAA;IACvB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,4BAA4B,GAAG,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAA8B,0BAA0B,CAAC,EACvD,MAAM,EACN,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,2BAA2B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAkCrE"}
@@ -1,12 +1,34 @@
1
- import { FileConversion_type, Error_type, FileExportFormat_type, FileImportFormat_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_conversion_params {
2
+ import { FileConversion, FileExportFormat, FileImportFormat } from '../../models.js';
3
+ interface CreateFileConversionInput {
4
4
  client?: Client;
5
- output_format: FileExportFormat_type;
6
- src_format: FileImportFormat_type;
5
+ output_format: FileExportFormat;
6
+ src_format: FileImportFormat;
7
7
  body: string;
8
8
  }
9
- declare type Create_file_conversion_return = FileConversion_type | Error_type;
10
- export default function create_file_conversion({ client, output_format, src_format, body, }: Create_file_conversion_params): Promise<Create_file_conversion_return>;
9
+ declare type CreateFileConversionReturn = FileConversion;
10
+ /**
11
+ * Convert CAD file with defaults.
12
+ *
13
+ * If you wish to specify the conversion options, use the `/file/conversion` endpoint instead.
14
+ *
15
+ * Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously.
16
+ *
17
+ * If the conversion is performed synchronously, the contents of the converted file (`output`) will be returned as a base64 encoded string.
18
+ *
19
+ * If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
20
+ *
21
+ * Tags: file
22
+ *
23
+ * @param params Function parameters.
24
+ * @property {Client} [client] Optional client with auth token.
25
+ * @property {FileExportFormat} output_format The format the file should be converted to. (path)
26
+ * @property {FileImportFormat} src_format The format of the file to convert. (path)
27
+ * @property {string} body Request body payload
28
+ * @returns {Promise<CreateFileConversionReturn>} successful creation
29
+ *
30
+ * Possible return types: FileConversion
31
+ */
32
+ export default function create_file_conversion({ client, output_format, src_format, body, }: CreateFileConversionInput): Promise<CreateFileConversionReturn>;
11
33
  export {};
12
34
  //# sourceMappingURL=create_file_conversion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_conversion.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,6BAA6B;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,qBAAqB,CAAC;IACrC,UAAU,EAAE,qBAAqB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,6BAA6B,GAAG,mBAAmB,GAAG,UAAU,CAAC;AAEtE,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,aAAa,EACb,UAAU,EACV,IAAI,GACL,EAAE,6BAA6B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA8BxE"}
1
+ {"version":3,"file":"create_file_conversion.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,gBAAgB,CAAA;IAC/B,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,0BAA0B,GAAG,cAAc,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,aAAa,EACb,UAAU,EACV,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAkCjE"}
@@ -1,12 +1,31 @@
1
- import { FileConversion_type, Error_type, ConversionParams_type } from '../../models.js';
2
1
  import { File } from '../../models.js';
3
2
  import { Client } from '../../client.js';
4
- interface Create_file_conversion_options_params {
3
+ import { FileConversion, ConversionParams } from '../../models.js';
4
+ interface CreateFileConversionOptionsInput {
5
5
  client?: Client;
6
- body: ConversionParams_type;
7
6
  files: File[];
7
+ body: ConversionParams;
8
8
  }
9
- declare type Create_file_conversion_options_return = FileConversion_type | Error_type;
10
- export default function create_file_conversion_options({ client, files, body, }: Create_file_conversion_options_params): Promise<Create_file_conversion_options_return>;
9
+ declare type CreateFileConversionOptionsReturn = FileConversion;
10
+ /**
11
+ * Convert CAD file from one format to another.
12
+ *
13
+ * This takes a HTTP multipart body with these fields in any order:
14
+ *
15
+ * - The input and output format options (as JSON), name is 'body'. - The files to convert, in raw binary. Must supply filenames.
16
+ *
17
+ * This starts a conversion job and returns the `id` of the operation. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
18
+ *
19
+ * Tags: file
20
+ *
21
+ * @param params Function parameters.
22
+ * @property {Client} [client] Optional client with auth token.
23
+ * @property {File[]} files Files attached as multipart/form-data.
24
+ * @property {ConversionParams} body Convert files to other formats
25
+ * @returns {Promise<CreateFileConversionOptionsReturn>} successful creation
26
+ *
27
+ * Possible return types: FileConversion
28
+ */
29
+ export default function create_file_conversion_options({ client, files, body, }: CreateFileConversionOptionsInput): Promise<CreateFileConversionOptionsReturn>;
11
30
  export {};
12
31
  //# sourceMappingURL=create_file_conversion_options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_conversion_options.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_conversion_options.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,qCAAqC;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED,aAAK,qCAAqC,GAAG,mBAAmB,GAAG,UAAU,CAAC;AAE9E,wBAA8B,8BAA8B,CAAC,EAC3D,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,qCAAqC,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAsCxF"}
1
+ {"version":3,"file":"create_file_conversion_options.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_conversion_options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElE,UAAU,gCAAgC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,aAAK,iCAAiC,GAAG,cAAc,CAAA;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAA8B,8BAA8B,CAAC,EAC3D,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CA0C/E"}
@@ -1,14 +1,40 @@
1
- import { FileDensity_type, Error_type, UnitMass_type, UnitDensity_type, FileImportFormat_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_density_params {
2
+ import { FileDensity, UnitMass, UnitDensity, FileImportFormat } from '../../models.js';
3
+ interface CreateFileDensityInput {
4
4
  client?: Client;
5
5
  material_mass: number;
6
- material_mass_unit: UnitMass_type;
7
- output_unit: UnitDensity_type;
8
- src_format: FileImportFormat_type;
6
+ material_mass_unit: UnitMass;
7
+ output_unit: UnitDensity;
8
+ src_format: FileImportFormat;
9
9
  body: string;
10
10
  }
11
- declare type Create_file_density_return = FileDensity_type | Error_type;
12
- export default function create_file_density({ client, material_mass, material_mass_unit, output_unit, src_format, body, }: Create_file_density_params): Promise<Create_file_density_return>;
11
+ declare type CreateFileDensityReturn = FileDensity;
12
+ /**
13
+ * Get CAD file density.
14
+ *
15
+ * We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale.
16
+ *
17
+ * This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit.
18
+ *
19
+ * In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
20
+ *
21
+ * Get the density of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
22
+ *
23
+ * If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
24
+ *
25
+ * Tags: file
26
+ *
27
+ * @param params Function parameters.
28
+ * @property {Client} [client] Optional client with auth token.
29
+ * @property {number} material_mass The material mass. (query)
30
+ * @property {UnitMass} material_mass_unit The unit of the material mass. (query)
31
+ * @property {UnitDensity} output_unit The output unit for the density. (query)
32
+ * @property {FileImportFormat} src_format The format of the file. (query)
33
+ * @property {string} body Request body payload
34
+ * @returns {Promise<CreateFileDensityReturn>} successful creation
35
+ *
36
+ * Possible return types: FileDensity
37
+ */
38
+ export default function create_file_density({ client, material_mass, material_mass_unit, output_unit, src_format, body, }: CreateFileDensityInput): Promise<CreateFileDensityReturn>;
13
39
  export {};
14
40
  //# sourceMappingURL=create_file_density.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_density.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_density.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,0BAA0B;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,aAAa,CAAC;IAClC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,qBAAqB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,0BAA0B,GAAG,gBAAgB,GAAG,UAAU,CAAC;AAEhE,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA8BlE"}
1
+ {"version":3,"file":"create_file_density.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_density.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EACL,WAAW,EACX,QAAQ,EACR,WAAW,EACX,gBAAgB,EACjB,MAAM,iBAAiB,CAAA;AAExB,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,QAAQ,CAAA;IAC5B,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,uBAAuB,GAAG,WAAW,CAAA;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAkC3D"}
@@ -1,14 +1,40 @@
1
- import { FileMass_type, Error_type, UnitDensity_type, UnitMass_type, FileImportFormat_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_mass_params {
2
+ import { FileMass, UnitDensity, UnitMass, FileImportFormat } from '../../models.js';
3
+ interface CreateFileMassInput {
4
4
  client?: Client;
5
5
  material_density: number;
6
- material_density_unit: UnitDensity_type;
7
- output_unit: UnitMass_type;
8
- src_format: FileImportFormat_type;
6
+ material_density_unit: UnitDensity;
7
+ output_unit: UnitMass;
8
+ src_format: FileImportFormat;
9
9
  body: string;
10
10
  }
11
- declare type Create_file_mass_return = FileMass_type | Error_type;
12
- export default function create_file_mass({ client, material_density, material_density_unit, output_unit, src_format, body, }: Create_file_mass_params): Promise<Create_file_mass_return>;
11
+ declare type CreateFileMassReturn = FileMass;
12
+ /**
13
+ * Get CAD file mass.
14
+ *
15
+ * We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale.
16
+ *
17
+ * This endpoint assumes if you are giving a material density in a specific mass unit per cubic measure unit, we return a mass in mass units. The same mass units as passed in the material density.
18
+ *
19
+ * In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
20
+ *
21
+ * Get the mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
22
+ *
23
+ * If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
24
+ *
25
+ * Tags: file
26
+ *
27
+ * @param params Function parameters.
28
+ * @property {Client} [client] Optional client with auth token.
29
+ * @property {number} material_density The material density. (query)
30
+ * @property {UnitDensity} material_density_unit The unit of the material density. (query)
31
+ * @property {UnitMass} output_unit The output unit for the mass. (query)
32
+ * @property {FileImportFormat} src_format The format of the file. (query)
33
+ * @property {string} body Request body payload
34
+ * @returns {Promise<CreateFileMassReturn>} successful creation
35
+ *
36
+ * Possible return types: FileMass
37
+ */
38
+ export default function create_file_mass({ client, material_density, material_density_unit, output_unit, src_format, body, }: CreateFileMassInput): Promise<CreateFileMassReturn>;
13
39
  export {};
14
40
  //# sourceMappingURL=create_file_mass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_mass.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_mass.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,gBAAgB,CAAC;IACxC,WAAW,EAAE,aAAa,CAAC;IAC3B,UAAU,EAAE,qBAAqB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,uBAAuB,GAAG,aAAa,GAAG,UAAU,CAAC;AAE1D,wBAA8B,gBAAgB,CAAC,EAC7C,MAAM,EACN,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,uBAAuB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA8B5D"}
1
+ {"version":3,"file":"create_file_mass.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_mass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,gBAAgB,EACjB,MAAM,iBAAiB,CAAA;AAExB,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,MAAM,CAAA;IACxB,qBAAqB,EAAE,WAAW,CAAA;IAClC,WAAW,EAAE,QAAQ,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,oBAAoB,GAAG,QAAQ,CAAA;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAA8B,gBAAgB,CAAC,EAC7C,MAAM,EACN,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAkCrD"}
@@ -1,12 +1,36 @@
1
- import { FileSurfaceArea_type, Error_type, UnitArea_type, FileImportFormat_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_surface_area_params {
2
+ import { FileSurfaceArea, UnitArea, FileImportFormat } from '../../models.js';
3
+ interface CreateFileSurfaceAreaInput {
4
4
  client?: Client;
5
- output_unit: UnitArea_type;
6
- src_format: FileImportFormat_type;
5
+ output_unit: UnitArea;
6
+ src_format: FileImportFormat;
7
7
  body: string;
8
8
  }
9
- declare type Create_file_surface_area_return = FileSurfaceArea_type | Error_type;
10
- export default function create_file_surface_area({ client, output_unit, src_format, body, }: Create_file_surface_area_params): Promise<Create_file_surface_area_return>;
9
+ declare type CreateFileSurfaceAreaReturn = FileSurfaceArea;
10
+ /**
11
+ * Get CAD file surface area.
12
+ *
13
+ * We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale.
14
+ *
15
+ * This endpoint returns the square measure units.
16
+ *
17
+ * In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
18
+ *
19
+ * Get the surface area of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
20
+ *
21
+ * If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
22
+ *
23
+ * Tags: file
24
+ *
25
+ * @param params Function parameters.
26
+ * @property {Client} [client] Optional client with auth token.
27
+ * @property {UnitArea} output_unit The output unit for the surface area. (query)
28
+ * @property {FileImportFormat} src_format The format of the file. (query)
29
+ * @property {string} body Request body payload
30
+ * @returns {Promise<CreateFileSurfaceAreaReturn>} successful creation
31
+ *
32
+ * Possible return types: FileSurfaceArea
33
+ */
34
+ export default function create_file_surface_area({ client, output_unit, src_format, body, }: CreateFileSurfaceAreaInput): Promise<CreateFileSurfaceAreaReturn>;
11
35
  export {};
12
36
  //# sourceMappingURL=create_file_surface_area.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_surface_area.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_surface_area.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,+BAA+B;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,aAAa,CAAC;IAC3B,UAAU,EAAE,qBAAqB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,+BAA+B,GAAG,oBAAoB,GAAG,UAAU,CAAC;AAEzE,wBAA8B,wBAAwB,CAAC,EACrD,MAAM,EACN,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,+BAA+B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CA8B5E"}
1
+ {"version":3,"file":"create_file_surface_area.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_surface_area.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAE7E,UAAU,0BAA0B;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,QAAQ,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,2BAA2B,GAAG,eAAe,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAA8B,wBAAwB,CAAC,EACrD,MAAM,EACN,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAkCnE"}
@@ -1,12 +1,36 @@
1
- import { FileVolume_type, Error_type, UnitVolume_type, FileImportFormat_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Create_file_volume_params {
2
+ import { FileVolume, UnitVolume, FileImportFormat } from '../../models.js';
3
+ interface CreateFileVolumeInput {
4
4
  client?: Client;
5
- output_unit: UnitVolume_type;
6
- src_format: FileImportFormat_type;
5
+ output_unit: UnitVolume;
6
+ src_format: FileImportFormat;
7
7
  body: string;
8
8
  }
9
- declare type Create_file_volume_return = FileVolume_type | Error_type;
10
- export default function create_file_volume({ client, output_unit, src_format, body, }: Create_file_volume_params): Promise<Create_file_volume_return>;
9
+ declare type CreateFileVolumeReturn = FileVolume;
10
+ /**
11
+ * Get CAD file volume.
12
+ *
13
+ * We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale.
14
+ *
15
+ * This endpoint returns the cubic measure units.
16
+ *
17
+ * In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported.
18
+ *
19
+ * Get the volume of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously.
20
+ *
21
+ * If the operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
22
+ *
23
+ * Tags: file
24
+ *
25
+ * @param params Function parameters.
26
+ * @property {Client} [client] Optional client with auth token.
27
+ * @property {UnitVolume} output_unit The output unit for the volume. (query)
28
+ * @property {FileImportFormat} src_format The format of the file. (query)
29
+ * @property {string} body Request body payload
30
+ * @returns {Promise<CreateFileVolumeReturn>} successful creation
31
+ *
32
+ * Possible return types: FileVolume
33
+ */
34
+ export default function create_file_volume({ client, output_unit, src_format, body, }: CreateFileVolumeInput): Promise<CreateFileVolumeReturn>;
11
35
  export {};
12
36
  //# sourceMappingURL=create_file_volume.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_file_volume.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_volume.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,qBAAqB,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,aAAK,yBAAyB,GAAG,eAAe,GAAG,UAAU,CAAC;AAE9D,wBAA8B,kBAAkB,CAAC,EAC/C,MAAM,EACN,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CA8BhE"}
1
+ {"version":3,"file":"create_file_volume.d.ts","sourceRoot":"","sources":["../../../../../src/api/file/create_file_volume.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGxC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAE1E,UAAU,qBAAqB;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,UAAU,CAAA;IACvB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,aAAK,sBAAsB,GAAG,UAAU,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAA8B,kBAAkB,CAAC,EAC/C,MAAM,EACN,WAAW,EACX,UAAU,EACV,IAAI,GACL,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAkCzD"}
@@ -1,11 +1,21 @@
1
- import { Error_type } from '../../models.js';
2
1
  import { Client } from '../../client.js';
3
- interface Community_sso_params {
2
+ interface CommunitySsoInput {
4
3
  client?: Client;
5
4
  sig: string;
6
5
  sso: string;
7
6
  }
8
- declare type Community_sso_return = Error_type;
9
- export default function community_sso({ client, sig, sso, }: Community_sso_params): Promise<Community_sso_return>;
7
+ declare type CommunitySsoReturn = unknown;
8
+ /**
9
+ * Authorize an inbound auth request from our Community page.
10
+ *
11
+ * Tags: meta, hidden
12
+ *
13
+ * @param params Function parameters.
14
+ * @property {Client} [client] Optional client with auth token.
15
+ * @property {string} sig The signature for the given payload (query)
16
+ * @property {string} sso The nonce and redirect URL sent to us by Discourse (query)
17
+ * @returns {Promise<CommunitySsoReturn>} Temporary Redirect
18
+ */
19
+ export default function community_sso({ client, sig, sso, }: CommunitySsoInput): Promise<CommunitySsoReturn>;
10
20
  export {};
11
21
  //# sourceMappingURL=community_sso.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"community_sso.d.ts","sourceRoot":"","sources":["../../../../../src/api/meta/community_sso.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,aAAK,oBAAoB,GAAG,UAAU,CAAC;AAEvC,wBAA8B,aAAa,CAAC,EAC1C,MAAM,EACN,GAAG,EACH,GAAG,GACJ,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA6BtD"}
1
+ {"version":3,"file":"community_sso.d.ts","sourceRoot":"","sources":["../../../../../src/api/meta/community_sso.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAKxC,UAAU,iBAAiB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,aAAK,kBAAkB,GAAG,OAAO,CAAA;AAEjC;;;;;;;;;;GAUG;AACH,wBAA8B,aAAa,CAAC,EAC1C,MAAM,EACN,GAAG,EACH,GAAG,GACJ,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAgCjD"}